Re: [PHP] Static Array vs MySQL query

2003-11-29 Thread John Nichel
- Edwin - wrote: Hi, On 2003/11/29, at 8:10, John Nichel wrote: Hi, I'm designing my site to use drop down menus, and am having php generate the content of the main manus, as well as the sub-menus. What I'm wondering is what the performance hit will be with putting all the menu variables

[PHP] File upload issue

2003-11-29 Thread Binay
Hi all, In my php.ini file, file_uploads value is set to OFF. Hence stopping HTTP_UPLOAD functionlaity. But in my script i am turning it On using ini_set(file_uploads,1) but still it doesn't upload the file. I don have access to modify the php.ini file hence trying to play with script only.

Re: [PHP] File upload issue

2003-11-29 Thread Robert Cummings
On Sat, 2003-11-29 at 02:36, Binay wrote: Hi all, In my php.ini file, file_uploads value is set to OFF. Hence stopping HTTP_UPLOAD functionlaity. But in my script i am turning it On using ini_set(file_uploads,1) but still it doesn't upload the file. I don have access to modify the

RE: [PHP] File upload issue

2003-11-29 Thread Bronislav Klucka
Are u working in safe mode? What does the ini_set function return? did u try ini_get then to see what is current value? Brona Hi all, In my php.ini file, file_uploads value is set to OFF. Hence stopping HTTP_UPLOAD functionlaity. But in my script i am turning it On using

Re: [PHP] File upload issue

2003-11-29 Thread Binay
- Original Message - From: Bronislav Klucka [EMAIL PROTECTED] To: PHP Konference [EMAIL PROTECTED]; Binay [EMAIL PROTECTED] Sent: Saturday, November 29, 2003 1:08 PM Subject: RE: [PHP] File upload issue Are u working in safe mode? safe_mode is OFF What

Re: [PHP] DAMN

2003-11-29 Thread Gerard Samuel
On Saturday 29 November 2003 12:54 am, Bronislav Klucka wrote: because we know that this bug has easy solution... [jumps in] Yes - X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600. [jumps out] -- PHP General Mailing List

RE: [PHP] DAMN

2003-11-29 Thread Bronislav Klucka
what does it mean? -Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED] Sent: Saturday, November 29, 2003 8:50 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] DAMN On Saturday 29 November 2003 12:54 am, Bronislav Klucka wrote: because we know that this bug has easy

[PHP] Test

2003-11-29 Thread César Aracena
Send test :)

[PHP] Re: Test

2003-11-29 Thread Eric
why do you test here at the honored PHP General mailing list? César aracena [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Send test :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem loading fonts in gd()

2003-11-29 Thread Eric
Hello all PHP gurus I have a small problem about loading fonts with imageloadfont() I have copyed fonts with the extension .fon or .ttf to the same directory as my script, and i give them the font as an argument: $font = imageloadfont('arial.ttf'); But i just keep getting the message: Warning:

Re: [PHP] DAMN

2003-11-29 Thread Gerard Samuel
On Saturday 29 November 2003 03:20 am, Bronislav Klucka wrote: what does it mean? I don't want to get into this debate too much, but from what little I read when it was going on earlier this past week, people who seemed to complain the most are the ones using Outlook. Seems like Outlook

[PHP] what's the story with html_entity_decode?

2003-11-29 Thread Per Jessen
According to the manual it appears to support UTF-8, but it complains loudly about not supporting MBCS when invoked? Warning: cannot yet handle MBCS in html_entity_decode()! Will html_entity_decode produce output in UTF-8 when e.g. invoked like this: $a=Zuuml;rich, \klonk\ aelig;

[PHP] Checking if a host is online

2003-11-29 Thread Jason Giangrande
I'm creating an application for an Intranet that, among other things, is supposed to check to see if particular hosts are online, and if so, what their IP address is. Anyone know how I can accomplish this? I tried using exec(host $host); (where $host is the hostname) and while this gets the IP

Re: [PHP] Checking if a host is online

2003-11-29 Thread Adam Maas
Jason Giangrande wrote: I'm creating an application for an Intranet that, among other things, is supposed to check to see if particular hosts are online, and if so, what their IP address is. Anyone know how I can accomplish this? I tried using exec(host $host); (where $host is the hostname) and

Re: [PHP] Checking if a host is online

2003-11-29 Thread Jason Giangrande
On Sat, 2003-11-29 at 12:20, Adam Maas wrote: why not try: passthru(ping $host); Adam That still takes a little while to execute on multiple hosts, Plus I need to modify the output of the command to print just the IP address and discard the rest of the output. -- Jason Giangrande

Re: [PHP] Checking if a host is online

2003-11-29 Thread Adam Maas
Adam Maas wrote: Jason Giangrande wrote: I'm creating an application for an Intranet that, among other things, is supposed to check to see if particular hosts are online, and if so, what their IP address is. Anyone know how I can accomplish this? I tried using exec(host $host); (where $host is

[PHP] Suggestions for optimization?

2003-11-29 Thread Galen
I'm working on some database search ranking code. It currently represents 95-98% of the time spent when doing fuzzy seaches. I have tried my best to optimize my code - algorithmic shortcuts, eliminating session variables, unsetting irrelevant results, etc and benchmarking to find the best

Re: [PHP] Checking if a host is online

2003-11-29 Thread David T-G
Jason -- ...and then Jason Giangrande said... % % I'm creating an application for an Intranet that, among other things, is % supposed to check to see if particular hosts are online, and if so, what % their IP address is. Anyone know how I can accomplish this? I tried ... % a while to execute

[PHP] EOR (Was: [PHP] DAMN)

2003-11-29 Thread Chris Shiflett
--- Bronislav Klucka [EMAIL PROTECTED] wrote: I've just realized I'm replaying to JeRRy only Could anybody fixt this problem by setting the Reply To header correctly? to be able to reply PHP conf. directly using Reply button?!!! Hi Brona, Not only has this been discussed in great detail,

[PHP] speed conection ???

2003-11-29 Thread tony
Hi , I need to know the conecction speed of a person who is visiting my site. How can I know his speed? Thaks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

php-general Digest 29 Nov 2003 18:27:30 -0000 Issue 2444

2003-11-29 Thread php-general-digest-help
php-general Digest 29 Nov 2003 18:27:30 - Issue 2444 Topics (messages 171340 through 171363): Re: DAMN 171340 by: RT 171343 by: John Nichel 171349 by: Gerard Samuel 171350 by: Bronislav Klucka 171354 by: Gerard Samuel Re: php as cgi script

Re: [PHP] Problem loading fonts in gd()

2003-11-29 Thread Jason Wong
On Saturday 29 November 2003 23:15, Eric wrote: I have a small problem about loading fonts with imageloadfont() I have copyed fonts with the extension .fon or .ttf to the same directory as my script, and i give them the font as an argument: $font = imageloadfont('arial.ttf'); But i just

Re: [PHP] Checking if a host is online

2003-11-29 Thread Duncan
Jason Giangrande said: command (ping -c 1 $host), and while I could get that to work, since it returns non-zero status if the host can not be contacted, it takes quite a while to execute for even a few hosts at once. fping may help. Running a background job that just monitors ping status and

Re: [PHP] Problem loading fonts in gd()

2003-11-29 Thread Eric
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Saturday 29 November 2003 23:15, Eric wrote: I have a small problem about loading fonts with imageloadfont() I have copyed fonts with the extension .fon or .ttf to the same directory as my script, and i give them

Re: [PHP] Problem loading fonts in gd()

2003-11-29 Thread Jason Wong
On Sunday 30 November 2003 03:59, Eric wrote: I have already tried that: imageloadfont(C:/WINDOWS/Fonts/arial.ttf); i also tried: imageloadfont(C:\\WINDOWS\\Fonts\\arial.ttf); I ALSO tried this: imageloadfont($_SERVER['DOCUMENT_ROOT'].'/gd_test.php'); and that didn't work either

[PHP] php blog site for 123php.com

2003-11-29 Thread Ryan A
Hi, Can anyone recomend a good blog software that does the following: 1. Have differient articles on the first page and show the first x ( or 10) words then a link to the rest eg Php make leaps and bounds in the field of ... click here to read article 2. Users have to register to post

RE: [PHP] php blog site for 123php.com

2003-11-29 Thread Boaz Yahav
Have a look at http://www.weberblog.com. If the site does what you need, you can follow the powered by link on the bottom of every page. Sincerely berber Visit http://www.weberdev.com/ http://www.weberblog.com/ Today!!! To see where PHP might take you tomorrow. Share your code :

Re: [PHP] Checking if a host is online

2003-11-29 Thread Jason Giangrande
On Sat, 2003-11-29 at 12:32, David T-G wrote: 3) At the very least, cut your ping timeout down to the smallest acceptable; in general, a full second is plenty of time to get nearly anywhere on your continent (ain't it great? :-) and so your intranet should be more than happy with that

[PHP] completely stumped by ereg()

2003-11-29 Thread Greg Beaver
Why doesn't this match? var_dump(ereg('C:W', 'C:WINNTTEMP\\tst5B.tmp')); should print int(1), prints bool(false) Thanks, Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] completely stumped by ereg()

2003-11-29 Thread sophie
You should try var_dump(ereg('C:W', 'C:\\WINNT\\TEMP\tst5B.tmp')); The reason is that in simple quotes, antislashes don't have to be escaped. Still, they need to be escaped in a regular epr ie in the first argument of ereg() (the first and the secon argument are both string, but in the

[PHP] Problem in the output of an array

2003-11-29 Thread orlandopozo
I have this code, I would like, if this could be done ? $array['dim1']['dim2']['dim3'][3] = value; $dim1 = 'dim1'; $dim2 = 'dim2'; $dim3 = 'dim3'; $dim4 = 3; $test = [$dim1][$dim2][$dim3][$dim4]; $result = $array$test; echo $result; ? The output is : Array[dim1][dim2][dim3][3] I need that

Re: [PHP] Checking if a host is online

2003-11-29 Thread [EMAIL PROTECTED]
This may be OT but have you looked at Netsaint (http://www.netsaint.org/ and http://www.netsaint.org/indexold.php), now called Nagios (http://www.nagios.org/) by the looks of it. Note: It's not written in PHP from what I remember. You may be able to get some ideas from it or even use it. I've

[PHP] Problem in the output of an array

2003-11-29 Thread orlandopozo
I have this code, I would like, if this could be done ? $array['dim1']['dim2']['dim3'][3] = value; $dim1 = 'dim1'; $dim2 = 'dim2'; $dim3 = 'dim3'; $dim4 = 3; $test = [$dim1][$dim2][$dim3][$dim4]; $result = $array$test; echo $result; ? The output is : Array[dim1][dim2][dim3][3] I need that

Re: [PHP] Problem in the output of an array

2003-11-29 Thread sophie
I'm soory but your code doesn't make me understand what you want to do... Be more precise, it will help you to get some help I have this code, I would like, if this could be done ? $array['dim1']['dim2']['dim3'][3] = value; $dim1 = 'dim1'; $dim2 = 'dim2'; $dim3 = 'dim3'; $dim4 = 3;

Re: [PHP] Problem in the output of an array

2003-11-29 Thread sophie
now i understand your pb but have no idea to solve it good luck... I'm soory but your code doesn't make me understand what you want to do... Be more precise, it will help you to get some help I have this code, I would like, if this could be done ? $array['dim1']['dim2']['dim3'][3] =

Re: [PHP] Problem in the output of an array

2003-11-29 Thread Robert Cummings
On Sat, 2003-11-29 at 19:29, [EMAIL PROTECTED] wrote: I'm soory but your code doesn't make me understand what you want to do... Be more precise, it will help you to get some help I have this code, I would like, if this could be done ? $array['dim1']['dim2']['dim3'][3] = value;

[PHP] Re: Problem in the output of an array

2003-11-29 Thread Greg Beaver
?php $array['dim1']['dim2']['dim3'][3] = value; $dim1 = 'dim1'; $dim2 = 'dim2'; $dim3 = 'dim3'; $dim4 = 3; $result = {$array[$dim1][$dim2][$dim3][$dim4]}; echo $result; ? Regards, Greg -- phpDocumentor http://www.phpdoc.org [EMAIL PROTECTED] wrote: I have this code, I would like, if this could be

Re: [PHP] Problem in the output of an array

2003-11-29 Thread Robert Cummings
On Sat, 2003-11-29 at 19:47, Robert Cummings wrote: On Sat, 2003-11-29 at 19:29, [EMAIL PROTECTED] wrote: I'm soory but your code doesn't make me understand what you want to do... Be more precise, it will help you to get some help I have this code, I would like, if this could be done

[PHP] Re: Problem in the output of an array

2003-11-29 Thread john
$result = eval( 'return $array'.$test.';' ); Um... echo $array[$dim1][$dim2][$dim3][$dim4]; eval == evil. I can't think of a single legimiate reason why you'd want/need to make a string [$dim1] first, and if you have to I'd suspect that something is very wrong with the way you are

[PHP] move_uploaded_file, umask, and permissions

2003-11-29 Thread David T-G
Hi, all -- I have set my umask to 117 (and I change it when making a directory) and I use move_uploaded_file to handle submitted files. The temporary file is mode 600 when it lands in /var/tmp but somehow gets changed to 666 during the move. It seems that move_uploaded_file changes the file

Re: [PHP] php blog site for 123php.com

2003-11-29 Thread Ryan A
Hi, Nope, installed the 26 megs but still its not all that good...at least I couldnt get it to work... one last requirment i forgot to mention was...I need to ask the user if the article was good and to rate it from 1-10 like hotscripts etc Any ideas? All we will have on 123php.com is articles.

Re: [PHP] Re: Problem in the output of an array

2003-11-29 Thread Robert Cummings
On Sat, 2003-11-29 at 21:25, john wrote: $result = eval( 'return $array'.$test.';' ); Um... echo $array[$dim1][$dim2][$dim3][$dim4]; eval == evil. I can't think of a single legimiate reason why you'd want/need Eval is not evil, but it is often insecurely used. It has it's purpose

[PHP] entering in text data and losing the \n

2003-11-29 Thread Randy Johnson
I have a form with a text area. When the user submits the data it is saved to a mysql database in a field of type text. When I extract the data from the database and display it in php it loses the line return and the data is all crammed together. Here is an example This is line 1 This is

Re: [PHP] entering in text data and losing the \n

2003-11-29 Thread John Nichel
Randy Johnson wrote: I have a form with a text area. When the user submits the data it is saved to a mysql database in a field of type text. When I extract the data from the database and display it in php it loses the line return and the data is all crammed together. Here is an example This

Re: [PHP] entering in text data and losing the \n

2003-11-29 Thread Chris Shiflett
--- Randy Johnson [EMAIL PROTECTED] wrote: I have a form with a text area. When the user submits the data it is saved to a mysql database in a field of type text. When I extract the data from the database and display it in php it loses the line return and the data is all crammed

Re: [PHP] entering in text data and losing the \n

2003-11-29 Thread Randy Johnson
Yep that was it. Thank you very much. Randy - Original Message - From: Chris Shiflett [EMAIL PROTECTED] To: Randy Johnson [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, November 30, 2003 1:17 AM Subject: Re: [PHP] entering in text data and losing the \n --- Randy Johnson

php-general Digest 30 Nov 2003 06:29:41 -0000 Issue 2445

2003-11-29 Thread php-general-digest-help
php-general Digest 30 Nov 2003 06:29:41 - Issue 2445 Topics (messages 171364 through 171388): Re: Problem loading fonts in gd() 171364 by: Jason Wong 171366 by: Eric 171367 by: Jason Wong Re: Checking if a host is online 171365 by: Duncan 171370 by:

RE: [PHP] BUG: require_once() or die(); = fatal error

2003-11-29 Thread Rasmus Lerdorf
By default the CLI version turns off the html in the error messages. And no, really, there is no bug here. You are testing the return code of something that doesn't have one. It doesn't make sense. -Rasmus On Fri, 28 Nov 2003, Daevid Vincent wrote: Hmm... Well Rasmus, I do see your point,