Trying to get a text value either “yes” or “no” from an aspx page via my php product page.
from here..
after code= i need to insert the product model number $products_model
replace RN311014 with $products_model and then echo back the text result
hope someone can help..
thanks scott
i tryed this within my orginal code
<?php $contents = file_get_contents("http://www.madisonb2b.co.uk/stockenquiry.aspx?id=B8FxKDnJ%2bIdaPT1Nw5wo4r87qHuHcCQIPZzeUE%2fI36LIFOM%2bayBi2RSXHzIJS5Hj97JNSyYL80Q%3d&code={$products_model}", NULL, NULL, 0, 3); echo $contents;
Blockquote
The other two posted solutions will only work if allow_url_fopen has been enabled, which it likely hasn’t.
http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen
Lots of hosts and PHP builds won’t have it enabled for various reasons.
You can either change it in your php.ini or use a CURL request, which would really be the better way about it, ASSUMING CURL is enabled on your PHP install.
That should work… probably. It’ll get you close enough anyway. Haha.