bob2588 Posted October 27, 2009 Share Posted October 27, 2009 how would i get this code to make a file in a different dirctory like /admin or /users <?php $fh = fopen("myfile.txt", "w"); if($fh==false) die("unable to create file"); ?> Link to comment https://forums.phpfreaks.com/topic/179233-a-quick-question/ Share on other sites More sharing options...
Alex Posted October 27, 2009 Share Posted October 27, 2009 $fh = fopen("directory/myfile.txt", "w"); Link to comment https://forums.phpfreaks.com/topic/179233-a-quick-question/#findComment-945613 Share on other sites More sharing options...
bob2588 Posted October 27, 2009 Author Share Posted October 27, 2009 thanks i will give it a try when i get home Link to comment https://forums.phpfreaks.com/topic/179233-a-quick-question/#findComment-945615 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.