|
Posted by Klaus Brune on 10/27/06 17:13
In article <1161957497.548574.67240@f16g2000cwb.googlegroups.com>,
samsoft206@yahoo.com says...
> Hi,
> I want to compile and test php script
> in my pc without using internet or web site which
> is online ?
> Do you have any idea about it?
> It is possible to do that ?
>
>
As has already been stated, you run PHP scripts on your local machine by
installing PHP. If you don't already have a web server, you'll need one.
If you've got the Pro or higher versions of Windows 2000 or XP, then
you've already got a web server, you just have to enable it.
However, Apache is a better route to go, especially if you're following
along with other people's code, much of which relies in Apache features
such as mod_rewrite to make friendly URL paths, and so on.
For database-driven sites, you'll want an SQL server. Again,
theoretically, PHP will work with Microsoft's SQL server, and depending
on your verion of windows, you may have it, but if you're setting up a
test server for something you'll want to eventually put online in a
hosted server, then MySQL is your best bet.
While there are packages out there that attempt to make the whole
installation process as pain-free as possible, my recommendation would
be to put in the extra time and research to become familiar with each of
these software packages and install them one by one. That way, when
things aren't behaving the way they should, you've got some experience
to help you troublshoot what might be going wrong. If you want to go
that route, you'll need the software from three places...
http://httpd.apache.org/
http://mysql.com
http://php.net
Finally, you're asking about how to "compile" PHP... strictly speaking,
out-of-the-box PHP is an interpreted language, and is not compiled.
However, you CAN pre-compile PHP into a pseudo-language (similar to what
Java and Flash do), by using Zend Optimizer, from http://www.zend.com
[Back to original message]
|