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

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

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:darkrotter;yahoo.com

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:

[PHP] Ftp_size returns wrong file size

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

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

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

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

RE: [PHP] Creating a zip file using php

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

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

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

RE: [PHP] Storing values in Session

2002-07-10 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 10, 2002 8:03 AM

RE: [PHP] Session variables

2002-07-08 Thread Rudolf Visagie
= ? 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

RE: [PHP] PHP in South Africa

2002-07-04 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] PHP

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

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

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 -Original Message

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

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

RE: [PHP] hidden value

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

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: 011 2655478 Cell: 082

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
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

RE: [PHP] Please explain...

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

RE: [PHP] data into an array

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

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]

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: $addr_from\r\n

RE: [PHP] Session

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

RE: [PHP] Session

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

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

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

[PHP] mail() with mailing lists problem

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

RE: [PHP] Using PHP for directory indexing

2001-11-12 Thread Rudolf Visagie
))) { if ($file != . $file != ..) { $nfiles++; $files[$nfiles] = $file; } } sort($files); closedir($handle); } return 0; } Rudolf Visagie Principal Software

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

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

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 We've tried

RE: [PHP] php4 and apache on SuSE Linux

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

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,

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 August

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 has been done

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 On Mon

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 ? 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

RE: [PHP] Resolution

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

RE: [PHP] Re: Session problems

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

RE: [PHP] Re: Session problems

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

RE: [PHP] PHP Books

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

RE: Re: [PHP] files

2001-05-23 Thread Rudolf Visagie
))) { if ($file != . $file != ..) { $nfiles++; $files[$nfiles] = $file; } } sort($files); closedir($handle); } return 0; } Rudolf Visagie [EMAIL

RE: [PHP] Detect screen size

2001-05-16 Thread Rudolf Visagie
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

RE: [PHP] VERY URGENT

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

RE: [PHP] Decimal to Ascii

2001-05-03 Thread Rudolf Visagie
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

RE: [PHP] String Type Unknown

2001-05-02 Thread Rudolf Visagie
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

RE: [PHP] String Type Unknown

2001-05-02 Thread Rudolf Visagie
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

RE: [PHP] String Type Unknown

2001-05-01 Thread Rudolf Visagie
, 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

RE: [PHP] Passing variables,,, I know its not this hard.

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

RE: [PHP] huidziekte

2001-04-05 Thread Rudolf Visagie
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

RE: [PHP] Passing Arrays

2001-04-05 Thread Rudolf Visagie
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

RE: [PHP] Array in Session-Vars?

2001-03-30 Thread Rudolf Visagie
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

RE: [PHP] Prob with sendin'php-general@lists.php.net'g a php variable in an email

2001-03-26 Thread Rudolf Visagie
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:

RE: [PHP] Prob with sending a php variable in an email

2001-03-26 Thread Rudolf Visagie
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:

RE: [PHP] Optional Parameter ?

2001-03-21 Thread Rudolf Visagie
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

RE: [PHP] how do i get a variable type? - not that simple

2001-03-20 Thread Rudolf Visagie
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

RE: [PHP] PHP w/ Oracle OCI8 - how stable?

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

RE: [PHP] variable on 2 forms

2001-03-14 Thread Rudolf Visagie
;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]

RE: [PHP] TXT files

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

RE: [PHP] Oracle error messages

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