Current location: Hot Scripts Forums » General Community » Script Requests » PHP: Site/Page View, Edit & Update


PHP: Site/Page View, Edit & Update

Reply
  #1 (permalink)  
Old 10-05-05, 01:31 PM
MikeFairbrother MikeFairbrother is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
PHP: Site/Page View, Edit & Update

Hi there,

I've looked all over for a script. Basically, I need a small script, to update parts of a website from an admin system.

I have all the admin system for different things but i'd like to add it so different admins can update different sections of the website.
I'd like the admins to be able to view the code of a page in a text box, edit it if they want and be able to update it.
I'd also like to be able to preview whats currently there and/or preview after edit before updating, but this is not top priority.

I have seen a script on another website, where the admins can see a live view of the site in the admin system, and they can edit different parts of the site, as you would in frontpage - if this is easier than the above it would be welcomed

I assume it will involve something like fopen or something like that. I've looked it up, but I stuggle putting all the coding together.

I really appreciate the help,
Thank you very much in advance,
Mike
__________________
Thanks,
Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-07-05, 02:32 AM
jordie jordie is offline
Wannabe Coder
 
Join Date: Jun 2005
Posts: 179
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

Are you looking for a free product or a paying one?

If you don't mind paying, I thinkone of these would suit you http://www.interspire.com/sitecenter or http://www.interspire.com/webedit

I'm pretty sure they'd do exactly what you want, WebEdit moreso.
__________________
Jordie Bodlay
php, mysql, postgres
css, xhtml
graphics, design
email me: jb2386@hotmail.com for any programming needs.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 10-09-05, 11:29 AM
MikeFairbrother MikeFairbrother is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

Thanks for your reply. This would be better if I was starting a website from scratch, but we have already got a admin system for different things. I basically wanted a small script to integrate into this admin system.

Thanks again, however if anyone has a small script I can use to integrate - please let me know.

Thanks
__________________
Thanks,
Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 10-09-05, 11:58 AM
MikeFairbrother MikeFairbrother is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Hi All, sorry for the double post..

I've managed to do a script...

Editing:
<form action="today_edit.php" method="post">
<textarea rows="25" cols="80" name="content">
<?
$fn = "/home/mike/public_html/content/today.htm";
print htmlspecialchars(implode("",file($fn)));
?>
</textarea><br>
<input type="submit" value="Update">
</form>

Today_Edit.php (Process script)
<font face="Verdana" size="1"><?
$today = "/home/mike/public_html/content/today.htm";
$content = stripslashes($_POST['content']);
$today = fopen($today,"w") or die ("Error opening file in write mode!");
fputs($today,$content);
fclose($today) or die ("Error closing file!");
echo "Successfully Edited - Going back in 10 seconds...<meta http-equiv=\"refresh\" content=\"10; url=javascript:history.back(-1)\" />\n";
?>


All I need now, Is some sort of preview script, to preview before it's updated. If it was after update, it's just an iframe, however can anyone actually tell me how I can do this?

MUCH APPRECIATED
__________________
Thanks,
Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 10-10-05, 11:43 AM
MikeFairbrother MikeFairbrother is offline
Newbie Coder
 
Join Date: Apr 2004
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Anyone know how I can change it so it dosent just go into a textbox, it will go into a HTML Editor - so they can edit things easier
__________________
Thanks,
Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 10-13-05, 12:21 AM
jordie jordie is offline
Wannabe Coder
 
Join Date: Jun 2005
Posts: 179
Thanks: 0
Thanked 0 Times in 0 Posts
What do you mean by "HTML Editor" ?
__________________
Jordie Bodlay
php, mysql, postgres
css, xhtml
graphics, design
email me: jb2386@hotmail.com for any programming needs.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP code to edit a text file mdhall Script Requests 12 12-23-10 05:03 AM
PHP multi-dimensional array sorting issue aqw PHP 2 06-25-05 12:09 AM
Do PHP can make a user base update web site whitout Database? explorer1979 PHP 5 04-23-05 06:08 AM
need help writing script to let user edit thier html or php files pinochio53 PHP 14 12-15-03 08:26 AM
One PHP file to edit another.... drgn91 PHP 10 07-22-03 12:29 PM


All times are GMT -5. The time now is 09:53 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.