Re: [PHP] How to know the path of `php.ini` used when call php.exe from CLI/command-line in Windows 7

2011-10-12 Thread Richard Quadling
On 11 October 2011 19:40, Nam Gi VU wrote: > Hi every one, > Currently when I call php --ini from CLI, I just see C:\Windows but search > for this location, I cannot find any php.ini files. > I'm stuck there - where is the php.ini file used by php.exe called from CLI > as below > > *C:> php --ini*

Re: [PHP] How to know the path of `php.ini` used when call php.exe from CLI/command-line in Windows 7

2011-10-11 Thread Daniel Brown
On Tue, Oct 11, 2011 at 14:40, Nam Gi VU wrote: > Hi every one, > Currently when I call php --ini from CLI, I just see C:\Windows but search > for this location, I cannot find any php.ini files. > I'm stuck there - where is the php.ini file used by php.exe called from CLI > as below > > *C:> php -

[PHP] How to know the path of `php.ini` used when call php.exe from CLI/command-line in Windows 7

2011-10-11 Thread Nam Gi VU
Hi every one, Currently when I call php --ini from CLI, I just see C:\Windows but search for this location, I cannot find any php.ini files. I'm stuck there - where is the php.ini file used by php.exe called from CLI as below *C:> php --ini* Hope to hear from you! Regards, Nam

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Devendra Jadhav
On Thu, Apr 1, 2010 at 11:30 PM, Nilesh Govindarajan wrote: > On 04/01/10 23:03, Kevin Kinsey wrote: > >> Nilesh Govindarajan wrote: >> >>> libphp5.so doesn't need the php binary. >>> >> >> You're right, and of course not. libphp5.so >> *is* a "PHP binary" :-) >> >> I've confirmed this using a te

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Nilesh Govindarajan
On 04/01/10 23:03, Kevin Kinsey wrote: Nilesh Govindarajan wrote: libphp5.so doesn't need the php binary. You're right, and of course not. libphp5.so *is* a "PHP binary" :-) I've confirmed this using a test. My local apache is configured to use libphp5.so I moved /usr/bin/php to /root, the

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Kevin Kinsey
Nilesh Govindarajan wrote: libphp5.so doesn't need the php binary. You're right, and of course not. libphp5.so *is* a "PHP binary" :-) I've confirmed this using a test. My local apache is configured to use libphp5.so I moved /usr/bin/php to /root, then started apache and ran drupal. It w

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Nilesh Govindarajan
libphp5.so doesn't need the php binary. I've confirmed this using a test. My local apache is configured to use libphp5.so I moved /usr/bin/php to /root, then started apache and ran drupal. It worked. This confirms that libphp5.so is independent of the php binary in /usr/bin as I suggested e

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Kevin Kinsey
Devendra Jadhav wrote: I am still confused. As per Nilesh php's binary is not required and as per Ashley it is required. Which one is correct? And I am not able to find which php's binary is used by using phpinfo(). Anyone confident about either of the two answers? Pretty confident about al

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Nilesh Govindarajan
On 04/01/10 20:30, Devendra Jadhav wrote: On Thu, Apr 1, 2010 at 7:22 PM, Devendra Jadhavwrote: On Thu, Apr 1, 2010 at 7:13 PM, Teus Benschopwrote: On Thu, 2010-04-01 at 19:07 +0530, Devendra Jadhav wrote: With my case both installation of PHP has version 5.x, so how to know which PHP is b

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Devendra Jadhav
On Thu, Apr 1, 2010 at 7:22 PM, Devendra Jadhav wrote: > On Thu, Apr 1, 2010 at 7:13 PM, Teus Benschop wrote: > >> On Thu, 2010-04-01 at 19:07 +0530, Devendra Jadhav wrote: >> > With my case both installation of PHP has version 5.x, so how to know >> which >> > PHP is being used? >> > >> Running t

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Devendra Jadhav
On Thu, Apr 1, 2010 at 7:13 PM, Teus Benschop wrote: > On Thu, 2010-04-01 at 19:07 +0530, Devendra Jadhav wrote: > > With my case both installation of PHP has version 5.x, so how to know > which > > PHP is being used? > > > Running this page through Apache could do it: > > phpinfo (); > ?> > > Te

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Teus Benschop
On Thu, 2010-04-01 at 19:07 +0530, Devendra Jadhav wrote: > With my case both installation of PHP has version 5.x, so how to know which > PHP is being used? > Running this page through Apache could do it: Teus. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Nilesh Govindarajan
On 04/01/10 19:00, Devendra Jadhav wrote: Hi All, In the situation if there are two PHP's installed on the Linux box. How to know which PHP is used by Apache? Another question is do Apache need PHP's binary to execute PHP Scripts? If yes what is the role of libphp5.so in Apache? Note: PHP is c

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Richard
Hi, > In the situation if there are two PHP's installed on the Linux box. > How to know which PHP is used by Apache? > > Another question is do Apache need PHP's binary to execute PHP Scripts? If > yes what is the role of libphp5.so in Apache? > > Note: PHP is configured as module under Apache. T

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Devendra Jadhav
On Thu, Apr 1, 2010 at 6:59 PM, Ashley Sheridan wrote: > On Thu, 2010-04-01 at 19:00 +0530, Devendra Jadhav wrote: > > Hi All, > > In the situation if there are two PHP's installed on the Linux box. > How to know which PHP is used by Apache? > > Another question is do Apache need PHP's binary to

Re: [PHP] How to know which PHP is used by Apache

2010-04-01 Thread Ashley Sheridan
On Thu, 2010-04-01 at 19:00 +0530, Devendra Jadhav wrote: > Hi All, > > In the situation if there are two PHP's installed on the Linux box. > How to know which PHP is used by Apache? > > Another question is do Apache need PHP's binary to execute PHP Scripts? If > yes what is the role of libphp5.

[PHP] How to know which PHP is used by Apache

2010-04-01 Thread Devendra Jadhav
Hi All, In the situation if there are two PHP's installed on the Linux box. How to know which PHP is used by Apache? Another question is do Apache need PHP's binary to execute PHP Scripts? If yes what is the role of libphp5.so in Apache? Note: PHP is configured as module under Apache. Appreciat

RE: [PHP] How to know what current system is?

2008-10-13 Thread Tom Shaw
You can try, $_SERVER['SERVER_SOFTWARE'] -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jiang Miao Sent: Monday, October 13, 2008 3:44 PM To: php-general@lists.php.net Subject: [PHP] How to know what current system is? Is there any function do that? w

[PHP] How to know what current system is?

2008-10-13 Thread Jiang Miao
Is there any function do that? when php in Linux it returns linux in windows it returns windows I found phpinfo(INFO_GENERAL); output the string System => Linux ubuntu 2.6.24-19-server. but I have no idea to get that info. Thanks Jiang Miao -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] How to know a requets from web page or client.

2007-05-08 Thread Richard Lynch
On Mon, May 7, 2007 10:20 pm, Le Phuoc Canh wrote: > Dear all, > How can we know a request from web page( ex : firefox, IE..) or from > client( > ex : window media, winamp, ...). Please help me ! You can't know for sure for sure, because it can always be forged. $_SERZVER['USER_AGENT'], I think.

RE: [PHP] How to know a requets from web page or client.

2007-05-08 Thread Le Phuoc Canh
-general@lists.php.net Subject: Re: [PHP] How to know a requets from web page or client. Le Phuoc Canh wrote: > How can we know a request from web page( ex : firefox, IE..) or from > client( ex : window media, winamp, ...). Please help me ! you need to look at the http request header, you c

Re: [PHP] How to know a requets from web page or client.

2007-05-07 Thread clive
Le Phuoc Canh wrote: How can we know a request from web page( ex : firefox, IE..) or from client( ex : window media, winamp, ...). Please help me ! you need to look at the http request header, you can use the $_SERVER['HTTP_USER_AGENT'] variable to access that. Please note some application

Re: [PHP] How to know a requets from web page or client.

2007-05-07 Thread Jim Lucas
Le Phuoc Canh wrote: Dear all, How can we know a request from web page( ex : firefox, IE..) or from client( ex : window media, winamp, ...). Please help me ! Thanks & Best Regard. Le Phuoc Canh Arrive Techologies Cell Phone : 0902147449 Home Phone : (08)9915349 Email: [EMA

[PHP] How to know a requets from web page or client.

2007-05-07 Thread Le Phuoc Canh
Dear all, How can we know a request from web page( ex : firefox, IE..) or from client( ex : window media, winamp, ...). Please help me ! Thanks & Best Regard. Le Phuoc Canh Arrive Techologies Cell Phone : 0902147449 Home Phone : (08)9915349 Email: [EMAIL PROTECTED]

[PHP] How to know?

2005-10-13 Thread gustav
Hi there! I have a string like this... (envorinment string) HOSTfriggAUDIODEV/tmp/SUNWut/dev/utaudio/8dtstart_sessionlogfile/dev/nullDTSCREENSAVERLISTStartDtscreenBlankXMBINDDIR/usr/dt/lib/bindingsUTAUDIODEV/tmp/SUNWut/dev/utaudio/8AB_CARDCATALOG/usr/dt/share/answerbooks/C/ab_cardcatalogLC_ALLCDT

RE: [PHP] how to know when a php library is installed

2005-08-22 Thread Miguel Guirao
Or phpinfo() -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: Domingo, 21 de Agosto de 2005 06:15 a.m. To: php-general@lists.php.net Subject: Re: [PHP] how to know when a php library is installed On 8/21/05, Lizet Pena de Sola <[EMAIL PROTECTED]> wrote: >

Re: [PHP] how to know when a php library is installed

2005-08-21 Thread Greg Donald
On 8/21/05, Lizet Pena de Sola <[EMAIL PROTECTED]> wrote: > I need to test whether a library is installed with php or not. extension_loaded(); -- Greg Donald Zend Certified Engineer MySQL Core Certification http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] how to know when a php library is installed

2005-08-21 Thread Lizet Pena de Sola
Contacting host, thanks :) -Original Message- From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED] Sent: Sunday, August 21, 2005 1:20 AM To: 'php' Subject: Re: [PHP] how to know when a php library is installed Lizet Pena de Sola wrote: > Hello all: > I need to test whet

Re: [PHP] how to know when a php library is installed

2005-08-21 Thread Jasper Bryant-Greene
Lizet Pena de Sola wrote: Hello all: I need to test whether a library is installed with php or not. In this case it's the tidy library I need for a project. Jasper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] how to know when a php library is installed

2005-08-21 Thread Lizet Pena de Sola
Hello all: I need to test whether a library is installed with php or not. In this case it's the tidy library I need for a project. After getting a message from the hosting administrator that the tidy library was installed and ready to use I ran a phpinfo() to find out details: There's nothing that

Re: [PHP] how to know referral function

2005-07-27 Thread André Medeiros
On Wed, 2005-07-27 at 15:14 +0200, Daniele Palumbo wrote: > hi. > > i have a p_debug(), that print out some useful information (for me). > > it is called by a lot of my functions, and i want to know which one is > generating the error. > the referral function :) > > no, i don't want to write in

[PHP] how to know referral function

2005-07-27 Thread Daniele Palumbo
hi. i have a p_debug(), that print out some useful information (for me). it is called by a lot of my functions, and i want to know which one is generating the error. the referral function :) no, i don't want to write in all call to p_debug some information on running function... thanks daniel

Re: [PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread Greg Donald
On 5/10/05, Blair Lowe <[EMAIL PROTECTED]> wrote: > Crackers will typically knock out php Did you have some statistics or is this just your own experience/assumption? I may as well switch to mod_ruby if they attack mod_php more often than not. -- Greg Donald Zend Certified Engineer http://dest

Re: [PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread Blair Lowe
On Tue, 2005-05-10 at 08:33, Greg Donald wrote: > On 5/10/05, balwant singh <[EMAIL PROTECTED]> wrote: > > is there any method to know whether the other webserver is running or not. > > There are lots of methods: > > system( 'telnet hostname 80' ); > > fopen(); > > fsockopen(); > > Curl. Hi,

RE: [PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread Mark Rees
ECTED] Sent: 10 May 2005 15:44 To: balwant singh Cc: php-general@lists.php.net Subject: Re: [PHP] how to know whether web server of a remote machine is running or not Try connecting to it on port 80, the default for web servers. You can actually play around by connecting to a webserver (or mail s

Re: [PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread Leif Gregory
Hello balwant, Tuesday, May 10, 2005, 5:59:15 AM, you wrote: b> is there any method to know whether the other webserver is running b> or not. http://us2.php.net/fsockopen You'll be doing what's termed an HTTP Ping. You make a socket connection to the other server, perform a GET request on a page

Re: [PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread Petar Nedyalkov
On Tuesday 10 May 2005 14:59, balwant singh wrote: > Hi, > > I want to make a page (on a webserver) which will be redirected to > another page on another webserver and hence i want to know whether the > another webserver is running or not so that if the webserver is not > running it do something e

Re: [PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread Brent Baisley
Try connecting to it on port 80, the default for web servers. You can actually play around by connecting to a webserver (or mail server) through telnet. On the command line just type "telnet website.com 80". If the server is up, you should be able to interact with the webserver. Type something

Re: [PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread Greg Donald
On 5/10/05, balwant singh <[EMAIL PROTECTED]> wrote: > is there any method to know whether the other webserver is running or not. There are lots of methods: system( 'telnet hostname 80' ); fopen(); fsockopen(); Curl. -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP Genera

[PHP] how to know whether web server of a remote machine is running or not

2005-05-10 Thread balwant singh
Hi, I want to make a page (on a webserver) which will be redirected to another page on another webserver and hence i want to know whether the another webserver is running or not so that if the webserver is not running it do something else. is there any method to know whether the other webserve

Re: [PHP] How to know if php CAN write files on server and WHERE it can?

2005-04-30 Thread Giulio
Thanks Richard for your answer Il giorno 29/apr/05, alle 10:07 PM, Richard Lynch ha scritto: If you're just going to delete the files after your script is done, why copy them somewhere else at all? Your best bet is to try and use the /tmp dir, or, more properly, what PHP thinks is a "good" place

Re: [PHP] How to know if php CAN write files on server and WHERE it can?

2005-04-29 Thread Richard Lynch
On Fri, April 29, 2005 1:51 am, Giulio said: > Having to read some uploaded files, perform operations on them ( > basically attach them on a single file ), and then save the resulting > file using ftp, and trying to have the php page as general as possible > ( I mean have it work on the larger numb

[PHP] How to know if php CAN write files on server and WHERE it can?

2005-04-29 Thread Giulio
I know, uploading files and handling them is an issue covered again and again, but there are still some answers I can'tfind on archives. Having to read some uploaded files, perform operations on them ( basically attach them on a single file ), and then save the resulting file using ftp, and try

Re: [PHP] How to know wheter a message will be logged or not

2003-10-02 Thread Marek Kilimajer
Current version of PHP cannot forsee the future, this will be worked on when PHP5 is out and stabilized. Untill then you have to make your own judgments, for example if the array you feed into very_slow_func() has more then 1486 elements, your code will time out. Zak Mc Kracken wrote: Hi all,

[PHP] How to know wheter a message will be logged or not

2003-10-02 Thread Zak Mc Kracken
Hi all, I'm using syslog() function to log messages. My problem is enough typical. An example: syslog ( LOG_DEBUG, "The function output is: " . very_slow_func () ); Since very_slow_func() is, as written, very slow, I would like to know in advance if this message will be actually logged or not, so

Re: [PHP] How to know files in a directory

2002-11-09 Thread John Nichel
Yeah, spend a milisecond looking at the manual, and you'll find "Filesystem Functions" Mohd_Q wrote: I wonder if there is a way to get the files names in a given directory. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] How to know files in a directory

2002-11-09 Thread Marco Tabini
Try readdir() http://www.php.net/manual/en/function.readdir.php Marco -- php|architect - The magazine for PHP Professionals The first monthly worldwide magazine dedicated to PHP programmers Check us out on the web at http://www.phparch.com On Sat, 2002-11-09 at 15:01, Mohd_Q wrot

[PHP] How to know files in a directory

2002-11-09 Thread Mohd_Q
I wonder if there is a way to get the files names in a given directory.

Re: [PHP] how to know upload progress status

2002-07-12 Thread Alberto Serra
ðÒÉ×ÅÔ! John Holmes wrote: > Not possible with HTTP, as far as I know. The file is simply sent, > there's no communication back and forth. > > ---John Holmes... That's from within a single script. But it becvomes possible if you have a page like this +---+ ! +---+ ! ! mai

RE: [PHP] how to know upload progress status

2002-07-11 Thread John Holmes
Not possible with HTTP, as far as I know. The file is simply sent, there's no communication back and forth. ---John Holmes... > -Original Message- > From: S. [mailto:[EMAIL PROTECTED]] > Sent: Thursday, July 11, 2002 2:45 AM > To: [EMAIL PROTECTED] > Subject: [PHP

RE: [PHP] How to know if we're using http or https

2002-07-11 Thread LeTortorec, Jean-Louis
Thanks to all for your prompt replies! It works just fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How to know if we're using http or https

2002-07-11 Thread Brian McGarvie
yip on the browser a small padlock should appear > -Original Message- > From: LeTortorec, Jean-Louis [mailto:[EMAIL PROTECTED]] > Sent: 11 July 2002 4:33 PM > To: [EMAIL PROTECTED] > Subject: [PHP] How to know if we're using http or https > > > Hello a

Re: [PHP] How to know if we're using http or https

2002-07-11 Thread Chris Boget
You can use either of the following checks to see if the user is using HTTPS... $HTTPS == "on" $SERVER_PORT == "443" Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to know if we're using http or https

2002-07-11 Thread R'twick Niceorgaw
if ( $_SERVER["HTTPS"]=="on" ) user using HTTPS else user usin http - Original Message - From: "LeTortorec, Jean-Louis" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 11, 2002 8:32 AM Subject: [PHP] How to know

[PHP] How to know if we're using http or https

2002-07-11 Thread LeTortorec, Jean-Louis
Hello all! Is there a flag that would tell me if the page requested is using SSL, by https, or regular http? I'm not sure I could get that from PHP, or from Apache/PHP. Thanks for your help. Jean-Louis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.n

[PHP] how to know upload progress status

2002-07-10 Thread S.
Hello, I'm beginning to use PHP, maybe my question is very simple... Anyway, I want permit users to upload files using a form, and I would show them the upload progress status... I don't know how to extract informations about upload progress status and how to show informations to users. For exam

RE: [PHP] how to know if email sent

2001-10-19 Thread David Pearson
, 2001 8:09 AM To: [EMAIL PROTECTED] Subject: [PHP] how to know if email sent hi everybody i'm making an automatic booking system in php. for the hotelier it's also possible to calculte offers and send them to his gasts. we send the email with @mail and although we put in a right-formated

[PHP] how to know if email sent

2001-10-19 Thread Alexander Jäger
hi everybody i'm making an automatic booking system in php. for the hotelier it's also possible to calculte offers and send them to his gasts. we send the email with @mail and although we put in a right-formated (with @ in it etc.) but wrong email adress the function results true. so we tried to

Re: [PHP] how to know which web dir you're in

2001-02-09 Thread Matt
Your best bet would probably be to use the environment variables getenv("REQUEST_URI") will get you the URL minus the host name, so basically it's the relative path. getenv("HTTP_HOST") will return the hostname (www.whatever.com) Hope this helps. Regards, Matt At 09:40 AM 2/9/2001, you wrote

Re: [PHP] how to know which web dir you're in

2001-02-09 Thread John Vanderbeck
ROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 09, 2001 10:40 AM Subject: [PHP] how to know which web dir you're in > Anyone got any ideas on how to tell what the url you're at? One of my sites > is for a bank with a bunch of branches, and when people go to a site for

[PHP] how to know which web dir you're in

2001-02-09 Thread Jason Jacobs
Anyone got any ideas on how to tell what the url you're at? One of my sites is for a bank with a bunch of branches, and when people go to a site for a branch, I want the "prequalify for loan" to know where the person came from (it's the same page for all branches, but it just has a select box) an