www.webdeveloper.com
Results 1 to 4 of 4

Thread: Is full integration of asp pages possible?

  1. #1
    Join Date
    Jan 2005
    Posts
    3

    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:

    http://www.regart.ch/clients/i-rebel...nema/index.asp

    I created a module in which I put:

    PHP Code:
    include("http://www.regart.ch/clients/i-rebelles/cinema/index.asp"); 

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

    but my problem is that every link supposed to be like

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

    has been changed to:


    http://www.i-rebelles.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://i-rebelles.com/modules.php?name=Cinema&cinema=4427
    , that will refer to the above code to my provider?

    Thanks in advance for your precious help.


  2. #2
    Join Date
    Jun 2003
    Location
    here
    Posts
    4,551
    yes, that's quite easy:

    PHP Code:
    $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";
    };}; 
    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.

  3. #3
    Join Date
    Jan 2005
    Posts
    3
    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...

  4. #4
    Join Date
    Jan 2005
    Posts
    3
    Bump

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles