Re: [PHP] Can't redeclare already declared function

2001-04-12 Thread Christian Reiniger
cluded by the files it is included from. Sounds complicated because it *is* complicated. It's much better to let each module include_once() everything it depends on. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "These are the people who proudly call themselves "hack

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

2001-04-13 Thread Christian Reiniger
t B (ftp access 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 Uni

Re: [PHP] Easy News Script

2001-04-13 Thread Christian Reiniger
eed to use the unix timestamp function in mysql. 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

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

2001-04-13 Thread Christian Reiniger
le(list($key, $val) = each($HTTP_SESSION_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

Re: [PHP] Passing Array through URL

2001-06-19 Thread Christian Reiniger
like serialize, 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] 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 c

Re: [PHP] List of included file names.

2001-06-20 Thread Christian Reiniger
resubmit the question. -- 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 admin

Re: [PHP] General Coding Question

2001-06-21 Thread Christian Reiniger
t a flamewar. > > dont use " then. why not use ' ? > > echo " > >" > > echo " > >" > I like the second. it is proper html check it with w3.org. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Nev

Re: [PHP] Help with simple regular expression

2001-06-25 Thread Christian Reiniger
7;t stop at the greater-than sign. It should be simple thing but > > I'm stumped! Greedy means: it tries to match as much as possible. In your case it matches "" - a string starting with "" :) -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) This is

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

2001-06-27 Thread Christian Reiniger
backslashes so they don't appear 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 tha

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

2001-06-28 Thread Christian Reiniger
Try using 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

Re: [PHP] Pricing Advice Needed

2001-06-29 Thread Christian Reiniger
maller than 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 cod

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

2001-06-29 Thread Christian Reiniger
t;entities".. Why don't you simply use addslashes () again 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

Re: [PHP] how to determine size of gz-handler output

2001-07-01 Thread Christian Reiniger
() should perform identical (compression ratio - wise) to ob_gzhandler. So a $PageZ = gzencode ($Page); $PL = strlen ($Page); $PLZ = strlen ($PageZ); echo "Uncompressed : $PL"; echo "Compressed: $PLZ"; echo "Ratio: " . ($PLZ / $PL) . ""; should do the job at the c

Re: [PHP] new break tags

2001-07-01 Thread Christian Reiniger
xt", $parts) right? As "/" is the pattern delimiter this of course won't work. Solution: Escape it: $breaks=preg_match_all("/\s+/i", "$text", $parts) Improved Solution: Make it more flexible: $breaks=preg_match_all("/\s+/i", "$text", $parts) Tha

Re: [PHP] Stopping stolen / spoofed / linked sessions

2001-07-01 Thread Christian Reiniger
op the transmitted SessionID stuff, he would have to use it *before* the real user clicks on another link (because than the ID would be changed again). Still has some holes, but should catch most attacks. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) void sleep(){for(long i

Re: [PHP] Printing a string issue

2001-07-01 Thread Christian Reiniger
ot;\">Office"); > > Although I can't get this to parse! Use the string concatenation operator '.' : print ("Office"); -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) void sleep(){for(long int sheep=0;!asleep();sheep++);} -- PHP General

Re: [PHP] shtml includes

2001-07-03 Thread Christian Reiniger
server a constant chore. [...] > so > becomes > > easy. the bad bit is that you've got to then go and rename each > extension .php instead of .txt, but you are going to have this problem No need to rename them. They're only accessed via include(), so PHP parses them

Re: [PHP] setcookie problem

2001-07-03 Thread Christian Reiniger
imit is 2^31 seconds (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 Mailin

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

2001-07-03 Thread Christian Reiniger
ected" > > Any ideas on how to do 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

Re: [PHP] Troubleshooting syntax ?

2001-07-04 Thread Christian Reiniger
e, hopefully catching the problem? http://validator.w3c.org/ -- 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.

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

Re: [PHP] Security of PHP code

2001-07-04 Thread Christian Reiniger
. > > For example = 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.

Re: [PHP] Number of the line ?

2001-07-06 Thread Christian Reiniger
uot;; > 3 echo "i'm on line $NUMBER_LINE\n"; echo "I'm 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 Maili

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

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

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

2001-07-10 Thread Christian Reiniger
e, employ 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 cl

Re: [PHP] regex questions

2001-07-10 Thread Christian Reiniger
he number at the end, and not just append > 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

Re: [PHP] What the heck is this

2001-07-11 Thread Christian Reiniger
t; > To: "Adam" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Wednesday, 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: > > >

Re: [PHP] Array problem in PHP. Please help.

2001-07-12 Thread Christian Reiniger
rcArray as $Foo) { foreach (array_keys ($Foo) as $Key) { $DestArray [$Key] = $Foo [$Key]; } } $DestArray should be what you want after this treatment... -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) "Never doubt that a small group of thoughtf

Re: [PHP] lack of error

2001-07-16 Thread Christian Reiniger
ere to start. any one got an idea what may cause such? > here is the url you can try it. > > http://www.hvacsites.com/SiteBuilder/logo.php?tmpcolor=_dred&logo_text= >sdfdsdfasfd&logo_style=1 Works fine for me -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) "

Re: [PHP] HTML in XML???

2001-07-19 Thread Christian Reiniger
a HTML tag. > But I think my solution is very stupid. This should work: -- 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 co

Re: [PHP] Email Software

2001-07-19 Thread Christian Reiniger
cheapest way to make 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,

Re: [PHP] Single Digit in Double digit column

2001-07-23 Thread Christian Reiniger
uble digit id are displayd. 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. -- Christia

Re: [PHP] Turning a filehandle into an array

2001-07-24 Thread Christian Reiniger
gt; > exec("ls $dir", $ls); re-read the manual 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 cl

Re: [PHP] Headers

2001-07-25 Thread Christian Reiniger
e browser. Read some HTTP intro. Regarding your problem - have a look into sessions. they might be what you want. -- 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:

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

2001-07-26 Thread Christian Reiniger
//foo.bar/yourscript.php?location=xy';delete+from+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 t

Re: [PHP] IE -> View Source

2001-07-26 Thread Christian Reiniger
e any > webpage that would truly have 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 W

Re: [PHP] Re: HTTP header question.

2001-07-29 Thread Christian Reiniger
the browser. Wrong way for what you want to do. 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 in

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 mi

Re: [PHP] ? about PHP includes

2001-08-03 Thread Christian Reiniger
he specified numbers of characters. So 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

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 R

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

2001-08-06 Thread Christian Reiniger
7=20; > $high_1998=18; > $high_1999=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

Re: [PHP] Apache Directives

2001-08-09 Thread Christian Reiniger
gt; PerlHandler somehandler::foo > > > now anything that access /login/salkdfjaslkjf gets redirected executed > through somehandler::foo ForceType application/x-httpd-php Now /login* URLs execute the PHP script "/login", which gets the complete URI as $REQUEST

Re: [PHP] subroutines?

2001-08-09 Thread Christian Reiniger
t results for SEARCH, > print 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 R

Re: [PHP] require using url

2001-08-09 Thread Christian Reiniger
://host.server.com/functions.php";); That means your server does 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/) &quo

Re: [PHP] Classes and performance bottlenecks

2001-08-14 Thread Christian Reiniger
I disagree. Aftre the first 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 (

Re: [PHP] header function

2001-08-21 Thread Christian Reiniger
er ("Location: http://your.server.us/index.php";); > and have it hit 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 Webmas

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

2001-08-21 Thread Christian Reiniger
$execretval); Uncompressing should not take that much time. And you can speed it up 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 Reini

Re: [PHP] Strings with Spaces in URLS

2001-08-22 Thread Christian Reiniger
t all words after the first space. http://php.net/urlencode http://php.net/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 Li

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

2001-08-23 Thread Christian Reiniger
( $fp ); > > "Niklas lampén" <[EMAIL PROTECTED]> ? > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Use $fp = fopen($file, "r+"); -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Install once, run forever. Linux. -- PHP G

Re: [PHP] Script timeout

2001-08-23 Thread Christian Reiniger
P timeout, i.e. either Apache or the browser 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

Re: [PHP] HTTP headers and include()

2001-08-23 Thread Christian Reiniger
e the > two test files I've been using to try 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

Re: [PHP] sizeof(int)

2001-08-27 Thread Christian Reiniger
on that platform. 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 scien

Re: [PHP] script preprocessor?

2001-08-29 Thread Christian Reiniger
and replacement of an error handler 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 th

Re: Re: [PHP] script preprocessor?

2001-08-30 Thread Christian Reiniger
. if (FOOBAR == 42) { include ("code1.php"); } else { include ("code2.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 PROTECT

Re: [PHP] fgets

2001-08-30 Thread Christian Reiniger
ot;); // or image/png > // ALL GOOD - SEND IT TO THE BROWSER > fpassthru( $im ); > } > 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 uns

Re: [PHP] The future of PHP

2001-09-01 Thread Christian Reiniger
this... (3) http://php.net/usage.php Period. Marketing really isn't the most important thing to do :) Conclusion: PHP's future looks bright, everyone is working hard to make it even brighter, and we all can dance happily around on the flowery meadows (except when working of course :

Re: [PHP] 304 Not Modified

2001-09-06 Thread Christian Reiniger
page, else I see a new page > (correct behaviour). > Why I always get a blank page and not the cached page? (see other responses) -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) /* you are not expected to understand this */ - from the UNIX V6 kernel source * License

Re: [PHP] 304 Not Modified

2001-09-06 Thread Christian Reiniger
$last_access) > > > { > > > header("304 Not Modified); > > > exit; > > > } > > > else > > > { > > > /* code genertating the new page */ > > > } -- Christian Reiniger LGDC Webmaster (http://lg

Re: [PHP] Releasing Your Code

2001-09-07 Thread Christian Reiniger
) > 11) MySQL Question: When having people install your PHP app and it > needs its own MySQL database with custom table structure, what is the > best instructions to tell idiots how to do it? Give 'em a sql script to execute. mysqldump --add-drop-table --no-data dbname >dbname.s

Re: [PHP] Sterilize user input function

2001-09-09 Thread Christian Reiniger
mean http://php.net/addslashes I 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..."

Re: [PHP] Stripslashes question.

2001-09-11 Thread Christian Reiniger
On Monday 10 September 2001 23:57, Sean C. McCarthy wrote: > Hi, > > Didn't help. I tried it before that is why I tried with addcslashes. Not addcslashes. addslashes. Note the missing "c" -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Nothing is more d

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

2001-09-14 Thread Christian Reiniger
, while include could handle variable ones. What you mean 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 - an

Re: [PHP] Can someone help me parse XML? - Challenge

2001-09-18 Thread Christian Reiniger
in PHP. The perl file 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 clien

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

2001-09-19 Thread Christian Reiniger
re's nothing new / 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

Re: [PHP] Search in Progress

2001-09-23 Thread Christian Reiniger
e and look at the info in the upper right corner 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

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

2001-09-23 Thread Christian Reiniger
ement01","element02"); > $myarray[1] = array("element10", "element11","element12"); > $myarray[2] = array("element20", "element21","element22"); > > You would refrence "element11" by > $myarray[1][1]; Congrat

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_REFERER"; > echo "Error Link: $PHP_SELF"; > ?> Try $REQUEST_UR

Re: [PHP] 404 error

2001-09-24 Thread Christian Reiniger
ems to work after 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"); e

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

2001-09-24 Thread Christian Reiniger
doesn't even have single-dimensional arrays (because all arrays 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.ne

Re: [PHP] 404 error

2001-09-24 Thread Christian Reiniger
ends back an html 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 claus

Re: [PHP] Feature?

2001-09-25 Thread Christian Reiniger
ar2'=>10); > I want to pass value to only one or more but not to all params. Also > this will make the code clearer I think. Comments are welcome! You can emulate this with arrays: $bar = foo (array ('par2' => 10)); -- Christian Reiniger LGDC Webmaster (http://lgdc.suns

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

Re: [PHP] handling errors

2001-09-27 Thread Christian Reiniger
ones), like the one shown above, where errors are unavoidable and normal. For these cases the @ operator is the right thing. Generally you're right though - error reporting should be set to E_ALL and reasons of avoidable errors/warnings should be eliminated. -- Christian Reiniger LGDC Webma

Re: [PHP] handling errors

2001-09-27 Thread Christian Reiniger
. So... in that case... Don't use @, but check the syntax of > the variable you want 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.S

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

<    1   2   3   4   5   >