View Full Version : PHP mastermind needed here
fluid_tw0
July 3rd, 2004, 04:20 PM
i have (probably noob) question here:
is there any way to pass variables directly from php file to another php file using POST method BUT without using forms, flash or anything except PHP :q:
ahmed
July 3rd, 2004, 04:34 PM
http://ca3.php.net/curl
fluid_tw0
July 4th, 2004, 05:22 AM
thx
λ
July 4th, 2004, 05:43 AM
If your host doesn't provide the curl library, they may provide the curl executable - it's a bit of a hack, but you can use backticks (``) to execute the curl binary passing the correct options.. something like this
$str = `curl -d "foo=foo&foo2=foo2" http://myurl/`;
// $str is the result
print $str;
eyezberg
July 4th, 2004, 08:40 AM
sessions vars too, no..?
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.