/    Sign up×
Community /Pin to ProfileBookmark

PHP ‘include’ help please…

I am trying to get a php action to show on a html page by using the following :-

[CODE]<?PHP
include(“releases/show_archives.php?archive=1089461074&subaction=list-archive&”);
?>[/CODE]

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

[CODE]<?PHP include(“releases/show_archives.php”); ?>[/CODE]

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

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@ShrineDesignsJul 10.2004 — 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
Copy linkTweet thisAlerts:
@BurnCKauthorJul 10.2004 — 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 ??
Copy linkTweet thisAlerts:
@BurnCKauthorJul 10.2004 — Thanks mate ! ? ?
Copy linkTweet thisAlerts:
@BurnCKauthorJul 10.2004 — Using URL rather than the local path works ok ! Thanks for your help ! ?
×

Success!

Help @BurnCK spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...