[Phpug] Help with PHP script

Ken Guest kguest at php.net
Tue Sep 4 10:39:58 IST 2007


On Tue, Sep 04, 2007 at 09:24:31AM +0100, ghooton wrote:
> Hello all,
> Attached is a php script.
> I do not know any PHP. 
> When I connect to the site which is running this scrip over SSL
> I get hotlink.png instead of the thumbnails
> 
> If anyone can help me (or help me to help myself ) to understand 
> what this script is doing I would be grateful.
> I see references to  // SSL check and hotlink.png in the script.
> 
> How can I see what values vars like $type are set to, can I have them
> written to a log file ?
> 

what you could do here is either print the values to standard out
var_dump($type);

or use error_log ( http://ie.php.net/error_log ):
error_log("type is '$type'", 3, "/tmp/php_variables.log");



-- 
Ken Guest
Mobile: +353 86 8252 141    http://blogs.linux.ie/kenguest/
Irish PHP Users Group       http://www.php.ie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://lists.iephpug.org/pipermail/phpug/attachments/20070904/31092bf0/attachment.bin 


More information about the Phpug mailing list