[PHP] re:mod_dav and dreamweaver 4.0

2001-02-27 Thread Joseph H Blythe
Hello, Sorry if this is a little off topic but has anyone successfully used mod_dav with dreamweaver 4.0, I have mod_dav setup but am having trouble connecting to it via dreamweaver. If anyone has successfully used this could they email me privately, as I don't want to waste any more

Re: [PHP] About to update

2001-02-18 Thread Joseph H Blythe
On Fri, 16 Feb 2001 10:59:52 -0500 Michael wrote: MK 2 things... MK MK 1. I've had nothing but problems with mysql3.23. :( I had 3.22 up for months at a stretch - I'm lucky to go more than a few weeks without a lockup on 3.23. BUT... I've committed projects to MK the fulltext search

Re: [PHP] deleting cart items on session expire

2001-02-15 Thread Joseph H Blythe
Thanks all, This gives me a good start, I think I will just get cron to do it at a certain time of day, the only problem is trying to tell which sessions have expired as the database is not going to know this. Regards Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] checking to see if value is a integer from a form text field

2001-02-15 Thread Joseph H Blythe
hey, I have a strange problem, when a user inputs the quantity into a text input field in a cart, I want to be able to test to see if the value is a integer if it isn't then default it to 1 if ( !is_int($Qty) ) { $Qty = 1; } Looks ok, should work in theory, but it doesn't if I use this test,

[PHP] About to update

2001-02-15 Thread Joseph H Blythe
Hey all, I am about to update one of our servers (i386) running RedHat-6.0 smp to: Apache-1.3.17 MySQL-3.23.33 ModSSL-2.8.0-1.3.17 PHP-4.0.4pl1 ZendOptimizer-1.0.0-4.0.4 Does anyone know of any problems/incompatabilities between the above packages on the above platform. I am mainly doing

[PHP] deleting cart items on session expire

2001-02-14 Thread Joseph H Blythe
hey all, I was wondering how one would suggest removing items from a cart system once the session lifetime has expired. I have it set to the default 0, which expires the session on browser close, what I want to be able to do is "delete * from Cart where session='$PHPSESSID'" when the user

[PHP] Fast Template woes

2001-02-13 Thread Joseph H Blythe
Hey all, I got a rather strange probelm with fast template, I won't go into great detail unless someone has had a simular experience while using define_dynamic. Basically I have written a site which totally uses Fast Templates and some sections use define_dynamic which work perfectly, my

Re: [PHP] help with classes

2001-02-12 Thread Joseph H Blythe
On Mon, 12 Feb 2001 20:11:14 -0800 Joe wrote: JC JC I was curious too, so I looked it up. Seems you can't. From JC http://www.php.net/manual/en/language.oop.php JC JC "Note: In PHP 4, only constant initializers for var variables are JC allowed. Use constructors for non-constant

Re: [PHP] help with classes

2001-02-12 Thread Joseph H Blythe
On Mon, 12 Feb 2001 23:44:08 -0500 (EST) Sean wrote: SC SC That's how you have to do it. SC SC SC class MyClass { SC var $bar; SC SC // This is the class's constructor SC sub MyClass () { SC $this-bar = $foo; SC } SC } I didn't think php had sub routines like

[PHP] ereg_replace all items in a array

2001-01-29 Thread Joseph H Blythe
G'day PHP'ers I am trying highlight the results from a search, so far I have this working but only if the string is an exact match ie: case sensitive, for example: ?php $keywords = "foo"; $data = "This is a lower foo. This is an upper FOO. This is a ucase Foo"; $lower = strtolower($keywords);