Re: [PHP] Uptime script?

2001-05-16 Thread Christian Reiniger
8:55pm up 45 days, 13:42, 1 user, load average: 0.07, 0.03, 0.00 -- 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 com

Re: [PHP] while loops [ newbie ]

2001-05-17 Thread Christian Reiniger
le http://php.net/foreach http://php.net/fopen http://php.net/fwrite Should get you started. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) ...1000100011010101101010110100111010113... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Re: removing PHP

2001-05-17 Thread Christian Reiniger
p;reinstall apache. Did you do that? -- 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 Mailing List (http:

Re: [PHP] Performance issue

2001-05-17 Thread Christian Reiniger
s greatly from setup to setup. -- 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 Mailing List (http://ww

[PHP] sessions / cookies / header("Location...

2001-05-17 Thread Christian Dechery
I have a page that does a login... right after the login is successfull it registers a session var called 'userid'... and does a header("Location: newpage.php") which checks for the existance of this var... if it exists it will show, otherwise it goes back to the login page... the weird thing

Re: [PHP] Installation PHP4 on UNIX problems

2001-05-17 Thread Christian Reiniger
ck-vars > like in the manual I get the error message that there is no httpd.h > file in the apache folder. And thats true. Use --with-apxs instead of --with-apache. That should do the trick. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) void sleep(){for(long int sheep=0;!

Re: [PHP] sessions / cookies / header("Location...

2001-05-17 Thread Christian Dechery
php > >trans-sid >/index.php > >header redirectect require (supposed to require) full urls. in other words >its a good idea to put PHPSESSID=$PHPSESSID on all your full urls anyhow, >just incase for non-cookie browsers. > >-- > > Chris Lee > [EMAIL PROTECTED] > >

Re: [PHP] Finding if a number is in the range

2001-05-18 Thread Christian Reiniger
gt; yes, i have just finished my computational theory and computer > algorithms honors exam. Well, then you *do* know that O(log n) can be slower than O(n), right? :) For a small number of ranges the chained ifs are most likely faster... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgd

Re: [PHP] still not friends with RegExps..

2001-05-16 Thread Christian Reiniger
l regular expression documentation should be fine. Also the "preg expression syntax" page in the manual is very good. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Software is like sex: the best is for free" -- Linus Torvalds -- PHP General Mailing

Re: [PHP] file()

2001-05-19 Thread Christian Reiniger
e on a Unixy server and the file is in DOS format (CRLF endings)? -- 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-m

Re: [PHP] Getting email out of a database

2001-05-19 Thread Christian Dechery
EMAIL PROTECTED],[EMAIL PROTECTED] > > How would I go about this > > > >Best regards, > Richard >mailto:[EMAIL PROTECTED] > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAI

[PHP] converting int to char

2001-05-19 Thread Christian Dechery
how do I convert and integer value to its ASCII correspondent? in C I would go something like: int i = 90; char c; c = i + '0'; // now c would be 'Z' in PHP I'm simply clueless since there's no (char) type... ____ . Chri

Re: [PHP] Unix problem

2001-05-20 Thread Christian Reiniger
ou only examine your current directory, is_file & is_dir won't find the files. -- 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 additiona

Re: [PHP] The performance of sleep() and usleep()

2001-05-20 Thread Christian Reiniger
s exactly that - putting the process to sleep for the specified period. It doesn't use any processing power during that time and it might even use less memory (if it is swapped out). -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) I saw God - and she was black. -- PHP G

Re: [PHP] Include Paths

2001-05-20 Thread Christian Reiniger
to if there is a flag i'm missing that is > causing them to do that. Thank you for the help! You do a print (readfile ('foo')); right? Well, readfile reads the file *and outputs it*, then returns the number of chars read. That is passed to print (). So just use readfile ('f

Re: [PHP] RegEx Question

2001-05-20 Thread Christian Reiniger
et all the strings between 'testng' > and 'blah' in an array. > This will do it, yet when it wont work when special chars such \n exist > between 'testing' and 'blah'. Use preg_match() with 's' or 'm' as modifier (one of these is co

[PHP] is not translated...

2001-05-20 Thread Christian Marschalek
My system does not tranlate into the PHP Session id... Don't have a clue why, though... Any clues? Tia! Chris -- 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-m

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

2001-05-21 Thread Christian Reiniger
is file? (1) $open is defined in frameset.php (2) frameset.php outputs a HTML page with the frameset definition (3) when the browser receives this, it issues two new requests, one for "onlineview.php3" and one for "footer.html" So you don't *include* onlineview.php3, y

Re: [PHP] PHP and XHTML

2001-05-21 Thread Christian Reiniger
roblem? > > It depends. If what is going to process the document is a regular > browser, the NAME attribute is what matters. Future browsers will have > to handle current HTML compatibly. So there is no point in removing the > NAME attribute. Why not specify both? -- Christian

Re: [PHP] comparison operators

2001-05-21 Thread Christian Reiniger
m? == is perfectly fine for string comparison. Try doing a echo "'$filename_type'"; and (generally) a phpinfo (); to see what's passed to your script. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Those who will not reason, are bigots, those who cannot

Re: [PHP] How to test content encoding?

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

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

2001-05-21 Thread Christian Reiniger
, "", $file); Stupid error (noticed this after trying for ~10 minutes...): Add the "s" modifier. Otherwise "." doesn't match newlines. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Error 032: Recursion error - see error 032 -- PHP Genera

RE: [PHP] is not translated...

2001-05-21 Thread Christian Marschalek
I know that, and this option is not enabled and does not work although the cookies are turned off... > -Original Message- > From: Rama [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 21, 2001 8:19 AM > To: Christian Marschalek > Subject: RE: [PHP] is not translated.

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

2001-05-21 Thread Christian Reiniger
siswhereitwouldstop")'? #<(.*)onclick=(\"|').*\\2(.*)># A simple "or" combined with a backreference. And don't forget to adjust your replacement string.. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Software is like sex: the bes

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

2001-05-22 Thread Christian Reiniger
On Tuesday 22 May 2001 11:54, Hugues BRUNEL wrote: > echo "b::foo1=".$this->$foo1."\n" ; > echo "b::foo2=".$this->$foo2."\n" ; You're accessing the fields incorrectly. It's $this->foo1 (without the second '$')

Re: [PHP] Regular Expression Help

2001-05-22 Thread Christian Reiniger
20}$/', $Subject) should do the trick. -- 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/

Re: [PHP] Checking an URL

2001-05-23 Thread Christian Reiniger
ps://www1 if it is > https://www1 then show the page otherwise echo a message. > > The reason is I don't want people to view certain pages without the > secure server connection. You could check $SERVER_PORT whether the normal http port or the ssl one is used. -- Christian Rein

Re: [PHP] PHP AND SSI

2001-05-23 Thread Christian Reiniger
"Sis Sounds Interesting" - "Server Side Includes" - "Selective Stupidity Incorporated" You have three guesses... -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) /* you are not expected to understand this */ - from the UNIX V6 kernel source -- PHP Gen

Re: [PHP] re: files

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

Re: [PHP] Web Server processing question

2001-05-23 Thread Christian Reiniger
has to be some "real" reason for it. Can you post some code? -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) /* you are not expected to understand this */ - from the UNIX V6 kernel source -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

[PHP] include and include-virtual

2001-05-23 Thread Christian Dechery
What is the main difference between:

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

2001-05-23 Thread Christian Reiniger
o pass the lines through something like chop(), or > html_spec_chars? > > How do you guys display php files to the screen in the HTML stream? http://php.net/show_source -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) This is JohnC IMHO, I compaired tri-word groupings here and

Re: [PHP] php unpack function

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

Re: [PHP] include and include-virtual

2001-05-23 Thread Christian Dechery
At 22:23 23/5/2001 +0100, James, Yz wrote: >Christian, > >Those are SSI calls (Server Side Includes, for use with .shtml files). I know what they are... I wanna know what's the difference between them >Try: > >include("/path/to/filename"); >require("/pa

Re: [PHP] A web server query

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

[PHP] PHP timesheets?

2002-01-07 Thread Christian Calloway
Hi, Are there any PHP coded timesheet type web application? And if so, what would we be suggested. Thanks, Christian -- 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

[PHP] Re: printing an XML node

2002-01-17 Thread Christian Stocker
In <[EMAIL PROTECTED]>, Thomas Gagne wrote: > dumpmem works great for entire documents, but what is the strategy for > printing the contents of a single node? It is impossible to use dumpmem > on a node since the code looks for a 'doc' property that doesn't exist > in nodes. it's not possible a

[PHP] Re: printing an XML node

2002-01-18 Thread Christian Stocker
In <[EMAIL PROTECTED]>, Christian Stocker wrote: > In <[EMAIL PROTECTED]>, Thomas Gagne wrote: > >> dumpmem works great for entire documents, but what is the strategy for >> printing the contents of a single node? It is impossible to use >> dumpmem on a

[PHP] CGI PHP processing .shtml

2002-01-23 Thread Christian Cresante
i want to have php process .shtml files. i tried appending the following to .htaccess, but to no avail: AddType application/x-httpd-php .shtml is it because php is running as a cgi program? how would i go about getting this to work. its php 4.0.6 running on a sparc, if that matters. thank

[PHP] getenv() replacement when running as ISAPI ???

2002-01-25 Thread Christian Blichmann
heck if visit already counted $id = 0; $counted = false; $r = mysql_query("SELECT visitor.id, visitor.ip, visitor.useragent, visits.timestamp FROM visitor, visits WHERE visitor.id = visits.visitor_id ORDER BY visitor.id DESC"); // ... === CUT HERE === Christian Blichmann _

[PHP] Re: PHP IDE

2002-01-25 Thread Christian Blichmann
Code Completion, ...), but it's not primarily focused on PHP... Christian Blichmann _ don't hesitate - email me with your thoughts: e-mail: [EMAIL PROTECTED] - please remove the ".nospam" from address.

Re: [PHP] Re: Resalution Dection

2002-01-25 Thread Christian Blichmann
ht This might be helpful for you as well... Christian Blichmann _ don't hesitate - email me with your thoughts: e-mail: [EMAIL PROTECTED] - please remove the ".nospam" from address. _ do you want to know

[PHP] Re: [PHP-DEV] Re: RFE: $HTTP_POST_VARS =& $_POST;

2002-01-25 Thread Christian Dickmann
for the rest of the script. To my mind such "constants" make sense, because - they are global - they can't change their value while execution - it doesn't matter if the constant-value is set dynamically when defining it So I would be glad to see this feature in PHP5. Christian

[PHP] getenv() replacement when running as ISAPI ???

2002-01-26 Thread Christian Blichmann
heck if visit already counted $id = 0; $counted = false; $r = mysql_query("SELECT visitor.id, visitor.ip, visitor.useragent, visits.timestamp FROM visitor, visits WHERE visitor.id = visits.visitor_id ORDER BY visitor.id DESC"); // ... === CUT HERE === Christian Blichmann _

[PHP] Substitute for getenv() when using ISAPI ??

2002-01-27 Thread Christian Blichmann
v("HTTP_USER_AGENT"); // Check if visit already counted $id = 0; $counted = false; $r = mysql_query("SELECT visitor.id, visitor.ip, visitor.useragent, visits.timestamp FROM visitor, visits WHERE visitor.id = visits.visitor_id ORDER BY visitor.id DESC"); // ... ===

[PHP] Function call stack

2002-01-30 Thread Christian Novak
file calling myfunc() trigger_error("Error in $file, at line $line, paramter must be an integer!", E_USER_ERROR); return($i); Using the pre_defined varibales __line__ and __file__ will always point me to the function not the calling script. Best regards Christian Novak --

Re: [PHP] RANT: Why doesn't PHP have built-in support for dynamic image generation?

2002-02-03 Thread Christian Stocker
In <[EMAIL PROTECTED]>, Victor Boivie wrote: > PEAR? I think it would be better if someone did a "real" PHP module for > ImageMagick, just like PerlMagick is for Perl. There is one at > http://php.chregu.tv/imagick/, but it's far from complete. If someone > would like to help him with the project

[PHP] Re: PEAR IMAGICK [WAS-> RANT: Why doesn't PHP have built-in support for dynamic]

2002-02-03 Thread Christian Stocker
In <[EMAIL PROTECTED]>, Michael Kimsal wrote: > Weston Houghton wrote: > >> Anybody interested in working on a PEAR module to interface PHP with >> something like ImageMagick directly? I would love to see it. Maybe if I >> am unemployed long enough soon I can work on it myself. Not that I >> rea

[PHP] Re: PEAR IMAGICK [WAS-> RANT: Why doesn't PHP have built-in support for dynamic]

2002-02-03 Thread Christian Stocker
-code PHP extensions is beyond my capabilities, so I make do with > what others contribute. Simply because something is opensource doesn't > mean everyone has equal talent to add in actual code. :( > I thank you for your contribution of this code so far, and should you > cont

[PHP] Re: Why doesn't PHP have built-in support for dynamic image generation?

2002-02-03 Thread Christian Stocker
In <[EMAIL PROTECTED]>, Andy wrote: > Hi guys, > > I think his original question was how to install GD! > > It's not a big deal! > - Install PHP > 4.06 > - edit the php.ini -> delete the comment tags from the gd import module > - restart your server if it is running not as a CGI extension >

[PHP] Re: PEAR IMAGICK [WAS-> RANT: Why doesn't PHP have built-in support for dynamic]

2002-02-04 Thread Christian Stocker
In <[EMAIL PROTECTED]>, Michael Kimsal wrote: > Christian Stocker wrote: > > >>>see (which is how I labelled it above) and what I'm capable of actually >>>contributing. >>>Doing C-code PHP extensions is beyond my capabilities, so I make do

[PHP] Re: XML closing elements called for

2002-02-06 Thread Christian Stocker
In <000a01c1af5a$dbf70140$73fd883e@laptop>, Hammy wrote: > Is there any way to suppress or detect when the closing element event > fires from tags in the form rather than ? > no, i don't think so. It means exactly the same in the XML-sense, so why should there be a difference in reporting it..

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Christian Blichmann
stood my question, my problem is not how to parse the URI, I discovered the the parse_url-function before... My problem is much more trivial, how to retrieve the string the user type into the address bar of his/her browser??? -- Christian _ don't hesitate -

Re: [PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Christian Blichmann
e the $REQUEST_URI variable set)... btw, my setup is: PHP 4.0.1 with IIS 5.0 running as ISAPI on Win2k. And: doesn't work with PHP installed as a CGI module, too. -- Christian _ don't hesitate - email me with your thoughts: e-

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Christian Blichmann
done without popping up the login dialog??? - btw, I know how to do this whole thing in JavaScript (using the location object), but that won't work for text browsers or oldtimers like NN 2.x. Can I use a blank password like in "http://someUserText:

[PHP] Re: Implement @-domains with PHP?

2002-02-12 Thread Christian Blichmann
is reply to my question its that the actual location doesn't appear in the environment block. Regards, -- Christian _ don't hesitate - email me with your thoughts: e-mail: [EMAIL PROTECTED] - please remove the ".nospam" from address. _

[PHP] Re: Implement @-domains with PHP?

2002-02-13 Thread Christian Blichmann
"WWW-Authenticate", it should be a quite impossible thing to do. Question: Does anybody know a way to prevent the browsers login-dialog - you could then catch "username" using $PHP_AUTH_USER (or similiar) and redirect as appropriate? Another problem: can I use a blank password for

[PHP] Re: Authentication with sessions - Recommendation and suggestions?

2002-02-14 Thread Christian Blichmann
d in mind: > > [...] Well, looks fine to me, except that I would use some more sophisticated session-id (like: http://www.domain.com/pathto/file.html?ID=12345678) to show off a bit ;-) Regards, -- Christian Blichmann _ don't hesitate - email me

[PHP] Re: browser reload button

2002-02-14 Thread Christian Blichmann
ng as proper credit is given. Regards, -- Christian Blichmann _ don't hesitate - email me with your thoughts: e-mail: [EMAIL PROTECTED] - please remove the ".nospam" from address. _ do you wa

[PHP] Re: Outputing XML to browser???

2002-02-16 Thread Christian Blichmann
e to using XML is using XHTML 1.0 (either transitional or strict) in your .html - files: http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> Don't forget to end your empty tags with /&g

[PHP] Re: Outputing XML to browser???

2002-02-16 Thread Christian Blichmann
Whoops, sent you a wrong .htaccess - file, here's what I really use (the other one was old): AddType application/x-httpd-php .php .php4 .htm .html .xml .xhtml DirectoryIndex index.xml index.xhtml IndexIgnore .htaccess .htpasswd -- Christian Blic

[PHP] Re: storing arrays

2002-02-17 Thread Christian Blichmann
You then will be able to do this: To unserialize: > 2) Is it possible to specify the name of the key to each item of an array > when you get the array using file(). Yep, you'll get the same array back... -- Christian Blichmann _ don'

[PHP] Re: Where To Find Resources About Programming Style (my bleedin' code is so darn ugly)

2002-02-17 Thread Christian Blichmann
but saves you _much_ time when resuming your work after a longer interruption / when working in a team). My suggestions for comments are as follows: Ok, sorry for this mega-posting, hope it helps. P.S.: Your code _always_ works?

[PHP] Re: Question and PHP DOMXML and Apache

2002-04-23 Thread Christian Stocker
In <[EMAIL PROTECTED]>, Sebastian A. wrote: > Have the new DOM XML functions been included in the latest version of > PHP (4.2) when I try to use one of the new functions, such as > domxml_open_file() I get an error message saying I am calling and > undefined function. Has anyone successfully use

[PHP] HTML in PHP

2002-04-28 Thread Christian Ista
Hello, I have a newbie question for you. I do a query, I'd like to display the result but I'd like to go to a new line for each row. I use this code that's work : but this not work } ?> Could you tell me how I can do to have a after each row. Thanks for your help :) Bye

[PHP] Query > Close

2002-05-01 Thread Christian Ista
Hello, What's happen if when I used a query, I don't do that : mysql_close($connection); Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Query > Close

2002-05-01 Thread Christian Ista
> Depends on how you opened it. Did you use mysql_pconnect or mysql_connect? mysql_connect bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session question

2002-05-25 Thread Christian Ista
Hello, I'm a newbie in PHP, I use a lot ColdFusion (at work). With ColdFusion, it's very easy to create and use session variable. I do something like that : and this variable can be use everywhere. Could you tell me how that's work in PHP. I saw in help file session.start. But it's not very cl

Re: [PHP] Session question

2002-05-25 Thread Christian Ista
> Just be sure you call session_start() on any page you want to access > session variables. > I have to call this function on each page I use session variable or juste once ? > This assumes the latest version of PHP. The procedure is similar on > older versions, you just have to use session_reg

[PHP] Re: mysql_insert_id?

2002-02-21 Thread Christian Novak
t; inserting record at the same time? How does mysql_insert_id work accurately? > > Thanks, > Wee You can get the last auto_inc with the following query: "SHOW TABLE STATUS 'my_table_having_an_autoinc'" and then lookup the field "Auto_increment" in the

Re: [PHP] Crashing a webserver

2002-02-21 Thread Christian Novak
There is a tool from Microsoft to do exactly this: http://webtool.rte.microsoft.com Christian "Theodore Brinkman" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Pull the plug? :) > > -Original Message-

[PHP] graphing packages

2002-04-14 Thread Christian Calloway
hey ppl, I need to create some fairly complex graphs dynamically, and I need to be able to specify line, bar, or pie charts. Are there any PHP packages that someone could point me to that would fill my needs. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: zip_open in 4.0.6 ?

2001-10-18 Thread Christian C.
t more than 1 arg ( supposedly 2 ). File/path name and password? Christian -- 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] sscanf() question...

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

[PHP] Re: XSLT error functions

2001-10-20 Thread Christian Stocker
In <[EMAIL PROTECTED]>, Vikram Vaswani wrote: > Hi all, > > Am working with the XSLT functions in PHP. I'm trying to trap errors > with the xslt_error() functions - however, the function generates no > output even if I deliberately introduce errors into the XSLT sheet. > > Same goes for the ope

[PHP] Re: bug in str_replace() ?

2001-10-21 Thread Christian Kuhtz
Martin Lindhe wrote: > > Bug in str_replace(), PHP 4.0.6 > > $text = "hello world"; > $out = str_replace(" "," ",$text); > echo $out; > > Expected output: > "hello world" > > Actual output: > "hello world" > > Of course, this is what happens if str_

[PHP] Re: Download the whole directory

2001-10-21 Thread Christian Kuhtz
No. You cannot initiate multiple transactions that way (at least not without considerable glue outside of PHP, such as JavaScript etc to cause the browser to initiate multiple transactions; but it cannot be done directly from the server side as the client only asked for one file). You could z

Re: [PHP] Form Question

2001-10-21 Thread Christian Kuhtz
Chip Landwehr wrote: > > I can't do that because the form is to big and there is a limit to how much > data you can send via the URL bar. Any other ideas? Use cookies. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] IDE for Linux

2001-10-21 Thread Christian Dechery
Can you guys give me some hints of IDEs for programming PHP in Linux? thanks _ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e

[PHP] generating charts/graphics

2001-10-21 Thread Christian Dechery
n this? Is this easy to do in PHP? Can I get something already implemented? Some class or something? thanks... _____ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br -- PHP General Mailing List (http://w

RE: [PHP] IDE for Linux

2001-10-21 Thread Christian Dechery
awesome editor, stuff like function name completion, shows you what >params the function takes, etc.). exactly what I'm looking for... it's not for me really... It's for a friend... I develop in Win32... and use HomeSite... I tried this Komodo... but never saw this SlickEdit... doe

[PHP] Re: unset Cookies

2001-10-22 Thread Christian Kuhtz
Michael Thanry wrote: > > Hello everyone! > > Is there a way to unset or expire a cookie which was not set by my pages? Overriding an existing cookie with setcookie()and 1 sec expiry should do the trick. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTE

Re: [PHP] language question

2001-10-22 Thread Christian Reiniger
reach ($table as $key => $val) { ... } RTFM :) BTW: overwriting $a, $b in each iteration isn't particularly useful... -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Those who will not reason, are bigots, those who cannot, are fools, and those who dare not, are slav

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

2001-10-23 Thread Christian Reiniger
te the "/" at the beginning, and "/i" at the end. those have always > been there in other projects, and have worked. Is there anything else > I'm doing wrong here? I dont get any errors, but it returns 0 matches. > =) The php manual contains a good documentation of preg

Re: [PHP] In Toronto Next week

2001-10-23 Thread Christian Dechery
ow about Rio, Brazil?? :)) _ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] GD: need better solution...

2001-10-23 Thread Christian Dechery
rks just fine.. all the graphs show up perfectly... but I was wondering if there is a better way of doing this... I tried with sessions, but I couldn't get the varible to be reseted correctly between two graphs of the same type... and they would repeat... any ideas? ___

[PHP] how many data can a session hold?

2001-10-23 Thread Christian Dechery
I want to know how many data can a session hold? The number of bytes... and if possible the max size of an - let's say - array of ints. I need this to know how many IDs I can hold in the session... _____ . Christian Dechery . . Gaita-L Owner / Web Developer . .

Re: [PHP] How to protect MySQL password

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

Re: [PHP] talking directly w/ MySql

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

Re: [PHP] Object sharing

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

Re: [PHP] is_int() and is_double

2001-10-25 Thread Christian Reiniger
number). is_int and is_double check whether the variable's current datatype actually is "int" or "double" See the manual. Possible solution: if (is_numeric ($a)) { $a = (double) $a; if (intval ($a) == $a) echo "'$a' is integer"; else echo &

Re: [PHP] Re: Removing an Array Element

2001-10-25 Thread Christian Reiniger
uot; [0]=> string(4) "" } array(2) { [100]=> string(12) "jibberjabber" [200]=> string(16) "morejibberjabber" } -> index 0 is gone. -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) /* you are not expected to understand this */ - from the

[PHP] how many data can a session hold?

2001-10-25 Thread Christian Dechery
I want to know how many data can a session (treated as cookie) can hold... The number of bytes... and if possible the max size of an - let's say - array of ints. I need this to know how many IDs I can hold in the session... _____ . Christian Dechery . . Gaita-L

[PHP] generating several images in sequence...

2001-10-25 Thread Christian Dechery
rks just fine.. all the graphs show up perfectly... but I was wondering if there is a better way of doing this... I tried with sessions, but I couldn't get the varible to be reseted correctly between two graphs of the same type... and they would repeat... any ideas? ___

Re: [PHP] web base mail client???

2001-10-25 Thread Christian C.
> I would say this comes in a close second as the "most oft-asked question on > php-general", with the first, of course, being "What's a good text editor for > PHP?" hehehehe... Thanks Chrisrtian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For a

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

2001-10-25 Thread Christian Reiniger
On Thursday 25 October 2001 13:25, Christian Dechery wrote: > I want to know how many data can a session (treated as cookie) can > hold... > > The number of bytes... and if possible the max size of an - let's say - > array of ints. I need this to know how many IDs I can h

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

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

[PHP] problems with sessions (not working)

2001-10-27 Thread Christian Dechery
soon as I refresh the page the session is lost... why? _____ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Arrays

2001-10-28 Thread Christian Reiniger
7; and '$page' which > should then be checked against the array: > > - if $section exists in the array [...] http://www.php.net/manual/en/ref.array.php -- Christian Reiniger LGDC Webmaster (http://lgdc.sunsite.dk/) Drink wet cement. Get stoned. -- PHP General Mailing List (htt

Re: [PHP] Include Precompiled C binaries

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

<    1   2   3   4   5   6   7   8   9   10   >