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.
Asked
Active
Viewed 418 times
0
-
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 – Sep 21 '11 at 13:39
-
Inside your screen? Whut? – James Sep 21 '11 at 13:40
-
For others - [`screen`](http://ss64.com/bash/screen.html) 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 – Sep 21 '11 at 13:42
2 Answers
0
You can make a HTTP request in screen with lynx or wget.
wget http://yourserver.com/yourscript.php?paramter1=1....

Alex
- 676
- 1
- 14
- 37