Discussion:
Weird Stuff
The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
2014-05-13 20:08:27 UTC
Permalink
Must http://domain/phpinfo.phtml work

but my command line returns nothing.

Working off a BSD system.

What should I be looking for?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Tim Streater
2014-05-13 20:56:00 UTC
Permalink
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
Must http://domain/phpinfo.phtml work
Is this a question? I take it that phpinfo.phtml is a page you've put together containing a call to phpinfo() ?
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
but my command line returns nothing.
What do you actually do at your command line and what do you actually get? Under OS X I do something like:

Second-Mini% php -a
Interactive shell

php > echo phpinfo ();
phpinfo()
PHP Version => 5.4.24

(followed by about another 1000 lines of stuff)
--
Cheers -- Tim
The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
2014-05-13 21:16:19 UTC
Permalink
[ Charset UTF-8 unsupported, converting... ]
Post by Tim Streater
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
Must http://domain/phpinfo.phtml work
Is this a question? I take it that phpinfo.phtml is a page you've put together containing a call to phpinfo() ?
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
but my command line returns nothing.
Second-Mini% php -a
Interactive shell
php > echo phpinfo ();
phpinfo()
PHP Version => 5.4.24
(followed by about another 1000 lines of stuff)
I have done
php -a
php -i

and nothing comes back.
Post by Tim Streater
--
Cheers -- Tim
--
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
Aziz Saleh
2014-05-13 22:18:49 UTC
Permalink
On Tue, May 13, 2014 at 5:16 PM, The Doctor,3328-138 Ave Edmonton AB T5Y
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
[ Charset UTF-8 unsupported, converting... ]
On 13 May 2014 at 21:08, "The Doctor,3328-138 Ave Edmonton AB T5Y
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
Must http://domain/phpinfo.phtml work
Is this a question? I take it that phpinfo.phtml is a page you've put
together containing a call to phpinfo() ?
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
but my command line returns nothing.
What do you actually do at your command line and what do you actually
Second-Mini% php -a
Interactive shell
php > echo phpinfo ();
phpinfo()
PHP Version => 5.4.24
(followed by about another 1000 lines of stuff)
I have done
php -a
php -i
and nothing comes back.
--
Cheers -- Tim
--
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
Are you getting any errors? Like "command not found"?
The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
2014-05-13 22:42:58 UTC
Permalink
[ Charset UTF-8 unsupported, converting... ]
Post by Aziz Saleh
On Tue, May 13, 2014 at 5:16 PM, The Doctor,3328-138 Ave Edmonton AB T5Y
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
[ Charset UTF-8 unsupported, converting... ]
On 13 May 2014 at 21:08, "The Doctor,3328-138 Ave Edmonton AB T5Y
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
Must http://domain/phpinfo.phtml work
Is this a question? I take it that phpinfo.phtml is a page you've put
together containing a call to phpinfo() ?
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
but my command line returns nothing.
What do you actually do at your command line and what do you actually
Second-Mini% php -a
Interactive shell
php > echo phpinfo ();
phpinfo()
PHP Version => 5.4.24
(followed by about another 1000 lines of stuff)
I have done
php -a
php -i
and nothing comes back.
--
Cheers -- Tim
--
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
Are you getting any errors? Like "command not found"?
No error messages
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Tim Streater
2014-05-13 22:33:00 UTC
Permalink
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
I have done
php -a
php -i
and nothing comes back.
Not even a new command line prompt?
--
Cheers -- Tim
The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
2014-05-13 22:43:52 UTC
Permalink
[ Charset UTF-8 unsupported, converting... ]
Post by Tim Streater
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
I have done
php -a
php -i
and nothing comes back.
Not even a new command line prompt?
Correct, this is what I am saying.
Post by Tim Streater
--
Cheers -- Tim
--
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
Tim Streater
2014-05-14 09:05:00 UTC
Permalink
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
[ Charset UTF-8 unsupported, converting... ]
Post by Tim Streater
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
I have done
php -a
php -i
and nothing comes back.
Not even a new command line prompt?
Correct, this is what I am saying.
Then make a file containing these lines:

<?php
echo phpinfo ();
?>

and save it as xx.php. Then at the command line you do:

php xx.php
--
Cheers -- Tim
Daniel P. Brown
2014-05-14 13:10:33 UTC
Permalink
Post by Tim Streater
<?php
echo phpinfo ();
?>
Actually, you should just do:

<?php phpinfo();

Having the closing tag is unnecessary, and phpinfo() already
outputs the information. The echo preceding it will kick-out a 1
(boolean true) because the command returns true.
--
</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
The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
2014-05-14 12:40:04 UTC
Permalink
[ Charset UTF-8 unsupported, converting... ]
Post by Tim Streater
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
[ Charset UTF-8 unsupported, converting... ]
Post by Tim Streater
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
I have done
php -a
php -i
and nothing comes back.
Not even a new command line prompt?
Correct, this is what I am saying.
<?php
echo phpinfo ();
?>
php xx.php
Same result.
Post by Tim Streater
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Daniel P. Brown
2014-05-14 13:18:29 UTC
Permalink
On Wed, May 14, 2014 at 8:40 AM, The Doctor,3328-138 Ave Edmonton AB
T5Y 1M4,669-2000,473-4587 <***@doctor.nl2k.ab.ca> wrote:

How about php -v and php -i ?
--
</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
The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
2014-05-14 16:59:57 UTC
Permalink
[ Charset UTF-8 unsupported, converting... ]
Post by Daniel P. Brown
On Wed, May 14, 2014 at 8:40 AM, The Doctor,3328-138 Ave Edmonton AB
How about php -v and php -i ?
Output:


Script started on Wed May 14 10:59:13 2014
doctor.nl2k.ab.ca/~$php -v
doctor.nl2k.ab.ca/~$php -i
doctor.nl2k.ab.ca/~$exit
exit
fg
Script done on Wed May 14 10:59:26 2014
Post by Daniel P. Brown
--
</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
Daniel P. Brown
2014-05-14 17:21:16 UTC
Permalink
On Wed, May 14, 2014 at 12:59 PM, The Doctor,3328-138 Ave Edmonton AB
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
Script started on Wed May 14 10:59:13 2014
doctor.nl2k.ab.ca/~$php -v
You may need to put the output into Pastebin and send the link
here, but what's the output of:

strace php -v
--
</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
Carsten Jensen
2014-05-14 17:23:06 UTC
Permalink
On 14-05-2014 18:59, The Doctor,3328-138 Ave Edmonton AB T5Y
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
[ Charset UTF-8 unsupported, converting... ]
Post by Daniel P. Brown
On Wed, May 14, 2014 at 8:40 AM, The Doctor,3328-138 Ave Edmonton AB
How about php -v and php -i ?
Script started on Wed May 14 10:59:13 2014
doctor.nl2k.ab.ca/~$php -v
doctor.nl2k.ab.ca/~$php -i
doctor.nl2k.ab.ca/~$exit
exit
fg
Script done on Wed May 14 10:59:26 2014
you should see something like:
------------
~:>php -v
PHP 5.3.27 with Suhosin-Patch (cli) (built: Oct 17 2013 13:56:33)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
-------------

if you don't, you might want to try reinstalling/recompiling.





---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Carsten Jensen
2014-05-14 17:11:12 UTC
Permalink
On 14-05-2014 14:40, The Doctor,3328-138 Ave Edmonton AB T5Y
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
[ Charset UTF-8 unsupported, converting... ]
Post by Tim Streater
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
[ Charset UTF-8 unsupported, converting... ]
Post by Tim Streater
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
I have done
php -a
php -i
and nothing comes back.
Not even a new command line prompt?
Correct, this is what I am saying.
<?php
echo phpinfo ();
?>
php xx.php
Same result.
Post by Tim Streater
--
Cheers -- Tim
In order to use php -a, you need to compile php with readline on
FreeBSD, or install from ports the php5-extensions -> tick off readline.

change to php53-extensions or what matches your setup










---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
2014-05-14 20:00:51 UTC
Permalink
[ Charset ISO-8859-1 unsupported, converting... ]
Post by Carsten Jensen
On 14-05-2014 14:40, The Doctor,3328-138 Ave Edmonton AB T5Y
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
[ Charset UTF-8 unsupported, converting... ]
Post by Tim Streater
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
[ Charset UTF-8 unsupported, converting... ]
Post by Tim Streater
Post by The Doctor,3328-138 Ave Edmonton AB T5Y 1M4,669-2000,473-4587
I have done
php -a
php -i
and nothing comes back.
Not even a new command line prompt?
Correct, this is what I am saying.
<?php
echo phpinfo ();
?>
php xx.php
Same result.
Post by Tim Streater
--
Cheers -- Tim
In order to use php -a, you need to compile php with readline on
FreeBSD, or install from ports the php5-extensions -> tick off readline.
change to php53-extensions or what matches your setup
Just did that, still the same result and using the most current of readline.
Post by Carsten Jensen
---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com
--
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
Continue reading on narkive:
Loading...