Jump to content

[SOLVED] fopen(issues, 'w')


phpretard

Recommended Posts

I know the folder is being made but you can see the error I keep getting.

 

 

Warning: fopen(pages/secure/documents/$folder/index.php) [function.fopen]: failed to open stream: No such file or directory

 

 

$folder=$_POST['folder'];

mkdir("pages/secure/documents/$folder", 0777);

$fp = fopen('pages/secure/documents/$folder/index.php', 'w');

fclose($fp);

 

It looks like fopen isn't picking up the variable (according to the error)

 

any Ideas?

Link to comment
https://forums.phpfreaks.com/topic/119571-solved-fopenissues-w/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.