View Full Version : PHP output
wibumba
02-25-2008, 09:29 AM
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.
I don't get what you want.
What do you mean?
Any examples?
wibumba
02-25-2008, 04:22 PM
<?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.
magik
02-25-2008, 08:26 PM
sounds like you could make a function for it if your extremely advanced. :p
Leafy
02-26-2008, 12:32 AM
No, there is no PHP output variable. Why don't you just read everything into a string instead of printing it out?
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.