php-general Digest 20 Jun 2004 13:48:39 -0000 Issue 2832

2004-06-20 Thread php-general-digest-help
php-general Digest 20 Jun 2004 13:48:39 - Issue 2832 Topics (messages 188673 through 188691): Re: heppp my php kills the browser 188673 by: water_foul 188674 by: Joel Kitching 188678 by: Aidan Lister 188679 by: Michael Lauzon 188680 by: Bob Eldred

Re: [PHP] Regular Expressions Tester/designer

2004-06-20 Thread Tom Rogers
Hi, Sunday, June 20, 2004, 7:23:53 AM, you wrote: A Anyone know of a good regular expressions tester/designer for php coding A running windows. A I've looked at the Rad Software Regular Expressions Designer and it A looks pretty good except that it is intended for .net and it really A doesn't

Re: [PHP] Regular Expressions Tester/designer

2004-06-20 Thread Ulrik S. Kofod
Tom Rogers sagde: This works with perl regular expressions http://weitz.de/files/regex-coach.exe Thanks! Great tool! I really needed something like that. It just seems like it can't handle $1, $2 ...$x in the replacement string? Isn't there a way to make that work ? -- PHP General

[PHP] Re: PHP5: serialize private properties

2004-06-20 Thread Christof Rath
If anyone else has the same problem, I found an entry in the bug database: http://bugs.php.net/bug.php?id=28082 c. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] wierd sendmail/mail problems

2004-06-20 Thread Jason Wong
On Saturday 19 June 2004 06:46, Pam Derks wrote: No, nothing fancy all on same machine, running on Apache... So what exactly is different between the functioning case and the non-functioning case? Eg are you running them differently, ie one from the command line and the other via webserver?

[PHP] Re: is there any application ,

2004-06-20 Thread Lester Caine
Ravi wrote: is there any windows application , by using we can produce standalone php ..exe files ? No - PHP runs on the server and produces pages for any browser. Trying to produce a stand alone application would require Apache + PHP + your pages all in one package. Something that is not likely

[PHP] is there any application , by using i can produce php exe files in windows ?

2004-06-20 Thread Ravi
HI, is there any windows application , by using we can produce standalone php .exe files ? --- knowledge is power share it --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Auth_User

2004-06-20 Thread Gabor Niederländer
Hi! I have installed a Apache Server (+php) in a Windows NT network. I would like to identify the Windows NT user visiting my php pages. When I was using IIS, I think it was quite easy to find it out through the $_SERVER['AUTH_USER'] variable. But it doesn't seem to work with apache. Is there

Re[2]: [PHP] Regular Expressions Tester/designer

2004-06-20 Thread Tom Rogers
Hi, Sunday, June 20, 2004, 5:30:39 PM, you wrote: USK Tom Rogers sagde: This works with perl regular expressions http://weitz.de/files/regex-coach.exe USK Thanks! Great tool! I really needed something like that. USK It just seems like it can't handle $1, $2 ...$x in the replacement

Re: [PHP] variable question

2004-06-20 Thread Daniel Clark
How about: eval( '$lie' . x ) ; is there a way to use one variable to create another? Example $poo=1 and i want $lie1 OR $poo=2 and i want $lie2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] umm i am confused...

2004-06-20 Thread Daniel Clark
Looks like several lines need quotes around the print statements and \ inside. print(trtdform Method=\GET\ action=\module/personal/delete.php\delete/td/tr); ?php //the function for adding new addresses function loop_new_address($loopnum,$url,$name){ //the ${'link' . $loopnum} says put $link and

Re: [PHP] how to iterate over fields names with mysql_fetch_assoc

2004-06-20 Thread franciccio
Something easier: while ($row=mysql_fetch_assoc($result)) { foreach ($row as $k= $val) { switch ($k) { case 'artist_name': // do sometihing here, you may want to use $val; break; case 'urlPath': // do something here you may

Re: [PHP] Re: is there any application ,

2004-06-20 Thread Marek Kilimajer
Lester Caine wrote --- napísal:: Ravi wrote: is there any windows application , by using we can produce standalone php ..exe files ? Try http://www.roadsend.com/home/index.php?pageID=compiler No - PHP runs on the server and produces pages for any browser. Not true, php can be also used from

Re: [PHP] Re: is there any application ,

2004-06-20 Thread Greg Donald
On Sun, 20 Jun 2004 16:46:04 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: Not true, php can be also used from commad line, php-gtk even enables you to create window gui applications. Yeah.. the little PHP/OpenGL thingy on /. last week was pretty much standalone, no apache server was

[PHP] Re: Auth_User

2004-06-20 Thread Gerben
This var means something else when you write the following code: Header(WWW-Authenticate: Basic realm=\Enter username and password\); Header(HTTP/1.0 401 Unauthorized); Your browser will produce a popup requesting a username an password This it what you get returned when using

[PHP] Mysql fetch_row()

2004-06-20 Thread Gerben
when I call mysql_fetch_row() I get an array, but this Array doesn't have the fieldnames as array-keys. I've seen several codes from others where they use something like print $row['key']; This doesn't work on my server. Is this because my server-software is too old or am I using the wrong

Re: [PHP] Mysql fetch_row()

2004-06-20 Thread Greg Donald
On Sun, 20 Jun 2004 19:05:31 +0200, Gerben [EMAIL PROTECTED] wrote: when I call mysql_fetch_row() I get an array, but this Array doesn't have the fieldnames as array-keys. I've seen several codes from others where they use something like print $row['key']; 'key' simply needs to be the

RE: [PHP] Mysql fetch_row()

2004-06-20 Thread rich
when I call mysql_fetch_row() I get an array, but this Array doesn't have the fieldnames as array-keys. I've seen several codes from others where they use something like print $row['key']; This doesn't work on my server. Is this because my server-software is too old or am I using the

Re: [PHP] Why is PHP Segmentation Faulting?!?!?!?

2004-06-20 Thread Marek Kilimajer
Jeff wrote --- napsal:: Hey all Total PHP newbie here. I posted a day ago about php working 'intermittently'. I was told to check my apache logs which was a good hint cause php is seg faulting. I've broken it down to my connection script to my database and I ran it in gdb to see if it would

Re: [PHP] Mysql fetch_row()

2004-06-20 Thread Daniel Clark
Use mysql_fetch_assoc() for fieldnames when I call mysql_fetch_row() I get an array, but this Array doesn't have the fieldnames as array-keys. I've seen several codes from others where they use something like print $row['key']; This doesn't work on my server. Is this because my

[PHP] MySql Close problem

2004-06-20 Thread Erik Gjertsen
I have problem with mysql_close I dont understand why. Are ther someone that have any proposal? Thank for any help Erik Gjertsen Here is the code $query = SELECT usrid FROM users WHERE username; $result = @mysql_query ($query); //Run the query if (mysql_num_rows($result) == 0) { // Make

[PHP] comparing timestamps

2004-06-20 Thread Chris Mach
I want to compare a timestamp in my database with the current time. I want to be able to tell if the timestamp is within 5 mins of the current time. How would I do this? Please? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version:

[PHP] Re: comparing timestamps

2004-06-20 Thread Kim Steinhaug
Well, Since the current timestamt is now, and 5 minutes equals 60seconds * 5 minutes = 300, this would give you your range as : $range = time() - 300; If you are working with time() in your database your select would be something like : select * from table where timestamp = $range -- -- Kim

[PHP] Re: is there any application , by using i can produce php exe files in windows ?

2004-06-20 Thread Kim Steinhaug
Well, You could have a look at this one, http://gtk.php.net/ Though I never had the lucury of getting anywhere with it, it has the possibility to create standalone EXE. There is (Atleast the last time i checked) still a problem with the EXE opening an extra command prompt window, which makes it

[PHP] Re: Mysql fetch_row()

2004-06-20 Thread Kim Steinhaug
Whatabout : mysql_fetch_array() or mysql_fetch_object() Both gives you both the results and the names of the coloumns. Maby I didnt get the question right but since nobody else mentioned it, .) -- -- Kim Steinhaug -- There are

Re: [PHP] Re: is there any application , by using i can produce php exe files in windows ?

2004-06-20 Thread Marek Kilimajer
Kim Steinhaug wrote --- napsal:: Well, You could have a look at this one, http://gtk.php.net/ Though I never had the lucury of getting anywhere with it, it has the possibility to create standalone EXE. There is (Atleast the last time i checked) still a problem with the EXE opening an extra command

Re: [PHP] comparing timestamps

2004-06-20 Thread Marek Kilimajer
Chris Mach wrote --- napísal:: I want to compare a timestamp in my database with the current time. I want to be able to tell if the timestamp is within 5 mins of the current time. How would I do this? Please? timestamp_column BETWEEN UNIX_TIMESTAMP(NOW() - INTERVAL 5 MINUTE) AND

[PHP] Re: Can I detect size of files which are too large to upload?

2004-06-20 Thread Kim Steinhaug
Well, there is really a short answer for this one. NO! I guess you want to inform the user that a 30MB file is to much to handle for the default 2MB barrier of PHP. Uploading the 30MB file to inform the user that 2MB is what we can handle is kinda to late.. Ive been looking several times for

[PHP] Printing invoices

2004-06-20 Thread bskolb
Could someone direct me to a printing solution from a static document that would render variable data elements to be sent to a printer queue? I was thing perhaps of an RTF for the static page, but can't seem to locate any way of inserting the variable data, then spit out each occurrance to a

[PHP] Re: Printing invoices

2004-06-20 Thread Manuel Lemos
Hello, On 06/20/2004 08:30 PM, Bskolb wrote: Could someone direct me to a printing solution from a static document that would render variable data elements to be sent to a printer queue? I was thing perhaps of an RTF for the static page, but can't seem to locate any way of inserting the variable

Re: [PHP] Re: Printing invoices

2004-06-20 Thread Larry Brown
I would highly recommend pdf. I use it for different reports. I use pdflib which my employer has gratiously afforded; however, I believe there is an open source version. I don't know how well it works, but pdflib creates some really attractive results. Larry. On Sun, 2004-06-20 at 19:33,

[PHP] hi all can you read me ?

2004-06-20 Thread Pierre
Hi all just wanna check if you can read me Thx

Re: [PHP] hi all can you read me ?

2004-06-20 Thread Joel Kitching
I'm not quite sure, do you have something written on you? On Mon, 21 Jun 2004 01:51:51 +0200, Pierre [EMAIL PROTECTED] wrote: Hi all just wanna check if you can read me Thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] hi all can you read me ?

2004-06-20 Thread Marek Kilimajer
Pierre wrote --- napísal:: Hi all just wanna check if you can read me Thx http://www.amazon.com/exec/obidos/tg/detail/-/0064432521/qid=1087779137 Well, I feel a little old to read you :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] hi all can you read me ?

2004-06-20 Thread Michael Lauzon
That's just to funny! On Mon, 21 Jun 2004 02:55:58 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: Pierre wrote --- napísal:: Hi all just wanna check if you can read me Thx http://www.amazon.com/exec/obidos/tg/detail/-/0064432521/qid=1087779137 Well, I feel a little old to read

RE: [PHP] is there any application , by using i can produce php exe files in windows ?

2004-06-20 Thread David Bevan
Hi Ravi, Not that I'm that far through the book yet, but Professional PHP4 by Apress (ISBN: 1590592484) has a chapter about Non-Web PHP Programming that you may want to check out. Regards, David Bevan GetAnyIdeas Web Design P. 416.452.9410 F. 416.570.4529 E. [EMAIL PROTECTED] W.

[PHP] plz help!compiled php but iam still getting old version ???

2004-06-20 Thread Ravi
HI, existing configuration : PHP Version 4.3.4 ( default rpm with fedora fc2 install) Server version: Apache/2.0.49 (default with fedora fc2 install) Server built: May 6 2004 07:15:13 NOw i want to install 4.3.3 , so i compiled and install ( with no errors ) if i type php -v at shell iam

Re: [PHP] plz help!compiled php but iam still getting old version ???

2004-06-20 Thread Michael Lauzon
Why do you want to install 4.3.3, when the latest version is 4.3.7? On Mon, 21 Jun 2004 19:07:32 -0400 (EDT), Ravi [EMAIL PROTECTED] wrote: HI, existing configuration : PHP Version 4.3.4 ( default rpm with fedora fc2 install) Server version: Apache/2.0.49 (default with fedora fc2

Re: [PHP] Printing invoices

2004-06-20 Thread Justin French
On 21/06/2004, at 9:30 AM, bskolb wrote: Could someone direct me to a printing solution from a static document that would render variable data elements to be sent to a printer queue? I was thing perhaps of an RTF for the static page, but can't seem to locate any way of inserting the variable

Re: [PHP] plz help!compiled php but iam still getting old version ???

2004-06-20 Thread Joel Kitching
Try looking in your apache configuration files for a reference to a PHP library file or something... Though I don't see the logic in installing an older version either. On Sun, 20 Jun 2004 21:53:37 -0400, Michael Lauzon [EMAIL PROTECTED] wrote: Why do you want to install 4.3.3, when the