RE: [PHP] Re: Your script possibly relies on a session side-effect which existed until PHP 4.2.3

2003-03-13 Thread Rudolf Visagie
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

RE: [PHP] Zerofill

2002-12-30 Thread Rudolf Visagie
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

RE: [PHP] addslashes/stripslashes

2002-11-05 Thread Rudolf Visagie
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

RE: [PHP] Format Currency

2002-11-05 Thread Rudolf Visagie
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

[PHP] Ftp_size returns wrong file size

2002-09-25 Thread Rudolf Visagie
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

RE: [PHP] Help.....still stuck after 3 days :/

2002-09-18 Thread Rudolf Visagie
fclose ($fd); ksort ($alphabetical); echo ""; foreach ($alphabetical as $name => $id) { echo ''.$name." - ".$stadium[$id].''."\n"; } echo ""; If you want

RE: [PHP] what is wrong?

2002-09-12 Thread Rudolf Visagie
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

RE: [PHP] date question

2002-09-09 Thread Rudolf Visagie
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

RE: [PHP] Creating a zip file using php

2002-08-13 Thread Rudolf Visagie
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

RE: [PHP] Oracle 8i SQL Problem..

2002-07-29 Thread Rudolf Visagie
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

RE: [PHP] Truncate ::: DAM!!!!!

2002-07-18 Thread Rudolf Visagie
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

RE: [PHP] Storing values in Session

2002-07-09 Thread Rudolf Visagie
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

RE: [PHP] Session variables

2002-07-08 Thread Rudolf Visagie
("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

RE: [PHP] How to pass unknown number of variables to a function?

2002-07-04 Thread Rudolf Visagie
$i++; } ?> Untitled Document Option 1 Option 2 Option 3 Regards Rudolf Visagie Principal Software Developer Digital Healthcare Solutions -Original Message- From: Uwe Birkenhain [mailt

RE: [PHP] PHP in South Africa

2002-07-03 Thread Rudolf Visagie
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]

RE: [PHP] function return

2002-05-28 Thread Rudolf Visagie
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

RE: [PHP] Send mail and attachment with php - looking for PHP module

2002-04-23 Thread Rudolf Visagie
"; $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

RE: [PHP] hidden value

2002-04-03 Thread Rudolf Visagie
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

RE: [PHP] Please explain...

2002-03-19 Thread Rudolf Visagie
} 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

RE: [PHP] Please explain...

2002-03-19 Thread Rudolf Visagie
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

RE: [PHP] Please explain...

2002-03-19 Thread Rudolf Visagie
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

RE: [PHP] Please explain...

2002-03-19 Thread Rudolf Visagie
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:

RE: [PHP] data into an array

2002-03-04 Thread Rudolf Visagie
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

RE: [PHP] Accessing Oracle DBMS_OUTPUT from PHP

2002-02-04 Thread Rudolf Visagie
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

RE: [PHP] Re: Sending letter with attaching of the file

2001-12-13 Thread Rudolf Visagie
. 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:

RE: [PHP] Session

2001-11-15 Thread Rudolf Visagie
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

RE: [PHP] Session

2001-11-15 Thread Rudolf Visagie
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

RE: [PHP] mail() with mailing lists problem

2001-11-13 Thread Rudolf Visagie
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

RE: [PHP] Using PHP for directory indexing

2001-11-12 Thread Rudolf Visagie
if ($file != "." && $file != "..") { $nfiles++; $files[$nfiles] = $file; } } sort($files); closedir($handle); } r

[PHP] mail() with mailing lists problem

2001-11-12 Thread Rudolf Visagie
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

RE: [PHP] Another [PHP] Simple Session Problem...

2001-10-18 Thread Rudolf Visagie
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: [

RE: [PHP] Another [PHP] Simple Session Problem...

2001-10-18 Thread Rudolf Visagie
... 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

RE: [PHP] Another [PHP] Simple Session Problem...

2001-10-18 Thread Rudolf Visagie
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

RE: [PHP] php4 and apache on SuSE Linux

2001-09-13 Thread Rudolf Visagie
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

RE: [PHP] php4 and apache on SuSE Linux

2001-09-13 Thread Rudolf Visagie
Try: PHP Test Example "; echo date("H:i, jS F"); echo ""; echo "Hi, I am a PHP script!"; echo ""; ?>

RE: [PHP] Print..

2001-08-27 Thread Rudolf Visagie
>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

RE: [PHP] Session Problem

2001-08-23 Thread Rudolf Visagie
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

RE: [PHP] option tags and WHILE

2001-08-19 Thread Rudolf Visagie
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

RE: [PHP] include ("foo.php") not working

2001-07-25 Thread Rudolf Visagie
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

RE: [PHP] Resolution

2001-07-23 Thread Rudolf Visagie
Hi Kyle, I use the following: