Re: getting started - need pointers
| From: | Elizabeth M Smith | Date: | Thu, 28 May 2009 23:29:45 +0000 |
| Subject: | Re: getting started - need pointers | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-29369@lists.php.net to get a copy of this message | ||
Mike Kay wrote:
> Greetings. I am trying to get PHP installed and working on a Windows
> server - Windows Standard 2007. I've downloaded and installed PHP 5.2.9.
> Problem is I don't know how to use this at all. My web server is Apache
> 2.2 - my database is Mysql.
>
> I selected the Apache module 2.2 during the install, and added support for
> Mysql in extensions.
>
> How can make windows start PHP on boot?
> When I click on a .php file, the file opens rather than runs. Obviously
> I've missed something. There is a command phpinfo - to view the parameters
> of the PHP installed - I don't remember how to run this on the command
> line.
>
> Any help MOST appreciated.
> Also, I'm seeking pointers to beginners documentation for Windows users.
>
> Thanks a lot.
>
>
Lets go back to the very beginning - to use a webserver, you have to
view your PHP file in a webserver, not by double clicking on .php file
Installing the server may have been successful, but to view it you need
to open up a web browser and head to http://localhost
I repeat - double clicking on a .php file does nothing - you need to use
a browser to visit the webpages from your newly installed server.
There is also a PHP command line interface if you so desire. To use
this, you need to go to start->run and type cmd.exe
Then you need to figure out exactly where PHP is installed - c:\program
files\php or wherever you put it. cd to this location and then type
>php -v
to see what version you are running
>php -i
will give you the phpinfo() information
Thanks,
Elizabeth Smith