Jump to content

EDIT CSS


avatar.alex

Recommended Posts

heres a script that opens a page to edit,

 

$path="userfolders/$folder/$file";
$text = stripslashes(file_get_contents($path));
echo "<form method=POST><textarea name=content rows=50 cols=100>$text</textarea><br><input type=submit name=submit value=update>";
if(isset($_POST['submit'])){
unlink("userfolders/$folder/$file");
$page = fopen("userfolders/$folder/$file", 'x+');
$content=$_POST['content'];
fwrite($page, $content);
echo "Updated Successfully";

Link to comment
https://forums.phpfreaks.com/topic/43747-edit-css/#findComment-212442
Share on other sites

ok i used that code and the message looks like this

 

 

Parse error: syntax error, unexpected $end in /home/mystrh00/domains/witchin.net/public_html/page/editcss.php on line 13

 

now I dont really understand this part of the code:

 

$path="userfolders/$folder/$file";

 

now do i put my dictionary path in there of just leave as is

Link to comment
https://forums.phpfreaks.com/topic/43747-edit-css/#findComment-212466
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.