answersLogoWhite

0

How do you edit a PHP file?

Updated: 8/16/2019
User Avatar

Wiki User

13y ago

Best Answer

Open it in Notepad. Add or remove whatever code you want. To test, you will have to upload it to a PHP enabled webhost, or you will need to install MySQL, PHP, and Apache on your computer.

Use Editor to edit the PHP file. Example: Notepad++ , editplus ,Zend IDE ,Netbeans IDE

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you edit a PHP file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is php a binary file?

No, PHP is text file with .php extension.


Can you open php file in your PC?

Since a PHP file basically is a text file, yes. But beware - opening and running a PHP file are not the same. If you want to run a PHP file, you will need a webserver with PHP module enabled.


What file extension is used to save a php file after code has been written into it?

The file extension for PHP is .php


What is the Malay-utf-8.inc. php file?

This particular file is a file specific to the PHP program or script you are using. It is not a "php system file".


What is the file extension .php?

A file whose extension is "*.php" are typically interpreted by the PHP language. (php.net)


What is the usual file name extension for PHP?

.php


How do you create a DIV type file using PHP?

A file with the DIV file extension is a DivX Movie file, it cannot be created with PHP. PHP is a web programming language for web site building.


How do you create a PHP script?

To create a PHP script all you have to do is create a new file, then save the file as "filename.php". It must have a .php file extension.After that open the file and put in the PHP tags like shown.Then you write your PHP script within those tags and upload to your web space and check it out.


How do you convert an mp3 file in PHP?

PHP is a web page command file format, mp3 is an audio file format.So there is no conversion, as the PHP file leads you to the mp3 file location.


What files can contain PHP?

PHP code can be stored in any kind of file -- the extension of the file indicates what said file contains, but may not necessarily be true. The "php" extension is used to indicate PHP which is meant for execution and presentation.


How can you use PHP for web designing.Without hosting in a server or editing .htaccess file .Can you integrate it to HTML?

This answer is given by the asker himself. I,after research found out that PHP is a server side scripting language and can never be used simply by making php files on the computer unless we edit the .htaccess file to do so. If anyone find more convincing answers ,please improve this answer.


How do you include a file in PHP?

To include a file in PHP all you need to do is use the include() function as I have shown you in the example below. <?php include("filename.php"); ?>