Re: [PHP] Random Row From Database

2001-11-11 Thread Christian Reiniger
to there. (2) No, it shouldn't work WHERE RAND () means where some random number evaluates to true (i.e. is nonzero) you want ORDER BY RAND () LIMIT 1 -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http

Re: [PHP] Append to STDIN

2001-11-09 Thread Christian Reiniger
On Friday 09 November 2001 05:16, Cleber S. Mori wrote: Hi again... I had already RTFM... Neither in exec or ``'s I found any thing about STDIN... Just a blind shot: $Data = escapeshellarg ($MyVariable); system (echo $Data | myscript.py -param); -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] regular expression

2001-11-01 Thread Christian Reiniger
]); } else { pbHTTP_404 (); return false; } } } -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) /* you are not expected to understand this */ - from the UNIX V6 kernel source

Re: [PHP] Quick array question

2001-10-31 Thread Christian Reiniger
could use array_values() on that.. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Never doubt that a small group of thoughtful, committed people can change the world... Indeed, it's the only thing that ever has. - Margaret Mead -- PHP General Mailing List (http://www.php.net

Re: [PHP] HELP: Syntax Needed

2001-10-29 Thread Christian Reiniger
fail :) -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) 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

Re: [PHP] switch-statement overrides use of global arrays?

2001-10-29 Thread Christian Reiniger
(phpbuilder.com has a nice tutorial on this) -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) 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

Re: [PHP] parsing XML turorials, suggestions

2001-10-29 Thread Christian Reiniger
? Does DOMXML have a future? Sure. But it's a bit overkill if you just want to read XML (sequentially). http://php.net/manual/en/ref.xml.html -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) This is JohnC IMHO, I compaired tri-word groupings here and in his plan and got a good match

Re: [PHP] Arrays

2001-10-28 Thread Christian Reiniger
/manual/en/ref.array.php -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Drink wet cement. Get stoned. -- 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

Re: [PHP] Include Precompiled C binaries

2001-10-28 Thread Christian Reiniger
On Friday 26 October 2001 22:32, Daelic wrote: I was debating perl Vs. PHP with a friend, and he came up with this: Perl can include compiled C binaries without backprocessing them, which is a pretty useful trick. Ask him what he means with backprocessing -- Christian Reiniger LGDC

Re: [PHP] HELP: Still Learning

2001-10-28 Thread Christian Reiniger
On Sunday 28 October 2001 07:18, jtjohnston wrote: Still learning! But need syntax help. This works: mysql_pconnect($host,MyAccount,MyPassword); ... This does not: mysql_pconnect($host,$MyTable,$MyPassword); Notice something? :) -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] Does unset() help performance?

2001-10-26 Thread Christian Reiniger
On Friday 26 October 2001 03:42, Julio Nobrega wrote: If I unset variables/arrays/etc, that I will not use on my script anymore, should I expect a performance increase? No. unless these variables use up so much memory that the system starts swapping. -- Christian Reiniger LGDC Webmaster

Re: [PHP] talking directly w/ MySql

2001-10-25 Thread Christian Reiniger
() it tries to connect w/ default connection settings. try adding the mysql_telepathy extension (seriously - how should the data get to and from mysql without a connection?) -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) /* you are not expected to understand this */ - from

Re: [PHP] Object sharing

2001-10-25 Thread Christian Reiniger
On Wednesday 24 October 2001 15:35, Victor Hugo Oliveira wrote: Does anyone know a way to share an object with all sessions ? The idea is to access the same database connection poll. poll or pool? if pool: simply use persistent connections -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] is_int() and is_double

2001-10-25 Thread Christian Reiniger
or double See the manual. Possible solution: if (is_numeric ($a)) { $a = (double) $a; if (intval ($a) == $a) echo '$a' is integer; else echo '$a' is double; } -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) /* you are not expected to understand this */ - from

Re: [PHP] Re: Removing an Array Element

2001-10-25 Thread Christian Reiniger
. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) /* 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 PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: [PHP] how many data can a session hold?

2001-10-25 Thread Christian Reiniger
: You should only store the session ID in the cookie and use this as a reference to the real data located e.g. in a database. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) ...to paraphrase Churchill, while representative democracy may be terrible, it's still the best system

Re: [PHP] How to protect MySQL password

2001-10-24 Thread Christian Reiniger
(). Doesn't matter if that file Only if the host has safe_mode disabled or badly misconfigured. - safe_mode, open_basedir in the config section of the manual -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Very funny, Scotty! Now beam up my clothes... -- PHP General Mailing List

Re: [PHP] preg_match_all...grrrr!!!

2001-10-23 Thread Christian Reiniger
there in other projects, and have worked. Is there anything else I'm doing wrong here? I dont get any errors, but it returns 0 matches. =) The php manual contains a good documentation of preg syntax. read that.. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Results 1 - 10 of about

Re: [PHP] language question

2001-10-22 Thread Christian Reiniger
) { ... } RTFM :) BTW: overwriting $a, $b in each iteration isn't particularly useful... -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Those who will not reason, are bigots, those who cannot, are fools, and those who dare not, are slaves. - George Gordon Noel Byron (1788-1824

Re: [PHP] sscanf() question...

2001-10-19 Thread Christian Reiniger
On Wednesday 17 October 2001 23:25, Uchendu Nwachukwu wrote: I am trying to write a script to convert a MySQL timestamp (MMDDhhmmss) to a unix timestamp. SELECT UNIX_TIMESTAMP(timefield) AS MyTime FROM xy -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk

Re: [PHP] handling errors

2001-09-27 Thread Christian Reiniger
reporting should be set to E_ALL and reasons of avoidable errors/warnings should be eliminated. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) REALITY.SYS corrupted ... reboot Universe [Y,n]? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] handling errors

2001-09-27 Thread Christian Reiniger
to pass as parameter for getImageSize. According to my docs (08 Sep 2001) it can. And http://php.net/getimagesize says the same.. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) REALITY.SYS corrupted ... reboot Universe [Y,n]? -- PHP General Mailing List (http://www.php.net

Re: [PHP] speechmarks

2001-09-26 Thread Christian Reiniger
On Wednesday 26 September 2001 01:07, Andrew Austin wrote: What is the method for mySQL to surround single speechmarks as in (don't) so it will be accepted in an SQL statement. http://php.net/addslashes -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Error 032: Recursion

Re: [PHP] Feature?

2001-09-25 Thread Christian Reiniger
clearer I think. Comments are welcome! You can emulate this with arrays: $bar = foo (array ('par2' = 10)); -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] 404 error

2001-09-24 Thread Christian Reiniger
the parser has got the file for parsing. Simple :) You tell apache to serve, say, 404.php on a 404, and in *that* file you place the code :) If you want to send a 404 from an existing php file, do a header ('HTTP/1.0 404 Not Found'); include (404.php); exit (); -- Christian Reiniger LGDC

Re: [PHP] Assistance Please - Two-Dimension Arrays

2001-09-24 Thread Christian Reiniger
are associative). -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Results 1 - 10 of about 201,000,000. Search took 0.08 seconds - http://www.google.com/search?q=e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] 404 error

2001-09-24 Thread Christian Reiniger
page with the error on, so Apache thinks it has found the page. At least that's what happens on our server. Am I missing something in Apache that will tell the server to check a file exits before it sends the request to the server? Check your ErrorDocument clauses -- Christian Reiniger LGDC

Re: [PHP] Search in Progress

2001-09-23 Thread Christian Reiniger
of the page. That's how a search should work :) -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) These are the people who proudly call themselves hackers -- not as the term is now abused by journalists to mean a computer criminal, but in its true and original sense of an enthusiast

Re: [PHP] Assistance Please - Two-Dimension Arrays

2001-09-23 Thread Christian Reiniger
,element12); $myarray[2] = array(element20, element21,element22); You would refrence element11 by $myarray[1][1]; Congratulations. You just described a multidimensional array :) -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) These are the people who proudly call themselves

Re: [PHP] 404 error

2001-09-23 Thread Christian Reiniger
On Sunday 23 September 2001 20:46, Richard Baskett wrote: I don't think I said it clear enough :) Sorry abou that. This is what I did: ? echo Page with error: $HTTP_REFERERbr; echo Error Link: $PHP_SELF; ? Try $REQUEST_URI -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk

Re: [PHP] PHP vs M$.NET C#?

2001-09-19 Thread Christian Reiniger
/ innovative in C# -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) 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] Can someone help me parse XML? - Challenge

2001-09-18 Thread Christian Reiniger
looked like this: http://php.net/manual/en/ref.xml.php -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) I sat laughing snidely into my notebook until they showed me a PC running Linux. And oh! It was as though the heavens opened and God handed down a client-side OS so beautiful, so

Re: [PHP] R: equivelant of ASP's #include file?

2001-09-14 Thread Christian Reiniger
is include_once() and require_once() readfile(filename.ext); read filename.ext and print it to the output, don't parse it. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) I saw God - and she was black. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] Sterilize user input function

2001-09-09 Thread Christian Reiniger
suppose. Also read through the config section (magic_quotes_*) -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) 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 (http

Re: [PHP] Releasing Your Code

2001-09-07 Thread Christian Reiniger
--no-data dbname dbname.sql -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Results 1 - 10 of about 201,000,000. Search took 0.08 seconds - http://www.google.com/search?q=e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [PHP] 304 Not Modified

2001-09-06 Thread Christian Reiniger
other responses) -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) /* you are not expected to understand this */ - from the UNIX V6 kernel source ?php /** * Functions for HTTP info handling * * Authors : Christian Reiniger [EMAIL PROTECTED] * License : GNU GPL V2 or later (http

Re: [PHP] 304 Not Modified

2001-09-06 Thread Christian Reiniger
); exit; } else { /* code genertating the new page */ } -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) /* you are not expected to understand this */ - from the UNIX V6 kernel source -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] The future of PHP

2001-09-01 Thread Christian Reiniger
:) -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) 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 administrators, e-mail: [EMAIL PROTECTED]

Re: Re: [PHP] script preprocessor?

2001-08-30 Thread Christian Reiniger
.php); } -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) 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 PROTECTED] To contact the list administrators, e-mail

Re: [PHP] fgets

2001-08-30 Thread Christian Reiniger
); } fclose( $im ); -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) 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 PROTECTED] To contact the list

Re: [PHP] script preprocessor?

2001-08-29 Thread Christian Reiniger
function (sgError ($Msg) = MyError (__FILE__, __LINE__, $Msg)) Written for Linux, needs GNU NANA (http://wattle.cs.ntu.edu.au/homepages/pjm/nana-home/) and expat (http://www.jclark.com/xml/expat.html). I can send you a copy of the source if you want. -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] sizeof(int)

2001-08-27 Thread Christian Reiniger
. Typically that's 32 or 64 bits I need a 16 bit (2 byte) storage unit (I use a lot of bitwise operations) Should be trivial to use larger ints for that. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) The most exciting phrase to hear in science, the one that heralds new

Re: [PHP] How can I insert the data into the begining of a text file

2001-08-23 Thread Christian Reiniger
en($file, r+); -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) 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

Re: [PHP] Script timeout

2001-08-23 Thread Christian Reiniger
is getting bored. Try outputting something from time to time. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) 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] HTTP headers and include()

2001-08-23 Thread Christian Reiniger
to solve this.. (sans the if( headers_sent ) { $senthdrs = Headers Sent; } else { $senthdrs = Headers not sent; } does it make a difference if you use the proper function call syntax (i.e. ad the () brackets after headers_sent) ? -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] Strings with Spaces in URLS

2001-08-22 Thread Christian Reiniger
/rawurlencode -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offence. - Edsger W. Dijkstra -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] header function

2001-08-21 Thread Christian Reiniger
the header() line and i get teh 404 page error.. (and A 404 can't come from parse errors or something. It *does* redirect you, but doesn't find the target file - 404 -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Install once, run forever. Linux. -- PHP General Mailing List (http

Re: [PHP] Need Working... pop up dialog (repost)

2001-08-21 Thread Christian Reiniger
by using the zlib functions instead of a exec (gunzip ...) http://php.net/gzopen Also, if the file to be uncompressed is very large, you should cache the results (the generated plots). -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Install once, run forever. Linux. -- PHP

Re: [PHP] Classes and performance bottlenecks

2001-08-14 Thread Christian Reiniger
access the data will be in the filesystem cache, so the reading is only a series of memcpy() (or perhaps even less). Parsing time should be the problem. Look into Zend Cache and APC cache (apc.communityconnect.com|org) -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) REALITY.SYS

Re: [PHP] Apache Directives

2001-08-09 Thread Christian Reiniger
-- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) 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 the list administrators, e-mail

Re: [PHP] subroutines?

2001-08-09 Thread Christian Reiniger
DETAILS, etc.). Please tell me I'm mistaken! http://www.php.net/manual/en/functions.php http://www.php.net/manual/en/function.require-once.php http://www.php.net/manual/en/control-structures.switch.php http://www.php.net/manual/en/language.oop.php -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] require using url

2001-08-09 Thread Christian Reiniger
a HHTP request to http://host.server.com/functions.php , get's back the *output* of functions.php and includes that (assuming host.server.com uses PHP). -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) World domination. Fast. (Linus Torvalds about Linux) -- PHP General Mailing

Re: [PHP] How do I write a compound variable?

2001-08-07 Thread Christian Reiniger
=20; $high_2000=21; $high_2001=23; Use Arrays: $high [1995] = 22; $high [1996] = 23; ... -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Results 1 - 10 of about 201,000,000. Search took 0.08 seconds - http://www.google.com/search?q=e -- PHP General Mailing List (http

Re: [PHP] Re: Minutes between tow dates

2001-08-05 Thread Christian Reiniger
On Saturday 04 August 2001 00:02, Richard Lynch wrote: Something like: select date_format('unix-timestamp', yoursessiontimestampcolumn) from sessiontable; SELECT UNIX_TIMESTAMP(yourtimestampcolumn) AS thetime FROM sessiontable; could be a bit faster -- Christian Reiniger LGDC Webmaster

Re: [PHP] ? about PHP includes

2001-08-03 Thread Christian Reiniger
you read the entire file, line by line. Use $Text = fread ($txtfile, 250); instead. print $line; } close($txtfile); fclose -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Software is like sex: the best is for free -- Linus Torvalds -- PHP General Mailing List (http

Re: [PHP] PHP_SELF

2001-08-01 Thread Christian Reiniger
On Tuesday 31 July 2001 04:59, Gerard Samuel wrote: if ($post = 1 $Age = ) {echo NO;} = is assignment. == is comparison -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offence

Re: [PHP] Re: HTTP header question.

2001-07-30 Thread Christian Reiniger
. header (Location: http://XY;) works (if there's a header ('302: Moved Temporarily'); before it), because it just tells the browser don't use this URL at the moment - try XY instead and the browser initiates a new request based on that. -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] Why doesn't this simple query work?

2001-07-26 Thread Christian Reiniger
+shoots+where+location+!=+' Use Addslashes or magic_quotes_gpc. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) ...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

Re: [PHP] IE - View Source

2001-07-26 Thread Christian Reiniger
a reason to hide their source. I have. Often. There's so much HTML code out there that's so bad that it should be hidden to save its author much embarassment (and to save us from feeling sick too often... :-) -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) ...to paraphrase Churchill

Re: [PHP] Turning a filehandle into an array

2001-07-24 Thread Christian Reiniger
entry on opendir() -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) I sat laughing snidely into my notebook until they showed me a PC running Linux. And oh! It was as though the heavens opened and God handed down a client-side OS so beautiful, so graceful, and so elegant that a million

Re: [PHP] Single Digit in Double digit column

2001-07-23 Thread Christian Reiniger
. it fails to display items with 1 digit! What did I do wrong What did you do? I want to know where to look. In your query. Or your PHP code. That's about all I can say. If you want to get a useful answer, provide some relevant facts. -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] HTML in XML???

2001-07-19 Thread Christian Reiniger
. This should work: myhtmlcode![CDATA[headtitlemy html code/title/head]]/myhtmlcode -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) REALITY.SYS corrupted ... reboot Universe [Y,n]? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] Email Software

2001-07-19 Thread Christian Reiniger
millions of people really mad at you. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) 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

Re: [PHP] lack of error

2001-07-16 Thread Christian Reiniger
one got an idea what may cause such? here is the url you can try it. http://www.hvacsites.com/SiteBuilder/logo.php?tmpcolor=_dredlogo_text= sdfdsdfasfdlogo_style=1 Works fine for me -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) These are the people who proudly call themselves

Re: [PHP] What the heck is this

2001-07-11 Thread Christian Reiniger
, July 11, 2001 2:12 AM Subject: Re: [PHP] What the heck is this That's a classy question . At 23:11 10/07/2001 -0700, Adam wrote: I've seen this around alot ($a-$z) and i'm woundering what it is and -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Software is like sex

Re: [PHP] Require very urgent Help about Security (pki, digital signature) along with PHP

2001-07-10 Thread Christian Reiniger
a good security expert. Everything else is a desaster waiting to happen. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) I sat laughing snidely into my notebook until they showed me a PC running Linux. And oh! It was as though the heavens opened and God handed down a client-side OS

Re: [PHP] regex questions

2001-07-10 Thread Christian Reiniger
the line like I want to. Let the pattern remember it: $bar = preg_replace ('/(\d)/', '\1/', $foo); -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) I saw God - and she was black. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [PHP] can I fopen an https url?

2001-07-08 Thread Christian Reiniger
On Saturday 07 July 2001 09:27, Jeff Orrok wrote: and assuming I can, will this dump the resulting page to the browser? $fp = fopen( $buildURI, r ); fpassthru( $fp ); fclose( $fp ); Why don't you just try it? -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) This is JohnC

Re: [PHP] Number of the line ?

2001-07-06 Thread Christian Reiniger
in file . __FILE__ . , line . __LINE__ . \n; -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) (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

Re: [PHP] where can I find a good documentation on regular expressions?

2001-07-06 Thread Christian Reiniger
On Thursday 05 July 2001 19:33, Mick Foster wrote: where can I find a good documentatio on regular expressions? I´m desperate in need of it... thanks for your time http://php.net/manual/en/pcre.pattern.syntax.php And if you need an intro look through phpbuilder.com. -- Christian Reiniger

Re: [PHP] Troubleshooting syntax ?

2001-07-04 Thread Christian Reiniger
On Wednesday 04 July 2001 16:58, Kurt Lieber wrote: That domain name doesn't appear to be valid. Perhaps you meant: http://validator.w3.org ? Um, yes. Why can't the w3c simply have w3c as domain name? *sigh* http://validator.w3c.org/ -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] Security of PHP code

2001-07-04 Thread Christian Reiniger
= make this line show_source($file); then go to your page like file.php?file=/etc/passwd and you're freaked! -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Pretty cool, the kind of power information technology puts in our hands these days. - Securityfocus on probing 3600

Re: [PHP] shtml includes

2001-07-03 Thread Christian Reiniger
regardless of the filename. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: [PHP] setcookie problem

2001-07-03 Thread Christian Reiniger
(a 32Bit signed number) on 32Bit machines (which I assume is used here). So the Y2k equivalent for Unix time() is around mid-2038. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net

Re: [PHP] Using PHP to test if server is online

2001-07-03 Thread Christian Reiniger
this with PHP? I'm guessing it would involve some kind of socket connection... if ($Handle = fopen (http://slashdot.org/;, r)) { echo We're NOT online; fclose ($Handle); } else { echo We're online; } -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk

Re: [PHP] new break tags

2001-07-01 Thread Christian Reiniger
=preg_match_all(/br\/\s+br\//i, $text, $parts) Improved Solution: Make it more flexible: $breaks=preg_match_all(/br\s*\/?\s+br\s*\/?/i, $text, $parts) That should do the job -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) void sleep(){for(long int sheep=0;!asleep();sheep++);} -- PHP

Re: [PHP] Printing a string issue

2001-07-01 Thread Christian Reiniger
this to parse! Use the string concatenation operator '.' : print (pa href=\wtai://wp/mc; . $row[officenum] . \Office/a/p); -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) void sleep(){for(long int sheep=0;!asleep();sheep++);} -- PHP General Mailing List (http://www.php.net

Re: [PHP] Pricing Advice Needed

2001-06-29 Thread Christian Reiniger
the code of newbies. Furthermore it's bad for you - you don't spend a constant amount of effort per source line. Some parts are easy while others take much time. And some areas of work (database setup, site structure planning etc) produce zero lines of code. -- Christian Reiniger LGDC Webmaster

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-29 Thread Christian Reiniger
when you put the stuff into the DB? -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) ...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

Re: [PHP] setting output_buffering for certain hosts or directories

2001-06-28 Thread Christian Reiniger
php_flag instead of php_value -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) The number of Unix installations has grown to 10, with more expected. -- The Unix Programmer's Manual, 2nd Edition, June 1972 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail

Re: [PHP] Filtering out \ when a ' is user entered?

2001-06-27 Thread Christian Reiniger
on the final public viewable page? http://php.net/stripslashes -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Never doubt that a small group of thoughtful, committed people can change the world... Indeed, it's the only thing that ever has. - Margaret Mead -- PHP General Mailing List

Re: [PHP] Help with simple regular expression

2001-06-25 Thread Christian Reiniger
. It should be simple thing but I'm stumped! Greedy means: it tries to match as much as possible. In your case it matches body and then everything up to, and including, /html - a string starting with body and ending with :) -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk

Re: [PHP] General Coding Question

2001-06-21 Thread Christian Reiniger
use then. why not use ' ? echo input type=\text\ name=\name\ value=\$name\ echo input type='text' name='name' value='$name' I like the second. it is proper html check it with w3.org. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Never doubt that a small

Re: [PHP] list of included file names

2001-06-20 Thread Christian Reiniger
On Tuesday 19 June 2001 17:42, Tim McGuire wrote: For debugging purposes, I want to see a list of the included files on a page in HTML comments. http://php.net/get_included_files -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Very funny, Scotty! Now beam up my clothes

Re: [PHP] List of included file names.

2001-06-20 Thread Christian Reiniger
. -- 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 administrators, e-mail

Re: [PHP] Passing Array through URL

2001-06-19 Thread Christian Reiniger
, or any other way? * Write it to the database (using serialize()) * Pass the record ID via URL * Read from the DB in the receiving script -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) void sleep(){for(long int sheep=0;!asleep();sheep++);}

Re: [PHP] A web server query

2001-05-24 Thread Christian Reiniger
On Thursday 24 May 2001 10:49, Parag Mehta wrote: i would like to know if there is any smal webserver like boa or thttpd which supports php ? Yes. thttpd for example. Read the manual for more info -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I sat laughing snidely into my

Re: [PHP] PHP AND SSI

2001-05-23 Thread Christian Reiniger
Side Includes - Selective Stupidity Incorporated You have three guesses... -- 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

Re: [PHP] re: files

2001-05-23 Thread Christian Reiniger
On Wednesday 23 May 2001 17:03, Jon Yaggie wrote: Okay thanks perhaps i am using an old manual. I think i downloaded it about three months ago but this function is not present there . .. Bad excuse. That function has been in there since at least the early PHP3 versions. -- Christian

Re: [PHP] Web Server processing question

2001-05-23 Thread Christian Reiniger
code? -- 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 PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: [PHP] outputting lines from file(file.php)

2001-05-23 Thread Christian Reiniger
like chop(), or html_spec_chars? How do you guys display php files to the screen in the HTML stream? http://php.net/show_source -- 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] php unpack function

2001-05-23 Thread Christian Reiniger
it. The problem I am having is when reading all the documentation for the pack/unpack function, I have been unable to figure out a way to only take a small subset of the data. For instance, my file is look into fseek(), fread() and substr () -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] Class and extends pb/bug? with php404pl1

2001-05-22 Thread Christian Reiniger
On Tuesday 22 May 2001 11:54, Hugues BRUNEL wrote: echo b::foo1=.$this-$foo1.\n ; echo b::foo2=.$this-$foo2.\n ; You're accessing the fields incorrectly. It's $this-foo1 (without the second '$'). -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU not found. retry

Re: [PHP] Regular Expression Help

2001-05-22 Thread Christian Reiniger
. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Nothing is more dangerous than an idea if it's the only one you have. - Emil-Auguste Chartier, Propos sur la religion, 1938 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [PHP] include() in a file incuded()

2001-05-21 Thread Christian Reiniger
=onlineview.php3?open=?= rawurlencode ($open) ? instead (i.e. pass $open as parameter to onlineview.php3). -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Those who will not reason, are bigots, those who cannot, are fools, and those who dare not, are slaves. - George Gordon Noel Byron (1788

Re: [PHP] PHP and XHTML

2001-05-21 Thread Christian Reiniger
is going to process the document is a regular browser, the NAME attribute is what matters. Future browsers will have to handle current HTML compatibly. So there is no point in removing the NAME attribute. Why not specify both? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Those

Re: [PHP] comparison operators

2001-05-21 Thread Christian Reiniger
'$filename_type'; and (generally) a phpinfo (); to see what's passed to your script. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Those who will not reason, are bigots, those who cannot, are fools, and those who dare not, are slaves. - George Gordon Noel Byron (1788-1824

Re: [PHP] How to test content encoding?

2001-05-21 Thread Christian Reiniger
On Monday 21 May 2001 08:14, Plutarck wrote: I'm trying to test the gz_handler, among other things, but I have no idea if the output is actually gzip encoded. You could try using wget with a custom Http-Accept-Encoding: header -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc

Re: [PHP] What's wrong with this code?

2001-05-21 Thread Christian Reiniger
(noticed this after trying for ~10 minutes...): Add the s modifier. Otherwise . doesn't match newlines. -- 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

Re: [PHP] What's wrong with this code?

2001-05-21 Thread Christian Reiniger
replacement string.. -- 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] For additional commands, e-mail: [EMAIL PROTECTED] To contact

  1   2   3   4   5   >