[SOLVED] index editing!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

index editing!

Post by Joe »

Is there any way to edit the index.php page from your admin panel. I set something up which grabs the source and puts it into a textarea where it can then be submitted after changes have been made. The only problem is when the update is complete and I head to my index.php page it says a load of errors and inside the file there is slashes between quotes. Is it possible to bypass this?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

[php_man]stripslashes[/php_man]

or
[php_man]preg_quote[/php_man]
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

OK worked a treat. Thanks man!
Post Reply