| View previous topic :: View next topic |
| Author |
Message |
RealM
Joined: 28 Mar 2007 Posts: 1
|
Posted: Wed Mar 28, 2007 3:17 pm Post subject: How to check which PHP version your server is running? |
|
|
I just found this and thought it was cool:
| Code: |
<?php
phpinfo ();
?>
|
|
|
| Back to top |
|
 |
Ash
Joined: 28 Mar 2007 Posts: 23
|
Posted: Wed Mar 28, 2007 3:57 pm Post subject: |
|
|
For those of that have no idea what the original poster has posted this is a simple way to find out what php version you have and more, much more.
Simply create a php file called what ever you want like test.php add the above code to the page and upload it to your server, now go to yourdomain.com/test.php and you will be shown a wealth of info, like realm said "enjoy" |
|
| Back to top |
|
 |
taikaish
Joined: 28 Mar 2007 Posts: 3
|
Posted: Wed Mar 28, 2007 4:57 pm Post subject: |
|
|
If you want to show it in your site,
Save the 'html' to .php,
and add this code to the place you want to show it.
Done! |
|
| Back to top |
|
 |
shogunmike
Joined: 29 Mar 2007 Posts: 3
|
Posted: Thu Mar 29, 2007 9:00 am Post subject: Very handy for showing installed pesky libraries! |
|
|
It's great for showing whether things like GD Image Library are installed, and even whether PHP is talking to any MySQL database or what not. In fact, it's probably the most useful PHP function ever...
Obviously it's also a great way of working out whether PHP is working at all... |
|
| Back to top |
|
 |
chrishirst

Joined: 29 Mar 2007 Posts: 40 Location: Blackpool
|
Posted: Thu Mar 29, 2007 11:53 am Post subject: |
|
|
| taikaish wrote: |
If you want to show it in your site,
Save the 'html' to .php,
and add this code to the place you want to show it.
Done! |
This is absolutely something NOT to do
Unless of course you really WANT to advertise any potential weak points for every scummy site hacker around. _________________ Chris.
So long, and thanks for all the fish. |
|
| Back to top |
|
 |
Gorlim
Joined: 29 Mar 2007 Posts: 4
|
|
| Back to top |
|
 |
Walter Godfrey
Joined: 28 Mar 2008 Posts: 10
|
Posted: Fri Jun 20, 2008 8:14 am Post subject: |
|
|
It is possible to run different PHP versions for different folders. More information on how to do this can be found in this article.
In order to check exactly which PHP version is used for a certain folder, you should create a simple php file. _________________ Drupal Web Hosting |
|
| Back to top |
|
 |
technophobicseo
Joined: 24 Oct 2008 Posts: 6
|
Posted: Fri Oct 24, 2008 9:20 am Post subject: |
|
|
Chris is right.. your site will be an open book for everybody.
its a no no. _________________ Designer Clothes Online offers Polo Ralph Lauren Clothing Lines |
|
| Back to top |
|
 |
|