Answers for "php start"

PHP
3

start php server

cd path/to/your/app/script
php -S localhost:1234
Posted by: Guest on May-11-2021
3

how to use php

// Firstly you must have PHP installed & running a web server
// This could be Apache, Nginx, etc...
// Or for quick testing purposes and for the purpose
// of this example, you could run
// PHP's own dev server from a shell
php -S 127.0.0.1:8080 -t your-web-directory-location
// This will start a web server on localhost port 8080
// The -t switch sets the document root, this is where your
// home page, typically index.php will be situated

// very basic index.php example
<?php
	echo "Hello, world!";   
?>
  
// You can now go to a browser and enter 127.0.0.1:8080
// You will presented with your simple web page
// Hello, world!
Posted by: Guest on March-07-2020
2

<?PHP>

<?php
echo "Hello world";

// ... more code

echo "Last statement";

// the script ends here with no PHP closing tag
Posted by: Guest on September-16-2020
0

php start

<?php

// PHP code goes here

?>
Posted by: Guest on September-16-2021
-2

basic php

<?php
  
  // This is a comment
  
  echo 'Hello, World!';
  
  // And this outputs Hello, World!
  
?>
Posted by: Guest on July-07-2020

Browse Popular Code Answers by Language