/    Sign up×
Community /Pin to ProfileBookmark

Is full integration of asp pages possible?

Hi,

My knowledge is quite weak in php and all other languages.

I hope to get help on this problem.

A provider is giving me content for my website:

[URL=http://www.regart.ch/clients/i-rebelles/cinema/index.asp]http://www.regart.ch/clients/i-rebelles/cinema/index.asp[/URL]

I created a module in which I put:

[code=php]include(“http://www.regart.ch/clients/i-rebelles/cinema/index.asp”); [/code]

Result is quite nice,
[URL]http://www.i-rebelles.com/modules.php?name=Cinema[/URL]

but my problem is that every link supposed to be like

[QUOTE]

http://www.regart.ch/clients/i-rebelles/cinema/cinema_detail.asp?id_cinema=4427

[/QUOTE]

has been changed to:

[QUOTE]

http://www.i-rebelles.com/cinema_detail.asp?id_cinema=4427

[/QUOTE]

and of course, it causes errors…

Is there a way to display the url of my module like :

[QUOTE]

http://i-rebelles.com/modules.php?name=Cinema&cinema=4427

[/QUOTE]

, that will refer to the above code to my provider?

Thanks in advance for your precious help.

?

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@scragarJan 12.2005 — yes, that's quite easy:

[code=php]
$BaseLoc = "http://www.regart.ch/clients/i-rebelles/";
if(!isset($_GET['name'])){
include $BaseLoc."index.asp";
}else{
if(!@include $BaseLoc.$_GET['name']."index.asp"){
include $BaseLoc."index.asp";
};};
[/code]

This will load the index page if no file is requested or the request is invalid, if the request is valid then it opens it normaly.
Copy linkTweet thisAlerts:
@ChoauthorJan 12.2005 — Thanks for your answer, but result is visually the same as include function.

All links appear to be on my server-ok-, but they don't call a page on my provider server so it still causes the same errors...
Copy linkTweet thisAlerts:
@ChoauthorJul 11.2005 — ? Bump
×

Success!

Help @Cho 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.2,
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: @meenaratha,
tipped: article
amount: 1000 SATS,

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

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