Jump to content

Putting "fopen" Variable Into Folder


sungpeng

Recommended Posts

$file = "$uid.php"; 
$open = fopen($file, "w"); 
fwrite($open, $content); 
fclose($open); 
}

 

The above code is working fine. If I am putting it in the folder, how should i code ? Like the below which generate error message.

 

$file = "/page/$uid.php"; 
$open = fopen($file, "w"); 
fwrite($open, $content); 
fclose($open); 
}

Link to comment
https://forums.phpfreaks.com/topic/270402-putting-fopen-variable-into-folder/
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.