Re: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-14 Thread * RzE:
access any directory on the server (as long as it's readable for the webserver ofcourse). -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM

Re: [PHP] ereg-digits only...

2002-02-12 Thread * RzE:
characters...); } -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl

Re: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-11 Thread * RzE:
in the database. It would be a good thing if you guys do something of: 1. Good rid of the bug(/feature) right a way or 2. Document it clearly. Eg. in the documentation of odbc_execute(). -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31

[PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-08 Thread * RzE:
for the webserver, users can very easily get the contents of the file! And... is it documented? NO Nowhere. Not the mailinglists, not the documentation, not the bugreport, not even in the sources itself. It's just there! Some security huh?! -- * RzE: -- PHP General Mailing List (http://www.php.net

Re: [PHP] ODBC_EXECUTE has a DANGEROUS 'feature'!!!

2002-02-08 Thread * RzE:
a BUG Report it on http://bugs.php.net thx -- * RzE: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is the best way to do this...

2001-10-26 Thread * RzE:
[_once] (header.php) or something like that. Or you could use the auto_prepend and auto_append. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM

Re: [PHP] String breaking up

2001-10-26 Thread * RzE:
the upper case characters after all: $string = preg_replace (/(.)/, \\1br, $string); Again, see the example below: ---[ PHP Example ]--- ?php $string = Dan is great; $string = preg_replace (/(.)/, \\1br, $string); print ($string); ? ---[ End of PHP Example ]--- Good luck! /Reply -- * RzE

[PHP] Re: Date-TimeStamp

2001-10-22 Thread * RzE:
: [EMAIL PROTECTED] /Original message Reply Maybe a bit late, but I wasn't at work during the weekend ;) strtotime() works fine for this! /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M

Re: [PHP] Window open.

2001-10-05 Thread * RzE:
message Reply JavaScript... not PHP... JavaScript=clientside... PHP=serverside JS: window.open(); /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82

Re: [PHP] handling errors

2001-09-27 Thread * RzE:
, but you know what helps? Writing code that doesn't produce any errors or warnings. Supressing warnings by just not showing them doesn't really make your code very reliable does it?! /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23

Re: [PHP] handling errors

2001-09-27 Thread * RzE:
-- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- -- PHP General Mailing List

Re: [PHP] Variable declaration

2001-09-27 Thread * RzE:
What do you mean force declaration? That's what you are doing with this line: $Test = 3; Nop! This is just starting to use a variable. Something like: integer $Test; is declaring a variable. But FAFAIK it's not possible in PHP :( -- * RzE: -- -- Renze

Re: [PHP] Variable declaration

2001-09-27 Thread * RzE:
better). It's terrific actually. I just wish sometimes that the compiler wouldn't allow so many things. It might just be a bit more strict. Or at least a seperate option for being more strict. Eg something like E_EXPLICIT_DECLARE ;) -- * RzE: -- -- Renze Munnik

Re: [PHP] handling errors

2001-09-27 Thread * RzE:
about the *very* few cases in which it is unavoidable. Though, this isn't one of 'm. -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM

Re: [PHP] handling errors

2001-09-27 Thread * RzE:
-page, and indeed it works like a charm; getimagesize(URL). So now I don't understand what they were talking about. Anyway... So a @ is indeed in place _for_this_one_. -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31

Re: [PHP] Variable declaration

2001-09-27 Thread * RzE:
. Everyone gets it his/her way and it bothers noone. But anyway... I don't think they'll ever implement this, so (...) NOTE: PHP Rulz and this is just a small thing that doesn't change anything to the superb power of PHP webbuilding! :) /Reply -- * RzE: -- -- Renze Munnik

Re: [PHP] buffers...

2001-09-27 Thread * RzE:
loop for instance. Cheers Nic /Original message Reply It's in the manual: void flush (void) see: http://www.php.net/manual/en/function.flush.php /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23

Re: [PHP] Problem: ereg doesn't work ok (?).

2001-09-26 Thread * RzE:
. -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- -- PHP General

Re: [PHP] one pattern, one string, multiple results

2001-09-26 Thread * RzE:
been struggling with this for awhile, since I really do not want to explode, pun intended :) Rick /Original message Reply This you do the job exactly as you want: http://www.php.net/manual/en/function.substr-count.php int substr_count (string haystrack, string needle) /Reply -- * RzE

Re: [PHP] header() confusion

2001-09-26 Thread * RzE:
redirecting the user to a different page, you should always put exit after the header() call. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM

Re: [PHP] header() confusion

2001-09-26 Thread * RzE:
Yes that's what I do but it freeze on netscape 6 ? FAFAIK the client's browser can't influence the header() call in your script. Are you sure there aren't any errors somewhere else. Eg before the header() call or at the start of the page where you redirect the user to? -- * RzE

Re: [PHP] header() confusion

2001-09-26 Thread * RzE:
. A good way to tell if this might be the case is to view the source of the page you get stuck at. Yep! Or set the error-reporting-level to eg 2047 and check the logfile(s). -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F

Re: [PHP] html encode

2001-09-25 Thread * RzE:
/Original message Reply Check the manual first in the future: http://www.php.net/manual/en/function.htmlentities.php Good luck! /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143

Re: [PHP] Need help with auto_prepend_file

2001-09-24 Thread * RzE:
-- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- -- PHP General Mailing List

Re: [PHP] For the RegExps gurus!

2001-09-20 Thread * RzE:
allow characters allowed by specifications. I didn't spend much time on that point. What I did was just creating the RE to parse the URL's. The allowed characters weren't really of my concern then. Let me know... -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL

Re: [PHP] Problem: ereg doesn't work ok (?).

2001-09-20 Thread * RzE:
Original message From: Lic. Rodolfo Gonzalez Gonzalez [EMAIL PROTECTED] Date: Tue, Sep 18, 2001 at 08:15:50PM -0500 Message-ID: [EMAIL PROTECTED] Subject: Re: [PHP] Problem: ereg doesn't wo On Tue, 18 Sep 2001, * RzE: wrote: and get DD-MM-, but with well formed -MM-DD it doesn't

Re: [PHP] Print current page with no printer dialog box - How ?

2001-09-20 Thread * RzE:
and you don't have any problems when using frames, 'cause you just make this call from the frame you want to be printed. -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein

Re: [PHP] how to use the function strtotime

2001-09-20 Thread * RzE:
of PHP Example Code --- /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl

Re: [PHP] interesting warning!!!

2001-09-20 Thread * RzE:
for the warning!? It's actually exactly like in the manual pages: bool session_register (mixed name [, mixed ...]) ^ and bool session_unregister (string name) ^^ :) /Reply -- * RzE: -- -- Renze Munnik

Re: [PHP] simple question...

2001-09-20 Thread * RzE:
-- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- -- PHP General Mailing List

Re: [PHP] simple question...

2001-09-20 Thread * RzE:
a valid time(stamp) :) -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl

Re: [PHP] if statement

2001-09-20 Thread * RzE:
else } Thanks. /Original message Reply I think your problem isn't really the if-statement itself. You should use == io =. So it would be: if(isset($REMOTE_USER) $AUTH_TYPE=='securid') { ^^ ^^ /Reply -- * RzE

Re: [PHP] simple question...

2001-09-20 Thread * RzE:
)); print (Days: $days_differ); ? /PRE --- End of PHP Example Code --- /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands

Re: [PHP] Parsing text file and dividing column into three...PLEASE help :)

2001-09-20 Thread * RzE:
someone help me? I am down to my last options :( /Original message Reply Dunno what you want to do exactly, but have you ever thought about split()? Something like: $myColumns = split (|, $contents); /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E

Re: [PHP] real simple regex

2001-09-18 Thread * RzE:
= * RzE: [EMAIL PROTECTED], [EMAIL PROTECTED], Mr Nobody [EMAIL PROTECTED]; $emlchars = [a-z0-9.-]+; $RE = /($emlchars@$emlchars)/i; if (preg_match_all ($RE, $from, $matches)) { print (H1Matched!/H1\n\n); print_r ($matches); } else { print (H1Didn't match!/H1); } ? /PRE --- End

Re: [PHP] Problem: ereg doesn't work ok (?).

2001-09-18 Thread * RzE:
); printf (Year : %4d\nMonth: %02d\nDay : %02d\n, (integer)$matches[1], (integer)$matches[2], (integer)$matches[3]); } else { print (H1Didn't match!/H1); } ? /PRE --- End of PHP Code Example --- /Reply -- * RzE

Re: [PHP] Print current page with no printer dialog box - How ?

2001-09-18 Thread * RzE:
kinds of things on your computer without being prompted for them. Page breaks are not part of HTML. Simply because HTML was never designed for that kind of puposes. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F

Re: [PHP] Print current page with no printer dialog box - How ?

2001-09-18 Thread * RzE:
of the users can see/use is not realy every very great solution. You build sites in order make as many people visit/use/see them as possible. Not just that one part of the world that uses the browser that you like. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E

Re: [PHP] Print current page with no printer dialog box - How ?

2001-09-18 Thread * RzE:
. But pages made for newer browsers hardly ever work fine on older browsers. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM

Re: [PHP] Print current page with no printer dialog box - How ?

2001-09-18 Thread * RzE:
will not show up in many browsers they way you intended it. It's a damn shame, but true. -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM

Re: [PHP] SMS with php

2001-09-18 Thread * RzE:
could U list the URL http://www.radio.net/rfc1861.txt?number=1861 This URL doesn't exist. Please check it... -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143

Re: [PHP] SMS with php

2001-09-18 Thread * RzE:
http://www.ietf.org/rfc/rfc1861.txt?number=1861 There. How is that. A lot better :) -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM

Re: [PHP] For the RegExps gurus!

2001-09-17 Thread * RzE:
... ? RE ? Sorry, I am not a club insider:) Not realy any kind of club... just lazy typing; RE stands for Regular Expression. -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143

Re: [PHP] For the RegExps gurus!

2001-09-07 Thread * RzE:
modifier? You're making it to difficult for yourself (and others). No need for the messy solution you created... Just use RE's that are as simple as possible. It has the best performance and it reads a lot easier. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E

Re: [PHP] code troble

2001-09-07 Thread * RzE:
($ime)) if ($ime == Nikola $vrednost == 100){ echo Zdravo $ime br; echo Iznos na Vasem racunu je $vrednost dolara; } ? /body /html -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6

Re: [PHP] code troble

2001-09-07 Thread * RzE:
or not $ime and $vrednost are defined/set at all? (isset ($ime) or !empty ($ime)) if ($ime == Nikola $vrednost == 100){ echo Zdravo $ime br; echo Iznos na Vasem racunu je $vrednost dolara; } ? /body /html -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E

Re: [PHP] session - why does this not work?

2001-09-06 Thread * RzE:
; if (!session_is_registered) { session_register (count); } } $count[0]++; --- End of PHP code --- /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM

Re: [PHP] str_replace and arrays

2001-09-06 Thread * RzE:
exactly, btw. --- PHP example --- ?php $txt = And now :D some :-) smiley =( kind of ;) thing.; $match = array (:D, :-), =(, ;)); $replace = array (1, 2, 3, 4); print str_replace($match, $replace, $txt); ? --- End of PHP example --- /Reply -- * RzE: -- -- Renze Munnik

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
then? You could use the very simple pure regexps if you don't also want to match/replace the www.some.thing. If you only want to replace the URL's that start with the protocol, then you can use the pure regexps. If not... to bad, you'll need /e. -- * RzE: -- -- Renze

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
, ' A href=\'.\$repl['\\1'].'\\3\'.\$repl['\\1'].'\\3/A', $mem); print ($mem); ? /PRE --- End of PHP code --- I'll let you know when I find a better way... I think there must be one... /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
/A', $mem); print ($mem); ? /PRE --- End of PHP code --- ...and ...keep on trying... -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
to test the regexp's thoroughly. (sorry?!) /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl

Re: [PHP] Session destruction

2001-09-06 Thread * RzE:
to destroy. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
code --- -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- -- PHP

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
--- End of PHP code --- This still needs some optimization imo (...) -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http

Re: [PHP] For the RegExps gurus!

2001-09-06 Thread * RzE:
/A, A href=\http://$1\;http://$1/A); $mem = preg_replace ($pattern, $replace, $mem); print ($mem); ? /PRE --- End of PHP code --- -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143

Re: [PHP] The future of PHP - PHP Pattern Repository

2001-09-06 Thread * RzE:
You should replace the slash by a dot: http://www/geocities.com/SiliconValley/Lab/6888/prpats.htm ^ | v http://www.geocities.com/SiliconValley/Lab/6888/prpats.htm /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED

Re: [PHP] urgent. need posix-style regexp expert

2001-09-05 Thread * RzE:
-- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl -- -- PHP General Mailing List

Re: [PHP] For the RegExps gurus!

2001-09-05 Thread * RzE:
/A' : 'http://\\1\;http://\\1/A'), $mem); print ($mem); ? /PRE --- End of PHP code --- Let me know if this was what you were looking for... /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6

Re: [PHP] Links

2001-09-05 Thread * RzE:
if this is what you need. --- PHP code --- preg_match_all (/a[^]*(.+)\/a/imU, $StringToSearch, $matches); print_r ($matches); --- End of PHP code --- /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144

[PHP] Re: what will be the output for this pgm?

2001-09-05 Thread * RzE:
-checking your code is correct. You should make a diffent page with a link to the page where this code is on and test it by clicking that link. It should work then... Hope this helped you out... /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED

Re: [PHP] Text area's width in NS

2001-09-04 Thread * RzE:
: TEXTAREA style=width: 400px; height: 200px;/TEXTAREA And for Netscape... well... you'll have to live with only using cols= and rows=. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6

Re: Fwd: [PHP] Text area's width in NS

2001-09-04 Thread * RzE:
call 'big enterprises', don't stick to that standard. And yes... indeed... they don't stick to it. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82

Re: [PHP] Another script doesnt work!

2001-09-04 Thread * RzE:
. $bestsketch. $line. $bestanimation. $line. $bestcomedyfilm. $line. $bestfilmchar. $line. $bestquiz. $line. $worstsitcom. $line. $comments; ? /Original message Reply Look at line 21, then. You forgot the semicolon: $line = \r\n; ^ /Reply -- * RzE

Re: [PHP] potential preg_replace bug; unsure however

2001-09-03 Thread * RzE:
(.*) by ([^\]*) remedies this. is a much better solution. It's what you're looking for in the first place. I mean... you're looking for some text that goes 'till the . Why would you want to use '.*' then? /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED

Re: [PHP] Problem with PHP_SELF

2001-09-03 Thread * RzE:
to ensure that the data you are using is safe. /Quote from PHP manual See: http://www.php.net/manual/en/language.variables.predefined.php /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6

Re: [PHP] header() + link..

2001-08-31 Thread * RzE:
frames, which I don't know if you want. One thing I can tell you though... of a page that's being shown, you cannot hide the URL. Never. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6

Re: [PHP] Delete files older than X seconds.

2001-08-31 Thread * RzE:
... And if this wasn't the problem... Tell me/us! /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl

Re: [PHP] Is there anything in here that could be considered a parse error?

2001-08-31 Thread * RzE:
($p_answers)){ 3 foreach($p_answers as $value) { 4 $sql = INSERT INTO RESULTS(SURVEY_ID, ANSWER_ID) VALUES( . $p_surveyid . , . $value . );; 5 mysql_query($sql); 6 } 7 } 8 } else { etc. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E

Re: [PHP] just 10 characters from a string

2001-08-31 Thread * RzE:
. how can i do it? thanks in advance, marcos /Original message Reply When it's about _showing_ 10 characters, and not to change the string itself: $yourString = abcdefghijklmnopqrstuvwxyz; printf (%.10s, $yourString); /Reply -- * RzE: -- -- Renze Munnik

Re: [PHP] number to word converter

2001-08-31 Thread * RzE:
; print inttoword(152).\n; print inttoword(1000).\n; print inttoword(101032).\n; print inttoword(11).\n; ? /PRE --- End of PHP code --- Let me know if this is what you're looking for and/or if you have optimized it. Good luck! /Reply -- * RzE: -- -- Renze

Re: [PHP] number to word converter

2001-08-31 Thread * RzE:
Original message From: * RzE: [EMAIL PROTECTED] Date: Fri, Aug 31, 2001 at 02:03:06PM +0200 Message-ID: [EMAIL PROTECTED] Subject: Re: [PHP] number to word converter Oh... btw... It works uptil 99. So you can convert everything between 1 and 99. Zero (0) cannot be converted (stupid

Re: [PHP] form data used on the same page?

2001-08-31 Thread * RzE:
. Thanks in advance. Kenn /Original message Reply JavaScript is your solution! /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM

Re: [PHP] header() + link..

2001-08-31 Thread * RzE:
authorized aren't allowed to see the page (which makes sense ;). I don't know ofcourse how you take care of things, but for me it's no problem if unauthorized people get URL's where they shouldn't look. I mean... the server just denies access. Problem solved! /Reply -- * RzE

Re: [PHP] Variable Syntax Question

2001-08-31 Thread * RzE:
? -Hass /Original message Reply for ($i = 1; $i 4; $i++) { $myVar = bob$i; print ($$myVar); } /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82

Re: [PHP] Variable Syntax Question

2001-08-31 Thread * RzE:
Original message From: * RzE: [EMAIL PROTECTED] Date: Fri, Aug 31, 2001 at 04:36:36PM +0200 Message-ID: [EMAIL PROTECTED] Subject: Re: [PHP] Variable Syntax Question Btw... Why not just use an array? input type=text name=bob[] input type=text name=bob[] input type=text name=bob[] input type

Re: [PHP] strings in a function return

2001-08-30 Thread * RzE:
the code that you've now replaced by form. It might just be that the error is in that part. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM

Re: [PHP] Referrer

2001-08-30 Thread * RzE:
() next time... ;) /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl

Re: [PHP] If statement within a variable?

2001-08-30 Thread * RzE:
= Hello.IF($var2 = 1) { .Mr. Bean. } else { .New Comer. }. To The Coffee House.; Thank you, Brandon Orther /Original message Reply This is it: $var = Hello.($var2 = 1 ? Mr. Bean : New Comer).To The Coffee House.; /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV

Re: [PHP] If statement within a variable?

2001-08-30 Thread * RzE:
Original message From: * RzE: [EMAIL PROTECTED] Date: Thu, Aug 30, 2001 at 06:05:57PM +0200 Message-ID: [EMAIL PROTECTED] Subject: Re: [PHP] If statement within a variable? This is it: $var = Hello.($var2 = 1 ? Mr. Bean : New Comer).To The Coffee House.; /Original message Reply Oops

Re: [PHP] Header() function and redirect

2001-08-30 Thread * RzE:
that the original script will write the line to the logfile although the user is already redirected to the next page. Btw... 30 seconds is a rather long time. No user will ever want to wait that long. Just my opinion... /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV

Re: [PHP] Date formatting in PHP 3.0

2001-08-30 Thread * RzE:
--- $y = substr($row[0],0,4); $m = substr($row[0],5,2); $d = substr($row[0],8,2); $dy = date (D, mktime(0,0,0,$m,$d,$y)); and just using the date field $dy = date (D, $row[0]); --- End of PHP code --- /Reply -- * RzE: /Reply -- * RzE: -- -- Renze Munnik -- DataLink

Re: [PHP] Header() function and redirect

2001-08-30 Thread * RzE:
a pretty long timeout already. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl

Re: [PHP] Date formatting in PHP 3.0

2001-08-30 Thread * RzE:
strings from your db you'll have to parse 'm first and then put them through mktime() (like you do in your example). Then you have a real timestamp and you can put that through date(). /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31

Re: [PHP] file upload size, before upload complete

2001-08-30 Thread * RzE:
first have to submit the form before the PHP starts. And then it's too late, 'cause at the moment you submit the form, the files are already being uploaded. You should really have a client-side solution for this (if there is any). /Reply -- * RzE: -- -- Renze Munnik

Re: [PHP] I beleive I have found a bug.....

2001-08-29 Thread * RzE:
is the value... not the key. Take a look at: http://www.php.net/manual/en/control-structures.foreach.php Quote from PHP manual foreach(array_expression as $value) foreach(array_expression as $key = $value) /Quote from PHP manual I think this solves your problem... /Reply -- * RzE

Re: [PHP] I beleive I have found a bug.....

2001-08-29 Thread * RzE:
; else print $key2; print ; } print \n; } print /pre; ? --- End of PHP code --- /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144

Re: [PHP] Update form objects before submit

2001-08-29 Thread * RzE:
someUpdateFunc () { var selValue = document.frm.mySel.options[document.frm.mySel.selectedIndex].value; alert (You selected: +selValue); } /SCRIPT /HTML --- End of HTML example --- This will show you what you need (I hope)... /Reply -- * RzE: -- -- Renze Munnik

Re: [PHP] Multiple JavaScript Windows

2001-08-28 Thread * RzE:
output to the user. So what you put at the end of that page is: SCRIPT type=text/javascript window.opener.reload(true); /* reloads the main page */ window.close(); /* closes the popup */ /SCRIPT Hope this is what you were looking for... /Reply -- * RzE

Re: [PHP] Refresh Main frame

2001-08-28 Thread * RzE:
Reply SCRIPT type=text/javascript window.parent.name-of-mainframe.reload(true); /SCRIPT That should be what you're looking for... /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6

Re: [PHP] Refresh Main frame

2001-08-28 Thread * RzE:
a form in a subframe you can just use the reload-thing as I sent earlier and then use sessions. Then you don't need to send params over the URL. But like I say... that totaly depends on the construction as you use it. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV

Re: [PHP] Print..

2001-08-27 Thread * RzE:
Reply Don't know which OS you're using, but the printer-functions only work with Windows: http://www.php.net/manual/en/ref.printer.php /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6

Re: [PHP] Print..

2001-08-27 Thread * RzE:
message Reply Hello! Did you ever take the time to look at the manual? Or some previous posts? http://www.php.net/manual/en/ref.printer.php /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M

Re: [PHP] Print..

2001-08-27 Thread * RzE:
JavaScript. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands -- -- http://www.datalink.nl

Re: [PHP] konquerer and php

2001-08-24 Thread * RzE:
it doesn't matter at all which browser you use. PHP is processed server-side, so the browser just gets 'plain' HTML. I guess something else is wrong than using a different browser. /Reply -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31

Re: [PHP] begginer how to make integer ?

2001-08-21 Thread * RzE:
); -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- -- http://www.datalink.nl -- -- PHP General Mailing List (http

Re: [PHP] List of files?

2001-08-21 Thread * RzE:
of the files in each directory. Can someone give me a hint? cheers - seb This should give you all info you need: http://www.php.net/manual/en/ref.dir.php -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23

Re: [PHP] Detecting empty query result?

2001-08-21 Thread * RzE:
for: msql_num_rows() Try: http://www.php.net/manual/en/function.msql-num-rows.php -- * RzE: -- -- Renze Munnik -- DataLink BV -- -- E: [EMAIL PROTECTED] -- W: +31 23 5326162 -- F: +31 23 5322144 -- M: +31 6 21811143 -- -- Stationsplein 82 -- 2011 LM HAARLEM -- Netherlands