Hello!
I have a problem. I have two files : file1.php and file2.php I need to pass variable cuantos form file1.php to file2.php using exec, system or proc. I do not know how to to pass it ro received the variable at file2.php.
Please help!!
Sorry, I'm not sure if I understand you:
you want to pass a variable from one php file to another? Why not pass them in the URL or a session variable?
Because I want to execute the php script with exec() so it runs in background.
Hmm.. unusual...
well, why not do
[man]exec[/man]("script.php argument1");
and then in script.php you would use
$_SERVER['argv']
to access the arguments?
For more information on argv, look here
Thanx It worked out for me.