Page 1 of 1
To edit PHP
Posted: Wed Apr 19, 2006 12:14 am
by heart83
Hai
i succesfully run my PHP code in localhost..but i don't know how to edit any error or mistake..
thanks
Posted: Wed Apr 19, 2006 12:24 am
by hawleyjr
Notepad
Moved to php code
Posted: Wed Apr 19, 2006 1:20 am
by tonghuo
ZendStudio :

Posted: Wed Apr 19, 2006 1:31 am
by feyd
We don't need yet another editors thread people.. so I'll only allow this to go so far before I lock it.
Posted: Wed Apr 19, 2006 2:20 am
by Chris Corbyn
I'm not 100% what you're asking. Do you mean what's the procedure? You just edit the original file you created and then upload it again, overwriting the old one.
next...
Posted: Wed Apr 19, 2006 2:27 am
by heart83
well i have post it as .php and an error happen so the web pages is error ,when i open the viewsource only the error message has come out ..and i doesn't save the notepad full code..
so i have to rewrite back all the full code in notepad and save as .php back.is there any easy way to edit ..or we have to write all code back ..?
Re: next...
Posted: Wed Apr 19, 2006 2:32 am
by Chris Corbyn
heart83 wrote:well i have post it as .php and an error happen so the web pages is error ,when i open the viewsource only the error message has come out ..and i doesn't save the notepad full code..
so i have to rewrite back all the full code in notepad and save as .php back.is there any easy way to edit ..or we have to write all code back ..?
When you click "View Source" you cannot edit that code

That's just the output. Same with any web page.
You should have a copy of the original .php file that I guess you uploaded by FTP, or placed in the web root somehow.
PHP code *never* displays in the web page on "View Source".
Here's the process:
User Requests your .php file in Firefox --> Your web server receives the request and notices it's .php --> Web server asks PHP to read the file and send back the result (usually some HTML) --> web server sends HTML back to the web browser
Edit the first file you created, then overwrite the old one.