• Problems

    This line enable URL Rewriting . It must be enabled via the RewriteEngine directive! and if your .htaccess file is going to use rewrite rules, you should always include this line. Otherwise, you can’t be sure if its enabled or not. The string “on” is case insensitive.

Introduction:

WampServer installs automatically all you need to start developing web applications and is very intuitive to use. You will be able to tune your server without even touching the setting files. You have to download and install Wampserver. This will give you a server on your own PC (Windows users), somewhere you can test your scripts. If you haven't yet dowloaded the Wampserver software, you can download it here:  Download Wampserver 

  • Installing

  • Double click on the downloaded file and just follow the instructions. Everything is automatic. The WampServer package is delivered whith the latest releases of Apache, MySQL and PHP.
  • Once WampServer is installed, you can manually add aditionals Apache, Php or MySql (only VC9, VC10 and VC11 compiled) versions. Explanations will be provided on the forum.
  • Each release of Apache, MySQL and PHP has its own settings and its own files (datas for MySQL).
  • Using wampserver
  • The “www” directory will be automatically created (usually c:\wamp\www)
  • Create a subdirectory in “www” and put your PHP files inside.
  • Click on the “localhost” link in the WampSever menu or open your internet browser and go to the URL : http://localhost .you'll see this page appear: (Localhost just refers to the server running on your own computer. Another way to refer to your server is by using the IP address 127.0.0.1.)

Functionalities

WampServer’s functionalities are very complete and easy to use .
With a left click on WampServer’s icon, you will be able to:
  • manage your Apache and MySQL services
  • switch online/offline (give access to everyone or only localhost)
  • install and switch Apache, MySQL and PHP releases
  • manage your servers settings
  • access your logs
  • access your settings files
  • create alias
  • With a right click :
  • change WampServer’s menu language
  • access wampserver page

Saving your PHP files

Whenever you create a new PHP page, you have to save it in your WWW directory. You can see where this is by clicking its item on the menu:

When you click on www directory, you should see an explorer window appear. This one is from Windows Vista: (You'll probably have only two files, index and testmysql.)



This www folder for Wampserver is usally at this location on your hard drive:
c:/wamp/www/
Bear this in mind when you click File > Save As to save your PHP scripts.

Launching your PHP scripts

Suppose you have created a php script called test.php. To launch this script, you need to add the script name after localhost in your browser. So instead of this:
http://localhost/index.php
You would type this:
http://localhost/test.php
You don't type the name of the wamp folder, however. This would be wrong, for example:
c:/wamp/www/test.php
As too would this:
http://localhost/www/test.php
Your server knows where the www folder is, so you don't have to type it out: just add the script name to localhost. Likewise, if you create a folder under www then you'd just type this:
http://localhost/folder-name/script-name.php


No comments:

Post a Comment