hello MarkR, hello, bubblenut
many thanks for the input - i am happy to hear from you - you input is appreciate here - since i allmost gone mad
Originally posted by MarkR using fopen is the proper way of doing HTTP connections in PHP now.
So simply get allow_url_fopen enabled. This can be done on a per virtual host basis in your Apache config (with php_admin_flag or something) Cheers Mark
Mark - the thing the former poster mentioned is interesting - he wanted me to do some thing with fsockopen - well to that point i have something found out. many thanks for the input.
is that a way to work round the issues? at least it Sounds possible. I searched Go Ogle and found this which sounds like a good way to implement what you are talking about.[/quote]
MarkR and bubblenut, that sound very very interesting. Again many thanks for the response.- well that semms to be agreat idea -
the thread here: http://7sheaven.pingouin.ca/forum/showthread.php?t=13
please have a look at it
hmm as i am no programmer - can we get this to work - and can we get a work around with that - so that amazon feeds were possible and doable with a server-configuration that is as restrict as mine -. Guess that many many user have server that are so badly configured
hmmm - how can we get the ball rolling - can you help me with a quick and dirty way to patch the script or at least the eaysy one - here - the scripts of this guy here
http://www.chipdir.nl/amazon/
look - there are a vew very handy scripts that can be runnded with ease - but all of thoes make usage of fopen. Perhaps we can hack some of them.
what do you mean Mark and bubblenut, what do you think
look forward to your ideas and suggestions.
with regards
bernard hinault 🙂
here i Found a way to get round fopen issue:
http://7sheaven.pingouin.ca/forum/showthread.php?t=13
theese guys had the same problem and were able to get a work around so there is now rss feed possible:
to share the code with you
/ This function is a replacement the file(URL) function which can not be used with the PHP configuration settings "allow_url_fopen = off"
// This is a generic function, which calls a URL and returns the contents of the URL as a string.
// This function was originally posted by edwin at bitstorm dot org on PHP.net ([url]http://de.php.net/manual/en/function.fsockopen.php[/url])
function fetchURL($url) {
$url_parsed = parse_url($url);
$host = $url_parsed["host"];
$port = $url_parsed["port"];
if ($port==0)
$port = 80;
$path = $url_parsed["path"];
if ($url_parsed["query"] != "")
$path .= "?".$url_parsed["query"];
$out = "GET $path HTTP/1.0\r\nHost: $host\r\n\r\n";
$fp = fsockopen($host, $port, $errno, $errstr, 30);
fwrite($fp, $out);
$body = false;
while (!feof($fp)) {
$s = fgets($fp, 1024);
if ( $body )
$in .= $s;
if ( $s == "\r\n" )
$body = true;
}
fclose($fp);
return $in;
}
hmm as i am no programmer - can we get this to work - and can we get a work around with that - so that amazon feeds were possible and doable with a server-configuration that is as restrict as mine - Guess that many many user have server that are so badly configured
what do you mean. what do you think regards