How to Change a Line in a PHP File
PHP files are read by a Web server's PHP interpreter to perform scripted tasks, such as querying a database or processing data input. Each PHP document contains plain text and does use any special formatting, allowing it to be opened in any text editor. Many PHP programs require you to edit a line or two of code to add your server's settings, such as a database user name and password, into the application configuration.
Instructions
-
-
1
Open the "Start" menu, and type "notepad." Click "Notepad" from the "Applications" section of the search list.
-
2
Press "Ctrl" and "O" to launch the "Open" menu.
-
-
3
Browse to the location on your hard drive containing the PHP file you would like to edit.
-
4
Press "Ctrl" and "F" to open the "Find" menu and search for part of the line you would like to modify. Alternatively, scroll through the document until you locate the line you'd like to change.
-
5
Delete or add text to the document as instructed by your program's installation instructions or as you see fit, based upon your knowledge of the PHP programming language.
-
1