开发者

php exec, passthru function work arounds when disabled on the host

My开发者_运维知识库 site is php based and the host disabled exec() and passthru() and system(). I have a script that needs these functions. Is there any work arounds?

The commands my script to run is simple mysqldump to backup my database. If there's no work arounds to use those functions. Is there another way to do the backup without the need to use them ?


I think your host does not disabled exec() without a reason. If you find a way to do it, they'll likely do their best to close it, and/or close your account.


No, they were made disableable to prevent security leaks. Being able to circumvent these undermines the whole purpous of disabling them


A naive solution for backing up MySQL DBs is to use SELECT ... INTO OUTFILE and LOAD DATA INFILE .... They won't solve all your problems, but it's a shortcut when you can't run shell commands.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜