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

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 11:24 am, Bhoomi Vora wrote: > 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 b

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

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 8:59 am, Leonard Burton wrote: > 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'? http://php.net/basename http://php.net/

Re: [PHP] PHP 4.4.1 on Apache 2.0.x issue

2005-11-08 Thread Richard Lynch
It SOUNDS like you have func.php including something that includes func.php... On Fri, November 4, 2005 5:16 am, Max Belushkin wrote: >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 defin

Re: [PHP] Re: PHP 4.4.1 on Apache 2.0.x issue

2005-11-08 Thread Richard Lynch
On Sat, November 5, 2005 12:22 pm, Max Belushkin wrote: > On Saturday 05 November 2005 17:49, James Benson wrote: >> > I've had a different set of scripts employing a different >> "func.php". >> > However, in both of those, mquery() is defined. But >> > they do *not* include anything else, and the

Re: [PHP] match by relevancy

2005-11-08 Thread Richard Lynch
On Fri, November 4, 2005 1:03 am, 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 t

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Ben Ramsey
On 11/8/05 9:32 PM, Richard Lynch wrote: Call me crazy, but the session_id is already going in/out through Cookie headers. So, really, it's not THAT much less secure for it to go in POST, and only nominally less secure to go in GET, is it?... Okay, you're crazy. ;-) j/k [Hey, Richard!] Yeah,

Re: [PHP] Register Globals (more)

2005-11-08 Thread Richard Lynch
On Thu, November 3, 2005 10:00 pm, John Taylor-Johnston wrote: > 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 l

Re: [PHP] Register Globals

2005-11-08 Thread Richard Lynch
On Thu, November 3, 2005 8:17 pm, 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($_POS

Re: [PHP] to the freelancers!!

2005-11-08 Thread Richard Lynch
On Thu, November 3, 2005 7:15 pm, bruce wrote: > Just a quick question. Had a conversation with a person who works for > a > non-profit, and she was describing some of her dealings with obtaining > grants for the development of 'open source' apps.Got me to thinking. > If a > company sponsored the i

Re: [PHP] Register Globals

2005-11-08 Thread Ben Ramsey
On 11/8/05 10:20 PM, Richard Lynch wrote: I change this line to: mail($to, stripslashes($_POST["subject"]), wordwrap($_POST["message"], 60), "From: $_POST["from"]\r\n"); "From: $_POST[from]\r\n" No quotes. No apostrophes. Nothin but index. You can also use curly braces: "From: {$_POST["fro

Re: [PHP] SSL & normal sessions stored differently?

2005-11-08 Thread Richard Lynch
Go through all the hoops to END the old session. Then start your new one. This *MIGHT* work to over-ride the auto_start in php.ini On Thu, November 3, 2005 8:42 am, Jesse Guardiani wrote: > Hello, > > I'm running php-4.3.2-19.ent under httpd-2.0.46-44.ent on Red Hat > Enterprise > Linux ES rel

Re: [PHP] performance suggestions

2005-11-08 Thread Richard Lynch
On Thu, November 3, 2005 8:29 am, James Benson wrote: > Dear group, can someone suggest the best way to do the following > without > writing some lengthy script that (possibly) could lead to performance > issues, > > > I have three DB fields in MySQL, each has a unique ID, I cannot think > of > any

Re: [PHP] Reset STDIN pointer

2005-11-08 Thread Richard Lynch
On Wed, November 2, 2005 2:20 pm, John Nichel wrote: > There has to be a way to do thisreset the internal STDIN pointer > to > the begining but I'll be damned if I can find it. > > reset ( STDIN ); > > returns an error. No can do. It's a stream, not a file. You can't step in the same stream

Re: [PHP] No forums?

2005-11-08 Thread Curt Zirzow
On Tue, Nov 08, 2005 at 07:32:06PM -0600, Richard Lynch wrote: > On Fri, November 4, 2005 10:22 pm, John Nichel wrote: > > 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...

Re: [PHP] Re: Richard Lynch's Email Address ...

2005-11-08 Thread Richard Lynch
On Thu, November 3, 2005 8:16 am, Richard Heyes wrote: > Marcus Bointon wrote: >> The PEAR rfc822 class is pretty good, but it should be noted it's >> designed for parsing entire to, cc, bcc fields which may contain >> multiple addresses, and it's not quite as simple as asking it 'is >> this >> add

Re: [PHP] creating images using php

2005-11-08 Thread Richard Lynch
On Wed, November 2, 2005 5:31 am, bala chandar wrote: > i know there is a support for Imagemagick in php. I have a doubt. Could be. > Please help me out. > I have to create a image in which a text which should insert a texture > withing it something like what we do with powerpoint word art. for e

Re: [PHP] protect password?

2005-11-08 Thread Chris Shiflett
Richard Lynch wrote: > By setting the file readable only by root this problem is > completely eliminated. Unless a hacker has the root password, > they will not be able to compromise the information in this > file. > > This is how I understand it, at least. If Chris reads this > perhaps he can co

Re: [PHP] PHP and MSSQL on Linux

2005-11-08 Thread Richard Lynch
On Tue, November 1, 2005 8:03 pm, Robbert van Andel wrote: > A few months back I wrote the list asking for help making a connection > to a > MS SQL database from our linux webserver. At that time I was able to > make a > successfull connection on Fedora Core 1 after installing php-mssql.rpm > and

Re: [PHP] No forums?

2005-11-08 Thread Chris Shiflett
Curt Zirzow wrote: Here are some counts (per email address): Is this thing back? :-) It would be cool to see a top 10 or something. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

Re: [PHP] protect password?

2005-11-08 Thread David Tulloh
Richard Lynch wrote: On Fri, November 4, 2005 5:44 pm, Pablo Gosse wrote: By setting the file readable only by root this problem is completely eliminated. Unless a hacker has the root password, they will not be able to compromise the information in this file. This is how I understand it, a

Re: [PHP] No forums?

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 9:47 pm, Curt Zirzow wrote: > Richard Lynch: > http://news.zirzow.dyndns.org/news.php/php.general/user/dbe152a0d3b3e8284b39cab6b1fdde7d/ Add in richard-AT-zend.com and rlynch-AT-ignitionstate.com and rlynch-AT-nwu.edu and rlynch-AT-ils.nwu.edu and rlynch-AT-cognitivearts.c

[PHP] Re: Session's across Domains...

2005-11-08 Thread James Benson
Take a look at the PEAR sessionServer class http://pear.php.net/package/HTTP_SessionServer Tony Di Croce wrote: I have a server with a few virtual hosts. All of my scripts use "session_start()", and $_SESSION[] to share data between invocations of different scripts. The problem I'm having

Re: [PHP] performance suggestions

2005-11-08 Thread James Benson
Thanks Richard Lynch wrote: On Thu, November 3, 2005 8:29 am, James Benson wrote: Dear group, can someone suggest the best way to do the following without writing some lengthy script that (possibly) could lead to performance issues, I have three DB fields in MySQL, each has a unique ID, I

[PHP] Re: CascadeSelectAssoc

2005-11-08 Thread Vedanta Barooah
sure go ahead, just respect the GPL, thanks, vedanta barooah On 11/9/05, Thomas Preuss <[EMAIL PROTECTED]> wrote: > Hello Vedanta, > > thanks for your nice php cascade menu class. Can we use this class in our > projects? > Roberto agreed on his part. > > Thanks, Thomas > > -Ursprüngliche Nachr

Re: [PHP] Type of form element

2005-11-08 Thread Richard Lynch
On Mon, October 31, 2005 2:53 pm, Marcus Bointon wrote: > Take apart this operation: > > $a = isset($myarray['a']); > > Implicit in this simple line is a 'hidden' step which is to look up > the index 'a' in $myarray to get its value before testing if it is No. I don't care what the value is, and

Re: [PHP] No forums?

2005-11-08 Thread Curt Zirzow
On Tue, Nov 08, 2005 at 10:55:57PM -0500, Chris Shiflett wrote: > Curt Zirzow wrote: > >Here are some counts (per email address): > > Is this thing back? :-) > > It would be cool to see a top 10 or something. Almost. I ended up re-doing all the code, it took like 4 days just to fetch all the pos

Re: [PHP] protect password?

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 10:03 pm, David Tulloh wrote: > Richard Lynch wrote: > >>On Fri, November 4, 2005 5:44 pm, Pablo Gosse wrote: >> >> >>>By setting the file readable only by root this problem is completely >>>eliminated. Unless a hacker has the root password, they will not be >>>able to com

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Ben Ramsey
On 11/8/05 10:27 PM, Tony Di Croce wrote: The sites are both physically located on the same machine. What if I encrypt the session_id, and put it in a "hidden" text input box in a form, that is delivered via POST to the other site. This way, the session id is passed, but it is encrypted? To

Re: [PHP] Type of form element

2005-11-08 Thread Richard Lynch
On Mon, October 31, 2005 4:56 pm, Marcus Bointon wrote: > Yesterday I encountered an error in a large commercial php script and > it turned out that it was looking in $_SERVER['SERVER_NAME'] which > was there but set to NULL for some reason, and their test with isset > was failing. So it's not just

Re: [PHP] No forums?

2005-11-08 Thread Curt Zirzow
On Tue, Nov 08, 2005 at 10:00:27PM -0600, Richard Lynch wrote: > On Tue, November 8, 2005 9:47 pm, Curt Zirzow wrote: > > Richard Lynch: > > http://news.zirzow.dyndns.org/news.php/php.general/user/dbe152a0d3b3e8284b39cab6b1fdde7d/ > > Add in richard-AT-zend.com and rlynch-AT-ignitionstate.com and

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Curt Zirzow
On Tue, Nov 08, 2005 at 11:32:33PM -0500, Ben Ramsey wrote: > On 11/8/05 10:27 PM, Tony Di Croce wrote: > > > >The sites are both physically located on the same machine. > > > >What if I encrypt the session_id, and put it in a "hidden" text input > >box in a form, that is delivered via POST to the

Re: [PHP] Re: Session's across Domains...

2005-11-08 Thread Chris Shiflett
Ben Ramsey wrote: To me, it's not a question of whether the sites are physically located on the same machine, and it's not a question of encrypting the session id. Anyone who even knows the encrypted session id could then POST it to the form in a replay attack, authenticating themselves as the in

Re: [PHP] Type of form element

2005-11-08 Thread Ben Ramsey
On 11/8/05 11:38 PM, Richard Lynch wrote: If you want to stuff NULL into something, and then use is_null() that makes sense. If you want to stuff NULL in there, and then use isset(), I'm not quite sure why you'd put NULL in there in the first place, but I don't rightly know what I'd expect isset

Re: [PHP] Type of form element

2005-11-08 Thread Ben Ramsey
On 11/8/05 11:52 PM, Ben Ramsey wrote: I know this is off-topic for this thread, but just as I see isset() misused (as in this case), I often see empty() misused. For example, when using empty(), the following all return TRUE: On second thought, "misused" is the wrong word. I mean "misundersto

[PHP] Build Problem??

2005-11-08 Thread trlists
Building PHP 4.3.4 with Apache 1.3, SAPI and CLI versions (no CGI) ... Now that I found the config command used for the last build, I rebuilt PHP (config, make, make install) with one change -- at the end of the config line I added --enable-dbase. If I look at the phpinfo() output now, in both

Re: [PHP] $pieces = explode(",", $_POST["fieldtype1"]);

2005-11-08 Thread Curt Zirzow
On Tue, Nov 08, 2005 at 12:00:06AM -0500, John Taylor-Johnston wrote: > Hi, > $pieces = explode(",", $_POST["fieldtype1"]); > > What is a way to echo each pieces[x] separately so I can echo them like > this: > > while(x=0 to xMax) > { > $sql .= "`".$pieces[x]."` \r\n"; > } Well, explode() retur

[PHP] PHP Search Engine

2005-11-08 Thread Leonard Burton
HI All, Has anyone on here created a search engine in PHP? I have project to create a search engine that will search about 50K or so pages of information on 100 or so various domain names. What have you all done in the past? PHPdig was a failure. Do you recommend any of the ones that are for s

[PHP] comment more than a question

2005-11-08 Thread matt VanDeWalle
I don't really have a question, I just have noticed in working with php for about a year off and on, so you could probably say i'm a bit new still, what an error says it is, or what line it is on, is hardly ever the case, e.g, several different times until i figured out what this meant, i would

Re: [PHP] comment more than a question

2005-11-08 Thread Leonard Burton
HI Matt, > i > would get the "unexpected $ on line > error, I've figured out that actually means you are missing a closing } or > a few > also tonight, I was working on a script, It will do this when you are missing a semi colon ";" at the end of a line. The error is happening when PHP is repor

[PHP] Re: PHP Search Engine

2005-11-08 Thread Nadim Attari
> HI All, > > Has anyone on here created a search engine in PHP? > > I have project to create a search engine that will search about 50K or > so pages of information on 100 or so various domain names. > > What have you all done in the past? PHPdig was a failure. > > Do you recommend any of the

[PHP] security code

2005-11-08 Thread Clive
Hi does any one have a class/function to generate those security code images. Yhe ones that you see on website that you must enter to submit a form thanks clive -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] security code

2005-11-08 Thread Chris
Try searching for CAPTCHA, that's what it's called. You should be able to find several PHP implementations, most likely requiring the GD library. Chris Clive wrote: Hi does any one have a class/function to generate those security code images. Yhe ones that you see on website that you must

Re: [PHP] No forums?

2005-11-08 Thread Vizion
On Tuesday 08 November 2005 17:32, the author Richard Lynch contributed to the dialogue on- Re: [PHP] No forums?: >On Fri, November 4, 2005 10:22 pm, John Nichel wrote: >> Larry E. Ullman wrote: >> >> >>> All that being said, I think everyone should send me $5. I've >>> monitored >>> this lis

Re: [PHP] PHP Search Engine

2005-11-08 Thread Philip Hallstrom
HI All, Has anyone on here created a search engine in PHP? I have project to create a search engine that will search about 50K or so pages of information on 100 or so various domain names. What have you all done in the past? PHPdig was a failure. Do you recommend any of the ones that are for

Re: [PHP] comment more than a question

2005-11-08 Thread Terence
matt VanDeWalle wrote: I don't really have a question, I just have noticed in working with php for about a year off and on, so you could probably say i'm a bit new still, what an error says it is, or what line it is on, is hardly ever the case, e.g, several different times until i figured out

Re: [PHP] PHP Search Engine

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 11:20 pm, Leonard Burton wrote: > Has anyone on here created a search engine in PHP? Sure, of sorts, now and again, here and there, to some degree. Though it was at the lower end of search engine, possible devolving to web-scraping, when you get right down to it... > I h

Re: [PHP] Build Problem??

2005-11-08 Thread Richard Lynch
On Tue, November 8, 2005 11:03 pm, [EMAIL PROTECTED] wrote: > Building PHP 4.3.4 with Apache 1.3, SAPI and CLI versions (no CGI) ... > > Now that I found the config command used for the last build, I rebuilt > PHP (config, make, make install) with one change -- at the end of the > config line I add

<    1   2