PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I'm creating a file manager but I cant figure out how to get this code block to work. Its to create a file in the users folder.
The page is created. Its just in the same dirrectory of the script.
$file = files name ex. index.php
$username = logged in user only consisting of letters
$wdpage = variable with information saying like page coming soon.
I fixed the error where $file should have been $filefull but it still doesn't work. Heres the errors:
Warning: fopen(C:/AppServ/www/hosting/WebDummy/works.php): failed to open stream: No such file or directory in c:\appserv\www\webdummy\www\serverpro\page_create.php on line 95
Warning: fwrite(): supplied argument is not a valid stream resource in c:\appserv\www\webdummy\www\serverpro\page_create.php on line 96
Warning: fclose(): supplied argument is not a valid stream resource in c:\appserv\www\webdummy\www\serverpro\page_create.php on line 97
oh ya and I thought I would add. The server is running on Windows XP.
Thanks, I got it working again. The problem was that Web Dummy is my site so I had it setup in a local folder instead of hosting. I was trying to save to a dirrectory that didn't exist