fopen problem with local apache installation

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Cyberworkspace
Forum Newbie
Posts: 1
Joined: Fri Apr 20, 2007 12:41 pm

fopen problem with local apache installation

Post by Cyberworkspace »

hi,

i got a problem with getting

$url = sprintf("http://finance.yahoo.com/d/quotes.csv?s ... d1t1c1ohgv" ,$symbol);
$fp = fopen($url, "r");
$array = fgetcsv($fp , 4096 , ', ');

running on my local apache installation.

it works fine on my hosted account but it ain't working from my local development environment (no error, just no results returned). seems to me, that i might need to change something in my apache configuration so that a connection to the "external" url is established at all.

any ideas?

thanks a lot!
Post Reply