Re: [PHP] Scrambling a word

2008-07-04 Thread Stefano Esposito
On Fri, 04 Jul 2008 18:52:49 -0400 Ron Piggott <[EMAIL PROTECTED]> wrote: > I am using PHP 4 > > I am trying to figure out how to scramble a word. > > Example: hello so the output might be elolh > > Any ideas? > > Ron > > str_shuffle() -- Email.it, the professional e-mail, gratis pe

Re: [PHP] Strategy to protect images

2008-07-01 Thread Stefano Esposito
On Tue, 01 Jul 2008 19:59:20 +0200 Børge Holen <[EMAIL PROTECTED]> wrote: > On Tuesday 01 July 2008 13:34:28 Nitsan Bin-Nun wrote: > > Umm have you ever thought about watermark-ing it? (In case its not > > a part of your website or something..) > > heh, this dude got way to much time on his hands

Re: [PHP] Strategy to protect images

2008-07-01 Thread Stefano Esposito
On Sun, 15 Jun 2008 13:48:28 +0200 Stefano Esposito <[EMAIL PROTECTED]> 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&

Re: [PHP] Encription

2008-07-01 Thread Stefano Esposito
On Mon, 30 Jun 2008 14:39:04 -0500 "Will Fitch" <[EMAIL PROTECTED]> wrote: > Have you considered mcrypt then base64? Thanks, i was completely forgetting mcrypt... that's what i need :) -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: VOGLIA DI VACANZA

[PHP] Encription

2008-06-30 Thread Stefano Esposito
Hi all, i need to encrypt a sensible string to pass it whit GET method. I need that to be decriptable (to use the string in the receiving script) and not to be base64 (too easy to decript)... is there anything similar, considering that my host hasn't installed the Pear::Crypt_GPG package? (actuall

[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

[PHP] mail and quotes

2007-11-02 Thread Stefano Esposito
Hi all, when i send a mail using mail(), every quote and double quote in the subject and in the body of the mail get escaped. Since this is somewhat ugly, especially in languages which widely uses the single quotes (as italian does), i am wandering if there is someway to avoid this. Thanks for an

[PHP] Close a session knowing it's ID (not the current session)

2007-10-24 Thread Stefano Esposito
db to store sessions)? -- Stefano Esposito -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Prestiti e Finanziamenti con un semplice click, scopri subito se sei finanziabile cliccando qui Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2910&d=24-10

[PHP] MySQL and SESSIONs

2007-10-05 Thread Stefano Esposito
Hi all, is it somehow possible to store the connection reference obtained from mysql_connect() (note the absence of the "i") in a $_SESSION element? -- Stefano Esposito -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Problemi di Liqu

[PHP] Limiting connection to mysql using old mysql module (not mysqli)

2007-09-21 Thread Stefano Esposito
Hi all, i'm in need to limit the numbers of conection to the database, whithout loose of functionality. There is a general strategy to achieve this? -- Stefano Esposito -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Insoddisfatto del tuo l

[PHP] Object instance and session

2007-07-24 Thread Stefano Esposito
Hi all, i've a self-defined class describing an user. In the login page i create an instance of the user object and store it in $_SESSION['user']. When accessing $_SESSION['user'] from other pages (of course I do require('user.php'); and session_start();) i got this errors: Warning: mysqli::