Click to See Complete Forum and Search --> : PHP 'include' help please...


BurnCK
07-10-2004, 09:18 AM
I am trying to get a php action to show on a html page by using the following :-
<?PHP
include("releases/show_archives.php?archive=1089461074&subaction=list-archive&");
?>

However, I get the following error :-

Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/xtremevinyl.co.uk/httpdocs/preleases.php on line 145

Warning: Failed opening 'releases/show_archives.php?archive=1089461074&subaction=list-archive&' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/xtremevinyl.co.uk/httpdocs/preleases.php on line 145

Can anyone tell me what Im doing wrong ? If I just use the <?PHP include("releases/show_archives.php"); ?> then the php is included on the page ok, but Im trying to get a specific action to be displayed. Can this be done ?
Hope this all makes sense.

Thanks

ShrineDesigns
07-10-2004, 11:01 AM
if the file is "local" (on the same server), you can't include a file with:
releases/show_archives.php?archive=1089461074&subaction=list-archive&
only: releases/show_archives.php

BurnCK
07-10-2004, 01:19 PM
So is there no way to do it without having to either click on a link or paste the URL into a browser ? Can I not 'call' or 'include' it in anyway ??

ShrineDesigns
07-10-2004, 02:46 PM
http://www.php.net/manual/en/function.include.php

BurnCK
07-10-2004, 03:25 PM
Thanks mate ! :) ;)

BurnCK
07-10-2004, 05:01 PM
Using URL rather than the local path works ok ! Thanks for your help ! :)