php-general Digest 16 Jun 2008 05:28:25 -0000 Issue 5516

2008-06-15 Thread php-general-digest-help
php-general Digest 16 Jun 2008 05:28:25 - Issue 5516 Topics (messages 275403 through 275421): Re: Strategy to protect images 275403 by: Nirmalya Lahiri 275404 by: Stephen 275405 by: Bastien Koert 275406 by: tedd 275407 by: Richard Heyes 275411

[PHP] Strategy to protect images

2008-06-15 Thread Stefano Esposito
Hi all, i have to forbid users of my site to view images directly (i.e. writing the image URL in the address bar) but they'd be able viewing them from the pages of the site. What's the best way of doing it, or something similar? Is there a common strategy using PHP? Thank you for any hint :-)

Re: [PHP] Strategy to protect images

2008-06-15 Thread Nirmalya Lahiri
Yes... you can do it. Instade of direct url image, use the url of a php script written(algorithm) below.. ?php /* Write down the code to check authentication of users if( unauthorise user ) then exit from code */ /* Read the image data from file */ header('Content-type: image/jpeg'); /* echo

Re: [PHP] Strategy to protect images

2008-06-15 Thread Stephen
I am not familiar with this bit of http. It looks like something I want to explore. Can you send html as well as just the image? Thanks Stephen Nirmalya Lahiri wrote: Yes... you can do it. Instade of direct url image, use the url of a php script written(algorithm) below.. ?php /* Write

Re: [PHP] Strategy to protect images

2008-06-15 Thread Bastien Koert
On Sun, Jun 15, 2008 at 8:51 AM, Stephen [EMAIL PROTECTED] wrote: I am not familiar with this bit of http. It looks like something I want to explore. Can you send html as well as just the image? Thanks Stephen Nirmalya Lahiri wrote: Yes... you can do it. Instade of direct url image,

Re: [PHP] Strategy to protect images

2008-06-15 Thread tedd
At 1:48 PM +0200 6/15/08, Stefano Esposito wrote: Hi all, i have to forbid users of my site to view images directly (i.e. writing the image URL in the address bar) but they'd be able viewing them from the pages of the site. What's the best way of doing it, or something similar? Is there a

Re: [PHP] Strategy to protect images

2008-06-15 Thread Richard Heyes
But, a sophisticated user will find a way around that. A less sophisticated one will use the PrintScr key... :-) -- Richard Heyes Employ me: http://www.phpguru.org/cv ++ | Access SSH with a Windows mapped drive | |

[PHP] Canvas examples

2008-06-15 Thread Richard Heyes
Does anyone have any more examples of the new canvas element they've written? FF only: http://www.phpguru.org/canvas.html -- Richard Heyes Employ me: http://www.phpguru.org/cv ++ | Access SSH with a Windows mapped drive | |

Re: [PHP] Canvas examples

2008-06-15 Thread David Giragosian
On 6/15/08, Richard Heyes [EMAIL PROTECTED] wrote: Does anyone have any more examples of the new canvas element they've written? FF only: http://www.phpguru.org/canvas.html -- That's very cool, Richard. --David.

Re: [PHP] Canvas examples

2008-06-15 Thread Richard Heyes
That's very cool, Richard. Well, thanks, but I wouldn't call it very cool. Now a graphing library that output the results using a canvas, thus negating the need for JPGraph would definitely be nice. Or you could just use JPGraph and get to the pub earlier... :-) -- Richard Heyes

Re: [PHP] Strategy to protect images

2008-06-15 Thread Dmitri
This is how I do it: 1) put image files in folder that is not accessable from browser, like outside of http root dir. 2) in the img src tag point src to script like img src=/image.php?imageID=$someID where $someID is the id of image or name of image you want user to see 3) the image.php

Re: [PHP] Canvas examples

2008-06-15 Thread Ray Hauge
Richard Heyes wrote: Does anyone have any more examples of the new canvas element they've written? FF only: http://www.phpguru.org/canvas.html This is a pretty interesting use of Canvas as well. Thanks for sharing! http://ejohn.org/blog/processingjs/ -- Ray Hauge

[PHP] extension=mssql.so vs. ;extension=php_mssql.dll

2008-06-15 Thread Wei, Alice J.
Hi, I am not sure what is exactly the problem with my configurations while I am trying to configure Apache, PHP and FreeTDS throughout my attempts to install these packages into my Linux. It appears that I am doing everything correctly as I am going through listservs, forums and online

Re: [PHP] Strategy to protect images

2008-06-15 Thread tedd
At 4:11 PM +0100 6/15/08, Richard Heyes wrote: But, a sophisticated user will find a way around that. A less sophisticated one will use the PrintScr key... :-) -- Richard Heyes Must be a windozes thing. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] Canvas examples

2008-06-15 Thread Richard Heyes
This is a pretty interesting use of Canvas as well. Thanks for sharing! http://ejohn.org/blog/processingjs/ This is very nice. -- Richard Heyes Employ me: http://www.phpguru.org/cv ++ | Access SSH with a Windows mapped drive | |

Re: [PHP] Strategy to protect images

2008-06-15 Thread Richard Heyes
Must be a windozes thing. :-) I guess so. PrintScr takes a snapshot of the current screen, ie a screenshot and places it on the clipboard. Then you simply paste into something like Paint and save it. -- Richard Heyes Employ me: http://www.phpguru.org/cv

Re: [PHP] Strategy to protect images

2008-06-15 Thread tedd
At 7:35 PM +0100 6/15/08, Richard Heyes wrote: Must be a windozes thing. :-) I guess so. PrintScr takes a snapshot of the current screen, ie a screenshot and places it on the clipboard. Then you simply paste into something like Paint and save it. -- Richard Heyes ` Oh that -- in

[PHP] PHP session expiring too early?

2008-06-15 Thread gh
I am experiencing a strange bug after upgrading to PHP 5.2.4 with the Zend Optimizer 3.3.3. In two of our locally-hosted web applications, NolaPro and SugarCRM, the login sessions are expiring after 5 minutes of inactivity and I cannot figure why. The relevant values from my /etc/php.ini file

Re: [PHP] Strategy to protect images

2008-06-15 Thread Børge Holen
On Sunday 15 June 2008 14:25:36 Nirmalya Lahiri wrote: Yes... you can do it. Instade of direct url image, use the url of a php script written(algorithm) below.. ?php /* Write down the code to check authentication of users if( unauthorise user ) then exit from code */ /* Read the

Re: [PHP] PHPMailer not working but Squirell mail works

2008-06-15 Thread Gabriel Sosa
i just dont know if this may help... but Im 90%sure SquirrelMail uses IMAP to connect with the server also, phpmailer should give you an error code and error string, can you paste here? saludos On Fri, Jun 13, 2008 at 8:55 PM, Iv Ray [EMAIL PROTECTED] wrote: Shiplu wrote: In my web server,

[PHP] Does PHP support utf16 encode / decode

2008-06-15 Thread hce
Hi, I know PHP supports utf8 encode/decode, but does it support utf16 encode/decode? If yes, would you please point me a php manual URL? Thank you. Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php