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,
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
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
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
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
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
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
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
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
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
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
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
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
13 matches
Mail list logo