Re: Automating POST/GET

From: Date: Mon, 26 Apr 2004 13:23:36 +0000
Subject: Re: Automating POST/GET
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-184630@lists.php.net to get a copy of this message
Richard Harb wrote:
Carefully read the section on "Variable parsing" at http://www.php.net/manual/en/language.types.string.php And then the google terms of use ;-)
Monday, April 26, 2004, 6:58:50 AM, thus was written:
Hi - What am I doing wrong here? I am trying to run a remote "GET" method action form without success - (so that I can submit my website to Google without visiting their site manually).
I've tried ...
<?php $siteurl = "www.whatever.com"; $description = "Description with spaces and commas, in it.";
include
'http://www.google.com/addurl?q=$siteurl&dq=$description';    //
Works - but passes the variable name instead of its value.Any variation from this format doesn't work - such as double-quotes, periods, etc.
header("Location: http://www.google.com/addurl?q=$siteurl&dq=$description") // Doesn't work - my IE6 browser won't make the remote call and instead errors out trying to execute this script locally.
?>>
-- Raditha Dissanayake. --------------------------------------------- http://www.radinks.com/print/upload.php SFTP, FTP and HTTP File Upload solutions

« previous php.general (#184630) next »