Jump to content
xisto Community
Sign in to follow this  
hazeshow

Fopen Problem In Astahost allow_url_fopen ON but not working?

Recommended Posts

Hi there,

 

I have a code which grabs an xml-file from another location, reads it and puts the content into al local file. I use fopen, fwrite and fclose. The code goes like this:

 

<?php

 

$local_file = 'lala.xml';

 

$fd1 = @fopen ('http://forums.xisto.com/no_longer_exists/ https://l''>https://l'>http://forums.xisto.com/no_longer_exists/ https://l' 'r');

while ($line=fgets($fd1,4000))

 

$alltext.=$line;

 

$fd2 = @fopen('lala.xml', 'w');

@fwrite($fd2, $alltext);

 

@fclose($fd1);

@fclose($fd2);

?>

 

On my Apache at home everything works fine. But it doesn't work on the Xisto server. I thought all I needed was allow_url_fopen being set to ON and safemode OFF. As far as I understand the PHP information in my accounts http://forums.xisto.com/no_longer_exists/ https://p'>phpinfo.php it should all work. Does anybody have an idea why the file is not written?

 

Thank U

Share this post


Link to post
Share on other sites

You may have to change the lala.xml permissions to 777 to be able to read, write and execute the file. You can do that in the File Manager. that should work. :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.