Script problem

software development


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= ' 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/ on line 8

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

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

Any help would be greatly appreciated


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

Something like $path = /home/username/…

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.


That worked, thanks a lot