Jump to content

[SOLVED] specifying paths using shell_exec


obay

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.