php issue: Please help
Posted: Wed Dec 08, 2010 7:05 pm
Hello I have a php issue. Can anyone help me out?
This is regarding a Content Management System in a web site I'm building... When the site is live and I attempt to update the content and save; it gives me the following and fails to save the change just made:
Warning: fopen(/home/trattoria/public_html/htmlarea2/widget2data/content.html): failed to open stream: Permission denied in /home/trattoria/public_html/htmlarea2/htmlarea.inc.php on line 68
Warning: fputs(): supplied argument is not a valid stream resource in /home/trattoria/public_html/htmlarea2/htmlarea.inc.php on line 69
Warning: fclose(): supplied argument is not a valid stream resource in /home/trattoria/public_html/htmlarea2/htmlarea.inc.php on line 70
This is what the coding as it reads in dreamweaver..
line 67--> if ($ta) {
line 68--> $f = fopen($newsfile,'w');
line 69--> fputs($f,stripslashes($ta));
line 70--> fclose($f);
}
And then at the bottom in "server markup" it says this:
Server markup:
// this should be called from the config.inc.php file
// it will crap out if it's missing it's config directives
if (!$admin_pwd) { die ("misconfigured script!"); }
So i tried putting the direct folder route after the $ symbol.. but?
I was also thinking maybe it's a permissions issue? -- So I changed the permissions to *777* nothing happens.
Can you help me with this>>??
--db
This is regarding a Content Management System in a web site I'm building... When the site is live and I attempt to update the content and save; it gives me the following and fails to save the change just made:
Warning: fopen(/home/trattoria/public_html/htmlarea2/widget2data/content.html): failed to open stream: Permission denied in /home/trattoria/public_html/htmlarea2/htmlarea.inc.php on line 68
Warning: fputs(): supplied argument is not a valid stream resource in /home/trattoria/public_html/htmlarea2/htmlarea.inc.php on line 69
Warning: fclose(): supplied argument is not a valid stream resource in /home/trattoria/public_html/htmlarea2/htmlarea.inc.php on line 70
This is what the coding as it reads in dreamweaver..
line 67--> if ($ta) {
line 68--> $f = fopen($newsfile,'w');
line 69--> fputs($f,stripslashes($ta));
line 70--> fclose($f);
}
And then at the bottom in "server markup" it says this:
Server markup:
// this should be called from the config.inc.php file
// it will crap out if it's missing it's config directives
if (!$admin_pwd) { die ("misconfigured script!"); }
So i tried putting the direct folder route after the $ symbol.. but?
I was also thinking maybe it's a permissions issue? -- So I changed the permissions to *777* nothing happens.
Can you help me with this>>??
--db