I am having trouble with a remote include.
I am using this line include("http://www.d.umn.edu/~claweb/news/news-view.php?id=6");
And getting this error Parse error: parse error, unexpected T_STRING in http://www.d.umn.edu/~claweb/news/news-view.php?id=6 on line 2
But I know remote includes work on the server because when I try this one: include("http://guestbook.cjb.net:81/cgi-bin/guestbook.cgi?view=outskirtsofreality");
It works.
Any ideas??
-Pat
your code is fine, the problem is at www.d.umn.edu (as indicated by the error message)
Yeah, the page you're including has errors on it.
But you should be aware that remote includes over HTTP is HORRIBLY INSECURE and should be AVOIDED AT ALL COSTS.
Originally posted by pacman34 include("http://www.d.umn.edu/~claweb/news/news-view.php?id=6");
You don't want include. You want something like fopen().
You cannot put get variables inside an include or it will error out. As for your second one working, it's probably not sending those get vars.