E
E
Eugene2019-07-13 19:51:11
linux
Eugene, 2019-07-13 19:51:11

How to run a php script with get parameters?

There is a page that takes a very long time to form. Its address contains get parameters. The goal is to run a script that bypasses the runtime limit.
via the php index.php?param=value command does not work, because as soon as the ? sign appears after .php an error is thrown.
Through wget site.ru/index.php?param=value is cut off by timeout.
Is it possible to start somehow or is it just an option to go to vps?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2019-07-13
@eugeneledenev

Looks like I found a solution. You can create a script in which I "manually" set the get parameters and include my main script in it.
The command line would be:
php -r '$_GET["param_name"]="param_value"; include "index.php";'

I
Israpil Akhmedov, 2019-07-13
@xISRAPILx

https://www.php.net/manual/en/reserved.variables.a...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question