Page 1 of 1

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

Posted: Thu Jun 16, 2005 2:48 pm
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

Posted: Thu Jun 16, 2005 5:02 pm
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:

Posted: Thu Jun 16, 2005 7:41 pm
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.

Posted: Fri Jun 17, 2005 8:00 am
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.

Posted: Fri Jun 17, 2005 8:09 am
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.

Posted: Fri Jun 17, 2005 10:36 am
by phpScott
we wouldn't know with out looking at the php file.