Re: [PHP-DB] Regular Expressions? URGENT

2003-08-02 Thread Adam Royle
Hi Aaron, I found this on a little useful when I started learning regex. Good luck 2 ya! adam http://www.devshed.com/Server_Side/Administration/RegExp/ Hi All, Sorry for OT post but need some info. Does anyone know a good tutorial that explains regular expressions in DUMMY terms? I have a li

[PHP-DB] Free php editor!!

2003-08-02 Thread Norma Ramirez - TECNOSOFT
Hi, does any one know if exist a free php editor like DreamWeaver? =) I know DreamW it´s too much than an editor with all of the duties... but I need something free... Thank´s Norma Ramirez

Re: [PHP-DB] Free php editor!!

2003-08-02 Thread Jim
There are only a few, probably less than 50, depending on your OS (you didn t mention what OS you are using), If you go to Google and type in "free PHP editor" you will see them all. Try them out and see which one suites your style. Or look through the archives of this list and see what comments p

Re: [PHP-DB] Free php editor!!

2003-08-02 Thread Craig Roberts
It depends what you're looking for in an editor... Dreamweaver's nice because it shows you the arguments for all the functions - but takes far too long to load for me to do a quick hack on a script, so I only use it when I'm planning on spending the next few hours coding on a particular site thats

[PHP-DB] PHP 4.3.3 Session problem

2003-08-02 Thread Lars Rasmussen
Hi all, I have a big problem! I just installed the new PHP 4.3.3 on my FreeBSD 4.4! But all our costumers have a problem with sessions! Let's say that a user is setting a session, it writes the data fine, but when clicking a link the session file turns empty! Anyone who know how to fix this pr

Re: [PHP-DB] Free php editor!!

2003-08-02 Thread Robin Baxter
I use Eclipse with a PHP plugin it is open source, and also works for Java. Look at http://phpeclipse.sourceforge.net/ for more information. Rob "Craig Roberts" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It depends what you're looking for in an editor... > > Dreamweaver's

[PHP-DB] subtracting dates...

2003-08-02 Thread John Ryan
Hi, In mySQL, I store dates as -MM-DD, a standard DATE type. It stores users date of births. I need to calculate in a PHP script, the users age from this DOB. I get a PHP date in the same format as the mySQL and subtract, which returns the year rounded off. ie, it doesnt matter if your birthda

[PHP-DB] Re: subtracting dates...

2003-08-02 Thread Craig Roberts
Try something along the lines of if($current_MM < $MM) { $age = $calculatedage - 1; } you'll also need to do something like this with the day of the month if the user's bday is in the current month. at least... i think that works out :$ Craig Roberts "John Ryan" <[EMAIL PROTECTED]> wrote in

Re: [PHP-DB] subtracting dates...

2003-08-02 Thread David Smith
Try this (taken from http://us2.php.net/manual/en/ref.datetime.php): *menaurus at gmx dot de* 16-Jul-2003 02:37 |The argument has to be in the standard mysql format (y-m-d)... function age($date) { if (!$date) return false; $year=0+substr($date,0,4); $month=0+substr($date,5,2); $day=0+subs

RE: [PHP-DB] subtracting dates...

2003-08-02 Thread Ryan Marks
I found this code at Google's cached version of the manual for the date() function: http://216.239.37.104/search?q=cache:kq0aNfZeEp8J:www.php.net/date+diffe rence+two+date+site:www.php.net&hl=en&ie=UTF-8 This code only returned the number of hours, minutes, and seconds between the two points in ti