RE: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-25 Thread Chris W. Parker
Greg Donald on Tuesday, January 25, 2005 9:36 AM said: > The Perl solution many years ago was to make a newbie list. My local > Linux user group solution last year was to make a newbie list. This idea has been presented too. All the "smart" people will go to the "

RE: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-25 Thread Chris W. Parker
Jochem Maas <mailto:[EMAIL PROTECTED]> on Tuesday, January 25, 2005 11:23 AM said: > Greg Donald wrote: >> On Tue, 25 Jan 2005 10:19:12 -0800, Chris W. Parker >> <[EMAIL PROTECTED]> wrote: >> > > ... Ok so maybe it wasn't as funny in the e

RE: [PHP] Log-in script help

2005-01-25 Thread Chris W. Parker
[EMAIL PROTECTED] on Tuesday, January 25, 2005 2:46 PM said: > I need a pretty basic log in script. Something that people log in > to, and the page and all linked/related pages cannot be accessed > unless the person has logged in. So what do I need for this? > Cookie

RE: [PHP] PHP Application server / Expression of Interest

2005-01-25 Thread Chris W. Parker
Devraj Mukherjee on Tuesday, January 25, 2005 3:34 PM said: > I recently passed around an email enquiring about the existance of an > application server solution for PHP. Thanks to some of the responses, > that lead my research further. Pardon my ignorance but, what

RE: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-25 Thread Chris W. Parker
Richard Lynch on Tuesday, January 25, 2005 3:35 PM said: >> or will all you advanced guys/girls spend countless hours repeatedly >> asking people to post code, use print_r()/var_dump() etc... without >> so much as halfbaked challenge in sight? > > Yes. :-) > > Perh

RE: [PHP] Log-in script help

2005-01-25 Thread Chris W. Parker
Joe Harman on Tuesday, January 25, 2005 4:23 PM said: > IN MY OPINION... forget the cookies... only use php sessions... but > like I said IMO you can never rely on the end user having them > cookies enabled... same with things like javascript... Well, I don't th

[PHP] Looking for ideas on scheduling

2005-01-28 Thread Chris W. Parker
Hello, I'm looking to make a simple scheduler for myself and I'd like to get some feedback on how to handle the events and their being executed at the right time. The two options I've come up with both involve adding a job(s) to crontab. 1. Individual jobs are added to the users crontab file. Th

RE: [PHP] Looking for ideas on scheduling

2005-01-28 Thread Chris W. Parker
Richard Lynch <mailto:[EMAIL PROTECTED]> on Friday, January 28, 2005 11:36 AM said: > Chris W. Parker wrote: >> The two options I've come up with both involve adding a job(s) to >> crontab. >> >> 1. Individual jobs are added to the users crontab file. T

RE: [PHP] Looking for ideas on scheduling

2005-01-31 Thread Chris W. Parker
Marek Kilimajer on Saturday, January 29, 2005 12:05 PM said: > What about option 3: > > Use at command to execute php script when the next event should be > executed. This php script will execute this task and then set itself > to execute at the time of the next eve

RE: [PHP] PHP Security Consortium

2005-01-31 Thread Chris W. Parker
Chris Shiflett on Sunday, January 30, 2005 10:19 PM said: > The PHP Security Consortium has officially launched. The following is > the press release: Oooh cool! This looks to be a great resource. Keep up the good work Chris. Another, Chris. -- PHP General Maili

[PHP] What's wrong with this rewrite rule?

2005-02-02 Thread Chris W. Parker
Hello, I've been messing with a certain rewrite rule for about 30 minutes now and it's driving me insane. I've got plenty of other rewrite rules working perfectly. Here is the rule in question. RewriteRule ^detail\.asp\?product_id=([\w-]+)$ product.php?id=$1 The URL I'm testing this with is: ht

RE: [PHP] Re: What's wrong with this rewrite rule?

2005-02-02 Thread Chris W. Parker
M. Sokolewicz on Wednesday, February 02, 2005 10:22 AM said: > the problem is actually really easy > You're not asking it on an apache list (this is a PHP list... so why > should anyone here know anything about mod_rewrite for apache?) > > sorry if I sounded rud

RE: [PHP] Re: What's wrong with this rewrite rule?

2005-02-02 Thread Chris W. Parker
Michael on Wednesday, February 02, 2005 11:54 AM said: > You're insisting that the path to rewrite start with d. It's not going > to start with d, it's going to start with /. As in "/detail.asp"... > > Easy thing to miss, though... Actually that's not why. None of

RE: [PHP] newbie question ; calling php script with parrameters from html

2005-02-02 Thread Chris W. Parker
Sagaert Johan on Wednesday, February 02, 2005 2:38 AM said: > can i use this kind of construction in my html code ? > > Select high Yes. > if yes , how do i retrieve the passed string in the php code Be sure to validate the data first though. Chris. -- PHP

RE: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Chris W. Parker
Richard Morley on Thursday, February 03, 2005 9:57 AM said: > I'm not sure if this is specifically a PHP problem, but here we go. Is > there a way to clear the POST variables when the user refreshes a > page? [snip] > I read something somewhere that seemed to imply

RE: [PHP] Clear POST variables on page refresh

2005-02-03 Thread Chris W. Parker
Richard Lynch on Thursday, February 03, 2005 11:26 AM said: > A simple thing to do is to put an md5 hash into the POST data, then > only do the insert if that md5 hash isn't already "used" when they > hit refresh. > > This avoids the hassle of re-direct headers and

[PHP] Recursion: Ugh!

2005-05-26 Thread Chris W. Parker
Hi everyone, I've been working on a problem for a few days now and I'm not making any headway so I think it's time I come to the list for some help (though this really disappoints me since it appears I'm not capable of solving this problem on my own!). Anyway, I'm using the Modified Preorder Tree

RE: [PHP] Recursion: Ugh!

2005-05-26 Thread Chris W. Parker
Marek Kilimajer on Thursday, May 26, 2005 11:35 AM said: > untested: > > function display($array, $prefix = '') { > echo $prefix ':' . $array['name'] . "\n"; > if(is_array($array['children']) && $array['children']) { > foreach($array['child

RE: [PHP] Recursion: Ugh!

2005-05-27 Thread Chris W. Parker
Steve Brown on Thursday, May 26, 2005 11:47 AM said: > How is your structure being built? Is it hard-coded or dynamic (e.g. > pulled from a DB)? >From a database. > We employ a similar "tree" structure for manging > items in our store front. Believe me when I say

RE: [PHP] Re: Free penetration test

2005-05-27 Thread Chris W. Parker
Rasmus Lerdorf on Friday, May 27, 2005 4:15 PM said: > He was apparently doing something along the lines of: > > foreach($_GET as $key=>$val) { > echo << > EOL; > } > > Probably just a lazyness thing. Generally you will want to keep track > of which query

RE: [PHP] Recursion: Ugh!

2005-05-27 Thread Chris W. Parker
Steve Brown on Friday, May 27, 2005 2:17 PM said: > So in your case, if you wanted to create a new item in the category > "Round", you would first have to navigate to Food > Vegetables > > Round, then create the new item. This may seem more complicated, > but think

RE: [PHP] Re: Free penetration test

2005-05-27 Thread Chris W. Parker
Rasmus Lerdorf on Friday, May 27, 2005 11:58 AM said: >>> You have all sorts of problems at that URL. To start with, here is >>> a cross-site scripting hack: >>> >>> http://www.vlaamse-kern.com/yourstore-0.0.2-beta1/admin/?%22%3E%3Cscript %09 >>> src%3D%22http://3

RE: [PHP] Variabels in stored txt

2005-05-31 Thread Chris W. Parker
Niels Riis Kristensen on Tuesday, May 31, 2005 2:09 PM said: > On 31/05/2005, at 22.19, Jay Blanchard wrote: > >> [snip] >> $get_var1 = mysql_query("SELECT * FROM table1 WHERE id LIKE '1' >> LIMIT 1"); while($record=mysql_fetch_assoc($get_var1)) >> { >

RE: [PHP] Delay?

2005-06-02 Thread Chris W. Parker
Chris Boget on Thursday, June 02, 2005 12:16 PM said: >>> Has anyone else noticed significant delays in messages getting >>> posted? No, no delay on my end. > > At least 4hrs on my end... Uhh.. I think he was joking... Take another read of his next sentence. :)

RE: [PHP] dynamic drop down

2005-06-06 Thread Chris W. Parker
Danny Brow on Saturday, June 04, 2005 2:45 PM said: > So how do you refresh the page when the drop down is selected? With javascript or force the user to click a submit button. Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

RE: [PHP] Beautiful HTML Invoice -> Prints like crap! I need somesuggestions!

2005-06-09 Thread Chris W. Parker
Leif Gregory on Thursday, June 09, 2005 2:29 PM said: > You realize that the printing of background colors is determined > primarily by the user's browser right? > > In IE: > Tools / Internet Options / Advanced / Under Printing section. > > In Firefox: > File / Pag

RE: [PHP] Problems escaping apostrophe, please help

2005-06-10 Thread Chris W. Parker
Leila Lappin on Thursday, June 09, 2005 7:46 AM said: > == This is the rendering === > == (note the heart's apostrophe breaks IE and firefox) === > > http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] possible jscript/php/frames question!!

2005-06-17 Thread Chris W. Parker
bruce on Friday, June 17, 2005 3:48 PM said: > i've got a problem where i'm trying to play with imagemaps. i created > a test image map, but when i select inside the image map, i 'see' the > "?x,y" from the imagemap, appended to the url in the browser address > bar... i get http://foo.com?3,5

RE: [PHP] possible jscript/php/frames question!!

2005-06-17 Thread Chris W. Parker
bruce on Friday, June 17, 2005 5:05 PM said: > chris... > > i'll humour you.. although i'm pretty sure you have no idea as to > what i'm trying to acomplish.. or how to get to my goal... > > the basic issue is to allow a user to click inside an image map, and > to translate the coordinates

[PHP] So many returned mail notices!

2005-06-20 Thread Chris W. Parker
Hey, I know this kind of post can be annoying to some people but I must ask anyway. Is everyone else getting a bunch of returned mail from [EMAIL PROTECTED] It looks like it has something to do with (possibly) an email address that is subscribed through Road Runner? Anyway this kind of thing alwa

RE: [PHP] So many returned mail notices!

2005-06-20 Thread Chris W. Parker
Richard Davey on Monday, June 20, 2005 10:51 AM said: > Hello Chris, > > Monday, June 20, 2005, 6:33:24 PM, you wrote: > >> Anyway this kind of thing always makes me a bit nervous because I >> start to think something is wrong with my end. > > It's not just you, w

RE: [PHP] Re: So many returned mail notices!

2005-06-20 Thread Chris W. Parker
JamesBenson on Monday, June 20, 2005 11:11 AM said: > Im suscribed to the newsgroup and dont receive emails, I simply browse > the threads in Thunderbird, you must of signed up for daily digests. Nope. -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] phpInfo() executed on Yahoo!

2005-06-20 Thread Chris W. Parker
AmirBehzad Eslami on Monday, June 20, 2005 12:11 PM said: > On Monday, June 20, 2005, Jason Barnett wrote: > >> [..] but it would have been cool to see what things > they've done to handle the number of page requests they have. > > > Take a look at the attached fi

RE: [PHP] Re: So many returned mail notices!

2005-06-21 Thread Chris W. Parker
JamesBenson on Tuesday, June 21, 2005 8:41 AM said: > You could unsuscribe, open your news client and enter news.php.net No. > you can then browse at your own leasure, it does actually say a > warning msg at the bottom of this page, > > http://www.php.net/mailing-

RE: [PHP] Re: security question...??

2005-06-21 Thread Chris W. Parker
bruce on Monday, June 20, 2005 5:50 PM said: > if you're going to be writing apps that deal with sensitive > information, you better damm well give some thought as to how secure > the client is, or even if the client is actually valid! It's not possible to determine

RE: [PHP] Re: So many returned mail notices!

2005-06-21 Thread Chris W. Parker
JB05UK on Tuesday, June 21, 2005 10:31 AM said: > My point is if you dont like spam do something about it, clearly your > too ignorant to understand. When did I complain about spam? Go back to my original post, reread it, think about it, then realize that I never co

RE: [PHP] Re: security question...??

2005-06-21 Thread Chris W. Parker
bruce on Tuesday, June 21, 2005 1:38 PM said: > what you state is true at the extreme... but in the case of an client > app, i could already extract information about the various apps that > make up the client.. ie if, as in the case of IE, I was able to get > inform

RE: [PHP] Re: security question...??

2005-06-22 Thread Chris W. Parker
bruce on Wednesday, June 22, 2005 10:28 AM said: > sure it can rory... > > i can give you a file... i create a hash of the file... if i have a > process within the file that i give you that allows the file to more > or less create the hash of itself, and if i can qu

RE: [PHP] Re: security question...??

2005-06-22 Thread Chris W. Parker
bruce on Wednesday, June 22, 2005 3:17 PM said: > but chris... > > go back and look at the entire thread... > > i never stated that i wanted to be able to know whether the entire > system is secure on the client's end.. i stated that i wanted to be > able to know i

RE: [PHP] Object Oriented PHP (5)

2005-06-24 Thread Chris W. Parker
Josh Olson on Friday, June 24, 2005 12:57 PM said: >> ...and some of my OO code is still in production use 10 years after >> it was written. Inspiring. > > Please don't Lynch me Oh snap! Now you're just asking for it. :P Chris. -- PHP General Mailing List (htt

RE: [PHP] looking for a pure startup opportunity..OT

2005-06-28 Thread Chris W. Parker
[EMAIL PROTECTED] on Tuesday, June 28, 2005 2:23 PM said: > This really shouldn't be getting out of hand the way it is... if you > don't like it, trust it, agree with it - why not just ignore it? It's > as simple as that... don't have a stroke because of it. Hmm...

RE: [PHP] PHP search

2005-06-30 Thread Chris W. Parker
Richard Lynch on Thursday, June 30, 2005 2:33 PM said: > There are innumerable gothcas to it to start with, ... Is that a special kind of goth? :P Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Two websites need to share part of one database, suggestions please

2005-07-08 Thread Chris W. Parker
Hello, We have two websites. One website is already up and running, the other is not. The first website (I'll call it one.com) contains a large number of the products and is meant for a specific audience. The second website (I'll call it, yep you guessed it, two.com) will contain a small subset o

RE: [PHP] Two websites need to share part of one database,suggestions please

2005-07-08 Thread Chris W. Parker
Robert Cummings on Friday, July 08, 2005 3:32 PM said: > Use a bitvector field in the table and use a bitmask for filtering for > which sites can access what products. I think I understand what a bitmask is after doing some research but would you please give me an

RE: [PHP] iCalendar creation not working with Outlook [SOLVED]

2005-07-11 Thread Chris W. Parker
Daevid Vincent on Saturday, July 09, 2005 7:24 PM said: > I'm sure there's a better way to get the GMT time, as my way is a > total hack. I'm in PST btw, 7 hours from GMT, and I set the party > events to be 6 hours long arbitrarily. Adjust as desired. PST is normall

RE: [PHP] Two websites need to share part of onedatabase,suggestions please

2005-07-11 Thread Chris W. Parker
Robert Cummings on Friday, July 08, 2005 5:25 PM said: > Thus siteMask should have one of the following values: > > (1 << 1) == 2 // only site1 can use the product. > (1 << 2) == 4 // only site2 can use the product. >

RE: [PHP] Two websites need to share part of one database, suggestions please

2005-07-11 Thread Chris W. Parker
André Medeiros on Monday, July 11, 2005 12:44 PM said: > What about using web-services (something ala xml?). Could that be > considered an option? No because I don't how to use that stuff. :) Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] Two websites need to share part of one database, suggestions please

2005-07-11 Thread Chris W. Parker
André Medeiros on Monday, July 11, 2005 3:08 PM said: > XML is quite easy. Let's say you're making a search for books, and you > have site1.com searching site2.com for some stuff. > > site2.com could have some sort of "back end" like I see what you're saying. But t

RE: [PHP] Two websites need to share part ofonedatabase,suggestions please

2005-07-12 Thread Chris W. Parker
Robert Cummings on Tuesday, July 12, 2005 11:47 AM said: > Sorry to respond so late, my free time these days is sporadic :) No problem. > My example suggested one database to host all products for both sites. > The bitmask is used as a filter to determine which sit

RE: [PHP] Missing or wrong reply-to headers in this mailing list

2005-07-12 Thread Chris W. Parker
Ahmed Saad on Tuesday, July 12, 2005 11:24 AM said: > Can the list administators can fix this? (appending the correct > reply-to header) This has come up many times in the past and so far it has not changed. Just hit the Reply to All button and you'll be fine. C

RE: [PHP] Missing or wrong reply-to headers in this mailing list

2005-07-12 Thread Chris W. Parker
Alan Milnes <mailto:[EMAIL PROTECTED]> on Tuesday, July 12, 2005 1:28 PM said: > Chris W. Parker wrote: > >> This has come up many times in the past and so far it has not >> changed. Just hit the Reply to All button and you'll be fine. >> >> > T

RE: [PHP] Tired and feeling dumb...maths question....

2005-07-14 Thread Chris W. Parker
Ryan A on Thursday, July 14, 2005 12:17 PM said: > Hey, Hey. > people vote on a scale of 1-5, so the average should be between 1-5 > (right?? am not even sure of this!) Yes. > I was thinking of rounding it with a 2 decimal point...eg: > round(5.045, 2) > > Just

RE: [PHP] 404 Not Found -> refresh to directory

2005-07-14 Thread Chris W. Parker
Terry Romine on Thursday, July 14, 2005 1:52 PM said: > I have a website that has several hundred agents in a mysql database. > The client wants to be able to enter the domain.com/agentname and be > redirected to a standard page where we show the agent information.

RE: [PHP] Cannot modify header information error........usage of header method.

2005-07-20 Thread Chris W. Parker
babu on Wednesday, July 20, 2005 10:15 AM said: > 1."Is there any other alternative to this method." Javascript or an html redirect. > 2.I am getting the error by using this method. the error is "Cannot > modify header information - headers already sent by". i have

RE: [PHP] Cannot modify header information error........usage of header method.

2005-07-20 Thread Chris W. Parker
babu on Wednesday, July 20, 2005 10:33 AM said: > Hi parker, > can you please tell me how to use java script or html redirect, i > mean a sample. I must be in a good mood today. :) html redirect (more accurately called meta refresh): http://www.pageresource.com/h

RE: [PHP] Help with a home-grown function

2005-07-21 Thread Chris W. Parker
Dan Trainor on Thursday, July 21, 2005 2:03 PM said: > I never see "hi" even if an array is set as such: > > $vars = array("one","two","three","four","five"); That's because your function always returns true. If it finds a missing value it returns true. If it doesn

[PHP] looking for program/script to diff directories and show dates

2005-07-27 Thread Chris W. Parker
(It's been a while and I haven't seen this message yet. Are we back to rediculous message delays?? Forgive the repost if it be such.) Hello, I was just expirementing with the diff command and was wondering if there was anything out there that does the same thing but with a more intuitive interfac

RE: [PHP] looking for program/script to diff directories and show dates

2005-07-27 Thread Chris W. Parker
Philip Hallstrom on Wednesday, July 27, 2005 11:09 AM said: >> I was just expirementing with the diff command and was wondering if >> there was anything out there that does the same thing but with a more >> intuitive interface? > > What's wrong with "diff -r --brief

RE: [PHP] looking for program/script to diff directories and showdates

2005-07-27 Thread Chris W. Parker
John Nichel on Wednesday, July 27, 2005 10:56 AM said: > What about just checking the modified times of the two files with > filemtime()? You could have it grab the timestamp of both files, > compare them, and see if it's outside a set parameter (like 24 hours, > 7

[PHP] does PHP have a configuration setting for linefeed?

2005-07-28 Thread Chris W. Parker
Hi everyone, As you will read below I've got a strange problem happening with some files after being rsync'd from one machine (FC3) to another (RH9). Someone in the RedHat mailing list suggested that maybe the difference was in the configuration files for PHP. I didn't find anything in php.ini ab

RE: FW: [PHP] [NEWBIE GUIDE] For the benefit of new members

2005-08-05 Thread Chris W. Parker
Rick Emery on Friday, August 05, 2005 4:20 PM said: > Can anybody recommend a good JavaScript mailing list? If by anybody you mean Google, then yes anybody can recommend a good JavaScript mailing list. Hope this helps! Chris. -- PHP General Mailing List (http://w

RE: FW: [PHP] [NEWBIE GUIDE] For the benefit of new members

2005-08-05 Thread Chris W. Parker
Rick Emery on Friday, August 05, 2005 4:54 PM said: > Well, as I found out when I Google'd before I posted, it *lists* > plenty of JavaScript mailing lists. But it can hardly "recommend a > good" one, which is what I asked for, can it? I was soliciting > opinions. Y

RE: [PHP] Checking a date for validity

2005-09-07 Thread Chris W. Parker
Todd Cary on Wednesday, September 07, 2005 3:39 PM said: >/* Is date good */ >function is_date_good($date) { > if (strtotime($date) == -1) { >$retval = 0; > } else { >if (strpos($date, "/") > 0) { > $parts = explode("/", $da

RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Matthew Weier O'Phinney on Monday, September 12, 2005 6:55 AM said: > Mails are then queued to an MTA -- in our case, Postfix. This is the part I don't know how to do. Can you explain/show some code? Thanks, Chris. -- PHP General Mailing List (http://www.php.net/

RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Manuel Lemos on Monday, September 12, 2005 1:36 PM said: > If he is running postfix on the same machine that postfix is running, > it does not make much sense to send the message via SMTP because it > is a much slower way to do the same thing. I'm not. I was hopin

RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Manuel Lemos on Monday, September 12, 2005 2:41 PM said: > If you use > the mail() function, it uses whatever is installed in your machine > because by default it calls the sendmail program. I am aware of that but the problem I'm having is inconsistent mailings. For

RE: [PHP] incrementing in a for loop

2005-09-12 Thread Chris W. Parker
D A GERM on Monday, September 12, 2005 1:01 PM said: > [CODE] > for ($myLoop = 0; $myLoop < 100; $myLoop= $myLoop + 5) > { > print "my loop: $myLoop"; > } > [/CODE] Where's the code? Oh there

RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Manuel Lemos on Monday, September 12, 2005 3:15 PM said: > If you use PHP mail() function it just calls the sendmail wrapper. If > you loose messages, you should check the logs of the installed MTA. > Your problem seems to be misconfiguration like you are not setting

[PHP] Is my feedback form being successfully abused?

2005-09-16 Thread Chris W. Parker
Hello, About a few weeks ago I started seeing three emails that all come at the same time (within the same minute) that seem to be trying to exploit a feedback form I have on our website. Everytime someone submits a feedback form I am sent the information they entered. The To and From address are

[PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Hello, Every time I write some classes I always come across the same fundamental problem that I haven't figured out how to solve/approach yet. I'm not exactly sure how to put it into words simply but here goes... Let's take for example a class called 'Customer' that (obviously) manipulates custom

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Jay Blanchard on Monday, September 19, 2005 10:40 AM said: > [snip] > Where I get tripped up is when I realize I'll need to at some point > get more than one customer at a time and thus I want to add a method > called 'get_customers()'. > [/snip] > Why, at any point

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Jay Blanchard on Monday, September 19, 2005 10:53 AM said: > I think that it should be a stand alone class. The Customers class > could instantiate the needed number of Customer objects and the > methods of the Customers class could affect each Customer object. I'm

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Michael Sims on Monday, September 19, 2005 12:04 PM said: > Basically you're implementing DAO's (Data Access Objects), similar to > what an ORM (Object Relational Mapper) tool would do for you. [snip] Thanks for the info, and I'll check out the Propel site a little

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Anas Mughal on Monday, September 19, 2005 4:02 PM said: > The simplest way to solve this problem is as follows: > > - Have your Customer class hold only attributes for a customer. This > class would only have getter and setter methods. In the Java world, > this is r

RE: [PHP] Is my feedback form being successfully abused?

2005-09-20 Thread Chris W. Parker
Jochem Maas on Tuesday, September 20, 2005 2:37 AM said: > this 'fairly recent' class of attack is already quite well documented, > google around for more info. Actually I did do some googling on it before posting and was relatively confident that the attempt to exp

RE: [PHP] Suggestions for class design

2005-09-20 Thread Chris W. Parker
Sorry I've been so quiet on this topic since I started it but I've basically been overwhelmed with information! :) I was hoping the answer(s) would be a lot more plain and simple than it(they) has been so I could get to implementing some things right away. But I'm afraid it's going to take me longe

RE: [PHP] Re: Suggestions for class design

2005-09-20 Thread Chris W. Parker
Murray @ PlanetThoughtful on Tuesday, September 20, 2005 8:15 AM said: > And it's also worth mentioning at this point that it might present > more of a challenge to the original poster to implement and make use > of a complex data abstraction package [1] than to lear

RE: [PHP] security/sql issues with php

2005-09-21 Thread Chris W. Parker
bruce on Wednesday, September 21, 2005 5:10 PM said: > but in all honesty thanks for being honest. > , if you're going to write an app, and you're going > to do something with the data, it makes sense to me that you > 'know'/ensure that you're dealing with the corr

RE: [PHP] security/sql issues with php

2005-09-21 Thread Chris W. Parker
bruce on Wednesday, September 21, 2005 6:03 PM said: > since i > assume the '%x' chars traslate into something other than straight > text, i assume that the html function you mention strips out these > chars, or it returns a true/false if the data is valid. Those ch

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Chris W. Parker
bruce on Thursday, September 22, 2005 11:05 AM said: > if the app allows the user to enter the input (call it 'foo') and then > submits the form via a POST, where the data is then written to the > db, what kind of validation should occur? Depends on what kind of a f

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Chris W. Parker
bruce on Thursday, September 22, 2005 11:58 AM said: > hey chris... Hi. > so you're sayng that if data is outside of a-zA-Z0-9 "'" then it > should probably fail the regex anyway.. and it should error out.. (Where did that apostrophe come from? That wasn't in my l

RE: [PHP] Opensource webshop

2005-09-22 Thread Chris W. Parker
Gustav Wiberg on Thursday, September 22, 2005 1:21 PM said: > Hi there! Hi. > I'm just beginning to test if there is some interest in an > opensource-webshop... Do you mean a shopping cart? > The admin-part is not opensource.. Hmm... why not? And do I have to pa

RE: [PHP] basic user/input form questions... more validation!

2005-09-22 Thread Chris W. Parker
bruce on Thursday, September 22, 2005 3:33 PM said: > further investigation seems to imply that 'strings' that are to be > inserted into the mysql db should be 'backslashed' for the chars > > \x00, \n, \r, \,'," and \x1a. That's what escaping is. > the mysql_real_e

RE: [PHP] Subtracting dates w/o database interaction (MySQL)

2005-09-23 Thread Chris W. Parker
Philip Thompson on Friday, September 23, 2005 9:12 AM said: > I'm needing to find the number of days between two dates without > using an database functions (DATE_SUB, etc)... only PHP. Is there an > easy way to accomplish this? I have searched the PHP site, but have

RE: [PHP] basic user/input form questions... more validation!

2005-09-23 Thread Chris W. Parker
bruce on Friday, September 23, 2005 10:46 AM said: > which is why it's critical/important to really lay out (architect) > your app and to think about how the app should be handling various > data types. this also goes to thiking about how you name variables in > your

RE: [PHP] basic user/input form questions... more validation!

2005-09-23 Thread Chris W. Parker
bruce on Thursday, September 22, 2005 4:19 PM said: > the articles i've seen imply that if you addslashes, you also need to > stripslashes on the backend... That's probably because gpc_magic_quotes (I think that's what it's called) is turned on and doing addslashes

RE: [PHP] OT - database and indexes... but anyone please?

2005-09-26 Thread Chris W. Parker
Gustav Wiberg on Saturday, September 24, 2005 9:48 PM said: > Thanx! Ok so I had to look up and down that message 3 or 4 times before I found this insignificant one line response. TRIM YOUR POSTS! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

RE: [PHP] Bitwise operators

2005-09-26 Thread Chris W. Parker
[EMAIL PROTECTED] on Monday, September 26, 2005 9:18 AM said: > So i ask what this output? > > $a = 4; > $b = 3; > > echo $a << $b; > echo $a >> $b; You just spent 3-5 minutes writing an email and now almost 10 minutes waiting for a reply to something that would

RE: [PHP] mysql/php date functions..

2005-09-26 Thread Chris W. Parker
bruce on Monday, September 26, 2005 11:13 AM said: > i'm concerned that i can't seem to craft/create a basic sql cmd > within mysql to get a value (other than NOW()) to work... [snip] > my question is why??? MySQL timestamps are different from UNIX timestamps. Chr

RE: [PHP] mysql/php date functions..

2005-09-26 Thread Chris W. Parker
John Nichel on Monday, September 26, 2005 12:43 PM said: > I don't convert it. I store the UNIX timestamp in an INT(11) column. This is going to be a basic question I'm sure but why INT and not VARCHAR? Is it simply because a timestamp is a number? Chris. -- PH

RE: [PHP] Array Select from database

2005-09-28 Thread Chris W. Parker
Silvio Porcellana on Wednesday, September 28, 2005 9:37 AM said: > In addiction, I would (SQL)escape the values joined: supposing you are > using MySQL, I'd do: > $values = join("', '", array_map('mysql_real_escape_string', $array)); Now that's a Freudian slip if I

RE: [PHP] Mixing PHP & VBSCript

2005-09-29 Thread Chris W. Parker
Jay Blanchard on Thursday, September 29, 2005 11:03 AM said: > I have a situation where I have to fix an app interface that was > constructed with hundreds of lines of VBScript. The quickest way for > me to do this would be to replace the offending VBScipt with PHP.

RE: [PHP] Mixing PHP & VBSCript

2005-09-29 Thread Chris W. Parker
Jay Blanchard on Thursday, September 29, 2005 1:34 PM said: > Darn right 'wow'! > > I can keep the ASP seperate from the PHP by use of the proper tags > for this instance. So... > > <% stuff here gets executed by ASP %> > Wow. I didn't think that would work! haha

RE: [PHP] creating a shopping cart.

2005-10-03 Thread Chris W. Parker
Jay Blanchard on Monday, October 03, 2005 5:30 AM said: > A basic flowchart could have helped you to answer your question and > broken down the processes into their componenet parts. Heck, you > don't even need fancy flowcharting software...just write down the > step

RE: [PHP] Still struggeling with my first script...

2005-10-14 Thread Chris W. Parker
twistednetadmin on Friday, October 14, 2005 12:39 PM said: > Here are all the scripts original. It still won't work. I can't see > what's wrong with it??? > It's from the tutorial PHP5 and Mysql for dummies. What exactly is the problem? "It still won't work" is

RE: [PHP] Still struggeling with my first script...

2005-10-14 Thread Chris W. Parker
twistednetadmin on Friday, October 14, 2005 5:15 PM said: > All: Sorry. I forgot to write what's wrongstupid me... No problem. You'll get used to it. (I don't mean you'll get used to being stupid! I mean you'll get used to including all the relevant info!)

[PHP] Upgraded mail server today, testing functionality! (Sorry!)

2005-10-15 Thread Chris W. Parker
I know I know I know. I don't like test message either but since I started the upgrade I haven't received any new PHP mailings. Could be just because of low traffic, but I need to make sure. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Ugh, w32 anything is making me want to drink!

2005-10-21 Thread Chris W. Parker
Jordan Miller on Friday, October 21, 2005 1:32 PM said: > I agree with John. It looks like you either need a hammer or the > rooftop of a 5-story building... How is he supposed to smash a computer with the rooftop of a 5-story building? It's too big!! -- PHP Genera

[PHP] How to account for misspellings and alternatives in searching?

2005-10-27 Thread Chris W. Parker
Hello, On my site right now if someone searches for "511" (a misspelling of the manufacturer 5.11) they are not presented with the right products because 511 is not found anywhere in the database. I've got a few ideas on how to solve this but I want to find one that requires as little administrat

RE: [PHP] Re: How to account for misspellings and alternatives insearching?

2005-10-28 Thread Chris W. Parker
Jochem Maas on Friday, October 28, 2005 1:33 AM said: > James Benson wrote: >> Not sure about the numbers but soundex could be useful >> >> http://php.net/soundex > > right and maybe its easier to just index thing like '5.11' as > '511' - ie just stripping off ever

<    5   6   7   8   9   10   11   >