472,959 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,959 software developers and data experts.

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 10035

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Shalen chhabra | last post by:
Hey, Can anyone give me a snippet for running a python program over all the files in the directory. For ex: I have ten files in a directory and I want to run a python program against all of...
8
by: Michael L. Hostbaek | last post by:
Hi, I am trying to compile a piece of software, on a FreeBSD system. gcc version 2.95.4 When compiling, I get lots of these warnings: --- logger.c: In function `cf_logger_init':
1
by: apm | last post by:
In software testing/quality control what is meant by the term "test script". Is this a paper document specifying steps to take to test the code or does it refer to an application that serves as a...
1
by: apm | last post by:
Exactly what is meant by the term "test script"? Thanks.
3
by: suresh Gautam | last post by:
I have MS-SQL procedure for reporting purpose. It accepts various parameters and gives the table variable after applying the different logic. Now, I need to write the test script to verify the...
0
by: TheFunkyGibbon | last post by:
Hello, 1st post. Now the problem here is that I have never written a test script. I have an interview with ITV next thursday as a Test Analyst and I want to make a good impression. I know how to...
20
by: kwartz | last post by:
Any suggestions on how to write a test script to test a package. Some of the functions in the package are to_number_zero, CheckIfNumeric(STRING_IN IN VARCHAR2). I need to write some sort of test...
13
by: Gilles Ganault | last post by:
Hello Is there a tool on Linux/FreeBSD that can parse a PHP script to make sure there's no compile-time issues? I just noticed that I copy/pasted some code that had lines longer that can fit...
7
by: freddukes | last post by:
Okay... So this is my first project and I want to be able to make a tool tip appear with the basket contents whenever you hover over a link using the onmousehover='javascriptFunction()'. I have...
0
by: Stef le Breton | last post by:
Hi, I need to compile a pyhton tool into an executable as the destination plateform (Solaris, Linux) are not deployed with Python or not all needed modules. I found pyinstaller and follow the...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.