obay Posted September 11, 2007 Share Posted September 11, 2007 i use xampplite locally, winxp. from PHP, this creates a blank mydump.sql file: shell_exec("mysqldump --allow-keywords --opt -uroot mydb > mydump.sql"); but this works fine: shell_exec("c:\\xampplite\\mysql\\bin\\mysqldump --allow-keywords --opt -uroot mydb > mydump.sql"); but if i use the second one on my pages, im afraid the code might not work anymore when i transfer the site to my server, because of the path. any suggestions??? Link to comment https://forums.phpfreaks.com/topic/68802-solved-specifying-paths-using-shell_exec/ Share on other sites More sharing options...
obay Posted September 11, 2007 Author Share Posted September 11, 2007 i found my answer on nix servers, i only need to "mysqldump", no path. my web server is linux =) Link to comment https://forums.phpfreaks.com/topic/68802-solved-specifying-paths-using-shell_exec/#findComment-345845 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.