PHP Platform Setup
As a PHP learner, the first to build a test platform for PHP, then here I have my own experience to introduce how to learn PHP, I am not counted as a PHP master, but at least it is skilled, so if you are interested in PHP novice, you can start from here to learn PHP. Nonsense not much to say, under the beginning
Simple lamp platform construction.
What is lamp, actually is linux+apache+mysql+php (here p we refer to PHP.) Perl These are not considered at this stage). But for most of the use of Windows, then we simply have to take a wamp. I used to be my own in the apache.org,mysql.com,php.net download the Windows compressed package file, and then configure, but this configuration has trouble, although said can follow the install step by step, but since there is a simpler way, why don't we use it. Introduction I now use a simple Wamp bar, Uniform server (http://www.uniformserver.com/). Go here (SourceForge) load a compressed package, if the speed is slow, with thunder Search "uniform server" download, about 10M, after decompression, double-click the file inside the Start.vbs can be accessed http://localhost/a/ Select the phpMyAdmin on the left to manage and create the database, the database default user and password are root (php beginners can not look here, is now familiar with PHP). After starting the service, you will find that you have a W disk, this is a virtual disk, under the W disk has a WWW directory, you can delete the files inside. Here is the root directory of your website, we can start from here to learn PHP to start learning PHP. Would you be familiar with C language? Strictly speaking, will you write a simple C program? Or ask for a lower, simple C language program can you read it? If these answers are all negative, then ask you to buy a rectification C language design book to see, What? Don't know who rectification is? I'm afraid of you, so just buy a C-language book to see it! The difference between PHP and C language. The PHP language is The end, of course, can also use a simpler label, we use the formal method to prevent future compatibility problems, devious we do not learn variables. The PHP variable must start with $. such as $var = ' Cosbeta '; Defined. PHP can use variables at any time without the need for pre-defined. C You must define the variable before you can use it. In fact, there are many, such as object-oriented, interpretation or compilation of the implementation of Ah, for beginners do not need to know so much, and so skilled to come back to study these are not too late. Let's go ahead. The first PHP program
< PHP
echo "Hello World"; Comments can be written like this
Save this code as "helloworld.php" and put it in the Web root directory above. And then http://localhost/helloworld.php see what the result is? Is it a little excited??
Tips: Editing PHP can be done with editplus or UltraEdit. I personally like EditPlus, fast.
Reference Address: http://www.storyday.com/html/y2007/379_php-course-lamp.html