Re: [PHP] phpinfo()
John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I cannot find button2 in phpinfo() when I click it. I was hoping to find a $_POST[button2] value. What am I doing wrong? input type=button name=button2 id=button2 value=Print Mode onclick=formSubmit() I really wanted to use a button to pass a different condition than a input type=submit Use a different value or name on the input type=submit/ button. Don't use JavaScript to trigger the form like that. Its not necessary and will bite you in the ass if ypu get a visitor who browses without JavaScript, which can include security aware users, blind users, etc Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Try $_POST['button2'] Best regards. Steven -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo()
On Feb 19, 2013, at 7:57 PM, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I cannot find button2 in phpinfo() when I click it. I was hoping to find a $_POST[button2] value. What am I doing wrong? input type=button name=button2 id=button2 value=Print Mode onclick=formSubmit() I really wanted to use a button to pass a different condition than a input type=submit Lot's of different ways to pass values via forms. Try using : input type=hidden name=button2 value=2 Then check the button2 value via a: $button2 = isset($_POST['button2']) ? $_POST['button2'] : null; That's one way -- there are many more. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo()
Design in Motion Webdesign wrote: John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I cannot find button2 in phpinfo() when I click it. I was hoping to find a $_POST[button2] value. What am I doing wrong? input type=button name=button2 id=button2 value=Print Mode onclick=formSubmit() I really wanted to use a button to pass a different condition than a input type=submit Use a different value or name on the input type=submit/ button. Don't use JavaScript to trigger the form like that. Its not necessary and will bite you in the ass if ypu get a visitor who browses without JavaScript, which can include security aware users, blind users, etc Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Try $_POST['button2'] Best regards. Steven $_POST['button2'] does not exist. I'm using radio to get aorund it for now. A button would have been cleaner. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo()
On Wed, 2013-02-20 at 14:23 -0500, John Taylor-Johnston wrote: Design in Motion Webdesign wrote: John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I cannot find button2 in phpinfo() when I click it. I was hoping to find a $_POST[button2] value. What am I doing wrong? input type=button name=button2 id=button2 value=Print Mode onclick=formSubmit() I really wanted to use a button to pass a different condition than a input type=submit Use a different value or name on the input type=submit/ button. Don't use JavaScript to trigger the form like that. Its not necessary and will bite you in the ass if ypu get a visitor who browses without JavaScript, which can include security aware users, blind users, etc Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Try $_POST['button2'] Best regards. Steven $_POST['button2'] does not exist. I'm using radio to get aorund it for now. A button would have been cleaner. input type=submit name=button2 value=button/ Not sure what you have against submit buttons, because this will do what you want and you don't need to be doing whatever it is you're doing with radio buttons? Thanks, Ash http://www.ashleysheridan.co.uk
Re: [PHP] phpinfo()
On 20 Feb 2013, at 19:23, John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: Design in Motion Webdesign wrote: John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I cannot find button2 in phpinfo() when I click it. I was hoping to find a $_POST[button2] value. What am I doing wrong? input type=button name=button2 id=button2 value=Print Mode onclick=formSubmit() I really wanted to use a button to pass a different condition than a input type=submit Use a different value or name on the input type=submit/ button. Don't use JavaScript to trigger the form like that. Its not necessary and will bite you in the ass if ypu get a visitor who browses without JavaScript, which can include security aware users, blind users, etc Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Try $_POST['button2'] Best regards. Steven $_POST['button2'] does not exist. I'm using radio to get aorund it for now. A button would have been cleaner. You were given the answer, did you not try it? Starting with the code in your original post: 1) Change the type to submit. 2) Remove the onclick. 3) Job done! -Stuart -- Sent from my leaf blower -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo()
On Feb 20, 2013, at 2:31 PM, Stuart Dallas stu...@3ft9.com wrote: You were given the answer, did you not try it? Starting with the code in your original post: 1) Change the type to submit. 2) Remove the onclick. 3) Job done! -Stuart Sometimes you just can't help. Sent from my leaf blower :-) Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo()
On Wed, Feb 20, 2013 at 1:31 PM, Stuart Dallas stu...@3ft9.com wrote: -Stuart -- Sent from my leaf blower -- Did you get the 4G model, or is this just the WiFi version? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo()
John Taylor-Johnston john.taylor-johns...@cegepsherbrooke.qc.ca wrote: I cannot find button2 in phpinfo() when I click it. I was hoping to find a $_POST[button2] value. What am I doing wrong? input type=button name=button2 id=button2 value=Print Mode onclick=formSubmit() I really wanted to use a button to pass a different condition than a input type=submit Use a different value or name on the input type=submit/ button. Don't use JavaScript to trigger the form like that. Its not necessary and will bite you in the ass if ypu get a visitor who browses without JavaScript, which can include security aware users, blind users, etc Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo
On Sun, Jun 17, 2012 at 10:22 PM, Jim Giner jim.gi...@albanyhandball.com wrote: When one executes a phpinfo call, the display of info broken into the various sections mostly makes sense. The $_SERVER vars are listed with a _SERVER name, the environment ones show _ENV, and so on. But I question what are the duplicate ones that dont' have a prefix name. My concern is the PHP_AUTH_PW setting, which I was able to remove from the ENV and SERVER sections, but not from the section titled Environment. How does one do this? Those are the ones returned from getenv [1] or apache_getenv [2], and you can set them using putenv [3] resp. apache_setenv [4]. - Matijn [1] www.php.net/getenv [2] www.php.net/apache_getenv [3] www.php.net/putenv [4] www.php.net/apache_setenv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo
Matijn Woudt tijn...@gmail.com wrote in message news:cac_gtumpirenkswm2-lucwhbycmxdgg3a+hwr1aoqwiyz40...@mail.gmail.com... On Sun, Jun 17, 2012 at 10:22 PM, Jim Giner jim.gi...@albanyhandball.com wrote: When one executes a phpinfo call, the display of info broken into the various sections mostly makes sense. The $_SERVER vars are listed with a _SERVER name, the environment ones show _ENV, and so on. But I question what are the duplicate ones that dont' have a prefix name. My concern is the PHP_AUTH_PW setting, which I was able to remove from the ENV and SERVER sections, but not from the section titled Environment. How does one do this? Those are the ones returned from getenv [1] or apache_getenv [2], and you can set them using putenv [3] resp. apache_setenv [4]. - Matijn #1 - getenv does return the value that I expect #2 - apache_getenv is not recognized by my php It's in the php.net manual, but my editor doesn't like it and php errors out on it. ?? #3 - I tried putenv to set the value to something like '' and then I did a phpinfo - now I have two names - one with a password and one with '' in it. [1] www.php.net/getenv [2] www.php.net/apache_getenv [3] www.php.net/putenv [4] www.php.net/apache_setenv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo
oops - read the notes for PUTENV. Did the 'delete' properly and now I have no entries for php_auth_pw. For those reading along - to remove the variable use putenv(varname) NOT putenv(varname= '' ); Thanks Martijn!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPInfo disabled due to security
On Tue, Dec 21, 2010 at 02:40, Ravi Gehlot r...@ravigehlot.net wrote: Hello there, If you have a small to medium size web site then go to GoDaddy. Do not believe all that you see from php_info(). I will give you an example. The memory_limit it gives on shared hosting does not reflect the one intended for your shared account. It shows what was set for overall use. But blocking php_info() isn't right (at least I don't think so). Please don't top-post in addition to giving incorrect information like this. -- /Daniel P. Brown Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPInfo disabled due to security
Hello there, If you have a small to medium size web site then go to GoDaddy. Do not believe all that you see from php_info(). I will give you an example. The memory_limit it gives on shared hosting does not reflect the one intended for your shared account. It shows what was set for overall use. But blocking php_info() isn't right (at least I don't think so). Ravi. On Fri, Dec 17, 2010 at 10:25 AM, Daniel Brown danbr...@php.net wrote: On Thu, Dec 16, 2010 at 23:39, Paul S pau...@roadrunner.com wrote: Well, I was hoping for stronger arguments to get that DONE. I would think there be something in the PHP license that would FORBID disabling functionality. Really? You would really think that? Because we wouldn't. After all, 'phpinfo' is essential, really, to achieving secure applications, isn't it? No. Writing good code is essential. -- /Daniel P. Brown Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPInfo disabled due to security
On Dec 16, 2010, at 10:39 PM, Paul S wrote: On Thu, 16 Dec 2010 00:13:31 +0700, Daniel P. Brown daniel.br...@parasane.net wrote: Well, phpinfo() does, by default, divulge some things that could be considered security concerns --- particularly in poorly-managed environments. Primarily, this is by giving a synopsis of versions and paths of software, but some versions and configurations will also broadcast information about the currently logged-in user (PTS/TTY) in the $_ENV display. Sure, you can display everything manually that phpinfo() does automatically, but it's easier for some to vilify something because they heard it was bad than to actually address the greater issues. In cases like this, I'd agree with Al's response; there are plenty of other web hosts out there. Well, I was hoping for stronger arguments to get that DONE. I would think there be something in the PHP license that would FORBID disabling functionality. After all, 'phpinfo' is essential, really, to achieving secure applications, isn't it? My setups are secure, I want to keep it that way. Shouldn't hosters be required to provide an alternative phpinfo, say behind the login control panel? I don't know that I would say that phpinfo() is essential. Helpful, yes. A pain in the neck when you need it and you don't have it - absolutely. But, there are ways around it. As daniel had mentioned already, you can call it all manually. If changing hosting is a problem, sit down, take an hour and write your own phpinfo(), all the info you need is in the manual. I can't see that anyone could upload a phpinfo command to a properly configured server and execute it. I have renamed my 'phpinfo.php' file to something innocuous. You have taken precautions, but it doesn't mean that another fella on the same server did. Unfortunately I've found changing hosting companies to often result in a lot of work for just as obnoxious tech service as the last. Perhaps writing a bit more portable code would alleviate the extra work. Of course, I do not know your specific situation, so it is not my call if it is even possible. But, the software engineer in me says to spend extra time writing code that can move from server to server easily. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPInfo disabled due to security
On Thu, Dec 16, 2010 at 23:39, Paul S pau...@roadrunner.com wrote: Well, I was hoping for stronger arguments to get that DONE. I would think there be something in the PHP license that would FORBID disabling functionality. Really? You would really think that? Because we wouldn't. After all, 'phpinfo' is essential, really, to achieving secure applications, isn't it? No. Writing good code is essential. -- /Daniel P. Brown Network Infrastructure Manager Documentation, Webmaster Teams http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPInfo disabled due to security
On Thu, 16 Dec 2010 00:13:31 +0700, Daniel P. Brown daniel.br...@parasane.net wrote: Well, phpinfo() does, by default, divulge some things that could be considered security concerns --- particularly in poorly-managed environments. Primarily, this is by giving a synopsis of versions and paths of software, but some versions and configurations will also broadcast information about the currently logged-in user (PTS/TTY) in the $_ENV display. Sure, you can display everything manually that phpinfo() does automatically, but it's easier for some to vilify something because they heard it was bad than to actually address the greater issues. In cases like this, I'd agree with Al's response; there are plenty of other web hosts out there. Well, I was hoping for stronger arguments to get that DONE. I would think there be something in the PHP license that would FORBID disabling functionality. After all, 'phpinfo' is essential, really, to achieving secure applications, isn't it? My setups are secure, I want to keep it that way. Shouldn't hosters be required to provide an alternative phpinfo, say behind the login control panel? I can't see that anyone could upload a phpinfo command to a properly configured server and execute it. I have renamed my 'phpinfo.php' file to something innocuous. Unfortunately I've found changing hosting companies to often result in a lot of work for just as obnoxious tech service as the last. Thank you both for the feedback. It helps. I've had fetching issues past couple days with my connection but think I got that will straightened out soon. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPInfo disabled due to security
On Wed, Dec 15, 2010 at 09:57, Paul S pau...@adelphia.net wrote: Warning: phpinfo() has been disabled for security reasons in /home/.../php/phpinfo.php on line 2 My ISP has disabled phpinfo and has not answered my tech requests on this for over a month. They seem to never have a thing to do but play games with silly security issues. Well, phpinfo() does, by default, divulge some things that could be considered security concerns --- particularly in poorly-managed environments. Primarily, this is by giving a synopsis of versions and paths of software, but some versions and configurations will also broadcast information about the currently logged-in user (PTS/TTY) in the $_ENV display. Sure, you can display everything manually that phpinfo() does automatically, but it's easier for some to vilify something because they heard it was bad than to actually address the greater issues. In a day some phone calls are going to be made. I need some help. What brief arguments should I be giving to get this changed? In cases like this, I'd agree with Al's response; there are plenty of other web hosts out there. (My own signature is not intended as a form of advertisement in this case, mind you it's simply the default. ;-P) -- /Daniel P. Brown Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting (866-) 725-4321 http://www.parasane.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo shows wrong value of post_max_size
В сообщении от Wednesday 18 June 2008 14:25:35 Yi Wang написал(а): Hi, These day I'm working around large file uploading. php runs on the windows server 2003. I changed the post_max_size value in the registry. Then phpinfo reports the value changed from 8M to 200M (local value. Master value stayed still 8M.). I think phpinfo should report that value as 8M, not 200M. So does ini_get. -- Regards, Wang Yi restart your IIS server :) -- === С уважением, Манылов Павел aka [R-k] icq: 949-388-0 mailto:[EMAIL PROTECTED] === А ещё говорят так: В результате упорных тренировок гимнаст Петров стал в совершенстве владеть своим телом. И теперь другие тела ему до лампочки. [fortune]
Re: [PHP] PHPInfo - the application
Richard Heyes wrote: Does anyone have a URL for it? Naturally Google returns a lot of pages which are about the actual function. http://www.php.net/ just put phpinfo into the 'search for' and you will get the REAL data for it. Google is never the best starting point when you know what you are looking for! -- Lester Caine - G8HFL - Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPInfo - the application
Richard Heyes wrote: Lester Caine wrote: Richard Heyes wrote: Does anyone have a URL for it? Naturally Google returns a lot of pages which are about the actual function. http://www.php.net/ just put phpinfo into the 'search for' and you will get the REAL data for it. Google is never the best starting point when you know what you are looking for! Did you actually read my email? The subject is a rather good hint too. Do you mean phpsysinfo? http://phpsysinfo.sf.net/ -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPInfo - the application
Do you mean phpsysinfo? http://phpsysinfo.sf.net/ Bingo, thanks. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPInfo - the application
Lester Caine wrote: Richard Heyes wrote: Does anyone have a URL for it? Naturally Google returns a lot of pages which are about the actual function. http://www.php.net/ just put phpinfo into the 'search for' and you will get the REAL data for it. Google is never the best starting point when you know what you are looking for! Did you actually read my email? The subject is a rather good hint too. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support ** NOW OFFERING FREE ACCOUNTS TO CHARITIES AND NON-PROFITS ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPInfo - the application
Richard Heyes wrote: Do you mean phpsysinfo? http://phpsysinfo.sf.net/ Bingo, thanks. I bet google works as well now :) THAT looks a very useful package and it's been sitting in the package list on all my Linux machines un-found. I've already got it set up on the local network! -- Lester Caine - G8HFL - Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo problem
Thanks Chris, That was the problem. Is this new php5? I've used 3 prior php4 version and didn't have this problem. Thanks, Rick Chris wrote: You probably just have short_open_tags set to Off in your php.ini file. If so, either turn it On, or change the file to be: ?php phpinfo(); ? Chris Rick Knight wrote: I have just installed PHP-5.2.3 on my Kubuntu Feisty box. I removed all the debian php first and then compiled php with the options I needed. Now everything seems to be working except phpinfo.php which consists of one line. ? phpinfo(); ? I get a blank screen. If I delete the php.ini file it get the usual phpinfo output. php -r phpinfo(); works as does php -i and my php scripts run fine. What would cause phpinfo.php to not work? It's set rw for the apache2 user so I think the permissions are right. Is there a phpinfo enable/disable in the php.ini? Or in ./configure? Thanks. Rick Knight -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo problem
Rick Knight wrote: Thanks Chris, That was the problem. Is this new php5? I've used 3 prior php4 version and didn't have this problem. The default value for short_open_tags was flipped a while back. Might I suggest you read the changelog next time you upgrade to a newer version - it tells you important stuff like that. -Stut -- http://stut.net/ Chris wrote: You probably just have short_open_tags set to Off in your php.ini file. If so, either turn it On, or change the file to be: ?php phpinfo(); ? Chris Rick Knight wrote: I have just installed PHP-5.2.3 on my Kubuntu Feisty box. I removed all the debian php first and then compiled php with the options I needed. Now everything seems to be working except phpinfo.php which consists of one line. ? phpinfo(); ? I get a blank screen. If I delete the php.ini file it get the usual phpinfo output. php -r phpinfo(); works as does php -i and my php scripts run fine. What would cause phpinfo.php to not work? It's set rw for the apache2 user so I think the permissions are right. Is there a phpinfo enable/disable in the php.ini? Or in ./configure? Thanks. Rick Knight -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo problem
The default value for short_open_tags was flipped a while back. Might I suggest you read the changelog next time you upgrade to a newer version - it tells you important stuff like that. And, FWIW, never use short tags. Always use ?php -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo problem
Stut wrote: Rick Knight wrote: Thanks Chris, That was the problem. Is this new php5? I've used 3 prior php4 version and didn't have this problem. The default value for short_open_tags was flipped a while back. Might I suggest you read the changelog next time you upgrade to a newer version - it tells you important stuff like that. The problem people will have is having to go through ALL the PHP5 changes when converting from PHP4. That particular one adds a lot of characters to files on some PHP4 upgrades, where there are lots of ? ? - so switching it is the quicker fix. -- Lester Caine - G8HFL - Contact - http://home.lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://home.lsces.co.uk MEDW - http://home.lsces.co.uk/ModelEngineersDigitalWorkshop/ Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo problem
The default value for short_open_tags was flipped a while back. Might I suggest you read the changelog next time you upgrade to a newer version - it tells you important stuff like that. The problem people will have is having to go through ALL the PHP5 changes when converting from PHP4. Why is that a problem? I would have thought that that is automatic. Surely you're not suggesting that people are upgrading from PHP4 to PHP5 without exhaustive testing? That particular one adds a lot of characters to files on some PHP4 upgrades, where there are lots of ? ? - so switching it is the quicker fix. ^ on ? -- Richard Heyes +44 (0)844 801 1072 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo problem
Richard Heyes wrote: The default value for short_open_tags was flipped a while back. Might I suggest you read the changelog next time you upgrade to a newer version - it tells you important stuff like that. The problem people will have is having to go through ALL the PHP5 changes when converting from PHP4. Why is that a problem? I would have thought that that is automatic. Surely you're not suggesting that people are upgrading from PHP4 to PHP5 without exhaustive testing? That particular one adds a lot of characters to files on some PHP4 upgrades, where there are lots of ? ? - so switching it is the quicker fix. ^ on ? Most of my tags are the long type, justa very, very few that are not, but I have turned short tag support on. Also, this was not a planned upgrade. I run Slackware 9.0, PHP4 MySQL4 on my server, Kubuntu on my workstations. Debian has dropped support for MySQL 4. I needed to add mysql 4 to my workstation (to solve a server problem) and found that the mysql4 binary was not compatible with the debian packaged php5 so I had to remove that and install php5 from source. Kind of a domino effect. I do much more reading and testing when do a planned upgrade, I just didn't have the time this time. Thanks, Rick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo problem
On Mon, 2007-08-13 at 17:07 +0100, Lester Caine wrote: Stut wrote: Rick Knight wrote: Thanks Chris, That was the problem. Is this new php5? I've used 3 prior php4 version and didn't have this problem. The default value for short_open_tags was flipped a while back. Might I suggest you read the changelog next time you upgrade to a newer version - it tells you important stuff like that. The problem people will have is having to go through ALL the PHP5 changes when converting from PHP4. That particular one adds a lot of characters to files on some PHP4 upgrades, where there are lots of ? ? - so switching it is the quicker fix. Sure it's quicker. But search and replace is pretty damn fast too. Not to mention future proof. Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo problem
On Sun, August 12, 2007 10:32 pm, Rick Knight wrote: I have just installed PHP-5.2.3 on my Kubuntu Feisty box. I removed all the debian php first and then compiled php with the options I needed. Now everything seems to be working except phpinfo.php which consists of one line. ? phpinfo(); ? I get a blank screen. If I delete the php.ini file it get the usual phpinfo output. php -r phpinfo(); works as does php -i and my php scripts run fine. What would cause phpinfo.php to not work? It's set rw for the apache2 user so I think the permissions are right. Is there a phpinfo enable/disable in the php.ini? Or in ./configure? You probably have short_open_tags OFF and so you need ?php phpinfo();? instead of just ? ... ? You'd know for sure if you looked at View Source and saw ? phpinfo();? for the short-tag version, but the ?php version worked. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo problem
You probably just have short_open_tags set to Off in your php.ini file. If so, either turn it On, or change the file to be: ?php phpinfo(); ? Chris Rick Knight wrote: I have just installed PHP-5.2.3 on my Kubuntu Feisty box. I removed all the debian php first and then compiled php with the options I needed. Now everything seems to be working except phpinfo.php which consists of one line. ? phpinfo(); ? I get a blank screen. If I delete the php.ini file it get the usual phpinfo output. php -r phpinfo(); works as does php -i and my php scripts run fine. What would cause phpinfo.php to not work? It's set rw for the apache2 user so I think the permissions are right. Is there a phpinfo enable/disable in the php.ini? Or in ./configure? Thanks. Rick Knight -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo displays blank page
On 6/20/07, Tijnema [EMAIL PROTECTED] wrote: On 6/21/07, Jeff Schwartz [EMAIL PROTECTED] wrote: You're right, that works. So why doesn't my script work? All it contains is: ?php phpinfo(); ? Hard to say, as this just *should* work. What you can try is to hook up the processor with some debugger The strace program will do the job I think, if not, then you should move on to GDB. This should point out some errors that point to the problem. Oh, btw, maybe very obvious but is your script readable by the user you execute the PHP CLI with? Tijnema *Also, please don't top post...* Tijnema [EMAIL PROTECTED] wrote: On 6/20/07, Jeff Schwartz wrote: Thanks for getting back to me so quickly. I checked the archives and viewed the source before I posted the problem. The source is empty except for the junk IE puts into it. Is there a specific log or error file I should check? I upgraded from 4.x. I also ran php phpinfo.php (phpinfo.php is a script containing only the phpinfo command) at a server prompt but nothing was displayed. What happens if you run this on the command line: php -r phpinfo(); That should work :) Tijnema Jochem Maas wrote: Daniel Brown wrote: On 6/20/07, Jeff Schwartz wrote: When I run phpinfo() nothing is displayed. It used to work. I recently upgraded to 5.2.1 but I can't be sure that's exactly when phpinfo stopped working. Has anyone else run into this? lots of people :-) what did you upgrade from? do what Dan said - only I'd run through his points in the following order 2,3,1 you may have php setup to log elsewhere than the apache error log - if so check there also. lastly I sometimes find it useful to try running the cmdline version php - sometimes I screw things up and the cmdline is helpful in that it [sometimes] spits out a bunch of errors (usually related to extensions that could not be loaded) Thanks, Jeff - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. 1.) Search the archives. 2.) Try to view the source of the page. If you see the PHP source, it's not working properly. 3.) Check the Apache error logs. See what you come up with after trying all three of the above and post your results. It'll give everyone here a better idea of what your particular problem may be. - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Jeff, Check to make sure that the extension is loaded when you restart Apache. You did restart Apache, right? -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo displays blank page
On 6/21/07, Daniel Brown [EMAIL PROTECTED] wrote: On 6/20/07, Tijnema [EMAIL PROTECTED] wrote: On 6/21/07, Jeff Schwartz [EMAIL PROTECTED] wrote: You're right, that works. So why doesn't my script work? All it contains is: ?php phpinfo(); ? Hard to say, as this just *should* work. What you can try is to hook up the processor with some debugger The strace program will do the job I think, if not, then you should move on to GDB. This should point out some errors that point to the problem. Oh, btw, maybe very obvious but is your script readable by the user you execute the PHP CLI with? Tijnema *Also, please don't top post...* Tijnema [EMAIL PROTECTED] wrote: On 6/20/07, Jeff Schwartz wrote: Thanks for getting back to me so quickly. I checked the archives and viewed the source before I posted the problem. The source is empty except for the junk IE puts into it. Is there a specific log or error file I should check? I upgraded from 4.x. I also ran php phpinfo.php (phpinfo.php is a script containing only the phpinfo command) at a server prompt but nothing was displayed. What happens if you run this on the command line: php -r phpinfo(); That should work :) Tijnema Jochem Maas wrote: Daniel Brown wrote: On 6/20/07, Jeff Schwartz wrote: When I run phpinfo() nothing is displayed. It used to work. I recently upgraded to 5.2.1 but I can't be sure that's exactly when phpinfo stopped working. Has anyone else run into this? lots of people :-) what did you upgrade from? do what Dan said - only I'd run through his points in the following order 2,3,1 you may have php setup to log elsewhere than the apache error log - if so check there also. lastly I sometimes find it useful to try running the cmdline version php - sometimes I screw things up and the cmdline is helpful in that it [sometimes] spits out a bunch of errors (usually related to extensions that could not be loaded) Thanks, Jeff - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. 1.) Search the archives. 2.) Try to view the source of the page. If you see the PHP source, it's not working properly. 3.) Check the Apache error logs. See what you come up with after trying all three of the above and post your results. It'll give everyone here a better idea of what your particular problem may be. - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Jeff, Check to make sure that the extension is loaded when you restart Apache. You did restart Apache, right? -- Daniel P. Brown Good point, but that doesn't affect the PHP CLI ;) Tijnema -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo displays blank page
On 6/21/07, Tijnema [EMAIL PROTECTED] wrote: Good point, but that doesn't affect the PHP CLI ;) Tijnema Yes, I'm aware of that but if the CGI/module displays the correct stuff, then it can narrow the problems down to the CLI itself. With regard to the CLI, try a few things from the command line: `whereis php` # Shows all PHP-CLIs in $PATH `which php` # Shows which PHP-CLI is being used. `php -v` # Shows the version of PHP from the `which` command. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo displays blank page
On 6/20/07, Jeff Schwartz [EMAIL PROTECTED] wrote: When I run phpinfo() nothing is displayed. It used to work. I recently upgraded to 5.2.1 but I can't be sure that's exactly when phpinfo stopped working. Has anyone else run into this? Thanks, Jeff - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. 1.) Search the archives. 2.) Try to view the source of the page. If you see the PHP source, it's not working properly. 3.) Check the Apache error logs. See what you come up with after trying all three of the above and post your results. It'll give everyone here a better idea of what your particular problem may be. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo displays blank page
Daniel Brown wrote: On 6/20/07, Jeff Schwartz [EMAIL PROTECTED] wrote: When I run phpinfo() nothing is displayed. It used to work. I recently upgraded to 5.2.1 but I can't be sure that's exactly when phpinfo stopped working. Has anyone else run into this? lots of people :-) what did you upgrade from? do what Dan said - only I'd run through his points in the following order 2,3,1 you may have php setup to log elsewhere than the apache error log - if so check there also. lastly I sometimes find it useful to try running the cmdline version php - sometimes I screw things up and the cmdline is helpful in that it [sometimes] spits out a bunch of errors (usually related to extensions that could not be loaded) Thanks, Jeff - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. 1.) Search the archives. 2.) Try to view the source of the page. If you see the PHP source, it's not working properly. 3.) Check the Apache error logs. See what you come up with after trying all three of the above and post your results. It'll give everyone here a better idea of what your particular problem may be. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo displays blank page
Thanks for getting back to me so quickly. I checked the archives and viewed the source before I posted the problem. The source is empty except for the junk IE puts into it. Is there a specific log or error file I should check? I upgraded from 4.x. I also ran php phpinfo.php (phpinfo.php is a script containing only the phpinfo command) at a server prompt but nothing was displayed. Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown wrote: On 6/20/07, Jeff Schwartz wrote: When I run phpinfo() nothing is displayed. It used to work. I recently upgraded to 5.2.1 but I can't be sure that's exactly when phpinfo stopped working. Has anyone else run into this? lots of people :-) what did you upgrade from? do what Dan said - only I'd run through his points in the following order 2,3,1 you may have php setup to log elsewhere than the apache error log - if so check there also. lastly I sometimes find it useful to try running the cmdline version php - sometimes I screw things up and the cmdline is helpful in that it [sometimes] spits out a bunch of errors (usually related to extensions that could not be loaded) Thanks, Jeff - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. 1.) Search the archives. 2.) Try to view the source of the page. If you see the PHP source, it's not working properly. 3.) Check the Apache error logs. See what you come up with after trying all three of the above and post your results. It'll give everyone here a better idea of what your particular problem may be. - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.
RE: [PHP] phpinfo displays blank page
For what it's worth, this can happen if you have a error in your PHP script. Say like invoking a non-existing function php_info(); instead of phpinfo(); with errors and warnings going to a log file or something like that. Warren Vail -Original Message- From: Jeff Schwartz [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 20, 2007 10:00 AM To: PHP List Cc: Jochem Maas; Daniel Brown Subject: Re: [PHP] phpinfo displays blank page Thanks for getting back to me so quickly. I checked the archives and viewed the source before I posted the problem. The source is empty except for the junk IE puts into it. Is there a specific log or error file I should check? I upgraded from 4.x. I also ran php phpinfo.php (phpinfo.php is a script containing only the phpinfo command) at a server prompt but nothing was displayed. Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown wrote: On 6/20/07, Jeff Schwartz wrote: When I run phpinfo() nothing is displayed. It used to work. I recently upgraded to 5.2.1 but I can't be sure that's exactly when phpinfo stopped working. Has anyone else run into this? lots of people :-) what did you upgrade from? do what Dan said - only I'd run through his points in the following order 2,3,1 you may have php setup to log elsewhere than the apache error log - if so check there also. lastly I sometimes find it useful to try running the cmdline version php - sometimes I screw things up and the cmdline is helpful in that it [sometimes] spits out a bunch of errors (usually related to extensions that could not be loaded) Thanks, Jeff - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. 1.) Search the archives. 2.) Try to view the source of the page. If you see the PHP source, it's not working properly. 3.) Check the Apache error logs. See what you come up with after trying all three of the above and post your results. It'll give everyone here a better idea of what your particular problem may be. - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo displays blank page
On 6/20/07, Jeff Schwartz [EMAIL PROTECTED] wrote: Thanks for getting back to me so quickly. I checked the archives and viewed the source before I posted the problem. The source is empty except for the junk IE puts into it. Is there a specific log or error file I should check? I upgraded from 4.x. I also ran php phpinfo.php (phpinfo.php is a script containing only the phpinfo command) at a server prompt but nothing was displayed. What happens if you run this on the command line: php -r phpinfo(); That should work :) Tijnema Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown wrote: On 6/20/07, Jeff Schwartz wrote: When I run phpinfo() nothing is displayed. It used to work. I recently upgraded to 5.2.1 but I can't be sure that's exactly when phpinfo stopped working. Has anyone else run into this? lots of people :-) what did you upgrade from? do what Dan said - only I'd run through his points in the following order 2,3,1 you may have php setup to log elsewhere than the apache error log - if so check there also. lastly I sometimes find it useful to try running the cmdline version php - sometimes I screw things up and the cmdline is helpful in that it [sometimes] spits out a bunch of errors (usually related to extensions that could not be loaded) Thanks, Jeff - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. 1.) Search the archives. 2.) Try to view the source of the page. If you see the PHP source, it's not working properly. 3.) Check the Apache error logs. See what you come up with after trying all three of the above and post your results. It'll give everyone here a better idea of what your particular problem may be. - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo displays blank page
On 6/20/07, Tijnema [EMAIL PROTECTED] wrote: On 6/20/07, Jeff Schwartz [EMAIL PROTECTED] wrote: Thanks for getting back to me so quickly. I checked the archives and viewed the source before I posted the problem. The source is empty except for the junk IE puts into it. Is there a specific log or error file I should check? I upgraded from 4.x. I also ran php phpinfo.php (phpinfo.php is a script containing only the phpinfo command) at a server prompt but nothing was displayed. What happens if you run this on the command line: php -r phpinfo(); That should work :) Tijnema Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown wrote: On 6/20/07, Jeff Schwartz wrote: When I run phpinfo() nothing is displayed. It used to work. I recently upgraded to 5.2.1 but I can't be sure that's exactly when phpinfo stopped working. Has anyone else run into this? lots of people :-) what did you upgrade from? do what Dan said - only I'd run through his points in the following order 2,3,1 you may have php setup to log elsewhere than the apache error log - if so check there also. lastly I sometimes find it useful to try running the cmdline version php - sometimes I screw things up and the cmdline is helpful in that it [sometimes] spits out a bunch of errors (usually related to extensions that could not be loaded) Thanks, Jeff - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. 1.) Search the archives. 2.) Try to view the source of the page. If you see the PHP source, it's not working properly. 3.) Check the Apache error logs. See what you come up with after trying all three of the above and post your results. It'll give everyone here a better idea of what your particular problem may be. - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. Or go back even further and see if the problem lies before the code is even interpreted, via the CLI: `php -i` -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo displays blank page
do you have other php files that produce html output still working (after the upgrade)? if not, there is probly something wrong w/ the new php installation. is this the same phpinfo script you were using before the upgrade? if not there may be a problem w/ the phpinfo script. -nathan On 6/20/07, Daniel Brown [EMAIL PROTECTED] wrote: On 6/20/07, Tijnema [EMAIL PROTECTED] wrote: On 6/20/07, Jeff Schwartz [EMAIL PROTECTED] wrote: Thanks for getting back to me so quickly. I checked the archives and viewed the source before I posted the problem. The source is empty except for the junk IE puts into it. Is there a specific log or error file I should check? I upgraded from 4.x. I also ran php phpinfo.php (phpinfo.php is a script containing only the phpinfo command) at a server prompt but nothing was displayed. What happens if you run this on the command line: php -r phpinfo(); That should work :) Tijnema Jochem Maas [EMAIL PROTECTED] wrote: Daniel Brown wrote: On 6/20/07, Jeff Schwartz wrote: When I run phpinfo() nothing is displayed. It used to work. I recently upgraded to 5.2.1 but I can't be sure that's exactly when phpinfo stopped working. Has anyone else run into this? lots of people :-) what did you upgrade from? do what Dan said - only I'd run through his points in the following order 2,3,1 you may have php setup to log elsewhere than the apache error log - if so check there also. lastly I sometimes find it useful to try running the cmdline version php - sometimes I screw things up and the cmdline is helpful in that it [sometimes] spits out a bunch of errors (usually related to extensions that could not be loaded) Thanks, Jeff - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. 1.) Search the archives. 2.) Try to view the source of the page. If you see the PHP source, it's not working properly. 3.) Check the Apache error logs. See what you come up with after trying all three of the above and post your results. It'll give everyone here a better idea of what your particular problem may be. - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. Or go back even further and see if the problem lies before the code is even interpreted, via the CLI: `php -i` -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo displays blank page
You're right, that works. So why doesn't my script work? All it contains is: ?php phpinfo(); ? Tijnema [EMAIL PROTECTED] wrote: On 6/20/07, Jeff Schwartz wrote: Thanks for getting back to me so quickly. I checked the archives and viewed the source before I posted the problem. The source is empty except for the junk IE puts into it. Is there a specific log or error file I should check? I upgraded from 4.x. I also ran php phpinfo.php (phpinfo.php is a script containing only the phpinfo command) at a server prompt but nothing was displayed. What happens if you run this on the command line: php -r phpinfo(); That should work :) Tijnema Jochem Maas wrote: Daniel Brown wrote: On 6/20/07, Jeff Schwartz wrote: When I run phpinfo() nothing is displayed. It used to work. I recently upgraded to 5.2.1 but I can't be sure that's exactly when phpinfo stopped working. Has anyone else run into this? lots of people :-) what did you upgrade from? do what Dan said - only I'd run through his points in the following order 2,3,1 you may have php setup to log elsewhere than the apache error log - if so check there also. lastly I sometimes find it useful to try running the cmdline version php - sometimes I screw things up and the cmdline is helpful in that it [sometimes] spits out a bunch of errors (usually related to extensions that could not be loaded) Thanks, Jeff - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. 1.) Search the archives. 2.) Try to view the source of the page. If you see the PHP source, it's not working properly. 3.) Check the Apache error logs. See what you come up with after trying all three of the above and post your results. It'll give everyone here a better idea of what your particular problem may be. - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. - Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games.
Re: [PHP] phpinfo displays blank page
On 6/21/07, Jeff Schwartz [EMAIL PROTECTED] wrote: You're right, that works. So why doesn't my script work? All it contains is: ?php phpinfo(); ? Hard to say, as this just *should* work. What you can try is to hook up the processor with some debugger The strace program will do the job I think, if not, then you should move on to GDB. This should point out some errors that point to the problem. Oh, btw, maybe very obvious but is your script readable by the user you execute the PHP CLI with? Tijnema *Also, please don't top post...* Tijnema [EMAIL PROTECTED] wrote: On 6/20/07, Jeff Schwartz wrote: Thanks for getting back to me so quickly. I checked the archives and viewed the source before I posted the problem. The source is empty except for the junk IE puts into it. Is there a specific log or error file I should check? I upgraded from 4.x. I also ran php phpinfo.php (phpinfo.php is a script containing only the phpinfo command) at a server prompt but nothing was displayed. What happens if you run this on the command line: php -r phpinfo(); That should work :) Tijnema Jochem Maas wrote: Daniel Brown wrote: On 6/20/07, Jeff Schwartz wrote: When I run phpinfo() nothing is displayed. It used to work. I recently upgraded to 5.2.1 but I can't be sure that's exactly when phpinfo stopped working. Has anyone else run into this? lots of people :-) what did you upgrade from? do what Dan said - only I'd run through his points in the following order 2,3,1 you may have php setup to log elsewhere than the apache error log - if so check there also. lastly I sometimes find it useful to try running the cmdline version php - sometimes I screw things up and the cmdline is helpful in that it [sometimes] spits out a bunch of errors (usually related to extensions that could not be loaded) Thanks, Jeff - Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us. 1.) Search the archives. 2.) Try to view the source of the page. If you see the PHP source, it's not working properly. 3.) Check the Apache error logs. See what you come up with after trying all three of the above and post your results. It'll give everyone here a better idea of what your particular problem may be. - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHPInfo data
Those are Apache configuration settings that are compiled into the Apache modules. You'll probably want to recompile both Apache binaries with the same options if you want both servers to show that information identically. On 5/3/07, Chris Boget [EMAIL PROTECTED] wrote: In looking at the PHPInfo data on our two seperate servers, I see that one server (server 1) has the following settings (while the other one, server 2, does not): Apache Environment downgrade-1_0 force-response-1_0 Environment BMC_GLOBALC_HOME PATROL_GC_VERSION PATROL_HOME PATROL_TEMP RTSERVERS TARGET Server 2 has the following settings (while the other one, server 1, does not): Apache Environment SSL_CIPHER SSL_CIPHER_ALGKEYSIZE SSL_CIPHER_EXPORT SSL_CIPHER_USEKEYSIZE SSL_CLIENT_VERIFY SSL_PROTOCOL SSL_SERVER_A_KEY SSL_SERVER_A_SIG SSL_SERVER_I_DN SSL_SERVER_I_DN_C SSL_SERVER_I_DN_CN SSL_SERVER_I_DN_Email SSL_SERVER_I_DN_L SSL_SERVER_I_DN_O SSL_SERVER_I_DN_OU SSL_SERVER_I_DN_ST SSL_SERVER_M_SERIAL SSL_SERVER_M_VERSION SSL_SERVER_S_DN SSL_SERVER_S_DN_CN SSL_SERVER_S_DN_O SSL_SERVER_S_DN_OU SSL_SERVER_V_END SSL_SERVER_V_START SSL_SESSION_ID SSL_VERSION_INTERFACE mod_ssl/2.8.25 SSL_VERSION_LIBRARY OpenSSL/0.9.8a HTTP Headers Information Transfer-Encoding chunked I've looked in the php.ini and httpd.conf and I don't see the settings in either. I ran windows search to find files with any of the text within and nothing was returned. Where can I find where these settings are defined and ensure that both servers are showing the same thing in PHPInfo? thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107
Re: [PHP] PHPInfo data
I believe those are all settings from httpd.conf of Apache rather than php.ini, at least based on what they are... On Thu, May 3, 2007 3:23 pm, Chris Boget wrote: In looking at the PHPInfo data on our two seperate servers, I see that one server (server 1) has the following settings (while the other one, server 2, does not): Apache Environment downgrade-1_0 force-response-1_0 Environment BMC_GLOBALC_HOME PATROL_GC_VERSION PATROL_HOME PATROL_TEMP RTSERVERS TARGET Server 2 has the following settings (while the other one, server 1, does not): Apache Environment SSL_CIPHER SSL_CIPHER_ALGKEYSIZE SSL_CIPHER_EXPORT SSL_CIPHER_USEKEYSIZE SSL_CLIENT_VERIFY SSL_PROTOCOL SSL_SERVER_A_KEY SSL_SERVER_A_SIG SSL_SERVER_I_DN SSL_SERVER_I_DN_C SSL_SERVER_I_DN_CN SSL_SERVER_I_DN_Email SSL_SERVER_I_DN_L SSL_SERVER_I_DN_O SSL_SERVER_I_DN_OU SSL_SERVER_I_DN_ST SSL_SERVER_M_SERIAL SSL_SERVER_M_VERSION SSL_SERVER_S_DN SSL_SERVER_S_DN_CN SSL_SERVER_S_DN_O SSL_SERVER_S_DN_OU SSL_SERVER_V_END SSL_SERVER_V_START SSL_SESSION_ID SSL_VERSION_INTERFACE mod_ssl/2.8.25 SSL_VERSION_LIBRARY OpenSSL/0.9.8a HTTP Headers Information Transfer-Encoding chunked I've looked in the php.ini and httpd.conf and I don't see the settings in either. I ran windows search to find files with any of the text within and nothing was returned. Where can I find where these settings are defined and ensure that both servers are showing the same thing in PHPInfo? thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo returns a permission error
So, what does this say: $umask It says: 0022 and this: $ ls -l /home/dave/web_sites/phpinfo.php It says: -rw--- 1 dave dave 20 2006-02-13 22:45 /home/dave/web_sites/phpinfo.php and are you using the browser to view the file via a server (e.g., the browser address bar says http://;), Yes. I view it via localhost, within FireFox. Is PHP running as mod_php in apache, or CGI? I'm not sure. I don't know how to answer this. Finally, can you view other files in the same directory via similar means? Yes. I have three different web sites that I test here on my local machine, all of which use PHP extensively. In fact, exclusively. And they all execute and display PHP pages without any error. This phpinfo.php script is the first ever page that I've had any kind of issue with. -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo returns a permission error
Dave M G wrote: and this: $ ls -l /home/dave/web_sites/phpinfo.php It says: -rw--- 1 dave dave 20 2006-02-13 22:45 /home/dave/web_sites/phpinfo.php Well, I'd sure suspect this. PHP/Apache are probably running as nobody, daemon, www, or somesuch, and the permissions on the file above only allow the user dave to read (and write to) this file. Try: $ chmod 644 /home/dave/web_sites/phpinfo.php and see if you can read the file. In addition, do some checking on your umask, or try and remember how you created this file. A umask of 22 should produce -rw-r--r--: [624] Tue 14.Feb.2006 16:15:58 [EMAIL PROTECTED]/daleco/software/Windows] umask 22 [625] Tue 14.Feb.2006 16:17:00 [EMAIL PROTECTED]/daleco/software/Windows] touch foobar ls -l foobar -rw-r--r-- 1 kadmin wheel 0 Feb 14 16:17 foobar but obviously, yours did not. 022 is the default umask for most shells. Seems likely that you were running your editor/IDE/whatnot setuid root, perhaps? HTH, Kevin Kinsey -- Don't hate yourself in the morning -- sleep till noon. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo returns a permission error
Dave M G wrote: PHP list, I wanted to adjust my register global settings in my php.ini file. I found instructions on this page: http://www.dmcinsights.com/phpmysql/phpini.php The first thing it says to do is take a look at the results of phpinfo(); to see where the php.ini file actually is. So I created a phpinfo.php file, put in the following code: ?php phpinfo(); ? ... and then accessed it through FireFox at localhost. To my surprise, I got the following error message: Warning: Unknown(/home/dave/web_sites/phpinfo.php): failed to open stream: Permission denied in Unknown on line 0 Warning: (null)(): Failed opening '/home/dave/web_sites/phpinfo.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0 It looks to be a permissions issue. But who has permission if not me, and how is permission an issue when I'm just looking at the file through a browser? By the way, I'm using PHP 4.4.0-3 on Ubuntu 5.10. Any advice or help would be much appreciated. Thank you. -- Dave M G So, what does this say: $umask and this: $ ls -l /home/dave/web_sites/phpinfo.php and are you using the browser to view the file via a server (e.g., the browser address bar says http://;), or via the filesystem (you've opened it from an explorer type window and the address bar says file:///) Is PHP running as mod_php in apache, or CGI? Finally, can you view other files in the same directory via similar means? Kevin Kinsey -- Stult's Report: Our problems are mostly behind us. What we have to do now is fight the solutions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] phpinfo returns a permission error
[snip] I wanted to adjust my register global settings in my php.ini file. I found instructions on this page: http://www.dmcinsights.com/phpmysql/phpini.php The first thing it says to do is take a look at the results of phpinfo(); to see where the php.ini file actually is. So I created a phpinfo.php file, put in the following code: ?php phpinfo(); ? ... and then accessed it through FireFox at localhost. To my surprise, I got the following error message: Warning: Unknown(/home/dave/web_sites/phpinfo.php): failed to open stream: Permission denied in Unknown on line 0 Warning: (null)(): Failed opening '/home/dave/web_sites/phpinfo.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0 [/snip] Where did you put the phpinfo.php file after you created it? Did you try accessing like this; http://127.0.0.1/phpinfo.php ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpInfo() executed on Yahoo!
Hello AmirBehzad, Monday, June 20, 2005, 7:07:27 PM, you wrote: AE Yes! phpInfo() on Yahoo! AE URL: http://advr1.advertising.scd.yahoo.com/ Very cool :) I like the amount of Yahoo modules they are using within PHP. I'm not entirely sure this page will stay up for much longer though (at least I'd hope not) Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services I do not fear computers. I fear the lack of them. - Isaac Asimov -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpInfo() executed on Yahoo!
Rats, I guess Andrei is watching this list because it's already down :P I knew they used PHP... but it would have been cool to see what things they've done to handle the number of page requests they have. Oh well. :-/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpInfo() executed on Yahoo!
On 6/20/05, Jason Barnett [EMAIL PROTECTED] wrote: Rats, I guess Andrei is watching this list because it's already down :P I knew they used PHP... but it would have been cool to see what things they've done to handle the number of page requests they have. Oh well. :-/ If anybody wants it- I've got the output right here on my hard drive. Just email me privately. Dotan http://english-lyrics.com/el/index.php English Song Lyrics -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpInfo() executed on Yahoo!
On Monday, June 20, 2005, Jason Barnett wrote: JB [..] but it would have been cool to see what things they've done to handle the number of page requests they have. Take a look at the attached file. HTH, Behzad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] phpInfo() executed on Yahoo!
AmirBehzad Eslami mailto:[EMAIL PROTECTED] on Monday, June 20, 2005 12:11 PM said: On Monday, June 20, 2005, Jason Barnett wrote: [..] but it would have been cool to see what things they've done to handle the number of page requests they have. Take a look at the attached file. Please do not attach files to a public mailing list. Not everyone wants it. Chris. p.s. The attachment doesn't even make it to the list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpInfo() executed on Yahoo!
On 6/20/05, Chris W. Parker [EMAIL PROTECTED] wrote: AmirBehzad Eslami mailto:[EMAIL PROTECTED] on Monday, June 20, 2005 12:11 PM said: On Monday, June 20, 2005, Jason Barnett wrote: [..] but it would have been cool to see what things they've done to handle the number of page requests they have. Take a look at the attached file. Please do not attach files to a public mailing list. Not everyone wants it. Chris. p.s. The attachment doesn't even make it to the list. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I got a LOT of requests for yahoo's phpinfo(), so here it is: http://dotancohen.com/yahoo_phpinfo.html Have fun with it! Dotan http://english-lyrics.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo() and HTTP_RAW_POST_DATA
That data is only populated when always_populate_raw_post_data is on (check your php.ini). Chris --- Kristopher Yates [EMAIL PROTECTED] wrote: I was just curious, is there a reason $HTTP_RAW_POST_DATA isn't included in the phpinfo() function? I would imagine one could see all globals via phpinfo().. Is $HTTP_RAW_POST_DATA global or is it only global if globals are registered (php.ini setting)? From what I can tell, this var is not global, regardless of the registered_globals setting in php.ini. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo() and HTTP_RAW_POST_DATA
Hi Chris, I made your suggested change to php.ini and I show local value 1 and master value 1. Does it mean raw data populates the variable $HTTP_RAW_POST_DATA when this is == 1 or does it mean that raw data is visible within phpinfo() when value ==1 in php.ini file? Just curious because, though the val is now 1 in my php.ini (and I restarted apache), I dont see any data in phpinfo() output related to this var. Did I miss something? Thanks Kris Chris Shiflett wrote: That data is only populated when always_populate_raw_post_data is on (check your php.ini). Chris --- Kristopher Yates [EMAIL PROTECTED] wrote: I was just curious, is there a reason $HTTP_RAW_POST_DATA isn't included in the phpinfo() function? I would imagine one could see all globals via phpinfo().. Is $HTTP_RAW_POST_DATA global or is it only global if globals are registered (php.ini setting)? From what I can tell, this var is not global, regardless of the registered_globals setting in php.ini. . -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo() and HTTP_RAW_POST_DATA
--- Kristopher Yates [EMAIL PROTECTED] wrote: I made your suggested change to php.ini and I show local value 1 and master value 1. Does it mean raw data populates the variable $HTTP_RAW_POST_DATA when this is == 1 or does it mean that raw data is visible within phpinfo() when value ==1 in php.ini file? Sorry, it just populates that variable (to my knowledge). I do not think it is ever included in phpinfo() anywhere, though that would be nice to have when it is on. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo page doesn't display anything
I need to change something in my php.ini file, and in searching for where it is, I found three. So, to find the real one, I made a page that only has this in it: ? phpinfo(); ? and called it info.php. Well, when I bring up that page, it's completely blank. Any ideas? You're calling it through a web server, right? http://www.domain.com/info_page.php ?? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] phpinfo page doesn't display anything
You're calling it through a web server, right? Yup: http://email.winnefox.org/wals/info.php Jody -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo page doesn't display anything
You're calling it through a web server, right? Yup: http://email.winnefox.org/wals/info.php Do any other PHP pages work, like just echo hello world; ?? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] phpinfo page doesn't display anything
Do any other PHP pages work, like just echo hello world; ?? Ok, hello world doesn't work, but I'm running squirrelmail which all the pages used for that are php, and they work fine. Jody -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo page doesn't display anything
I'm guessing you don't have the short start tag enabled, try ?php phpinfo(); ? Jody Cleveland wrote: You're calling it through a web server, right? Yup: http://email.winnefox.org/wals/info.php Jody -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
Re: [PHP] phpinfo page doesn't display anything
Jody Cleveland [EMAIL PROTECTED] schreef in bericht 84CFA712F666B44A94CE6BE116BAF4B0B4E0A5@MAIL">news:84CFA712F666B44A94CE6BE116BAF4B0B4E0A5@MAIL... You're calling it through a web server, right? Yup: http://email.winnefox.org/wals/info.php Look at the HTML source of that page: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo page doesn't display anything
Jody Cleveland [EMAIL PROTECTED] schreef in bericht 84CFA712F666B44A94CE6BE116BAF4B0B4E0A5@MAIL">news:84CFA712F666B44A94CE6BE116BAF4B0B4E0A5@MAIL... You're calling it through a web server, right? Yup: http://email.winnefox.org/wals/info.php Look at the HTML source of that page: ? PHPINFO(); ? In other words: PHP doesn't work at all, or, like someone else pointed out, the short tag doesn't work and you should use ?PHP ... ? Regards, Martijn. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo page doesn't display anything
Maybe you should check the CHMOD (authorizations). Check if the Execute level is on. Jody Cleveland [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] You're calling it through a web server, right? Yup: http://email.winnefox.org/wals/info.php Jody -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] phpinfo page doesn't display anything
I'm guessing you don't have the short start tag enabled, try ?php phpinfo(); ? Thank you!!! That did it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] phpinfo
Been there, done that. Didn't help... I was told (off list) that it is because php4.2.3 is compiled with Apache 1.3.24. is this possible? It is definitely Apache 1.3.27 (404 error message returned the version number), but php is not reporting as such. Thanks again David Russell IT Support Manager Barloworld Optimus (Pty) Ltd Tel: +2711 444-7250 Fax: +2711 444-7256 e-mail: [EMAIL PROTECTED] web: www.BarloworldOptimus.com -Original Message- From: Matt T. Galvin [mailto:mattg;disaster.com] Sent: 01 November 2002 10:50 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] phpinfo Restart apache... that should be it on XP use the Restart Script in you apache program group on unix do a /usr/local/apache/bin/apachectl graceful or just apachectl graceful if it is in your path HTH, Matt At 05:50 AM 11/2/2002 +0900, you wrote: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php smime.p7s Description: application/pkcs7-signature
Re: [PHP] phpinfo
Hello, (B (B"David Russell" [EMAIL PROTECTED] wrote: (B Hi all, (B (B I upgraded php and apache on my development machine (Windows XP). I am (B now running apache 1.3.27 and php 4.2.3. (B (B When I run a phpinfo(), I get my full list of stuff as expected, except (B that the apache version reported is 1.3.24. (B (B Has anyone else seen this. Have I done something wrong? (B (B (BNot sure. Perhaps, a simple restart would fix the problem. (B (BJust guessing... (B (B- E (B (B-- (BPHP General Mailing List (http://www.php.net/) (BTo unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo
Restart apache... that should be it on XP use the Restart Script in you apache program group on unix do a /usr/local/apache/bin/apachectl graceful or just apachectl graceful if it is in your path HTH, Matt At 05:50 AM 11/2/2002 +0900, you wrote: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] phpinfo
On Thursday 23 May 2002 14:23, Dennis Gearon wrote: has anyone tried to eval() php info to prevent it from being displayed so it could be processed for config checking, instead? Try: ob_start(); phpinfo(); $doo = ob_get_contents(); # $doo holds the output of phpinfo() ob_end_clean(); -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* How can you be in two places at once when you're not anywhere at all? */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] phpinfo() question
When you run phpinfo(), the first line of detail has the OS version. What variable produces this? Thats the output from uname -a on the command line... at least, under *nix it is... Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] phpinfo() question
Thanks. That was it! Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/ - Original Message - From: Jason Murray [EMAIL PROTECTED] To: 'Gaylen Fraley' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, January 06, 2002 10:06 PM Subject: RE: [PHP] phpinfo() question When you run phpinfo(), the first line of detail has the OS version. What variable produces this? Thats the output from uname -a on the command line... at least, under *nix it is... Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] phpinfo() returning Zero Sized Reply
phpinfo() is a function itself. It needn't echo: ? phpinfo(); ? Zliy Pes, http://www.zliypes.com.ua - Original Message - From: Brian C. Doyle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 8:07 PM Subject: [PHP] phpinfo() returning Zero Sized Reply hello all, I have a script with ? echo phpinfo(); ? and getting Zero Sized Reply i have increased my timeout in php.ini and no change. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] phpinfo() returning Zero Sized Reply
Okay so i got rid of the echo and still no go.. I am using version 4.0.6 At 08:11 PM 12/4/2001 +0200, Valentin V. Petruchek wrote: phpinfo() is a function itself. It needn't echo: ? phpinfo(); ? Zliy Pes, http://www.zliypes.com.ua - Original Message - From: Brian C. Doyle [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 04, 2001 8:07 PM Subject: [PHP] phpinfo() returning Zero Sized Reply hello all, I have a script with ? echo phpinfo(); ? and getting Zero Sized Reply i have increased my timeout in php.ini and no change. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] phpinfo() returning Zero Sized Reply
On Wed, 5 Dec 2001 04:52, Brian C. Doyle wrote: Okay so i got rid of the echo and still no go.. I am using version 4.0.6 At 08:11 PM 12/4/2001 +0200, Valentin V. Petruchek wrote: phpinfo() is a function itself. It needn't echo: ? phpinfo(); ? Zliy Pes, http://www.zliypes.com.ua - Original Message - So do a View Source - if you see ? phpinfo(); ? in your source then your server is not correctly configured to parse php. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Writer's Rule #2: About those sentence fragments. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] phpinfo unneeded...................... it worked
thank you guys, it worked with php4 not php3 -JUANG- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] phpinfo unneeded
guys.. mmmh still confuse, i had try to find out "disable_functions " but i cant found it, and then i write the syntax with myself and i stop-restart my apache mmhhh?? still didn't work. and here its my configure: ./configure '--with-apxs=/usr/local/apache/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-gd' '--enable-debugger' '--enable-track-vars' '--with-yp' '--enable-memory-limit=yes' '--enable-debug=no' '--with-zlib' php.ini file path is set to: /usr/local/lib Matt: it's for free hosting and i would like to make a community in this server that's why i don't want a user using phpinfo(); thx -JUANG- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] phpinfo unneeded
On Mon, Apr 02, 2001 at 06:14:07PM +0700, juang wrote: mmmh still confuse, i had try to find out "disable_functions " but i cant found it, and then i write the syntax with myself and i stop-restart my apache mmhhh?? still didn't work. and here its my configure: put the following in your php.ini (in the Safe Mode Section): disable_functions = phpinfo() that should do it. -fkr -- gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0 |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE | |all your base are belong to us | shame on me | fkr@IRCnet | PGP signature
RE: [PHP] phpInfo() displays Local and Master configuration values.
-Original Message- From: Diego Fulgueira [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 11:37 AM To: Php-General Subject: [PHP] phpInfo() displays Local and Master configuration values. Does anyone knows why phpInfo() displays a Local and a Master value for every configuration variable? (This is in the PHP Core section.) As I understand it... "Master" values are the settings made in your php.ini. "Local" values are the settings which apply to scripts in the current location. In many cases, these will probably be the same as the "Master" values. However, they can be overridden by configuration settings made in location-specific sections of your web server config (for a particular virtual server or group of directories) or (if allowed) in .htaccess files throughout your directory tree. --- Mark Roedel ([EMAIL PROTECTED]) || "There cannot be a crisis next week. Systems Programmer / WebMaster || My schedule is already full." LeTourneau University ||-- Henry Kissinger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] phpinfo unneeded
checkout your php.ini file...you can disable functions in it... -jack juang wrote: HI all, how to compile php without function phpinfo enalbe. so if user call phpinfo() it would be false/error. i would like to build a free web server with php but i don't like if the user know what are the tools in my server 'couse it's a free server. is it possible or it's just a stupid question? -JUANG- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] phpinfo unneeded
On Fri, Mar 30, 2001 at 04:32:40PM +0700, juang wrote: how to compile php without function phpinfo enalbe. so if user call phpinfo() it would be false/error. take a look at the safe_mode-stuff in php.ini. -fkr -- gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0 |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE | |all your base are belong to us | shame on me | fkr@IRCnet | PGP signature
Re: [PHP] phpinfo unneeded
hello jack and felix, i have been search the string of "phpinfo" in php.ini there was no phpinfo string found and "safe_mode-stuff" didn't found too. do i must "write safe_mode-stuff" if yes any sample on the net thx -JUANG- - Original Message - From: "Jack Dempsey" [EMAIL PROTECTED] To: "juang" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, March 30, 2001 4:40 PM Subject: Re: [PHP] phpinfo unneeded checkout your php.ini file...you can disable functions in it... -jack -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] phpinfo unneeded
I fetched my PHP.INI file: disable_functions=; This directive allows you to disable certain ; functions for security reasons. It receives ; a comma separated list of function names. ; This directive is *NOT* affected by whether ; Safe Mode is turned on or off. so search for 'disable_functions' -elias ""juang"" [EMAIL PROTECTED] wrote in message 009301c0b8fc$5d6a2280$0c9fbe0a@asp">news:009301c0b8fc$5d6a2280$0c9fbe0a@asp... HI all, how to compile php without function phpinfo enalbe. so if user call phpinfo() it would be false/error. i would like to build a free web server with php but i don't like if the user know what are the tools in my server 'couse it's a free server. is it possible or it's just a stupid question? -JUANG- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] phpinfo unneeded
On Fri, Mar 30, 2001 at 05:19:48PM +0700, juang wrote: i have been search the string of "phpinfo" in php.ini there was no phpinfo string found and "safe_mode-stuff" didn't found too. I'll paste the part from my php.ini (it *should* be in the default php.ini coming with php) --- ; Safe Mode safe_mode = Off safe_mode_exec_dir = safe_mode_allowed_env_vars = PHP_ ; Setting certain environment variables safe_mode_protected_env_vars = LD_LIBRARY_PATH disable_functions = --- to disable_functions you can add phpinfo(). -fkr -- gpg-fingerprint: 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0 |http://www.hazardous.org/ | whois -h whois.ripe.de FKR-RIPE | |all your base are belong to us | shame on me | fkr@IRCnet | PGP signature
Re: [PHP] phpinfo unneeded
On Fri, Mar 30, 2001 at 04:32:40PM +0700, juang wrote: HI all, how to compile php without function phpinfo enalbe. so if user call phpinfo() it would be false/error. i would like to build a free web server with php but i don't like if the user know what are the tools in my server 'couse it's a free server. is it possible or it's just a stupid question? I imagine it's possible, but out of curiousity, what harm is there in allowing phpinfo() to be run? It presents the PHP configuration settings, many of which may be important to your users when developing their apps (Is magic_quotes on? Is '.' in the include path? Is register_globals on?) and info on which PHP modules are available. (Which version, if any, of GD, XML, etc) I suppose it may be undesireable to reveal some of the environment variables (PATH, perhaps), but the solution there isn't to disable phpinfo(), it's to run the web server from a specifically tailored environment. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] phpinfo unneeded
HI all, how to compile php without function phpinfo enalbe. so if user call phpinfo() it would be false/error. i would like to build a free web server with php but i don't like if the user know what are the tools in my server 'couse it's a free server. is it possible or it's just a stupid question? just disable it via the php.ini settings using disable_functions= James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] phpinfo() doesn't list compiled --with
On Tuesday 20 March 2001 14:59, you wrote: I compiled php --with-pgsql, but phpinfo() doesn't list that.is this a problem with php.ini? Are you sure you didn't have a typo in that? Configure silently ignores unknown opitons. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "use the source, luke." (obi-wan gnuobi) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] phpinfo ?
On Friday 26 January 2001 23:54, John Guynn wrote: I've always used the echo and it does work under PHP4...just tested it on www.teamkaos.org before I made my post. Sure it works as well :) But look closely at the output - with echo phpinfo (); phpinfo prints out the, well, info, and *then* you echo the returnvalue of phpinfo () (an integer). So the output generated by your version will have some little number at the end. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) (A)bort (R)etry (P)retend this never happened ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] phpinfo ?
Try this: html body ?php phpinfo(); ? /body /html -Shane - Original Message - From: "kaab kaoutar" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 26, 2001 10:23 AM Subject: [PHP] phpinfo ? Hi there! I'm sure it's a stupid problem but the phpinfo does work while trying the following html code: htmlheadtitlePHP Test/title/head body ?php phpinfo() ? /body/html the result is a blank page! And when i create an php file with only: ?php phpinfo() ? i have a dos window where a list of information is listed quickly then shut!(i can hardly see it) by the way is it the same to put php code between ?php ? and ? ? and script language=php /script ? thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] phpinfo ?
Actually what you need is ?php echo phpinfo(); ? otherwise you're never going to get anything on the screen. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Robert Collins [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 3:30 PM To: kaab kaoutar; [EMAIL PROTECTED] Subject: RE: [PHP] phpinfo ? looks like you forgot the semi-colon (;) at the end of phpinfo(); Robert W. Collins [snip] - Original Message - From: "kaab kaoutar" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 26, 2001 10:23 AM Subject: [PHP] phpinfo ? Hi there! I'm sure it's a stupid problem but the phpinfo does work while trying the following html code: htmlheadtitlePHP Test/title/head body ?php phpinfo() ? /body/html the result is a blank page! [snip] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] phpinfo ?
I've always used the echo and it does work under PHP4...just tested it on www.teamkaos.org before I made my post. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: H. Wade Minter [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 4:47 PM To: John Guynn Cc: Php (E-mail) Subject: RE: [PHP] phpinfo ? That's incorrect, at least under PHP4. I've got the following file that does the phpinfo stuff perfectly: BEGIN FILE ? phpinfo() ? END FILE On Fri, 26 Jan 2001, John Guynn wrote: Actually what you need is ?php echo phpinfo(); ? otherwise you're never going to get anything on the screen. John Guynn [snip] -Original Message- From: Robert Collins [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 3:30 PM To: kaab kaoutar; [EMAIL PROTECTED] Subject: RE: [PHP] phpinfo ? looks like you forgot the semi-colon (;) at the end of phpinfo(); Robert W. Collins [snip] - Original Message - From: "kaab kaoutar" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 26, 2001 10:23 AM Subject: [PHP] phpinfo ? Hi there! I'm sure it's a stupid problem but the phpinfo does work while trying the following html code: htmlheadtitlePHP Test/title/head body ?php phpinfo() ? /body/html the result is a blank page! [snip] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] phpinfo ?
Actually what you need is ?php echo phpinfo(); ? otherwise you're never going to get anything on the screen. Some functions do act this way yes but not phpinfo, phpinfo() spits out information and has no need for a print or echo. function bar() { Return 'blah'; } function foo() { print 'blah'; } Now, bar() alone will not spit out the information but print bar() will. People create functions this way for many reasons, one of which is to allow for : $var = bar(); Where $var is now equal the output of bar() which is 'blah'. Now if one does just this : foo(); It will spit out 'blah' and no echo or print is needed. But doing : print foo(); Will also work but is not at all needed. This is sorta how phpinfo works, it just spits out information for us. Why am I using the word spit? Not sure :) Return can be read about here : http://www.php.net/manual/en/functions.returning-values.php Regarding the semi-colon discussion within this thread, it is not required to make this work, see : http://php.net/manual/en/language.basic-syntax.instruction-separation.php Regards, Philip On Fri, 26 Jan 2001, John Guynn wrote: Actually what you need is ?php echo phpinfo(); ? otherwise you're never going to get anything on the screen. John Guynn This email brought to you by RFCs 821 and 1225. -Original Message- From: Robert Collins [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 3:30 PM To: kaab kaoutar; [EMAIL PROTECTED] Subject: RE: [PHP] phpinfo ? looks like you forgot the semi-colon (;) at the end of phpinfo(); Robert W. Collins [snip] - Original Message - From: "kaab kaoutar" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 26, 2001 10:23 AM Subject: [PHP] phpinfo ? Hi there! I'm sure it's a stupid problem but the phpinfo does work while trying the following html code: htmlheadtitlePHP Test/title/head body ?php phpinfo() ? /body/html the result is a blank page! [snip] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]