opening file on a server - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: opening file on a server (/showthread.php?tid=20798) |
opening file on a server - El Forum - 07-22-2009 [eluser]jorx[LINUX][/eluser] hey! i just want to ask.... do CI have a function that would open a file on a server...? i want to access my file - http://localhost/file.php but it won't work on write_file() i'm force to use x:/xampp/htdocs/file.php by the way im using xampp opening file on a server - El Forum - 07-22-2009 [eluser]Evil Wizard[/eluser] do you have allow_url_fopen turned on? opening file on a server - El Forum - 07-22-2009 [eluser]jorx[LINUX][/eluser] yes!!! I change some configuration that I think would make it work out like allow_url_fopen = On I search for answer in the internet.. but still it wont work is their a problem of using localhost in fopen???? opening file on a server - El Forum - 07-22-2009 [eluser]Evil Wizard[/eluser] if you do a var_dump() of the write_file() call does it return false? what parameters are you using to call the helper function? Code: $blResult = write_file('http://localhost/file.php'); Code: $blResult = write_file('./file.php'); |