Script problem

software development

#1

I have a script that I used to use when my page was on another server . the script determines the date and then it pull the information from that page onto my main page. Here is the script:

<?php $day = date("F d"); $seperator = ' '; $path= 'http://animationarchive.net/Dates/By Day/' ; $base = '/description.php' ; $filename = $path.$day.$base; include ("$filename"); ?>

The problem seems to be the last line, I am getting the following error:

Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/.reebok/animationa/animationarchive.net/history.php on line 8

Warning: include(http://animationarchive.net/Dates/By Day/July 19/description.php) [function.include]: failed to open stream: no suitable wrapper could be found in /home/.reebok/animationa/animationarchive.net/history.php on line 8

Warning: include() [function.include]: Failed opening ‘http://animationarchive.net/Dates/By Day/July 19/description.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php:/usr/local/lib/php’) in /home/.reebok/animationa/animationarchive.net/history.php on line 8

Any help would be greatly appreciated


#2

I’d leave the http:// out of it, since it seems to be your domain.

Something like $path = /home/username/domain.com/etc…

If you need to access something on another server, you might want to look into curl.


:stuck_out_tongue: Save up to $96 at Dreamhost with ALMOST97 promo code (I get $1).
Or save $97 with THEFULL97.


#3

That worked, thanks a lot