To edit PHP

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
heart83
Forum Newbie
Posts: 5
Joined: Mon Apr 17, 2006 2:55 am

To edit PHP

Post by heart83 »

Hai
i succesfully run my PHP code in localhost..but i don't know how to edit any error or mistake..
thanks
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

Notepad :?

Moved to php code
tonghuo
Forum Newbie
Posts: 1
Joined: Wed Apr 19, 2006 12:55 am

Post by tonghuo »

ZendStudio : :o
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
heart83
Forum Newbie
Posts: 5
Joined: Mon Apr 17, 2006 2:55 am

next...

Post 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 ..?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: next...

Post 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.
Post Reply