0

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.

2 Answers2

3

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

PiTheNumber
  • 345
  • 2
  • 5
  • 18
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