BRAIN FART! Stupid PHP question...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • XSAXS
    Confirmed User
    • Nov 2004
    • 652

    #1

    BRAIN FART! Stupid PHP question...

    Trying to include a php script into a page *after* it's already been parsed. This doesn't work because it just inserts the raw php code:

    PHP Code:
    <?php  
    include('script.php');  
    ?>
    I need to run the script first and then have it inserted into the page. Who know the trick?
  • retro
    Registered User
    • Dec 2004
    • 62

    #2
    Huh?

    Try an iframe maybe?
    Send your traffic to RetroDate.Com

    ICQ 194-452-393

    Comment

    • Lycanthrope
      Confirmed User
      • Jan 2004
      • 4517

      #3
      Que?

      Comment

      • XSAXS
        Confirmed User
        • Nov 2004
        • 652

        #4
        yeah, I thought about an iframe, but I know I've seen this done before.

        Comment

        • psili
          Confirmed User
          • Apr 2003
          • 5526

          #5
          Can you use the "eval()" function to evaluate the raw PHP code ???
          Your post count means nothing.

          Comment

          • StuartD
            Sofa King Band
            • Jul 2002
            • 29903

            #6
            Originally posted by psili
            Can you use the "eval()" function to evaluate the raw PHP code ???
            bingo
            This is me on facebook
            This is me on twitter

            Comment

            • EscortDate_Enoj
              Registered User
              • Mar 2002
              • 87

              #7
              You could do a ..

              PHP Code:
              <?php
              
              $parsed_file = file_get_contents('http://myserver.com/script.php');
              
              ?>
              Kind of nasty, but hey, eval() is nasty too.

              1:287 all November with UnrealBank

              Comment

              Working...