PDA

View Full Version : PPPRINT - what is it?


Dave Leishman
September 7th, 2006, 08:59 AM
Hi all,

I've recently downloaded the photopost_anywhere.php script from this site to allow me to place images from the gallery on my home page.

I'm just looking through some of the code with a view to making the script a little more flexible by creating the necessary code as a function and call it from the home page with the required parameters (random/latest, no of photos, colums, etc), rather than have it hard coded within the script.

I've come across the statement 'PPPRINT' and have noticed it frequently within the other php scripts that make up Photopost, but can't find a definition for it.

Can someone either tell me exactly what this is and does, or point me to the script that defines it please?

Thanks,
Dave

Michael P
September 7th, 2006, 09:02 AM
It's used in an echo pair:

echo<<<PPPRINT
PPPRINT;

everything in between these two statements is sent to the output buffer.

Dave Leishman
September 7th, 2006, 09:16 AM
Thanks Michael. You gave me the info I needed to find the description in the php manual. I understand now:)

Edit: All working as I want it now. Thanks again Michael.