0

Something wrong in php_proxy_simple example?

I was unable to use the php_proxy_simple code directly and had to make a couple of changes.

The first change I had to make to get my GET call to Yahoo local functioning. The ampersands were getting decoded to amp&; and sent to local that way, so I added
$url = str_replace('&','&',$url);

I also modified the checks on $_POST to prevent the errors I was getting in the logs:
Line 14 became: $path = (array_key_exists('yws_path',$_POST)) ? $_POST['yws_path'] : $_GET['yws_path'];
Line 21 became: if (array_key_exists('yws_path',$_POST)) {


Please let me know if there is a setting on my end that would have prevented the need for the first change.

Thanks,
Haley

by
0 Replies

Recent Posts

in Suggestions for YDN