Code: Select all
<?php
$word = "test";
$html = file_get_contents('http://www.bigcompany.com/cgi-bin/catalog?va=chair123');
echo $html
?>I am trying to get the only the shipping dimensions for the product and I tried adding the following:
Code: Select all
preg_match("dimensions:", $html, $matches);
var_dump($matches);Code: Select all
Warning: Delimiter must not be alphanumeric or backslash in /var/www/html/nsb/getwordweb.php on line 13
array(0) { }Is there a php command that will do this?
Thanks!
[Edit: Fixed subject & added php and code tags. --JAM]