Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Sep 22 '11 at 5:29

This question came from our site for professional and enthusiast programmers.

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.

share|improve this answer

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

share|improve this answer
but i will need to see the callbacks – Michael West Sep 21 '11 at 14:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.