[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 :-) Cia

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.. --- Nirmalya Lahiri [+91-9433113536] --- On Sun, 6/15/08, Stefano Esposito <[EMAIL PROTECTED]> wrote: > From: Stefano Esposito <[EMAIL PROTECTED]> > Subject: [PHP] Strategy to protect

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.. --- Nirmalya L

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

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 common

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 | |http://www.phpguru.org/sftp

[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 | |http://www.phpguru

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 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 scrip

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 www.primateapplications.c

[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 arti

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 http://ea

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 | |http://www.

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 Mac-land

[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.. > > /* > 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 se

[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

Re: [PHP] Does PHP support utf16 encode / decode

2008-06-15 Thread Chris
hce wrote: > 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? It's listed as supported under the mbstring functions here: http://www.php.net/manual/en/mbstring.supported-encodings.php -- Postgresql &

Re: [PHP] Apache RewriteRule Help!!!!

2008-06-15 Thread Miguel J. Jiménez
El Fri, 13 Jun 2008 10:23:29 -0400 "Daniel Brown" <[EMAIL PROTECTED]> escribió: > You can start by asking your question on an Apache list. This has > nothing to do with PHP. ;-P > > To answer your question, use this in your .htaccess file: > > RewriteCond %{SCRIPT_FILENAME} index > Rew

Re: [PHP] Does PHP support utf16 encode / decode

2008-06-15 Thread hce
On Mon, Jun 16, 2008 at 3:59 PM, Chris <[EMAIL PROTECTED]> wrote: > hce wrote: >> 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? > > It's listed as supported under the mbstring functions here: > > htt