answersLogoWhite

0

How do you create a PHP script?

User Avatar

Wiki User

14y ago

Best Answer

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.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

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

How do you create a web mail script using PHP?

You can use phpMailer() Or, you can use mail() PHP function to send emails via PHP script.


What is harder to create from scratch a php amazon clone script or a php youtube script?

In Core-PHP I would assume both are difficult. But between the two Amazon clone would be a bit harder. Ideal thing would be to use Magento to create an Amazon type site.


Where can one find a guide on how to make a login php script?

The best place to find a guide on how to make a login script in php is the PHP Easy Step website. They offer a step by step tutorial on how to create login scripts.


How can you run a PHP script?

A php script can only be executed within a Web server that runs php.


What are semantics in PHP?

PHP is related with HTML. HTML can be included into PHP script as well as PHP script can be included into HTML code. PHP begins and ends with <?php ?>. PHP is mix of few languages so semantics is mixed too.


How do I get rid of PHP in Charter's home page?

Open the PHP script and delete the PHP from it.


What is the main use of php than other programming languages?

PHP is used mainly to help create dynamically generated website pages. It is a script language running on a server. PHP programs are not compiled as executable files.


How can you execute a PHP script using command line?

2 Methods: 1. You execute your php binary (in linux, make sure you have php-cli installed) and pass the script as an argument. EG ($: /usr/bin/php /home/user/script.php) 2. A sh'bang in the first line of your script, with the full path of your php executable: #!/usr/bin/php -q <?php ScriptStuff(); ?>


Can you provide free web hosting on a site from a PHP script?

If you created a PHP script that could provide that for people then yes you could.


How do you use PHP in HTML?

You can't use PHP in an HTML document, but you can use HTML in PHP script.


Is there a php script that can allow members to create a sub domain with limited space Like free web hosting?

try clonestop.com


How do you do the pass the variable value to the query in same php page?

To pass PHP Variable value in Jquery simpley echo that variable : Eg <script> var jQueryVariable=<?php echo $anyVariable?> </script>