[PHP] simple xml object

2009-10-26 Thread Chris W
22133104871678' Attr: lastinspected = '9/29/2009 0:00' SimpleXMLElement Object ( [...@attributes] => Array ( [id] => 20080922133104871678 [lastinspected] => 8/28/2009 0:00 ) [0] => 1.1 ) Attr: id = '20080922133104871678' At

[PHP] MySQLi and prepared statements

2009-10-19 Thread Chris W
If I am using the mysqli extension and prepared statements, after I execute bind_param, is there a away to print the actual query that gets sent to the server? -- Chris W KE5GIX "Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesig

[PHP] preg_match_all

2008-05-29 Thread Chris W
aren't any but just in case. preg_match_all("/(< *a[^>]*href[^>]+>)(.*)<\/a>/", $Line, $matches, PREG_PATTERN_ORDER); -- Chris W KE5GIX "Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_dr

[PHP] Re: array recursion from database rows

2008-05-24 Thread Chris W
nt "[li][a href='$URL']$Title[/a][/li]\n"; PrintMenu($MenuID, $MenuItemID); } print "[/ul]\n"; } } -- Chris W KE5GIX "Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm"; H

[PHP] urlencode and urldecode

2008-05-17 Thread Chris W
retty sure, that at one time on a server I used in the past, that I had to manually call urldecode to decode GET vars. Is there a setting to change this or is it something that changed in php in the last few years? -- Chris W KE5GIX "Protect your digital freedom and privacy, eliminate

[PHP] String searching

2008-05-16 Thread Chris W
part must be only in the set described above. What is the easiest way to do this? -- Chris W KE5GIX "Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm"; Ham Radio Repeater Database. http://hrrdb.com -- PHP General Ma

[PHP] Re: changing order of items

2008-05-15 Thread Chris W
$TempID = $row['ID']; $TempPriority = $row['Priority']; $query = "UPDATE `todolist` SET `Priority` = '$Order' \n"; $query .= "WHERE `ID` = '$TempID' " run query $query = "UPDATE `todolist` SET `Priority` = '$TempPriority&

[PHP] Re: question about validation and sql injection

2008-05-15 Thread Chris W
var. If magic_quotes_gpc is off, you can and should remove the strip slashes function call. Note the only reason I use trim is to get rid of any white space that may be at the ends of the string. magic_quotes_runtime is OFF magic_quotes_sybase is OFF These should both be off too. -- Ch

[PHP] Validating Form input

2008-05-14 Thread Chris W
is it will cut down on the errors in data that get to the server and then in turn reduce the number for resubmits and keep traffic down a little. However since none of the projects I have worked on are very high traffic sites, that hasn't been much of a concern. Any thoughts? -- Chris W K

Re: [PHP] validating textarea using php

2008-05-13 Thread Chris W
php6? From the article I read, that isn't one of them. -- Chris W KE5GIX "Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm"; Ham Radio Repeater Database. http://hrrdb.com -- PHP General Mailing List (http://www.php.ne

[PHP] Re: Division [maybe a bug]

2008-05-11 Thread Chris W
jo opp wrote: 2008/5/11 Chris W <[EMAIL PROTECTED]>: jo opp wrote: Hello! $var1= 2155243640%31104000; $var2= 2147309244%31104000; echo $var1 // Return -24651656 echo $var2 // Return 1133244 $var2 return the correct result, but $var1 is wrong (the correct result is 9067640) Pr

[PHP] Re: Division [maybe a bug]

2008-05-10 Thread Chris W
2,147,483,648 if you are dealing with numbers that large, consider using some arbitrary precision math functions that can work with as large of numbers as you need. http://us3.php.net/manual/en/refs.mathcrypto.math.php -- Chris W KE5GIX "Protect your digital freedom and privacy, eliminate DRM,

[PHP] xml processing cdata

2008-05-09 Thread Chris W
( [id] => 2 [display-name] => 207069.pdf [file-name] => 207069.pdf [obj-type] => 1 [system] => 0 ) ) -- Chris W KE5GIX "Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defecti

Re: [PHP] module loading problems

2007-07-25 Thread Chris W
led to a halt, while other sites on my server work perfectly. Most annoying! Cheers, Rich -- Chris W KE5GIX "Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm"; Gift Giving Made Easy Get the gifts you want & giv

[PHP] module loading problems

2007-07-25 Thread Chris W
exif module and now it doesn't load either. Anyone have any idea why these 2 modules won't load when the others do? -- Chris W KE5GIX "Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm"; Gift Giving Made Ea

RE: [PHP] List

2007-04-25 Thread Chris W. Parker
On Tuesday, April 24, 2007 6:02 PM Richard Lynch 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 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

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

[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 (mediumin

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 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:

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 ! 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

[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 t

[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 i

RE: [PHP] Name Capitalization

2007-03-19 Thread Chris W. Parker
On Monday, March 19, 2007 10:24 AM Leonard Burton 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-19 Thread Chris W. Parker
On Monday, March 19, 2007 11:28 AM Brad Fuller 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". D

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 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? If I comment the x I see 'hel

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 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

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 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

[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 php

[PHP] reverse http authentication

2007-02-16 Thread Chris W
I want to read a page that is protected with http authentication. How do I pass the user name and password to be authenticated with my php code? -- Chris W KE5GIX "Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm&quo

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 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 c

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 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 othe

[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 w

Re: [PHP] DOMDocument Size limit

2006-12-18 Thread Chris W
he job. I looked for something in the php.ini file but the only thing I found was output_buffering = 4096 and that doesn't seem like it would be a problem. -- Chris W KE5GIX "Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/w

[PHP] DOMDocument Size limit

2006-12-18 Thread Chris W
100k or maybe even more.| -- Chris W KE5GIX "Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm"; Gift Giving Made Easy Get the gifts you want & give the gifts they want One stop wish list for any gift, from anyw

[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 webs

RE: [PHP] Data validation at the db level

2006-09-07 Thread Chris W. Parker
Jay Blanchard 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: http://www.php.net/un

[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 thin

RE: [PHP] Format of Encrypted Password

2006-09-05 Thread Chris W. Parker
Kevin Murphy 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? Mig

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] Shopping cart

2006-08-23 Thread Chris W. Parker
Richard Lynch 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 wh

[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 of

RE: [PHP] active directory and PHP

2006-08-18 Thread Chris W. Parker
Richard Lynch 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] 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: Using the same function above I discovered I can do this: The issue is whether or not this is a safe test. My initial thought is that it is safe since I'

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

2006-08-17 Thread Chris W. Parker
Daevid Vincent 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' => 'Wa

RE: [PHP] Creating User Friendly URLS

2006-08-17 Thread Chris W. Parker
tedd 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 folde

[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. $val) { if($val === $new) $vname = $key; } $var = $old; return $vname; } ?> Anyone aware of a simple

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

2006-08-15 Thread Chris W. Parker
Brad Bonkoski 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? Te

[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: versus: Of course this is an overly simplistic example but you get the

RE: [PHP] OT? Verifying mail was received

2006-08-11 Thread Chris W. Parker
tedd 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.

RE: [PHP] OT? Verifying mail was received

2006-08-10 Thread Chris W. Parker
Richard Lynch 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 work

[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] Best way to get PHP5

2006-08-09 Thread Chris W. Parker
Jonathan Duncan 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] 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). > > W

RE: [PHP] Best way to get PHP5

2006-08-09 Thread Chris W. Parker
Jochem Maas 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 th

[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 5.1

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

RE: [PHP] Enterprise grade CMS+Ecomm

2006-07-20 Thread Chris W. Parker
Brady Mitchell 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

[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 d

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

RE: [PHP] Image submit with mouse over

2006-07-17 Thread Chris W. Parker
Skip Evans 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 purp

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

2006-06-21 Thread Chris W. Parker
Ryan A 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 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 cont

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

2006-05-12 Thread Chris W. Parker
tedd 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!?! >

RE: [PHP] Another Shell Caught

2006-05-11 Thread Chris W. Parker
Wolf 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

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

2006-05-04 Thread Chris W. Parker
Ryan A 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

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

2006-05-04 Thread Chris W. Parker
Ryan A 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 m

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

2006-05-04 Thread Chris W. Parker
Ryan A 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 t

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

2006-05-04 Thread Chris W. Parker
Jay Blanchard 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... Edit User #241241 ...have to do with being lazy? Chris. -- PHP Genera

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

2006-05-04 Thread Chris W. Parker
Ryan A 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 er

RE: [PHP] Creating an OO Shopping Cart

2006-05-04 Thread Chris W. Parker
Richard Lynch 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

RE: [PHP] Creating an OO Shopping Cart

2006-05-03 Thread Chris W. Parker
Edward Vermillion 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 in

RE: [PHP] Creating an OO Shopping Cart

2006-05-03 Thread Chris W. Parker
Steve 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

RE: [PHP] Sanity checker?

2006-05-03 Thread Chris W. Parker
Ezra Nugroho 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

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: p

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, 2006

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

2006-05-01 Thread Chris W. Parker
Richard Lynch 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 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* wo

Re: [PHP] phpmyadmin problems with quoting exported text

2005-11-09 Thread Chris W
Richard Lynch wrote: On Sun, November 6, 2005 2:17 am, Chris W wrote: I just tried to use the output of the export function on phpmyadmin and got a million errors. After looking at the file I found that certain columns that are strings were not quoted at all. I can't find any reaso

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

[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] 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] 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 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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-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] 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 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] 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

  1   2   3   4   5   6   7   8   9   10   >