RE: [PHP] perplexed as to why this is happening...

2002-11-24 Thread Michael Hazelden
Ahem ... $sec=1 means "set $sec to 1" You want $sec==1 :-) M. -Original Message- From: Peter Houchin [mailto:[EMAIL PROTECTED]] Sent: 25 November 2002 00:53 To: php_gen Subject: [PHP] perplexed as to why this is happening... Howdy, I'm doing a simple db check.. grabbing a db value,

RE: [PHP] using move_uploaded_file

2002-11-20 Thread Michael Hazelden
http://www.php.net/manual/sk/features.file-upload.php found in 2 seconds searching the PHP site for "Uploaded File". -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 20 November 2002 05:32 To: [EMAIL PROTECTED] Subject: [PHP] using move_uploaded_file can anyo

RE: [PHP] php Wildcard???

2002-11-15 Thread Michael Hazelden
Wildcard for what? Please be more specific ... do you mean database queries ... regular expressions ... what? Thanks. -Original Message- From: vernon [mailto:vernon@;comp-wiz.com] Sent: 15 November 2002 15:32 To: [EMAIL PROTECTED] Subject: [PHP] php Wildcard??? Hey all, I'm coming ove

Re: [PHP] Validating postal codes

2002-11-15 Thread Michael Hazelden
This is a RTFM situation!!! instead of just $form["autopstcode"] - use str_replace(" ","",$form["autopstcode"]) (e.g. strip the spaces before validating the triplets) found in 30 seconds by typing "string" on PHP site. -Original Message- From: DonPro [mailto:donpro@;lclcan.com] Sent: 15

[PHP] Socket help

2002-11-15 Thread Michael Hazelden
Hi all, I need to set the KEEPALIVE value for a socket ... and just want to be certain of what I'm seeing. When I make my initial connection - the default value for the keepalive seems to be 0 ... does this mean that no TCP keepalives will be sent on the socket? Or am I doing something wrong? Th

RE: [PHP] runing com

2002-11-14 Thread Michael Hazelden
Apologies all - that should have just gone to the Windows list ... -Original Message- From: Michael Hazelden [mailto:michael.hazelden@;ocado.com] Sent: 14 November 2002 10:18 To: 'kai'; [EMAIL PROTECTED] Subject: [PHP-WIN] RE: [PHP] runing com Kai, I've moved this to t

RE: [PHP] runing com

2002-11-13 Thread Michael Hazelden
I've been having some fun with COM myself recently ... so I can suggest a couple of things ... Firstly - that error would suggest to me that Word is not installed on your machine. Remember - in order to interface with an app - it has to be there. If it is ... try looking it up in the registry to c

RE: [PHP] strtotime bug? end of the month.

2002-10-31 Thread Michael Hazelden
How about - and a little more complex ... $mydate = date("d")!=1 && date("d",strtotime("+1 month"))==1 ? date("Y-m-d",strtotime("+1 month")-86400) : date("Y-m-d",strtotime("+1 month")); to summarise - if you perform your "+1 month" and it creates a day of 1, but the current day isn't 1 - do the s

RE: [PHP] Image library

2002-08-21 Thread Michael Hazelden
I did something like this a while ago ... and while it might not be the best solution - here's my situation and my solution: I had a number of photos (just shy of 1000) ... all were from various theatre shows ... taken at a different time of the process (rehearsal ... performance etc). So - I s

RE: [PHP] create header and redirecting

2002-08-15 Thread Michael Hazelden
Actually - I meant: http://your.website.com";> This will perform the same thing as the location redirect ... only it does it in the body of the HTML. M. -Original Message- From: Reymond [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 11:55 To: 'Michael Hazelden' Cc

RE: [PHP] create header and redirecting

2002-08-15 Thread Michael Hazelden
AFAIK - you can't echo or print before sending a header. If you want to do this - maybe use meta tags rather than the location redirect. Michael. -Original Message- From: Reymond [mailto:[EMAIL PROTECTED]] Sent: 15 August 2002 11:40 To: 'Michael Hazelden' Cc: [EMAIL PRO

RE: [PHP] Re: Retrieving variables

2002-08-14 Thread Michael Hazelden
quot;\$_SERVER[DOCUMENT_ROOT].\"/path/to/file\"" to the database and then use eval() to evaluate. The better solution is obviously to store "/path/to/file" and append it to $_SERVER[DOCUMENT_ROOT] whenever you need the full path. Bogdan Michael Hazelden wrote: > Hi al

[PHP] Retrieving variables

2002-08-14 Thread Michael Hazelden
Hi all, I'm attempting to store variables inside a database and then recall them. What I want to do is store them dynamically though - so for instance - a path to a file will be stored in the DB as $_SERVER[DOCUMENT_ROOT]."/path/to/file" But, obviously, when I retrieve this value, it retrieves