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"); ?> Quote 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"); Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/179233-a-quick-question/#findComment-945615 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.