I would have thought a genius would be able to spell geniuses.
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2003 2:46 AM
To: chris; [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Your script possibly relies on a session
side-effect which existed unti
http://www.php.net/manual/en/function.str-pad.php
or
use sprintf, e.g.
$formatted = sprintf("%012.2f", $value);
pads $value up to 12 digits to the left with zero's.
-Original Message-
From: Cesar Aracena [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 12:22 PM
To: [EMAIL PROTECT
Don't know which database you're using but in Oracle you would use:
Select * from tblContacts, tblCountries WHERE
(tblContacts.CountryCode=tblCountries.CountryID) AND (Organization LIKE
'%o''mallies%' )
Escape(\) is only used in PHP syntax, not SQL.
Regards
-Original Message-
From: P
http://www.php.net/manual/en/function.sprintf.php
Example 6 shows you how.
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
<mailto:rudolf@;dhsolutions.co.za>
Tel: 011 6901019
Cell: 082 895 1598
-Original Message-
From: dark rotter [mailto:dark
feature, but then I
suppose I should get -1 and not a numeric size.
Regards
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
<mailto:[EMAIL PROTECTED]>
Tel: 011 6901019
Cell: 082 895 1598
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
fclose ($fd);
ksort ($alphabetical);
echo "";
foreach ($alphabetical as $name => $id)
{
echo ''.$name." -
".$stadium[$id].''."\n";
}
echo "";
If you want
if ($_POST['new_password1'] == "" || !isset($_POST['new_password1']))
echo "empty input";
-Original Message-
From: Meltem Demirkus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 9:16 AM
To: [EMAIL PROTECTED]
Subject: [PHP] what is wrong?
Hi,
I want to understand what is
Hi Meltem,
The PHP manual is at http://www.php.net/manual/en (mirror sites as well).
-Original Message-
From: Meltem Demirkus [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 1:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] date question
Hi,
Is there any function which returns
The following zip creation class by Eric Mueller works well:
http://www.themepark.com
BASED ON "zip file creation class"
FOUND AT http://www.zend.com/codex.php?id=470&single=1
BY denis125 ([EMAIL PROTECTED])
*/
// official ZIP file format: http://www.pkware.com/appnote.txt
class zipfile
Oracle 9i would be happy with the left join syntax but not 8i.
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 6:09 AM
To: 'Nick Oostveen'; Frank S. Kicenko; [EMAIL PROTECTED]
Subject: RE: [PHP] Oracle 8i SQL Problem..
You'll prob. need to u
str_replace() is faster and better for simple string replacement.
-Original Message-
From: vins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 18, 2002 9:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Truncate ::: DAM!
LOL..
So after my last post about updating files i sat and thou
It should be:
$BOOKS = $BOOKS.",".$bookid;
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
<mailto:[EMAIL PROTECTED]>
Tel: 011 2655478
Cell: 082 895 1598
-Original Message-
From: Sachin Keshavan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July
("MyList", $OptionValue, $Option, $MyList)
?>
Regards
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
<mailto:[EMAIL PROTECTED]>
Tel: 011 2655478
Cell: 082 895 1598
-Original Message-
From: Steve Fitzgerald [mai
$i++;
}
?>
Untitled Document
Option 1
Option 2
Option 3
Regards
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
-Original Message-
From: Uwe Birkenhain [mailt
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
<mailto:[EMAIL PROTECTED]>
Tel: +27 11 2655484
Cell: 082 895 1598
-Original Message-
From: MindHunter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 03, 2002 4:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP]
Hi,
function myFunction($some_vars, &$max, &$some_value)
{
$max=count($some_vars);
$some_value=($max/2);
//return true;
}
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
<mailto:[EMAIL PROTECTED]>
Tel: + 27 011 2655478
Cell: + 27 82 895 1598
-Or
";
$mime .= "Content-type: text/plain\r\n";
$mime .= "Content-Transfer-Encoding: base64\r\n";
$mime .= "Content-Disposition: attachment; ";
$mime .= "filename = ".chr(34).$filename.chr(34);
$mime .= "\r\n\r\n&quo
This should work:
If the hidden input structure name is the same as the radio buttons' name,
you could run into trouble. Also, you forgot quotes around the 'hidden'. Why
try to use the form name as a class (survey->'$birth_month')?
Cheers
Rudolf Visagie
Principa
}
prints:
This is an integer comparison with foo being 0
This is a boolean comparison with foo being 1
Cheers
-Original Message-
From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 12:51 PM
To: Rudolf Visagie
Cc: Jan Rademaker; [EMAIL PROTECTED]
Subject: Re: [PHP] P
quot;;
}
prints:
This is an integer comparison with foo being 0
This is a boolean comparison with foo being 1
Cheers
-Original Message-
From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 12:51 PM
To: Rudolf Visagie
Cc: Jan Rademaker; [EMAIL PROTECTED]
Subject: R
Yes, if you were comparing to a boolean, but in this case you are comparing
to an integer.
-Original Message-
From: Alexander Skwar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 12:51 PM
To: Rudolf Visagie
Cc: Jan Rademaker; [EMAIL PROTECTED]
Subject: Re: [PHP] Please explain
I would guess that the string "foo" evaluates to integer 0 in the comparison
because $x is an integer, so that $x = 0 = true
Use === (in PHP 4) to do type checking as well.
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
<mailto:[EMAIL PROTECTED]>
Tel:
Hi Craig
You need to use the XML DOM functions (see the PHP manual) and it should be
a well formed XML document e.g.
RHAT
6.82
3/4/2002
3:59pm
0.32
6.59
6.99
6.53
932400
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
<mailto:[EMAIL PROTECTED]>
Tel: 011 2
Hi,
I don't think PHP can pick up responses from the DBMS_OUTPUT object; it only
picks up raised errors. Speaking under correction though.
-Original Message-
From: Robert Mena [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 05, 2002 1:29 AM
To: php mailing list
Subject: [PHP] Accessin
.
The $attachment parameter is a string with the attachment file
content
which will be named $filename.
Author: Rudolf Visagie (adapted from PHP Developers Cookbook by
Sterling Hughes)
*/
$boundary = "b".md5(uniqid(time()));
$mime = "From:
ni setting, variable_order, (replaces gpc_order).
I believe the default is EGPCS i.e. environment, get, post, cookie, session.
The last in the list takes precedence, i.e. session variables normally have
precedence
over get/post variables
George
Rudolf Visagie wrote:
>
> The problem lies with the fact
session_register("name");
}
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
Tel. +27(0)11 266 6946
Fax. +27(0)11 266 5080
Cell: +27(0)82 895 1598
E-mail: [EMAIL PROTECTED]
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: 15 November
riginal Message-
From: TD - Sales International Holland B.V. [mailto:[EMAIL PROTECTED]]
Sent: 12 November 2001 04:15
To: Rudolf Visagie
Subject: Re: [PHP] mail() with mailing lists problem
If you send the same message over and over wouldn't it be a LOT wiser to BCC
the rest of the people? T
if ($file != "." && $file != "..") {
$nfiles++;
$files[$nfiles] = $file;
}
}
sort($files);
closedir($handle);
}
r
d here's the loop in which it gets called:
$i = 0;
while (isset($EmailAddress[$i])) {
mail_attachment ($EmailAddress[$i], "URGENT Communication",
$message, $addr_from, $attachment, $filename);
$i++;
}
Does anybody have any ideas?
Rudolf Visagie
Principal Software
A colleague of mine says that's how he had to enter the save_path eventually
with IIS on Windows 98 to get it to work. I use Unix myself (/tmp).
-Original Message-
From: Dave Watkinson [mailto:[EMAIL PROTECTED]]
Sent: 18 October 2001 02:44
To: Rudolf Visagie; Brian Aitken
Cc: [
...
Hiya
I've got the same problem as the one Rudolf Visagie posted yesterday - when
I start a session I get the error message:
"Warning: open(E:\Inetpub\sessions\sess_955aa3bdd517c3a345f29fe1e021d054,
O_RDWR) failed: m (13) in D:\Inetpub\wwwroot\HATII\admn\php\moss\sc_head.inc
on line 3&quo
exist).
Cheers
-Original Message-
From: Brian Aitken [mailto:[EMAIL PROTECTED]]
Sent: 18 October 2001 12:22
To: [EMAIL PROTECTED]
Subject: [PHP] Another [PHP] Simple Session Problem...
Hiya
I've got the same problem as the one Rudolf Visagie posted yesterday - when
I start a session
Hi Sean,
When I run your code on our Linux Mandrake, Apache server (standard PHP4
installation) without the double quotes it gives:
Parse error: parse error, expecting `','' or `';'' in
/home/httpd/html/rudolf/test.php on line 8
With the double quotes I suggested it gives the expected result, so
Try:
PHP Test Example
";
echo date("H:i, jS F");
echo "";
echo "Hi, I am a PHP script!";
echo "";
?>
>From the PHP manual (http://www.php.net/manual/en/ref.printer.php):
These functions are only available under Windows 9.x, ME, NT4 and 2000. They
have been added in PHP 4 (4.0.4).
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: MBK [mailto:[EMAIL PROTECTED]]
Sent: 27 Aug
Try
session_register("count");
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 24 August 2001 04:42
To: [EMAIL PROTECTED]
Subject: [PHP] Session Problem
I can't get session variables to work
I know this h
Also
while ($array[1] >= $array[0]) {
and not
while ($array[1] => $array[0]) {
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: David Robley [mailto:[EMAIL PROTECTED]]
Sent: 20 August 2001 07:01
To: CGI GUY; [EMAIL PROTECTED]
Subject: Re: [PHP] option tags and WHILE
I've found that when I forget to start and end the include file's code with
it sometimes does exactly what you're getting.
Regards
Rudolf
-Original Message-
From: Jon Hubbard [mailto:[EMAIL PROTECTED]]
Sent: 25 July 2001 01:42
To: [EMAIL PROTECTED]
Subject: [PHP] include ("foo.php") no
Hi Kyle,
I use the following: