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
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
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:darkrotter;yahoo.com
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:
this 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: http
[$alphabetical[$name]] if you had the name.
Cheers
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
mailto:[EMAIL PROTECTED]
Tel: 011 6901019
Cell: 082 895 1598
-Original Message-
From: Ford, Mike [LSS] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 12
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
The following zip creation class by Eric Mueller works well:
?php
/*
Zip file creation class
makes zip files...
use the functions add_dir() and add_file() to build the zip file;
see example code below
by Eric Mueller, [EMAIL PROTECTED], http://www.themepark.com
BASED ON zip file
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
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
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 10, 2002 8:03 AM
=
?
echo You chose .$MyList.br;
GenerateSelect (MyList, $OptionValue, $Option, $MyList)
?
br
input type=submit name=Submit value=Submit
/form
/body
/html
Regards
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
mailto:[EMAIL
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] PHP
input type=submit name=Submit value=Test
/form
/body
/html
Regards
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
-Original Message-
From: Uwe Birkenhain [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 04, 2002 10:53 AM
To: [EMAIL PROTECTED]
Subject
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
-Original Message
; ;
$mime .= filename = .chr(34).$filename.chr(34);
$mime .= \r\n\r\n.chunk_split(base64_encode($attachment)).\n;
mail ($to, $subject, , $mime);
}
Regards
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
-Original Message-
From: Krzysztof Kocjan [mailto
')?
Cheers
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
mailto:[EMAIL PROTECTED]
-Original Message-
From: Joe [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 9:59 AM
To: [EMAIL PROTECTED]
Subject: [PHP] hidden value
I had designed a web survery
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: 011 2655478
Cell: 082
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
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] Please explain...
»Rudolf Visagie« sagte am 2002-03-19 um 12:19
with ===
?
Output:
foobar
foo evaluates as 0 in the comparison.
Andrey
- Original Message -
From: Rudolf Visagie [EMAIL PROTECTED]
To: Alexander Skwar [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, March 19, 2002 1:01 PM
Subject: RE: [PHP] Please explain...
For interest's sake
volume932400/volume
/Share
/Document
Rudolf Visagie
Principal Software Developer
Digital Healthcare Solutions
mailto:[EMAIL PROTECTED]
Tel: 011 2655478
Cell: 082 895 1598
-Original Message-
From: Craig Westerman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 8:30 AM
To: php-general
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]
.
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: $addr_from\r\n
overwrite the value of the posted variable every time. You need to register
the session variable with another name and then toggle between the two
variables in you script.
Also, a session variable need only be registered once:
if (!session_is_registered(name)) {
session_register(name);
}
Rudolf
, 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 that you have
-
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? This way you are MIME
, , $mime);
}
and 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
))) {
if ($file != . $file != ..) {
$nfiles++;
$files[$nfiles] = $file;
}
}
sort($files);
closedir($handle);
}
return 0;
}
Rudolf Visagie
Principal Software
).
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 I get
...
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
We've tried
;
?
/body
/html
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: T.Sean Schulze [mailto:[EMAIL PROTECTED]]
Sent: 13 September 2001 11:47
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] php4 and apache on SuSE Linux
I am trying to run a simple php4 script on my
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,
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 August
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 has been done
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
On Mon
I've found that when I forget to start and end the include file's code with
? and ? 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
Hi Kyle,
I use the following:
script language=JavaScript
!-- hide from none JavaScript Browsers
function PassScreenWidth(what) {
document.login_frm.screen_width.value=what
}
function GetScreenSize() {
var screen_width =
Hi Bernie,
Do a session_register in the second script as well:
?php
session_start();
session_register(my_session_variable);
print Value of 'my_session_variable': $my_session_variable;
?
Rudolf Visagie
-Original Message-
From: Bernie Kruger [mailto:[EMAIL PROTECTED]]
Sent: 19 July
problems
you only need to register vars with the session once.
Steve
Rudolf Visagie [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi Bernie,
Do a session_register in the second script as well:
?php
session_start();
session_register(my_session_
Hallo Bernie,
Ek het begin met 'Teach yourself PHP in 24 hours' en to later 'PHP
Developer's Cookbook' aangeskaf van Sterling Hughes. Eg. help met die
basiese en lg. het meer gevorderde 'resepte' in. Dit het goeie resensies
gekry en ek geniet dit.
Groetnis
Rudolf Visagie
[EMAIL PROTECTED
))) {
if ($file != . $file != ..) {
$nfiles++;
$files[$nfiles] = $file;
}
}
sort($files);
closedir($handle);
}
return 0;
}
Rudolf Visagie
[EMAIL
screen_width;
}
// - stop hiding --
/script
FORM ACTION=login1.php METHOD=POST NAME=login_frm
input type=hidden name=screen_width
.
.
/form
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: Mark Lo (3) [mailto:[EMAIL PROTECTED]]
Sent: 16 May 2001 01:16
To: ListPHP
Aah, welcome to the new South Africa, everybody :-)
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 09 May 2001 08:46
To: Christian Dechery
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] VERY URGENT
On 8-May-01 at 18:50
Hi there,
Is this what you want?
$a = chr(23);
which should give you ctrl+W in $a.
Rudolf Visagie
QEDI
-Original Message-
From: Wee Chua [mailto:[EMAIL PROTECTED]]
Sent: 02 May 2001 08:08
To: PHP (E-mail)
Subject: [PHP] Decimal to Ascii
Hi all,
Can i convert decimal 23 to ascii
Hi Nathan,
With compliments:
?php
function HexToChar($Txt) {
// Read Hex and convert to characters
// Rudolf Visagie - 1 May 2001
$Txt = strtoupper($Txt);
$NewTxt = ;
for ($i = 0; $i strlen($Txt); $i=$i+2) {
$LeftHexByte = substr($Txt, $i, 1
Nathan,
Another way to do it (but much less fun):
?php
function HexToChar($Txt) {
// Read Hex and convert to characters
// Rudolf Visagie - 1 May 2001
$Txt = strtoupper($Txt);
$NewTxt = ;
for ($i = 0; $i strlen($Txt); $i+=2) {
$CharValue = base_convert
, familiarity with the
LEGOsupreg;/sup elements is highly recommended. PCS has developed a
separate course focusing on the use of the LEGOsupreg;/sup materials.
All facilitators should schedule time to take this additional course.xp
Rudolf Visagie
QEDI
-Original Message-
From: Nathan Cook [mailto
the variable $exedit (which gets posted as a
form variable) - This in PHP4
Cheers
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: Curtis [mailto:[EMAIL PROTECTED]]
Sent: 09 April 2001 06:09
To: php
Subject: [PHP] Passing variables,,, I know its not this hard.
Hello,
Could
It's Dutch, and translated it reads:
Five years before these photo's were taken I was diagnosed with rheumatoid
arthritis and was treated accordingly. Nothing helped. When the illness
manifested itself as you can see here ... (URL)
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message
ession_start() again, and can refer to $ix[0],
$ix[1],.. $ix[$n] etc.
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: Jordan Elver [mailto:[EMAIL PROTECTED]]
Sent: 05 April 2001 02:56
To: PHP Database Mailing List; PHP General Mailing List
Subject: [PHP] Passing Arrays
Hi,
How
I can't really see a problem with registering arrays as session variables
(in PHP4). I use the following in a script and it works fine:
while (OCIFetch($rs)) {
$n = $n + 1;
$ix[$n] = OCIResult($rs,1);
}
session_register("n");
session_register("ix");
R
Hi Sonya,
Looks like you need a $ before the variable name in the first instance:
?
$Username = "Sysdba";
?
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: Sonya Davey / QDCEL [mailto:[EMAIL PROTECTED]]
Sent: 26 March 2001 12:39
To: '[EMAIL PROTECTED]'
Subject:
Hi Sonya,
Looks like you need a $ before the variable name in the first instance:
?
$Username = "Sysdba";
?
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: Sonya Davey / QDCEL [mailto:[EMAIL PROTECTED]]
Sent: 26 March 2001 12:39
To: '[EMAIL PROTECTED]'
Subject:
Or you can use an array:
function print_this( $ArrayValues ) {
do whatever using count($ArrayValues) to determine the bounds of the
array;
}
-Original Message-
From: Neil Kimber [mailto:[EMAIL PROTECTED]]
Sent: 21 March 2001 11:44
To: Stewart Taylor; 'Jack Sasportas'; [EMAIL
Under some conditions (I haven't determined which)
if ($input_var_from_form == "")
doesn't work, but
if (strlen($input_var_from_form) == 0)
does.
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: Dennis Gearon [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 06:24
Very stable.
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: Hardy Merrill [mailto:[EMAIL PROTECTED]]
Sent: 20 March 2001 01:18
To: [EMAIL PROTECTED]
Subject: [PHP] PHP w/ Oracle OCI8 - how stable?
I'm thinking of using PHP to talk to an Oracle database with
the OCI8
;p_request"
input type="image" src="images/insert.jpg" width="53" border=0
alt="Insert" onClick="PassRequest('Insert')"
/td
When the user clicks on the insert button it passes 'Insert' in $p_request.
Rudolf Visagie
[EMAIL PROTECTED]
See fread() under filesystem functions in the php manual at
http://www.php.net/manual/en/
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message-
From: Bruno Freire [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2001 12:41
To: '[EMAIL PROTECTED]'
Subject: [PHP] TXT files
Hey Everybody!
Its me
(FATAL | ERROR | WARNING);
the errors are not displayed and can be handled with my own error handler.
The user errors would be PHP generated errors and any other errors (in other
words not FATAL, ERROR or WARNING) are Oracle database errors.
Rudolf Visagie
[EMAIL PROTECTED]
-Original Message
61 matches
Mail list logo