Re: [nyphp-talk] Textarea formatting

2006-10-19 Thread David Krings
And for XHTML that would be . Felix Shnir wrote: > Well, if you are talking about displaying in HTML then you should > replace \n\r with a > > Felix. ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2

Re: [nyphp-talk] Textarea formatting

2006-10-19 Thread David Krings
Hi, you can't display tab in HTML and the textarea box takes just plain ASCII. So any fancy spacing, indenting or such will either be stripped or shown as single spaces. And HTML also cannot display an arry of simple white space. You would need to convert that to non-breaking spaces. But i

Re: [nyphp-talk] IT Policies

2006-10-19 Thread David Krings
Hi, so you want to create high quality software. That is not only a task of developing. You want to address quality issues way before writing or even testing code. That would be during the design phase. Does the application design specify explicitly things such as input checking (what to c

[nyphp-talk] exif_thumbnail

2006-10-31 Thread David Krings
Hi, I want to use exif_thumbnail to extract the thumbnail of an image and then have it displayed within a page. The page will have content before and after the thumbnail, and the thumbnail may be present or not. In order to have it show correctly, all manuals state to send the content sett

Re: [nyphp-talk] Passing parameters with the click of a button.

2006-10-31 Thread David Krings
Hi, I would use a session and write whatever I need somewhere else into the session. As long as the session is kept alive you can grab from it whatever you need. No GET, no POST, and definitely no JavaScript. ;-) David K. Jon Baer wrote: > You need to be cool and do it the web 2.0

Re: [nyphp-talk] mysql_real_escape_string WAS: Mysql question!

2006-10-31 Thread David Krings
Hi, from my experience, addslashes does the trick for the most part, but mysql_real_escape_string is indeed the better one to use as it does cover all possible (not only the likely) characters that could get MySQL and its user in hot water. From a practical viewpoint I'd just say both w

Re: [nyphp-talk] mysql_real_escape_string WAS: Mysql question!

2006-10-31 Thread David Krings
Hi, my guess is that some of the characters escaped using the mysql escaping cannot be reasonably expected to come in from user input. Mysql_real_escape_string escapes all these: \x00, \n, \r, \, ', " and \x1a but I can't think of any way on how to get \x1a as user input (assuming that

Re: [nyphp-talk] exif_thumbnail

2006-10-31 Thread David Krings
Bill Kamm wrote: > Does this help? > > http://www.php.net/ob_start > > "This function will turn output buffering on. While output buffering is > active no output is sent from the script (other than headers), instead > the output is stored in an internal buffer." > > Bill It generally does, but n

Re: [nyphp-talk] mysql_real_escape_string WAS: Mysql question!

2006-10-31 Thread David Krings
Dan Cech wrote: > What you're failing to consider here is the character set of the active > mysql connection. Correct me if I'm wrong, but it is my understanding > that mysql_real_escape_string does not incur an extra trip to the > database, the escaping still occurs within php, but it takes into

[nyphp-talk] rtrim broken?

2006-10-31 Thread David Krings
Hi, I have a string that looks like this $text = 'blah, blah, blah, '; I want to use rtrim to cut off the last comma and the whitespace. So I use rtrim($text, ', '); To my surprise, it doesn't cut anything off. When I echo $text the comma and the space are still there. Is rtrim broken or my logi

Re: [nyphp-talk] exif_thumbnail

2006-10-31 Thread David Krings
Hi, thank you so so so much!! I copied and pasted this and BAM! it just works! I love it. Thank you very much indeed! David K. Ken Robinson wrote: > > What you want to do is use the "'" tag in your script. The "src" > attribute should point to a script that will send the imag

Re: [nyphp-talk] rtrim broken?

2006-11-01 Thread David Krings
t; } > $text = implode(', ', $text); > > > -- Dell > > > On Oct 31, 2006, at 8:33 PM, David Krings wrote: > > >> Hi, >> >> I have a string that looks like this >> $text = 'blah, blah, blah, '; >> I want to use rtrim to cut

Re: [nyphp-talk] rtrim broken?

2006-11-01 Thread David Krings
it to $text = rtrim($text, ' ,'); and now that works. The problem was between keyboard and chair as so often. David K. David Krings wrote: > Hi, > > yes, $text is the string passed to rtrim, which in retrun is > supposed to overwrite what is in $text previously

Re: [nyphp-talk] rtrim broken?

2006-11-02 Thread David Krings
aight. David K. Warren Myers wrote: > I don't think this does what it looks like > > On 11/1/06, *David Krings* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > wrote: > > Hi, > > yes, $text is the string passed to rtrim, which in retrun i

Re: [nyphp-talk] [OT] live slide-show delivery via browser only

2006-11-04 Thread David Krings
Hi, a totally different approach would be to use the web interface from VNC and run the slide show on the server. I have no experience as to how well that works with multiple clients. Just an idea. David K. ___ New York PHP Community Talk Mail

[nyphp-talk] PHP and Apache doing funky stuff

2006-11-06 Thread David Krings
Hi, after loading a PHP script on my "production" server and accessing the pages generated by the script, I get wierd stuff like this: †Ë¯Øp; where the †Ë¯Øp; is supposed to be a   . I use a browser that is on the same box as the server, but access it not through localhost but by using th

Re: [nyphp-talk] $_FILES and form reloading

2006-11-11 Thread David Krings
Hi, my guess is that one cannot easily pass back a file name to a form, mainly because the file input element doesn't let one do anything at all. It is a pure client side only controlled user interface element. I can think of two ways assuming that the file itself is OK, just some othe

Re: [nyphp-talk] $_FILES and form reloading

2006-11-12 Thread David Krings
Hi, this requires that one has to do tests both on the client and the server (can't just not do the server side checks!). I don't really see why this extra effort is that much better. The task is to upload an image file with some extra info, so the burden on uploading first and then checki

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

2006-11-15 Thread David Krings
Hi, I host my own server and since CL&P is still running the same grid as Edison himself put it in, power is on and off quite a bit. I bought to UPS to compensate for that. If you don't want to bother with self-hosting, look at places in Western Europe (e. g. Germany). Power is far more reliabl

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

2006-11-15 Thread David Krings
...and then look right at the next provider. We have from work a web server hosted by interland and while the physical box may not be down, the system is often and gets intentionally rebooted at least 4 or 5 times a month. And that ain't patch tuesday or sth like that. I also work with a se

Re: [nyphp-talk] Issue with session_destroy()

2006-12-02 Thread David Krings
Hi, you need to set the page to not getting cached by a browser. I once looked this up and found several sources that claim that these two lines at the beginning of a page will turn caching off: header("Cache-control: private"); header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM

Re: [nyphp-talk] Newbie seeks PHP installation help / suggestions

2006-12-09 Thread David Krings
Hi, when I started with Apache and later with PHP I went through the same problemsbut didn't know of NYHP. I use XAMPP from apachefriends.org for development, testing, and also as production server. I never had a problem with installation or security. Apachefriend's XAMPP is really a nice

Re: [nyphp-talk] Zend IDE slooooow

2006-12-12 Thread David Krings
Hi, for those who look for a good alternative IDE, try Luckasoft's EngInSite PHP Editor. A professional IDE and not even expensive. I tried many PHP IDEs and find EngInSite to be the best. Agreed, there are some things that could be better, but Mr. Lucka is very responsive when it comes to im

Re: [nyphp-talk] Reading Photo Information

2006-12-17 Thread David Krings
Hi, I found this http://www.microimages.com/sml/GetEXIF.htm to be very helpful. The structure of the code is almost like PHP and it has the biggest collection of exif tag information that I could find...and I searched for days. Getting the exif tags out is one thing, but interpreting what

Re: [nyphp-talk] Reading Photo Information

2006-12-17 Thread David Krings
Hi, yes, exif is not a standard module in many PHP configurations. I use Apachefriend's XAMPP on Windows and it was simply a matter of taking the ; out in front of the line in the php.ini. Haven't done this on Linux yet, but if the module is there it will probably as easy. David t

Re: [nyphp-talk] Merry Christmas to All!

2006-12-23 Thread David Krings
Merry christmas und Frohe Weihnachten to you alland soon I will be a New Yorker as wellmoving to Schenectady. David Krings ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations

Re: [nyphp-talk] windows 2003 server, php.ini, exchange server & mail ?

2006-12-24 Thread David Krings
Christopher Grimaldi wrote: Unfortunately, due to the business arrangement I have, I have to use IIS. I have searched all over the internet and have come up dry. Is this even possible with my current configuration? Any advice or help is appreciated. Maybe you need to change business arrangem

Re: [nyphp-talk] Philosophy of Frameworks (Was: CAKE Ain't Soup!)

2007-01-11 Thread David Krings
Nate Abele wrote: Ah, so you're a support puke, not an actual programmer. Yeah, that explains a thing or two. Anyway, in an effort to cut this discussion short, I'm going to simply suggest that you don't use Cake. Not now, or at any point in the future. I, as a core dev of the project, am

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

2007-01-11 Thread David Krings
Cliff Hirsch wrote: And -- get this -- I just read that Outlook 2007 dumped its IE HTML rendering engine for Word's rendering engine, which will further break a whole heck of a lot of html emails. Interesting that MS wisens up. HTML is supposed to go to port 80, not 25. The person who ever

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

2007-01-11 Thread David Krings
David Mintz wrote: This thread probably belongs on front-end but... no doubt but that tables are for tabular data. There's a nice SitePoint book about kicking the table habit: http://www.sitepoint.com/books/css2/. Forms are the one thing with which I haven't been able to get clean and sober, bec

Re: [nyphp-talk] It's 2007, and we haven't talked about Shopping Carts since last year

2007-01-16 Thread David Krings
inforequest wrote: Okay it's an old story but remains one that still needs re-writing. It's 2007, a time of web standards, skinnable CMS's, and fancy screen effects, so why do the available shopping cart solutions still look like phpnuke? Any updates to the semiannual PHP-talk question " My c

Re: [nyphp-talk] show me your best work

2007-01-18 Thread David Krings
Nazmul Hassan wrote: yeh, we could show you a variety of things, and none of them would be what you wished to see. be more specific please On 1/18/07, *Kenneth Downs* < [EMAIL PROTECTED] > wrote: Kurt Zimmerman wrote: > OK Fellow PHPers... who has stuff to s

Re: [nyphp-talk] Word Doc to PDF?

2007-01-24 Thread David Krings
Brian Dailey wrote: Does anyone have any experience or information on converting a simple Word document to a PDF? I've seen a few utilities that do this, but all of them are Word doc to printer to PDF hacks, and most are dependent upon an installation of Word or Open Office. There's got to be a

Re: [nyphp-talk] timezone dropdown help

2007-01-26 Thread David Krings
Aniesh joseph wrote: hi I need to make a drop down in my web site in a registration form. From the drop down user can select the his desired time zone. My question is, I want to capture user's timezone using javascript and it will be shown as slected when at the time of registration. I got a jav

Re: [nyphp-talk] testing a theory

2007-02-07 Thread David Krings
Urb LeJeune wrote: I did a performance test on just this type of thing and there was no discernable difference. Why not do the following which makes the code much easier to follow and modify $Content=<< And I guess you cannot use Content; as part of the document. Do I assume right that it doesn

Re: [nyphp-talk] Removing www.

2007-02-08 Thread David Krings
inforequest wrote: Chris Shiflett shiflett-at-php.net |nyphp dev/internal group use| wrote: Joseph Crawford wrote: Hey guys, what would i need to do in order to make all of the www. be removed from my urls? From http://no-www.org/: ummm. be careful when taking code snippets an

Re: [nyphp-talk] Cannot debug issue with uploading a large file

2007-02-08 Thread David Krings
Randal Rust wrote: I have a 10MB file that needs to be uploaded through a form. Seems simple enough. Just modify php.ini to allow larger files, or user ini_set(). The problem is that when I select this file and try to upload it, nothing get passed in the $_REQUEST array, so I can't figure out wh

Re: [nyphp-talk] capricious submission of forms

2007-02-11 Thread David Krings
michael wrote: It is not bad to lookup the domain and see if there is an MX record. That can catch some obvious noodling. Collecting email bounces and scripting unsubscribe should be a no-brainer.. and part of a complete app. Good idea, but I recommend putting in some threshold. It happens

Re: [nyphp-talk] Writing Database Agnostic Code

2007-02-14 Thread David Krings
Brian Dailey wrote: A lot of the books and other material that I've been reading talk about database abstraction - developing your application so that you can use different database backends without significant (or maybe any) changes to your code. Pear::DB seems to really do a good job with thi

Re: [nyphp-talk] OT: Random MySQL question

2007-02-14 Thread David Krings
Adrian Noland wrote: Hi all, I have an obscure MySQL question I hope someone can answer: I have the following query: select id, categories from dd_categories where id in (21, 20, 13, 3, 22, 31); I want category 21 to show up first in the list. It appears the default order is by id which puts

Re: [nyphp-talk] php web search engine

2007-02-14 Thread David Krings
Néstor wrote: Guys, I need to install a php search engine in our intranet. any recommendations? Thanks, Néstor :-) I made good experiences with swish-e. Very easy to use after reading the documentation and it also searches PDFs, something that most search engines do not do...I mean the

Re: [nyphp-talk] Writing Database Agnostic Code

2007-02-15 Thread David Krings
Daniel Convissor wrote: > In general, good SQL is good SQL, no matter what the platform is. True, but not every platform delivers the same results when sending it good SQL. David ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/ma

Re: [nyphp-talk] Writing Database Agnostic Code

2007-02-15 Thread David Krings
Jiju Thomas Mathew wrote: > In general, good SQL is good SQL, no matter what the platform is. True, but not every platform delivers the same results when sending it good SQL. David Can you explain.. I got only exposure with MySQL.. -- Jiju Thomas Mathew http://www.php-trivandru

Re: [nyphp-talk] Encoding help?

2007-02-22 Thread David Krings
Joseph Crawford wrote: Guys i am trying to consume the Google maps API and when i pass it an address in Montreal QC i get the follwoing error *Warning*: SimpleXMLElement::__construct() [ function.SimpleXMLElement---construct

Re: [nyphp-talk] time sheet

2007-02-23 Thread David Krings
selyah wrote: Hello: I am developing a report scheduler that will includes as headings, Project Name, Date, Time Start, Time End, Description, and Total Hours. This is the issue, I need to have the hours column to be a result of the subtraction of time start and time end. Does PHP support

Re: [nyphp-talk] auto generate select tag in html

2007-02-27 Thread David Krings
selyah wrote: Hello all: i am designing a form in php and it combines HTML, I have not program in HTML in a while and need a refresher, but i am hoping that someone can help me with this simple issue. I just need to know the syntax to get the tag in HTML to auto generate a list when new 's ar

Re: [nyphp-talk] Open source forum suggestion

2007-03-08 Thread David Krings
Cliff Hirsch wrote: I want to enter the 21st century and add a forum to my site. My ISP offers phpBB2 and Discuss, a CGI-based forums. Or I can add my own. Does anyone have suggestions regarding a great forum package for a business, not consumer, web site? What about vBulletin, although it lo

Re: [nyphp-talk] Microsoft Access application conversion recommendations

2007-03-09 Thread David Krings
Timothy Boyden wrote: Perhaps I need to clarify some... The Access database is just a front-end to an MS SQL server. Some issues that this causes: it is not cross-platform; it is not accessible outside the corporate network; the presentation is intertwined with the logic making it difficult a

[nyphp-talk] single quote vs. double quote

2007-04-02 Thread David Krings
Hi! The old topic is at it again. After some long long time I started again with doing some PHP. Task: internationalize my existing project. Goal: read strings from a text file. First step: open the file. I used this: $langfile = fopen('$langfileloc', 'r'); and constantly had it fail. The pat

Re: [nyphp-talk] single quote vs. double quote

2007-04-03 Thread David Krings
csnyder wrote: On 4/2/07, David Krings <[EMAIL PROTECTED]> wrote: ... $langfile = fopen('$langfileloc', 'r'); and constantly had it fail. ... But really, all you had to do was not quote at all. $langfile = fopen( $langfileloc, 'r' ); That is indeed

Re: [nyphp-talk] single quote vs. double quote

2007-04-03 Thread David Krings
Anirudh Zala wrote: Please remember below rules while writing PHP expressions. #1 There is practically NO use of "double quotes" in PHP in writing expressions EXCEPT expanding sequences like converting "\n" into newline, "\t" to tabulator (in regex etc.). Which means you should not use "double

[nyphp-talk] Loading array from file

2007-04-04 Thread David Krings
Hi! Working on my internationalization project I am now ready to load the contents of a string file into an array and use the strings. Now, I have to ideas when to do this: a) run this on load of every page with output b) run it once on the start page and store the array in the session Does a

Re: [nyphp-talk] Loading array from file

2007-04-04 Thread David Krings
Ben Sgro (ProjectSkyline) wrote: Hello, What about storing the result in a temp table? There is no SQL or database table involved. I don't see any good reason to keep static stuff like text strings in a database table. Also, since I do not know all languages (only two) others will find it

Re: [nyphp-talk] single quote vs. double quote

2007-04-04 Thread David Krings
Paul Houle wrote: (4) Make a habit of writing {$like_this} Can you elaborate on this? Me guessing of what you mean is probably not a good approach. Thanks in advance. David ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mail

Re: [nyphp-talk] single quote vs. double quote

2007-04-04 Thread David Krings
Paul Houle wrote: David Krings wrote: Paul Houle wrote: (4) Make a habit of writing {$like_this} Can you elaborate on this? Me guessing of what you mean is probably not a good approach. Thanks in advance. There's a short form and long form of substitution in PHP. The short fo

Re: [nyphp-talk] single quote vs. double quote

2007-04-11 Thread David Krings
Anirudh Zala wrote: To me 2nd effect of "bad practicing" is more important as far as coding is concerned. Even if there is little time-difference, this also tells that one is using inappropriate ways while coding. So this issue has impact from both sides. To me it is against good practice. To

Re: [nyphp-talk] OOP Question: Calling a classes function from anotherclass

2007-04-18 Thread David Krings
Somewhat unrelated to all of this, can someone point me to a good and concise primer of the benefits of OOP? So far I cannot think of something where I said, gee, I really think that would be awesome to have, and it turned out to be an object. Why would I want to use objects? Thanks for wiseni

[nyphp-talk] Checking active sessions

2007-04-20 Thread David Krings
Hi! Is there any way I can check which sessions are currently active and which aren't? I like to add some housekeeping code, but taking away things from active sessions would be just mean. David ___ New York PHP Community Talk Mailing List http://li

Re: [nyphp-talk] Checking active sessions

2007-04-23 Thread David Krings
David Krings wrote: Hi! Is there any way I can check which sessions are currently active and which aren't? I like to add some housekeeping code, but taking away things from active sessions would be just mean. OK! Apparently my question was so stupid that nobody could produce an a

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

2007-04-26 Thread David Krings
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. Nobody likes it, but almost everybody sends it. If it is a

Re: [nyphp-talk] Checking active sessions

2007-04-26 Thread David Krings
Rob Marscher wrote: Is there any way I can check which sessions are currently active and which aren't? I like to add some housekeeping code, but taking away things from active sessions would be just mean. Check out the documentation for session_set_save_handler -- http://us.php.net/manual/en/

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

2007-04-26 Thread David Krings
Mark Armendariz wrote: 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, David.

Re: [nyphp-talk] Checking active sessions

2007-04-27 Thread David Krings
Adrian Noland wrote: I think you need to think about your temp folder idea some more. You say that you are going to keep temp uploads and other things there that get destroyed after the user logs out. But if you are regenerating the user's session ID multiple times you will need to keep the temp

[nyphp-talk] Copying file from HTTP/FTP using copy()

2007-04-28 Thread David Krings
Hi! Here is what I like to do: Get a user entry (text string) that is either an HTTP or FTP url to a file, for example http://my.server.gov/download this.zip or ftp://username:[EMAIL PROTECTED]/download that.zip and then use the copy() function to download it and store it locally on my server.

Re: [nyphp-talk] Copying file from HTTP/FTP using copy()

2007-04-28 Thread David Krings
Jon Baer wrote: You would probably be better off using the libcurl commands ... http://us.php.net/curl As getinfo is one of the better options to get stats on the transfer in question ... http://us.php.net/manual/en/function.curl-getinfo.php - Jon Thank you for this hint. I really is the

Re: [nyphp-talk] Checking active sessions

2007-04-30 Thread David Krings
Adrian Noland wrote: > Now I get back to the original question, how can I degunk these folders? > I need to know which sessions are still likely to be active and which > ones are not. That all has nothing to do with the temp folder that the > web server creates somewhere for holding the sessi

Re: [nyphp-talk] Checking active sessions

2007-04-30 Thread David Krings
Rob Marscher wrote: I believe Adrian was showing how ADODB uses a Unix command to clean up it's files and saying that you could also use a Unix command. I'm not sure I would call it "3rd party" if you're always using a unix-based server. Of course, it wouldn't be portable to Windows. Not only

Re: [nyphp-talk] Checking active sessions

2007-04-30 Thread David Krings
David Krings wrote: The manual doesn't explicitly state if filemtime works on directories as well. I then could get all directories and check for their timestamp rather than hitting the database a few times for this. And it will save me from making yet another table. I will try thi

[nyphp-talk] next() for multidimensional arrays?

2007-05-02 Thread David Krings
Hi! Is there anything available like next() that will work on multidimensional arrays? I want to get a flat list of key and value of the current element of a multidimensional array. I played around with next() now for an excessive amount of time and it just doesn't seem to think in more than o

Re: [nyphp-talk] next() for multidimensional arrays?

2007-05-03 Thread David Krings
Che Hodgins wrote: Hi David, see below. On 5/2/07, David Krings <[EMAIL PROTECTED]> wrote: Hi! Is there anything available like next() that will work on multidimensional arrays? First of all, thanks for pointing out my brain fart with using the same key for different values. Second,

[nyphp-talk] Conditional break?

2007-05-04 Thread David Krings
Hi! Try to make this short. I have an array with path/file names. I want to move each file unless it already exists at its destination. What I want to do is end the current go through the while loop, increase a counter that I use for the while condition, and then start at the top of the while

Re: [nyphp-talk] Conditional break?

2007-05-04 Thread David Krings
Andy Dirnberger wrote: Try continue instead of break. That works! Thanks!! David ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Particip

[nyphp-talk] Checking 'mime type' of local file

2007-05-10 Thread David Krings
Hi! When one gets a file via upload information about the file is in $_FILE and with that also the MIME type (although one cannot rely on that). Is there anything like this that works on local files as well? In particular, I want to figure out if a file is really an image file and not just s

Re: [nyphp-talk] Checking 'mime type' of local file

2007-05-10 Thread David Krings
Jon Baer wrote: What you're really looking for the is the 'magic' of the bin file. http://en.wikipedia.org/wiki/Magic_number_%28programming%29 There is a PECL extension for diving into libmagic ... http://pecl.php.net/package/Fileinfo - Jon Thank you very much! I give that a try. Amazing wh

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

2007-05-15 Thread David Krings
Brian Dailey wrote: This looks like what I'll ultimately be doing. I played around with some SQL queries and what I ended up with was similar to this - joining the table for each data value that I wanted to look up (and since I expect a matching data value, I don't even have to LEFT JOIN everyt

Re: [nyphp-talk] Difference between isset() and empty() .

2007-05-18 Thread David Krings
Shadab Wadiwala wrote: Hi !! I want to know what's the difference between the functions isset() and empty() I referred the function reference on php.net, but still couldn't the exact answer to my query. isset() checks if a key exists in a server array such as $_SESSION

Re: [nyphp-talk] File upload choices

2007-05-18 Thread David Krings
Ben Sgro (ProjectSkyline) wrote: Hello All, I'm working on a client spec now and I need to find the best way to allow a user to upload multiple files at the same time. What solutions are people happy with? I'm open to using any method to get this done {flash, js, whatever..}. I'd really like

[nyphp-talk] Connecting to MS SharePoint

2007-05-19 Thread David Krings
Hi! Does anyone know how to or did before connect with an MS SharePoint system? I was asked to create some forms using InfoPath, but that app is fine for some stand-alone or barely interacting forms. I need way more dynamic forms than what I could click together in InfoPath. I don't say it is

Re: [nyphp-talk] Connecting to MS SharePoint

2007-05-19 Thread David Krings
Hi! I forgot if there is a suitable SharePoint replacement based on PHP/MySQL, that would work as well. David ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www

Re: [nyphp-talk] Connecting to MS SharePoint

2007-05-19 Thread David Krings
Randal Rust wrote: On 5/19/07, David Krings <[EMAIL PROTECTED]> wrote: I forgot if there is a suitable SharePoint replacement based on PHP/MySQL, that would work as well. David, I haven't looked at this enough yet [1], but I wanted to share it with you. I am actualy looking in

Re: [nyphp-talk] Amazing application acceleration solution

2007-05-22 Thread David Krings
Cliff Hirsch wrote: Most asp.net pages are not browse cached either. The appliance can change this dynamically and intelligently. It can compress where necessary, serve static content, even figure out what database queries can be cached and tell the asp.net server to do so since asp.net is tightl

[nyphp-talk] IDE recommendations

2007-05-25 Thread David Krings
Hi! Since years I am using Luckasoft's EnginSite PHP Editor as IDE. It works well and has many features that more expensive IDEs offer. There is one major drawback to this IDE: the implementation of the debugger (PHP dbg) iswellgoofy. If I want to debug a series of scripts I have to a

Re: [nyphp-talk] IDE recommendations

2007-05-25 Thread David Krings
Jon Baer wrote: Not sure what OS but ... It may or may not work for you, but going the reverse route of lightweight editors and FirePHP is a good free simple route. Originally I felt the same that the more tools in an IDE the better and was excited about the idea of a DB query tool in the IDE

Re: [nyphp-talk] IDE recommendations

2007-05-25 Thread David Krings
Mark Armendariz wrote: But I do want some project management Eclipse Mylar , a debugger Eclipse PDT , and a link between code word and PHP manual Eclipse PDT: Mouseover for a description or Shift+F2 for the manual (browser tab in the ide) Sorry, don't mean to over-sell, but if more people u

Re: [nyphp-talk] IDE recommendations

2007-05-26 Thread David Krings
David Krings wrote: I did hear back from Mr. Lucka at Luckasoft and he explained what their motivation and plans are. The difference supposedly is between the free and commercial version of dbg and Luckasoft doesn't sell enough licenses to warrant the investment into the commercial versio

Re: [nyphp-talk] IDE recommendations

2007-05-26 Thread David Krings
David Krings wrote: So, the conclusion so far is, unless I can come up with the 300$ for NuSphere there isn't any reason to change IDEs...at least not on Windows. Really disappointing and not because I want a pro IDE for free or on the cheap. If I'd have the bucks I'd bu

[nyphp-talk] $_SERVER

2007-05-26 Thread David Krings
Hi! Every web server generates a different $_SERVER array in PHP. I got burnt by it once. I used several keys/values that are present in the Luckasoft EnginServer, but not in Apache. I am sure that IIS again has a different $_SERVER and the whole picture may look different on Linux or Mac OS.

Re: [nyphp-talk] $_SERVER

2007-05-27 Thread David Krings
Jon Baer wrote: From what I recall this depends on what's thrown into it @ the SAPI handler level which you can view via source ... http://lxr.php.net/source/php-src/sapi/ http://lxr.php.net/source/php-src/sapi/apache2handler/sapi_apache2.c http://lxr.php.net/source/php-src/sapi/isapi/php5isap

Re: [nyphp-talk] $_SERVER

2007-05-27 Thread David Krings
Nate Abele wrote: Hi David, This may or may not be helpful for your specific situation, but I wrote a $_SERVER compatibility layer into Cake in the form of an env() function, which you can check out here: https://trac.cakephp.org/browser/branches/1.2.x.x/cake/basics.php#L978 It's not super-

Re: [nyphp-talk] Modifying an XML tag name OR cloning an entire node including childnodes

2007-05-27 Thread David Krings
Dynamic Ink wrote: Basically I am trying to turn something like this: Hello Joe, nice to meet you into this: Hello Joe, nice to meet you In my naivity I'd propose doing a simple find and replace. After all, XML is nothing else than a string or a text file, so replacing the with and the wit

[nyphp-talk] Displaying time and date of the client

2007-05-28 Thread David Krings
Hi! After a year on the to do list I finally finished the portion for my script that generates a date and time display - of the client time. It requires that the client accepts a cookie, executes ECMAScript (fka JavaScript), and that the client computer time zone is set correctly. The client d

Re: [nyphp-talk] Displaying time and date of the client

2007-05-29 Thread David Krings
Hi! Here is the script that shows the time of the client system. I added quite a bit of commentary to it, so it should be obvious what it does. I wrapped it into a function, but that is not really necessary. As mentioned earlier the core piece is the JavaScript, which I did not create, but so

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

2007-06-01 Thread David Krings
Mark Armendariz wrote: Can't be done as it's a security issue http://www.mozilla.org/projects/security/components/signed-scripts.html http://docs.sun.com/source/816-6409-10/sec.htm (search for the word 'status' in those docs) IE7 and Firefox have settings (in their settings menus) to allow JS

[nyphp-talk] PHP array_unique vs. SQL DISTINCT

2007-06-03 Thread David Krings
Hi! Which one is faster: PHP array_unique or SQL DISTINCT ? I learned about the DISTINCT key word for SQL some time ago and remember that pro developers always told me that SQL is faster than code. I tested a slightly complex select query across three tables and used DISTINCT. The tables have

Re: [nyphp-talk] PHP array_unique vs. SQL DISTINCT

2007-06-03 Thread David Krings
David Krings wrote: Hi! Which one is faster: PHP array_unique or SQL DISTINCT ? OK, while I still like to know what the answer is, the DISTINCT wasn't the culprit, but the way I join the tables. I ran the query across only two tables and with that got millions of records when I exp

Re: [nyphp-talk] PHP array_unique vs. SQL DISTINCT

2007-06-03 Thread David Krings
Adrian Noland wrote: The key to speedy SQL is in the indexes. Without an index the SQL engine iterates over every row. With an index it automagically grabs the correct value. Good to know. I heard about indices before, but wasn't really aware that they have such a huge impact. Since my days o

Re: [nyphp-talk] PHP array_unique vs. SQL DISTINCT

2007-06-03 Thread David Krings
Adrian Noland wrote: The key to speedy SQL is in the indexes. Without an index the SQL engine iterates over every row. With an index it automagically grabs the correct value. This is really an eyeopener. After indexing all those columns that come up in some selects running the same query that

Re: [nyphp-talk] PHP array_unique vs. SQL DISTINCT

2007-06-04 Thread David Krings
Adrian Noland wrote: > When it comes to choosing which columns to index, you want to pick something with a high cardinality, or, for lack of a better term, "uniqueablity". Gender wont have a high cardinality because there are only 2 choices for many records. Last name on your personal family a

Re: [nyphp-talk] PHP array_unique vs. SQL DISTINCT

2007-06-04 Thread David Krings
Morgan Craft wrote: If you are using DISTINCT probably means you need to normalize your data and look to join more appropriately. Also for creating indexes you really need to consider how you plan to access your data and how it will be used - which goes back to properly normalizing database ta

Re: [nyphp-talk] A Form That Builds Itself

2007-06-06 Thread David Krings
CED wrote: yeah, that too. Anything referencing the div. I'm just ajax happy, go XOAD!... Ignore me. Or if you don't know how to get around with AJAX or such, have the users upload the image files as a zip archive. Depenging on which images you want to allow, adding a few .bmp files may qui

  1   2   3   4   5   6   >