NYCPHP Meetup

NYPHP.org

[nycphp-talk] FILE()

Néstor rotsen at gmail.com
Mon Oct 23 19:58:59 EDT 2006


I am trying to create a file that will print a web page
and using the following code the below statement contains the
sam einformation:
  $from = $_SERVER['HTTP_REFERER'];
  print "refer=|" . $_SERVER['HTTP_REFERER'] . "|<br>\n";
  print "from=|" . $from . "|<br>\n";
---
  refer=|http://maggie.sdcwa.org/eng/project/view_project.phtml|
  form=|http://maggie.sdcwa.org/eng/project/view_project.phtml|

The problem is that if I use the code below to read the file then
$lines is empty.
  $lines = file("$from");

If I use the code below, $lines contains the file:
  $lines = file('
http://maggie.sdcwa.org/eng/project/client_view_project.phtml');


I do not know why it will read the file when I spell the actual URL compare
compare to when I read the URL using the $_SERVER['HTTP_REFERER'].

Thanks,

Néstor ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20061023/e2bc18b1/attachment.html>


More information about the talk mailing list