New to PHP. Just need to do a minor change.

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
RobZ
Forum Newbie
Posts: 3
Joined: Thu Jun 16, 2005 2:38 pm

New to PHP. Just need to do a minor change.

Post by RobZ »

This is certainly a very basic question and thanks for bearing with me. I'm not familiar with PHP, however, I need to make a simple text change to a site developed using PHP. I see the .php files and the .html files in the httpdocs folder on the server. Can I just change the index.html or do I have to change the .php and do some sort of compilation? Do I need to install php on my Win/XP machine and load the .php files.

Any help truly appreciated.

Thanks.

Robert
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post by Deemo »

first off welcome to the site :)

depending on who made it and what style they used, the location of the text you are trying to change may be entirely different. In order to help solve your problem a bit more, please tell us the location of the file and what you want changed. For example, sometime like index.php?act=add or something to that effect. We dont need the address or anything, just which page it is


hope i didnt confuse you more :oops:
deltawing
Forum Commoner
Posts: 46
Joined: Tue Jun 14, 2005 2:55 pm

Post by deltawing »

The easiest way I can think of to do something like this is to use open all the files using notepad one by one, and use Edit > Find on each of them. Put the text you are trying to change into the search box, and then if a match comes up, change it. You don't need to compile anything, and you don't need to install anything, as PHP is run on the server, so when you upload the files back to the server, they should work just fine. Make sure you back up the old files just in case.
RobZ
Forum Newbie
Posts: 3
Joined: Thu Jun 16, 2005 2:38 pm

Post by RobZ »

That's what I was hoping to hear. I just wasn't sure if it is this simple. Thanks truly for your help.
RobZ
Forum Newbie
Posts: 3
Joined: Thu Jun 16, 2005 2:38 pm

Post by RobZ »

Deemo, thanks for your reply. There is one .php file and a few html files including an index.html
I'm hoping to just modify the index.html file. However, is this file generated from a php compilation that will eventually override it on a new compile?

thanks.
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

we wouldn't know with out looking at the php file.
Post Reply