php-general Digest 7 Jul 2009 09:21:04 -0000 Issue 6216

2009-07-07 Thread php-general-digest-help
php-general Digest 7 Jul 2009 09:21:04 - Issue 6216 Topics (messages 294974 through 294990): Re: Simple login form with cookies 294974 by: Jason Carson Re: How to authnticate and use contents from ${HOME} 294975 by: Isaac Dover Re: best way to properly build an include

Re: [PHP] What is this called?

2009-07-07 Thread Michael A. Peters
and throw your favorite Linux distro on it (I'm not touching that holy war with a 10' eth0 cord) I'll touch it. It shouldn't be Fedora - Fedora has too short of a lifetime before major version update is necessary to get patches. The main advantages of Fedora are how new and shiny the

Re: [PHP] best way to properly build an include path *regardless* from where I am calling the include?

2009-07-07 Thread Michael A. Peters
Govinda wrote: I want something that will work for calling an include from any file that lives n levels deep. That's where you have to define a variable (or constant) that tells the system where the web root is located, and then use that to determine where you are in relation to that. For

Re: [PHP] Re: Call to object function, want to PHP interpret returned string

2009-07-07 Thread John Allsopp
Stuart wrote: 2009/7/6 John Allsopp j...@johnallsopp.co.uk: David Robley wrote: John Allsopp wrote: Hi At the top of a webpage I have: ?php include_once(furniture.php); $myFurniture = new furniture(); echo $myFurniture-getTop(my company title); ? to deliver the first lines

[PHP] PHP Manual in PDF format

2009-07-07 Thread Angus Mann
Hi all. I realize this question has been asked before and I've found responses in the archive, but none of the links work now, or the files they point to are old or unsuitable. I'd like to print the most recent PHP manual to paper, so I need it in a format that's suitable. I've downloaded it

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Tom Worster
On 7/7/09 1:23 AM, Jeff Weinberger j...@jeffweinberger.com wrote: On Jul 6, 2009, at 7:47 PM, Paul M Foster wrote: On Mon, Jul 06, 2009 at 02:16:09PM -0700, Jeff Weinberger wrote: Hi: I am hoping someone can help me figure this out I've just upgraded my PHP installation to 5.3.0.

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Richard Quadling
2009/7/6 Jeff Weinberger j...@jeffweinberger.com: Hi: I am hoping someone can help me figure this out I've just upgraded my PHP installation to 5.3.0. Now I am receiving thousands of log messages of the form PHP Deprecated: I know I have a number of scripts that use now-deprecated

Re: [PHP] PHP Manual in PDF format

2009-07-07 Thread Richard Quadling
2009/7/7 Angus Mann angusm...@pobox.com: Hi all. I realize this question has been asked before and I've found responses in the archive, but none of the links work now, or the files they point to are old or unsuitable. I'd like to print the most recent PHP manual to paper, so I need it in a

Re: [PHP] Advise on starting a web store site

2009-07-07 Thread tedd
At 1:15 PM +0100 7/6/09, Matthew Croud wrote: Hi, I'm going to start my first e commerce website for a small web shoe store. I think I know enough PHP to keep my head above water, I'm using an add on shopping cart package to deal with the transactions. My question is, what's the best way to

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Jeff Weinberger
On Jul 7, 2009, at 5:50 AM, Richard Quadling wrote: 2009/7/6 Jeff Weinberger j...@jeffweinberger.com: Hi: I am hoping someone can help me figure this out I've just upgraded my PHP installation to 5.3.0. Now I am receiving thousands of log messages of the form PHP Deprecated: I know

Re: [PHP] Simple login form with cookies

2009-07-07 Thread PJ
PJ wrote: Jason Carson wrote: On Mon, Jul 6, 2009 at 02:19, Jason Carsonja...@jasoncarson.ca wrote: ok, I have two sets of scripts here. One uses setcookie() for logging into the admin panel and the other uses session_start(). Both are working fine, is one more secure than

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Daniel Brown
On Tue, Jul 7, 2009 at 11:03, Jeff Weinbergerj...@jeffweinberger.com wrote: This seemed like it would be the perfect solution...but alas it did not work. 22527 seems right, but after changing php.ini to that and restarting php and apache, I am still getting Deprecated... messages. Dumb

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Jeff Weinberger
On Jul 7, 2009, at 8:38 AM, Daniel Brown wrote: On Tue, Jul 7, 2009 at 11:03, Jeff Weinbergerj...@jeffweinberger.com wrote: This seemed like it would be the perfect solution...but alas it did not work. 22527 seems right, but after changing php.ini to that and restarting php and apache,

Re: [PHP] Browser Alert

2009-07-07 Thread Jan G.B.
2009/7/4 tedd t...@sperling.com So, if you're having problems with Safari 4.0 on Mac OSX uploading files, you're not alone. s/uploading files// ;) To make this posting useful: The thing might be related to this Bug http://www.webmasterworld.com/macintosh_webmaster/3300569.htm But, since

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Tom Worster
On 7/7/09 11:38 AM, Daniel Brown danbr...@php.net wrote: On Tue, Jul 7, 2009 at 11:03, Jeff Weinbergerj...@jeffweinberger.com wrote: This seemed like it would be the perfect solution...but alas it did not work. 22527 seems right, but after changing php.ini to that and restarting php and

Re: [PHP] How to authnticate and use contents from ${HOME}

2009-07-07 Thread Jan G.B.
2009/7/6 Isaac Dover isaacdo...@gmail.com Hi Chantale, as Bastien mentioned, a preconfigured package might be the best way to go. Wikipedia has more information: http://en.wikipedia.org/wiki/List_of_LAMP_Packages What are you wanting to build in your interface? - Isaac On Mon, Jul 6,

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Tom Worster
On 7/7/09 12:17 PM, Jeff Weinberger j...@jeffweinberger.com wrote: On Jul 7, 2009, at 8:38 AM, Daniel Brown wrote: On Tue, Jul 7, 2009 at 11:03, Jeff Weinbergerj...@jeffweinberger.com wrote: This seemed like it would be the perfect solution...but alas it did not work. 22527 seems right,

Re: [PHP] PHP Manual in PDF format

2009-07-07 Thread James Colannino
Richard Quadling wrote: $ pecl install haru [...] $ phd -f pdf -t phppdf -d .manual.xml I installed haru, yet when I try the phd command, I get a class 'HaruDoc' not found error :( Has this happened to anyone else? James -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Jeff Weinberger
On Jul 7, 2009, at 12:30 PM, Tom Worster wrote: On 7/7/09 12:17 PM, Jeff Weinberger j...@jeffweinberger.com wrote: On Jul 7, 2009, at 8:38 AM, Daniel Brown wrote: On Tue, Jul 7, 2009 at 11:03, Jeff Weinbergerj...@jeffweinberger.com wrote: This seemed like it would be the perfect

Re: [PHP] How to stop E_DEPRECATED messages in the PHP log?

2009-07-07 Thread Daniel Brown
On Tue, Jul 7, 2009 at 17:46, Jeff Weinbergerj...@jeffweinberger.com wrote: One question - that I for some reason have not found - is there a list of the numerical values of the E_* constants somewhere? You bet: http://php.net/manual/en/errorfunc.constants.php -- /Daniel P. Brown

Re: Re: [PHP] How to authnticate and use contents from ${HOME}

2009-07-07 Thread Carl Furst
PHP may not be the thing to do this.. because it sounds like you want the users to chroot to ${HOME} which php especially on a vhost does not do. If you want users to access an nfs or ftp I would use either samba or vsftp or some other scp/ftp software. Jan G.B. wrote: 2009/7/6 Isaac Dover

Re: Re: [PHP] Simple login form with cookies

2009-07-07 Thread Carl Furst
The basic model for password authentication is to use one way crypt routines. MySql has several, PHP also has them. The basic algorithm would be like this: 1) read the password from the form. 2) read the password from you datastore that matches the user name or session 3) encrypt the password on

Re: [PHP] Simple login form with cookies

2009-07-07 Thread Michael A. Peters
Carl Furst wrote: The basic model for password authentication is to use one way crypt routines. MySql has several, PHP also has them. The basic algorithm would be like this: 1) read the password from the form. 2) read the password from you datastore that matches the user name or session 3)

Re: [PHP] Simple login form with cookies

2009-07-07 Thread Carl Furst
These are great ideas. Another option would be to have the user choose a pin number and use either the literal pin or the encrypted pin as part of the salt. This way only when you change the pin do you need to change the password, which is probably what you would want anyway. Michael A. Peters

Re: [PHP] Simple login form with cookies

2009-07-07 Thread Michael A. Peters
Carl Furst wrote: ? $salt = 'someglobalsaltstring'; # the salt should be the same salt used when storing passwords to your database otherwise it won't work $passwd = crypt($_GET['passwd'], $salt); I personally use the username and the salt. That way two users with identical passwords have