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
[PHP] phpinfo()
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 -- 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
[PHP] phpinfo
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? -- 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
[PHP] PHPInfo disabled due to security
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. 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? -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ -- 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
[PHP] phpinfo shows wrong value of post_max_size
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 -- 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]
[PHP] PHPInfo - the application
Does anyone have a URL for it? Naturally Google returns a lot of pages which are about the actual function. 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
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
[PHP] phpinfo problem
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
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
[PHP] phpinfo does not display openssl module
Hi i've reinstalled the complete server and i use apache module to load openSSL. However, if i uncomment in PHP.INI the extension=php_openssl.dll, it still does not appear on screen when i use phpinfo() function. i've tried also to uncomment some other extension and they also are not displayed during the phpinfo(). So i though that i modified the wrong php.ini file, but when i checked it seemed ok. here is what i get during phpinfo() screen : Configuration File (php.ini) Path C:\WINDOWS Loaded Configuration File D:\webserver\PHP\php.ini i do not have any php.ini in C:\windows folder so php.ini is directly loaded from D:\webserver\PHP\ folder. does someone see from where could the problem come ? thanks a lot -- Alain Windows XP SP2 PostgreSQL 8.1.4 Apache 2.2.4 PHP 5.2.1
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
[PHP] phpinfo displays blank page
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.
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
[PHP] PHPInfo data
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
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
[PHP] phpinfo returns a permission error
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 -- 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
[PHP] phpInfo() executed on Yahoo!
Yes! phpInfo() on Yahoo! URL: http://advr1.advertising.scd.yahoo.com/ 1) First I was at: http://promo.yahoo.com/user_research/ 2) I moved to the upper directory: http://promo.yahoo.com/ 3) Do you Yahoo!, the new page said. So I did View Source. 4) http://advr1.advertising.scd.yahoo.com/ Cheers, Behzad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] phpInfo() executed on Yahoo!
Yes! phpInfo() on Yahoo! URL: http://advr1.advertising.scd.yahoo.com/ 1) First I was at: http://promo.yahoo.com/user_research/ 2) Then I moved to an upper directory: http://promo.yahoo.com/ 3) Do you Yahoo!, the new page said. So I did View Source. 4) http://advr1.advertising.scd.yahoo.com/ Cheers, Behzad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] phpinfo(); executed on Yahoo!
Yes! phpInfo() on Yahoo! URL: http://advr1.advertising.scd.yahoo.com/ 1) First I was at: http://promo.yahoo.com/user_research/ 2) Then I moved to an upper directory: http://promo.yahoo.com/ 3) Do you Yahoo!, the new page said. So I did View Source. 4) http://advr1.advertising.scd.yahoo.com/ Cheers, Behzad -- 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
[PHP] phpinfo() doesn't report correctly for php 5.0.3
Has anyone else noticed this? When I install php5.0.3 with: make clean ./configure --prefix=/usr/local --with-mysqli=shared,/usr/bin/mysql_config --enable-soap --enable-cli --with-pear --with-apxs2=/usr/bin/apxs2 --enable-xmlrpc --no-create --no-recursion --with-soap --with-xmlrpc --with-xslt --with-xml2 --with-jpeg --with-png --with-gd --with-zlib --with-tiff --with-readline --enable-sockets --enable-shared-pdflib --enable-force-cgi-redirect --with-gettext --enable-mailparse --with-curl --enable-exif --with-fastcgi --enable-discard-path --with-versioning --with-layout=GNU make install phpinfo() reports that it was built by ./configure with no switches (as shown below). PHP Version = 5.0.3 System = Linux ubu 2.6.8-1-686 #1 Thu Nov 25 04:34:30 UTC 2004 i686 Build Date = Jan 23 2005 20:05:22 Configure Command = './configure' Server API = Command Line Interface Virtual Directory Support = disabled Configuration File (php.ini) Path = /usr/local/lib PHP API = 20031224 PHP Extension = 20041030 Zend Extension = 220040412 Debug Build = no Thread Safety = disabled IPv6 Support = enabled Registered PHP Streams = php, file, http, ftp Registered Stream Socket Transports = tcp, udp, unix, udg Has anyone else had this problem? Any advice? Thanks, -Cere -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHPInfo reports wrong version
I'm running Apache 2 on Win32 and after installing 4.3.3 I notice the X-Powered-By HTTP header is still PHP 4.3.2 so its reporting the wrong version in the header you can see http://gto.dynu.com/phpinfo.php PHP 4.3.2 looking further down everything says 4.3.3 except the title and the X-Powered header information... So how do I fix it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] phpinfo() and HTTP_RAW_POST_DATA
Hi, 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. Not an important issue, but curious what ye creators of PHP language opinion/thoughts on this is. Regards Kris Timothy Hitchens (HiTCHO) wrote: You can post to your server with a mimetype of text/xml and in your script pickup the raw post as: $HTTP_RAW_POST_DATA Then just process this string as XML and return to buffer or not. Have fun. Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] HiTCHO | Open Platform Web Development Consutling - Outsourcing - Training - Support - Original Message - From: Kristopher Yates [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 01, 2003 7:20 AM Subject: [PHP] receiving XML stream as server via PHP Hi, Using PHP with cURL, I am currently able to dynamically create XML documents and HTTP POST to a remote server, receive an XML response, and parse XML as needed. What I am having trouble finding information on is doing the reverse. Basically, I am trying to create a PHP script that acts as a server, so that a remote computer can HTTP POST XML to said script and then I parse and respond in XML. Again, I already have the reverse working using CURL - so basically I have created a client and now I need to create the server. The only part I need help understanding is how do I get the XML into an array/variable when my script is hit with someone using HTTP POST to pass XML to it. I have an idea below (vague).. I had the server guy HTTP POST some XML to a script which just had ? phpinfo(); ? I see in the HTTP Request Headers of the phpinfo() output that it received content type text/xml but nowhere do I see what was actually received (the actual xml that was sent). I thought maybe PHP would take the stuff after the header and push it into an array/variable but no such luck (argv?). I am wondering if anyone has any helpful information. I imagine something like the following psuedo code: if($HTTP_CONTENT_TYPE==text/xml){ //use some php function(s) to pass incoming xml stream to an array that I can then pass to my //xml parser } I hope this gives you enough information to figure out my dilema. If someone can shed a little light on this subject it would be GREATLY appreciated. Thanks, Kris [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php . -- 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
[PHP] phpinfo page doesn't display anything
Hello, 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? -Jody Cleveland Winnefox Library System Computer Support Specialist [EMAIL PROTECTED] -- 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
[PHP] phpinfo
Hi all, I upgraded php and apache on my development machine (Windows XP). I am now running apache 1.3.27 and php 4.2.3. When I run a phpinfo(), I get my full list of stuff as expected, except that the apache version reported is 1.3.24. Has anyone else seen this. Have I done something wrong? Thanks 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 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
[PHP] phpinfo
has anyone tried to eval() php info to prevent it from being displayed so it could be processed for config checking, instead? Since what version have the 'subsections' of phpinfo() been available, like phpinfo(INFO_CONFIGURATION); ? -- - Joy is just a thing (to be).. raised on, Love is just the way to Live and Die, John Denver. - He lost a friend, but kept his Memory (also John Denver), Thank you...John Corones...my friend always. - Look lovingly upon the present, for it holds the only things that are forever true. - Sincerely, Dennis Gearon (Kegley) -- 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
[PHP] phpinfo() printing old ./configure arguments
Hello, We recently upgraded the php apache modules to include some bugfixes and the wddx module, but phpinfo() does still show a compilation time of August 1 2001 and the old compilation infos. Where do I have to dig about that? Please cc me as I'm not on the list. Markus Bertheau signature.asc Description: This is a digitally signed message part
[PHP] phpinfo() and phpmyAdmin
I can get phpinfo() working properly on a page that I just create in the same directory. But why will the phpmyAdmin phpinfo.php not show anything but a blank page ? All other functions of phpMyAdmin work properly. Thank You Daniel Negrón Lotus Notes Administrator / Developer KB Electronics, Inc. 954.346.4900x122 http://www.kbelectronics.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] phpinfo
can I limit the information shown in phpinfo function? the info it gives is a little risky for me thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] phpinfo() question
When you run phpinfo(), the first line of detail has the OS version. What variable produces this? -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/ -- 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
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]