Re: [PHP] Unix problem

2001-05-20 Thread Christian Reiniger
find the files. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God - and she was black. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators

Re: [PHP] The performance of sleep() and usleep()

2001-05-20 Thread Christian Reiniger
the process to sleep for the specified period. It doesn't use any processing power during that time and it might even use less memory (if it is swapped out). -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God - and she was black. -- PHP General Mailing List (http

Re: [PHP] Include Paths

2001-05-20 Thread Christian Reiniger
missing that is causing them to do that. Thank you for the help! You do a print (readfile ('foo')); right? Well, readfile reads the file *and outputs it*, then returns the number of chars read. That is passed to print (). So just use readfile ('foo'); -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] RegEx Question

2001-05-20 Thread Christian Reiniger
' in an array. This will do it, yet when it wont work when special chars such \n exist between 'testing' and 'blah'. Use preg_match() with 's' or 'm' as modifier (one of these is correct...) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The most exciting phrase to hear

Re: [PHP] file()

2001-05-19 Thread Christian Reiniger
endings)? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Very funny, Scotty! Now beam up my clothes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] Finding if a number is in the range

2001-05-18 Thread Christian Reiniger
theory and computer algorithms honors exam. Well, then you *do* know that O(log n) can be slower than O(n), right? :) For a small number of ranges the chained ifs are most likely faster... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) (A)bort (R)etry (P)retend this never

Re: [PHP] while loops [ newbie ]

2001-05-17 Thread Christian Reiniger
Should get you started. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] Re: removing PHP

2001-05-17 Thread Christian Reiniger
you do that? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power information technology puts in our hands these days. - Securityfocus on probing 3600 hosts for known problems in 3 weeks -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Performance issue

2001-05-17 Thread Christian Reiniger
to setup. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power information technology puts in our hands these days. - Securityfocus on probing 3600 hosts for known problems in 3 weeks -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Installation PHP4 on UNIX problems

2001-05-17 Thread Christian Reiniger
get the error message that there is no httpd.h file in the apache folder. And thats true. Use --with-apxs instead of --with-apache. That should do the trick. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) void sleep(){for(long int sheep=0;!asleep();sheep++);} -- PHP General

Re: [PHP] nested functions

2001-05-16 Thread Christian Reiniger
instead of outer functions? Classes provide rather nice (nestable) scoping. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Software is like sex: the best is for free -- Linus Torvalds -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] Uptime script?

2001-05-16 Thread Christian Reiniger
, 13:42, 1 user, load average: 0.07, 0.03, 0.00 -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] still not friends with RegExps..

2001-05-16 Thread Christian Reiniger
expression documentation should be fine. Also the preg expression syntax page in the manual is very good. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Software is like sex: the best is for free -- Linus Torvalds -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] detecting HTML tags

2001-05-15 Thread Christian Reiniger
($text, '')) { UseHTML ($text); } else { UsePlaintext ($text); } -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The most exciting phrase to hear in science, the one that heralds new discoveries, is not Eureka, but That's funny... - Isaac Asimov -- PHP General Mailing List

Re: [PHP] detecting HTML tags

2001-05-15 Thread Christian Reiniger
rolling my own mailing program and want it to detect the HTML if present and send it appropriately. if (strstr ($text, '')) { UseHTML ($text); } else { UsePlaintext ($text); } -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The most exciting phrase to hear

Re: [PHP] Multiple ASP 2 PHP conversion

2001-05-12 Thread Christian Reiniger
/$i done should do it in any decent environment (i.e. any Unix flavor :) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Install once, run forever. Linux. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: [PHP] Hidden Input and Quotes?

2001-05-12 Thread Christian Reiniger
. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Install once, run forever. Linux. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

Re: [PHP] StripSlashes

2001-05-11 Thread Christian Reiniger
' (See http://php.net/manual/en/language.variables.scope.php) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU not found. retry, abort, ignore? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Apache error when installing PHP 4.0.5

2001-05-10 Thread Christian Reiniger
with apache already installed. you need to recompile apache too, unless you want to run php as cgi, in which case you just leave out the --with-apache part --with-apxs should work fine without recompiling apache. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Install once

Re: [PHP] Strange

2001-05-10 Thread Christian Reiniger
to the HTTP headers. you can call it as often as you want. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Install once, run forever. Linux. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: [PHP] string varable...

2001-05-09 Thread Christian Reiniger
On Wednesday 09 May 2001 07:46, Vegard wrote: Does anybody know how much text can be stored in a variable og type string? Typically about 2^(sizeof(int) * 8 - 1) chars. On a normal 32 Bit machine that's 2 Gig, on a 64Bitter, one moment, 9223372036854775808 chars -- Christian Reiniger LGDC

Re: [PHP] passing parameters in the url using forward slashes

2001-05-09 Thread Christian Reiniger
Building dynamic websites with search engines in mind on phpbuilder.com. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) REALITY.SYS corrupted ... reboot Universe [Y,n]? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] Identifying input type=file

2001-05-09 Thread Christian Reiniger
uploads in the manual. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) REALITY.SYS corrupted ... reboot Universe [Y,n]? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] Search a string between foo/foo

2001-05-09 Thread Christian Reiniger
= preg_replace ('/(foo)(.*?)\/\\1/', '$2', $Text); -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) REALITY.SYS corrupted ... reboot Universe [Y,n]? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] forcing error documents

2001-05-09 Thread Christian Reiniger
nothing about PHP 4. Works fine here: function pbHTTP_404 () { header (HTTP/1.0 404 Not Found); include ('404.html'); exit (); } -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) REALITY.SYS corrupted ... reboot Universe [Y,n]? -- PHP General Mailing List

Re: [PHP] no html tags in php via form get

2001-05-08 Thread Christian Reiniger
On Tuesday 08 May 2001 13:55, Alexander Bierbrauer wrote: Hi people, is there a way to check a string, which is passed by a form via GET,for html tags?? Does anyone know some code or anything else?? strip_tags() -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck

Re: [PHP] OT question..

2001-05-08 Thread Christian Reiniger
On Tuesday 08 May 2001 16:40, Kelly Meeks wrote: Hey folks, What language is associated with a web page with a .epl extension? Could be embedded perl (Perl embedded in HTML woughly the way PHP is) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers

Re: [PHP] OT question..

2001-05-08 Thread Christian Reiniger
On Tuesday 08 May 2001 18:13, [EMAIL PROTECTED] wrote: Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler Could you please remove that signature. Thanks. Here's another quote (paraphrased): Those who do

Re: [PHP] OT question..

2001-05-08 Thread Christian Reiniger
that could easily happen. EOT, ok? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler Note: This quote is not meant to be offensive, it is meant to make people think, to let them learn from history (which especially

Re: [PHP] URL redirection

2001-05-07 Thread Christian Reiniger
On Monday 07 May 2001 20:04, elias wrote: script language=JavaScript location = hello-world.htm; /script can be used even if header is already sent! But only works if (a) the browser supports Javascript, (b) supports this JS construct and (c) has Javascript enabled. -- Christian Reiniger

Re: [PHP] FILE () STRIPS BLANKS FROM THE ARRAY - HOW CAN I STOP IT

2001-05-07 Thread Christian Reiniger
- you're looking at HTML code. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Error 032: Recursion error - see error 032 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] Large Memory Problem

2001-05-07 Thread Christian Reiniger
already mentioned) (2) General way to avoid memory overflow on such a thing: Stream the data to disk, i.e. read n bytes, write 'em to disk, repeat. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Error 032: Recursion error - see error 032 -- PHP General Mailing List (http

Re: [PHP] help with fgets

2001-05-07 Thread Christian Reiniger
interprets it as $photos ['i']. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Error 032: Recursion error - see error 032 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: Re[2]: [PHP] Netscape and post

2001-05-05 Thread Christian Reiniger
the data to - kawoom -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) World domination. Fast. (Linus Torvalds about Linux) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] Shorten String or encode/decode a string

2001-05-04 Thread Christian Reiniger
pass around the record ID -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...to paraphrase Churchill, while representative democracy may be terrible, it's still the best system that large corporations can buy. - David Weinberger JOHO January 25, 2000 -- PHP General Mailing List

Re: [PHP] Array Assignment

2001-05-04 Thread Christian Reiniger
That should be a lowercase 'p' (see above) Summary: You thought too complex and thus stumbled over another feature of PHP :) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler -- PHP General Mailing List (http

Re: [PHP] Working with numbers

2001-05-03 Thread Christian Reiniger
way to do this? I don't see any function that would make it easy. It's so easy that you don't need a function for it :) $Qty = 12.470; $Qty_real = (double) $Qty; echo $Qty - $Qty_real; In other words - convert it from a strin to a floating-point number and PHP will do the rest. -- Christian

Re: [PHP] template solutions?

2001-04-30 Thread Christian Reiniger
page to some extent, but surely do not want to require them to learn PHP. Also in this regard. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU not found. retry, abort, ignore? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] php sucks

2001-04-29 Thread Christian Reiniger
secandri wrote: i found this when surfing this morning http://www.phpsucks.net/ Hey hey hey, slow down a bit :) That's a *parody* (though admittedly one of the lamest I've seen in a while). It's certainly not defamation, just like Bill Gates jokes are not defamation :) -- Christian

Re: SV: [PHP] PHP Book?

2001-04-28 Thread Christian Reiniger
corrected (as you did) here. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Very funny, Scotty! Now beam up my clothes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] Variable (naming them) Functions.

2001-04-27 Thread Christian Reiniger
; function delta ($FuncName, $args) { return ${$FNames[$FuncName]} ($args); } ) But such a thing is an ugly hack and I'm sure you don't need it. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Error 032: Recursion error - see error 032 -- PHP General Mailing List (http

Re: [PHP] explode won't explode

2001-04-27 Thread Christian Reiniger
/a)) { $sizearry = explode(,, $size); while (list($key,$value) = each($sizearry)) { $size_option_block .= option value=\$value\$size/option\n; Why are yo using $size (the unexploded string) in the last line? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Error 032: Recursion error

Re: SV: [PHP] PHP Book?

2001-04-27 Thread Christian Reiniger
(the book only covers PHP3) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Error 032: Recursion error - see error 032 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] Syntax for select statement

2001-04-27 Thread Christian Reiniger
statement? If the answer is Yes, can someone give me a more robust way of writing it using PHP? Yes. use addslashes() -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Error 032: Recursion error - see error 032 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: SV: [PHP] PHP Book?

2001-04-27 Thread Christian Reiniger
pester this mailing list with your nonsense comments. I mean that book with a foreword by Andi Gutmans. Well, you just said Core PHP Programming and I described that book. But you're right in that I know nothing about the second edition. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc

Re: [PHP] Is PHP code software?

2001-04-27 Thread Christian Reiniger
was coined to differentiate these instructions from hardware-i.e., the physical components of a computer system. A set of instructions that directs a computer's hardware to perform a task is called a program, or software program. http://www.britannica.com/eb/article?eu=2214tocid=0 -- Christian Reiniger

Re: [PHP] Fatal Errors and Error Handling

2001-04-25 Thread Christian Reiniger
. Corrupted data is something to be expected, something that even has to be considered *normal* when developing such a thing. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Software is like sex: the best is for free -- Linus Torvalds -- PHP General Mailing List (http://www.php.net

Re: [PHP] How to turn off warnings ???

2001-04-24 Thread Christian Reiniger
to turn them off? Warnings are not fatal as such, but they often give hints that you have a bug somewhere. Correct your code. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net

Re: [PHP] Fatal Errors and Error Handling

2001-04-24 Thread Christian Reiniger
* return a valid XML message in a predefined format. If not, I am violating the standard we are if (@foo_bar (42, 4711) == ERROR_CODE) { PrintXMLErrorMessage (); } else { GoOnProcessing (); } -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc

Re: [PHP] Fatal Errors and Error Handling

2001-04-24 Thread Christian Reiniger
. Just imagine that with your interpretation in the following snippet $conn = @mysql_connect(...) $conn would always be set to 0... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I sat laughing snidely into my notebook until they showed me a PC running Linux. And oh! It was as though

Re: [PHP] Fatal Errors and Error Handling

2001-04-24 Thread Christian Reiniger
. A custom error handling function installed via set_error_handler() will *not* work because it won't get the error code. But I never suggested using set_error_handler() :) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I sat laughing snidely into my notebook until they showed me a PC

Re: [PHP] Fatal Errors and Error Handling

2001-04-24 Thread Christian Reiniger
that the original poster was using, and needed to use, set_error_handler to handle their own errors. Well, needed to use might be incorrect, because return value evaluation can be used instead (unless some functions never signal errors via their return value). Aside from that you're right. -- Christian

Re: [PHP] Getting a binary file from URL

2001-04-23 Thread Christian Reiniger
4.0.1 and it read up to several hundred junk bytes after encountering EOF. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) World domination. Fast. (Linus Torvalds about Linux) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] anyone know of a dicitionary for bad site content?

2001-04-23 Thread Christian Reiniger
bomb meaning? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Even idiots can handle computers, and many do. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] pumping database dump in mysql

2001-04-22 Thread Christian Reiniger
On Saturday 21 April 2001 15:39, Peter Van Dijck wrote: Hi, I want to write a script that takes a mysql dump file and pumps it into the database. What about simply using phpMyAdmin? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Software is like sex: the best is for

Re: [PHP] ENUM or SET and PHP

2001-04-21 Thread Christian Reiniger
Thus you will find enlightenment. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds. - http://www.google.com/search?q=e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Which is better coding style...

2001-04-20 Thread Christian Reiniger
ng out of a function somewhere in the middle leads to unmaintainable code See example above. But, as with the indenting and bracket placing, it is a matter of religion. Now that's something we agree on :) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of

Re: [PHP] ENUM or SET and PHP

2001-04-20 Thread Christian Reiniger
them and pouring boiling water over the resulting dust. And when you're done with that, take the manual and read it. Thus you will find enlightenment. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds. - http

Re: [PHP] `AM_PROG_LIBTOOL' not found in library

2001-04-20 Thread Christian Reiniger
... (cached) ranlib checking whether gcc and cc understand -c and -o together... (cached) yes checking whether ln -s works... (cached) yes what do you think is going on??? Well, according to that log everything is perfectly fine. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google

Re: [PHP] Regular Expression

2001-04-19 Thread Christian Reiniger
as much as possible. Example: For "This [is a] string [with] multi [brack]ets" it will match "is a] string [with] multi [brack" A better solution would be "/\[(.+?)\]/" The '?' after the '+' tells it to match as little as possible. -- Christian Reiniger LGDC Webmaster

Re: [PHP] HTMLSpecialchars

2001-04-19 Thread Christian Reiniger
* and (2) it really takes care of *all* HTML specialities (e.g. umlauts) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) /* you are not expected to understand this */ - from the UNIX V6 kernel source -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] SESSIONS, a weird, funny yet strange error happens to wrong people...

2001-04-19 Thread Christian Reiniger
? err Warning: open(/tmp/sess_b5ad1e0878dee63fa8a780df44af3ea7, O_RDWR) failed: File exists (17) in page.japaninc.inc on line 109 /err Then at least the error message should be worded differently. Failure because the file exists should be impossible for open (..., O_RDWR) -- Christian

Re: [PHP] Can PHP run without php.ini?

2001-04-19 Thread Christian Reiniger
though :) and restarted the computer - you know what, the PHP works perfectly and show the default settings! How come? Because it uses the default settings :) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) REALITY.SYS corrupted ... reboot Universe [Y,n]? -- PHP General Mailing

Re: [PHP] Which is better coding style...

2001-04-19 Thread Christian Reiniger
s, is it good practice to exit out of a block (any block... not just switch; if, for, while) prematurely as demon- strated in the first example? Or should you do it as demon- strated in the second example? Well, what is more readable, understandable, clearer? -- Christian Reiniger LGDC Web

Re: [PHP] How do i include ASP script into PHP...??!

2001-04-18 Thread Christian Reiniger
o/asp/script.asp", "r"); -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) A - American Association Against Acronym Abuse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] Persistent connection many scripts ?

2001-04-18 Thread Christian Reiniger
? ? Simply using pg_pconnect() (without saving the connection ID) should be just as fast and more failproof -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) A - American Association Against Acronym Abuse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E

Re: [PHP] print_r style array content

2001-04-18 Thread Christian Reiniger
? Many thanks. serialize () A bit hard to read, but really useful nevertheless -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) A - American Association Against Acronym Abuse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Christian Reiniger
expression functions (Perl-compatible) for an explanation -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) A - American Association Against Acronym Abuse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: [PHP] Is it possible to parse a variable by character?

2001-04-18 Thread Christian Reiniger
quot;", $f_loc_name); 92- $f_loc_name = ""; 93- $f_loc_name = $f_loc_new; $f_loc_new = ereg_replace("[^_a-z0-9-\.]", "", $f_loc_name); That, and because the dash needs to be the last character in the character class: $f_loc_new = ereg_replace(&qu

Re: [PHP] Regular Expression

2001-04-18 Thread Christian Reiniger
quot;; } looks a bit perverse (because the [] brackets have special meaning in regular expressions), but you'll get used to it :) Also have a look at the description of the perl regex syntax in the manual -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Even idiots can handle c

Re: [PHP] Regular Expression

2001-04-18 Thread Christian Reiniger
cho "Found it : '" . $Matches [1] . "'"; } Ooops. The expression should read '/\[([^\]]+)\]/' -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Even idiots can handle computers, and many do. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E

Re: [PHP] RFC: Storing User Info

2001-04-17 Thread Christian Reiniger
their login? Just fetch the info from DB and mail it out to the (registered) email address? Yup -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt that a small group of thoughtful, committed people can change the world... Indeed, it's the only thing that eve

Re: [PHP] php like cgi

2001-04-17 Thread Christian Reiniger
p ? That's a pretty unusual location for PHP to be installed in. /usr/bin/php or /usr/local/bin/php are the common ones ?php echo "Content-type: text/html\n\n"; unneccessary if you leave out the -q -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-17 Thread Christian Reiniger
benchmarking wrt. this? (Links are fine) run "ab" (comes with apache) on two scripts, one using method A repeatedly, the other using method B repeatedly -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt that a small group of thoughtful, committed people can c

Re: [PHP] cgi vs. module

2001-04-17 Thread Christian Reiniger
? Modules are *way* faster (I haven't done benchmarks myself, but heard of a 10x speed increase compared to CGIs) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt that a small group of thoughtful, committed people can change the world... Indeed, it's the only

Re: [PHP] baffled ::

2001-04-17 Thread Christian Reiniger
" and finally to "D". In other words: in each iteration you overwrite all previous values I have script identical to this that works perfectly .. only difference is this one has different names for the values I don't believe that, sorry :) -- Christian Reiniger LGDC Webmaster (ht

Re: [PHP] Want a Good Book for Ref on PHP

2001-04-16 Thread Christian Reiniger
n (giving more complex examples :). But (1) never forget to have the online manual at hand and (2) check phpbuilder.com etc for new interesting articles from time to time -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) (A)bort (R)etry (P)retend this never happened ... -- PHP Gener

Re: [PHP] General WebServer Question?

2001-04-16 Thread Christian Reiniger
ot;ab" (ApacheBench). -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) (A)bort (R)etry (P)retend this never happened ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contac

Re: [PHP] header( )

2001-04-14 Thread Christian Reiniger
this at all... There are in fact two different servers: the web server and the PHP server. IMO it should be possible for the PHP server, executing PHP Wrong. PHP runs as part of the webserver. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113

Re: [PHP] Forcing Case

2001-04-14 Thread Christian Reiniger
On Saturday 14 April 2001 09:15, you wrote: Is there any way to force case...like if I have a string and want it to appear in all lowercase (or uppercase, God forbid)? http://www.php.net/strtolower -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc

Re: [PHP] no reponse -- Need FTP help

2001-04-13 Thread Christian Reiniger
only), right? Then you can write a script on A that, using the ftp functions built into PHP, transfers the files to B -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "The number of Unix installations has grown to 10, with more expected." -- The Unix Programmer's M

Re: [PHP] Easy News Script

2001-04-13 Thread Christian Reiniger
ql. Using MySQL's NOW() function is a bit easier :) That's a bit tougher to get the hang of :) SELECT FROM_UNIXTIME(time_field) AS foo FROM mytable; -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "The number of Unix installations has grown to 10, with more expected

Re: [PHP] getting all variables from session into array

2001-04-13 Thread Christian Reiniger
ON_VARS)) echo "$key - $val"; } Exactly like that -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God - and she was black. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: [PHP] php.ini

2001-04-11 Thread Christian Reiniger
On Tuesday 10 April 2001 10:58, you wrote: Is it possible to override the maximum script execution time as set in php.ini using an Apache directive like this in an .htaccess file?: php_value max_execution_time = 60 What about simply trying it? :) -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] online detection

2001-04-11 Thread Christian Reiniger
provider's dialin box. (more difficult) (3) Install a proper trojan on the user's machine Most criminals use possibility 3 ;-) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) A - American Association Against Acronym Abuse -- PHP General Mailing List (http://www.php.net

Re: [PHP] Controlling just size with regular expressions

2001-04-10 Thread Christian Reiniger
? "anything" = '.' = /^.{0,9}$/ will do the trick strlen () will be faster though -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) A - American Association Against Acronym Abuse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Empting all variables

2001-04-10 Thread Christian Reiniger
On Tuesday 10 April 2001 04:28, you wrote: Is there a quick way to 'empty' all the variables I have set on a page? I need to clear everything before re-loading the page. If you reload the page everything is cleared anyway (aside from session data) -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] Upload file from my local C:

2001-04-10 Thread Christian Reiniger
put type='file' ? Then re-read the file uploading chapter in the manual I use a command "copy" to upload a file from my local win machine to webserver. However, it is not successful. It prompts that "Warning: Unable to open 'D:\\PHP\\upload1.php' for reading:". I would like to

Re: [PHP] apostrophe checks

2001-04-09 Thread Christian Reiniger
have a function? addslashes() -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) This is JohnC IMHO, I compaired tri-word groupings here and in his plan and got a good match. - /. posting discussing the likelihood that an AC post that claimed to be posted by John Carmack during his

Re: [PHP] Upload file from my local C:

2001-04-09 Thread Christian Reiniger
roblem show us some code. The warning should also print the line number where the problem occurs, What does that line do? what do you do in the 5 lines before that? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "World domination. Fast." (Linus Torvalds about Linux

Re: [PHP] Cookie Expire Problem

2001-04-08 Thread Christian Reiniger
On Sunday 08 April 2001 06:15, you wrote: Your cookie is set to expire in the year 2280. You think that's a little overkill? And it runs into the UNIX-style Y2K problem which is...um...13 years from now? Well anyway... 2038 with a 32bit processor -- Christian Reiniger LGDC Webmaster

Re: [PHP] image validation

2001-04-08 Thread Christian Reiniger
t to check, just try opening them with one of the image extensions (gd, imagemagick, ...) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) void sleep(){for(long int sheep=0;!asleep();sheep++);} -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] submitting to a remote form

2001-04-08 Thread Christian Reiniger
On Sunday 08 April 2001 08:50, you wrote: Thanks for the info. Question: Is there a simple way to encode text? J rawurlencode() -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) void sleep(){for(long int sheep=0;!asleep();sheep++);} -- PHP General Mailing List (http

Re: [PHP] String in a string

2001-04-07 Thread Christian Reiniger
On Friday 06 April 2001 16:42, you wrote: How do I find out if a string is contained in a string. I just need true/false. strstr()? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) This is JohnC IMHO, I compaired tri-word groupings here and in his plan and got a good match

Re: [PHP] mail() limit?

2001-04-07 Thread Christian Reiniger
, ...) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) This is JohnC IMHO, I compaired tri-word groupings here and in his plan and got a good match. - /. posting discussing the likelihood that an AC post that claimed to be posted by John Carmack during his honeymoon (and having the login info

Re: [PHP] fopen wierdness

2001-04-06 Thread Christian Reiniger
omatically. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God - and she was black. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-ma

Re: [PHP] better functionality in query ?

2001-04-06 Thread Christian Reiniger
ars - that's even faster than "WHERE phone = 'foobar-something'" and works very nicely with a perfectly normal index. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God - and she was black. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Select case equivelent

2001-04-05 Thread Christian Reiniger
foobar = "fooey3" case else foobar = "NoBar" End Select How do I do the equivelent in PHP? Try reading the manual. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Error 032: Recursion error - see error 032 -- PHP General Mailing List (http://

Re: [PHP] mysql and php

2001-04-05 Thread Christian Reiniger
eive this error message: Mensagens do MySQL : You have an error in your SQL syntax near 'u, fgrupos g SET g.cdgrupo=1, u.celular="99823640", u.nome="Augusto X", u.sobren' at line 1 Why? How can I update with 2 or more tables? use separate queries -- Christian Re

Re: [PHP] Left Join Across Two Databases

2001-04-05 Thread Christian Reiniger
); should work fine -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Error 032: Recursion error - see error 032 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list adminis

<    1   2   3   4   5   >