Results 1 to 5 of 5

Thread: PHP output

  1. #1
    Join Date
    Nov 2005
    Location
    under your bed
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP output

    Is there a way to manipulate the php output before it's loaded, like for instance, I made a php script that parses xml data, gets info on local files etc, and it's all separate variables. I was wondering if the data to be echoed is stored in a variable or something so I can encode the data into a javascript document.write just before the page actually loads without having to manually encode each variable echoed.

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    I don't get what you want.
    What do you mean?
    Any examples?
    Jeremy | jfein.net

  3. #3
    Join Date
    Nov 2005
    Location
    under your bed
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    <?php

    include 'random_file_of_stuff.html';
    echo "<br><br>"

    $PHP_OUTPUT = rawurlencode($PHP_OUTPUT)

    ?>

    the php output is the fictional variable I'm looking for, but coming to think of it, there's probably nothing like that at all.

  4. #4
    Join Date
    Oct 2007
    Posts
    23
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    sounds like you could make a function for it if your extremely advanced.

  5. #5
    Join Date
    Jan 2008
    Posts
    32
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    No, there is no PHP output variable. Why don't you just read everything into a string instead of printing it out?

Bookmarks

Posting Permissions

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