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
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 :-)
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
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
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,
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
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 |
|
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 |
|
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.
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
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
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
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
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
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 |
|
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
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
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
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
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,
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
21 matches
Mail list logo