Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
PHP DHTML page edit
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- PHP DHTML page edit
PHP DHTML page edit
05-11-2007 6:55 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Dear All,
I want to give a user the ability to edit one or two pages in a site..
I think something like joomla etc is overkill!
I found a DHTML editor (http://www.unica.edu/uicfreesoft/wysiwyg_web_edit/info_wysiwyg_web_edit_eng.html) which looks fine, though out of date.
I'm having trouble writing the file tho':
this code is in a .php file (chmod 755)..
[tt] $fname = './sample.htm';
// Get handle to file
if (!$handle = fopen($fname, 'w')) {
$amsg = "Cannot open file ";
echo "\n alert(\"".$amsg."\"+fname);";
exit;
}[/tt]
..it fails on fopen.
file_exists works ok.. so prob a rights issue.. even tried chmod 666 sample.htm to no avail.
Does anyone have any thoughts (helpful!)
Cheers,
Simon.
I want to give a user the ability to edit one or two pages in a site..
I think something like joomla etc is overkill!
I found a DHTML editor (http://www.unica.edu/uicfreesoft/wysiwyg_web_edit/info_wysiwyg_web_edit_eng.html) which looks fine, though out of date.
I'm having trouble writing the file tho':
this code is in a .php file (chmod 755)..
[tt] $fname = './sample.htm';
// Get handle to file
if (!$handle = fopen($fname, 'w')) {
$amsg = "Cannot open file ";
echo "\n alert(\"".$amsg."\"+fname);";
exit;
}[/tt]
..it fails on fopen.
file_exists works ok.. so prob a rights issue.. even tried chmod 666 sample.htm to no avail.
Does anyone have any thoughts (helpful!)
Cheers,
Simon.
Message 1 of 3
(1,788 Views)
2 REPLIES 2
Re: PHP DHTML page edit
10-11-2007 11:33 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Have you tried chmod on the directory to enable writing so that the script can create new file.
Message 2 of 3
(290 Views)
Re: PHP DHTML page edit
11-11-2007 1:36 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Is this php in your cgi-bin directory? If so it must be moved outside of it.
Also the directory the file is in must be at least chmod 770 to allow writing to and searching (i.e. access) to any files within it.
Also the directory the file is in must be at least chmod 770 to allow writing to and searching (i.e. access) to any files within it.
Message 3 of 3
(290 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page