Posts

Showing posts from 2020

How to install and setup PHP?

  What Do I Need? To start using PHP, you can: Find a web host with PHP and MySQL support Install a web server on your own PC, and then install PHP and MySQL Use a Web Host With PHP Support You can simply download Xampp or Wampp Server on your PC. Just Search "Download Xampp for windows 7" (Or whatever your OS windows 7, Windows 10 etc). Click any site on google and download xampp server. Install it and setup. You can setup Xampp by finding any Video on Youtube. First program in PHP After successful installation of Xampp Server on your PC, Go to C://Xampp/htdocs Create here any folder and then create a new file with .php extention. For example crate a folder named 'TEST' and then enter to this folder. Test create a file 'test.php' with the code written below: <?php $txt =  "PHP" ; echo   "I love  $txt! " ; ?> Now go to your browser and open your file with localhost/YourFfolderName/YourFileName.php For Example localhost/test/test.ph

Brief Intro of PHP

  What You Should Already Know Before you continue you should have a basic understanding of the following: 1) HTML 2) CSS 3) JAVASCRIPT What is PHP? PHP is an acronym for "PHP: Hypertext Preprocessor" PHP is a widely-used, open source scripting language PHP scripts are executed on the server PHP is free to download and use What is a PHP File? PHP files can contain text, HTML, CSS, JavaScript, and PHP code PHP code is executed on the server, and the result is returned to the browser as plain HTML PHP files have extension " .php " What Can PHP Do? PHP can generate dynamic page content PHP can create, open, read, write, delete, and close files on the server PHP can collect form data PHP can send and receive cookies PHP can add, delete, modify data in your database PHP can be used to control user-access PHP can encrypt data With PHP you are not limited to output HTML. You can output images, PDF files, and even Flash movies. You can also output any text, such as XHTML an