Re: [PHP] No forums?

2005-11-04 Thread Robert Cummings
On Sat, 2005-11-05 at 02:37, GamblerZG wrote: > Robert Cummings wrote: > > > > I didn't use the word efficiency, I used the word efficacy (feel free to > > look it up). > > They're synonyms, and I do not see a big difference in their meanings. > Feel free to disambiguate. Efficiency is about ou

Re: [PHP] dependable combo boxes with mysql database

2005-11-04 Thread Bhoomi Vora
Hello, Thanks for the reply. But I do not know how to integrate javascript with php and mysql. I mean javascript can be written using code and fetching data from mysql is using $query,$result and $mysql_fetch_array. I am confused how to integrate this in php page. If anybody can help on t

Re: [PHP] No forums?

2005-11-04 Thread GamblerZG
Robert Cummings wrote: On Sat, 2005-11-05 at 02:17, GamblerZG wrote: Robert Cummings wrote: > On Sat, 2005-11-05 at 00:56, GamblerZG wrote: > >>Miles Thompson wrote: >> >>>You missed the most important: This list works, why break it? >> >>Nope, I did not miss it. It's just not a proper reply

[PHP] Re: match by relevancy

2005-11-04 Thread GamblerZG
John Taylor-Johnston wrote: I'm using PHP Version 4.3.9 and MySQL 4.1.12. I recently upgraded from PHP 4.1.x and MySQL 4.0.x. Basically my SQL below now render empty set. It worked until my upgrade. Basically "ORDER BY relevancy DESC" no longer works, I think!? I got help building this $SQL he

Re: [PHP] No forums?

2005-11-04 Thread Robert Cummings
On Sat, 2005-11-05 at 02:17, GamblerZG wrote: > Robert Cummings wrote: > > On Sat, 2005-11-05 at 00:56, GamblerZG wrote: > > > >>Miles Thompson wrote: > >> > >>>You missed the most important: This list works, why break it? > >> > >>Nope, I did not miss it. It's just not a proper reply to t

Re: [PHP] No forums?

2005-11-04 Thread GamblerZG
PS: Sorry for missing verbs and articles in my last message. I have a good excuse: it't 2:22 AM here. *smilie* -- Best regards, Roman S.I. http://sf.net/projects/naturalgine/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] No forums?

2005-11-04 Thread GamblerZG
Robert Cummings wrote: > On Sat, 2005-11-05 at 00:56, GamblerZG wrote: > >>Miles Thompson wrote: >> >>>You missed the most important: This list works, why break it? >> >>Nope, I did not miss it. It's just not a proper reply to the message. I >>did not suggest to disable mailing lists or change t

Re: [PHP] No forums?

2005-11-04 Thread GamblerZG
Larry E. Ullman wrote: > One of the fallacies in your argument is that the lack of an official > forum on php.net implies "such distaste for message boards". I don't > have a big screen TV but I have anything but distaste for them! Well, let me give you a different example. I don't have a TV at a

[PHP] match by relevancy

2005-11-04 Thread John Taylor-Johnston
I'm using PHP Version 4.3.9 and MySQL 4.1.12. I recently upgraded from PHP 4.1.x and MySQL 4.0.x. Basically my SQL below now render empty set. It worked until my upgrade. Basically "ORDER BY relevancy DESC" no longer works, I think!? I got help building this $SQL here, so I'm hoping Sgt./Corpor

Re: [PHP] No forums?

2005-11-04 Thread Robert Cummings
On Sat, 2005-11-05 at 00:56, GamblerZG wrote: > Miles Thompson wrote: > > You missed the most important: This list works, why break it? > > Nope, I did not miss it. It's just not a proper reply to the message. I > did not suggest to disable mailing lists or change them in any way, so > the "br

Re: [PHP] No forums?

2005-11-04 Thread GamblerZG
Miles Thompson wrote: You missed the most important: This list works, why break it? Nope, I did not miss it. It's just not a proper reply to the message. I did not suggest to disable mailing lists or change them in any way, so the "break" factor does not apply. -- Best regards, Roman S.I.

Re: [PHP] No forums?

2005-11-04 Thread John Nichel
Larry E. Ullman wrote: All that being said, I think everyone should send me $5. I've monitored this list long enough to predict the most probable replies... Bah, I've got 10 times the posts you do since 2002, just from this email address. 75% of that $5 goes to me. ;) -- By-Tor.com ...it

[PHP] Re: No forums?

2005-11-04 Thread Curt Zirzow
On Fri, 04 Nov 2005 22:09:01 -0500, GamblerZG wrote: > AFAIK, there are no "official" forums for PHP. Considering the fact that > PHP is a web development tool, such distaste for message boards is ironic > at the least. So why exactly there aren't any forums on php.net? I wonder why you use the t

Re: [PHP] No forums?

2005-11-04 Thread John Nichel
GamblerZG wrote: Here's one you missed. Not to your liking? Pony up a few bucks, register a domain, get a host, and start a forum yourself. Do it nice enough, and maybe, just maybe, you can be 'official'. -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP General Maili

Re: [PHP] No forums?

2005-11-04 Thread Larry E. Ullman
AFAIK, there are no "official" forums for PHP. Considering the fact that PHP is a web development tool, such distaste for message boards is ironic at the least. So why exactly there aren't any forums on php.net? One of the fallacies in your argument is that the lack of an official forum o

[PHP] Unsubscribing from several PHP lists

2005-11-04 Thread Murray @ PlanetThoughtful
Hi All, Does anyone know of a way to unsubscribe an email address from the PHP email lists when you can't send a reply to the confirmation email? My host for my currently subscribed email address has an issue with its SSL certificate which means that I can't send replies from that account (w

[PHP] Register Globals (more)

2005-11-04 Thread John Taylor-Johnston
Patience please :) See my html below. Basically, if type=checkbox is checked, I'm trying to build $to string in mail(). parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING line 4 How do I rebuild this peice of code to be register_globals=off f

Re: [PHP] No forums?

2005-11-04 Thread Miles Thompson
You missed the most important: This list works, why break it? (Apart from a personal dislike of most forum formats - they're no improvement. I can ding down a list of emails a lot more quickly than clicking in and out of forum topics.) MT At 11:09 PM 11/4/2005, GamblerZG wrote: AFAIK, the

[PHP] Re: Register Globals

2005-11-04 Thread Curt Zirzow
On Thu, 03 Nov 2005 21:17:39 -0500, John Taylor-Johnston wrote: > Ok, you are all used to working with register_gloabsl=off. > > mail($to, stripslashes($subject), wordwrap($message, 60), "From: > $from\r\n"); > > I change this line to: > > mail($to, stripslashes($_POST["subject"]), wordwrap($_P

Re: [PHP] No forums?

2005-11-04 Thread Robert Cummings
On Fri, 2005-11-04 at 22:09, GamblerZG wrote: > AFAIK, there are no "official" forums for PHP. Considering the fact that > PHP is a web development tool, such distaste for message boards is > ironic at the least. So why exactly there aren't any forums on php.net? > > I've monitored this list lon

[PHP] PGP 5 start up issue

2005-11-04 Thread Vizion
php 5 on windows xp with apache 2 and mysql 5. Php start up unable to load dynamic library: E:\php\ext\php_bz2.dll with error 'The specified module could not be found' same for and php_yaz.dll I have php5ts.dll in both E:\php\ and E:\php\ext I had a similar problem for php_mcrypt which was solve

Re: [PHP] Register Globals

2005-11-04 Thread John Taylor-Johnston
Got it: mail($to, $_POST["subject"], wordwrap($_POST["message"], 60), "From: {$_POST["from"]}\r\n"); No more errors. But nothing comes through from smtp. I checked to be sure with phpinfo. All values exist. This worked though: mail("[EMAIL PROTECTED],[EMAIL PROTECTED]", "123", "456", "From: [

Re: [PHP] Register Globals

2005-11-04 Thread tg-php
I'm guessing it's because of the double quotes within double quotes in the "From" part: mail($to, stripslashes($_POST["subject"]), wordwrap($_POST["message"], 60), "From: $_POST["from"]\r\n"); Your $_POST["subject"] is ok because that's all that's in that part of the parameter, but the part:

Re: [PHP] Register Globals

2005-11-04 Thread Larry E. Ullman
mail($to, stripslashes($_POST["subject"]), wordwrap($_POST ["message"], 60), "From: $_POST["from"]\r\n"); and I get: Parse error: parse error, unexpected '\"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /www-html/emailer/index.html on line 41 The use of $var['index'] or $var["index"

[PHP] Register Globals

2005-11-04 Thread John Taylor-Johnston
Ok, you are all used to working with register_gloabsl=off. mail($to, stripslashes($subject), wordwrap($message, 60), "From: $from\r\n"); I change this line to: mail($to, stripslashes($_POST["subject"]), wordwrap($_POST["message"], 60), "From: $_POST["from"]\r\n"); and I get: Parse error: p

[PHP] Re: extracting foo.bar from path/to/file.php/foo.bar

2005-11-04 Thread Curt Zirzow
On Fri, 04 Nov 2005 09:59:16 -0500, Leonard Burton wrote: > Greetings, > > What do I need to do to extract foo.bar from path/to/file.php/foo.bar > > $_SERVER['REQUEST_URI'] will return the whole string but is there anything > more direct than doing a regex and 'REQUEST_URI'? See: $_SERVER['PATH

Re: [PHP] reg ex help

2005-11-04 Thread Curt Zirzow
On Fri, 04 Nov 2005 14:09:06 -0500, conditional motion wrote: > Here is what the field content from the database would look like. I have > removed any sensitive data. > > str = "Name;Grill Transom (GT302)^% - > Sort;Find/Replace^% - Calc;2568.09x^% - > Type;;;

RE: [PHP] protect password?

2005-11-04 Thread bruce
here again the solution could be managed by the host/sys admin setting the appropriate privs for the files. in either case the sys admin should be protecting your files from view by other users!!! although i can see why one would go with the route where you deal with the env vars... my priam

Re: [PHP] Sessions and register_long_arrays

2005-11-04 Thread Unknown Unknown
how do you reference the sessions? do you refrence them *with* the old arrays? because that would obviously be a problem

RE: [PHP] protect password?

2005-11-04 Thread Pablo Gosse
[snip] pablo... i fail to see how your suggestion is much more secure than placing the user/passwd information in a file that's outside the web access space, and then including the file. in either case, the user wouldn't be able to read the include file. [/snip] Greeting, Bruce. On a dedicated

RE: [PHP] protect password?

2005-11-04 Thread bruce
pablo... i fail to see how your suggestion is much more secure than placing the user/passwd information in a file that's outside the web access space, and then including the file. in either case, the user wouldn't be able to read the include file. -bruce -Original Message- From: Pablo

RE: [PHP] protect password?

2005-11-04 Thread Pablo Gosse
[snip] Some functions need you to provide username and password, for instance odbc_connect. Even though the username/password just has minimum access privileges to the resource, putting it there in clear text in a script gives me heartburn. How do people handle username/password in such kind o

[PHP] Re: protect password?

2005-11-04 Thread Ben Litton
I'm not sure if there's a way around this, though there's a few simple precautions you can take. You can put a function that returns the resource in an include file outside of the public html folders, which helps a little bit. It's also always good to give the least permission possible and

RE: [PHP] extracting foo.bar from path/to/file.php/foo.bar

2005-11-04 Thread Jim Moseby
> > [snip] > What do I need to do to extract foo.bar from path/to/file.php/foo.bar > [/snip] > > The manual is your friend ;o) > > http://www.php.net/basename/ > Beware that, in the case of an url like "http://www.example.com/path/to/file.php/foo.bar?foo=bar&bar=foo";, basename() will return e

[PHP] protect password?

2005-11-04 Thread Bing Du
Hello, Some functions need you to provide username and password, for instance odbc_connect. Even though the username/password just has minimum access privileges to the resource, putting it there in clear text in a script gives me heartburn. How do people handle username/password in such kind

Re: [PHP] reg ex help

2005-11-04 Thread Jochem Maas
explode on this first: '^% -' then probably on explode ';' like Jay mentioned. then you can probably massage the really weird stuff into shape somehow, stuff like (wtf :-)): Back Number Font;%Athletic^Athletic ..hth conditional motion wr

Re: [PHP] reg ex help

2005-11-04 Thread Dan McCullough
Whos responsible for putting all that information into one field. LOL On 11/4/05, conditional motion <[EMAIL PROTECTED]> wrote: > The name like "Roch Small Sum" and others dont change, they will be in > there whether there is a value associated with them or not. > > > On 11/4/05, conditional moti

Re: [PHP] reg ex help

2005-11-04 Thread conditional motion
The name like "Roch Small Sum" and others dont change, they will be in there whether there is a value associated with them or not. On 11/4/05, conditional motion <[EMAIL PROTECTED]> wrote: > Here is what the field content from the database would look like. I > have removed any sensitive data. >

Re: [PHP] reg ex help

2005-11-04 Thread conditional motion
Here is what the field content from the database would look like. I have removed any sensitive data. str = "Name;Grill Transom (GT302)^% - Sort;Find/Replace^% - Calc;2568.09x^% - Type;Veck^% - PO Number;^% - Previous Order Number;^%%

RE: [PHP] extracting foo.bar from path/to/file.php/foo.bar

2005-11-04 Thread Pablo Gosse
[snip] What do I need to do to extract foo.bar from path/to/file.php/foo.bar [/snip] The manual is your friend ;o) http://www.php.net/basename/ HTH, Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] extracting foo.bar from path/to/file.php/foo.bar

2005-11-04 Thread Leonard Burton
Greetings, What do I need to do to extract foo.bar from path/to/file.php/foo.bar $_SERVER['REQUEST_URI'] will return the whole string but is there anything more direct than doing a regex and 'REQUEST_URI'? Thanks, -- Leonard Burton, N9URK [EMAIL PROTECTED] "The prolonged evacuation would have

RE: [PHP] reg ex help

2005-11-04 Thread Pablo Gosse
[snip] The problem with that is there are about 40 different listings in the one field. Silver Small Corp;X^%\n#\n Gold Medium Corp;RE^%\n#\n Platinum Large Corp;YRE^%\n#\n being three of them so maybe this is a bettter way of listing it ... Silver Small Corp;

RE: [PHP] reg ex help

2005-11-04 Thread Pablo Gosse
[snip] New to php so please bear with me. I'm trying to parse through a field that has some information in it, the information is stored with other information and is delimited in a certain pattern so I figure using reg ex I can get the information I want out of the text. So here is an example.

Re: [PHP] reg ex help

2005-11-04 Thread conditional motion
The problem with that is there are about 40 different listings in the one field. Silver Small Corp;X^%\n#\n Gold Medium Corp;RE^%\n#\n Platinum Large Corp;YRE^%\n#\n being three of them so maybe this is a bettter way of listing it ... Silver Small Corp;X^%

RE: [PHP] reg ex help

2005-11-04 Thread Jay Blanchard
[snip] New to php so please bear with me. I'm trying to parse through a field that has some information in it, the information is stored with other information and is delimited in a certain pattern so I figure using reg ex I can get the information I want out of the text. So here is an example.

[PHP] reg ex help

2005-11-04 Thread conditional motion
New to php so please bear with me. I'm trying to parse through a field that has some information in it, the information is stored with other information and is delimited in a certain pattern so I figure using reg ex I can get the information I want out of the text. So here is an example. Silver

Re: [PHP] [php] dependable combo boxes with mysql database

2005-11-04 Thread Pranav Negandhi (concept-I)
This might be slightly OT on this list, but here goes nothing. 1. Submit the form when the user shifts focus from D1 using Javascript's onBlur event 2. On the server side, use PHP to retrieve the values for D2 and generate the page again 3. Repeat 1 & 2 when the value of D2 changes. HTH Prana

RE: [PHP] [php] dependable combo boxes with mysql database

2005-11-04 Thread Jay Blanchard
[snip] In the above code there are three combo box namely D1, D2 and D3. D1 will be populated on pageload. Now D2 should be populated on event like 'onblur' to D1 and similarly D3 should be populated on event like 'onblur' to D2. Pl. give me the exact code or proper guideline how should I accompl

[PHP] Re: [PHP-DEV] php version of GD lib

2005-11-04 Thread Jochem Maas
Erron Walker wrote: Thanks for the response, I will look into that. I'm a little unsure what given that you don't pay me large ammounts of money to support your php problems I'd apprieciate it if we kept the discussion 'onlist' - that way other benefit from any solutions/ideas that might come a

[PHP] [php] dependable combo boxes with mysql database

2005-11-04 Thread Bhoomi Vora
Hello All, I have a php page which contains three combo boxes. The first one will have the value from the mysql database table on page load itself. Then depending upon the value selected in the first combobox the second combo box should be populated with the respective values from another mys

RE: [PHP] if statement help

2005-11-04 Thread Ford, Mike
On 03 November 2005 15:26, Brent Baisley wrote: > You only need one "if". The parenthesis will evaluation order. > > if( ( !empty( $var1 ) || ( !empty( $var2 ) && !empty( $var3 ) ) || > $var1 == "something" ) However, the $var1=="something" test is redundant in this, since if that is true th

Re: [PHP] actually the รจ not the ampersand

2005-11-04 Thread Fredrik Tolf
On Thu, 2005-10-13 at 09:25 -0400, John Nichel wrote: > jonathan wrote: > > do you then have to do the reverse operation to get it back for > > rendering. Since it was erroring on me during DOM creation, I feel like > > I'm going around it to put it into a format it likes but then on > > disp

RE: [PHP] PHP from the command line

2005-11-04 Thread bruce
jasper, what i meant to say is show us the code, as well as the output of the err msgs generated by the connection code. in some cases, the app runs as a different user when the code is run as the apache user or the 'command line' user. if you're going to try to figure out the issue/problem, you

Re: [PHP] Convert fake Unicode to real UTF-8

2005-11-04 Thread Andreas Jakl
Thanks for the tip! htmlentities() didn't work, as it just converted the "&" in the string to "&". However, following the trail I did get it working the other way round, using: html_entity_decode($row['text'], ENT_NOQUOTES, "UTF-8") After this call, I had a real unicode text in my output file. A

Re: [PHP] Pictureupload

2005-11-04 Thread Georgi Ivanov
On Thursday 03 November 2005 19:12, twistednetadmin wrote: My advise is not to use $_FILES['img']['type'] or use it with some switch statement. Different browsers send different mime types for same image format. For example on mozila you have image/png on IE you have image/x-png (or vise versa)

[PHP] PHP 4.4.1 on Apache 2.0.x issue

2005-11-04 Thread Max Belushkin
Hi list, after upgrading to PHP 4.4.1, I'm having the following problem: Apache is running in prefork mode. index.php includes func.php, which defines some functions and connects to MySQL. For a while (1-2 requests) everything runs ok, except mysql sockets keep stacking up. And then - wham