0% found this document useful (0 votes)
46 views1 page

BCA TY Notes For PHP (5) (1) - Removed

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views1 page

BCA TY Notes For PHP (5) (1) - Removed

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Apache is the most widely used Web Server software.

Developed and maintained by


Apache Software Foundation, Apache is open source software available for free. It runs on
67% of all webservers in the world. It is fast, reliable, and secure
Web Server is the software that receives your request to access a web page. It runs a few
security checks on your HTTP request and takes you to the web page. Depending on the
page
you have requested, the page may ask the server to run a few extra modules while
generating the document to serve you. It then serves you the document you requested

MySQL:

MySQL is an open source relational database management system (RDBMS) based on


Structured Query Language (SQL).

MySQL runs on virtually all platforms, including Linux, UNIX, and Windows. Although it can
be used in a wide range of applications, MySQL is most often associated with web-based
applications and online publishing.

After you install XAMPP,

1. Open any Text Editor.

2. Write the following PHP Program / CODE in the Text Editor:

<?PHP

echo 'Hello From PHP! <br />';

?>
3. Save the file in XAMPP Installation Directory \ Web Root Directory Note-
1: Default XAMPP Installation Directory in Windows is C:\xampp Note-2:
Default Web Root Directory in XAMPP is htdocs. All your php files will have to be in
this htdocs folder. That means, for a typical installation of XAMPP in Windows, you
will have to save the PHP CODE in C:\xampp\htdocs folder.
4. When you save the file, name it test.php (just as an example, any valid file name with
.php in the end will work).

Note: when you save this file, make sure it has no .txt extension at the end. Some
text editors place .txt at the end of file name, so it becomes test.php.txt instead of
test.php. To avoid this, when you save the file using any text editor, place double
quote around the file name: e.g. "test.php"

5. Then, go to XAMPP installation folder (typically, C:\xampp) and run xampp-


control.exe by double clicking it.
6. In the xampp-control window, click the start button beside Apache. Later, if you
need other options like MySQL, you'll also have to start MySQL by clicking the start
button beside MySQL in the XAMPP control Panel. Note: if
your OS hides common file extensions, then you'll see xampp-control, instead of
xampp- control.exe

You might also like