Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    9

    Unanswered: Import Files from Header

    What's the code to import for example:
    view.asp?import=blah

    Then it imports blah.txt from /Public/ for example
    I need the code for this ASAP please

  2. #2
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    9
    Ok I'll make my point easier for those of you who know PHP.
    I need this: translated into ASP for me
    Code:
    <?php
    if ( $page == null ) 
    $page = tutorials;
    $ftbi = "Public/".$page.".php";
    if (file_exists($ftbi)) { 
       include $ftbi; 
    } 
    else { 
       print "Could not import file: " . $ftbi . " -  Reason: The file was strapped to Combustible Rabbit when it combusted."; 
    } ?>

Posting Permissions

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