Jump to content

php write path help


calmchess

Recommended Posts

I'm useing the following code to write a file ....my question is how do i specify the directory i want that file written to?  Right now it just writes to the directory that the php script resides in.

 

$ourFileName = $arr0[0].".html";
$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");
fclose($ourFileHandle);

Link to comment
https://forums.phpfreaks.com/topic/141086-php-write-path-help/
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.