Re: [PHP] Sorting files in a directory

2007-08-09 Thread Chad Robinson
Steve Marquez wrote: I know this code does not work, but I was curious if someone can take a look and tell me what is wrong? Thank you so much. Re-indent your code properly. If you do it will look like: "; while (($file = readdir($dh)) !== false) { if (ereg($pattern, $file)

Re: [PHP] Premature Ajax-ulation

2007-08-03 Thread Chad Robinson
Jay Blanchard wrote: One of my developers saw the following article; http://arstechnica.com/news.ars/post/20070802-security-experts-warn-deve lopers-about-the-risks-of-premature-ajax-ulation.html How are you securing Ajax? I know that for the most part we send data to a PHP script for processin

Re: [PHP] Includes eating up my time

2007-07-31 Thread Chad Robinson
Dave M G wrote: Currently, my processes are taking under a second, but they can be around half a second or more. Although it all happens too fast for me to really notice as a person, it seems to me that a half second of processing time might be kind of long and lead to scalability problems. Th

Re: [PHP] Authentication

2007-07-27 Thread Chad Robinson
Dan Shirah wrote: My application is only used within my company. I want to pull the NT Authenticated user that is logged in, cross reference that user with what I have pulled from ldap and verify the user's name is valid. If the username is valid I will assign it to a variable and use that variab

Re: [PHP] import spreadsheet

2007-07-27 Thread Chad Robinson
Angelo Zanetti wrote: Hi guys Does anyone have any resources or links as to how to import a spreadsheet but it might have different number of columns and many sheets (those tab things at the bottom). What I thought of doing was creating a table that has 10 fields and if the file thats being imp

Re: [PHP] Smarty template for parent-child form

2007-07-24 Thread Chad Robinson
Man-wai Chang wrote: > Is there a template that presents a parent-child > forms, for example, an invoice object which has a header(invoice no, > date, customer code, invoice total) and multiple items (item no, item > name, quantity, price, amount)? > Go to http://smarty.php.net/manual/en/languag