September 22, 200917 yr Just wondering would it be possible to grab external data from my ebay feedback page using curl/php and then have the feedback displayed in my ebay listing ? Does ebay allow the use of php in listings ?
September 22, 200917 yr Author heres an example which apparently displays googles homepage as raw html but i cant figure out how to set this up, any help ? Ive tried saving this as .php file but on previewing that just displays the code below .. [php] // Initialize the CURL library $cURL = curl_init(); // Set the URL to execute curl_setopt($cURL, CURLOPT_URL, "http://www.google.com"); // Set options curl_setopt($cURL, CURLOPT_HEADER, 1); curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1); // Execute, saving results in a variable $strPage = curl_exec($cURL); // Close CURL resource curl_close($cURL); // This will print out the HTML contents echo($strPage); ?>[/php]
Create an account or sign in to comment