Re: [PHP] array question

2001-02-23 Thread Christian Reiniger
On Friday 23 February 2001 17:02, Jeff wrote: > Is there better performance/speed instantiating an array with a > specified size and then adding elements versus adding elements to an > array with no size? Uh, you can't specify the size when instatiating an array ... -- Christian

Re: [PHP]

2001-02-23 Thread Christian Reiniger
On Friday 23 February 2001 19:27, Don Johnson wrote: > Yup. Go figure. > > Don Johnson > > > It works if you execute only the SELECT (without the UPDATE) ? > > > > Christian Reiniger > > LGDC Webmaster (http://sunsite.dk/lgdc/) > > > > On Friday 23

Re: [PHP]

2001-02-23 Thread Christian Reiniger
uery and check the order)? Perhaps you can also post the actual code.. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: [PHP] regex help

2001-02-23 Thread Christian Reiniger
> anyone help me with this? Well, I prefer preg_* :) $mystring = preg_replace ('/<.*/', '', $mystring); -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.ph

Re: RE: [PHP] special characters with perl,mysql,php

2001-02-24 Thread Christian Reiniger
e else already said, addslashes () is the tool of choice for the way in, and for he way out you don't need to do anything. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "The number of Unix installations has grown to 10, with more expected." -- The Unix Program

Re: [PHP] Class methods in PHP

2001-02-24 Thread Christian Reiniger
our question, but I hope that some part of the above answers it... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "The number of Unix installations has grown to 10, with more expected." -- The Unix Programmer's Manual, 2nd Edition, June 1972 -- PHP General

Re: [PHP] isset()

2001-02-24 Thread Christian Reiniger
t set. => isset () should be used. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "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 un

Re: [PHP] isset()

2001-02-25 Thread Christian Reiniger
. > > man, this is like the thread that will not die. isset() will return > true for an empty string, which is not what he wants. the right thing > to do is use > > if((isset($var))&&($var!="")) I never said *only* isset() should be used :) -- Christian Reiniger

Re: [PHP] My system don't store session data, anybody can help me!!

2001-02-26 Thread Christian Reiniger
me > configuration, don't work in my machine, everytime he say 1. Well, you never change $c, so it of course always says 1 -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Printing long strings

2001-02-26 Thread Christian Reiniger
to let the *browser* preserve the string (and not e.g. parse the "<" as start of a tag). htmlentities () ist the function of choice then... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "use the source, luke." (obi-wan gnuobi) -- PHP General Mailing List

Re: [PHP] isset()

2001-02-26 Thread Christian Reiniger
s "is set"? Is it > "introduced to the global namespace"? "introduced to the *current* namespace" -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "use the source, luke." (obi-wan gnuobi) -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Another question about using shmop!

2001-02-28 Thread Christian Reiniger
int of heart. > I can't think of any more, but that's mostly because I consider shared > memory "too tricky for me" and have never played with it... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU not found. retry, abort, ignore? -- PHP General Ma

Re: [PHP] File downloading?

2001-02-28 Thread Christian Reiniger
ned), file() and (my personal favourite) readfile() are the functions of choice -- 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 comma

Re: [PHP] Move a file from dir to another or delete file..?

2001-02-28 Thread Christian Reiniger
the filesystem functions: rename () (or safer: copy()+unlink()) unlink() -- 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: [

Re: [PHP] what is wrong with this sniplet?

2001-02-28 Thread Christian Reiniger
\n\n"; > $mailBody= "Below is the link you can click on, \n\n"; > $mailBody .= "Please Click href=\"www.php.net\">Here to view the request > details"; $mailHeaders = "From: [EMAIL PROTECTED]\n"; > mail($mailTo, $mailSubject, $m

Re: [PHP] multiple databases

2001-02-28 Thread Christian Reiniger
h on a dedicated machine): * Normal data * Session data * evtl. Cached pages / parts > each of which should be able to be backed up to a floppy. Not all If each part fits on a floppy, forget it. For these sizes it'n not worth the effort (and can, in fact, slow down things) -- Christian

Re: [PHP] How to insert time and date into mysql?

2001-02-28 Thread Christian Reiniger
n FROM_UNIXTIME() -- 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 ever has." - Margaret Mead -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] require on compressed files

2001-03-01 Thread Christian Reiniger
just adds unneccessary overhead. If it's some file you don't know the contents of, don't include it (that would mean executing arbitrary code on your server) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think.

Re: [PHP] about include

2001-03-01 Thread Christian Reiniger
path, i.e. /usr/local/apache/htdocs/common.php or /home/httpd/mydomain/common.php Writing include ('phorum/common.php') will work in your setup -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that men do not think. - Adolf Hitler -- PHP General

Re: [PHP] Javascript and Php

2001-03-02 Thread Christian Reiniger
On Thursday 01 March 2001 13:19, you wrote: > I'd like to include an inc file once a button id cliked! You can only request a new page. Period. PHP runs on the server, button clicks are evaluated on the client (browser). -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)

Re: [PHP] Bitwise solution?

2001-03-02 Thread Christian Reiniger
d. Ahhh. You want to use the mcrypt functions or simply crypt() ? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) 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

Re: [PHP] Munging hidden/form variables

2001-03-02 Thread Christian Reiniger
; referer is not from your host then don't process the form. > Of course this can be faked quite easily if this person knows > what (s)he doing. And it would prevent people who don't sent Referrer headers from using the form -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/

Re: [PHP] php and javascript

2001-03-02 Thread Christian Reiniger
On Friday 02 March 2001 06:21, you wrote: > Hello, > > Are there any good examples of producing embedded javascript code in a > php file? sglfjh s -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The use of COBOL cripples the mind; its teaching should, t

Re: [PHP] Help - I can't create jpegs with GD

2001-03-02 Thread Christian Reiniger
t's straight out of the PHP Cookbook. What do I need to tell > them to correct the problem? Depends on what errors you get. "I can't create or manipulate jpegs" isn't particularly helpful... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The use of COBO

Re: [PHP] whats the message count ?

2001-03-02 Thread Christian Reiniger
one, but where are we right now?) Look at the headers of one of the messages. They contain a line of the form X-From_: [EMAIL PROTECTED] The 42156 in there is the message number -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The use of COBOL cripples the mind; its teaching

Re: [PHP] last inserted record

2001-03-03 Thread Christian Reiniger
h this characteristics. Add a primary key. now. Accesses without that will be painfully slow. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "These are the people who proudly call themselves "hackers" -- not as the term is now abused by journalists to mean a computer cr

Re: [PHP] Content-Type: image/gif and send the image in hex

2001-03-04 Thread Christian Reiniger
Write GIF image data to browser > foreach ($img as $val){ > echo $val; > } Try echo pack ('c*', $img); Or if that doesn't work: foreach ($img as $val) { echo pack ('c', $val); } -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...100

Re: [PHP] PHP web based mailing list administrator

2001-03-04 Thread Christian Reiniger
strator in PHP (Tying > > in with some open source mailing list software)? > > Ideally, something like egroups (now groups.yahoo.com). I just want > > to be able to easily administrate (or have other people administrate) > > mailing lists. I have access to my own server (linux

Re: [PHP] NETSCAPE screws up query string : more problems!

2001-03-05 Thread Christian Reiniger
; notice the single quote ' missing. And that WORKED!!! > It displayed the right value in the next PHP page. > Unfortunately there's another problem. it only > DISPLAYED the right value...but when it adds the value > in the database...it adds with the plus + sign. i.e., > it

Re: [PHP] input textfield value cat!

2001-03-05 Thread Christian Reiniger
On Monday 05 March 2001 17:29, you wrote: > I'm using a variable! > > Well, you *still* need to have quotes around it: > >Make sure you have quotes around the value. > > > > -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...to paraphrase

Re: [PHP] passing variable via url

2001-03-05 Thread Christian Reiniger
> > I'm I missing something here ? Check whether register_globals is set to "on" -- 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 corporation

Re: [PHP] Get text between

2001-03-06 Thread Christian Reiniger
variable? Hmm, try preg_match_all ('/]+>([^<]+)<\/a>/', $Subject, $Matches); $Matches [0] [1], $Matches [1] [1], $Matches [2] [1] etc will contain the text afterwards. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power informati

Re: [PHP] speeding a site with lots of includes

2001-03-06 Thread Christian Reiniger
ady done this). Often this can drastically cut down on code size (a cleanup I did recently roughly halved code size) while improving clarity and maintainability -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power information technology puts in our han

Re: [PHP] Sites Using PHP - For a presentation

2001-03-06 Thread Christian Reiniger
rvey/data/index.html might also provide some info, and with http://uptime.netcraft.com/up/graph you can look at some popular sites yourself -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power information technology puts in our hands these days. - Securit

Re: [PHP] exec timing out, want to leave process running in bg

2001-03-07 Thread Christian Reiniger
; source, then you can use this: > > exec("mp3123 -y -Z --all 1>/dev/null/ 2>&1 &"); better add "nohup" to that: exec("nohup mp3123 -y -Z --all 1>/dev/null/ 2>&1 &"); > well that simply puts the stdout and stderr in the > sa

Re: [PHP] Show output of program in realtime on website

2001-01-10 Thread Christian Reiniger
Does anybody know how to realise this? Write a custom browser for this and tell all your visitors to use it. Seriously - you can't control how the browsers buffer the received data, when they render it etc. That said - make sure that PHP output buffering is off -- Christian Reiniger LGDC Web

Re: [PHP] Show output of program in realtime on website

2001-01-10 Thread Christian Reiniger
ot completely mistaken, so there shouldn't be a problem > sleep(1); >} >return; Your compiler should throw an error here - main is declared as "int" but doesn't return a value > } -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Those w

Re: [PHP] looking for a PHP editor

2001-01-10 Thread Christian Reiniger
bligated to use VIM, My personal favourite is fte. Its only problem is that it doesn't have real PHP highlighting, but I got used to switching between HTML and C mode... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Those who will not reason, are bigots, those who cannot,

Re: [PHP] MySQL SELECT performance suggestions

2001-01-10 Thread Christian Reiniger
ws without performing a second > SELECT in this format: look for mysql_num_rows () -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Drink wet cement. Get stoned. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: [PHP] PHP simulator

2001-01-11 Thread Christian Reiniger
t; notebook being too slow :) (granted - that computer here runs on Linux without any GUI, but still...) -- 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 lik

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Christian Reiniger
> > $title > "; One reason why I don't like the "echo" route: I lose the syntax highlighting for the HTML that way. String constants should be highlighted as, well, string constants normally, but when they contain HTML code t

Re: [PHP] Simple form not passing variables, Why??

2001-01-13 Thread Christian Reiniger
On Saturday 13 January 2001 00:36, jeff fitzmyers wrote: > The code below does not work. What could be causing > Please enter user name here: > Pull out your favourite HTML documentation and read again through the discussion of the tag -- Christian Reiniger LGDC Webmas

Re: [PHP] filemtime or getlastmod

2001-01-14 Thread Christian Reiniger
[$i]); Read again through the getlastmod() docs. That function returns the modification time of the *currently executed PHP script*. Use filemtime() instead and it will work -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Install once, run forever. Linux. -- PHP General Mailin

Re: [PHP] regular expression

2001-01-15 Thread Christian Reiniger
7;, '', $Address); // strip leading/trailing whitespace $Address = trim ($Address); // check for basic form return preg_match ('/^[^@]+@[\w-]+(\.[\w-]+)+$/', $Address); } -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Software

Re: [PHP] Check browsers image displaying

2001-01-16 Thread Christian Reiniger
On Tuesday 16 January 2001 09:30, Vlad wrote: > Hi all! > How can I check (in PHP code) if the target browser supports image > displaying or not? PHP manual/misc. functions/get_browser() -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) What luck for the rulers that m

Re: [PHP] How to handle multiple lines in PHP?

2001-01-16 Thread Christian Reiniger
y posted a solution for this (complete, working source code) some time ago. Here it is: Date: Fri, 5 Jan 2001 18:08:51 +0100 -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt that a small group of thoughtful, committed people can change the world... Indeed, it&#x

Re: [PHP] Question concerning performance

2001-01-17 Thread Christian Reiniger
eky in th 0.1% range. Look at bigger optimizations first, then benchmark and if it still is too slow (and only then) optimize further. -- 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&

Re: [PHP] preg_replace pain!

2001-01-18 Thread Christian Reiniger
ove works for: > [b]bold text[/b] > > But does not work for: > [b]bold text > w/ newline[/b] add a "s" modifier to the expression and => $pattern = "/\[b\](.*)\[\/b\]/Uis"; -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)

Re: [PHP] a text formating & cpu question

2001-01-19 Thread Christian Reiniger
On Thursday 18 January 2001 23:05, Noel Akins wrote: > Question 2: > Is there a way for php to detect the cpu speed of a users computer? If you're on a Linux machine you can read /proc/cpuinfo and pick out the speed entry. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lg

Re: [PHP] Search Engines and PHP

2001-01-23 Thread Christian Reiniger
the heck do you build a dynamic site without URL variables, > cookies, or POST variables? Search phpbuilder.com for an article called "Writing dynamic pages with search engines in mind" or so. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) This is JohnC IMHO, I compair

Re: [PHP] Newbie frustration!

2001-01-24 Thread Christian Reiniger
; ?> > > http://mysite.com/Yarns/"> Yarns Read http://www.phpbuilder.com/columns/tim19990117.php3 Basically you create "virtual directories", e.g. a PHP script named "Yarns" which simply include()s your one "real" script. -- Christian Reiniger LGDC Webm

Re: [PHP] file or fopen to fetch a web page???

2001-01-24 Thread Christian Reiniger
27;, file($url)); > > Probably about the same either way... Perhaps. In an earlier version of PHP I had a problem where the above code (fopen...) read *more* than the page length. I.e. the page was e.g. 20k big and the fread appended ~5k of junk to it. -- Christian Reiniger LGDC We

Re: WG: [PHP] Shared Memory with Yast-installed mod_php4 from SuSE.

2001-01-24 Thread Christian Reiniger
got the --with-apxs switch to ./configure Also , try doing a strip --strip-unneeded libphp4.so afterwards -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offence. - Edsger W. Dijkstra

Re: [PHP] Splitting at word count

2001-01-26 Thread Christian Reiniger
On Thursday 25 January 2001 21:06, H. Wade Minter wrote: > Does anyone have a good idea on how to split after a certain number of > words? Attached is code that semi-intelligently limits strings to a certain number of characters. Perhaps that helps you. -- Christian Reiniger LGDC Web

Re: [PHP] Get rid of da Zero's

2001-01-26 Thread Christian Reiniger
floating-point value instead of as string) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "use the source, luke." (obi-wan gnuobi) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] array size

2001-01-26 Thread Christian Reiniger
On Friday 26 January 2001 22:35, Giancarlo wrote: > > how many elements i can insert in an array? > thank you! I'd say up to 2^31 or until your memory is full (which is likely to occur earlier) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Even idiots can ha

Re: [PHP] updating time fields

2001-01-26 Thread Christian Reiniger
" => MySQL already provides functions for that. -- 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 PR

Re: [PHP] phpinfo ?

2001-01-27 Thread Christian Reiniger
, and *then* you echo the returnvalue of phpinfo () (an integer). So the output generated by your version will have some little number at the end. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) (A)bort (R)etry (P)retend this never happened ... -- PHP General Mailing

Re: [PHP] Apache

2001-01-29 Thread Christian Reiniger
> include the filename. It does, except it does not?? > 3. How can I turn on directory browsing? I am receiving a Forbidden > error whenever there isn't a default document in a directory. search for "Options " in your apache configs and add an "Inexes" to

Re: [PHP] Sending Download Header

2001-01-30 Thread Christian Reiniger
h octect > stream ? will they turn up right ? Usually yes, but you should use the proper MIME type for them (image/jpeg, image/png, image/gif etc) just to be sure -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "World domination. Fast." (Linus Torvalds about Linux

Re: [PHP] email headers!

2001-01-30 Thread Christian Reiniger
mply too intelligent - it recognizes that all addresses are the same and only sends it once :) Usually this is desired behavior -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "World domination. Fast." (Linus Torvalds about Linux) -- PHP General Mailing List (http://w

Re: [PHP] PC<->Mac

2001-01-31 Thread Christian Reiniger
On Tuesday 30 January 2001 17:26, Markus H. Maussner wrote: > is there a PHP function wich translates from Mac to PC ? Look for the "Recode" extension -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...to paraphrase Churchill, while representative democracy ma

Re: [PHP] Can you do this

2001-01-31 Thread Christian Reiniger
of $modifiedVariable. What about using normal pass-by-value and returning the result? function MyFunc ($SomeVal) { $SomeVal += 42; return $SomeVal; } echo MyFunc ($StrangeVal); Anyway - functions that get their parameters by reference and modify them can cause much trouble, so better b

Re: [PHP] What is "foo"?

2001-01-31 Thread Christian Reiniger
On Wednesday 31 January 2001 19:35, SED wrote: > Probably some of you are laughing while reading this :) But I have seen > the word "foo" used so many time (in programming) from different Read http://www.tuxedo.org/~esr/jargon/html/entry/foo.html for a detailed explanation :

Re: [PHP] Include " quotes inside textbox

2001-02-02 Thread Christian Reiniger
> link I'm passing - basically the HTML for the text box is getting > parsed together with the HTML for the passed link and the results > are messed up. I think you want to use htmlentities (): echo "" . htmlentities ($Content) . ""; -- Christian Reinig

Re: [PHP] Why?? SPRINTF("SELECT sequence,prodnum,childdesc....);

2001-02-02 Thread Christian Reiniger
On Thursday 01 February 2001 23:40, Karl J. Stubsjoen wrote: > What is the purpose of the SPRINTF in this instance? > > > SPRINTF("SELECT > equence,prodnum,childdesc,onhand,openorders,avlallocate,bakorder,webpri >cing FROM prodaval"); There isn't any. Remove

Re: [PHP] Re:What version of Linux?

2001-02-02 Thread Christian Reiniger
tely suffices :) The most important thing here should be to *not* install a GUI, simply because nobody will sit at that machine anyway and running GUIs consume too much of your precious RAM. SuSE, Debian or perhaps Red Hat should be fine for this. -- Christian Reiniger LGDC Webmaster (http://

Re: [PHP] configuring headers in mail() ...

2001-02-02 Thread Christian Reiniger
TED['from_email'] . >'>'; Your problem here is that $POSTED['from_email'] is "[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>" instead of "[EMAIL PROTECTED]" Also note that "mailto:" is a HTML-ism and has no place in mail

Re: [PHP] Tab character

2001-02-02 Thread Christian Reiniger
On Friday 02 February 2001 12:24, Martin A. Marques wrote: [\t is tab?] > > > yes (depending) > > > > On what? > > It depends on the charset you use. No. the return value of ord('\t') may differ depending on the charset, but '\t' itself always is

Re: [PHP] Future plans (4.1) ?

2001-02-02 Thread Christian Reiniger
> property that starts with an _underscore should be considered a private > property, and one would hope that your UML tool could be configured to > understand that. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of about 142,000,000 for e. Search

Re: [PHP] Re:What version of Linux?

2001-02-03 Thread Christian Reiniger
rowser requires more resources than a apache+PHP+mysql in such a scenario. And don't forget that you have to sit in front of the development (client) box all day and getting a decent graphics card for a 486 is *hard* -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) A - Amer

Re: [PHP] select prob.

2001-02-03 Thread Christian Reiniger
ntry'] == "Select your country" etc -- 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 ever has." - Margaret Mead -- PHP General Mailing List (h

Re: [PHP] Querying MySQL using 'AND' / 'OR'

2001-02-03 Thread Christian Reiniger
mply use brackets to specify the evaluation order: SELECT * FROM table WHERE (username = '$username' AND password = '$password') AND (site = 'theirsite' OR site = 'all') -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt

Re: [PHP] Problem compilieng PHP4

2001-02-03 Thread Christian Reiniger
.h /usr/include/linux/errno.h If not, install the kernel-headers or kernel-source package -- 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 ever has.&

Re: [PHP] CGI vs PHP

2001-02-04 Thread Christian Reiniger
nt - CGI is an interface specification, PHP is a programming language. You can use PHP via CGI :) -- 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 ever has.&q

Re: Fw: [PHP] Problem compiling PHP4 Nr. 2

2001-02-04 Thread Christian Reiniger
On Saturday 03 February 2001 22:03, Thomas Weber wrote: > I have solved the problem. But now i have another problem: > > Look at this screenshot: http://electic.hn.org/tunix.gif The webserver doesn't send a proper Content-Type: Header. -- Christian Reiniger LGDC Webmaster (htt

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Christian Reiniger
t;one" => "value", "two" => "value"]); foo () is declared to take a reference to a variable. This only works with "real" variables, not the temporary ones returned from array() etc. Modify it to function foo ($hash) { and it will work -- C

Re: [PHP] Re:What version of Linux?

2001-02-04 Thread Christian Reiniger
seconds, plus 1-1.5s for DB queries, output generation etc (yes, I do cache such heavy pages. just took that as example) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Never doubt that a small group of thoughtful, committed people can change the world... Indeed, i

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Christian Reiniger
much assume you don't), use normal pass-by-value. In PHP4 that's just as fast as pass-by-reference (read http://www.zend.com/zend/art/ref-count.php) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The most exciting phrase to hear in science, the one that heralds new d

Re: [PHP] Replacing A Word in HTML page

2001-02-04 Thread Christian Reiniger
On Sunday 04 February 2001 19:23, phpLover wrote: > Thanks for your answerm but what does eregi_replace() do? Exactly the thing that's written in the documentation for it :) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The most exciting phrase to hear in science,

Re: [PHP] Email Selected Data

2001-02-04 Thread Christian Reiniger
e documentation for "printf". You want to use sprintf() here. -- 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 As

Re: [PHP] PHP hosting - the final frontier.

2001-02-04 Thread Christian Reiniger
while he's on holiday for 3 weeks, who cares? (Sorry Rasmus :) If some machine at a hosting company shows glitches while the only admin is sick, things will be very bad for the hosted people/companies. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The most exciting p

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Christian Reiniger
#x27; => [http://www.google.com/'], > img(['src' => > 'http://www.google.com/images/title_homepage4.gif', 'alt' => 'Visit > Google!', 'border' => '0']) > ); > > */ So it basically boils

Re: [PHP] attempt to use an empty IV with mcrypt

2001-02-05 Thread Christian Reiniger
ted_data = mcrypt_ecb (MCRYPT_TWOFISH, $key, $input, > MCRYPT_ENCRYPT); > > print "The CypherText in TWOFISH ECB is ".bin2hex > ($encrypted_data)."\n"; > > $encrypted_data = mcrypt_cbc (MCRYPT_TWOFISH, $key, $input, > MCRYPT_ENCRYPT); > > print "

Re: [PHP] please help (network admin via web)

2001-02-05 Thread Christian Reiniger
setting via web using PHP scripts. I am working on > RedHat 6.2 using apache as my web server. Perhapy Webmin could help you? http://www.webmin.com/webmin/ -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power information technology puts in our h

Re: [PHP] manage number of rows displayed

2001-02-05 Thread Christian Reiniger
o it in PHP), and now want to know how to change the settings of X. Correct? -- 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 we

Re: [PHP] Breaking up a line and using the text?

2001-02-05 Thread Christian Reiniger
> > Hi > > My > > Names > > is > > Sam Rose -- 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...&q

Re: [PHP] Making a object from one class available to all objects in the calling class

2001-02-05 Thread Christian Reiniger
x { $this->n = new $y; } function z { $this->n->test(); } var n; } -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) The most exciting phrase to hear in science, the one that heralds new discoveries, is not "E

Re: [PHP] include files

2001-02-05 Thread Christian Reiniger
> I tried various versions of ../ and ../../ without success. Set the include_patz in php.ini and include everything relative to that path -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) (A)bort (R)etry (P)retend this never happened ... -- PHP General Mailing List (http://www

Re: [PHP] simple config. question

2001-02-05 Thread Christian Reiniger
Perhaps a more "generous" setup would be even better though: AddType application/x-httpd-php .html .htm .php3 .php .phtml -- 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/

Re: [PHP] Automating tasks in PHP?

2001-02-05 Thread Christian Reiniger
to send out an email > automatically, once a week, as a newsletter, based on data / criteria > from a database? Somehow this question comes up about once a day. Search the ML archives for "cron" -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) (A)bort (R)etry (P)retend thi

Re: [PHP] last inserted record

2001-03-08 Thread Christian Reiniger
a table with this characteristics. > > Add a primary key. now. Accesses without that will be painfully slow. -- 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

Re: [PHP] Regex Masters: Please inspect this regex- Pulling urls out of page

2001-03-08 Thread Christian Reiniger
.\/~\?%=\-]|&)+)'; $FTPPath = '(\/[^\/\s]*)*\/?'; $Port = '(:\d+)?'; $HTTPURL = 'http:\/\/' . $Host . $Port . $HTTPPath; $WWWAddress = 'www\.' . $HostName . $Port . $HTTPPath; $FTPURL = 'ftp:\/\/'

Re: [PHP] last inserted record

2001-03-08 Thread Christian Reiniger
id() if possible. > http://www.php.net/manual/en/function.mysql-insert-id.php Which however only works (1) with autoincrement keys and (2) for the last insert you did using the same mysql connection, i.e. if you do an insert in foo.php, mysql_insert_id () won't show anything in bar.php --

Re: [PHP] Sessions Kill all

2001-03-08 Thread Christian Reiniger
On Thursday 08 March 2001 03:45, you wrote: > Is there a way as a server admin to kill all sessions to a site. I > need a way to logout all members to a site. Well, usually you'd keep the session data in a database, so you can just empty the sessioninfo table. -- Christian Re

Re: [PHP] need help w/ Split()

2001-03-08 Thread Christian Reiniger
t's taken as literal asterisk in there. try preg_split("/([\,\;]\s*)|(\s+)/", $input_list); i.e. "either (',' or ';' eventually followed by spaces) or (at least one space)" -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010

Re: [PHP] weeks

2001-03-08 Thread Christian Reiniger
EK(NOW())) this will have the problem that it will show all of week X even if you're on 23:55 on the last day of that week WHERE ((yourtimefield >= NOW()) AND (yourtimefield <= DATE_ADD(NOW(), INTERVAL 1 WEEK)) might be better -- Christian Reiniger LGDC Webmaster (http://sunsit

Re: [PHP] Sessions Kill all

2001-03-08 Thread Christian Reiniger
On Thursday 08 March 2001 07:17, you wrote: > Does anybody know where I could get more info on storing session data > in a database rather than the default way? Hmm, perhaps phpbuilder.com has an article on it. Alternatively I could send you some of my code -- Christian Reinige

Re: [PHP] Classes and Kernel CPU Load?

2001-03-10 Thread Christian Reiniger
could cause an immense increase in Kernel CPU Load? Try removing more stuff to narrow things down a bit. -- 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&

Re: [PHP] MySQL problem - stumped

2001-03-10 Thread Christian Reiniger
lt); > > And here is the output: > Errors: > Warning: Supplied argument is not a valid MySQL-Link resource in > //*//**..***/db.php on line 147 > > Line 147, is the last line in the above snippet. I cleared out the > path name for security, no offense intended :) This one? > $rows

<    1   2   3   4   5   >