Re: [nyphp-talk] Web browser quality

2012-05-11 Thread Mark Armendariz
I recently found my nirvana in Chrome, clean and fast. It's fast, but apparently because it caches everything. It's also way too big-brother for me. H I've been defaulting to Chromium for a while, with the occasional switch to Firefox / Firebug (I work on Ubuntu) I think it's either ctrl

Re: [nyphp-talk] Learning to program the right way

2012-01-23 Thread Mark Armendariz
It seems this might be an unpopular opinion around here, but I think it's a great idea to include all of the above. It teaches that while these things may be optional, the option is to remove them from your process, not to add them. It's important that these ideas are introduced early so that

Re: [nyphp-talk] PHP html DOM manipulation

2011-08-05 Thread Mark Armendariz
Personally, I'm a fan of SimpleHTMLDOM, http://simplehtmldom.sourceforge.net/, which has a great interface, but uses string parsing instead of DOM. I haven't had much experience with these others: phpQuery: http://code.google.com/p/phpquery/ Zend_Dom: http://framework.zend.com/manual/en/z

Re: [nyphp-talk] cURL question

2011-08-04 Thread Mark Armendariz
I assume that the single-pixel-image is actually part of that response. You're not going to get a different url. The url you're using essentially "is" the url to the gif. On Thu, Aug 4, 2011 at 2:51 PM, Rob wrote: > i'm writing out the response and headers out to the error log just to make > su

Re: [nyphp-talk] Reading/writing id3v2 tags from MP3 files in PHP?

2011-08-04 Thread Mark Armendariz
To add to this, there is a fantastic python module called mutagen that does a pretty incredible job of reading and writing id3 tags. I used it pretty heavily on an enormous music-based php project that manages tens of thousands of mp3s. http://code.google.com/p/mutagen/ Mark On Thu, Jul 28, 201

Re: [nyphp-talk] Usernames with whitespace

2011-08-04 Thread Mark Armendariz
I believe WHERE/= in MySQL is case insensitive. If you want case-sensitive conditions, you'll want to use WHERE BINARY field LIKE 'data' or the documentation-preferred WHERE COLLATE latin1_general_cs LIKE 'data'. Important to keep in mind if you're rolling your own authentication. Reference: htt

Re: [nyphp-talk] naming identifiers

2009-09-01 Thread Mark Armendariz
On Mon, Aug 31, 2009 at 8:22 AM, Kristina D. H. Anderson wrote: > I'm wondering why both phpMyAdmin and a number of the boilerplate PHP5 > frameworks' database code bases that I've seen all seem to be pushing > the use of these delimiters around really, every single table and field > name at all ti

Re: [nyphp-talk] naming identifiers

2009-08-30 Thread Mark Armendariz
li...@nopersonal.info wrote: I've seen those odd little quotes on the few occasions that I've used phpMySQL to create queries They're called backticks. http://dev.mysql.com/doc/refman/5.0/en/identifiers.html Happy weekend. Mark ___ New York PHP Us

Re: [nyphp-talk] Advice on setting for testing server

2009-08-23 Thread Mark Armendariz
>> Should I go ahead and turn off error reporting and enable it via my >> scripts, or should I leave it on all the time? If I should leave it on, >> at what level should I set it? E_ALL? > > For a test server I'd say set it to E_ALL. You may get annoyed at times with > messages, but better you get

Re: [nyphp-talk] Working with designers

2009-08-23 Thread Mark Armendariz
> Type I - These are the web designers who know little or nothing about > coding and have no desire to learn. This is not a problem if you know > for a fact that the designer outsources to a skilled, trusted coder. I thought this was a perfect synopsis, and this point especially stands out for me.

[nyphp-talk] [OT] NYC Laywer Recommendation?

2008-10-09 Thread Mark Armendariz
I'm not in any trouble or anything. I need to get a software license in order for a client. Can anyone recommend a laywer here in NYC? Please respond off list. Sorry for the OT, but this is in-fact PHP related as it covers a PHP application. Thanks!! Mark __

Re: [nyphp-talk] Open Source CMS for PHP5

2008-08-19 Thread Mark Armendariz
On Tue, Aug 19, 2008 at 12:28 PM, bzcoder <[EMAIL PROTECTED]> wrote: > Edward Potter wrote: >> >> Ummm, can some one tell me what I CAN'T do with Wordpress 2.6? Although I'm a big fan of Wordpress as well, there's no p5 strict version of WP either. > > I was assuming he meant a strict Content Man

Re: [nyphp-talk] Open Source CMS for PHP5

2008-08-19 Thread Mark Armendariz
On Tue, Aug 19, 2008 at 11:19 AM, csnyder <[EMAIL PROTECTED]> wrote: > On Thu, Aug 14, 2008 at 12:00 PM, Mark Armendariz <[EMAIL PROTECTED]> wrote: > >> I've another project that came in disallowing me to take this project, >> so I'll likely be moving on

Re: [nyphp-talk] Open Source CMS for PHP5

2008-08-14 Thread Mark Armendariz
On Thu, Aug 14, 2008 at 10:31 AM, bzcoder <[EMAIL PROTECTED]> wrote: > Mark Armendariz wrote: >> >> Can anyone recommend an open source CMS (or possibly commercial if >> worthwhile) that works natively on php5 (e_strict)and MySQL 5 >> (strict). > > I t

Re: [nyphp-talk] Open Source CMS for PHP5

2008-08-13 Thread Mark Armendariz
On Wed, Aug 13, 2008 at 4:37 PM, Rob Marscher <[EMAIL PROTECTED]> wrote: > Here's one that was built off of Zend Framework, so I'd guess that the odds > of it running E_STRICT are pretty good: > http://code.google.com/p/digitalus-site-manager/ > > TYPO3 is another popular big cms written in php...

Re: [nyphp-talk] Open Source CMS for PHP5

2008-08-13 Thread Mark Armendariz
On Wed, Aug 13, 2008 at 3:01 PM, Ajai Khattri <[EMAIL PROTECTED]> wrote: > On Wed, 13 Aug 2008, Mark Armendariz wrote: > >> Can anyone recommend an open source CMS (or possibly commercial if >> worthwhile) that works natively on php5 (e_strict)and MySQL 5 >> (strict).

[nyphp-talk] Open Source CMS for PHP5

2008-08-13 Thread Mark Armendariz
Can anyone recommend an open source CMS (or possibly commercial if worthwhile) that works natively on php5 (e_strict)and MySQL 5 (strict). I need it to install easily on Win32 and Linux. And the ability to handle multiple domains with a single installation would be great as well. This morning I'

Re: [nyphp-talk] CSS problem???

2008-07-30 Thread Mark Armendariz
Jake McGraw wrote: On Wed, Jul 30, 2008 at 9:03 AM, BAS <[EMAIL PROTECTED] > wrote: PaulCheung wrote: Hi I am at the stage where I need to put style to the site and am using CSS. with Firefox, Opera, Internet Explorer and Safari

Re: [nyphp-talk] CSS problem???

2008-07-27 Thread Mark Armendariz
Justin Dearing wrote: On 7/27/08, John Campbell <[EMAIL PROTECTED]> wrote: As a side note, is anyone thinking about abandoning IE6 testing? My numbers on IE6 market share show it is around 20%. (my sites are US based and tend to be "consumer" focused). Apple has dropped support for IE6

Re: [nyphp-talk] CSS problem???

2008-07-27 Thread Mark Armendariz
Justin Dearing wrote: On 7/27/08, Mark Armendariz <[EMAIL PROTECTED]> wrote: When you really decide you don't like yourself anymore, start reading up on IE's "hasLayout" property. I never encountered that property before but it sounds like something Raymond

Re: [nyphp-talk] CSS problem???

2008-07-27 Thread Mark Armendariz
John Campbell wrote: Welcome to the world of web development. Cross browser css development is plagued with problems. IE 6 is consistently the worst offender. Even something as simple as centering a block is different in IE, and the standards compatible browsers. There are dozens of quirks, a

Re: [nyphp-talk] Handling empty values in hashes

2008-07-18 Thread Mark Armendariz
Daniel Convissor wrote: Paul: On Thu, Jul 17, 2008 at 02:58:00PM -0400, [EMAIL PROTECTED] wrote: isset($array[$key]) how's that different from array_key_exists? isset() thinks NULL is not set. Similarly, empty() can be used for stuff like this, but of course, it thinks NULL, 0, FALS

[nyphp-talk] MySQL Support Engineer, Andrii Nikitin's son Ivan Needs Our Help.

2008-07-14 Thread Mark Armendariz
"Donations are requested to help Andrii Nikitin, a MySQL support engineer in Ukraine, provide for his son Ivan who requires a bone marrow transplant operation. The cost of this operation is expected to be between $150,000 - $250,000. Please help us provide Ivan a chance to live." http://www.my

Re: [nyphp-talk] Upload progress meter

2008-07-07 Thread Mark Armendariz
csnyder wrote: Here's a brief writeup of how to enable upload progress bars in PHP. http://undesigned.org.za/2008/07/06/simple-php-upload-progress-meter-using-prototype The PECL extension that enables this is still marked as experimental. I wish browser makers would realize that upload progress

Re: [nyphp-talk] Problem with exeuting query while using PHP5 - Commands out of sync; you can't run this command now

2008-06-13 Thread Mark Armendariz
shaiju davis wrote: Hi All, When I try to call the second Stored procedure from PHP , I get this following error "Commands out of sync; you can't run this command now". When I search I get the result as, it is because of the buffering problem with the opened c

Re: [nyphp-talk] comparing arrays to build query?

2008-06-08 Thread Mark Armendariz
So you have an array of zips, like array(11201, 11206, 11301), right? and you need to find all the jobs within that array of zips? If so your query would look something like this: mysql_query('SELECT * FROM Providers INNER JOIN Employers ON Jobs.empid = Employers.EmpID WHERE Jobs.zip IN (' .

Re: [nyphp-talk] 3D ANIMATION

2008-06-04 Thread Mark Armendariz
csnyder wrote: On Wed, Jun 4, 2008 at 1:02 PM, <[EMAIL PROTECTED]> wrote: I'm a visual artist not a coder. I dabble in PHP. I haven't looked in a while but I have not really found an good easy to understand and use 3D rendering program. Does Google Sketchup count? http://sketchup.go

Re: [nyphp-talk] Abstracting CSS: Reusable HTML UI Components

2008-05-03 Thread Mark Armendariz
Michael B Allen wrote: On Sat, May 3, 2008 at 10:57 PM, Mark Armendariz <[EMAIL PROTECTED]> wrote: Michael B Allen wrote: Secondarily, would you expect a professional library of this type to use tableless forms? Personally I have never been able to create tableless forms an

Re: [nyphp-talk] Abstracting CSS: Reusable HTML UI Components

2008-05-03 Thread Mark Armendariz
Michael B Allen wrote: Secondarily, would you expect a professional library of this type to use tableless forms? Personally I have never been able to create tableless forms and have things line up into columns. So for now I'm going to use tables but I would be very interested in hearing someone

Re: [nyphp-talk] ColdFusion vs PHP (Ruby, Perl....)

2008-04-25 Thread Mark Armendariz
David Mintz wrote: Flame me for starting this, I know it might get religious. But: an organization of which I am a member is evaluating proposals to rebuild its website. One of those proposals is from some folks who apparently are partial to ColdFusion. All I know about CF is what I just picke

Re: [nyphp-talk] preforming a task after x hours

2008-04-22 Thread Mark Armendariz
Bruce Martin wrote: Hi, Is there a way to set a process to run every x hours in PHP? look up cron or cronw depending on your platform. Mark ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presen

Re: [nyphp-talk] Why IT Sucks

2008-04-18 Thread Mark Armendariz
ents. So, sure big gigs can be difficult, but they are absolutely possible if the right people know you're good at what you do. And for the IT industry... I left a high paying job as an IT manager on Wall Street long ago to program full time and I've slept much better since.

Re: [nyphp-talk] 40 Tips for optimizing your php Code

2007-10-16 Thread Mark Armendariz
Christopher M Mancini wrote: Hi, I am not familiar with this site or its author? Is this list credible? Because some of the things on there I have never heard before. Looks to be a summary of a bunch of other php optimization articles. I've seen most of these tips in one form or another in t

Re: [nyphp-talk] Premature submit

2007-10-02 Thread Mark Armendariz
therwise futzed with), by checking for the existence of the last field in the form. As long as it's not a checkbox / radio button, even if it's blank it'll still send the data. if (array_key_exists('last_field', $_POST) === false) { // show form with warning or change

Re: [nyphp-talk] ORM vs SQL: the ultimate showdown

2007-09-16 Thread Mark Armendariz
Paul Houle wrote: Mark Armendariz wrote: I'm really fascinated by ideas like this. Have you seen HQL, the query language that comes with the (Java-based) Hibernate ORM system? http://www.hibernate.org/hib_docs/reference/en/html/queryhql.html This is interesting, Paul. Than

Re: [nyphp-talk] ORM vs SQL: the ultimate showdown

2007-09-16 Thread Mark Armendariz
Rob Marscher wrote: On Sep 15, 2007, at 3:24 PM, Mark Armendariz wrote: Anyways, that's my take on SQL and ORM. Both - with an easily manipulated and portable meta language. Sounds pretty cool. Ever thought of analyzing the queries used within an application and automatically generat

Re: [nyphp-talk] ORM vs SQL: the ultimate showdown

2007-09-15 Thread Mark Armendariz
into an extension at some point, but I'm still getting things organized. I'm currently in the process of rewriting the type classes to make the more modular / portable (if anyone has experience in the realm of creating a type system, please give me a shout off-list) Anyways, that

Re: [nyphp-talk] Books & magazines

2007-09-12 Thread Mark Armendariz
Gary Mort wrote: Just wondering what books and magazines people here particularly like for PHP programming. Which are good for learning, and which are good for reference. I'm a Huge fan of Code Complete by Steve McConnell, which is an incredible gathering of best practices for programming in

Re: [nyphp-talk] Check for absolute path (cross platform)

2007-09-10 Thread Mark Armendariz
Jakob Buchgraber wrote: I wrote a function that searches for a file within the include_path. Here it is: // check for absolute path if ($path[0] == "/" || $path[1] == ":") { if (file_exists ($path)) { return $path; } return false; } What about i

Re: [nyphp-talk] AJAX and State

2007-09-05 Thread Mark Armendariz
tedd wrote: At 8:20 AM -0400 9/5/07, [EMAIL PROTECTED] wrote: Hans Zaunere wrote: Ajax solves this problem neatly by letting you move all state [1] into the browser. This makes sense from an architectural viewpoint because we are putting this context information close to where it is needed, t

Re: [nyphp-talk] Framework poll

2007-08-28 Thread Mark Armendariz
csnyder wrote: I think we should have nyphp.org implemented using as many different frameworks as possible, and that each request should by handled by a different, random framework. Brilliant!! And each will have separate implementations for each database (mysql, postgres, oracle, xml, couch

Re: [nyphp-talk] Linux editors

2007-08-28 Thread Mark Armendariz
pyurt wrote: Using Eclipse do you map your local directories to a web server? Do you save your local files in a browser accessible folder? Short... Yes, but a local server. Yes. Long... Locally I'm running apache2 and set up each project as a virtualhost subdomain, like project1.example.c

Re: [nyphp-talk] Linux editors

2007-08-28 Thread Mark Armendariz
Greg Rundlett wrote: Nobody mentioned Quanta Plus, the best free (GPL) IDE on Linux. http://quanta.kdewebdev.org/ Disclaimer: I'm a minor contributor to the Quanta community and a happy user. I tried Quanta, and it was ok. I've tried many of the others mentioned as well. My favorite still

Re: [nyphp-talk] Accessing First Element of Array

2007-08-26 Thread Mark Armendariz
Paul M Jones wrote: On Aug 26, 2007, at 7:54 PM, Jon Baer wrote: Is it anything that $array[0] would not be able to get access to? The function `current($array)` should do the trick. Make sure you do so before trying to loop through the array or anything. ;-) Or just reset before using it.

Re: [nyphp-talk] UPS Shipping Calculator

2007-08-20 Thread Mark Armendariz
Timothy Boyden wrote: while the second example - though ultimately helpful if you choose to pay for the articles - is nothing more than an advertising plug that only benefits the magazine. I do agree that the post was a plug, but a helpful plug that aided you in solving your problem. As a li

Re: [nyphp-talk] XML Manipulation

2007-08-17 Thread Mark Armendariz
csnyder wrote: On 8/16/07, Dan Cech <[EMAIL PROTECTED]> wrote: If you're looking for ideas, here is a proof-of-concept I put together back in 2004 for a system using a modified preorder traversal tree for threaded messages. http://clew.phpwerx.net/ he nice thing about using some sort of tre

Re: [nyphp-talk] Webserver file access

2007-08-17 Thread Mark Armendariz
csnyder wrote: On 8/17/07, Donna Marie Vincent <[EMAIL PROTECTED]> wrote: In order to upload files to the website, I have to do this: 1. Use WinSCP to log in to the server as myself and transfer files from my PC to my home directory on the server. 2. Use PuTTY to log in to the server as mys

Re: [nyphp-talk] Incomplete Objects, Class Definitions and require_once

2007-08-09 Thread Mark Armendariz
only has the same name and all the saved properties, but no methods. Here's some other info on the subject as well http://www.php.net/manual/en/language.oop.serialization.php Mark Armendariz ___ New York PHP Community Talk Mailing List http://lists.n

Re: [nyphp-talk] TRUNCATING MySQL FIELDS

2007-07-30 Thread Mark Armendariz
is specifically for display purposes, which seems... well, useless - considering I can't recall the last time I used SQL to show data anywhere outside of a console window and could care less about the column widths there. (/digression) Mark Armendariz __

Re: [nyphp-talk] Finding instances of include file

2007-07-26 Thread Mark Armendariz
Jon Baer wrote: Nice even a MacPort for it ... [MacBookPro:~]$ port search rpl rpltextproc/rpl 1.4.0Rpl is a Unix replacement utility Handy stuff ... thanks. - Jon Rpl is nice... I went ahead and got carried away with a php5 solution... I know it co

Re: [nyphp-talk] Finding instances of include file

2007-07-26 Thread Mark Armendariz
Jon Baer wrote: Just fgrep for the filename ... fgrep -Rn "file.php" /path/to/docroot - Jon Jon's would return more references (including comment references and such) Could also do this - specific to php includes find -name '*.php' | xargs grep -E "(include|require)(_once)? 'file.php'" Mar

Re: [nyphp-talk] SQL question

2007-07-23 Thread Mark Armendariz
David Krings wrote: Rob Marscher wrote: SELECT s.StoryboardID FROM cupscourses c LEFT JOIN cupsmodules m ON m.CourseID = c.CourseID LEFT JOIN cupslessons l ON l.ModuleID = m.ModuleID LEFT JOIN cupspages p ON p.LessonID = l.LessonID LEFT JOIN cupsstoryboards s ON s.PageID = p.PageID W

Re: [nyphp-talk] SQL question

2007-07-23 Thread Mark Armendariz
and what you're trying to accomplish with your current structure, but I predict a lot of confusion into the future without clarifying the order and hierarchy of your data. Good luck, and have a fantastic weekend! Mark Armendariz P.S. As a side note, with a complex sql question like t

Re: [nyphp-talk] how to find the mysql server status

2007-07-15 Thread Mark Armendariz
On 7/15/07, Jon Baer <[EMAIL PROTECTED]> wrote: mysql_stat() http://us2.php.net/manual/en/function.mysql-stat.php mysql_stat is good. You can use a more direct status query if you need more than that using "show status": http://dev.mysql.com/doc/refman/5.1/en/show-status.html ' . print_r($va

RE: [nyphp-talk] ADOdb status

2007-07-13 Thread Mark Armendariz
I don't imagine they've stopped working on it. I used it for years until I started doing my own abstraction late last year. Still a huge fan of the library. Last I read on the list a few month back, they were still pretty active with it stating that even in the world of PDO they would still be u

RE: [nyphp-talk] Length of variable names

2007-07-03 Thread Mark Armendariz
> From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Ken Robinson > The use of variable names like $i, $j, $k, etc for counters > is a hold over from early Fortran which declared that only > variables starting with certain letters could be integers. > The first letter was "i". I

RE: [nyphp-talk] Questions to ask at a job interview?

2007-06-28 Thread Mark Armendariz
terviewing) http://weblog.raganwald.com/2007/01/dont-overthink-fizzbuzz.html And a more general article: Joel Spolsky's guide to hiring http://www.joelonsoftware.com/articles/GuerrillaInterviewing3.html Good luck!! Mark Armendariz ___ New Yo

Re: [nyphp-talk] Sorry

2007-06-15 Thread Mark Armendariz
On 6/15/07, Aaron Fischer <[EMAIL PROTECTED]> wrote: All of the lists that I am on (except one) have the reply set to go to the list. The one list that sends replies to the person who posts is annoying and (to me) does not seem to be a logical process. I definitely feel that "Reply" should go

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Mark Armendariz
initField('field_username', 'Username'); initField('field_password', 'Password'); document.getElementById('showPass')

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Mark Armendariz
Is the defaultValue property cross-browser (and platform)? Mark _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andy Dirnberger Sent: Wednesday, June 06, 2007 8:54 PM To: 'NYPHP Talk' Subject: RE: [nyphp-talk] Removing Text from an Input Box is a bit more complete.

RE: [nyphp-talk] Removing Text from an Input Box

2007-06-06 Thread Mark Armendariz
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Sgro (ProjectSkyline) What im trying to do is turn that type to a password..so I can see the text...is that possible. Yes it is possible to change a field type to text and then back to password

RE: [nyphp-talk] How to hide the status bar

2007-06-01 Thread Mark Armendariz
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of David Krings > > > Can't be done as it's a security issue > The only thing I think is possible is to open a new window > from a page that does not have a status bar (or any bars for > that matter).

RE: [nyphp-talk] How to hide the status bar

2007-06-01 Thread Mark Armendariz
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of shaiju davis > Sent: Friday, June 01, 2007 10:38 AM > To: NYPHP Talk > Subject: [nyphp-talk] How to hide the status bar > >How to hide the status bar in a browser using Javascript ?. If you have any i

RE: [nyphp-talk] IDE recommendations

2007-05-25 Thread Mark Armendariz
> -Original Message- > [mailto:[EMAIL PROTECTED] On Behalf Of Jon Baer > The situation always comes up w/ how to properly work > independently w/ o a) changing policy and b) with multiple > developers and same codebase. Also how people collaborate with designers (communications, template

RE: [nyphp-talk] IDE recommendations

2007-05-25 Thread Mark Armendariz
> > I currently do the development on Windope, but I plan to > redistribute the usage of my PCs in such a way as that I can > reduce the number of Windope boxes in favour of (K)Ubuntu. Have win32 on my desktop and Ubuntu on my laptop which is why I went after eclipse, which works pretty much t

RE: [nyphp-talk] IDE recommendations

2007-05-25 Thread Mark Armendariz
> > It would be nice to see a "How I Work" section on nyphp.org > for IDE recommendations. I feel the topic comes up alot w/ > good pros and cons. > > - Jon Absolutely agree. Dev Server Setups (local and remote), Source Control, Upload / Build Strategies, Bug Tracking, IDEs, Configurations,

RE: [nyphp-talk] IDE recommendations

2007-05-25 Thread Mark Armendariz
> -Original Message- > [mailto:[EMAIL PROTECTED] On Behalf Of David Krings > Subject: [nyphp-talk] IDE recommendations > I looked so far at Zend, but don't get the GUI. It seems to > be overly complicated. I then tried some of these Eclipse > based hodgepodges, but they lack a lot of fe

RE: [nyphp-talk] Support Ticket Sytem

2007-05-17 Thread Mark Armendariz
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aniesh joseph 1. Whenever I recieved a mail from the clients, I have to register for a ticket. 2. Read the contents of the mail. I am working on LAMP. How can accomplish the two tas

RE: [nyphp-talk] Flexible Forms & How to store them...

2007-05-16 Thread Mark Armendariz
> [mailto:[EMAIL PROTECTED] On Behalf Of Patrick May > My question is -- when the forms change, who makes the > change? You, or a user via a tool? Though I'd offered a solution for EAV, I haven't gone that route in quite some time (usually only for dynamic surveying tools where the forms / fiel

RE: [nyphp-talk] Flexible Forms & How to store them...

2007-05-15 Thread Mark Armendariz
> What if a data record is missing some field values? Or has > more than one value stored for some field name? Interesting points... For missing data, you can make the field nullable... // set field_data to NULLABLE ALTER TABLE data_fields CHANGE field_data field_data VARCHAR( 100 ) NULL DEFA

RE: [nyphp-talk] Flexible Forms & How to store them...

2007-05-15 Thread Mark Armendariz
---+-+ | table | type | possible_keys | key| key_len | ref | rows | Extra | +++---++-+---+-- +-+ | fCity | ref| field_name| field_name | 120 | const,const |

RE: [nyphp-talk] Ajax 101: what to return from a POST

2007-05-03 Thread Mark Armendariz
>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Mintz Thank you! This is consistent with what I'm trying to do, I just wanted to confirm that my approach is basically sane. Your example gives me something to study and steal from. Hope it helps. I noticed I made a mista

RE: [nyphp-talk] Ajax 101: what to return from a POST

2007-05-03 Thread Mark Armendariz
>>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Mintz >>>I have experimented with converting a PHP array of error messages (fieldName => errorMessage, etc) into JSON and sending that back, then doing DOM scripting to stick the error messages into some DIVs. Kind of a l

RE: [nyphp-talk] form spoofing

2007-05-01 Thread Mark Armendariz
A simple but effective method I used on a couple of my clients' sites was the hidden text field with an obvious name. The field name is usually "email" (actual email field is something like 'user_email') - and hidden via css, not an actual type="hidden". As long as it's submitted and empty, I can

RE: [nyphp-talk] Send HTML mail with Javascript function

2007-04-26 Thread Mark Armendariz
> Aniesh joseph wrote: > > > > Hello All, > > > > I am trying to send one mail with HTML content. To do this, I have > > added HML header to mail function. > > > > I really wonder why? HTML is for port 80, not 21. HTML in > emails is IMHO the biggest waste ever. I'm not sure I can agree,

RE: [nyphp-talk] PCRE, utf8, Exceptions and you

2007-04-16 Thread Mark Armendariz
> On 4/14/07, Mark Armendariz <[EMAIL PROTECTED]> wrote: > > > I suppose I could capture the error with an error handler > and try to > > figure out if it was the error I'm looking for, but that seems so > > messy and potentially unreliable. Are

[nyphp-talk] PCRE, utf8, Exceptions and you

2007-04-14 Thread Mark Armendariz
se exceptions for this sort of thing in php5+? The Question Does anyone have experience with catching PCRE errors or just preg function errors in general and dealing with them accordingly? Thank You - Mark Armendariz ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php

RE: [nyphp-talk] Anybody using JSON parser?

2007-04-13 Thread Mark Armendariz
> ... On Behalf Of Jon Baer > It's all about the YAML :-) ... > > http://spyc.sourceforge.net I'd heard/read the term a few times, but after this post I finally took a look. Very interesting. Thanks John! (more about yaml: http://www.yaml.org/) Mark __

RE: [nyphp-talk] Anybody using JSON parser?

2007-04-13 Thread Mark Armendariz
> > I highly recommend using the json extension if you can > (comes standard > > with php5.2). The speed difference over using a script is > astounding. > > Thanks for the tip. Will have to check it out when we start > porting up to php5. > > - A. It's available for php4 as well, which is

RE: [nyphp-talk] Anybody using JSON parser?

2007-04-13 Thread Mark Armendariz
> Kenneth Downs wrote: > > JSON strikes me as a worthy candidate. Is anybody using it on the > > server-side with enough confidence to answer this question: Can I > > type a file of JSON stuff by hand and convert it easily > into a nested > > associative array? I don't see why not. JSON is

RE: [nyphp-talk] PHP + UTF-8 + mb_string issue.

2007-03-21 Thread Mark Armendariz
thor * @seestrlen() * @seeutf8_decode() */ function utf8_strlen($string){ return strlen(utf8_decode($string)); } I hope that works for you. Mark Armendariz ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/list

Re: [nyphp-talk] Related to "How to create custom URLs"

2007-03-19 Thread Mark Armendariz
On 3/19/07, Rob Marscher <[EMAIL PROTECTED]> wrote: On Mar 19, 2007, at 12:28 PM, tedd wrote: > [1] http://sperling.com/contact > instead of the new: > [2] http://sperling.com/contact.php > How can I get the url displayed to look like number [1] regardless > if the user adds ".php" or not? I was

Re: [nyphp-talk] RE:; Include destination url to SWF using SWObject

2007-03-16 Thread Mark Armendariz
"60", "7", "#336699"); so.useExpressInstall('expressinstall.swf'); Flash This text is replaced by the Flash movie. so.write("flashcontent"); Mark Armendariz _

Re: [nyphp-talk] Friendly URL, Ajax, and SEO

2007-03-08 Thread Mark Armendariz
click functions. This tells the link not to redirect. Probably good to put some exception handling to make sure it returns false no matter what. And that's it. Properly ajaxified / backward compatible. Family Fun for everyone. Good luck, and thank you for the opportunity to procrastinate

RE: [nyphp-talk] Friendly URL, Ajax, and SEO

2007-03-08 Thread Mark Armendariz
would just load the story dynamically. Keeps everyone happy - including your visitors of the arachnid family. Mark Armendariz > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Kenneth Downs > Sent: Thursday, March 08, 2007 9:04 AM >

RE: [nyphp-talk] speed problems in OO PHP4

2007-02-20 Thread Mark Armendariz
think firebug for your server. Use KCacheGrind (linux only) or WinCacheGrind (Win32) to process xdebug's logs. That'll tell you Exactly where all the time is going - which functions, which classes, etc. Mark Armendariz > -Original Message- > From: [EMAIL PROTECT

RE: [nyphp-talk] Radial Zip Code Search

2007-01-19 Thread Mark Armendariz
I'd posted one on this list a couple years ago. Found it in the archive: http://lists.nyphp.org/pipermail/talk/2003-November/006445.html I believe someone followed up and mentioned the actual source of the function, or at least a very similar one, but I can't seem to find that post. Good Luck, a

Re: [nyphp-talk] And the HTML CSS guru is....

2007-01-12 Thread Mark Armendariz
I would actually say some of the finer designers I've worked with prefer div/css because of the amount of control they're afforded and the speed at which they can update their designs, especially for multiple formats, which Rob mentioned. Tables are easier for specific layouts, but I've seen css

RE: [nyphp-talk] So why is Ajax so fast?

2007-01-12 Thread Mark Armendariz
It definitely depends on how you're utilizing Ajax methods. On the client side, a page load including headers, tags, external files, image / object loading, any onLoad javascript, etc can be a rather heavy process for the browser as well as the network (firebug gives a good glimpse of all of this)

Re: [nyphp-talk] Re: Passing array elements as... strings?

2007-01-04 Thread Mark Armendariz
sorry, skipped a line in the dbg function: and my debug function: ' . print_r($mVar, 1) . ''; echo $sReturn; // <- This line } ?> ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYP

Re: [nyphp-talk] sendmail and php mail

2007-01-04 Thread Mark Armendariz
ECTED]> wrote: On 1/4/07, Mark Armendariz <[EMAIL PROTECTED]> wrote: > Now, I know for a fact the recipient's email exists on my client's mail > server (which is an exchange server). The only thing I can figure is that > it's checking the local host for the rec

Re: [nyphp-talk] Re: Passing array elements as... strings?

2007-01-04 Thread Mark Armendariz
] => quuz [2] => quux ) ) foo->bar: Array ( [0] => quiz [1] => quuz [2] => quux ) Notice: Undefined property: r on line 18 * foo->bar[2] == 'Array' so foo->bar[2] == 'r'? *** Direct Access - throws error: Copied Array

Re: [nyphp-talk] Re: Passing array elements as... strings?

2007-01-04 Thread Mark Armendariz
decided to play with this a bit. first time i've ever found myself using variable variables. dunno if it helps at all, but here's what i came up with (4.4.1, but should apply anywhere). it seems you can't access the array values directly, but copying it works. You could also use var vars for o

[nyphp-talk] sendmail and php mail

2007-01-04 Thread Mark Armendariz
mail exists on my client's mail server (which is an exchange server). The only thing I can figure is that it's checking the local host for the recipient and not finding it, and hence never sending the email. Anybody ever run into this before? Is there a switch i can use with php&#

Re: [nyphp-talk] Question about REGEX's...

2006-11-28 Thread Mark Armendariz
Is it returning everything between that first div and the last on the page? If so, it's being 'greedy'. Basically that .+? is matching everything (including interior 's). You can use the 'Ungreedy' modifier 'U' (captial u after the final slash) or make your regex between the divs more specific

Re: [nyphp-talk] OT: Recommendations for web hosting services with extremely good uptimes?

2006-11-16 Thread Mark Armendariz
Wow, MT's grid server is incredibly interesting. Been using MT for years with few to no complaints on any level. Anyone have experience with the new service? Mark > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Morgan Craft > Sent: Thursday, Nove

Re: [nyphp-talk] So who's using Ajax anway?

2006-11-09 Thread Mark Armendariz
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of David Mintz > Subject: Re: [nyphp-talk] So who's using Ajax anway? > > For you guys, does the X in AJAX really stand for XML? Or are > you sending back finished HTML? I return JSON for everything.

Re: [nyphp-talk] So who's using Ajax anway?

2006-11-09 Thread Mark Armendariz
I've used it pretty heavily in my last 2 projects. One was an internal application for a major music company. Had about 200+ fields (could grow to a couple thousand) on one page. With all the interior page functionality needed, it was near impossible to make it a multi-page application while mai