php-general Digest 26 Feb 2007 14:22:22 -0000 Issue 4647
Topics (messages 249425 through 249449):
Re: how to display images stored in DB
249425 by: Kevin Waterson
249426 by: Kevin Waterson
Re: remote file time -small issue
249427 by: Richard Lynch
encoding php codes
249428 by: Danial Rahmanzadeh
OCI8 under WINDOWS
249429 by: Miguel J.
249438 by: Fahad Pervaiz
249444 by: Vincent DUPONT
Re: Combining sound files
249430 by: clive
249432 by: Colin Guthrie
249434 by: tedd
249435 by: tedd
249437 by: clive
249446 by: Colin Guthrie
Re: how to retrieve pictures from postgreSQL DB
249431 by: Colin Guthrie
array issues
249433 by: Steven Macintyre
Re: [PHP-DB] NOT NULL query
249436 by: Steven Macintyre
249439 by: Németh Zoltán
$_SERVER['PHP_SELF'] in a included file
249440 by: clive
249441 by: Vincent DUPONT
249442 by: Stut
249447 by: clive
249449 by: Vincent DUPONT
PHP4 and PHP5
249443 by: Martin Marques
249445 by: Steven Macintyre
249448 by: Fahad Pervaiz
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
This one time, at band camp, zerof <[EMAIL PROTECTED]> wrote:
> It is not a good practice to store pictures in DataBases, use links,
> instead of.
Rubbish, where are your benchmarks?
kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
--- End Message ---
--- Begin Message ---
This one time, at band camp, "Alain Roger" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> i stored all my pictures in my PostgreSQL DB as bytea type.
> Now i would like to know how can i display them in my PHP pages ?
Here is a little tutorial on the subject, it uses MySQL and PDO but
you simply need to change the connection string to PDO to pgsql.
http://phpro.org/tutorials/Storing-Images-in-MySQL-with-PHP.html
enjoy
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."
--- End Message ---
--- Begin Message ---
You can always add a header to your own PHP scripts if you want to
maintain that info -- but be aware that you really need to be careful
to change it if you expect browsers to get the LATEST version of your
data.
http://php.net/header
You will find, however, that MANY script-driven websites (PHP, ASP,
Perl/cgi, JSP, whatever) are simply not going to provide a
Last-Modified header, and you're going to have to do something
reasonable for your needs in that case.
Be very careful -- The pros writing actual browsers like Netscape,
Mozilla and IE (well, okay, maybe "pro" is to strong in one of
those... ended up getting "bit" several times by not really thinking
through what happens with Last-Modified and various wrinkles,
including caching and daylight savings time changes.
I'm sure there are other issues...
Nothing seems so simple, but turns out to be so complex, as Time.
After years of programming, I'm now just plain amazed that humans can
even make any sense at all of the current "system" of date/time in
use.
I know for damn sure the computers won't ever be able to get it right.
On Fri, February 23, 2007 6:10 pm, SJAMHO DBMS wrote:
> Thanks Richard,
>
>
> I was afraid that there would be no other way... By the way: root
> documents
> (like http://sjamho.com/index.php) also do not have this
> date_last_modified... seems to be ebcause of the headers issue..
>
>
> Thanks again :-) Regards, Jos
>
> On 2/24/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
>>
>> On Thu, February 22, 2007 2:34 am, SJAMHO DBMS wrote:
>> > I have a problem with the attached file.
>> > Run it or see it here: http://www.sjamho.com/update/remote.php
>> >
>> > The issue is: the timestamps are shown for every file in a
>> > subdirectory, but
>> > never for a file in the root of a domain.
>> > Can anyone tell me why?
>>
>> Yes.
>>
>> The URLs in question don't provide a Last-modified: header.
>>
>> localhost junk # wget --server-response
>> http://www.pitpass.com/forum/viewforum.php | head -n 40
>> --15:10:58-- http://www.pitpass.com/forum/viewforum.php
>> => `viewforum.php'
>> Resolving www.pitpass.com... 64.62.155.120
>> Connecting to www.pitpass.com|64.62.155.120|:80... connected.
>> HTTP request sent, awaiting response...
>> HTTP/1.1 200 OK
>> Date: Fri, 23 Feb 2007 21:11:52 GMT
>> Server: Apache/1.3.34 (Unix) PHP/4.4.2
>> X-Powered-By: PHP/4.4.2
>> Set-Cookie:
>>
>> forum_data=a%3A2%3A%7Bs%3A11%3A%22autologinid%22%3Bs%3A0%3A%22%22%3Bs%3A6%3A%22userid%22%3Bi%3A-1%3B%7D;
>> expires=Sat, 23 Feb 2008 21:11:52 GMT; path=/forum/;
>> domain=pitpass.com
>> Set-Cookie: forum_sid=f5caf540f60eb89ce67a0672d7bffef7;
>> path=/forum/; domain=pitpass.com
>> Cache-Control: private, pre-check=0, post-check=0, max-age=0
>> Expires: 0
>> Pragma: no-cache
>> Content-Type: text/html
>> X-Cache: MISS from www.pitpass.com
>> Connection: close
>> Length: unspecified [text/html]
>>
>> Excellent question, by the way!
>>
>> I believe that if Last-modified is not provided, you can safely
>> assume
>> that the page is dynamic, or should be treated as such -- I.e., the
>> page will be different every time you view it, in theory.
>>
>> Unless you are pounding the same page more than once per second, you
>> could probably just store time() as the Last-modified in that case,
>> and move on with life.
>>
>> Or you could leave it as 0 and know that that means that the page
>> had
>> no Last-modified header.
>>
>> --
>> Some people have a "gift" link here.
>> Know what I want?
>> I want you to buy a CD from some starving artist.
>> http://cdbaby.com/browse/from/lynch
>> Yeah, I get a buck. So?
>>
>>
>
>
> --
>
>
>
> Kind Regards,
> MacJos EnterPrises (S) Pte. Ltd.
> Jos Janssen, Chief Executive Officer
>
> http: www.macjos.com / e-Mail: [EMAIL PROTECTED] / e-Fax: (1) 707 370
> 9299
> Telephone: Singapore - (65) 9775 5320 / Indonesia - (62) 856 5840 8664
>
> _________________________________________________________
>
> CONFIDENTIALITY STATEMENT:
> Unless stated to be non-confidential, this email and any
> attachments are private and confidential and are for the
> addressee only. If you have received this email in error
> please telephone us on receipt. You are strictly prohibited
> from using, copying or disseminating it or any information
> contained in it save to the intended recipient. Internet
> communications are not secure and MacJos EnterPrises (S)
> Pte. Ltd. is not responsible for their abuse by third
> parties, nor for any alteration or corruption in transmission.
> _________________________________________________________
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--- End Message ---
--- Begin Message ---
Zend Guard is a good software for encoding php applications. but that's too
expensive. I searched for a free encoder software and found PHP Encoder:
http://www.freedownloadscenter.com/Web_Authoring/Scripting_Tools/PHP_Encoder.html
but i don't know if PHP Encoder is powerful.
please tell me if you have worked with PHP Encoder. Or if another free
software is available.
Regards,
--- End Message ---
--- Begin Message ---
Hi, I am trying to use oci8.dll under PHP 5.2 and Apache 2 under Windows
XP... The system variables are all configured (TNS_ADMIN, SQLPATH,
LD_LIBRARY_PATH, etc...). I use ORACLE Instant Client and sqlplus works
OK ... PHP-CLI loads the extension without any problem but I cannot get
it load under APACHE (with the help of phpinfo()) ... Any idea why it
won't load?
--
Miguel J. Jiménez
Área de Internet/XSL/PHP
[EMAIL PROTECTED]
----------------------------------------------------
ISOTROL
Edificio BLUENET, Avda. Isaac Newton nº3, 4ª planta.
Parque Tecnológico Cartuja '93, 41092 Sevilla.
Teléfono: 955 036 800 - Fax: 955 036 849
http://www.isotrol.com
"La dicotonomía entre desarrollo económico y sostenibilidad es falsa. Si
nos quedamos sin planeta no habrá economía que valga"
(Al Gore, Ex-Vicepresidente de EE.UU.)
--- End Message ---
--- Begin Message ---
#####ORIGINAL######
Hi, I am trying to use oci8.dll under PHP 5.2 and Apache 2 under Windows
XP... The system variables are all configured (TNS_ADMIN, SQLPATH,
LD_LIBRARY_PATH, etc...). I use ORACLE Instant Client and sqlplus works
OK ... PHP-CLI loads the extension without any problem but I cannot get
it load under APACHE (with the help of phpinfo()) ... Any idea why it
won't load?
####END ORINGINAL###
Uninstall oracle instant client
Restart your windows machine
Download complete oracle client from oracle website
http://www.oracle.com/technology/software/index.html
Restart your windows machine
Every oci8 should work fine now. If not you can try installing Zend
Core for Oracle.
--
Regards
Fahad Pervaiz
www.ecommerce-xperts.com
(Shopping Cart Applications, Framework
for Multilingual Web Sites, Web Designs)
--- End Message ---
--- Begin Message ---
hello
is this not a problem of user rights?
With IIS under XP, the user is always something as IUSR_xxx, so , the c:\oracle
folder must be granted execute grants to IUSR_xx
try to figure out under what user Apache is executed (see the Taskt Manager to
check the user running the Apache process)
and change the windows security on the oci client directories to allow execute
grants to that user on all files.
Vincent Dupont
Principal Consultant OpenSource Competence Center
Ausy Belgium
http://www.ausy.be
-----Original Message-----
From: Fahad Pervaiz [mailto:[EMAIL PROTECTED]
Sent: Mon 2/26/2007 14:41
To: [EMAIL PROTECTED]; [email protected]
Subject: [PHP] Re: OCI8 under WINDOWS
#####ORIGINAL######
Hi, I am trying to use oci8.dll under PHP 5.2 and Apache 2 under Windows
XP... The system variables are all configured (TNS_ADMIN, SQLPATH,
LD_LIBRARY_PATH, etc...). I use ORACLE Instant Client and sqlplus works
OK ... PHP-CLI loads the extension without any problem but I cannot get
it load under APACHE (with the help of phpinfo()) ... Any idea why it
won't load?
####END ORINGINAL###
Uninstall oracle instant client
Restart your windows machine
Download complete oracle client from oracle website
http://www.oracle.com/technology/software/index.html
Restart your windows machine
Every oci8 should work fine now. If not you can try installing Zend
Core for Oracle.
--
Regards
Fahad Pervaiz
www.ecommerce-xperts.com
(Shopping Cart Applications, Framework
for Multilingual Web Sites, Web Designs)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
However, I can't do the same with .WAV files. Does anyone know a way to
combine .WAV files similar to the way shown above?
Can you not convert the wav files to mp3's then combine them?
--
Regards,
Clive.
Real Time Travel Connections
{No electrons were harmed in the creation, transmission or reading of
this email. However, many were excited and some may well have enjoyed
the experience.}
--- End Message ---
--- Begin Message ---
clive wrote:
>> However, I can't do the same with .WAV files. Does anyone know a way
>> to combine .WAV files similar to the way shown above?
>
> Can you not convert the wav files to mp3's then combine them?
While I'm sure you could do this technically, the principle is wrong for
so many reasons.... tho' for small sound clips these are somewhat mitigated.
I still think sox is the way to go tho' :p
Col
--- End Message ---
--- Begin Message ---
At 11:39 AM +0200 2/26/07, clive wrote:
However, I can't do the same with .WAV files. Does anyone know a
way to combine .WAV files similar to the way shown above?
Can you not convert the wav files to mp3's then combine them?
--
Regards,
Clive.
Clive:
That's a good point, then all I would have to do is to change the
resultant mp3 file to a wav file. However, I'm not aware of how to do
that using php. I would hope it's as easy as changing a jpg to a gif
file, but I have never done a mp3 to a wav conversion before. I'll
investigate that.
Thanks,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
clive wrote:
However, I can't do the same with .WAV files. Does anyone know a way
to combine .WAV files similar to the way shown above?
Can you not convert the wav files to mp3's then combine them?
While I'm sure you could do this technically, the principle is wrong for
so many reasons.... tho' for small sound clips these are somewhat mitigated.
I still think sox is the way to go tho' :p
Col
Col:
I'll investigate what you suggest.
It was by accident that I found one could combine mp3 files in such a
manner. I combined many more than just two. Somehow, the redundant
headers in the resultant file are not noticeably detrimental to the
overall assembled sound. Go figure.
Thanks,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
That's a good point, then all I would have to do is to change the
resultant mp3 file to a wav file. However, I'm not aware of how to do
that using php. I would hope it's as easy as changing a jpg to a gif
file, but I have never done a mp3 to a wav conversion before. I'll
investigate that.
you could look at lame? and you will have to call it from php using
exec() or shell_exec()
--
Regards,
Clive.
Real Time Travel Connections
{No electrons were harmed in the creation, transmission or reading of
this email. However, many were excited and some may well have enjoyed
the experience.}
--- End Message ---
--- Begin Message ---
tedd wrote:
> I'll investigate what you suggest.
I definitely think it's the right way to go. sox can also convert from
mp3 to wav etc. as per Clive's suggestions too, so if you can use lame
from the command line via PHP, there is no reason not to just use sox
instead.
> It was by accident that I found one could combine mp3 files in such a
> manner. I combined many more than just two. Somehow, the redundant
> headers in the resultant file are not noticeably detrimental to the
> overall assembled sound. Go figure.
This is a result of the frame based approach to the file format.
As a nifty trick I've told to people before you can take several MPEG
video files that have been split from a single recorded source, such
that they are all the same resolution/bit rate etc. Put all the files
one by one into a .zip file (e.g. via winzip etc,) with zero
compression. Take the resultant .zip file and rename it to .mpeg and
play it as usual et viola, uninterrupted video!!! Same applies to mp3
hence how your trick works. The players will just skip past the
inappropriate frames quite happily (tho' like i say, it may be more
problematic WRT differing bit-rates/channels etc.).
Col
--- End Message ---
--- Begin Message ---
Alain Roger wrote:
> Sorry Colin,
>
> but what do you mean by "adding some cache related headers" ?
> What is the idea behind that ?
Well, PHP is a dynamic language and as such it tells web browsers
(Firefox, Safari etc.) "DO NOT CACHE THIS PAGE, I MAY GENERATE IT
DIFFERENTLY NEXT TIME!!!".
So that means that when a browser downloads a page, and then the user
goes back to that page later (e.g. by hitting "back" etc.) then the user
will have to ask the server and it will supply an updated version of the
page.
The same thing applies for images, but due to the sizes involved this
may be very ugly for users and result in quite slow
performance/rendering of your pages, not to mention increased bandwidth etc.
So you'll almost certainly want some URL rewriting to get neat URLs and
you'll definitely want to put some header() calls with cache control
headers.
Just search for "cache control headers" and you'll find out more.
Something like:
header('Expires: '.gmdate('D, d M Y H:i:s', time()+CACHE_TIME).' GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', $last_mod . ' GMT');
header('Cache-Control: max-age='.CACHE_TIME.', public');
But you'll also want to check to see if the header "If-Modified-Since"
is used such that you can return a very simple header in response.
e.g.
$headers = apache_request_headers();
if (isset($headers['If-Modified-Since']))
{
$if_modified_since = preg_replace('/;.*$/', '',
$headers['If-Modified-Since']);
if ('' != $if_modified_since)
{
if (time() - strtotime($if_modified_since) < CACHE_TIME)
{
header('HTTP/1.1 304 Not Modified');
exit;
}
}
}
The above prevents you having to supply any data as the browser is just
asking you if you've got a newer version than the one it has, and quite
often you can reply say, nah, your one is fine!
HTHs
Col
--- End Message ---
--- Begin Message ---
Hi all,
I am working on a project for someone and with the brief I received before -
I created a record per action with the following information;
Artist[tab]artist[tab]artist[tab] etc as a entry for "artists"
Then I have the same for titles etc ...
What I have been doing is creating the array's and combining them ... with
artist as a key and song as a value...
Now ... they are requesting that I have the an additional 3 fields ... how
would I now accomplish this?
Bear in mind its php 4 and I am using a combine_array generic from the
www.php.net site in lieu of array_combine.
I have paste a sample record below;
INSERT INTO ` votes_records` (`id`, `date`, `who`, `title`, `description`,
`image`, `email`, `artists`, `titles`, `votes`, `weeks`, `twoweekpos`,
`oneweekpos`, `debut`) VALUES
(22, '2007-02-26 12:29:15', 1, 'Test Again', '', '', '', 'Artist 1Artist
2', 'Song 1Song 2', '1', '51', '20', '10',
'2005/02/092005/02/09');
The net effect that I need to get - is take that information and display it
per item so people can vote.
S
--- End Message ---
--- Begin Message ---
SELECT * FROM table WHERE field_3 IS NOT NULL
> -----Original Message-----
> From: Ron Piggott [mailto:[EMAIL PROTECTED]
> Sent: 26 February 2007 02:56 PM
> To: PHP DB
> Subject: [PHP-DB] NOT NULL query
>
> Is it possible to do a SELECT query where field_3 isn't null? What
> would the syntax look like? Ron
--- End Message ---
--- Begin Message ---
SELECT * FROM table WHERE NOT ISNULL(field_3)
(in MySQL)
greets
Zoltán Németh
2007. 02. 26, hétfő keltezéssel 15.21-kor Steven Macintyre ezt írta:
> SELECT * FROM table WHERE field_3 IS NOT NULL
>
> > -----Original Message-----
> > From: Ron Piggott [mailto:[EMAIL PROTECTED]
> > Sent: 26 February 2007 02:56 PM
> > To: PHP DB
> > Subject: [PHP-DB] NOT NULL query
> >
> > Is it possible to do a SELECT query where field_3 isn't null? What
> > would the syntax look like? Ron
>
--- End Message ---
--- Begin Message ---
A project that I work on has a index.php that includes other files
depending on certain requirements.
so index.php includes a.php;
in a.php if you echo $_SERVER['PHP_SELF'] it echos index.php and I
understand why it does this.
But, I want echo the file name of a.php from a.php and I dont want to
add a $filename='a.php'; at the top of a.php, although I have thought of
using subversion and a find and replace to insert $filename="$Id$"; at
the top of all the files.
Does anyone know know of another way I can get a included files filename?
Sorry if I have posted this question in the past, its been a while since
I last thought of this problem.
Regards,
Clive.
Real Time Travel Connections
{No electrons were harmed in the creation, transmission or reading of
this email. However, many were excited and some may well have enjoyed
the experience.}
--- End Message ---
--- Begin Message ---
hello,
try with the system constant __FILE__
print(__FILE__);
inside a.php should always return a.php, even though this is included into
index.php.
Vincent Dupont
Principal Consultant OpenSource Competence Center
Ausy Belgium
http://www.ausy.be
-----Original Message-----
From: clive [mailto:[EMAIL PROTECTED]
Sent: Mon 2/26/2007 14:44
To: PHP General List
Subject: [PHP] $_SERVER['PHP_SELF'] in a included file
A project that I work on has a index.php that includes other files
depending on certain requirements.
so index.php includes a.php;
in a.php if you echo $_SERVER['PHP_SELF'] it echos index.php and I
understand why it does this.
But, I want echo the file name of a.php from a.php and I dont want to
add a $filename='a.php'; at the top of a.php, although I have thought of
using subversion and a find and replace to insert $filename="$Id$"; at
the top of all the files.
Does anyone know know of another way I can get a included files filename?
Sorry if I have posted this question in the past, its been a while since
I last thought of this problem.
Regards,
Clive.
Real Time Travel Connections
{No electrons were harmed in the creation, transmission or reading of
this email. However, many were excited and some may well have enjoyed
the experience.}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
clive wrote:
A project that I work on has a index.php that includes other files
depending on certain requirements.
so index.php includes a.php;
in a.php if you echo $_SERVER['PHP_SELF'] it echos index.php and I
understand why it does this.
But, I want echo the file name of a.php from a.php and I dont want to
add a $filename='a.php'; at the top of a.php, although I have thought of
using subversion and a find and replace to insert $filename="$Id$"; at
the top of all the files.
Does anyone know know of another way I can get a included files filename?
Sorry if I have posted this question in the past, its been a while since
I last thought of this problem.
__FILE__ will give you the path and filename of the current file.
-Stut
--- End Message ---
--- Begin Message ---
Thanks Vincent,Stut and Olaf. Thats __file___ is exactly what I needed :)
now for another brain teaser for your collective brains, How does a
function know what file it was called from.
a.php includes functions.php
in a.php we call function test(); which is declared in functions.php
Is there anyway for test(); to echo "called from a.php" with out
passing 'a.php' or ___FILE___ as a parameter to the function?
Im busy googling now for a answer.
--
Regards,
Clive.
Real Time Travel Connections
{No electrons were harmed in the creation, transmission or reading of
this email. However, many were excited and some may well have enjoyed
the experience.}
--- End Message ---
--- Begin Message ---
hi
I'm afraid this is not available by default.
You can try to parse the debug_backtrace() (see
http://be2.php.net/manual/en/function.debug-backtrace.php)
but this is probably too complex for online processing.
if there are some native functions, please tell me !!
Vincent Dupont
Principal Consultant OpenSource Competence Center
Ausy Belgium
http://www.ausy.be
-----Original Message-----
From: clive [mailto:[EMAIL PROTECTED]
Sent: Mon 2/26/2007 15:15
To: clive
Cc: PHP General List
Subject: Re: [PHP] $_SERVER['PHP_SELF'] in a included file
Thanks Vincent,Stut and Olaf. Thats __file___ is exactly what I needed :)
now for another brain teaser for your collective brains, How does a
function know what file it was called from.
a.php includes functions.php
in a.php we call function test(); which is declared in functions.php
Is there anyway for test(); to echo "called from a.php" with out
passing 'a.php' or ___FILE___ as a parameter to the function?
Im busy googling now for a answer.
--
Regards,
Clive.
Real Time Travel Connections
{No electrons were harmed in the creation, transmission or reading of
this email. However, many were excited and some may well have enjoyed
the experience.}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Is it posible to run apache with PHP4 and PHP5 on different virtual
domains?
--
21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18
---------------------------------------------------------
Lic. Martín Marqués | SELECT 'mmarques' ||
Centro de Telemática | '@' || 'unl.edu.ar';
Universidad Nacional | DBA, Programador,
del Litoral | Administrador
---------------------------------------------------------
--- End Message ---
--- Begin Message ---
"This tutorial shows how to install and configure Apache2 with PHP5 and PHP4
enabled at the same time. Because it is not possible to run both PHP5 and
PHP4 as Apache modules, we must run one of them as CGI, the other one as
Apache module."
http://www.howtoforge.com/apache2_with_php5_and_php4
Thats via a google search ... never done it myself!
S
> -----Original Message-----
> From: Martin Marques [mailto:[EMAIL PROTECTED]
> Sent: 26 February 2007 03:50 PM
> To: [email protected]
> Subject: [PHP] PHP4 and PHP5
>
> Is it posible to run apache with PHP4 and PHP5 on different virtual
> domains?
>
> --
> 21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37,
> 0.18
> ---------------------------------------------------------
> Lic. Martín Marqués | SELECT 'mmarques' ||
> Centro de Telemática | '@' || 'unl.edu.ar';
> Universidad Nacional | DBA, Programador,
> del Litoral | Administrador
> ---------------------------------------------------------
--- End Message ---
--- Begin Message ---
#### ORIGINAL ####
Is it posible to run apache with PHP4 and PHP5 on different virtual
domains?
#### END ORIGINAL ###
No! Its not possible. To set php environment in virtual hosts.
You can have both php5 and php4 at the same time but you can not
configure two php version with one apache.
Yes you can run two apache (Diff ports) and with one you can configure
php5 and with the other you can configure php4
--
Regards
Fahad Pervaiz
www.ecommerce-xperts.com
(Shopping Cart Applications, Framework
for Multilingual Web Sites, Web Designs)
--- End Message ---