开发者

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

开发者 https://www.devze.com 2022-12-17 13:47 出处:网络
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?

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

精彩评论

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

关注公众号