[PHP] user-defined superglobals?

2003-08-23 Thread Matthias Nothhaft
Hi List, is there a way (mybe in php5?) to define/declare a global var as a superglobal, so that I can use this var like the known superglobals ($_GET, $_SESSION, etc.) ??? If not, is there a list for feature requests? Regards, Matthias -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] user-defined superglobals?

2003-08-23 Thread Matthias Nothhaft
for application frameworks!? Maybe also for PEAR... Regards, Matthias -- BigDog On Sat, 2003-08-23 at 11:45, Matthias Nothhaft wrote: Hi List, is there a way (mybe in php5?) to define/declare a global var as a superglobal, so that I can use this var like the known superglobals ($_GET, $_SESSION

Re: [PHP] user-defined superglobals?

2003-08-23 Thread Matthias Nothhaft
Sorry this all is not what I'm looking for. I see it is not possible at the moment. It would be nice to have a php-function like declare_superglobal($_MYFRAMEWORK); And then use $_MYFRAMEWORK like $_GET. Thanks nevertheless. Regards, Matthias Ray Hunter wrote: Well, this is clear, (I'm only

Re: [PHP] Expiration time of a cookie

2003-08-23 Thread Matthias Nothhaft
Stevie D Peele wrote: What is the longest expiration time of a cookie? Hm, good question ;-) A day has 86400 seconds. Multiply it by 'enough' days (eg 365) and always refresh your cookie's expiration. This might solve your problem. Regards, Matthias Thanks

Re: [PHP] timing a session

2003-08-23 Thread Matthias Nothhaft
Damian Brown wrote: Hi, i haven't looked into it properly yet, but is there a way in PHP of recording the length of time a visitor stays on your website i can record the entry, but i don't know how to record the exit time There is no way to get this exactly! You cannot record the time a user is

Re: [PHP] file upload problem

2003-08-23 Thread Matthias Nothhaft
Did you get any error (displayed/logged) ? Test it like that: print_r($_FILES) // with php 4.1 use $HTTP_POST_FILES Now you can find your file at ...['tmp_name'] See also the php manual ;-) Regards, Matthias Matthias Wulkow wrote: Hallo Jim, am Samstag, 23. August 2003 um 21:32 hast Du

Re: [PHP] user-defined superglobals?

2003-08-23 Thread Matthias Nothhaft
a copy of the variable just a pointer to it. Jason Matthias Nothhaft wrote: Sorry this all is not what I'm looking for. I see it is not possible at the moment. It would be nice to have a php-function like declare_superglobal($_MYFRAMEWORK); And then use $_MYFRAMEWORK like $_GET. Thanks nevertheless

Re: [PHP] BMP - GD image?

2003-09-09 Thread Matthias Nothhaft
DvDmanDT wrote: Hello, I wanted to know if anyone has a good way to convert windows bitmaps into png, jpeg, gif or something else that GD2 can work with? The reason for this is that I wanna be able to colorize them in a special way which GD is great at... Just that GD can't handle BMPs so... My

Re: [PHP] Whats wrong with my code?

2003-09-16 Thread Matthias Nothhaft
Hi Stevie D Peele, you wrote: Can someone spot what Is wrong with my code? Please read your code carefully and check the writing of your variable $include! Sometimes you write $includes instead... It has to have the same name everywhere, PHP can't guess what you want ;-) What is the certain

Re: [PHP] add element to an array

2003-09-29 Thread Matthias Nothhaft
Hi Angelo Zanetti, you wrote: Hi, I want to add a new element to an array in php, is the following way the correct way? assuming that $chk is an array and $ID contains a value. $j = count($chk); $j++; $chk[$j] = $ID; Keep it simple, this is enough: $chk[] = $ID; This appends

Re: [PHP] Regular expression help

2003-11-25 Thread Matthias Nothhaft
Hi, ^ inside [] means not the following chars, so your expression means: if ($val contains no space , no tab \t and no newline \n) { //do the job ... } Regards, Matthias Ben wrote: I need someone to tell me exactly what this regular-expression means: if(ereg([^ \t\n],$val)) { //

[PHP] session with output compression?

2003-12-10 Thread Matthias Nothhaft
Hi List, I wanna use PHP's session management with output compression, but I have the following problem: Session-IDs are not automatically appended to URLs. :-( The compression works fine and makes the page nice for slow internet connections. The session management works also fine, but only

[PHP] Fatal Error: PDFlib error ...

2003-12-10 Thread Matthias Nothhaft
Hi, I'm trying to get the pdflib work... I use pdflib 4.0.3 downloaded from pdflib.de and php 4.3.4 on Debian Linux. I wrote this test code: ?php dl(libpdf_php.so); $pdf = pdf_new(); pdf_begin_page($pdf, 421, 595); pdf_set_font($pdf, Helvetica, 24, host); pdf_show_xy($pdf, Hello World!, 75,

Re: [PHP] Fatal Error: PDFlib error ...

2003-12-12 Thread Matthias Nothhaft
Evan Nemerson wrote: On Wednesday 10 December 2003 09:08 pm, Matthias Nothhaft wrote: Hi, I'm trying to get the pdflib work... [] Fatal error: PDFlib error: function 'PDF_begin_page' must not be called in 'object' scope in /var/www/Software/cms4rent/pdftest.php on line 5 Why

[PHP] cli input and screen question(s)

2004-02-13 Thread Matthias Nothhaft
Hi all of you, does someone know how to observe the keyboard input e.g. in a while loop so that I can do other stuff between two keypresses!? And is it possible to make a cli script responsable for special keys like cursor, function (F1, F2...) or Control/Alt-[somekey], PageUp/Down, Enter,

Re: [PHP] cli input and screen question(s)

2004-02-15 Thread Matthias Nothhaft
Hi Adam Bregenzer, you wrote: On Fri, 2004-02-13 at 18:25, Matthias Nothhaft wrote: The other problem is: I would like to draw a screen like midnight commander does. Is there a way to get that work with PHP ? Ahh, sounds like a Slackware fan. :) don't really know what it is. I just wanna write