[PHP-WIN] PHP 4.3.0 no gif support?

2003-01-03 Thread Zac Barton
hi all, i thought php 4.3 was ment to have read-only access to gif images?


all i get via phpinfo(); is:

GD Support  enabled  
GD Version  bundled (2.0 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  

wheres the gif read support?

php 4.3 d/loaded via www.php.net so its the correct version.. what am i
missing?

does gif read support mean i can load a gif image then output it as a PNG?

many thanks in advance

zac barton

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] ImageCreateFromPNG does not work

2003-01-03 Thread Roy van Arem
I have PHP4.3 and use win2000

ImageCreateFromPNG does not work.. I get an error that
ImageCreateFromPNG is an undefined function... help


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




php-windows Digest 3 Jan 2003 10:18:33 -0000 Issue 1516

2003-01-03 Thread php-windows-digest-help

php-windows Digest 3 Jan 2003 10:18:33 - Issue 1516

Topics (messages 17621 through 17626):

Re: FastCGI support
17621 by: Fernando Serboncini
17623 by: Frank M. Kromann

Can't install PHP 4.3.0, HELP PLEASE!
17622 by: Rafael Fernandez
17624 by: toby z

PHP 4.3.0 no gif support?
17625 by: Zac Barton

ImageCreateFromPNG does not work
17626 by: Roy van Arem

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 ---
Chirstoph,

I've already looked.
There it says to do "php -b " but that doesn't work.

[]s
Fernando

"Christoph Grottolo" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Fernando Serboncini wrote:
> > Hi,
> >
> > obviously, I don't know if this is the right newsgroup to ask such
> > questions, but
> > here it goes...
> >
> > what has happened with FastCGI support on the 4.3 version of PHP?
> > On changelog I saw that SAPI/FastCGI was discontinued.
> >
> > But when I do phpinfo() it reports "Server API : CGI/FastCGI"
>
> Look for postings by Shane Caraveo on php.dev. He's been working on
FastCGI
> support.
>
> Christoph
>
>



--- End Message ---
--- Begin Message ---
There is a bit more info here http://caraveo.com/fastcgi/

- Frank

> Chirstoph,
> 
> I've already looked.
> There it says to do "php -b " but that doesn't work.
> 
> []s
> Fernando
> 
> "Christoph Grottolo" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Fernando Serboncini wrote:
> > > Hi,
> > >
> > > obviously, I don't know if this is the right newsgroup to ask such
> > > questions, but
> > > here it goes...
> > >
> > > what has happened with FastCGI support on the 4.3 version of PHP?
> > > On changelog I saw that SAPI/FastCGI was discontinued.
> > >
> > > But when I do phpinfo() it reports "Server API : CGI/FastCGI"
> >
> > Look for postings by Shane Caraveo on php.dev. He's been working on
> FastCGI
> > support.
> >
> > Christoph
> >
> >
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 




--- End Message ---
--- Begin Message ---
Hello,

I am using Apache 1.3.27 in a Win XP computer and I used to run PHP
4.2.3 and I tried to upgrade to PHP 4.3.0 but I get the following
errors:

 

I deleted the old PHP 4.2.3 from my computer and the configuration lines
in httpd.conf. I inserted the following lines:

 

   LoadModule php4_module c:/php/sapi/php4apache.dll

   AddModule mod_php4.c

   AddType application/x-httpd-php .php

 

It said that mod_php4.c was already loaded so, I restarted the server
again, checked that no other line contained "AddModule mod_php4.c" and
it still came up. I decided to delete the line "AddModule mod_php4.c"
but I get the following error:

 

[Warn] Loaded DSO c:/php/sapi/php4apache.dll uses plain Apache 1.3 API,
this module might crash under EAPI! (Please recompile it with -DEAPI)


--- End Message ---
--- Begin Message ---
hi rafael

1st let this be a lesson to be remembered foever 
always keep a backup of your config files' last known good 
so that if anything like this happenez u ll have something to turn
back to 


2nd  
im sending you my php.ini and httd set n runnin on my windows macheen
try them i made these work on an xp macheen too so im pretty sure
they ll work .
dont foget to change server name ! ! ! ! 

if ur still stuck or anything else blowz off
ping me 

hope i v ehelped
good luck

toby .

--- Rafael Fernandez <[EMAIL PROTECTED]> wrote: >
Hello,
> 
> I am using Apache 1.3.27 in a Win XP computer and I used to run PHP
> 4.2.3 and I tried to upgrade to PHP 4.3.0 but I get the following
> errors:
> 
>  
> 
> I deleted the old PHP 4.2.3 from my computer and the configuration
> lines
> in httpd.conf. I inserted the following lines:
> 
>  
> 
>LoadModule php4_module c:/php/sapi/php4apache.dll
> 
>AddModule mod_php4.c
> 
>AddType application/x-httpd-php .php
> 
>  
> 
> It said that mod_php4.c was already loaded so, I restarted the
> server
> again, checked that no other line contained "AddModule mod_php4.c"
> and
> it still came up. I decided to delete the line "AddModule
> mod_php4.c"
> but I get the following error:
> 
>  
> 
> [Warn] Loaded DSO c:/php/sapi/php4apache.dll uses plain Apache 1.3
> API,
> this module might crash under EAPI! (Please recompile it with
> -DEAPI)
> 
>  

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--- End Message ---
--- Begin Message ---
hi all, i thought php 4.3 was ment to have read-only access to gif images?


all i get via phpinfo(); is:

GD Support  enabled  
GD Version  bund

[PHP-WIN] Re: How to use SQLServer in PHP?

2003-01-03 Thread Radovan Radic
You have to load php_mssql.dll extension.
Then in php

$dbhost="myDBHost"; // or IP address of the server
$dbusername="username";
$dbpassword="password";
$dbname="MyDatabase";

$connection=mssql_pconnect($dbhost,$dbusername,$dbpassword);
mssql_select_db($dbname);

HTH,
Radovan

"Nguyen Le Vinh" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I want to program some PHP pages in WinXP but I can't connect to
SQLServer.
> Can you help me?
>
> VINHNL, [EMAIL PROTECTED]
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-WIN] PHP 4.3.0 no gif support?

2003-01-03 Thread Rasmus Lerdorf
Hrm..  Whoever built the Windows binary didn't define HAVE_GD_GIF_READ I
guess.  Or perhaps it should go into main/config.w32.h.in assuming we are
always going to build the windows binary against the bundled gd library.

-Rasmus

On Fri, 3 Jan 2003, Zac Barton wrote:

> hi all, i thought php 4.3 was ment to have read-only access to gif images?
>
>
> all i get via phpinfo(); is:
>
> GD Support  enabled
> GD Version  bundled (2.0 compatible)
> FreeType Support  enabled
> FreeType Linkage  with freetype
> JPG Support  enabled
> PNG Support  enabled
> WBMP Support  enabled
>
> wheres the gif read support?
>
> php 4.3 d/loaded via www.php.net so its the correct version.. what am i
> missing?
>
> does gif read support mean i can load a gif image then output it as a PNG?
>
> many thanks in advance
>
> zac barton
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Is php.net broken?

2003-01-03 Thread Charles P. Killmer
I submitted a bug report and never got a notification like usual.
Someone posted a comment to it and again no response.  It doesn't look
like anyone working on PHP has looked at the bug report. Bug ID 21312.
Also I have never had a bug report last this long without any developer
comments.
 
Charles



[PHP-WIN] Re: Is php.net broken?

2003-01-03 Thread Fernando Serboncini
Charles,

this happened to me too.

don't know what it is.
Try to post a bug report on the bug report engine. :)

[]s
Fernando


"Charles P. Killmer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I submitted a bug report and never got a notification like usual.
Someone posted a comment to it and again no response.  It doesn't look
like anyone working on PHP has looked at the bug report. Bug ID 21312.
Also I have never had a bug report last this long without any developer
comments.

Charles




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] running php with apache with different php.inis

2003-01-03 Thread Ithilhin
Is it possible to tell Apache which php.ini to use? It would be used for 
semi-virtual hosts.


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-WIN] running php with apache with different php.inis

2003-01-03 Thread Stephen Edmonds
No, you can only have one php.ini file used by php... HOWEVER it is possible
to make changes to php.ini settings in the .htaccess files. Take a look at
http://www.php.net/manual/en/function.ini-set.php, it contains infomation on
the options that can be changed and where. How you make changes in .htaccess
I don't know, but at least this should give you a start!

- Original Message -
From: "Ithilhin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 7:05 PM
Subject: [PHP-WIN] running php with apache with different php.inis


> Is it possible to tell Apache which php.ini to use? It would be used for
> semi-virtual hosts.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] Re: How to use SQLServer in PHP?

2003-01-03 Thread Nguyen Le Vinh
Thanks Radovan,

My page is OK.

"Radovan Radic" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You have to load php_mssql.dll extension.
> Then in php
>
> $dbhost="myDBHost"; // or IP address of the server
> $dbusername="username";
> $dbpassword="password";
> $dbname="MyDatabase";
>
> $connection=mssql_pconnect($dbhost,$dbusername,$dbpassword);
> mssql_select_db($dbname);
>
> HTH,
> Radovan
>
> "Nguyen Le Vinh" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi all,
> >
> > I want to program some PHP pages in WinXP but I can't connect to
> SQLServer.
> > Can you help me?
> >
> > VINHNL, [EMAIL PROTECTED]
> >
> >
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] PHP script not working

2003-01-03 Thread Alvarez, Anthony
Title: PHP script not working





I know this has to be really basic, and apologies for the question. 


But I couldn't find it elsewhere in the forum, so apologies if this is a FAQ.


PHP is installed an running on an internal Windows 2000 called webstat.
It seems that some PHP commands run properly and others do not.
Specifically, posting input data from a web form is not being processed by it PHP script. 


Please see attached files for details.


Form.html = input web form
Handleform.php = processes input data from form.html
webstat Test PHP Script.htm = config of my internal Windows 2000 that cannot process Form.html & Handleform.php properly.

The test script is working and posted at ...
http://www.pucho.com/php/form.html


When http://www.pucho.com/php/handleform.php is run on an internal Windows 2000., all that is output is always blank regardless of the input data presented to the handleform.php script. 

For example: 
firstname =.
lastname =.


Could you kindly share your experience with me?
Is php.ini or apache's httpd.conf not setup properly or is this just a problem using apache2 and php on windows2000. My PHP do indeed work but not on webstat.

What am I doing wrong? Any clues, suggestions, tips or advise are greatly appreciated. Please advise.


I look forward to hearing from you. Thanks in advance.


==


Anthony Alvarez, Webmaster
[EMAIL PROTECTED]
Panasonic Wireless Design Center (MMCD)
1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024
+1 770 338 6176. Fax: +1 770 338 6238.
http://www.panasonic-wireless.com


PGP Fingerprint: 9A2C E2D6 1D8E 96B4 CC57  9268 380B 00A6 A92D 9586


--Appended by Matsushita Mobile Communications Development Corporation of U.S.A.-This e-mail and any attachments may contain information that is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.

      


 


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-WIN] PHP script not working

2003-01-03 Thread Joseph W. Goff
PHP script not workingHow are you trying to access the posted form variables?
$_POST?
$HTTP_POST_VARS?
If you don't have register_globals on then you must use one of the above methods to 
access the values posted.
  - Original Message - 
  From: Alvarez, Anthony 
  To: [EMAIL PROTECTED] 
  Sent: Friday, January 03, 2003 2:10 PM
  Subject: [PHP-WIN] PHP script not working


  I know this has to be really basic, and apologies for the question. 

  But I couldn't find it elsewhere in the forum, so apologies if this is a FAQ. 

  PHP is installed an running on an internal Windows 2000 called webstat. 
  It seems that some PHP commands run properly and others do not. 
  Specifically, posting input data from a web form is not being processed by it PHP 
script. 

  Please see attached files for details. 

  Form.html = input web form 
  Handleform.php = processes input data from form.html 
  webstat Test PHP Script.htm = config of my internal Windows 2000 that cannot process 
Form.html & Handleform.php properly.

  The test script is working and posted at ... 
  http://www.pucho.com/php/form.html 

  When http://www.pucho.com/php/handleform.php is run on an internal Windows 2000., 
all that is output is always blank regardless of the input data presented to the 
handleform.php script. 

  For example: 
  firstname =. 
  lastname =. 

  Could you kindly share your experience with me? 
  Is php.ini or apache's httpd.conf not setup properly or is this just a problem using 
apache2 and php on windows2000. My PHP do indeed work but not on webstat.

  What am I doing wrong? Any clues, suggestions, tips or advise are greatly 
appreciated. Please advise. 

  I look forward to hearing from you. Thanks in advance. 

  == 

  Anthony Alvarez, Webmaster 
  [EMAIL PROTECTED] 
  Panasonic Wireless Design Center (MMCD) 
  1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024 
  +1 770 338 6176. Fax: +1 770 338 6238. 
  http://www.panasonic-wireless.com 

  PGP Fingerprint: 9A2C E2D6 1D8E 96B4 CC57  9268 380B 00A6 A92D 9586 

  --Appended by Matsushita Mobile Communications Development Corporation of 
U.S.A.-This e-mail and any attachments may contain information that is 
confidential, proprietary, privileged or otherwise protected by law. The information 
is solely intended for the named addressee (or a person responsible for delivering it 
to the addressee). If you are not the intended recipient of this message, you are not 
authorized to read, print, retain, copy or disseminate this message or any part of it. 
If you have received this e-mail in error, please notify the sender immediately by 
return e-mail and delete it from your computer.



   



--


  -- 
  PHP Windows Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-WIN] Crystal Report -> PHP4 / Report Generator

2003-01-03 Thread Bernain, Fernando G.
Maybe I have to change my point of view... do i really need PHP for this???
does anybody know some app i can use (report generator with web client, for
instance)???

I forgot, Im looking for a free solution, of course!!!

Thanks!

Fernando Bernain
Senior A
Business Process Outsourcing

KPMG Argentina
Tel: 54 11 4316 5754
Fax: 54 11 4316 5734
[EMAIL PROTECTED]




-Original Message-
From: Bernain, Fernando G. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 11:43 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP-WIN] Crystal Report -> PHP4 / Report Generator


I'm working in a migration of an application from MSSQL7-VB6.0-Crystal
Reports to MSSQL7-winApache-PHP4. 
I'm having problems with the reporting, because I cant find an "user
friendly" solution for the creation of reports with PHP (I need something
similar in functionality and look and fell to the Crystal Reports). 
I tried with a class "report" wrote in PHP4 but I saw that I'll have a long
way to obtain a minimum level of functionality... 

Am I following the correct way in solving this problem??? 
Have anybody of you developed something similar to a Report Generator???
Does exist any application that I could use??? 

Thanks



Fernando Bernain
Senior A
Business Process Outsourcing

KPMG Argentina
Tel: 54 11 4316 5754
Fax: 54 11 4316 5734
[EMAIL PROTECTED]





Email Disclaimer

The information in this email is confidential and may be
legally privileged.
It is intended solely for the addressee.
Access to this email by anyone else is unauthorised.
If you are not the intended recipient, any disclosure,
copying, distribution
or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
When addressed to our clients any opinions or advice
contained in this email are subject to the terms and
conditions expressed in the governing KPMG client engagement
letter.


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-WIN] getting the OS

2003-01-03 Thread DaMouse



ok I develop stuff on both windoze and linux so say 
I left my computer running and forgot which it was running and wanted to make a 
OS specific script from another computer. How could I tell what OS it was to see 
if I needed to go reboot it?
 
 
Ensign BakerHCO 
OfficerUSS Atlantis


php-windows Digest 4 Jan 2003 00:42:11 -0000 Issue 1517

2003-01-03 Thread php-windows-digest-help

php-windows Digest 4 Jan 2003 00:42:11 - Issue 1517

Topics (messages 17627 through 17637):

Re: How to use SQLServer in PHP?
17627 by: Radovan Radic
17633 by: Nguyen Le Vinh

Re: PHP 4.3.0 no gif support?
17628 by: Rasmus Lerdorf

Is php.net broken?
17629 by: Charles P. Killmer
17630 by: Fernando Serboncini

running php with apache with different php.inis
17631 by: Ithilhin
17632 by: Stephen Edmonds

PHP script not working
17634 by: Alvarez, Anthony
17635 by: Joseph W. Goff

Re: Crystal Report -> PHP4 / Report Generator
17636 by: Bernain, Fernando G.

getting the OS
17637 by: DaMouse

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 ---
You have to load php_mssql.dll extension.
Then in php

$dbhost="myDBHost"; // or IP address of the server
$dbusername="username";
$dbpassword="password";
$dbname="MyDatabase";

$connection=mssql_pconnect($dbhost,$dbusername,$dbpassword);
mssql_select_db($dbname);

HTH,
Radovan

"Nguyen Le Vinh" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all,
>
> I want to program some PHP pages in WinXP but I can't connect to
SQLServer.
> Can you help me?
>
> VINHNL, [EMAIL PROTECTED]
>
>



--- End Message ---
--- Begin Message ---
Thanks Radovan,

My page is OK.

"Radovan Radic" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You have to load php_mssql.dll extension.
> Then in php
>
> $dbhost="myDBHost"; // or IP address of the server
> $dbusername="username";
> $dbpassword="password";
> $dbname="MyDatabase";
>
> $connection=mssql_pconnect($dbhost,$dbusername,$dbpassword);
> mssql_select_db($dbname);
>
> HTH,
> Radovan
>
> "Nguyen Le Vinh" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi all,
> >
> > I want to program some PHP pages in WinXP but I can't connect to
> SQLServer.
> > Can you help me?
> >
> > VINHNL, [EMAIL PROTECTED]
> >
> >
>
>



--- End Message ---
--- Begin Message ---
Hrm..  Whoever built the Windows binary didn't define HAVE_GD_GIF_READ I
guess.  Or perhaps it should go into main/config.w32.h.in assuming we are
always going to build the windows binary against the bundled gd library.

-Rasmus

On Fri, 3 Jan 2003, Zac Barton wrote:

> hi all, i thought php 4.3 was ment to have read-only access to gif images?
>
>
> all i get via phpinfo(); is:
>
> GD Support  enabled
> GD Version  bundled (2.0 compatible)
> FreeType Support  enabled
> FreeType Linkage  with freetype
> JPG Support  enabled
> PNG Support  enabled
> WBMP Support  enabled
>
> wheres the gif read support?
>
> php 4.3 d/loaded via www.php.net so its the correct version.. what am i
> missing?
>
> does gif read support mean i can load a gif image then output it as a PNG?
>
> many thanks in advance
>
> zac barton
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

--- End Message ---
--- Begin Message ---
I submitted a bug report and never got a notification like usual.
Someone posted a comment to it and again no response.  It doesn't look
like anyone working on PHP has looked at the bug report. Bug ID 21312.
Also I have never had a bug report last this long without any developer
comments.
 
Charles

--- End Message ---
--- Begin Message ---
Charles,

this happened to me too.

don't know what it is.
Try to post a bug report on the bug report engine. :)

[]s
Fernando


"Charles P. Killmer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I submitted a bug report and never got a notification like usual.
Someone posted a comment to it and again no response.  It doesn't look
like anyone working on PHP has looked at the bug report. Bug ID 21312.
Also I have never had a bug report last this long without any developer
comments.

Charles




--- End Message ---
--- Begin Message ---
Is it possible to tell Apache which php.ini to use? It would be used for 
semi-virtual hosts.

--- End Message ---
--- Begin Message ---
No, you can only have one php.ini file used by php... HOWEVER it is possible
to make changes to php.ini settings in the .htaccess files. Take a look at
http://www.php.net/manual/en/function.ini-set.php, it contains infomation on
the options that can be changed and where. How you make changes in .htaccess
I don't know, but at least this should give you a start!

- Original Message -
From: "Ithilhin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 7:05 PM
Subject: [PHP-WIN] running php with apache with different php.inis


> Is it possible to tell Apache which php.ini to use? It would be used for
> semi-virtual hosts.
>
>
> --
> PHP 

[PHP-WIN] Re: Subject: getting the OS

2003-01-03 Thread Neil Smith
On Apache Windows 2000, PHP 4.0.5

$HTTP_SERVER_VARS["SERVER_SOFTWARE"] returns :
"Apache/1.3.14 (Win32)"

On Apache Linux Redhat, PHP 4.0.6
$HTTP_SERVER_VARS["SERVER_SOFTWARE"] returns :
Apache/1.3.27 (Unix)  (Red-Hat/Linux) blah blah b;ah

So, you could easily use a regex to extract the (Win32) or (Unix) strings 
for your branch / test.

These variables are probably now called $_SERVER["SERVER_SOFTWARE"] under 
PHP > 4.2 - anybody care to confirm these results ?

Hope that helps
Regards,
Neil Smith.



At 00:42 04/01/2003 +, you wrote:
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Message-ID: <000c01c2b38a$166a01e0$3700a8c0@DaMouse>
From: "DaMouse" <[EMAIL PROTECTED]>
To: "PHP - Win" <[EMAIL PROTECTED]>
Date: Sat, 4 Jan 2003 00:41:19 -
MIME-Version: 1.0
Content-Type: multipart/related;
type="multipart/alternative";
boundary="=_NextPart_000_0008_01C2B389.FFECDDC0"
Subject: getting the OS

ok I develop stuff on both windoze and linux so say I left my computer 
running and forgot which it was running and wanted to make a OS specific 
script from another computer. How could I tell what OS it was to see if I 
needed to go reboot it?



Ensign Baker
HCO Officer
USS Atlantis


--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-WIN] Re: Subject: getting the OS

2003-01-03 Thread Dash McElroy
I can confirm that on Windows. My linux box has PHP 4.1.2.

You could also check some of the other environment variables. I just
compared my phpinfo() screens on my w2k box and my linux box. Looks like the
solution mentioned below is the cleanest, however.

Hopefully you don't need to differentiate between different Unix flavors. If
so, it appears that _ENV contains quite a few valuable variables (although I
cannot speak for the *BSD crowd, my linux type is in there in
$_ENV['MACHTYPE'] as 'i386-slackware-linux-gnu').

-Dash

-Original Message-
From: Neil Smith [mailto:[EMAIL PROTECTED]] 
Sent: Friday, January 03, 2003 5:24 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: Subject: getting the OS


On Apache Windows 2000, PHP 4.0.5

$HTTP_SERVER_VARS["SERVER_SOFTWARE"] returns :
"Apache/1.3.14 (Win32)"

On Apache Linux Redhat, PHP 4.0.6
$HTTP_SERVER_VARS["SERVER_SOFTWARE"] returns :
Apache/1.3.27 (Unix)  (Red-Hat/Linux) blah blah b;ah

So, you could easily use a regex to extract the (Win32) or (Unix) strings 
for your branch / test.

These variables are probably now called $_SERVER["SERVER_SOFTWARE"] under 
PHP > 4.2 - anybody care to confirm these results ?

Hope that helps
Regards,
Neil Smith.



At 00:42 04/01/2003 +, you wrote:
>PHP Windows Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>Message-ID: <000c01c2b38a$166a01e0$3700a8c0@DaMouse>
>From: "DaMouse" <[EMAIL PROTECTED]>
>To: "PHP - Win" <[EMAIL PROTECTED]>
>Date: Sat, 4 Jan 2003 00:41:19 -
>MIME-Version: 1.0
>Content-Type: multipart/related;
> type="multipart/alternative";
> boundary="=_NextPart_000_0008_01C2B389.FFECDDC0"
>Subject: getting the OS
>
>ok I develop stuff on both windoze and linux so say I left my computer 
>running and forgot which it was running and wanted to make a OS specific 
>script from another computer. How could I tell what OS it was to see if I 
>needed to go reboot it?
>
>
>
>Ensign Baker
>HCO Officer
>USS Atlantis


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php