Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: php equiv

  1. #1
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts

    php equiv

    what would be the pho equivilant of this:
    <!--#exec cmd="cgi-bin/randhtml.cgi"-->
    I dont like shtml because it uses lots of bandwicth and the script is goin on a huge page.
    Why not thank me?

    http://adamsworld.name

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    The exact duplicate for that on an apache is virtual(). However, your post leads me to believe your asking for include():
    PHP Code:
    <?php
    include('./page.php');
    ?>

    // page.php
    <?php
    echo 'Hello World';
    ?>

  • #3
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    i dont think so. you might be right. becaue isnt there an include ssi? isnt there an exec on php? my server has apache
    Why not thank me?

    http://adamsworld.name

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    exec() can run you into more problems than its worth.
    Can this file be executed by the browser? If so, include will work just fine. Virutal I believe will only work on #include, but I don't use SSI so I don't know for sure, let alone what the difference between them is.

  • #5
    Regular Coder GO ILLINI's Avatar
    Join Date
    Jun 2005
    Location
    USA
    Posts
    634
    Thanks
    0
    Thanked 7 Times in 7 Posts
    i know a little but i never really got into ssi
    Why not thank me?

    http://adamsworld.name


  •  

    Posting Permissions

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