Creating PHP and MySQL Website With WebMatrix
Step 1 : Requirements
- Microsoft WebMatrix
For the installation of Microsoft WebMatrix you can see in the url How To Install Microsoft WebMatrix. - MySQL Database
For the installation of mysql you can see in the url How To Install MySQL Database Server On Windows 7 . - Creating directory for project PHP Website under the “…My Web Sites” directory, for example “C:Userssandy raDocumentsMy Web SitesDnD”.
Step 2 : Creating PHP Site
- Open Microsoft WebMatrix, Go to Start Menu –> All Programs –> Microsoft WebMatrix –> Microsoft WebMatrix. You will see a window that looks like this :
- You will see there are four main options :
- My Site
- Site From Web Gallery
- Site From Template
- Site From Folder
- To get started with our PHP Website , select “Site from Folder”.
- After finished installation, You should see a window that looks like this :
You will see :
- URL, this is address of your site (example : http://localhost:27598)
- Path, this is path address of directory to save your the site (example : C:UsersSandy RaDocumentsMy Web SitesDnD).
Step 3 : Open The Workspace and Creating PHP File
- Click the Files workspace selector to open the Files workspace.
- In the navigation pane on the left, right click the “DnD” Directory, and then click New File to creating the “PHP” file.
- If you see the “Choose a File Type” window :
- Choose an PHP file, and then in the “Name” textfield type “InfoPHP.php” for rename “PHPPage.php”
- And then click the “OK” button.
- The next step, if you see the “PHPInfo.php” file in the workspace, now you are ready to write PHP code, type below code into it :
<?php phpinfo(); ?>
and then save this file.
- To launch the “InfoPHP.php” file in your browser, Click the “Run”button in the WebMatrix ribbon and select your favorite web browser.
- You should see a window that looks like this :
Step 4 : Creating PHP with MySQL Database in the Microsoft WebMatrix
For the create PHP with MySQL Database in the Microsoft WebMatrix,
- Configuring MySQL Database Connections With Microsoft WebMatrix
- Checking your MySQL Database Connections
- Creating Table In MySQL Database With Microsoft WebMatrix
You can see in the url Creating and Configuring MySQL Database With WebMatrix.
Alternate you can download all step in PDF file:
Download pdf tutorial in this link –> “Creating PHP and MySQL Website With WebMatrix“.
Download pdf tutorial in this link –> “Creating PHP and MySQL Website With WebMatrix“.
* … Good Luck ! … *
0 Responses
Free Email Newsletter
Stay Updates with this Blog. Get Free email newsletter updates..
And then confirm your email subcription
No Comment to “Creating PHP and MySQL Website With WebMatrix”