Execute another PHP script -


i have cron job calculates disk space on servera

i have mysql database on serverb stores disk space values

servera in not allowed access mysql database on serverb (rules out direct mysql connect)

servera cannot open files on serverb (rules out include();)

servera , serverb have no shell_exec() abilities

i've tried header("location: http://serverb.com/record.php?disk_space=$disk_space"); using method receiving file $_request values works when run through browser , not when run cron job.

i think there no proper alternatives. i'm happy peculiar or scruffy solution. please put forward ideas. tia

you can hit external scripts directly through number of http libraries -- file_get_contents().

see:

you use sockets make request:

lots of options (more included here). easiest, if needs simple, file_get_contents.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -