Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com 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

2 Answers 2

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.

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

Your Answer

 
discard

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