epamuk Posted January 4, 2009 Share Posted January 4, 2009 Hi, I installed Php as default in the RedHat EL 5,2. I want to see this Php version. How can i see Php version in RHEL 5,2. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/139456-how-can-i-see-php-version/ Share on other sites More sharing options...
corbin Posted January 4, 2009 Share Posted January 4, 2009 http://php.net/phpinfo() Quote Link to comment https://forums.phpfreaks.com/topic/139456-how-can-i-see-php-version/#findComment-729505 Share on other sites More sharing options...
epamuk Posted January 4, 2009 Author Share Posted January 4, 2009 Hi corbin, I dont know Php. Can i see this version in the any php file? Or different simple way? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/139456-how-can-i-see-php-version/#findComment-729511 Share on other sites More sharing options...
Jack.C Posted January 4, 2009 Share Posted January 4, 2009 <?php // Show all information, defaults to INFO_ALL phpinfo(); // Show just the module information. // phpinfo( yields identical results. phpinfo(INFO_MODULES); ?> Place the above code in a file, and run it. It will the show your PHP info. Quote Link to comment https://forums.phpfreaks.com/topic/139456-how-can-i-see-php-version/#findComment-729532 Share on other sites More sharing options...
epamuk Posted January 4, 2009 Author Share Posted January 4, 2009 Hi Jack, I will create an executable file in the RHEL and I will paste this code and save it. Then I will run this executabale file, isnt it? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/139456-how-can-i-see-php-version/#findComment-729533 Share on other sites More sharing options...
Mark Baker Posted January 8, 2009 Share Posted January 8, 2009 or just do php -v from the command line Quote Link to comment https://forums.phpfreaks.com/topic/139456-how-can-i-see-php-version/#findComment-732330 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.