RE: [PHP] List

2007-04-25 Thread Chris W. Parker
On Tuesday, April 24, 2007 6:02 PM Richard Lynch mailto:[EMAIL PROTECTED] said: I do not have any problems, but I'm not using Outlook, and never will. Okay... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Question about OO design

2007-04-10 Thread Chris W. Parker
On Monday, April 09, 2007 4:24 PM Jochem Maas mailto:[EMAIL PROTECTED] said: Ok. I see what you're saying. If I populate all that data during the constructor why would I ever call the function again right? you could refresh the data if needed - but basically the idea is to cut down the user

[PHP] Question about OO design

2007-04-09 Thread Chris W. Parker
Hello, I'm working on a project now and I'd like to get some feedback on how to implement a proper class (or two). This is an application that records an employee's used vacation time. There are two tables: (1) events, (2) users. Users: id (int) name (varchar) email (varchar) balance

RE: [PHP] Question about OO design

2007-04-09 Thread Chris W. Parker
On Monday, April 09, 2007 3:51 PM Jochem Maas mailto:[EMAIL PROTECTED] said: Thanks for the response Jochem. Chris W. Parker wrote: [snip] you probably only want one DB call to populate the User object with all the relevant user data at the point where the object is created. [snip] Ok. I

[PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris W. Parker
Hello, I have a form page and a processing page. After submitting the form the processing page does whatever it needs to do (insert a record, send back validation errors, etc.) After determing what to do it always redirects somewhere with header('Location: URL'); But sometimes when I'm back at

RE: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris W. Parker
On Tuesday, April 03, 2007 11:44 AM Tijnema ! mailto:[EMAIL PROTECTED] said: This is the only behavior i know of, a refresh action does the same action he did for loading the current page again. If you submit data to that page, it will resubmit the data. If you're using the Location:URL

RE: [PHP] Why do some pages repeat a previous page's action(s) after redirect?

2007-04-03 Thread Chris W. Parker
On Tuesday, April 03, 2007 12:35 PM Chris Shiflett mailto:[EMAIL PROTECTED] said: But sometimes when I'm back at the form page (after the redirect) and I refresh the page it does the previous page's actions again. Can you provide a raw HTTP dump of the complete scenario? Two things: 1. How

[PHP] Security: Passing URLs between pages for redirect

2007-04-02 Thread Chris W. Parker
Hi. Currently I'm building a small application for internal office use but I'd like to get some feedback on a certain aspect of it. When someone tries to access a page they do not have access to they are redirected to the login page with the URL they tried to access in the querystring. This URL

RE: [PHP] Can't get PHP errors to display or log consistently

2007-03-19 Thread Chris W. Parker
On Friday, March 16, 2007 4:04 PM Robert Cummings mailto:[EMAIL PROTECTED] said: Update: Now that I've corrected my mistake in php.ini and set the level of error reporting that I want I can see *most* errors. But shouldn't the following produce a visible error? ?php error_reporting(E_ALL);

RE: [PHP] Can't get PHP errors to display or log consistently

2007-03-19 Thread Chris W. Parker
On Monday, March 19, 2007 11:28 AM Brad Fuller mailto:[EMAIL PROTECTED] said: Syntax errors like that will cause a startup error, which means your code can't be evaluated. So those 2 lines of code that turn the error reporting on never get executed. Oooohh it's a startup error. Didn't

RE: [PHP] Name Capitalization

2007-03-19 Thread Chris W. Parker
On Monday, March 19, 2007 10:24 AM Leonard Burton mailto:[EMAIL PROTECTED] said: For instance, McDonald needs to remain that way even if it comes in as MCDONALD, or mcdonald. [snip] Yeah, nothing is a perfect solution but anything is better than nothing. That's probably true when you're

[PHP] Can't get PHP errors to display or log consistently

2007-03-16 Thread Chris W. Parker
Hello, Using CentOS 4 and I can't get errors to display on the page AT ALL or log errors consistently. Some errors get logged (forgetting to us $this- in a class for example) but most don't. I've tried: * using .htaccess to set the error reporting. * checking and double checking my

RE: [PHP] Can't get PHP errors to display or log consistently

2007-03-16 Thread Chris W. Parker
On Friday, March 16, 2007 12:37 PM Robert Cummings mailto:[EMAIL PROTECTED] said: Is there a custom error handler in place? Try grepping for set_error_handler. Not in this project. Being used in another project wouldn't count towards this one would it? Thanks. -- PHP General Mailing List

RE: [PHP] Can't get PHP errors to display or log consistently

2007-03-16 Thread Chris W. Parker
On Friday, March 16, 2007 12:49 PM Robert Cummings mailto:[EMAIL PROTECTED] said: If either project overrides the error handler than a custom error handler is in place. All depends on whether the code that sets it gets run. (Was at lunch.) I see. In that case how do I override it in this

[PHP] Storing dynamic attribute data in a db

2007-01-18 Thread Chris W. Parker
Hello, This is now my 3rd attempt at writing this email. :) The first two were pretty long... I'm currently working on trying to find a solution that is both simple and flexible for storing the data of a complicated set of dynamic options for some of our products. My current thinking is that I

RE: [PHP] Storing dynamic attribute data in a db

2007-01-18 Thread Chris W. Parker
On Thursday, January 18, 2007 3:51 PM Chris mailto:[EMAIL PROTECTED] said: Hey Chris, If you have to write a 6 page document to explain what's going on, that's probably bad.. because in 6 months time if you need to revisit it, you're going to have issues. hehe I wouldn't say that my other

RE: [PHP] Storing dynamic attribute data in a db

2007-01-18 Thread Chris W. Parker
On Thursday, January 18, 2007 5:09 PM Paul Novitski mailto:[EMAIL PROTECTED] said: Are you considering keeping all the levels of your data tree in a single table because you can't predict how many levels there will be? If you CAN predict its depth, wouldn't it be simpler and easier to

[PHP] +AFs-OT+AF0- Working with version control

2006-09-21 Thread Chris W. Parker
Hello, This is off topic but I wanted to get the list member's opinions on the subject as it will probably benefit someone else. Currently I don't use version control at all. What I do instead is have one directory that contains my development website and one directory that contains the live

[PHP] Data validation at the db level

2006-09-07 Thread Chris W. Parker
Hey everyone, Is there any work being done in the database world for data validation at the db level? It would be cool to just define a field as being an email address (of length nn) instead of saying a TEXT field (of length nn) and validating it in the application layer. Same goes for other

RE: [PHP] Data validation at the db level

2006-09-07 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] on Thursday, September 07, 2006 5:16 PM said: There are all sorts of ways to validate data at the DB level and this is a PHP question how? Just because! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Format of Encrypted Password

2006-09-05 Thread Chris W. Parker
Kevin Murphy mailto:[EMAIL PROTECTED] on Tuesday, September 05, 2006 3:27 PM said: The passwords are called in the application by: $_SERVER['PHP_AUTH_PW'] Is there any way to tell how these passwords were encrypted? Have you tried searching the entire codebase for that string? Might

RE: [PHP] Shopping cart

2006-08-23 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Tuesday, August 22, 2006 10:30 AM said: Guys, don't take this wrong but... How do you think all the other PHP shopping carts got started?... Pretty much the same way. So you really need to spend the next couple months figuring out what they

RE: [PHP] OT alternate website authentication methods

2006-08-23 Thread Chris W. Parker
Everyone, Been out of the office for a few days... As nearly everyone has pointed out, the downside(s) to visual/audial authentication methods are greater than the benefits Thanks! Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] active directory and PHP

2006-08-18 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Friday, August 18, 2006 9:47 AM said: Active Directory is a bastardized LDAP with goofy idiosyncracies to drive you crazy. And you're speaking from experience? Never use AD myself. Oh wait, I guess not... :/ Chris. p.s. I'm just having

[PHP] OT alternate website authentication methods

2006-08-18 Thread Chris W. Parker
Hello, Last night I was reading Chris Shiflett's PHP Security book from O'Reilly and got to thinking about ways to authenticate a user other than using a password. Ideas: 1. Use flash to allow the user to draw an image. If the original image created during signup is within an acceptable range

RE: [PHP] Creating User Friendly URLS

2006-08-17 Thread Chris W. Parker
tedd mailto:[EMAIL PROTECTED] on Thursday, August 17, 2006 8:29 AM said: And then stripping out the index.php, and using the remainder for both the URL and the database lookup. Why not just place all your pages inside folders with the names you want and then link to the folders?

RE: [PHP] I need an array of state abbrev to names...

2006-08-17 Thread Chris W. Parker
Daevid Vincent mailto:[EMAIL PROTECTED] on Thursday, August 17, 2006 12:58 PM said: B/c I'm too busy (and lazy) to hand type it all in, wondering if someone has an array of state abbreviations to names like so... $states = array( ... 'NY' = 'New York', 'WA' = 'Washington',

[PHP] Looking for caveats to the following code

2006-08-17 Thread Chris W. Parker
Hello, While experimenting with some object stuff I stumbled upon something new (although not object related). Normally I would do this: ?php function do_something($input) { if($input == 'hello') { return $input; } else { return false; } } $result = do_something('hello');

[PHP] Setting flags versus checking for existing/nonexisting values

2006-08-15 Thread Chris W. Parker
Hello, Is it a better practice to set flags to determine the action of your code or is it perfectly acceptable to have your code determine what it should do based on the existence (or lack thereof) of data? For example: ?php if($value == 1) { $flag = true; } if($flag === true) {

RE: [PHP] Setting flags versus checking for existing/nonexisting values

2006-08-15 Thread Chris W. Parker
Brad Bonkoski mailto:[EMAIL PROTECTED] on Tuesday, August 15, 2006 10:04 AM said: Pros: potentially more readable code. Cons: Wasted energy typing unnecessary lines of code. Really I would say it comes down to coder preference. (and why would you avoid the latter all together? Testing

[PHP] Easier way to get the name of a variable?

2006-08-15 Thread Chris W. Parker
Hello, After some intense searching of Google I found one example at http://us2.php.net/language.variables on how to get the name of a variable. But it looks pretty expensive. ?php function vname($var, $scope=false, $prefix='unique', $suffix='value') { if($scope) $vals = $scope; else

RE: [PHP] OT? Verifying mail was received

2006-08-11 Thread Chris W. Parker
tedd mailto:[EMAIL PROTECTED] on Thursday, August 10, 2006 7:59 PM said: Not a php solution, but send them all a buck via PayPal. For $90 you'll learn if their email addresses are correct. That should be cheaper than writing a program to figure it out for you, if it can be done. Here's

[PHP] OT? Verifying mail was received

2006-08-10 Thread Chris W. Parker
Hello, I have about 90 customers who have created accounts but not yet activated them in the past 11 months. That's less than one every 3.6 days but compared to our total number of customers, it's right at the edge of being a significant number. I'm curious to find a way to determine if the mail

RE: [PHP] OT? Verifying mail was received

2006-08-10 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Thursday, August 10, 2006 1:14 PM said: Keep in mind that for many mere mortals, the process of dealing with your email confirmation goes like this: 1. surf to site, put in email 2. check email, find nothing. 3. go back to site, use

[PHP] Best way to get PHP5

2006-08-09 Thread Chris W. Parker
Hello, Generally (well, actually 100%) I just use whatever version of PHP is included with a certain distro (Redhat pre-Fedora, Fedora Core, CentOS). None of the versions I've used have come with PHP5 and I'd really like to get with the times and use PHP5. I know that Fedora Core 5 offers PHP

RE: [PHP] Best way to get PHP5

2006-08-09 Thread Chris W. Parker
Jochem Maas mailto:[EMAIL PROTECTED] on Wednesday, August 09, 2006 11:05 AM said: [snip useful stuff] 1. you can skip 'make test' 2. if in doubt do 'make clean' before 'make' 3. rinse and repeat 'configure', 'make', 'make install' as required 4. do './configure --help' to see all the

RE: [PHP] Best way to get PHP5

2006-08-09 Thread Chris W. Parker
Jack Gates mailto:[EMAIL PROTECTED] on Wednesday, August 09, 2006 10:16 AM said: On Wednesday 09 August 2006 12:02, Chris W. Parker wrote: I know that Fedora Core 5 offers PHP 5.1.2 but I've heard some negative things about it in general (FC5). What sort of negative things have you

RE: [PHP] Best way to get PHP5

2006-08-09 Thread Chris W. Parker
Jonathan Duncan mailto:[EMAIL PROTECTED] on Wednesday, August 09, 2006 3:55 PM said: If you want to really learn Linux, try Gentoo. If you just want a very good and easy to use Linux, go with SuSE. To keep this related to the question I asked... Do either of the latest builds of these

RE: [PHP] Enterprise grade CMS+Ecomm

2006-07-21 Thread Chris W. Parker
Larry Garfield mailto:[EMAIL PROTECTED] on Thursday, July 20, 2006 6:36 PM said: On Thursday 20 July 2006 11:30, Chris W. Parker wrote: Drupal has its own ecommerce suite that is reasonably robust all on its own. Yeah I saw that module. I think today I am going to try to set them both

[PHP] Enterprise grade CMS+Ecomm

2006-07-20 Thread Chris W. Parker
Hello, So we're getting ready to redo our website once again to integrate some modern changes and a shift in branding. I'm currently looking at all my options as far as software goes. The question I have to answer is Do I write everything by myself from scratch and spend 3-6 months doing it? Or

RE: [PHP] Enterprise grade CMS+Ecomm

2006-07-20 Thread Chris W. Parker
Brady Mitchell mailto:[EMAIL PROTECTED] on Thursday, July 20, 2006 12:25 PM said: The answer to this question depends heavily on your needs. What kind of functionality do you need to get out of your website? If you are looking for a website that is similar to others in function, than I

RE: [PHP] Image submit with mouse over

2006-07-17 Thread Chris W. Parker
Skip Evans mailto:[EMAIL PROTECTED] on Friday, July 14, 2006 4:33 PM said: My apologies to all. I assumed that JS questions would be entertained as the application is within a PHP app. No need to apologize. My off-list email wasn't meant to berate but merely let you know what the purpose

RE: [PHP] Image submit with mouse over

2006-07-17 Thread Chris W. Parker
Chris W. Parker on Monday, July 17, 2006 10:23 AM said: motherboards. Or how about this one? My can't keeps walking on my keyboard while I'm trying to write a PHP page. What should I do? Okay that should be CAT, not can't. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

RE: [PHP] Better way of doing this? (menu and submenus)

2006-06-21 Thread Chris W. Parker
Ryan A mailto:[EMAIL PROTECTED] on Wednesday, June 21, 2006 10:51 AM said: @K. Bear - Thanks for the link, I'll check it out as soon as i get a little time. Read that article. I personally like the Nested Set (also called Modified Preorder Tree Traversal) method. It may at first be a

RE: [PHP] Paged Results Set in MySQL DB with one result

2006-05-15 Thread Chris W. Parker
tedd mailto:[EMAIL PROTECTED] on Friday, May 12, 2006 12:23 PM said: That's as it should be -- and technically, Next did appear so the page wasn't blank. Splitting hairs aside, a user, civilian or not, would not expect they need to click Next from a blank page to get to the content they

RE: [PHP] Paged Results Set in MySQL DB with one result

2006-05-12 Thread Chris W. Parker
tedd mailto:[EMAIL PROTECTED] on Friday, May 12, 2006 11:01 AM said: At 6:03 PM +0100 5/12/06, Porpoise wrote: tedd [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try this: http://xn--ovg.com/ajax_page1 Eerrrm... Blank Page!?! It shouldn't be blank.

RE: [PHP] Another Shell Caught

2006-05-11 Thread Chris W. Parker
Wolf mailto:[EMAIL PROTECTED] on Thursday, May 11, 2006 8:01 AM said: If any of you guys want to know when I get another shell caught on my site, email me off-list and I'll set you up as a mailing list personally. This new one is the r57shell and is picked up by Symantec What is a

RE: [PHP] Creating an OO Shopping Cart

2006-05-04 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Thursday, May 04, 2006 2:06 AM said: Contact the bank with which you already HAVE a merchant account for your point-of-sale credit card swiper thingies. Already have the info in front of me. :) If you're re-doing it anyway, you might as well do

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Ryan A mailto:[EMAIL PROTECTED] on Thursday, May 04, 2006 10:38 AM said: - Anything else you wish to add pertaining to the above. You could try sending an insanely long value to a script on your page and see how much of the actual data it received before being truncated or causing an

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] on Thursday, May 04, 2006 10:42 AM said: [snip] - Anything else you wish to add pertaining to the above. [/snip] People who use GET requests are lazy. What does... a href=edit_user.php?uid=241241Edit User #241241/a ...have to do with being

RE: [PHP] Maximum URL length (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Ryan A mailto:[EMAIL PROTECTED] on Thursday, May 04, 2006 1:18 PM said: Thanks for replying, thats an idea, but was hoping people from this list could reply with their experiences because my local server might be different from production servers that you guys access everyday (as the

RE: [PHP] Test URL length please (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Ryan A mailto:[EMAIL PROTECTED] on Thursday, May 04, 2006 1:36 PM said: (Basically, I am checking to see how many characters we can have in a URL that the server will accept and process, the script checks 200-1000 chars.. add more if you want to) Without any tweaking of the server mine

RE: [PHP] Test URL length please (Pretty much 0T)

2006-05-04 Thread Chris W. Parker
Ryan A mailto:[EMAIL PROTECTED] on Thursday, May 04, 2006 4:08 PM said: Are you sure you searched on this subject? maximum url length in Google turns up a number of resources saying 2083 due to IE's limit. Yes, I mentioned that in my original post... Yes I know, that's why I said,

RE: [PHP] Sanity checker?

2006-05-03 Thread Chris W. Parker
Ezra Nugroho mailto:[EMAIL PROTECTED] on Wednesday, May 03, 2006 10:51 AM said: Well, Reservoir, I envision a tool that would audit your php code, and tell you if your code is good or not, if it has scaling issues, etc, etc. Basically it tells if your php code is sane or not. Is this

RE: [PHP] Creating an OO Shopping Cart

2006-05-03 Thread Chris W. Parker
Steve mailto:[EMAIL PROTECTED] on Friday, April 21, 2006 5:58 PM said: So everyone's aware, I have NO intention of storing credit card #'s. I don't see why anyone needs to.. especially after reading Richard's past posts in the archive. Perhaps if you don't use a merchant account and

RE: [PHP] Creating an OO Shopping Cart

2006-05-03 Thread Chris W. Parker
Edward Vermillion mailto:[EMAIL PROTECTED] on Wednesday, May 03, 2006 4:15 PM said: Ahh!! *thud* Count me in the heart attack group. So would it be a reasonable risk if it was *your* cc # that was stolen? And do your customers *know* that you're handling their sensitive info in

RE: [PHP] ????,????????????

2006-05-02 Thread Chris W. Parker
Yes definitely. I totally agree. Please send me more on the product/service you're giving away/trying to sell to me/us. I'd really like to see/hear/experience more. Thanks/Regards/Sincerely! Chris. -Original Message- From: abzgjisf5 [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02,

RE: [PHP] ????,????????????

2006-05-02 Thread Chris W. Parker
Yeah it's Chinese. I can see the characters fine. The subject is just ? marks, though I'm not sure why. -Original Message- From: Rory Browne [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 02, 2006 4:45 PM To: Chris W. Parker Cc: php-general

RE: [PHP] PHP Standard style of writing your code

2006-05-01 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Saturday, April 29, 2006 12:12 AM said: Okay, but let's do keep this fairly serious, and let's NOT let it devolve into the usual religious flame-war this topic gets to... Yeah I should have asked off list as I'm not interested in debating, just

RE: [PHP] PHP Standard style of writing your code

2006-04-28 Thread Chris W. Parker
Richard Lynch mailto:[EMAIL PROTECTED] on Monday, April 24, 2006 11:50 PM said: So no matter what was actually typed, *I* would see: function foo ($x) { //body } but some heretic who doesn't know any better would see: function foo($x) { //body } Now *THAT* would be a

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

2005-10-28 Thread Chris W. Parker
Jochem Maas mailto:[EMAIL PROTECTED] 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 everything not

[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

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

2005-10-21 Thread Chris W. Parker
Jordan Miller mailto:[EMAIL PROTECTED] 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... zooom!How is he supposed to smash a computer with the rooftop of a 5-story building? It's too big!!/zooom! --

[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] Still struggeling with my first script...

2005-10-14 Thread Chris W. Parker
twistednetadmin mailto:[EMAIL PROTECTED] 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 not

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

2005-10-14 Thread Chris W. Parker
twistednetadmin mailto:[EMAIL PROTECTED] 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!)

RE: [PHP] creating a shopping cart.

2005-10-03 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] 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 steps.

RE: [PHP] Mixing PHP VBSCript

2005-09-29 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] 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 mailto:[EMAIL PROTECTED] 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 % ?php stuff here gets executed by PHP ? Wow. I didn't

RE: [PHP] Array Select from database

2005-09-28 Thread Chris W. Parker
Silvio Porcellana mailto:[EMAIL PROTECTED] 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 ever

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

2005-09-26 Thread Chris W. Parker
Gustav Wiberg mailto:[EMAIL PROTECTED] 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,

RE: [PHP] Bitwise operators

2005-09-26 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[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 have taken

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

2005-09-26 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] 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. Chris.

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

2005-09-26 Thread Chris W. Parker
John Nichel mailto:[EMAIL PROTECTED] 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. -- PHP

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

2005-09-23 Thread Chris W. Parker
Philip Thompson mailto:[EMAIL PROTECTED] 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 mailto:[EMAIL PROTECTED] 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 app.

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

2005-09-23 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] 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] basic user/input form questions... more validation!

2005-09-22 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] 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 form

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

2005-09-22 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] 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 list on

RE: [PHP] Opensource webshop

2005-09-22 Thread Chris W. Parker
Gustav Wiberg mailto:[EMAIL PROTECTED] 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 pay for

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

2005-09-22 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] 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

RE: [PHP] security/sql issues with php

2005-09-21 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] 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 correct

RE: [PHP] security/sql issues with php

2005-09-21 Thread Chris W. Parker
bruce mailto:[EMAIL PROTECTED] 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

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

2005-09-20 Thread Chris W. Parker
Jochem Maas mailto:[EMAIL PROTECTED] 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

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

RE: [PHP] Re: Suggestions for class design

2005-09-20 Thread Chris W. Parker
Murray @ PlanetThoughtful mailto:[EMAIL PROTECTED] 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 learn a

[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

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] 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, would

RE: [PHP] Suggestions for class design

2005-09-19 Thread Chris W. Parker
Jay Blanchard mailto:[EMAIL PROTECTED] 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 mailto:[EMAIL PROTECTED] 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

[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

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

2005-09-12 Thread Chris W. Parker
Matthew Weier O'Phinney mailto:[EMAIL PROTECTED] 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 mailto:[EMAIL PROTECTED] 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 hoping to

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

2005-09-12 Thread Chris W. Parker
Manuel Lemos mailto:[EMAIL PROTECTED] 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 mailto:[EMAIL PROTECTED] on Monday, September 12, 2005 1:01 PM said: [CODE] for ($myLoop = 0; $myLoop 100; $myLoop= $myLoop + 5) { print Pmy loop: $myLoop; } [/CODE] Where's the code? Oh there it is!

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

2005-09-12 Thread Chris W. Parker
Manuel Lemos mailto:[EMAIL PROTECTED] 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 a

RE: [PHP] Checking a date for validity

2005-09-07 Thread Chris W. Parker
Todd Cary mailto:[EMAIL PROTECTED] 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(/, $date);

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

2005-08-05 Thread Chris W. Parker
Rick Emery mailto:[EMAIL PROTECTED] 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

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

2005-08-05 Thread Chris W. Parker
Rick Emery mailto:[EMAIL PROTECTED] 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. Yes I

[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

  1   2   3   4   5   6   7   8   9   10   >