473,770 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10067

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...@yah oo.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************ *********@f16g2 000cwb.googlegr oups.com>,
sa********@yaho o.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.go oglegroups.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
5326
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 these files, I wish to do the same using another python code instead of running each of these files one by one, which would be cumbersome giving the argv of each file every single time. This can be easily done using a shell script but I just...
8
613
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
1784
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 client to components that tests the components. Does it have anything to do with scripting languages? Thanks.
1
1064
by: apm | last post by:
Exactly what is meant by the term "test script"? Thanks.
3
5620
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 procedure. Can anybody advice me what would be the approach that I can follow here. Note: I am thinking to write the script that may gives the drilled down list of records, but doesn't seems effective, the queries being used in procedure would be...
0
1711
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 write manual test scripts (Test cases) but dont know how to write an automated test script. Any help or links to good sites would be appreciated as I have decimated google :) Thanks.
20
7685
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 script for these functions. For example, the to_number_zero test should pass in an alphabetic string and check the result, then pass in a numeric string and check the result.
13
1860
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 in the SSH terminal window, and that caused a run-time error as reported in the /var/log/httpd-error.log but not in the browser: PHP Notice: Undefined index: etablissemen\nt in
7
2448
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 acquried (and modified) some javascript code, but it did not work... So I attempted to create a simple alert() function to test and that did not work either... This is my test codee: // tooltip.js function displayAlert() { alert("Test...
0
1782
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 classical tutorial. First executable starts correctly under Linux but not under windows. Second it crashes right after due to unknown module that haev to be loaded.
0
9618
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10259
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.