obay Posted September 11, 2007 Share Posted September 11, 2007 1. is there to know a way to know what operating system the server currently executing a php file is running? how do i do that in php? 2. how do i get the path to the mysql/bin folder of that server.. because for example i want to use this code in my php file: shell_exec("mysqldump --allow-keywords --opt -uroot mydb > mydump.sql") but i need to specify the path to mysqldump help?? Link to comment https://forums.phpfreaks.com/topic/68803-solved-get-server-operating-system/ Share on other sites More sharing options...
bonaparte Posted September 11, 2007 Share Posted September 11, 2007 Have you tried phpinfo()? <?php phpinfo(); ?> Save the above in test.php and access it from the browser. It gives you the information you are looking for. Link to comment https://forums.phpfreaks.com/topic/68803-solved-get-server-operating-system/#findComment-345835 Share on other sites More sharing options...
obay Posted September 11, 2007 Author Share Posted September 11, 2007 thanks!!! Link to comment https://forums.phpfreaks.com/topic/68803-solved-get-server-operating-system/#findComment-345843 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.