I've never opened a URL with fopen. Have you looked for examples in the manual? http://php.net/fopen ???
however, I can see one problem... filesize($file) -- where is $file???? Justin French on 11/03/03 2:22 PM, Anthony Ritter ([EMAIL PROTECTED]) wrote: > I'm trying to test the following script to display the contents of the > following URL but it will not output. > > Any advice will be greatly appreciated. > Thank you. > Tony Ritter > ....................................................... > > <html> > <head> > </head> > <body> > <? > $file_handler = fopen("http://www.weather.com", "r"); > $contents = fread($file_handler, filesize($file)); > fclose($file_handler); > echo $contents; > ?> > </body> > </html> > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php