473,394 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

How to definded which version php should using

RC
I have two versions of PHP in UNIX/LINUX system

/usr/bin/php (4.3.2)
/usr/local/bin/php (5.0.4)

In a shell script file I can define first line as

#!/usr/local/bin/php

or I can type full path on command line.

My question is how to defind the path in
PHP web page?

I mean when I have codes

<?php

my codes are here

?>

How does the web server know which version to run?
How can I do the similar thing like PERL/CGI script
put #!/path/php in my php web page file?

Thank Q very much in advance!

P.S.
Now, I set the PATH /usr/local/bin:/usr/bin
On command line will run /usr/local/bin/php,
unless you type full path /usr/bin/php
May 8 '06 #1
1 1272
RC wrote:
I have two versions of PHP in UNIX/LINUX system

/usr/bin/php (4.3.2)
/usr/local/bin/php (5.0.4)

In a shell script file I can define first line as

#!/usr/local/bin/php

or I can type full path on command line.

My question is how to defind the path in
PHP web page?

I mean when I have codes

<?php

my codes are here

?>

How does the web server know which version to run?
How can I do the similar thing like PERL/CGI script
put #!/path/php in my php web page file?

Thank Q very much in advance!

P.S.
Now, I set the PATH /usr/local/bin:/usr/bin
On command line will run /usr/local/bin/php,
unless you type full path /usr/bin/php


It's determined by the LoadModule statement in your httpd.conf file.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
May 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Manlio Perillo | last post by:
Hi. I'm a new user of Python but I have noted a little problem. Python is a very good language but it is evolving, in particular its library is evolving. This can be a problem when, ad example,...
0
by: Anthony Baxter | last post by:
To go along with the 2.4a3 release, here's an updated version of the decorator PEP. It describes the state of decorators as they are in 2.4a3. PEP: 318 Title: Decorators for Functions and...
1
by: Ian | last post by:
I have while developing an application using the XML DOM within VB.NET come across a problem with attributes of a node, where the default values required by a DTD are ommitted by the XML parser...
9
by: shorti | last post by:
I reviewed a similar post on an older version of DB2. I was wondering if there was anything available now that is more precise in gathering the db2 version for the new v8 calls. I am running...
6
by: D. Yates | last post by:
Hi, I got bit by the fact that applications using library files that are NOT strongly named will use older versions of the library without generating an error, so........ Is there a way to...
4
by: Paolo Pantaleo | last post by:
I have a cheetah template something like this: x is: $x y is: $y z is: $z If for example $y is not defined I get an exception and the parsing of the template stops. Is there any way to...
3
by: C Card | last post by:
I am creating a managed DLL in C++ using VS.NET 2005 and .NET 2.0 that I hope can be used by applications created for older versions of .NET. I have a feeling this is not possible, and I hope...
8
by: schaf | last post by:
Hi Ng! My application (version 1 a1) communicates with a service (version 1 s1). Now I would like to update the service and create a service version 2 (s2). The new function calls within s2 are...
14
by: Phil | last post by:
I have been using this code to display the version number, and this has worked well, but I am now changing from using the ClickOnce publishing to a proper setup project, and this no longer works. ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...

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.