so have scheduling algorithm written in php consists of around 15 files. want move scheduler personal website built using wordpress , host gator. final goal.
my question, how exicute simple helloworld php script when button pressed
i have wordpress page has button when pressed want run php script, helloworld.php -aledsworld.com/button1
but when pressed goes address - aledsworld.com/button1/helloworld.php gives page not found
i can upload php script server because works - aledsworld.com/helloworld.php though loose css
so question folder need upload helloworld.php too?
your script needs execute php script. can using exec, shell_exec, etc.
if (isset($_post['button_press'])) { exec('php helloworld.php'); } host gator may not allow use exec though...
Comments
Post a Comment