i am running a php file that takes up to 2-4 hours to run, and because my internet is so bad i will need to run it inside a linux server (screen). My question is: How can i run php file inside screen with using "GET", because when i use parameters it wont run. it could be that some char are reserved to linux bash, like "?", "&", if so is there any way escaping thos char or is there any other solution? i dont want to create single php file for every parameters.

  • It's extremely unclear what you're asking. Can you give a code example? – Alex Sep 21 '11 at 13:37
  • i cannot run this #screen #php baseurl/filename.php?type=hi i can only run single php file not with parameters – Michael West Sep 21 '11 at 13:39
  • Inside your screen? Whut? – James Sep 21 '11 at 13:40
  • For others - screen is a unix command for running commands in a non-terminating away in a terminal that persists across logins. – Orbling Sep 21 '11 at 13:42
  • yes inside screen with ssh – Michael West Sep 21 '11 at 13:42

You could use PHP CLI for this and get the parameters with $argv. Read more here.


You can make a HTTP request in screen with lynx or wget.

wget http://yourserver.com/yourscript.php?paramter1=1....
  • but i will need to see the callbacks – Michael West Sep 21 '11 at 14:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy