Jump to content

lightray

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

lightray's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thanks AndyB, i have read the manual page many times and followed the links without much luck. thanks also Caesar. //$filename = "http://68.178.234.207/welcome.html"; // this works ok with fopen //$filename = "http://greenembrace.org/welcome.html"; //$filename = "http://www.greenembrace.org/welcome.html"; these three point to the same place but only the first works! i don't understand thanks
  2. I'm having trouble opening a URL. I wish to use the file_get_contents function, but have used the fopen to simply see if the page/file is accessable. I have tried all below with little success (only three work). My setting for allow_url_fopen is 'On' under local and master ini. //$filename = "http://pulsar/Kingfisher/Greenembrace/development/testfile.php";    // this works ok with fopen on my own server //$filename = "file:///pulsar/Kingfisher/Greenembrace/development/testfile.php"; //$filename = "/Kingfisher/Greenembrace/development/testfile.php"; //$filename = "X:/Kingfisher/Greenembrace/development/testfile.php"; //$filename = "X:\Kingfisher\Greenembrace\development\\testfile.php"; //$filename = "Kingfisher/Greenembrace/development/testfile.php"; //$filename = "http://www.greenembrace.org/welcome.html"; //$filename = "http://greenembrace.org/welcome.html"; //$filename = "http://www.greenembrace.org/"; //$filename = "http://www.greenembrace.org"; //$filename = "http://greenembrace.org/"; //$filename = "ftp://www.greenembrace.org/welcome.html"; //$filename = "ftp://www.greenembrace.org/"; //$filename = "http://68.178.234.207/";                                          // this works ok with fopen //$filename = "http://68.178.234.207"; //$filename = "http://68.178.234.207/welcome.html";                        // this works ok with fopen //$filename = "ftp://68.178.234.207/welcome.html"; //$filename =  "http://65.206.60.120/data/current_obs/KLFK.rss"; //$filename =  "http://www.nws.noaa.gov/data/current_obs/KLFK.rss"; if (fopen($filename,"r")) {   echo "The file $filename exists"; echo file_get_contents($filename); } else {   echo "The file $filename does not exist"; } please direct me
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.