468,278 Members | 1,559 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,278 developers. It's quick & easy.

how to compile and test php script in my pc?

sam
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 ?

Oct 27 '06 #1
6 9819

sam wrote:
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 ?
You can download PHP and Apache for Windows and run it locally which
will do what you want.

For a complete package (installs Apache, PHP, MySQL) on Windows
automatically see XAMPP: http://www.apachefriends.org/en/xampp.html

Oct 27 '06 #2
sam

Simon Kittle wrote:
sam wrote:
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 ?

You can download PHP and Apache for Windows and run it locally which
will do what you want.

For a complete package (installs Apache, PHP, MySQL) on Windows
automatically see XAMPP: http://www.apachefriends.org/en/xampp.html
Hi can I also run it in winxp?

Oct 27 '06 #3
Yep

On Oct 27, 11:40 pm, "sam" <samsoft...@yahoo.comwrote:
Simon Kittle wrote:
sam wrote:
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 ?
You can download PHP and Apache for Windows and run it locally which
will do what you want.
For a complete package (installs Apache, PHP, MySQL) on Windows
automatically see XAMPP:http://www.apachefriends.org/en/xampp.htmlHi can I also run it in winxp?
Oct 27 '06 #4
In article <11*********************@f16g2000cwb.googlegroups. com>,
sa********@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
Oct 27 '06 #5
NC
sam wrote:
>
I want to compile and test php script
In vast majority of cases, PHP scripts are not compiled, but
interpreted.
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 ?
It is absolutely possible, but you need a local HTTP server.
You will need to install Apache or, if you are running Windows
200 Professional or Windows XP Professional, enable IIS.
Then you should download PHP and configure it to work with
Apache or IIS.

Cheers,
NC

Oct 28 '06 #6
sam wrote:
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 ?
<news:11**********************@l41g2000cwc.googleg roups.com(
http://groups.google.com/group/comp....7ae082bba11b3? )

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Oct 29 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Michael L. Hostbaek | last post: by
1 post views Thread by apm | last post: by
1 post views Thread by apm | last post: by
13 posts views Thread by Gilles Ganault | last post: by
1 post views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.