Hai
i succesfully run my PHP code in localhost..but i don't know how to edit any error or mistake..
thanks
To edit PHP
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
next...
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 ..?
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 ..?
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: next...
When you click "View Source" you cannot edit that codeheart83 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 ..?
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.