Forum Moderators: coopster

Message Too Old, No Replies

Is full integration of asp pages possible?

         

El_Cho

1:27 pm on Jan 12, 2005 (gmt 0)



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:

http://www.exampleprovider.ch/clients/mysite/cinema/index.asp [exampleprovider.ch]

I created a module in which I put:

include("http://www.exampleprovider.ch/clients/mysite/cinema/index.asp");

Result is quite nice,
[mysite.com ]

but my problem is that every link supposed to be like

http://www.exampleprovider.ch/clients/mysite/cinema/cinema_detail.asp?id_cinema=4427

has been changed to:

http://www.mysite.com/cinema_detail.asp?id_cinema=4427

and of course, it causes errors...

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

http://mysite.com/modules.php?name=Cinema&cinema=4427
, that will refer to the above code to my provider?

Thanks in advance for your precious help.

;)

[edited by: jatar_k at 5:27 pm (utc) on Jan. 12, 2005]
[edit reason] removed specific urls [/edit]

coopster

12:03 pm on Jan 14, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, El_Cho.

If I understand you correctly you want to include content from an external source and the urls in the content are relative. So, when you include [php.net] them in your page content, the links are failing.

First thoughts here would be to read the external content into a variable and use a regular expression or perhaps a str_replace() [php.net] to find and change the external links to your site structure.