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] system() PHP newbie!!

2001-02-21 Thread Christian Reiniger
ere as TAB character. Write "C:\\temp.exe" instead. > send me an example or tell me what I am doind wrong? Any assistance is > very much appreciated, Well, it would help if you'd tell us what goes wrong - error messages, things it should do but doesnt ... -- Christian Reiniger

Re: [PHP] Deleting mySql records based on dates

2001-02-21 Thread Christian Reiniger
om table where datefield <= DATE_SUB(NOW(), INTERVAL $days DAY)", $dbh); -- 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 criminal, bu

Re: [PHP] Handling File Uploads : ASCII/Binary transfers

2001-02-22 Thread Christian Reiniger
I FTP. How can this be done with a PHP script??? ... but apparently you *want* it to mangle the data (convert line ends). You server is a Unix machine? What error does Mysql give you on the "broken" files? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God ---

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 > index.php > echo " > > "; > ?> Note: better name that to dspimage.php, as webservers typically don't execute *.inc -- Christian Reiniger LGDC Webmaster (http://sunsite.dk

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

2001-02-22 Thread Christian Reiniger
fterwards (including all his private data). Well, in 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 s

Re: [PHP] I'm confused about Regular Expressions.

2001-02-22 Thread Christian Reiniger
with a backslash) because a dot in a regexp has a special meaning: "match any char". The escaping makes it behave as a literal dot The "$" means "here has to be the end of the string" (an "anchor") => the entire pattern means "match if the string ends

Re: [PHP] Print in html

2001-02-22 Thread Christian Reiniger
I.e. that doesn't work. Use the proper HTML entities for the brackets: <? readfile (""); ?> -- 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
t; For instance with the numbers above: > > > > PAGE 1: 50% > > PAGE 2: 25% > > 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 Bet

Re: [PHP] help change filename.

2001-02-22 Thread Christian Reiniger
something > like fopen? Well, Use PHP instead of COBOL... Sorry, but read some basic tutorials on PHP. -- 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 P

Re: [PHP] Print in html

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 12:14, PHPBeginner.com wrote: > if it is in html then do this: > > > but if you are using PHP then echo 'http://sunsite.dk/lgdc/) Drink wet cement. Get stoned. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: [PHP] Generating percentages of numbers

2001-02-22 Thread Christian Reiniger
mplemented in PHP with only 4 lines? -- 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: [EMAIL PROTECTED] To contact the list

Re: [PHP] size of directory

2001-02-22 Thread Christian Reiniger
On Thursday 22 February 2001 12:28, Andris Jancevskis wrote: > how can I determine size of directory with subdirectories? if I see > at "ls -l" it returns directory size 4096. I want to know how large > is directory (with files into) without looping all files ... ma

Re: [PHP] String manipulation with ereg_replace

2001-02-22 Thread Christian Reiniger
#x27;) . '.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
; that when 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

Re: [PHP] Global variables - please explain me someone.

2001-02-23 Thread Christian Reiniger
://foo.bar/test.php?answer=42 will call test.php with a global variable $answer set to "42" -- 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

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&

Re: [PHP] MySQL execution order?

2001-02-23 Thread Christian Reiniger
DateTime = '-00-00 > >> 00:00:00') > >> UPDATE LOW_PRIORITY db_table SET > >> DownloadedDateTime=CURRENT_TIMESTAMP WHERE (DownloadedDateTime = > >> '-00-00 00:00:00') -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)

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

Re: [PHP] Variable dynamique

2001-03-11 Thread Christian Reiniger
On Sunday 11 March 2001 16:58, you wrote: > I receive 2 variables, $var and $num > I need to make a variable out of these two like this > > $var2 where $num = 2 or > $var3 where $num = 3 > > How can I do that ? http://php.net/manual/en/language.variables.variable.php -- Ch

Re: [PHP] Problems with string replacement

2001-03-11 Thread Christian Reiniger
erline and tags. I tried using striptags(); but that would > strip anything within double quotes too. So I've gotten around it by huh? strip_tags works fine for me. echo strip_tags ('Hello http://foo/">bar "world"there', ' '); creates 'Hello http:

Re: [PHP] Problems with string replacement

2001-03-12 Thread Christian Reiniger
oblems. > Of course, I could replace quote marks with htmlspecialchars/entities > or using manual string replacement, but then it'd render all tags using > quote marks invalid. > > See the problem? ;) No ;) Perhaps if you could provide some example code... -- Christian Reini

Re: [PHP] header

2001-03-12 Thread Christian Reiniger
On Monday 12 March 2001 08:33, you wrote: > Hello! > Why header under Windows do not work? Because you have some problem. That's all that can be said without telepathic skills. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Error 032: Recursion error - see error

Re: FW: [PHP] Classes and Kernel CPU Load?

2001-03-12 Thread Christian Reiniger
On Monday 12 March 2001 18:28, you wrote: > I don't know much about OS design, but I may want to check out how long > the context switches are taking. That could be an issue? Definitely not under Solaris :) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Instal

Re: [PHP] Linux / PHP and passwords -( md5 function)

2001-03-12 Thread Christian Reiniger
passwds in my systems /etc/shadow all start with $1 which i believe > is standard for MD5 passwords of 32 length The "$1$" is the start of a 12-char salt (as described in the manual entry for crypt ()). -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Install on

Re: [PHP] Have you ever seen this?

2001-03-12 Thread Christian Reiniger
ere worked on some site > like that or have any idea on how it works. > > I can give you the URL: > > http://www.arabia.com Well, I guess they should invest some more work in it :) screen output [an error occurred while processing this directive] ---- /screen output

Re: [PHP] Escape slashes?

2001-03-13 Thread Christian Reiniger
x27;t need this, and in fact this could become a quite unstable solution. You escape spaces - but what about filenames containing tabs, newlines etc? copy () takes care of that automatically. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I sat laughing snidely into my notebook

Re: [PHP] Get next record

2001-03-13 Thread Christian Reiniger
ond WHERE (First.id = $TheRecordYouWant) AND (First.DateField = Second.DateField) ? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I sat laughing snidely into my notebook until they showed me a PC running Linux. And oh! It was as though the heavens opened and God handed down a client-s

Re: [PHP] Getting name of the main file from external included script..

2001-03-14 Thread Christian Reiniger
On Tuesday 13 March 2001 00:14, you wrote: > I already asked this once before, but nobody seems to answer. That's > why I'm re-writing > my question. Well, you waited about two hours. That's not much, even for a mailinglist like php-general. -- Christian Reini

Re: [PHP] software localization with PHP

2001-03-14 Thread Christian Reiniger
Welcome!"; > $error = "An error occurred."; > ?> Have a look at the gettext extension for a (IMO more elegant) alternative. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power information technology puts in our hands the

Re: [PHP] [Q] session variables wouldn't keep contents.

2001-03-14 Thread Christian Reiniger
On Wednesday 14 March 2001 09:33, you wrote: > I set "register_globals = Off" for many reasons. > Session may not work with "register_globals = On"?? Works fine here (php 4.0.4 / Linux / Apache) -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Ne

Re: [PHP] Mysql Show SQL

2001-03-14 Thread Christian Reiniger
e loop. With that there the for loop > will never run. It will. Once. First it fetches all matching rows from the database (each time overwriting previous results): > > while ($row = mysql_fetch_row($result)); Then it executes the code after the while: > > { > >

Re: [PHP] Day of Week??

2001-03-14 Thread Christian Reiniger
On Wednesday 14 March 2001 14:53, you wrote: > Hi It's me again! > Bruno...From Brazil... > > Hi wanna know How can i take the day of week of aany date... Have you tried reading the manual? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU not fo

Re: [PHP] Script returns an image?

2001-03-14 Thread Christian Reiniger
-type: image/jpg"); You tell the browser that you send an image... > ?> > and then send HTML code instead. do a instead of the tag -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) CPU not found. retry, abort, ignore? -- PHP General Mailing List (http://w

Re: [PHP] Executing a string with both html and php inside it..

2001-03-15 Thread Christian Reiniger
> > What should I do in order to execute the next string: > > > $str = "\n" > > > $str .= "blabla\n"; > > > $str .= " \n"; > > > $str .= "blabla\n"; > > > $str .= "\n"; > > > > >

Re: [PHP] How upload files to protected directories?

2001-03-15 Thread Christian Reiniger
, copy, rename or anything else other than > 'open and read' this file. Whenever I try exec copy commands I receive Well, you want to store them in the database anyway, so "open and read" is sufficient. And for retrieving them you don't need GD. So you should h

  1   2   3   4   5   >