I have to disgree with this idea jpadie. You seem to be a passable coder. For all I know you might be the best php scripter on the planet. My following rant is aimed at this thought pattern that has emerged in todays programmers and not at you personally. Please don't take it as such.
Just...
jpadie - you are not as confused as I.
Yes the server is out of date... and php info says 'Microsoft-IIS/6.0'
DNS is resolving because a link resolves correctly from that page. The main website is using a old DNN install which might be tweaking the url. Also one of the reasons upgrading is...
1. check and see if you can send a email from a simple 1 line script
such as
$result = mail('evil8@mymail.com', 'hi', 'test', 'someone@somewhere.com');
if ($result){
echo "1";
else{
echo "0";
}
if the msg sends then work backwards adding pieces and testing. Continue until you have it...
as jpadie pointed out you have an array slice that is null so when you try to increment nothing it dies. So either you have to initialize the value when you create it or check to see if the pointer is valid, initialize then increment.
First off there is no copy issue with the scraping of this page. The site I am working on is a subdomain.
Using the following code:
...
$url = 'http://www.outlands.org/Portals/0/event_cal.php';
$fp = file_get_contents($url);
echo $fp;
...
error: failed to open stream: Bad file descriptor...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.