Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 11 Apr 2010, 05:36
antboy antboy is offline
 
Join Date: Oct 2005
PHP Direct Execution HELP !!!! pls

Hi all

i want to pull a static html file which is generated by another script on my site into the CMS but i have really no idea how best to do this

it was suggested that i try something like <?php include("http://www.othersite.com/filename.html"); ?> via a widget

well i have fairly limited php programming skill and have tried the following

ob_start();

include ("http://www.mysite.com/myfile.html");

$output .= ob_get_contents();
ob_end_clean();

but this does not work i just get the following error - i would be greatly appreciative if someone knows how to do this

Warning: include() [function.include]: URL file-access is disabled in the server configuration in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 4

Warning: include(http://www.mysite.com/myfile.html) [function.include]: failed to open stream: no suitable wrapper could be found in [path]/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 4

regards Anthony
Reply With Quote
  #2  
Old 11 Apr 2010, 09:06
AliMadkour's Avatar
AliMadkour AliMadkour is offline
 
Join Date: Dec 2004
Real name: Ali
URL file-access is disabled in the server configuration


I think
allow_url_fopen should be ON in PHP configuration (php.ini)
__________________
Ali Madkour
Reply With Quote
  #3  
Old 17 Apr 2010, 06:39
antboy antboy is offline
 
Join Date: Oct 2005
it is on hmmm any other suggestions

--------------- Added 17 Apr 2010 at 08:26 ---------------

this works

ob_start();

include("grab.html");

$output .= ob_get_contents();
ob_end_clean();

Last edited by antboy; 17 Apr 2010 at 08:26. Reason: Auto-Merged DoublePost
Reply With Quote
  #4  
Old 17 Apr 2010, 13:07
NickyDee NickyDee is offline
 
Join Date: Aug 2008
I had the same problem yesterday, the other thing you can do is specify an absolute server path like "/h27503895834/public_html/htdocs/Forum/file.php"
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 00:05.

Layout Options | Width: Wide Color: