Re: [PHP] multiple databases

2001-02-28 Thread Christian Reiniger
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 Reiniger LGDC Webmaster

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

2001-02-28 Thread Christian Reiniger
() -- 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/) To unsubscribe, e-ma

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

2001-02-26 Thread Christian Reiniger
tion, 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/) To unsubscribe, e-mail: [E

Re: [PHP] Printing long strings

2001-02-26 Thread Christian Reiniger
nd 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 (http://www.php.net/) To unsubscribe, e-mail: [E

Re: [PHP] isset()

2001-02-26 Thread Christian Reiniger
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 unsubscribe, e-mai

Re: [PHP] Class methods in PHP

2001-02-24 Thread Christian Reiniger
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 Mailing

Re: [PHP] isset()

2001-02-24 Thread Christian Reiniger
. -- 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: [PHP] Parsing a string

2001-02-23 Thread Christian Reiniger
On Friday 23 February 2001 15:46, Hardy Merrill wrote: Look up the "split" and "explode" functions - they both do basically the same thing. $token_list = split(",", $string_to_parse); .. and if that doesn't suffice I can send you a nice'n'powerful CSV p

Re: [PHP] MySQL execution order?

2001-02-23 Thread Christian Reiniger
') UPDATE LOW_PRIORITY db_table SET DownloadedDateTime=CURRENT_TIMESTAMP WHERE (DownloadedDateTime = '-00-00 00:00:00') -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net

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 Reiniger LGDC

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 February 2001 16:57, Don Johnson wrote: Yup, the data's

Re: [PHP] no subject

2001-02-23 Thread Christian Reiniger
)? 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 additional commands, e-mail: [EMAIL

Re: [PHP] regex help

2001-02-23 Thread Christian Reiniger
his? Well, I prefer preg_* :) $mystring = preg_replace ('/.*/', '', $mystring); -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Displaying an image, that is pulled from a DB, inline

2001-02-22 Thread Christian Reiniger
On Wednesday 21 February 2001 17:09, Chris Lee wrote: dspimage.inc ?php [...] index.php ?php echo " img src='include/dspimage.inc?product_id=123456' "; ? Note: better name that to dspimage.php, as webservers typically don't execute *.inc -- Christian Rei

Re: [PHP] Warning: page expired and cache-control header

2001-02-22 Thread Christian Reiniger
n practice proxies won't cache results of POST queries, but it's still a big security hole (never trust programs you don't admin yourself) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God - and she was black. -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Print in html ?

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

Re: [PHP] Generating percentages of numbers

2001-02-22 Thread Christian Reiniger
% PAGE 3: 25% Or is their a process by which to store numbers for easily getting this to work? SELECT (hitcount / 1000) * 100 AS percentage FROM sometable Better (if it works): SELECT (hitcount / MAX(hitcount)) * 100 AS percentage FROM sometable -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] String manipulation with ereg_replace

2001-02-22 Thread Christian Reiniger
strtolower('\\1') . '.gif'", $contents); ? simpler that "/([-_a-zA-Z0-9]+)\.gif/e" is "/([-\w]+)\.gif/e" -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds. - http://www.google

Re: [PHP] Arrays -- How do I insert a pair of data into an array

2001-02-22 Thread Christian Reiniger
hen I want to output the array I can reference it like so: echo("$array[$i]["course_num"] $array[$i]["course_title"]"); Change this to echo ("{$array[$i]['course_num']} {$array[$i]['course_title']}"); -- Christian Reiniger LGDC Webmaster (http://sunsi

Re: [PHP] Deleting mySql records based on dates

2001-02-21 Thread Christian Reiniger
limit($day_limit) $limit = bcsub($time,$difference); $sql = mysql_query("delete from table where date='".$limit."'", $dbh); Eeeek. Have a look at the Mysql manual sometime soon! $sql = mysql_query("delete from table where datefield = DATE_SUB(NOW(), INTERVAL $days DAY

Re: [PHP] Libraries

2001-02-20 Thread Christian Reiniger
at someone invested quite some work into making it as powerful and bug-free as possible (that includes things like having really researched the RFCs for e.g. that popular mail class etc). -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Drink wet cement. Get stoned. -- PHP Gener

Re: [PHP] system()

2001-02-19 Thread Christian Reiniger
o change their selection, they can go ahead and pick other songs, and click Play again - THIS is where the previous instance of the 'amp' program should be killed, and a new one started, with the new play list queued. And of course, it should also have a Stop button on the page somewhere. -

Re: [PHP] system()

2001-02-19 Thread Christian Reiniger
s process id. Then he can do a $AmpPID = system ("launchamp $Arg"); (the wrapper would have to execute "nohup amp $Args ") and add a 'stop' link a href="ampstop.php?pid=?= $AmpPID ?"Stop/a And ampstop.php can do a system ("kill -KILL $pid"

Re: [PHP] How to determine the parameter is a 1 dimension array or not?

2001-02-19 Thread Christian Reiniger
at the same time. Example: $WeirdDArray = array ('1dim' = 'Hello man', '2dim' = array ('Hello', 'man') '1d2' = 42); So it depends on what you mean with "2-dimensional"... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)

Re: [PHP] REGEX prob

2001-02-18 Thread Christian Reiniger
my cache file ... Ah, yes. str_replace and eregi_replace don't modify the string - they return a modified string. That means you have to do a $html_code = eregi_replace (..., $html_code); -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) A - American Association Against Acronym

Re: [PHP] array - too stupid

2001-02-18 Thread Christian Reiniger
= serialize($tempItem); Just $tempitem = serialize($myarray); will work fine. c) store it in mysql-table and i get my array back with d) $myItems = explode("",unserialize($myValueFromDB)); $myItems = unserialize ($myValueFromDB); -- Christian Reiniger LGDC Webmaster (http://sunsi

Re: [PHP] Finding the? in $REQUEST_URI?page=blah

2001-02-17 Thread Christian Reiniger
the following format: scriptname?parameter1=value1[parameter2=val2[...]] Two '?' in an URL are strange at best. So change that to $ErrorURL = 'error.php?page=' . rawurlencode ('/pages/login.phpusername=name'); /pages/login.php $HTTP_GET_VARS['page'] -- Christian Reiniger LGDC Webmaster (http

Re: [PHP] Can I select only the newest record?

2001-02-17 Thread Christian Reiniger
SC LIMIT 1 a timestamp field in MySQL is by default automatically set to NOW() at each INSERT and UPDATE if you don't set it yourself in the query. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Drink wet cement. Get stoned. -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Stylesheets

2001-02-17 Thread Christian Reiniger
javascript turned of? Netscape4 only interprets CSS if javascript is enabled. -- 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-mail

Re: [PHP] Removing Whitespace

2001-02-17 Thread Christian Reiniger
our_string = preg_replace('/\s/',"",$your_string); Hi, Does anyone know of the code to remove all whitespace from a string. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Software is like sex: the best is for free" -- Linus Torvalds -- PHP General Ma

Re: [PHP] REGEX prob

2001-02-17 Thread Christian Reiniger
ace doesn't know about regular expressions, so it tries to find the literal string "flag=[0-9]{9}PHPSESSID=[[:alnum:]]{32}" in your URL - which it doesn't find. Use eregi_replace instead -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Software is like sex: the best i

Re: [PHP] How to transfer 2.2864849511949E+190 to a normal-human-readable number?

2001-02-16 Thread Christian Reiniger
on is simpler... PS: The long number is, scientifically seen, also *less* correct than the 'E' form - the 'E' form states that it is a number with a precision of 16 digits, while the long one implies that it has a precision of 190 digits (which is definitely wrong). -- Christian Reiniger LGD

Re: [PHP] MySQL COUNT Won't Work

2001-02-16 Thread Christian Reiniger
y. $sql = "SELECT COUNT (title) FROM music"; I found that often MySQL doesn't like if there's a space between the function name and the opening bracket, i.e. try writing "COUNT(title)" instead of "COUNT (title)". -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/

Re: [PHP] Where is Regex List of Operators?

2001-02-16 Thread Christian Reiniger
e Perl regexp syntax. -- 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: [E

Re: [PHP] need better solution

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

Re: [PHP] Array question

2001-02-15 Thread Christian Reiniger
s or trees, which don't store data at "fixed positions" (that's a very bad explanation, but, well...) The "index" is the "key" in this case - in your example it's "something". -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God ---

Re: [PHP] A little code here? :)

2001-02-15 Thread Christian Reiniger
one myself but Im not the best at ereg or replace code... nl2br () is the simple solution (as others already mentioned). Attached is a more sophisticated one I use in my code. It detects paragraphs (empty lines), and highlights URLs and email adresses. -- Christian Reiniger LGDC Webmaster (http://

Re: [PHP] php vs perl

2001-02-15 Thread Christian Reiniger
On Thursday 15 February 2001 08:03, Scott Mebberson wrote: When Jason says 'especially when your note using the cgi' he means the cgi version of PHP (I think) in preference to installing PHP as an apache module. ...just as using mod_perl is better than perl as CGI -- Christian Reiniger LGDC

Re: [PHP] Oracle Web Php

2001-02-14 Thread Christian Reiniger
On Wednesday 14 February 2001 11:44, kaab kaoutar wrote: is there a possiblily to use with in an Oracle Web server ? RTFM (look at the manual, topic "Oracle functions") -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Even idiots can handle computers, and many d

Re: [PHP] @ Scope

2001-02-14 Thread Christian Reiniger
nection_id) { # error messaging supressed @odbc_close($connection_id); } Huh? When you call CloseODBC (), the code in that function is executed - and there odbc_close() is called with the "@" - so it doesn't report an error. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgd

Re: [PHP] Qoute problem

2001-02-14 Thread Christian Reiniger
The addslashes () here properly escapes the quotes in your string, so that the SQL parser can interpret it correctly. -- 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-mai

Re: [PHP] intput type=\file\ .....

2001-02-14 Thread Christian Reiniger
tes (print ("Value=\"C:\test.gif\"");) ? Then you need to escape the "\" before the "t" - "\t" is a TAB character, and chances are good that the browser won't like that in a filename. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Ev

Re: [PHP] Search replace text

2001-02-12 Thread Christian Reiniger
: $new_line = str_replace($oldemail, $newemail, $line); Another little thing: You don't need the eregi() here - just do str_replace. If it doesn't find $oldemail it won't do anything. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Nothing is more dangerous than an idea

Re: [PHP] rewriting this SQL statement to remove subselect

2001-02-12 Thread Christian Reiniger
I'm blind and/or dumb, but I just can't find a subselect in that query. The query as written here should run fine in any MySQL version -- 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, &quo

Re: [PHP] money maths

2001-02-12 Thread Christian Reiniger
() and sprintf () -- 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), [Lord Byron] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

Re: [PHP] comparisons

2001-02-12 Thread Christian Reiniger
or. Anyone have any ideas? These two valuse mustbe evaluated as different. if (strcmp ($pick1, $pick2) == 0) echo "equal"; else echo "different"; -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Those who will not reason, are bigots, those w

Re: [PHP] Problems with ! in mail();

2001-02-12 Thread Christian Reiniger
inserting that "!". Such things don't get in by accident - it's a bug in your code. -- 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] Problems with ! in mail();

2001-02-12 Thread Christian Reiniger
inserting that "!". Such things don't get in by accident - it's a bug in your code. -- 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] [newbie] Can I use regular expressions?

2001-02-11 Thread Christian Reiniger
ername' is okbr"; else echo "'$Username' contains invalid chars" -- 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]

Re: [PHP] regex : Extracting parts of a string :-???

2001-02-11 Thread Christian Reiniger
hat's within double quotes? Hmm, I only know the preg syntax. With that it's preg_match ('/"([^"]*?)"/', $thestring, $matches); $InQuotes = $matches [1]; -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "use the source, luke." (obi-wan gnuobi) -- PHP

Re: [PHP] Mail-Encryption

2001-02-09 Thread Christian Reiniger
pen("$comm","r"); This returns echoes the part after the | in safe-mode. echo only outputs something. it doesn't return anything. Write $comm = "$data | " . $this-gpg_command; and: $this-gpg-kommand is an illegal (no minus in identifiers!) -- Christian Reinige

Re: [PHP] Arrays through URL

2001-02-09 Thread Christian Reiniger
big (which is easy with multidim. arrays). Better: $ArrayS = serialize ($TheArray); $AKey = md5 ($ArrayS); // insert into database (key: $AKey, value: $ArrayS) $Url = $baseurl . "?key=$AKey" plus the matching reading code -- Christian Reiniger LGDC Webmaster (http://sunsi

Re: [PHP] Arrays through URL

2001-02-09 Thread Christian Reiniger
ible? from what -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds. - http://www.google.com/search?q=e -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additiona

Re: [PHP] How does one build a big chat system?

2001-02-09 Thread Christian Reiniger
suggestions which will cause less server load? Grab one of the many java IRC applets from http://freshmeat.net and run an irc server on your box. http wasn't designed for this type of thing. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of about 142,000,000 for e

Re: [PHP] good free/cheap IDE for PHP

2001-02-09 Thread Christian Reiniger
On Friday 09 February 2001 19:04, Jeff Oien wrote: What does IDE stand for? Integrated Development Environment -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of about 142,000,000 for e. Search took 0.18 seconds. - http://www.google.com/search?q=e -- PHP

Re: [PHP] [Newbie] PHP Variables

2001-02-09 Thread Christian Reiniger
On Friday 09 February 2001 20:39, John Vanderbeck wrote: Why are you echoing it twice? Also, the first line, shouldn't it be: ?php echo $contents; ? Looks liek you dropped the semi colon The semicolon is optional if a closing PHP tag ("?") follows. -- Christian Reiniger LGDC

Re: [PHP] reg-ex problem

2001-02-08 Thread Christian Reiniger
sides matching something like 'div2' it will also match div23 - both returning div2. Well, it matches on "div2", no matter what's around that. just like "prem" also matches on "appremoval" Don't know the data, so it might not make any difference. Agreed -- Chri

Re: [PHP] splitting a class across separate files?

2001-02-08 Thread Christian Reiniger
On Thursday 08 February 2001 17:13, Chris Lee wrote: Its called inheritance. rarley.php ?php class rarley_used { ? main_class.php ?php include_once('rarley.php'); class main_class extends rarley_used Other way round (rarely_used extends main_class) :) -- Christian Reiniger

Re: [PHP] Passing files to a browser

2001-02-08 Thread Christian Reiniger
n b/home/robr/public_html/php/getpdf.php/b on line b5/bbr That most likely means the fopen () failed. -- 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 likelihoo

Re: [PHP] Passing an array as an argument.

2001-02-07 Thread Christian Reiniger
ts "$email" parameter, it gets the value of $total_members - which is not an array. The third parameter is ignored. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Software is like sex: the best is for free" -- Linus Torvalds -- PHP General Mailing List (http:

Re: [PHP] binmode() in php?

2001-02-07 Thread Christian Reiniger
., it's useless on Unix). If not needed, this will be ignored --- -- 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

Re: [PHP] parent constructor

2001-02-07 Thread Christian Reiniger
do you use get_parent_class() at all? -- 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-ma

Re: [PHP] [newbie] easy question about fopen ($filename, r+)

2001-02-07 Thread Christian Reiniger
? No. You'll have to code that yourself (read file - add lines - write file) -- 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

Re: [PHP] Com

2001-02-07 Thread Christian Reiniger
On Wednesday 07 February 2001 11:52, Pavel Kalian wrote: COM of course comes with PHP (but is available on Win only), RTFM on calling COM support... Yes, but there ain't no class "COM". Read the manual section about COM support. -- Christian Reiniger LGDC Webmaster (http://sunsi

Re: [PHP] Com

2001-02-07 Thread Christian Reiniger
class. Hmm, it's at least not mentioned in the manual. -- 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 additiona

Re: [PHP] DSO security

2001-02-07 Thread Christian Reiniger
On Wednesday 07 February 2001 19:13, Gabor Gludovatz wrote: how can I prohibit users to read arbitrary files on the system if run PHP as apache module? Read the chapter about Security in the manual as well as the description of the safe_mode and open_basedir options -- Christian Reiniger

Re: [PHP] reg-ex problem

2001-02-07 Thread Christian Reiniger
ly of decimal digits. And the | is using '\d' and 'prem'. It probably should be "/(div\d)|prem/ Unless those parens are part of the expression. Then No, that's fine. (div\d|prem) means "match either 'div\d' or 'prem'" and memorize that part -- Christian Reiniger LGDC Webmaster (http://sunsi

Re: [PHP] APC install problems

2001-02-07 Thread Christian Reiniger
followed the INSTALL docs, and read the online FAQ, unfortunatly I know very little about php-modules and autoconf etc.. You'll have to install some packages: libtool, autoconf and automake I'd say. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Software is like sex: the

Re: [PHP] Re: [PHP-INST] Installation of PHP and Apache in RedHat 7.0

2001-02-06 Thread Christian Reiniger
r computer 'apachectl' operates just fine, please tell me where it is located at? I thought that 'httpd start' would do the same! Actually "/etc/rc.d/httpd start" usually calls apachectl to do the real work. Anyway, using "/etc/rc.d/httpd restart" is the recommended way to

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

2001-02-05 Thread Christian Reiniger
; print "The CypherText in TWOFISH ECB is BR".bin2hex ($encrypted_data)."\nbr"; $encrypted_data = mcrypt_cbc (MCRYPT_TWOFISH, $key, $input, MCRYPT_ENCRYPT); print "The CypherText in TWOFISH CBC is BR".bin2hex ($encrypted_data)."\nbr"; ? -- Ch

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

2001-02-05 Thread Christian Reiniger
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 hands these days

Re: [PHP] manage number of rows displayed

2001-02-05 Thread Christian Reiniger
), 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 weeks -- PHP General

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

2001-02-05 Thread Christian Reiniger
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..." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/)

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

2001-02-05 Thread Christian Reiniger
his-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 "Eureka", but "That's funny..." - Isaac Asimov -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] include files

2001-02-05 Thread Christian Reiniger
directory structure in the PHP code. 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

Re: [PHP] simple config. question

2001-02-05 Thread Christian Reiniger
"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/) To unsubscribe, e-ma

Re: [PHP] Automating tasks in PHP?

2001-02-05 Thread Christian Reiniger
, 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 this never happened ... -- PHP Gener

Re: [PHP] Is this a missing feature?

2001-02-04 Thread Christian Reiniger
quot;, "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 -- Christian Reiniger LGDC Webmaste

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

2001-02-04 Thread Christian Reiniger
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, it's the only thing that ever has." - Margaret Mead -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

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

2001-02-04 Thread Christian Reiniger
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 phrase to hear in science, the one that heralds new

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

2001-02-03 Thread Christian Reiniger
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 - American Association Against Acronym Abuse -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

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

2001-02-03 Thread Christian Reiniger
(username = '$username' AND password = '$password') AND (site = 'theirsite' OR site = 'all') -- 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." - M

Re: [PHP] Problem compilieng PHP4

2001-02-03 Thread Christian Reiniger
/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." - Margaret Me

Re: [PHP] Include quotes inside textbox

2001-02-02 Thread Christian Reiniger
ssing - 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 "textarea name='foo' rows='20' cols='50'" . htmlentities ($Content) . "/textarea"; -- Christia

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

2001-02-02 Thread Christian Reiniger
ere 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://sunsite.dk/lgdc/) Google results 1-10 of about 1

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

2001-02-02 Thread Christian Reiniger
il'] is "[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]" instead of "[EMAIL PROTECTED]" Also note that "mailto:" is a HTML-ism and has no place in mail headers! -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Google results 1-10 of about 142,000,000 for

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 a tab character :) -- Christian Reiniger LGDC

Re: [PHP] Future plans (4.1) ?

2001-02-02 Thread Christian Reiniger
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 took 0.18 seconds. - http://www.google.com/search?q=e -- PHP General Mailing

Re: [PHP] Can you do this

2001-01-31 Thread Christian Reiniger
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 be careful with that. -- Christian Reiniger LGDC Webmaster (http

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] Sending Download Header

2001-01-30 Thread Christian Reiniger
? 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) -- PHP General Mailing

Re: [PHP] email headers!

2001-01-30 Thread Christian Reiniger
ntelligent - 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://www.php.net/) To unsubsc

Re: [PHP] Apache

2001-01-29 Thread Christian Reiniger
. 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 it -- Christian Reiniger LGDC Webmaster (ht

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 List (http://www.php.net

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

2001-01-26 Thread Christian Reiniger
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 PROTECTED] To contact the list adminis

Re: [PHP] Newbie frustration!

2001-01-24 Thread Christian Reiniger
t;http://mysite.com/Yarns/" Yarns/a 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 Webmaster (http:

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

2001-01-24 Thread Christian Reiniger
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 Webmaster (http://sunsite.dk/lgdc/) The use of COBOL cripples the mind; its teach

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

2001-01-24 Thread Christian Reiniger
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 -- PHP General Mailing

Re: [PHP] Search Engines and PHP

2001-01-23 Thread Christian Reiniger
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 compaired tri-word groupings here and i

Re: [PHP] preg_replace pain!

2001-01-18 Thread Christian Reiniger
[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/) "use the source, luke." (

<    1   2   3   4   5   >