From nyphp at websapp.com Wed Jan 1 11:34:55 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Wed, 1 Jan 2003 11:34:55 -0500 Subject: FW: [wwwac] Need WINXP Pro (Will pay!) Message-ID: Happy New Year PHPers, Found this on the WWWAC list. Maybe someone here would like to make a few bucks this year :) See you at the meeting, _______________ Daniel Kushner Vice President, New York PHP http://nyphp.org daniel at nyphp.org -----Original Message----- From: Peter Shankman [mailto:shankman at panix.com] Sent: Wednesday, January 01, 2003 2:05 AM To: wwwac at lists.wwwac.org Subject: [wwwac] Need WINXP Pro (Will pay!) Happy new year, all... My new yea started with WinXP (home) crashing hard. I had to reinstall Win XP, and of course, now it's there, and I can see all of my documents, but I can't get to any of them. I need someone who can either a) help me migrate all my programs etc over to the new version, or b) help me fix the old version. (the file that's corrupt is called "intoskrnl.exe) I'll pay- tell me your hourly rate, and if you can come over either Wednesday night or anytime on Thursday, I'll hire you. I'm in serious need of help here... Thanks - peter at shankman.com -Peter (646-522-9234) ## It's WWWAC Board of Directors Election Season! Details on web site. ## ## The World Wide Web Artists' Consortium --- http://www.wwwac.org/ ## ## To Unsubscribe, send an e-mail to: wwwac-unsubscribe at lists.wwwac.org ## From Wasch at aol.com Wed Jan 1 13:19:55 2003 From: Wasch at aol.com (Wasch at aol.com) Date: Wed, 1 Jan 2003 13:19:55 EST Subject: [nycphp-talk] FW: [wwwac] Need WINXP Pro Message-ID: <1ac.e26dea1.2b448b4b@aol.com> From Wasch at aol.com Wed Jan 1 13:22:35 2003 From: Wasch at aol.com (Wasch at aol.com) Date: Wed, 1 Jan 2003 13:22:35 EST Subject: [nycphp-talk] FW: [wwwac] Need WINXP Pro Message-ID: <18d.13cdb67c.2b448beb@aol.com> In a message dated 1/1/2003 11:38:11 AM Eastern Standard Time, nyphp at websapp.com writes: > My new yea started with WinXP (home) crashing hard. I had to reinstall Win > XP, and of course, now it's there, and I can see all of my documents, but > I can't get to any of them. I follow an architectural forum and the situation there is even worse. They cannot get thir pronters & plotters to function. The best advice is to go out and buy Win 2000 Pro and download XP and install Win 2000. I say amen to that. Regards, Wayne Schultz DraftCAD LLC -------------- next part -------------- An HTML attachment was scrubbed... URL: From ophir at prusak.com Thu Jan 2 10:24:36 2003 From: ophir at prusak.com (Ophir Prusak) Date: Thu, 2 Jan 2003 10:24:36 -0500 Subject: php meetup References: <200301021408.h02E8ZSt071161@parsec.nyphp.org> Message-ID: <008d01c2b273$10e017e0$bf65a8c0@tag1002> has anyone here gone to the php meetups here in nyc ? is it worth going to ? thanx Ophir From Arno.Vanmosel at wwecorp.com Thu Jan 2 10:46:55 2003 From: Arno.Vanmosel at wwecorp.com (Vanmosel, Arno ) Date: Thu, 2 Jan 2003 10:46:55 -0500 Subject: best wishes. Message-ID: <7101D732D17CD311AEFF00508B55857203F72B08@nt-exch-tower2> Nothing technical for once ... just a "Happy New Year" message. I wish you all the absolute best in 2003! Arno -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan at dwc.to Thu Jan 2 11:10:32 2003 From: dan at dwc.to (Dan Horning) Date: Thu, 2 Jan 2003 11:10:32 -0500 Subject: [nycphp-talk] php meetup In-Reply-To: <200301021524.h02FOCSt071532@parsec.nyphp.org> Message-ID: <000001c2b279$7ba39420$9cc484d0@dwchome> I personally haven't .. But I'd suggest going if you are in the tech industry .. Even just at the chance of meeting a future biz client or supplier.. Network yourself .. So to speak.. Esp. in NYC.. Ya know? >From the Desk of: Dan Horning Owner Dsoundmn's Web Creations Dsoundmn's Web Creations PO Box 109 Clifton Park, NY 12065-0109 Email: info at dwc.to ------ Online on AIM - dsoundmn (or dsoundmn1 for emergencies) ICQ - 14308614 MSN - dan at dwc.to YIM - dsoundmn -----Original Message----- From: Ophir Prusak [mailto:ophir at prusak.com] Sent: Thursday, January 02, 2003 10:24 AM To: NYPHP Talk Subject: [nycphp-talk] php meetup has anyone here gone to the php meetups here in nyc ? is it worth going to ? thanx Ophir --- Unsubscribe at http://nyphp.org/list/ --- From fields at surgam.net Thu Jan 2 11:35:38 2003 From: fields at surgam.net (Adam Fields) Date: Thu, 2 Jan 2003 10:35:38 -0600 Subject: [nycphp-talk] php meetup In-Reply-To: <200301021524.h02FOCSt071532@parsec.nyphp.org> References: <200301021524.h02FOCSt071532@parsec.nyphp.org> Message-ID: <20030102163538.GG24919@eye.surgam.net> On Thu, Jan 02, 2003 at 10:24:12AM -0500, Ophir Prusak wrote: > has anyone here gone to the php meetups here in nyc ? > is it worth going to ? They're enjoyable. The last one was kind of under-represented (holiday season and all), but the one before that drew about 25 people. It's a fun opportunity to sit around, drink, and chat with technical people. It's pretty low-key. -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From enunez at tiaa-cref.org Fri Jan 3 11:40:34 2003 From: enunez at tiaa-cref.org (Nunez, Eddy) Date: Fri, 3 Jan 2003 09:40:34 -0700 Subject: Memory Limit Message-ID: <7CE0EC1FC2D0D411910700508BE38D0F0A6D9BC5@msxnyusr01.msx.ops.tiaa-cref.org> This is in reference to the standard memory limit for server PHP scripts, which is 8MB. My question is... is there any function to query available free space in the memory pool? I have searched through www.php.net and found nothing useful. Thanks, -EN ********************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ********************************************************************** From kayraotaner at yahoo.com Fri Jan 3 12:22:31 2003 From: kayraotaner at yahoo.com (Kayra Otaner) Date: Fri, 3 Jan 2003 09:22:31 -0800 (PST) Subject: [nycphp-talk] Memory Limit In-Reply-To: <200301031641.h03GfRSt079019@parsec.nyphp.org> Message-ID: <20030103172231.91525.qmail@web41009.mail.yahoo.com> Hi, There are two simple ways to have more free memory for your scripts : 1- You can increase memory limit from 8 Mb to any amount in php.ini file. 2- You can use 'unset()' function to unset unused variables right after you use them. I've been working on a log parser to parse almost 1Gb web server logfile everyday. Using 'unset()' helped me a lot. --- "Nunez, Eddy" wrote: > > This is in reference to the standard memory limit for server PHP scripts, > which is 8MB. > > My question is... > is there any function to query available free space in the memory pool? > > I have searched through www.php.net and found nothing useful. > > Thanks, > -EN > > > ********************************************************************** > This message, including any attachments, contains confidential information intended for a > specific individual and purpose, and is protected by law. If you are not the intended > recipient, please contact sender immediately by reply e-mail and destroy all copies. You are > hereby notified that any disclosure, copying, or distribution of this message, or the taking of > any action based on it, is strictly prohibited. > TIAA-CREF > ********************************************************************** > > > --- Unsubscribe at http://nyphp.org/list/ --- > > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From dan at dwc.to Fri Jan 3 12:28:16 2003 From: dan at dwc.to (Dan Horning) Date: Fri, 3 Jan 2003 12:28:16 -0500 Subject: [nycphp-talk] Memory Limit In-Reply-To: <200301031641.h03GfRSt079019@parsec.nyphp.org> Message-ID: <000601c2b34d$82376f80$9ac484d0@dwchome> Depending on what you are on .. It's based on when you configure make / make install the software.. However It might be mod in my.ini of php.ini Let me know if that helps (or doesn't) >From the Desk of: Dan Horning Owner Dsoundmn's Web Creations Dsoundmn's Web Creations PO Box 109 Clifton Park, NY 12065-0109 Email: info at dwc.to ------ Online on AIM - dsoundmn (or dsoundmn1 for emergencies) ICQ - 14308614 MSN - dan at dwc.to YIM - dsoundmn -----Original Message----- From: Nunez, Eddy [mailto:enunez at tiaa-cref.org] Sent: Friday, January 03, 2003 11:41 AM To: NYPHP Talk Subject: [nycphp-talk] Memory Limit This is in reference to the standard memory limit for server PHP scripts, which is 8MB. My question is... is there any function to query available free space in the memory pool? I have searched through www.php.net and found nothing useful. Thanks, -EN ********************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ********************************************************************** --- Unsubscribe at http://nyphp.org/list/ --- From hans at nyphp.org Fri Jan 3 12:30:42 2003 From: hans at nyphp.org (Hans Zaunere) Date: Fri, 3 Jan 2003 09:30:42 -0800 (PST) Subject: The Future of PHP and the Zend Engine 2 Message-ID: <20030103173042.56091.qmail@web12808.mail.yahoo.com> FYI http://zend.interwise.com/zend/iSeminar/OI1336/ This looks like it'll be a very informative talk, given by Zeev on the 8th @ 11am. ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From sterling at bumblebury.com Fri Jan 3 12:38:40 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: Fri, 3 Jan 2003 12:38:40 -0500 Subject: [nycphp-talk] Memory Limit In-Reply-To: <200301031722.h03HMfSt079240@parsec.nyphp.org> References: <200301031722.h03HMfSt079240@parsec.nyphp.org> Message-ID: <20030103173840.GA94886@bumblebury.com> > Hi, > > There are two simple ways to have more free memory for your scripts : > > 1- You can increase memory limit from 8 Mb to any amount in php.ini file. > 2- You can use 'unset()' function to unset unused variables right after you use them. > err, that should only be php 3 specific, php4's reference counting mechanism releases all variables the second they are no longer referenced in the script. -Sterling > I've been working on a log parser to parse almost 1Gb web server logfile everyday. Using 'unset()' > helped me a lot. > > > > --- "Nunez, Eddy" wrote: > > > > This is in reference to the standard memory limit for server PHP scripts, > > which is 8MB. > > > > My question is... > > is there any function to query available free space in the memory pool? > > > > I have searched through www.php.net and found nothing useful. > > > > Thanks, > > -EN > > > > > > ********************************************************************** > > This message, including any attachments, contains confidential information intended for a > > specific individual and purpose, and is protected by law. If you are not the intended > > recipient, please contact sender immediately by reply e-mail and destroy all copies. You are > > hereby notified that any disclosure, copying, or distribution of this message, or the taking of > > any action based on it, is strictly prohibited. > > TIAA-CREF > > ********************************************************************** > > > > > > > > > > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From dan at dwc.to Fri Jan 3 12:52:38 2003 From: dan at dwc.to (Dan Horning) Date: Fri, 3 Jan 2003 12:52:38 -0500 Subject: [nycphp-talk] Memory Limit In-Reply-To: <200301031738.h03HckSt079350@parsec.nyphp.org> Message-ID: <002b01c2b350$ead81320$9ac484d0@dwchome> In this I'm wondering why you need more of a memory path for php.. I.e... What's the purpose.. Maybe some streamlining of the programs you're using could be in order??? But in case it was missed ... Change the variable in php.ini And restart php (or apache if it's complied into it) >From the Desk of: Dan Horning Owner Dsoundmn's Web Creations Dsoundmn's Web Creations PO Box 109 Clifton Park, NY 12065-0109 Email: info at dwc.to ------ Online on AIM - dsoundmn (or dsoundmn1 for emergencies) ICQ - 14308614 MSN - dan at dwc.to YIM - dsoundmn -----Original Message----- From: Sterling Hughes [mailto:sterling at bumblebury.com] Sent: Friday, January 03, 2003 12:39 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Memory Limit > Hi, > > There are two simple ways to have more free memory for your scripts : > > 1- You can increase memory limit from 8 Mb to any amount in php.ini > file. > 2- You can use 'unset()' function to unset unused variables right after you use them. > err, that should only be php 3 specific, php4's reference counting mechanism releases all variables the second they are no longer referenced in the script. -Sterling > I've been working on a log parser to parse almost 1Gb web server > logfile everyday. Using 'unset()' helped me a lot. > > > > --- "Nunez, Eddy" wrote: > > > > This is in reference to the standard memory limit for server PHP > > scripts, which is 8MB. > > > > My question is... > > is there any function to query available free space in the memory > > pool? > > > > I have searched through www.php.net and found nothing useful. > > > > Thanks, > > -EN > > > > > > ******************************************************************** > > ** > > This message, including any attachments, contains confidential information intended for a > > specific individual and purpose, and is protected by law. If you are not the intended > > recipient, please contact sender immediately by reply e-mail and destroy all copies. You are > > hereby notified that any disclosure, copying, or distribution of this message, or the taking of > > any action based on it, is strictly prohibited. > > TIAA-CREF > > ********************************************************************** > > > > > > > > > > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From hans at nyphp.org Fri Jan 3 13:06:21 2003 From: hans at nyphp.org (Hans Zaunere) Date: Fri, 3 Jan 2003 10:06:21 -0800 (PST) Subject: NYPHP Needs You at LinuxWorld Expo 2003 Message-ID: <20030103180621.40426.qmail@web12806.mail.yahoo.com> New York PHP will be at LinuxWorld Expo 2003, January 21-24, and we need your help! (http://linuxworldexpo.com) Apparently, the .Org Pavilion booths were going like Krispy Kremes, and NYPHP wasn't able to reserve one in time. However, thanks to the due diligence of Ron Guerin and NYLUG, we will be able to have a part in a booth. If you?re able to help in any capacity (staff the booth, help setup/teardown, generate NYPHP mementos, like buttons, pens, stickers or some other creative items) it would be greatly appreciated by all groups involved, and of course NYPHP. And, please spread the word to others who may be interested also. Please contact me (hans at nyphp.org) ASAP, since scheduling issues still need to be addressed. Thank You, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From hans at nyphp.org Fri Jan 3 13:35:48 2003 From: hans at nyphp.org (Hans Zaunere) Date: Fri, 3 Jan 2003 10:35:48 -0800 (PST) Subject: [nycphp-talk] Memory Limit In-Reply-To: <200301031738.h03HckSt079350@parsec.nyphp.org> Message-ID: <20030103183548.67585.qmail@web12808.mail.yahoo.com> --- Sterling Hughes wrote: > > Hi, > > > > There are two simple ways to have more free memory for your scripts : > > > > 1- You can increase memory limit from 8 Mb to any amount in php.ini file. > > 2- You can use 'unset()' function to unset unused variables right after > you use them. > > > > err, that should only be php 3 specific, php4's reference counting > mechanism releases all > variables the second they are no longer referenced in the script. But how would they become unreferenced without unset()ing them? > > --- "Nunez, Eddy" wrote: > > > > > > This is in reference to the standard memory limit for server PHP > scripts, > > > which is 8MB. > > > > > > My question is... > > > is there any function to query available free space in the memory pool? Maybe getrusage() would be handy, and I've attached a cheesy example I've used to quickly profile scripts, and the posix_* functions look good, too. Plus, you could always run the UNIX commands and parse the output for mem usage, what's free, etc on a system wide basis. ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org -------------- next part -------------- A non-text attachment was scrubbed... Name: profile.inc Type: application/octet-stream Size: 772 bytes Desc: profile.inc URL: From ssmith at tomega.com Fri Jan 3 13:53:47 2003 From: ssmith at tomega.com (Sean Smith) Date: Fri, 03 Jan 2003 13:53:47 -0500 Subject: [nycphp-talk] Memory Limit References: <200301031641.h03GfRSt079019@parsec.nyphp.org> Message-ID: <3E15DC3B.7060004@tomega.com> Although the information everyone has replied with is useful I think he is looking for a way to check available memory in a script. Unfortunately I don't know of one, I am relatively new to PHP. Nunez, Eddy wrote: >This is in reference to the standard memory limit for server PHP scripts, >which is 8MB. > >My question is... >is there any function to query available free space in the memory pool? > >I have searched through www.php.net and found nothing useful. > >Thanks, >-EN > > >********************************************************************** >This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. >TIAA-CREF >********************************************************************** > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > From sterling at bumblebury.com Fri Jan 3 14:13:48 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: Fri, 3 Jan 2003 14:13:48 -0500 Subject: [nycphp-talk] Memory Limit In-Reply-To: <200301031835.h03IZtSt079712@parsec.nyphp.org> References: <200301031835.h03IZtSt079712@parsec.nyphp.org> Message-ID: <20030103191348.GC94886@bumblebury.com> > This message contained 1 file(s) and is available at http://nyphp.org/list/paralist_archive.php?L_mid=2111 > > --- Sterling Hughes wrote: > > > Hi, > > > > > > There are two simple ways to have more free memory for your scripts : > > > > > > 1- You can increase memory limit from 8 Mb to any amount in php.ini file. > > > 2- You can use 'unset()' function to unset unused variables right after > > you use them. > > > > > > > err, that should only be php 3 specific, php4's reference counting > > mechanism releases all > > variables the second they are no longer referenced in the script. > > But how would they become unreferenced without unset()ing them? > reference counting, that's how it works. :-) once you no longer reference a variable in your script it is destroyed. Same applies for resources, like filehandles. One they are no longer used, the files are closed. http://www.zend.com/zend/art/ref-count.php Now of course if you keep a lot of variables in one scope, then you should explicitly free them, but chances are, if you're code is good, it should be modularized. If you really do need to deref a variable, the best way is by: $var = NULL; -Sterling > > > > --- "Nunez, Eddy" wrote: > > > > > > > > This is in reference to the standard memory limit for server PHP > > > scripts, > > > > which is 8MB. > > > > > > > > My question is... > > > > is there any function to query available free space in the memory pool? > > Maybe getrusage() would be handy, and I've attached a cheesy example I've > used to quickly profile scripts, and the posix_* functions look good, too. > Plus, you could always run the UNIX commands and parse the output for mem > usage, what's free, etc on a system wide basis. > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From kayraotaner at yahoo.com Fri Jan 3 14:53:30 2003 From: kayraotaner at yahoo.com (Kayra Otaner) Date: Fri, 3 Jan 2003 11:53:30 -0800 (PST) Subject: [nycphp-talk] Memory Limit In-Reply-To: <200301031913.h03JDuSt079928@parsec.nyphp.org> Message-ID: <20030103195330.96404.qmail@web41013.mail.yahoo.com> Hi, I've been trying to find the correct code to show memory usage and 'unset' feature. I was using Php cli version 4.1 and there was some sort of gc problem I guess. Here is a sample code, it basically reads a file and once in a 5000 lines it prints usage status. You'll observe that memory amount dedicated to script is increasing in time. If you comment 'unset()' functions in the code below, memory consumption speed will going to increase. I'm using 300 Mb of access.log file so you can observe memory increase after a while. I've checked same code on php cli 4.3 and there seems to be a fixed but memory dedicated to the script is still increasing after some time. $fp = fopen("access.log", "r"); while ($row = fgets($fp, 10000)) : $text = $text.$row; $i++; if ($i > 5000) { print_r(getrusage()); unset($text); $text = $row; unset($i); $i = 0; } unset($row); endwhile; Kayra Otaner --- Sterling Hughes wrote: > > This message contained 1 file(s) and is available at > http://nyphp.org/list/paralist_archive.php?L_mid=2111 > > > > --- Sterling Hughes wrote: > > > > Hi, > > > > > > > > There are two simple ways to have more free memory for your scripts : > > > > > > > > 1- You can increase memory limit from 8 Mb to any amount in php.ini file. > > > > 2- You can use 'unset()' function to unset unused variables right after > > > you use them. > > > > > > > > > > err, that should only be php 3 specific, php4's reference counting > > > mechanism releases all > > > variables the second they are no longer referenced in the script. > > > > But how would they become unreferenced without unset()ing them? > > > > reference counting, that's how it works. :-) once you no longer reference > a variable in your script it is destroyed. Same applies for resources, like > filehandles. One they are no longer used, the files are closed. > > http://www.zend.com/zend/art/ref-count.php > > Now of course if you keep a lot of variables in one scope, then you should > explicitly free them, but chances are, if you're code is good, it should be modularized. > If you really do need to deref a variable, the best way is by: > > $var = NULL; > > -Sterling > > > > > > > --- "Nunez, Eddy" wrote: > > > > > > > > > > This is in reference to the standard memory limit for server PHP > > > > > scripts, > > > > > which is 8MB. > > > > > > > > > > My question is... > > > > > is there any function to query available free space in the memory pool? > > > > Maybe getrusage() would be handy, and I've attached a cheesy example I've > > used to quickly profile scripts, and the posix_* functions look good, too. > > Plus, you could always run the UNIX commands and parse the output for mem > > usage, what's free, etc on a system wide basis. > > > > > > ===== > > Hans Zaunere > > President, New York PHP > > http://nyphp.org > > hans at nyphp.org > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From kayraotaner at yahoo.com Fri Jan 3 14:57:52 2003 From: kayraotaner at yahoo.com (Kayra Otaner) Date: Fri, 3 Jan 2003 11:57:52 -0800 (PST) Subject: [nycphp-talk] Memory Limit Message-ID: <20030103195752.47029.qmail@web41003.mail.yahoo.com> Hi, I'm sorry, I forgot the ps command to observe memory from the system. I'm actually using this command to observe memory allocation for my script instead of php getrusage calls. # ps -v -t pts/1 PS : my script runs on tty 'pts/1', so please set your terminal number over there. --- Kayra Otaner wrote: > Hi, > > I've been trying to find the correct code to show memory usage and 'unset' feature. I was using > Php cli version 4.1 and there was some sort of gc problem I guess. Here is a sample code, it > basically reads a file and once in a 5000 lines it prints usage status. You'll observe that > memory amount dedicated to script is increasing in time. If you comment 'unset()' functions in > the > code below, memory consumption speed will going to increase. I'm using 300 Mb of access.log file > so you can observe memory increase after a while. I've checked same code on php cli 4.3 and > there > seems to be a fixed but memory dedicated to the script is still increasing after some time. > > $fp = fopen("access.log", "r"); > while ($row = fgets($fp, 10000)) : > $text = $text.$row; > $i++; > if ($i > 5000) { > print_r(getrusage()); > unset($text); > $text = $row; > unset($i); > $i = 0; > } > unset($row); > endwhile; > > > Kayra Otaner > > > --- Sterling Hughes wrote: > > > This message contained 1 file(s) and is available at > > http://nyphp.org/list/paralist_archive.php?L_mid=2111 > > > > > > --- Sterling Hughes wrote: > > > > > Hi, > > > > > > > > > > There are two simple ways to have more free memory for your scripts : > > > > > > > > > > 1- You can increase memory limit from 8 Mb to any amount in php.ini file. > > > > > 2- You can use 'unset()' function to unset unused variables right after > > > > you use them. > > > > > > > > > > > > > err, that should only be php 3 specific, php4's reference counting > > > > mechanism releases all > > > > variables the second they are no longer referenced in the script. > > > > > > But how would they become unreferenced without unset()ing them? > > > > > > > reference counting, that's how it works. :-) once you no longer reference > > a variable in your script it is destroyed. Same applies for resources, like > > filehandles. One they are no longer used, the files are closed. > > > > http://www.zend.com/zend/art/ref-count.php > > > > Now of course if you keep a lot of variables in one scope, then you should > > explicitly free them, but chances are, if you're code is good, it should be modularized. > > If you really do need to deref a variable, the best way is by: > > > > $var = NULL; > > > > -Sterling > > > > > > > > > > --- "Nunez, Eddy" wrote: > > > > > > > > > > > > This is in reference to the standard memory limit for server PHP > > > > > > > scripts, > > > > > > which is 8MB. > > > > > > > > > > > > My question is... > > > > > > is there any function to query available free space in the memory pool? > > > > > > Maybe getrusage() would be handy, and I've attached a cheesy example I've > > > used to quickly profile scripts, and the posix_* functions look good, too. > > > Plus, you could always run the UNIX commands and parse the output for mem > > > usage, what's free, etc on a system wide basis. > > > > > > > > > ===== > > > Hans Zaunere > > > President, New York PHP > > > http://nyphp.org > > > hans at nyphp.org > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From thr333d at hotmail.com Sat Jan 4 13:53:54 2003 From: thr333d at hotmail.com (Andrew Kupiec) Date: Sat, 04 Jan 2003 13:53:54 -0500 Subject: [nycphp-talk] FW: [wwwac] Need WINXP Pro In-Reply-To: <200301021408.h02E8ZSt071161@parsec.nyphp.org> Message-ID: Happy New Year all, Is it possible to share this information about Windows XP home edition? I also had this erratic crash in XP that locked up all my previous files from my old user account. Any help or links would be much appreciated. Thanks and have a great day, Andrew > Hi All, > > Fyi, I called Peter this morning at around 9:00am. he apparently spent many > hours on the phone w/microsoft. It was to my understanding that his problem > has for the most part been taken care of. He also was very thankful for the > call. > > Shawn >> -----Original Message----- >> From: Peter Shankman [mailto:shankman at panix.com] >> Sent: Wednesday, January 01, 2003 2:05 AM >> To: wwwac at lists.wwwac.org >> Subject: [wwwac] Need WINXP Pro (Will pay!) >> >> >> Happy new year, all... >> >> My new yea started with WinXP (home) crashing hard. I had to reinstall Win >> XP, and of course, now it's there, and I can see all of my documents, but >> I can't get to any of them. I need someone who can either a) help me >> migrate all my programs etc over to the new version, or b) help me fix the >> old version. (the file that's corrupt is called "intoskrnl.exe) >> >> I'll pay- tell me your hourly rate, and if you can come over either >> Wednesday night or anytime on Thursday, I'll hire you. I'm in serious need >> of help here... >> >> Thanks - peter at shankman.com >> >> -Peter (646-522-9234) >> >> >> >> >> ## It's WWWAC Board of Directors Election Season! Details on web site. > ## >> ## The World Wide Web Artists' Consortium --- http://www.wwwac.org/ > ## >> ## To Unsubscribe, send an e-mail to: wwwac-unsubscribe at lists.wwwac.org > ## >> >> >> >> >> >> >> >> > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From soazine at erols.com Sat Jan 4 16:21:39 2003 From: soazine at erols.com (Phil Powell) Date: Sat, 4 Jan 2003 16:21:39 -0500 Subject: I can't code today to save my life! :( Message-ID: <03b601c2b437$459c0910$2aaf6244@scandinawa1bo6> I have $REQUEST_URI that will take two values: "/event/login.php" and "/event/register.php" What I need to do is so simple it's brainless!!! I need to look into $REQUEST_URI and find if it contains "register.php". I tried this and it completely failed, the results were wrong every time: if (strpos($REQUEST_URI, "register.php") !== 0) { // you're in login.php } I don't know why I can't get this other than weekend stupidity, can someone help? Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From chendry at nyc.rr.com Sat Jan 4 16:59:22 2003 From: chendry at nyc.rr.com (Christopher Hendry) Date: Sat, 4 Jan 2003 16:59:22 -0500 Subject: [nycphp-talk] I can't code today to save my life! : In-Reply-To: <200301042123.h04LNxSt093690@parsec.nyphp.org> Message-ID: Hey Phil, your message broke up a bit, so can't quite make out your code, but I use this function to do what you're trying: function CheckURL($page_name) { if(strpos($GLOBALS["SCRIPT_NAME"], $page_name ) == false) { return false; } else { return true; } } I'm not sure how this function is as far as security goes, and would be curious if anyone can tell me... Thanks, C -> -----Original Message----- -> From: Phil Powell [mailto:soazine at erols.com] -> Sent: Saturday, January 04, 2003 4:24 PM -> To: NYPHP Talk -> Subject: [nycphp-talk] I can't code today to save my life! : -> -> -> This is a multi-part message in MIME format. -> -> ------=_NextPart_000_03B3_01C2B40D.5C74FAE0 -> Content-Type: text/plain; -> charset="iso-8859-1" -> Content-Transfer-Encoding: quoted-printable -> -> I have $REQUEST_URI that will take two values: -> -> "/event/login.php" -> -> and -> -> "/event/register.php" -> -> What I need to do is so simple it's brainless!!! I need to look into = -> $REQUEST_URI and find if it contains "register.php". I tried this and = -> it completely failed, the results were wrong every time: -> -> if (strpos($REQUEST_URI, "register.php") !=3D=3D 0) { // you're in = -> login.php } -> -> I don't know why I can't get this other than weekend stupidity, can = -> someone help? -> -> Thanx -> Phil -> -> ------=_NextPart_000_03B3_01C2B40D.5C74FAE0 -> Content-Type: text/html; -> charset="iso-8859-1" -> Content-Transfer-Encoding: quoted-printable -> -> -> -> charset=3Diso-8859-1"> -> -> -> -> ->
I have $REQUEST_URI that will -> take two=20 -> values:
->
 
->
"/event/login.php"
->
 
->
and
->
 
->
"/event/register.php"
->
 
->
What I need to do is so simple it's = -> brainless!!! I=20 -> need to look into $REQUEST_URI and find if it contains = -> "register.php".  I=20 -> tried this and it completely failed, the results were wrong every=20 -> time:
->
 
->
if (strpos($REQUEST_URI, = -> "register.php") !=3D=3D 0) {=20 -> // you're in login.php }
->
 
->
I don't know why I can't get -> this other = -> than=20 -> weekend stupidity, can someone help?
->
 
->
Thanx
->
Phil
-> -> ------=_NextPart_000_03B3_01C2B40D.5C74FAE0-- -> -> -> -> --- Unsubscribe at http://nyphp.org/list/ --- -> -> -> From hans at nyphp.org Sat Jan 4 17:09:32 2003 From: hans at nyphp.org (Hans Zaunere) Date: Sat, 4 Jan 2003 14:09:32 -0800 (PST) Subject: [nycphp-talk] I can't code today to save my life! : In-Reply-To: <200301042123.h04LNxSt093690@parsec.nyphp.org> Message-ID: <20030104220932.54977.qmail@web12805.mail.yahoo.com> --- Phil Powell wrote: > Content-Transfer-Encoding: quoted-printable I guess my quoted-printable parser is broken - sorry folks :) > I have $REQUEST_URI that will take two values: > > "/event/login.php" > > and > > "/event/register.php" > > What I need to do is so simple it's brainless!!! I need to look into > $REQUEST_URI and find if it contains "register.php". I tried this and > it completely failed, the results were wrong every time: > > if (strpos($REQUEST_URI, "register.php") !== 0) { // you're in > login.php } > > I don't know why I can't get this other than weekend stupidity, can > someone help? Two possible problems: -- The if() statement isn't doing the proper comparison. if( strpos($REQUEST_URI,'register.php') === FALSE ) { echo 'Then by default we assume to have login.php!'; } -- Check that $REQUEST_URI does in fact contain what you expect with a trigger_error() or echo call. ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From hans at nyphp.org Sat Jan 4 17:37:35 2003 From: hans at nyphp.org (Hans Zaunere) Date: Sat, 4 Jan 2003 14:37:35 -0800 (PST) Subject: [nycphp-talk] Memory Limit In-Reply-To: <200301031953.h03JraSt080154@parsec.nyphp.org> Message-ID: <20030104223735.68520.qmail@web12808.mail.yahoo.com> --- Kayra Otaner wrote: > Hi, > > I've been trying to find the correct code to show memory usage and 'unset' > feature. I was using > Php cli version 4.1 and there was some sort of gc problem I guess. Here is > a sample code, it > basically reads a file and once in a 5000 lines it prints usage status. > You'll observe that > memory amount dedicated to script is increasing in time. If you comment > 'unset()' functions in the > code below, memory consumption speed will going to increase. I'm using 300 > Mb of access.log file > so you can observe memory increase after a while. I've checked same code on > php cli 4.3 and there > seems to be a fixed but memory dedicated to the script is still increasing > after some time. > > $fp = fopen("access.log", "r"); > while ($row = fgets($fp, 10000)) : > $text = $text.$row; Does: $text .= $row; make any difference? > $i++; > if ($i > 5000) { > print_r(getrusage()); > unset($text); > $text = $row; > unset($i); > $i = 0; > } > unset($row); > endwhile; Does this act any different as far as memory usage (or speed): $fp = fopen("access.log", "r"); $i = 0; $text = NULL; while( $row = fgets($fp, 10000) ) : $text .= $row; $i++; if ($i > 5000) { print_r(getrusage()); $text = $row; $i = 0; } endwhile; Maybe letting Zend/PHP take care of things implicitly shows an improvement? I suppose overall script memory usage will increase over time due to some overhead, but I'm curious as to what/why the overhead is/exists, if there's a limit, and if it can be totally skirted. Or, hark, memory leaks? ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From soazine at erols.com Sat Jan 4 18:43:29 2003 From: soazine at erols.com (Phil Powell) Date: Sat, 4 Jan 2003 18:43:29 -0500 Subject: Second (Bizarre) Question regarding PHP and ASP Message-ID: <03f201c2b44b$163823c0$2aaf6244@scandinawa1bo6> I don't know how to post this one so I'm sorry for such bizarre cross-posting, but honestly I don't know where to go for help on this one! I have process.php that has to call a remote file called process.asp on another site. Site 1 has the cookie domain I want (that's where process.php is housed) Site 2 has the database I need (because I can't obtain a database for Site 1 - Site 2 is where process.asp is housed) process.php has to do an fopen to process.asp to process username and password material. process.asp needs security, obviously, to ensure that the user is "coming" from process.asp (but he's not because he's doing an fopen). in other words, process.php opens up process.asp and returns the evaluation of process.asp onto process.php I tried using REQUEST_URI but I didn't get the results I wanted. How will process.asp know that process.php called it in order to do what it should do? Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From soazine at erols.com Sat Jan 4 19:26:02 2003 From: soazine at erols.com (Phil Powell) Date: Sat, 4 Jan 2003 19:26:02 -0500 Subject: PHP and empty() if form value is 0 Message-ID: <042101c2b451$07df71b0$2aaf6244@scandinawa1bo6> foreach ($HTTP_GET_VARS as $key => $val) { if (!empty($HTTP_GET_VARS["$key"])) ${"$key"} = $HTTP_GET_VARS["$key"]; } foreach ($HTTP_POST_VARS as $key => $val) { if (!empty($HTTP_POST_VARS["$key"])) ${"$key"} = $HTTP_POST_VARS["$key"]; } Whenever the form variable is equal to 0, the value is not passed into the corresponding variable. For example, if isLogin = 1, then $isLogin = 1 But if isRegistered = 0 then $isRegistered = {null} I do not understand why this happens, someone enlighten me! Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From gquimpo at sni-inc.com Sun Jan 5 03:22:56 2003 From: gquimpo at sni-inc.com (Gerald Timothy Quimpo) Date: Sun, 5 Jan 2003 16:22:56 +0800 Subject: [PHP] Second (Bizarre) Question regarding PHP and ASP In-Reply-To: <03f201c2b44b$163823c0$2aaf6244@scandinawa1bo6> References: <03f201c2b44b$163823c0$2aaf6244@scandinawa1bo6> Message-ID: <200301051622.56640.gquimpo@sni-inc.com> On Sunday 05 January 2003 07:43 am, Phil Powell wrote: > I tried using REQUEST_URI but I didn't get the results I wanted. How will > process.asp know that process.php called it in order to do what it should > do? if you can get $_SERVER["REMOTE_ADDR"] or $HTTP_REMOTE_ADDR and if you can trust it (not only that it's right, but also that there are no man in the middle attacks or other scripts on the client that can pretend to be your script) then you could just check that the request is coming from the right IP. alternatively, you could use hashes that change from one invocation to the next (to avoid replay attacks). the server and the client should both have a secret passphrase (perhaps even a whole set of them, one for each day, and generated every month or so). on the client (process.php) randomly generate a string, e.g., $randstr. create a hash based on the secret passphrase and the randstr, e.g, $hash=makeMyHash($passphrase.$randstr); /* use whatever hash function you want: openssl, mhash, mcrypt or whatever you use */ send the randstr and the hash along with the rest of the data. on the server side, process.asp takes the randstr, takes the hash as above, and compares the hash generated with the hash passed in. if they don't match, don't reply. if they match, then the request comes from process.php (unless you're really paranoid, in which case, add some more hoops for process.php to jump through :). tiger -- Gerald Timothy Quimpo tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78" Veritas liberabit vos. Doveryai no proveryai. From soazine at erols.com Sat Jan 4 19:34:04 2003 From: soazine at erols.com (Phil Powell) Date: Sat, 4 Jan 2003 19:34:04 -0500 Subject: [nycphp-talk] Re: [PHP] Second Question regarding PHP and ASP References: <200301050030.h050UBSt094741@parsec.nyphp.org> Message-ID: <042d01c2b452$268f5200$2aaf6244@scandinawa1bo6> The first explanation makes sense, the second you completely lost me, sorry, I understood none of it :( Phil ----- Original Message ----- From: "Gerald Timothy Quimpo" To: "NYPHP Talk" Sent: Saturday, January 04, 2003 7:30 PM Subject: [nycphp-talk] Re: [PHP] Second Question regarding PHP and ASP > On Sunday 05 January 2003 07:43 am, Phil Powell wrote: > > I tried using REQUEST_URI but I didn't get the results I wanted. How will > > process.asp know that process.php called it in order to do what it should > > do? > > if you can get $_SERVER["REMOTE_ADDR"] or $HTTP_REMOTE_ADDR > and if you can trust it (not only that it's right, but also that there are no > man in the middle attacks or other scripts on the client that can pretend > to be your script) then you could just check that the request is coming > from the right IP. > > alternatively, you could use hashes that change from one invocation > to the next (to avoid replay attacks). the server and the client > should both have a secret passphrase (perhaps even a whole set > of them, one for each day, and generated every month or so). > > on the client (process.php) randomly generate a string, e.g., $randstr. > create a hash based on the secret passphrase and the randstr, e.g, > > $hash=makeMyHash($passphrase.$randstr); /* use whatever hash > function you want: openssl, mhash, mcrypt or whatever you > use */ > > send the randstr and the hash along with the rest of the data. on the > server side, process.asp takes the randstr, takes the hash as above, > and compares the hash generated with the hash passed in. > if they don't match, don't reply. if they match, then the request comes > from process.php (unless you're really paranoid, in which case, add > some more hoops for process.php to jump through :). > > tiger > > -- > Gerald Timothy Quimpo tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph > Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78" > Veritas liberabit vos. > Doveryai no proveryai. > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From smanes at magpie.com Sat Jan 4 22:05:38 2003 From: smanes at magpie.com (Steve Manes) Date: Sat, 04 Jan 2003 22:05:38 -0500 Subject: [nycphp-talk] PHP and empty if form value is 0 In-Reply-To: <200301050028.h050SSSt094721@parsec.nyphp.org> Message-ID: <5.1.1.6.2.20030104220410.012be9d0@192.168.111.6> At 07:28 PM 1/4/2003 -0500, Phil Powell wrote: >foreach ($HTTP_GET_VARS as $key => $val) { > if (!empty($HTTP_GET_VARS["$key"])) ${"$key"} = $HTTP_GET_VARS["$key"]; > } > > foreach ($HTTP_POST_VARS as $key => $val) { > if (!empty($HTTP_POST_VARS["$key"])) ${"$key"} = $HTTP_POST_VARS["$key"]; > } > >Whenever the form variable is equal to 0, the value is not passed into the >corresponding variable. > >For example, if isLogin = 1, then $isLogin = 1 >But if isRegistered = 0 then $isRegistered = {null} empty() returns true if the variable is either not set or is zero. Try using isset() instead. From dan at dwc.to Sat Jan 4 22:12:35 2003 From: dan at dwc.to (Dan Horning) Date: Sat, 4 Jan 2003 22:12:35 -0500 Subject: [nycphp-talk] Second Question regarding PHP and ASP In-Reply-To: <200301042345.h04NjoSt094508@parsec.nyphp.org> Message-ID: <000001c2b468$4d5304c0$8bc484d0@dwchome> Maybe I can help.. But I'd need to speak to you.. Do you have a number that I could call you at? >From the Desk of: Dan Horning Owner Dsoundmn's Web Creations Dsoundmn's Web Creations PO Box 109 Clifton Park, NY 12065-0109 Email: info at dwc.to ------ Online on AIM - dsoundmn (or dsoundmn1 for emergencies) ICQ - 14308614 MSN - dan at dwc.to YIM - dsoundmn -----Original Message----- From: Phil Powell [mailto:soazine at erols.com] Sent: Saturday, January 04, 2003 6:46 PM To: NYPHP Talk Subject: [nycphp-talk] Second Question regarding PHP and ASP I don't know how to post this one so I'm sorry for such bizarre cross-posting, but honestly I don't know where to go for help on this one! I have process.php that has to call a remote file called process.asp on another site. Site 1 has the cookie domain I want (that's where process.php is housed) Site 2 has the database I need (because I can't obtain a database for Site 1 - Site 2 is where process.asp is housed) process.php has to do an fopen to process.asp to process username and password material. process.asp needs security, obviously, to ensure that the user is "coming" from process.asp (but he's not because he's doing an fopen). in other words, process.php opens up process.asp and returns the evaluation of process.asp onto process.php I tried using REQUEST_URI but I didn't get the results I wanted. How will process.asp know that process.php called it in order to do what it should do? Thanx Phil --- Unsubscribe at http://nyphp.org/list/ --- From tech_learner at yahoo.com Sun Jan 5 00:42:02 2003 From: tech_learner at yahoo.com (Tracy) Date: Sat, 4 Jan 2003 21:42:02 -0800 (PST) Subject: regarding GD lib In-Reply-To: <200301050028.h050SSSt094721@parsec.nyphp.org> Message-ID: <20030105054202.70550.qmail@web14310.mail.yahoo.com> Hi all, I have php 4.2.2 on my Win 98. i have included the extension for gd lib, but i am unable to run any of the ex scripts i have downloaded. does any one know how to checf the php.ini and wot exact changes to make to it, to get gd running? Plz help Tracy --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From bradley at bestweb.net Sun Jan 5 01:03:27 2003 From: bradley at bestweb.net (Bradley Baumann) Date: Sun, 5 Jan 2003 01:03:27 -0500 Subject: [nycphp-talk] regarding GD lib References: <200301050542.h055g8St096290@parsec.nyphp.org> Message-ID: <000f01c2b480$2a7799d0$0300a8c0@prophxp> I doubt that the change you need to make is in the PHP.ini file, but I don't use the Windows version of PHP... so, I might be wrong. Sorry that I can't offer any more help, not my forte =/ -Bradley ----- Original Message ----- From: "Tracy" To: "NYPHP Talk" Sent: Sunday, January 05, 2003 12:42 AM Subject: [nycphp-talk] regarding GD lib > > Hi all, > I have php 4.2.2 on my Win 98. i have included the extension for gd lib, but i am unable to run any of the ex scripts i have downloaded. does any one know how to checf the php.ini and wot exact changes to make to it, to get gd running? > Plz help > Tracy > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From gw.nyphp at gwprogramming.com Sun Jan 5 11:45:26 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Sun, 5 Jan 2003 11:45:26 -0500 (EST) Subject: [nycphp-talk] regarding GD lib Message-ID: <200301051729.MAA12906@gw00.com> Dear Tracy, Here is a basic suggestion: Build a test script that just displays the configuration info: >>> <<< (It's a one-line script.) This will allow you to see if the GD extensions have actually been loaded. Of course you should run this script as a CGI or whatever method you will be running your real script. If the GD stuff is working, it will be listed as "GD Support: enabled" or something like that in this configuration listing. There may be some furthe options with GD that may also be (or not be) listed. If you don't see any references to GD in the phpinfo page, I would suspect your extension DLLs are not in the right place. I have only installed Windows PHP once or twice, but this was always an issue. Perhaps someone else could explain exactly where what needs to go. For some reason, I think you should dump all of the PHP DLL's into one of those Windows system directories . . . which seems ugly, but I think that was recommended and it worked for me. Check the installation documentation. However, did you know that as of PHP version 4.3, GD is bundled with PHP? If you haven't yet got it to work, I would recommend getting up to date, and using the bundled library, rather than getting committed to obsolete GD and PHP versions -- which may cause you trouble when upgrading in the future. You may still have to "install" the bundled GD, but it may be more likely to work out-of-the-box, since it all came from the same package. Oh yeah, once you know PHP is running GD (by seeing "GD" in the phpinfo report, you can move on to troubleshooting real GD-specific issues (if any). Best, George. George Webb gw.nyphp at gwprogramming.com From danielc at analysisandsolutions.com Sun Jan 5 23:59:15 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Sun, 5 Jan 2003 23:59:15 -0500 Subject: [nycphp-talk] regarding GD lib In-Reply-To: <200301050542.h055g8St096290@parsec.nyphp.org> References: <200301050542.h055g8St096290@parsec.nyphp.org> Message-ID: <20030106045915.GA7082@panix.com> On Sun, Jan 05, 2003 at 12:42:08AM -0500, Tracy wrote: > > I have php 4.2.2 on my Win 98. i have included the extension for gd lib, Have you removed the ";" from the beginning of this line in your php.ini file? ;extension=php_gd.dll In the distribution I've got, 4.2.3, this needs to be done in order for things to work right. --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From tfreedma at ubspw.com Mon Jan 6 09:34:23 2003 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Mon, 6 Jan 2003 09:34:23 -0500 Subject: [nycphp-talk] PHP and empty if form value is 0 Message-ID: I ran into this myself. With checkboxes (and radio buttons, I think), the form key and value are only passed to the following page if they are checked off. That is, if Checkbox is checked (and has 'value=1', you will see $Checkbox=1. If Checkbox is not checked, you will see nothing at all, as if Checkbox doesn't exist on the submitted form. So if you are passing checkboxes or radio buttons to a processing page, you really have to check for existence, as well as value. isset(), which Steve pointed out, may work... I go about it differently (I set all of my variables explicitly, instead of in a loop, so I use 'if ($_GET['checkbox']){$checkData = $_GET['checkbox'];}' and such.) -----Original Message----- From: Phil Powell [mailto:soazine at erols.com] Sent: Saturday, January 04, 2003 7:28 PM To: NYPHP Talk Subject: [nycphp-talk] PHP and empty if form value is 0 foreach ($HTTP_GET_VARS as $key => $val) { if (!empty($HTTP_GET_VARS["$key"])) ${"$key"} = $HTTP_GET_VARS["$key"]; } foreach ($HTTP_POST_VARS as $key => $val) { if (!empty($HTTP_POST_VARS["$key"])) ${"$key"} = $HTTP_POST_VARS["$key"]; } Whenever the form variable is equal to 0, the value is not passed into the corresponding variable. For example, if isLogin = 1, then $isLogin = 1 But if isRegistered = 0 then $isRegistered = {null} I do not understand why this happens, someone enlighten me! Phil --- Unsubscribe at http://nyphp.org/list/ --- From ophir at prusak.com Mon Jan 6 10:04:59 2003 From: ophir at prusak.com (Ophir Prusak) Date: Mon, 6 Jan 2003 10:04:59 -0500 Subject: [nycphp-talk] PHP and empty if form value is 0 References: <200301061434.h06EYhSt006433@parsec.nyphp.org> Message-ID: <030701c2b594$fb2f17f0$bf65a8c0@tag1002> I had a similar problem a few years back (like 1996) I remember doing something like this in my form code: // this creates a "default" value for the variable // it MUST come before the checkbox // this is the checkbox I wouldn't really recomend doing it this way since it's just a hack. It depends on the variables being set in the order in which they appear in the URL. You could probably do something using the same idea, but with arrays that would be much better. Ophir ----- Original Message ----- From: "Freedman, Tom S." To: "NYPHP Talk" Sent: Monday, January 06, 2003 9:34 AM Subject: RE: [nycphp-talk] PHP and empty if form value is 0 > I ran into this myself. With checkboxes (and radio buttons, I think), the > form key and value are only passed to the following page if they are checked > off. That is, if Checkbox is checked (and has 'value=1', you will see > $Checkbox=1. If Checkbox is not checked, you will see nothing at all, as if > Checkbox doesn't exist on the submitted form. So if you are passing > checkboxes or radio buttons to a processing page, you really have to check > for existence, as well as value. isset(), which Steve pointed out, may > work... I go about it differently (I set all of my variables explicitly, > instead of in a loop, so I use 'if ($_GET['checkbox']){$checkData = > $_GET['checkbox'];}' and such.) > > -----Original Message----- > From: Phil Powell [mailto:soazine at erols.com] > Sent: Saturday, January 04, 2003 7:28 PM > To: NYPHP Talk > Subject: [nycphp-talk] PHP and empty if form value is 0 > > > foreach ($HTTP_GET_VARS as $key => $val) { > if (!empty($HTTP_GET_VARS["$key"])) ${"$key"} = $HTTP_GET_VARS["$key"]; > } > > foreach ($HTTP_POST_VARS as $key => $val) { > if (!empty($HTTP_POST_VARS["$key"])) ${"$key"} = $HTTP_POST_VARS["$key"]; > } > > Whenever the form variable is equal to 0, the value is not passed into the > corresponding variable. > > For example, if isLogin = 1, then $isLogin = 1 > But if isRegistered = 0 then $isRegistered = {null} > > I do not understand why this happens, someone enlighten me! > > Phil > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From fields at surgam.net Mon Jan 6 10:12:55 2003 From: fields at surgam.net (Adam Fields) Date: Mon, 6 Jan 2003 10:12:55 -0500 Subject: Trouble with sockets Message-ID: <20030106151255.GK12975@eye.surgam.net> I'm working on a php class to post to livejournal programmatically from my other sites, and running into some problems with the socket. class source is below, but the basic problem is that I don't seem to be connecting a valid socket to www.livejournal.com. I thought maybe the post was the problem (the first symptom was I just didn't get anything back), so I changed the request to a simple get of the root. Still nothing. I changed the host to www.yahoo.com, and it worked. I'm able to telnet to port 80 on www.livejournal.com (from the server), and issue the exact same set of commands, and I get a response, but no dice going through the socket from the script. I tried increasing the timeout, but that's clearly not the problem. It looks like it's establishing the socket okay, but then I get no response back. Any idea why this would behave this way? ---------------------------------------- class lj { var $user; var $pass; function lj ($user, $pass) { $this->user = $user; $this->pass = $pass; } function postevent ($msgtext, $subject) { $options = array('mode' => 'postevent', 'user' => $this->user, 'hpassword' => md5($this->pass), 'event' => $msgtext, 'year' => date('Y'), 'mon' => date('n'), 'day' => date('d'), 'hour' => date('H'), 'min' => date('i'), 'subject' => $subject); foreach (array_keys($options) as $key) { $poststring .= $key . '=' . urlencode($options[$key]) . '&'; } $poststring = substr($poststring, 0, strlen($poststring) - 1); $method = 'POST'; $path = '/interface/flat'; $host = 'www.livejournal.com'; $fp = fsockopen($host, 80, $errno, $errstr, 600); if (!$fp) { die ('Unable to connect'); } socket_set_timeout($fp, 600); # fputs($fp, "$method $path HTTP/1.0\ "); # fputs($fp, "Host: $host\ "); # fputs($fp, "Content-type: application/x-www-form-urlencoded\ "); # fputs($fp, "Content-length: " . strlen($poststring) . '\ \ '); # fputs($fp, $poststring); # instead of the above post, try a simple get instead fputs($fp, "GET / HTTP/1.0\ \ "); while (!feof ($fp)) { $response = fgets($fp, 128); print $response; } fclose ($fp); return $response; } } -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From bruce at mtiglobal.com Sun Jan 5 10:25:55 2003 From: bruce at mtiglobal.com (bruce at mtiglobal.com) Date: Sun, 5 Jan 2003 23:25:55 +0800 (CST) Subject: mySQL in Windows In-Reply-To: <200212202028.gBKKSkSt073765@parsec.nyphp.org> References: <200212202028.gBKKSkSt073765@parsec.nyphp.org> Message-ID: <2298.65.112.109.66.1041780355.squirrel@postman.mtiglobal.com> Has anyone ever tried mySQL in a Windows environment? If so, have you had any (or many) problems with it? Designing a small app for a small company and don't want to use Access for the db. From jim at bizcomputinginc.com Mon Jan 6 10:24:42 2003 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Mon, 6 Jan 2003 10:24:42 -0500 Subject: [nycphp-talk] mySQL in Windows References: <200301061517.h06FHtSt006714@parsec.nyphp.org> Message-ID: <00e201c2b597$be0409a0$6501a8c0@Notebook> I've been using mySQL in Windows2000 and WinXP without a hitch. I'm hitting the databases through PHP and Java ( Client/Server App ). I even have Apache & PHP running on these boxes so I can administer the mySQL through phpMyAdmin. Jim ______________________________________________________________ Jim Hendricks, President, Biz Computing, Inc Phone: (201) 599-9380 Email: jim at bizcomputinginc.com Web: www.bizcomputinginc.com Snail: Jim Hendricks, Biz Computing, Inc., 255 McKinley Ave, New Milford, NJ 07646 ______________________________________________________________ ----- Original Message ----- From: To: "NYPHP Talk" Sent: Monday, January 06, 2003 10:17 AM Subject: [nycphp-talk] mySQL in Windows > Has anyone ever tried mySQL in a Windows environment? If so, have you had > any (or many) problems with it? > > Designing a small app for a small company and don't want to use Access for > the db. > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > > From fields at surgam.net Mon Jan 6 10:34:44 2003 From: fields at surgam.net (Adam Fields) Date: Mon, 6 Jan 2003 10:34:44 -0500 Subject: [nycphp-talk] Trouble with sockets In-Reply-To: <200301061513.h06FD9St006683@parsec.nyphp.org> References: <200301061513.h06FD9St006683@parsec.nyphp.org> Message-ID: <20030106153444.GL12975@eye.surgam.net> On Mon, Jan 06, 2003 at 10:13:04AM -0500, Adam Fields wrote: > I'm working on a php class to post to livejournal programmatically > from my other sites, and running into some problems with the socket. Never mind - I figured it out. Their server needs \\r\ instead of \ . -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From gw.nyphp at gwprogramming.com Mon Jan 6 10:45:44 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Mon, 6 Jan 2003 10:45:44 -0500 (EST) Subject: [nycphp-talk] Trouble with sockets Message-ID: <200301061545.KAA13658@gw00.com> Hi Adam. Two ideas: 1/ try CRLF's instead of just LF's after the HTTP GET (i.e. \\r\ \\r\ ) 2/ use fopen() instead of fsockopen ... you can use a URL as the arg, and if you need username/password, you might be able to do $fp = fopen ( 'http://joe:pass at example.org/path.cgi' ); or something like that...? Best, George. George Webb gw.nyphp at gwprogramming.com From fields at surgam.net Mon Jan 6 13:16:17 2003 From: fields at surgam.net (Adam Fields) Date: Mon, 6 Jan 2003 13:16:17 -0500 Subject: Livejournal posting Message-ID: <20030106181617.GP12975@eye.surgam.net> I got my lj class working for basic posting. The source is here: http://www.someoftheanswers.com/lj.phps -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From ejp at well.com Mon Jan 6 13:28:19 2003 From: ejp at well.com (Edward Potter) Date: Mon, 6 Jan 2003 13:28:19 -0500 Subject: Best pick for community/BB php based application? Message-ID: This question comes up every few months, figure I'd get the latest scoop. Your favorite PHP solution for a Community/Bulletin Board based site? thanks -- ed From fields at surgam.net Mon Jan 6 13:28:58 2003 From: fields at surgam.net (Adam Fields) Date: Mon, 6 Jan 2003 13:28:58 -0500 Subject: [nycphp-talk] Livejournal posting In-Reply-To: <200301061816.h06IGQSt007672@parsec.nyphp.org> References: <200301061816.h06IGQSt007672@parsec.nyphp.org> Message-ID: <20030106182858.GS12975@eye.surgam.net> On Mon, Jan 06, 2003 at 01:16:26PM -0500, Adam Fields wrote: > I got my lj class working for basic posting. > > The source is here: > > http://www.someoftheanswers.com/lj.phps Or, more appropriately: http://www.livejournal.com/talkpost.bml?journal=fieldsnyc&itemid=3724 -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From mike at hilliardfarber.com Mon Jan 6 13:34:54 2003 From: mike at hilliardfarber.com (Michael J Lee) Date: Mon, 6 Jan 2003 13:34:54 -0500 Subject: [nycphp-talk] Best pick for community/BB php based application? In-Reply-To: <200301061828.h06ISgSt007742@parsec.nyphp.org> Message-ID: I use phpBB: http://www.phpbb.com and it's pretty easy to set up and use. Mike -----Original Message----- From: Edward Potter [mailto:ejp at well.com] Sent: Monday, January 06, 2003 1:29 PM To: NYPHP Talk Subject: [nycphp-talk] Best pick for community/BB php based application? This question comes up every few months, figure I'd get the latest scoop. Your favorite PHP solution for a Community/Bulletin Board based site? thanks -- ed --- Unsubscribe at http://nyphp.org/list/ --- From sterling at bumblebury.com Mon Jan 6 13:41:00 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: Mon, 6 Jan 2003 13:41:00 -0500 Subject: [nycphp-talk] Livejournal posting In-Reply-To: <200301061816.h06IGQSt007672@parsec.nyphp.org> References: <200301061816.h06IGQSt007672@parsec.nyphp.org> Message-ID: <20030106184100.GH11501@bumblebury.com> > I got my lj class working for basic posting. > > The source is here: > > http://www.someoftheanswers.com/lj.phps > nice. you might want to consider using the cURL library and php/curl extension to do this. It'll cut down on the code size, and greatly improve the speed of your code (php/curl is about 4-5x faster than a custom rolled solution, in most cases). At the least, it might be nice to provide cURL as an option, with the default being fsockopen(). Also, this class, were it slightly modified looks like a good addition to the PEAR project, http://pear.php.net/, would you be interested in contributing? -Sterling > -- > - Adam > > ----- > Adam Fields, Managing Partner, fields at surgam.net > Surgam, Inc. is a technology consulting firm with strong background in > delivering scalable and robust enterprise web and IT applications. > http://www.adamfields.com > > > --- Unsubscribe at http://nyphp.org/list/ --- > From nsr81 at ny-tech.net Mon Jan 6 13:43:41 2003 From: nsr81 at ny-tech.net (Nasir Zubair) Date: Mon, 6 Jan 2003 13:43:41 -0500 Subject: [nycphp-talk] Best pick for community/BB php based application? In-Reply-To: <200301061828.h06ISgSt007742@parsec.nyphp.org> Message-ID: <000001c2b5b3$8bc14db0$6401a8c0@nyt001> Hi ed, If you have budget, you should go with vBulletin. It is commercial, but the best one out there. I manage three vB based communities and can't say it wasn't worth it. If you need a free one, you can either go with phpBB2 or Invision Boards. vBulletin: www.vbulletin.com phpBB2: www.phpbb.com Invision: http://www.invisionboard.com/ Regards, Nasir Zubair -----Original Message----- From: Edward Potter [mailto:ejp at well.com] Sent: Monday, January 06, 2003 1:29 PM To: NYPHP Talk Subject: [nycphp-talk] Best pick for community/BB php based application? This question comes up every few months, figure I'd get the latest scoop. Your favorite PHP solution for a Community/Bulletin Board based site? thanks -- ed --- Unsubscribe at http://nyphp.org/list/ --- From danielc at analysisandsolutions.com Mon Jan 6 13:45:22 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Mon, 6 Jan 2003 13:45:22 -0500 Subject: [nycphp-talk] mySQL in Windows In-Reply-To: <200301061517.h06FHtSt006714@parsec.nyphp.org> References: <200301061517.h06FHtSt006714@parsec.nyphp.org> Message-ID: <20030106184520.GA2638@panix.com> On Mon, Jan 06, 2003 at 10:17:55AM -0500, bruce at mtiglobal.com wrote: > Has anyone ever tried mySQL in a Windows environment? If so, have you had > any (or many) problems with it? I use it for all of my new projects on NT 4. I've got a great tutorial for MySQL on Windows at http://www.analysisandsolutions.com/code/mybasic.htm --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From steven at sohh.com Mon Jan 6 13:48:04 2003 From: steven at sohh.com (Steven Samuel) Date: Mon, 6 Jan 2003 13:48:04 -0500 Subject: [nycphp-talk] Best pick for community/BB php based application? In-Reply-To: <200301061828.h06ISgSt007742@parsec.nyphp.org> Message-ID: Pay For: vBulletin (hands-down) Free : phpBB Steven -----Original Message----- From: Edward Potter [mailto:ejp at well.com] Sent: Monday, January 06, 2003 1:29 PM To: NYPHP Talk Subject: [nycphp-talk] Best pick for community/BB php based application? This question comes up every few months, figure I'd get the latest scoop. Your favorite PHP solution for a Community/Bulletin Board based site? thanks -- ed --- Unsubscribe at http://nyphp.org/list/ --- From emm at scriptdigital.com Mon Jan 6 14:56:15 2003 From: emm at scriptdigital.com (Emmanuel. M. Decarie) Date: Mon, 06 Jan 2003 14:56:15 -0500 Subject: Localization with PHP on evolt.org Message-ID: Hello, My article: Simple Localization with PHP is now also published on evolt.org. Cheers -Emmanuel -- ______________________________________________________________________ Emmanuel D?carie / Programmation pour le Web - Programming for the Web Frontier - Perl - PHP - Javascript - XML From MLynn at exchange.ml.com Mon Jan 6 15:03:39 2003 From: MLynn at exchange.ml.com (Lynn, Michael (DCS)) Date: Mon, 6 Jan 2003 15:03:39 -0500 Subject: [nycphp-talk] Best pick for community/BB php based application ? Message-ID: <8FA07D8665A9D511B80E00B0D068A1510293AB89@ehope16.hew.us.ml.com> Not sure if anybodies seen this yet... Maybe it will help: It let's you test drive without the setup headaches. http://www.opensourcecms.com/ I use have used php-nuke, postnuke and now I use geeklog (not specifically for forums/bb but for community sites. Regards, Mike -----Original Message----- From: Michael J Lee [mailto:mike at hilliardfarber.com] Sent: Monday, January 06, 2003 1:40 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Best pick for community/BB php based application? I use phpBB: http://www.phpbb.com and it's pretty easy to set up and use. Mike -----Original Message----- From: Edward Potter [mailto:ejp at well.com] Sent: Monday, January 06, 2003 1:29 PM To: NYPHP Talk Subject: [nycphp-talk] Best pick for community/BB php based application? This question comes up every few months, figure I'd get the latest scoop. Your favorite PHP solution for a Community/Bulletin Board based site? thanks -- ed --- Unsubscribe at http://nyphp.org/list/ --- From anthonybol2 at netscape.net Mon Jan 6 15:29:27 2003 From: anthonybol2 at netscape.net (Tony) Date: Mon, 06 Jan 2003 15:29:27 -0500 Subject: [nycphp-talk] PHP and empty if form value is 0 References: <200301061434.h06EYhSt006433@parsec.nyphp.org> Message-ID: <3E19E727.9020106@netscape.net> I am using GBSurvey (http://www.geniusbug.com/) to create a survey for teachers at a school. The application only allows for radio buttons in the surveys. The school wants some questions to have checkboxes so responders can select multiple answers for the question. I rewrote the code to allow the admin to select if the answers to a survey question will be radio buttons or checkboxes. That displays properly. When I test it with multiple check boxes selected in one of the questions only the value of the last checkbox selected is entered into the database. I confirmed this by printing the $_POST variables and only the last checkbox selected is being sent to the script. If anyone can offer some help, I would be very appreciative. Here is the code: Explaination of VARS for this example ------------------ $survey_id = The id of the survey DB Field Definitions ------------------ surveya_type = Radio or Checkbox surveyq_id = The question id in the database surveya_id = The answer id in the database surveya_name = The answer itself ------------------ This is the code to create the questions: ------------------ function list_surveyq($survey_id) { echo "View results without taking the survey

\ "; $strSQL = "SELECT * From bug_public_survey WHERE survey_id=".$survey_id; $query1 = mysql_query($strSQL,$GLOBALS["dbconn"]); $survey = mysql_fetch_array($query1); echo "

\ "; echo "\ "; echo "\ "; //Get all the questions $strSQL = "SELECT * From bug_public_surveyq WHERE surveyq_surveyid=".$survey["survey_id"]." ORDER By surveyq_id"; $query2 = mysql_query($strSQL,$GLOBALS["dbconn"]); while($surveyq = mysql_fetch_array($query2)) { //Get all the answers echo "".$surveyq["surveyq_name"]."
\ "; $strSQL = "SELECT * From bug_public_surveya WHERE surveya_surveyqid=".$surveyq["surveyq_id"]; $query3 = mysql_query($strSQL,$GLOBALS["dbconn"]); echo "
    \ "; while($surveya = mysql_fetch_array($query3)) { // //THIS IS WHERE THE ANSWERS ARE PRINTED //print radio button or checkbox and answer title for each question // echo " ".$surveya["surveya_name"]."
    \ "; //original code -> echo " ".$surveya["surveya_name"]."
    \ "; } echo "
\ "; } echo "\ "; echo "
\ "; ------------------ When the form is submitted, this is the SQL that is executed. The value of $votes is set to 1. The page will reload and check to see if $votes is set. ------------------- if (isset($votes)) { $strSQL = "SELECT * From bug_public_surveyq WHERE surveyq_surveyid=".$survey_id; $query = mysql_query($strSQL,$GLOBALS["dbconn"]); while($surveyq = mysql_fetch_array($query)) { $strSQL = "INSERT INTO bug_public_surveyr (surveyr_surveyid, surveyr_surveyaid, surveyr_surveyqid) VALUES (".$survey_id.", ".$answer[$surveyq["surveyq_id"]].", ".$surveyq["surveyq_id"].")"; echo $strSQL; mysql_query($strSQL,$dbconn); } mysql_free_result($query); } ------------------- The name of each checkbox is the same answer[id#] but the values are different. Do both the name and values have to be different? When it is inserted into the DB it shouldn't matter since the record would not be a duplicate. Thanks again! Tony Bollino Freedman, Tom S. wrote: >I ran into this myself. With checkboxes (and radio buttons, I think), the >form key and value are only passed to the following page if they are checked >off. That is, if Checkbox is checked (and has 'value=1', you will see >$Checkbox=1. If Checkbox is not checked, you will see nothing at all, as if >Checkbox doesn't exist on the submitted form. So if you are passing >checkboxes or radio buttons to a processing page, you really have to check >for existence, as well as value. isset(), which Steve pointed out, may >work... I go about it differently (I set all of my variables explicitly, >instead of in a loop, so I use 'if ($_GET['checkbox']){$checkData = >$_GET['checkbox'];}' and such.) > >-----Original Message----- >From: Phil Powell [mailto:soazine at erols.com] >Sent: Saturday, January 04, 2003 7:28 PM >To: NYPHP Talk >Subject: [nycphp-talk] PHP and empty if form value is 0 > > >foreach ($HTTP_GET_VARS as $key => $val) { > if (!empty($HTTP_GET_VARS["$key"])) ${"$key"} = $HTTP_GET_VARS["$key"]; > } > > foreach ($HTTP_POST_VARS as $key => $val) { > if (!empty($HTTP_POST_VARS["$key"])) ${"$key"} = $HTTP_POST_VARS["$key"]; > } > >Whenever the form variable is equal to 0, the value is not passed into the >corresponding variable. > >For example, if isLogin = 1, then $isLogin = 1 >But if isRegistered = 0 then $isRegistered = {null} > >I do not understand why this happens, someone enlighten me! > >Phil > > > > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > -- Tony Bollino AdytumSolutions Sales and Field Operations 301-788-6886 http://www.adytumsolutions.com tony at adytumsolutions.com ************************************************ * "Not just a solution ... an AdytumSolution." * ************************************************ From fields at surgam.net Mon Jan 6 15:57:17 2003 From: fields at surgam.net (Adam Fields) Date: Mon, 6 Jan 2003 15:57:17 -0500 Subject: [nycphp-talk] Livejournal posting In-Reply-To: <200301061842.h06IfnSt014636@parsec.nyphp.org> References: <200301061842.h06IfnSt014636@parsec.nyphp.org> Message-ID: <20030106205717.GB12975@eye.surgam.net> On Mon, Jan 06, 2003 at 01:41:44PM -0500, Sterling Hughes wrote: > > I got my lj class working for basic posting. > > > > The source is here: > > > > http://www.someoftheanswers.com/lj.phps > > > > > nice. you might want to consider using the cURL library and php/curl > extension to do this. It'll cut down on the code size, and greatly improve > the speed of your code (php/curl is about 4-5x faster than a custom rolled > solution, in most cases). At the least, it might be nice to provide cURL > as an option, with the default being fsockopen(). Ack. Gotta rebuild my php for that. Maybe, but not today... > Also, this class, were it slightly modified looks like a good addition to > the PEAR project, http://pear.php.net/, would you be interested in contributing? Sure. Seems like the coding standards are pretty reasonable. Are you involved in this, or is this just a suggestion? -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From agfische at email.smith.edu Mon Jan 6 16:31:21 2003 From: agfische at email.smith.edu (Aaron Fischer) Date: Mon, 06 Jan 2003 16:31:21 -0500 Subject: [nycphp-talk] Best pick for community/BB php based application? Message-ID: Does anyone have live sites going that are using phpBB or vBulletin? I would love to take a look at them, as I am looking to set up discussion boards as well. Thanks! Aaron >>> steven at sohh.com 01/06/03 02:35PM >>> Pay For: vBulletin (hands-down) Free : phpBB Steven -----Original Message----- From: Edward Potter [mailto:ejp at well.com] Sent: Monday, January 06, 2003 1:29 PM To: NYPHP Talk Subject: [nycphp-talk] Best pick for community/BB php based application? This question comes up every few months, figure I'd get the latest scoop. Your favorite PHP solution for a Community/Bulletin Board based site? thanks -- ed --- Unsubscribe at http://nyphp.org/list/ --- -------------- next part -------------- An HTML attachment was scrubbed... URL: From sterling at bumblebury.com Mon Jan 6 16:33:51 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: Mon, 6 Jan 2003 16:33:51 -0500 Subject: [nycphp-talk] Livejournal posting In-Reply-To: <200301062057.h06KvQSt015552@parsec.nyphp.org> References: <200301062057.h06KvQSt015552@parsec.nyphp.org> Message-ID: <20030106213351.GB25190@bumblebury.com> > On Mon, Jan 06, 2003 at 01:41:44PM -0500, Sterling Hughes wrote: > > > I got my lj class working for basic posting. > > > > > > The source is here: > > > > > > http://www.someoftheanswers.com/lj.phps > > > > > > > > > nice. you might want to consider using the cURL library and php/curl > > extension to do this. It'll cut down on the code size, and greatly improve > > the speed of your code (php/curl is about 4-5x faster than a custom rolled > > solution, in most cases). At the least, it might be nice to provide cURL > > as an option, with the default being fsockopen(). > > Ack. Gotta rebuild my php for that. Maybe, but not today... > :-) > > Also, this class, were it slightly modified looks like a good addition to > > the PEAR project, http://pear.php.net/, would you be interested in contributing? > > Sure. Seems like the coding standards are pretty reasonable. Are you > involved in this, or is this just a suggestion? > A little, not much lately, but I can give you an account. What I would do, is send your class proposal to pear-dev at lists.php.net, and apply for a PEAR account at http://pear.php.net/account-request.php. Once you have your class approved (it should be easy, mostly it will be deciding a namespace, and coding style), then you can upload it to PEAR. -Sterling > -- > - Adam > > ----- > Adam Fields, Managing Partner, fields at surgam.net > Surgam, Inc. is a technology consulting firm with strong background in > delivering scalable and robust enterprise web and IT applications. > http://www.adamfields.com > > > --- Unsubscribe at http://nyphp.org/list/ --- > From LarryC at indexstock.com Mon Jan 6 16:47:06 2003 From: LarryC at indexstock.com (Larry Chuon) Date: Mon, 6 Jan 2003 16:47:06 -0500 Subject: [nycphp-talk] Best pick for community/BB php based application ? Message-ID: <86713EAB93BD5F40B94A0C8E604C7C91AEBA22@index-exchange.indexstock.com> Check www.ossuite.org/phpbb -----Original Message----- From: Aaron Fischer [mailto:agfische at email.smith.edu] Sent: Monday, January 06, 2003 4:32 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Best pick for community/BB php based application? Does anyone have live sites going that are using phpBB or vBulletin? I would love to take a look at them, as I am looking to set up discussion boards as well. Thanks! Aaron >>> steven at sohh.com 01/06/03 02:35PM >>> Pay For: vBulletin (hands-down) Free : phpBB Steven -----Original Message----- From: Edward Potter [mailto:ejp at well.com] Sent: Monday, January 06, 2003 1:29 PM To: NYPHP Talk Subject: [nycphp-talk] Best pick for community/BB php based application? This question comes up every few months, figure I'd get the latest scoop. Your favorite PHP solution for a Community/Bulletin Board based site? thanks -- ed --- Unsubscribe at http://nyphp.org/list/ --- From mike at hilliardfarber.com Mon Jan 6 16:48:59 2003 From: mike at hilliardfarber.com (Michael J Lee) Date: Mon, 6 Jan 2003 16:48:59 -0500 Subject: [nycphp-talk] Best pick for community/BB php based application? In-Reply-To: <200301062131.h06LVYSt015738@parsec.nyphp.org> Message-ID: I've got a phpbb one at http://www.koreanyouth.com/bb/ noting too fancy - haven't really started customizing it yet either Mike -----Original Message----- From: Aaron Fischer [mailto:agfische at email.smith.edu] Sent: Monday, January 06, 2003 4:32 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Best pick for community/BB php based application? Does anyone have live sites going that are using phpBB or vBulletin? I would love to take a look at them, as I am looking to set up discussion boards as well. Thanks! Aaron >>> steven at sohh.com 01/06/03 02:35PM >>> Pay For: vBulletin (hands-down) Free : phpBB Steven -----Original Message----- From: Edward Potter [mailto:ejp at well.com] Sent: Monday, January 06, 2003 1:29 PM To: NYPHP Talk Subject: [nycphp-talk] Best pick for community/BB php based application? This question comes up every few months, figure I'd get the latest scoop. Your favorite PHP solution for a Community/Bulletin Board based site? thanks -- ed --- Unsubscribe at http://nyphp.org/list/ --- From Arno.Vanmosel at wwecorp.com Mon Jan 6 17:16:11 2003 From: Arno.Vanmosel at wwecorp.com (Vanmosel, Arno ) Date: Mon, 6 Jan 2003 17:16:11 -0500 Subject: [nycphp-talk] Best pick for community/BB php based application ? Message-ID: <7101D732D17CD311AEFF00508B55857203F72B0F@nt-exch-tower2> I'm using PHPBB on one of the sites I run, but I'm taking it down soon due to a new design. I'm currently are working on a new project named LDU (Land Down Under). It is a slick piece of software. Old site using PHPBB -> http://www.iqsquad.com New site using LDU (not live/under construction) -> http://www.iqsquad.com/index.php Arno -----Original Message----- From: Aaron Fischer [mailto:agfische at email.smith.edu] Sent: Monday, January 06, 2003 4:32 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Best pick for community/BB php based application? Does anyone have live sites going that are using phpBB or vBulletin? I would love to take a look at them, as I am looking to set up discussion boards as well. Thanks! Aaron >>> steven at sohh.com 01/06/03 02:35PM >>> Pay For: vBulletin (hands-down) Free : phpBB Steven -----Original Message----- From: Edward Potter [mailto:ejp at well.com] Sent: Monday, January 06, 2003 1:29 PM To: NYPHP Talk Subject: [nycphp-talk] Best pick for community/BB php based application? This question comes up every few months, figure I'd get the latest scoop. Your favorite PHP solution for a Community/Bulletin Board based site? thanks -- ed --- Unsubscribe at http://nyphp.org/list/ --- -------------- next part -------------- An HTML attachment was scrubbed... URL: From nsr81 at ny-tech.net Mon Jan 6 17:19:41 2003 From: nsr81 at ny-tech.net (Nasir Zubair) Date: Mon, 6 Jan 2003 17:19:41 -0500 Subject: [nycphp-talk] Best pick for community/BB php based application? In-Reply-To: <200301062131.h06LVYSt015738@parsec.nyphp.org> Message-ID: <000001c2b5d1$b6ec0a70$6401a8c0@nyt001> Some vB sites: http://forum.100megswebhosting.com/ http://www.webdesignforums.net http://www.sitepointforums.com -----Original Message----- From: Aaron Fischer [mailto:agfische at email.smith.edu] Sent: Monday, January 06, 2003 4:32 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Best pick for community/BB php based application? Does anyone have live sites going that are using phpBB or vBulletin? I would love to take a look at them, as I am looking to set up discussion boards as well. Thanks! Aaron >>> steven at sohh.com 01/06/03 02:35PM >>> Pay For: vBulletin (hands-down) Free : phpBB Steven -----Original Message----- From: Edward Potter [mailto:ejp at well.com] Sent: Monday, January 06, 2003 1:29 PM To: NYPHP Talk Subject: [nycphp-talk] Best pick for community/BB php based application? This question comes up every few months, figure I'd get the latest scoop. Your favorite PHP solution for a Community/Bulletin Board based site? thanks -- ed --- Unsubscribe at http://nyphp.org/list/ --- From shawn at shawnlawyer.com Mon Jan 6 21:06:28 2003 From: shawn at shawnlawyer.com (Shawn Lawyer) Date: Mon, 6 Jan 2003 21:06:28 -0500 Subject: [nycphp-talk] Best pick for community/BB php based application? References: <200301062219.h06MJnSt016040@parsec.nyphp.org> Message-ID: <000d01c2b5f1$a2820150$0200a8c0@Della> Hello All I haven't been online in days while visiting my old home. http://www.sugarbeats.com/ http://www.totallystupid.com both of these sites us phpBB Shawn From nyphp at websapp.com Tue Jan 7 10:58:36 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Tue, 7 Jan 2003 10:58:36 -0500 Subject: Open Source Help Desk Application Message-ID: Hi Group, If anyone has recommendations on the above, I would be interested to hear. A needed feature would be ticket creation using email! Please CC your response to charles at oddcast.com (a colleague of mine). Thanks. Daniel Kushner Vice President New York PHP http://nyphp.org daniel at nyphp.org From nyphp at altunergil.com Tue Jan 7 12:39:37 2003 From: nyphp at altunergil.com (Oktay Altunergil) Date: Tue, 7 Jan 2003 12:39:37 -0500 Subject: [nycphp-talk] Open Source Help Desk Application In-Reply-To: <200301071601.h07G1pSt021450@parsec.nyphp.org> References: <200301071601.h07G1pSt021450@parsec.nyphp.org> Message-ID: <20030107123937.46da17f8.nyphp@altunergil.com> http://perldesk.org/ is the defacto standard for small/medium hosting companies. There's also Request Tracker which is much bigger and more feature rich. http://www.bestpractical.com/ Both are written in perl and are web based. oktay On Tue, 07 Jan 2003 11:01:51 -0500 Daniel Kushner wrote: > Hi Group, > > If anyone has recommendations on the above, I would be interested to hear. A > needed feature would be ticket creation using email! > Please CC your response to charles at oddcast.com (a colleague of mine). > > Thanks. > > Daniel Kushner > Vice President > New York PHP > http://nyphp.org > daniel at nyphp.org > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From mz34 at nyu.edu Tue Jan 7 16:17:25 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Tue, 7 Jan 2003 16:17:25 -0500 Subject: Installing PHP on Mac OS X Server In-Reply-To: <200205151319.g4FDJPR03806@slipdisc.virul.net> Message-ID: <6B1605BE-2285-11D7-8BF4-00039344DCA8@nyu.edu> Hi gang, Got a new Mac X Serv and am installing MySQL and PHP. I use the downloads and instructions from www.entropy.ch. Always had success with these, but I am having a problem I haven't had before. I follow all of Marcs instructions then type the final command: sudo apachectl graceful I get an error /usr/bin/apachectl graceful: configuration broken, ignoring restart /usr/bin/apachectl graceful: (run 'apacectl configtest' for details) when I run the configtest I get the message syntax error on line 369 of /etc/httpd/httd.conf Cannot add module via name 'mod.php4.c': not in list of loaded modules. I will of course open up the config file and look at it, but I thought if someone had come across this problem before they could tell me what the fix is. matt From LarryC at indexstock.com Tue Jan 7 16:29:09 2003 From: LarryC at indexstock.com (Larry Chuon) Date: Tue, 7 Jan 2003 16:29:09 -0500 Subject: [nycphp-talk] Installing PHP on Mac OS X Server Message-ID: <86713EAB93BD5F40B94A0C8E604C7C91AEBA43@index-exchange.indexstock.com> At the bottom of this post (http://www.ossuite.org/phpbb/viewtopic.php?t=29), it has a specific on OSX. It might have the answer to your problem in regard to httpd.conf. Did you do this? on Mac OS X: vi /etc/httpd/httpd.conf Find the following and make sure it is in this order: DirectoryIndex default.php index.php index.htm index.html -----Original Message----- From: Matthew Zimmerman [mailto:mz34 at nyu.edu] Sent: Tuesday, January 07, 2003 4:18 PM To: NYPHP Talk Subject: [nycphp-talk] Installing PHP on Mac OS X Server Hi gang, Got a new Mac X Serv and am installing MySQL and PHP. I use the downloads and instructions from www.entropy.ch. Always had success with these, but I am having a problem I haven't had before. I follow all of Marcs instructions then type the final command: sudo apachectl graceful I get an error /usr/bin/apachectl graceful: configuration broken, ignoring restart /usr/bin/apachectl graceful: (run 'apacectl configtest' for details) when I run the configtest I get the message syntax error on line 369 of /etc/httpd/httd.conf Cannot add module via name 'mod.php4.c': not in list of loaded modules. I will of course open up the config file and look at it, but I thought if someone had come across this problem before they could tell me what the fix is. matt --- Unsubscribe at http://nyphp.org/list/ --- From bradley at bestweb.net Tue Jan 7 16:54:37 2003 From: bradley at bestweb.net (Bradley Baumann) Date: Tue, 7 Jan 2003 16:54:37 -0500 Subject: [nycphp-talk] Installing PHP on Mac OS X Server References: <200301072129.h07LTHSt023044@parsec.nyphp.org> Message-ID: <002401c2b697$5f96f200$0300a8c0@prophxp> Matt, I highly doubt that it is in the order matters... if apache is giving an error because it can't load PHP it's probably something because you forgot to do something, or something isn't in there right... Check this step of the PHP installation with Apache out : ---------------------------------------------------------------------- 14. Edit your httpd.conf or srm.conf file and check that these lines are present and not commented out: AddType application/x-httpd-php .php LoadModule php4_module libexec/libphp4.so You can choose any extension you wish here. .php is simply the one we suggest. You can even include .html, and .php3 can be added for backwards compatibility. The path on the right hand side of the LoadModule statement must point to the path of the PHP module on your system. The above statement is correct for the steps shown above. ------------------------------------------------------------------------ Full Text: http://www.php.net/manual/en/install.apache.php Hope that helps. -Bradley ----- Original Message ----- From: "Larry Chuon" To: "NYPHP Talk" Sent: Tuesday, January 07, 2003 4:29 PM Subject: RE: [nycphp-talk] Installing PHP on Mac OS X Server > At the bottom of this post > (http://www.ossuite.org/phpbb/viewtopic.php?t=29), it has a specific on OSX. > It might have the answer to your problem in regard to httpd.conf. > > Did you do this? > > on Mac OS X: > > vi /etc/httpd/httpd.conf > > Find the following and make sure it is in this order: > > > DirectoryIndex default.php index.php index.htm index.html > > > -----Original Message----- > From: Matthew Zimmerman [mailto:mz34 at nyu.edu] > Sent: Tuesday, January 07, 2003 4:18 PM > To: NYPHP Talk > Subject: [nycphp-talk] Installing PHP on Mac OS X Server > > Hi gang, > > Got a new Mac X Serv and am installing MySQL and PHP. > > I use the downloads and instructions from www.entropy.ch. Always had > success with these, but I am having a problem I haven't had before. > > I follow all of Marcs instructions then type the final command: > > sudo apachectl graceful > > I get an error > > /usr/bin/apachectl graceful: configuration broken, ignoring restart > /usr/bin/apachectl graceful: (run 'apacectl configtest' for details) > > > when I run the configtest I get the message > > syntax error on line 369 of /etc/httpd/httd.conf > Cannot add module via name 'mod.php4.c': not in list of loaded modules. > > > I will of course open up the config file and look at it, but I thought > if someone had come across this problem before they could tell me what > the fix is. > > matt > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From mz34 at nyu.edu Tue Jan 7 17:14:09 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Tue, 7 Jan 2003 17:14:09 -0500 Subject: [nycphp-talk] Installing PHP on Mac OS X Server In-Reply-To: <200301072151.h07LpqSt023187@parsec.nyphp.org> Message-ID: <5847ABAA-228D-11D7-8BF4-00039344DCA8@nyu.edu> Yeah, I figure that too Bradely. I replace the httpd.conf with the backup config file and stared from scratch again, three times, and I keep getting the same error. Like I said, I also go to Marc's site a lot and do the same exact thing and it always works so I cant' for life figure out what I did wrong. This is my first time doing it on OS X server though. I have just done it on OS X before. I know OS X server ships with PHP installed, but I wanted the full version. Matt On Tuesday, January 7, 2003, at 04:51 PM, Bradley Baumann wrote: > Matt, > I highly doubt that it is in the order matters... if apache is > giving an > error because it can't load PHP it's probably something because you > forgot > to do something, or something isn't in there right... > Check this step of the PHP installation with Apache out : > ---------------------------------------------------------------------- > > 14. Edit your httpd.conf or srm.conf file and check that these lines > are > present and not commented out: > > AddType application/x-httpd-php .php > > LoadModule php4_module libexec/libphp4.so > > You can choose any extension you wish here. .php is simply the one > we suggest. You can even include .html, and .php3 can be added for > backwards compatibility. > > The path on the right hand side of the LoadModule statement must > point > to the path of the PHP module on your system. The above statement is > correct for the steps shown above. > ----------------------------------------------------------------------- > - > Full Text: http://www.php.net/manual/en/install.apache.php > > Hope that helps. > -Bradley > > > > > ----- Original Message ----- > From: "Larry Chuon" > To: "NYPHP Talk" > Sent: Tuesday, January 07, 2003 4:29 PM > Subject: RE: [nycphp-talk] Installing PHP on Mac OS X Server > > >> At the bottom of this post >> (http://www.ossuite.org/phpbb/viewtopic.php?t=29), it has a specific >> on > OSX. >> It might have the answer to your problem in regard to httpd.conf. >> >> Did you do this? >> >> on Mac OS X: >> >> vi /etc/httpd/httpd.conf >> >> Find the following and make sure it is in this order: >> >> >> DirectoryIndex default.php index.php index.htm index.html >> >> >> -----Original Message----- >> From: Matthew Zimmerman [mailto:mz34 at nyu.edu] >> Sent: Tuesday, January 07, 2003 4:18 PM >> To: NYPHP Talk >> Subject: [nycphp-talk] Installing PHP on Mac OS X Server >> >> Hi gang, >> >> Got a new Mac X Serv and am installing MySQL and PHP. >> >> I use the downloads and instructions from www.entropy.ch. Always had >> success with these, but I am having a problem I haven't had before. >> >> I follow all of Marcs instructions then type the final command: >> >> sudo apachectl graceful >> >> I get an error >> >> /usr/bin/apachectl graceful: configuration broken, ignoring restart >> /usr/bin/apachectl graceful: (run 'apacectl configtest' for details) >> >> >> when I run the configtest I get the message >> >> syntax error on line 369 of /etc/httpd/httd.conf >> Cannot add module via name 'mod.php4.c': not in list of loaded >> modules. >> >> >> I will of course open up the config file and look at it, but I thought >> if someone had come across this problem before they could tell me what >> the fix is. >> >> matt >> >> >> >> >> >> >> >> >> > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > MZ _________________ Matthew Zimmerman Humanities Computing Group, NYU Tel: 212.998.3038 Fax: 212.995.4120 From JMKing at ipro.org Tue Jan 7 17:25:22 2003 From: JMKing at ipro.org (Jaz-Michael King) Date: Tue, 07 Jan 2003 17:25:22 -0500 Subject: [nycphp-talk] Best pick for community/BB php based application ? Message-ID: We use Sitellite from www.simian.ca Not exactly feature rich, at least, not festooned with modules, but very usable, very clean and very versatile. jaz ****************************** Jaz-Michael King Online Services Manager IPRO http://ipro.org ****************************** >>> MLynn at exchange.ml.com 01/06/03 03:03PM >>> Not sure if anybodies seen this yet... Maybe it will help: It let's you test drive without the setup headaches. http://www.opensourcecms.com/ I use have used php-nuke, postnuke and now I use geeklog (not specifically for forums/bb but for community sites. Regards, Mike -----Original Message----- From: Michael J Lee [mailto:mike at hilliardfarber.com] Sent: Monday, January 06, 2003 1:40 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Best pick for community/BB php based application? I use phpBB: http://www.phpbb.com and it's pretty easy to set up and use. Mike -----Original Message----- From: Edward Potter [mailto:ejp at well.com] Sent: Monday, January 06, 2003 1:29 PM To: NYPHP Talk Subject: [nycphp-talk] Best pick for community/BB php based application? This question comes up every few months, figure I'd get the latest scoop. Your favorite PHP solution for a Community/Bulletin Board based site? thanks -- ed --- Unsubscribe at http://nyphp.org/list/ --- From hans at nyphp.org Tue Jan 7 17:38:27 2003 From: hans at nyphp.org (Hans Zaunere) Date: Tue, 7 Jan 2003 14:38:27 -0800 (PST) Subject: [nycphp-talk] Message arrived In-Reply-To: <200301072215.h07MFJSt023417@parsec.nyphp.org> Message-ID: <20030107223827.676.qmail@web12804.mail.yahoo.com> I don't know what this guy was doing, but whatever it was, he's not doing it on this list anymore. Sorry folks, Hans --- dporcher wrote: > Message arrived > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From tech_learner at yahoo.com Wed Jan 8 08:18:47 2003 From: tech_learner at yahoo.com (Tracy) Date: Wed, 8 Jan 2003 05:18:47 -0800 (PST) Subject: help In-Reply-To: <20030107185514.M43414@www.artistboost.com> Message-ID: <20030108131847.4434.qmail@web14311.mail.yahoo.com> Hi, I am tring to sort the table that shows the contents in my user table. i haev been able to sort on the basis of age and gender. i have tried for name but if i use the persent syntax, i get only their first names meaning the title (MR. or MRS or MS) is chopped off. i want to know if its possible to arrange as: Mrs. A, Mr. B, Ms. C instead of wot i have now : just A, B, C. also i am unsure as to how i have the sorting functions called. i thought of including it as buttons in the table header and invoke onClick. but i dont know how to switch from php to javascript ie mix the two and exchange values. the second option was to try to use links to re-load the page ($php_self). which would be better, can any one suggest an optimum method to achive the desired results? Regards, Tracy --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at websapp.com Wed Jan 8 09:16:12 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Wed, 8 Jan 2003 09:16:12 -0500 Subject: The Future of PHP and the Zend Engine 2 Message-ID: Good morning NYPHP Group! An interesting iSeminar is being held by Zeev Suraski this morning: This iSeminar gives an overview of the new language-level features developed in the Zend Engine 2, and the way they address the limitations of Zend Engine 1 in PHP 4 including: ? New object oriented model ? Integration with external object oriented models, such as COM and Java ? Exception handling ? Stack tracing http://zend.interwise.com/zend/iSeminar/OI1336/ Daniel Kushner Vice President New York PHP http://nyphp.org/ daniel at nyphp.org From tom at supertom.com Wed Jan 8 10:17:37 2003 From: tom at supertom.com (tom at supertom.com) Date: Wed, 8 Jan 2003 10:17:37 -0500 Subject: [nycphp-talk] UPS php code not working In-Reply-To: <200301061816.h06IGQSt007672@parsec.nyphp.org> Message-ID: Hello All, I have been using the following PHP code (found on the net somewhere) to connect to the UPS site to calculate shipping. The code now returns "error" for the shipping quote. When I assemble the string myself, I can see that the program on the UPS site has in fact stopped working. Does anyone have any information about this (when did it stop working, did they 'move' the program, new code to use, etc.)? Also, has anyone tried intershipper (www.intershipper.net) with PHP? What are your experiences? Thanks, Tom From dan at dwc.to Wed Jan 8 11:17:26 2003 From: dan at dwc.to (Dan Horning) Date: Wed, 8 Jan 2003 11:17:26 -0500 Subject: [nycphp-talk] help In-Reply-To: <200301081320.h08DJiSt028232@parsec.nyphp.org> Message-ID: <000d01c2b731$71202dd0$87c484d0@dwchome> With what can we help you? >From the Desk of: Dan Horning Owner Dsoundmn's Web Creations Dsoundmn's Web Creations PO Box 109 Clifton Park, NY 12065-0109 Email: info at dwc.to ------ Online on AIM - dsoundmn (or dsoundmn1 for emergencies) ICQ - 14308614 MSN - dan at dwc.to YIM - dsoundmn -----Original Message----- From: Tracy [mailto:tech_learner at yahoo.com] Sent: Wednesday, January 08, 2003 8:20 AM To: NYPHP Talk Subject: [nycphp-talk] help This message contained 2 file(s) and is available at http://nyphp.org/list/paralist_archive.php?L_mid=2180 From tom at supertom.com Wed Jan 8 11:29:41 2003 From: tom at supertom.com (tom at supertom.com) Date: Wed, 8 Jan 2003 11:29:41 -0500 Subject: [nycphp-talk] UPS php code not working (again) In-Reply-To: <200301061816.h06IGQSt007672@parsec.nyphp.org> Message-ID: * I forgot the code in the previous email - code is below * Hello All, I have been using the following PHP code (found on the net somewhere) to connect to the UPS site to calculate shipping. The code now returns "error" for the shipping quote. When I assemble the string myself, I can see that the program on the UPS site has in fact stopped working. Does anyone have any information about this (when did it stop working, did they 'move' the program, new code to use, etc.)? Also, has anyone tried intershipper (www.intershipper.net) with PHP? What are your experiences? Thanks, Tom upsProduct("1DM"); // See upsProduct() function for codes $rate->origin("08033", "US"); // Use ISO country codes! $rate->dest("90210", "US"); // Use ISO country codes! $rate->rate("RDP"); // See the rate() function for codes $rate->container("CP"); // See the container() function for codes $rate->weight("2"); $rate->rescom("RES"); // See the rescom() function for codes $quote = $rate->getQuote(); echo $quote; */ class Ups { function upsProduct($prod){ /* 1DM == Next Day Air Early AM 1DA == Next Day Air 1DP == Next Day Air Saver 2DM == 2nd Day Air Early AM 2DA == 2nd Day Air 3DS == 3 Day Select GND == Ground STD == Canada Standard XPR == Worldwide Express XDM == Worldwide Express Plus XPD == Worldwide Expedited */ $this->upsProductCode = $prod; } function origin($postal, $country){ $this->originPostalCode = $postal; $this->originCountryCode = $country; } function dest($postal, $country){ $this->destPostalCode = $postal; $this->destCountryCode = $country; } function rate($foo){ switch($foo){ case "RDP": $this->rateCode = "Regular+Daily+Pickup"; break; case "OCA": $this->rateCode = "On+Call+Air"; break; case "OTP": $this->rateCode = "One+Time+Pickup"; break; case "LC": $this->rateCode = "Letter+Center"; break; case "CC": $this->rateCode = "Customer+Counter"; break; } } function container($foo){ switch($foo){ case "CP": // Customer Packaging $this->containerCode = "00"; break; case "ULE": // UPS Letter Envelope $this->containerCode = "01"; break; case "UT": // UPS Tube $this->containerCode = "03"; break; case "UEB": // UPS Express Box $this->containerCode = "21"; break; case "UW25": // UPS Worldwide 25 kilo $this->containerCode = "24"; break; case "UW10": // UPS Worldwide 10 kilo $this->containerCode = "25"; break; } } function weight($foo){ $this->packageWeight = $foo; } function rescom($foo){ switch($foo){ case "RES": // Residential Address $this->resComCode = "1"; break; case "COM": // Commercial Address $this->resComCode = "2"; break; } } function getQuote(){ $upsAction = "3"; // You want 3. Don't change unless you are sure. $url = join("&", array("http://www.ups.com/using/services/rave/qcostcgi.cgi?accept_UPS_licens e_agreement=yes", "10_action=$upsAction", "13_product=$this->upsProductCode", "14_origCountry=$this->originCountryCode", "15_origPostal=$this->originPostalCode", "19_destPostal=$this->destPostalCode", "22_destCountry=$this->destCountryCode", "23_weight=$this->packageWeight", "47_rateChart=$this->rateCode", "48_container=$this->containerCode", "49_residential=$this->resComCode" ) ); $fp = fopen($url, "r"); while(!feof($fp)){ $result = fgets($fp, 500); $result = explode("%", $result); $errcode = substr($result[0], -1); switch($errcode){ case 3: $returnval = $result[8]; break; case 4: $returnval = $result[8]; break; case 5: $returnval = $result[1]; break; case 6: $returnval = $result[1]; break; } } fclose($fp); if(! $returnval) { $returnval = "error"; } return $returnval; } } ?> From hans at nyphp.org Wed Jan 8 13:24:08 2003 From: hans at nyphp.org (Hans Zaunere) Date: Wed, 8 Jan 2003 10:24:08 -0800 (PST) Subject: [nycphp-talk] help In-Reply-To: <200301081617.h08GH5St029155@parsec.nyphp.org> Message-ID: <20030108182408.81375.qmail@web12804.mail.yahoo.com> --- Dan Horning wrote: > With what can we help you? Ick, the mail parser has been stricking out lately, sorry folks (someone change the RFC again? :) I've included the original message below, with Tracy's attached files available online as noted. Hans > This message contained 2 file(s) and is available at > http://nyphp.org/list/paralist_archive.php?L_mid=2180 > > Hi, > > I am tring to sort the table that shows the contents in my user table. i > haev been able to sort on the basis of age and gender. i have tried for > name but if i use the persent syntax, i get only their first names meaning > title (MR. or MRS or MS) is chopped off. i want to know if its possible to > arrange as: Mrs. A, Mr. B, Ms. C instead of wot i have now : just A, B, C. > also i am unsure as to how i have the sorting functions called. i thought > including it as buttons in the table header and invoke onClick. but i dont > know how to switch from php to _javascript ie mix the two and exchange > values. the second option was to try to use links to re-load the page > ($php_self). > > which would be better, can any one suggest an optimum method to achive the > desired results? > > Regards, > Tracy From chendry at nyc.rr.com Wed Jan 8 13:57:46 2003 From: chendry at nyc.rr.com (Christopher Hendry) Date: Wed, 8 Jan 2003 13:57:46 -0500 Subject: [nycphp-talk] The Future of PHP and the Zend Engine 2 In-Reply-To: <200301081420.h08EJqSt028514@parsec.nyphp.org> Message-ID: If we missed it is there somewhere we can get a copy of it? -> -----Original Message----- -> From: Daniel Kushner [mailto:nyphp at websapp.com] -> Sent: Wednesday, January 08, 2003 9:20 AM -> To: NYPHP Talk -> Subject: [nycphp-talk] The Future of PHP and the Zend Engine 2 -> -> -> Good morning NYPHP Group! -> -> An interesting iSeminar is being held by Zeev Suraski this morning: -> -> This iSeminar gives an overview of the new language-level -> features developed -> in the Zend Engine 2, and the way they address the limitations of Zend -> Engine 1 in PHP 4 including: -> -> ? New object oriented model -> ? Integration with external object oriented models, such as COM and Java -> ? Exception handling -> ? Stack tracing -> -> http://zend.interwise.com/zend/iSeminar/OI1336/ -> -> Daniel Kushner -> Vice President -> New York PHP -> http://nyphp.org/ -> daniel at nyphp.org -> -> -> -> --- Unsubscribe at http://nyphp.org/list/ --- -> -> -> From nyphp at websapp.com Wed Jan 8 13:58:03 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Wed, 8 Jan 2003 13:58:03 -0500 Subject: Website Redevelopment Needed for Really Great Non-Profit Message-ID: Please contact them directly :) Regards, Daniel Kushner Vice President New York PHP http://nyphp.org/ daniel at nyphp.org Reply to: kwarner-cohen at gc.cuny.edu Date: Wed Jan 8th 10:08 We are a research group within CUNY's Graduate Center that studies things like alternatives to jails, and the effects of gentrification on lifelong residents of NYC via private and public grants (see, told you really great things!) However, our website is WILDLY out of date, and extremely static. The last time it was touched was '99. Like every non-profit, all of us are overworked and underpaid. I tried to learn Dreamweaver (don't laugh) in order to rebuild the site, but I recently realized that it's simply not realistic. So, I come to you. I know what content is needed, and an idea about the format. This is not terribly hard website for someone who has the experience. I think we'd only have to meet once (maybe twice) over the whole thing. Please email me any examples of work. We can pay $300-350. From nyphp at websapp.com Wed Jan 8 14:29:47 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Wed, 8 Jan 2003 14:29:47 -0500 Subject: [nycphp-talk] The Future of PHP and the Zend Engine 2 In-Reply-To: <200301081858.h08Iw2St030009@parsec.nyphp.org> Message-ID: Hi Christopher, Zend usually publish their iSeminars for playback. I'll ask Zeev to send me the link ASAP. It was very interesing and I hope that many NYPHP people were there :) Regards, Daniel Kushner Vice President New York PHP http://nyphp.org/ daniel at nyphp.org > -----Original Message----- > From: Christopher Hendry [mailto:chendry at nyc.rr.com] > Sent: Wednesday, January 08, 2003 1:58 PM > To: NYPHP Talk > Subject: RE: [nycphp-talk] The Future of PHP and the Zend Engine 2 > > > If we missed it is there somewhere we can get a copy of it? > > -> -----Original Message----- > -> From: Daniel Kushner [mailto:nyphp at websapp.com] > -> Sent: Wednesday, January 08, 2003 9:20 AM > -> To: NYPHP Talk > -> Subject: [nycphp-talk] The Future of PHP and the Zend Engine 2 > -> > -> > -> Good morning NYPHP Group! > -> > -> An interesting iSeminar is being held by Zeev Suraski this morning: > -> > -> This iSeminar gives an overview of the new language-level > -> features developed > -> in the Zend Engine 2, and the way they address the limitations of Zend > -> Engine 1 in PHP 4 including: > -> > -> ? New object oriented model > -> ? Integration with external object oriented models, such as > COM and Java > -> ? Exception handling > -> ? Stack tracing > -> > -> http://zend.interwise.com/zend/iSeminar/OI1336/ > -> > -> Daniel Kushner > -> Vice President > -> New York PHP > -> http://nyphp.org/ > -> daniel at nyphp.org > -> > -> > -> > -> > -> > -> > -> > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From dan at dwc.to Wed Jan 8 15:51:19 2003 From: dan at dwc.to (Dan Horning) Date: Wed, 8 Jan 2003 15:51:19 -0500 Subject: [nycphp-talk] help In-Reply-To: <200301081824.h08IOFSt029825@parsec.nyphp.org> Message-ID: <000001c2b757$b3623230$afc484d0@dwchome> You really only need to add the field to the database pull and then make sure you use Sort ascending by FIELDNAME. The sort isn't the issue.. It's the way the sort is being displayed.. I'd love to help more.. But I'd really need to chat off list... If you're on a instant messenger let me know which one and the times you're online.. And I'll talk you through the fix >From the Desk of: Dan Horning Owner Dsoundmn's Web Creations Dsoundmn's Web Creations PO Box 109 Clifton Park, NY 12065-0109 Email: info at dwc.to ------ Online on AIM - dsoundmn (or dsoundmn1 for emergencies) ICQ - 14308614 MSN - dan at dwc.to YIM - dsoundmn -----Original Message----- From: Hans Zaunere [mailto:hans at nyphp.org] Sent: Wednesday, January 08, 2003 1:24 PM To: NYPHP Talk Subject: RE: [nycphp-talk] help --- Dan Horning wrote: > With what can we help you? Ick, the mail parser has been stricking out lately, sorry folks (someone change the RFC again? :) I've included the original message below, with Tracy's attached files available online as noted. Hans > This message contained 2 file(s) and is available at > http://nyphp.org/list/paralist_archive.php?L_mid=2180 > > Hi, > > I am tring to sort the table that shows the contents in my user table. > i haev been able to sort on the basis of age and gender. i have tried > for name but if i use the persent syntax, i get only their first names > meaning title (MR. or MRS or MS) is chopped off. i want to know if its > possible to arrange as: Mrs. A, Mr. B, Ms. C instead of wot i have now > : just A, B, C. also i am unsure as to how i have the sorting > functions called. i thought including it as buttons in the table > header and invoke onClick. but i dont know how to switch from php to > _javascript ie mix the two and exchange values. the second option was > to try to use links to re-load the page ($php_self). > > which would be better, can any one suggest an optimum method to achive > the desired results? > > Regards, > Tracy --- Unsubscribe at http://nyphp.org/list/ --- From hans at nyphp.org Wed Jan 8 18:10:24 2003 From: hans at nyphp.org (Hans Zaunere) Date: Wed, 8 Jan 2003 15:10:24 -0800 (PST) Subject: [nycphp-talk] The Future of PHP and the Zend Engine 2 In-Reply-To: <200301081933.h08JWvSt030199@parsec.nyphp.org> Message-ID: <20030108231024.3482.qmail@web12807.mail.yahoo.com> --- Daniel Kushner wrote: > Hi Christopher, > > Zend usually publish their iSeminars for playback. I'll ask Zeev to send me > the link ASAP. It was very interesing and I hope that many NYPHP people > were there :) It was interesting and great being able to ask Zeev questions in real-time. I try to maintain a list of useful presentations at http://nyphp.org/presentations/ and then click Other Presentations. Zend's stuff is the last section, and although today's material isn't up yet, it looks like it will be shortly (and there are other talks, including audio, there as well). Hans > > Regards, > Daniel Kushner > Vice President > New York PHP > http://nyphp.org/ > daniel at nyphp.org > > > -----Original Message----- > > From: Christopher Hendry [mailto:chendry at nyc.rr.com] > > Sent: Wednesday, January 08, 2003 1:58 PM > > To: NYPHP Talk > > Subject: RE: [nycphp-talk] The Future of PHP and the Zend Engine 2 > > > > > > If we missed it is there somewhere we can get a copy of it? > > > > -> -----Original Message----- > > -> From: Daniel Kushner [mailto:nyphp at websapp.com] > > -> Sent: Wednesday, January 08, 2003 9:20 AM > > -> To: NYPHP Talk > > -> Subject: [nycphp-talk] The Future of PHP and the Zend Engine 2 > > -> > > -> > > -> Good morning NYPHP Group! > > -> > > -> An interesting iSeminar is being held by Zeev Suraski this morning: > > -> > > -> This iSeminar gives an overview of the new language-level > > -> features developed > > -> in the Zend Engine 2, and the way they address the limitations of Zend > > -> Engine 1 in PHP 4 including: > > -> > > -> ? New object oriented model > > -> ? Integration with external object oriented models, such as > > COM and Java > > -> ? Exception handling > > -> ? Stack tracing > > -> > > -> http://zend.interwise.com/zend/iSeminar/OI1336/ > > -> > > -> Daniel Kushner > > -> Vice President > > -> New York PHP > > -> http://nyphp.org/ > > -> daniel at nyphp.org > > -> > > -> > > -> > > -> > > -> > > -> > > -> > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From ucsu at anapraxis.com Wed Jan 8 22:22:15 2003 From: ucsu at anapraxis.com (Weston Houghton) Date: Wed, 8 Jan 2003 22:22:15 -0500 Subject: [nycphp-talk] Installing PHP on Mac OS X Server In-Reply-To: <200301072214.h07MEHSt023399@parsec.nyphp.org> Message-ID: <8D222254-2381-11D7-993F-003065760278@anapraxis.com> Sorry, I just caught up to this one, have you had any luck? I have it running quite happily on my machines here, all built (with various configurations) by me. I'm sure we can figure out what's going on. First off, did you only build php, or did you do both php and apache? Wes On Tuesday, January 7, 2003, at 05:14 PM, Matthew Zimmerman wrote: > Yeah, I figure that too Bradely. > > I replace the httpd.conf with the backup config file and stared from > scratch again, three times, and I keep getting the same error. > > Like I said, I also go to Marc's site a lot and do the same exact thing > and it always works so I cant' for life figure out what I did wrong. > This is my first time doing it on OS X server though. I have just done > it on OS X before. I know OS X server ships with PHP installed, but I > wanted the full version. > > Matt > > On Tuesday, January 7, 2003, at 04:51 PM, Bradley Baumann wrote: > >> Matt, >> I highly doubt that it is in the order matters... if apache is >> giving an >> error because it can't load PHP it's probably something because you >> forgot >> to do something, or something isn't in there right... >> Check this step of the PHP installation with Apache out : >> ---------------------------------------------------------------------- >> >> 14. Edit your httpd.conf or srm.conf file and check that these lines >> are >> present and not commented out: >> >> AddType application/x-httpd-php .php >> >> LoadModule php4_module libexec/libphp4.so >> >> You can choose any extension you wish here. .php is simply the one >> we suggest. You can even include .html, and .php3 can be added for >> backwards compatibility. >> >> The path on the right hand side of the LoadModule statement must >> point >> to the path of the PHP module on your system. The above statement is >> correct for the steps shown above. >> ---------------------------------------------------------------------- >> - >> - >> Full Text: http://www.php.net/manual/en/install.apache.php >> >> Hope that helps. >> -Bradley >> >> >> >> >> ----- Original Message ----- >> From: "Larry Chuon" >> To: "NYPHP Talk" >> Sent: Tuesday, January 07, 2003 4:29 PM >> Subject: RE: [nycphp-talk] Installing PHP on Mac OS X Server >> >> >>> At the bottom of this post >>> (http://www.ossuite.org/phpbb/viewtopic.php?t=29), it has a specific >>> on >> OSX. >>> It might have the answer to your problem in regard to httpd.conf. >>> >>> Did you do this? >>> >>> on Mac OS X: >>> >>> vi /etc/httpd/httpd.conf >>> >>> Find the following and make sure it is in this order: >>> >>> >>> DirectoryIndex default.php index.php index.htm index.html >>> >>> >>> -----Original Message----- >>> From: Matthew Zimmerman [mailto:mz34 at nyu.edu] >>> Sent: Tuesday, January 07, 2003 4:18 PM >>> To: NYPHP Talk >>> Subject: [nycphp-talk] Installing PHP on Mac OS X Server >>> >>> Hi gang, >>> >>> Got a new Mac X Serv and am installing MySQL and PHP. >>> >>> I use the downloads and instructions from www.entropy.ch. Always had >>> success with these, but I am having a problem I haven't had before. >>> >>> I follow all of Marcs instructions then type the final command: >>> >>> sudo apachectl graceful >>> >>> I get an error >>> >>> /usr/bin/apachectl graceful: configuration broken, ignoring restart >>> /usr/bin/apachectl graceful: (run 'apacectl configtest' for details) >>> >>> >>> when I run the configtest I get the message >>> >>> syntax error on line 369 of /etc/httpd/httd.conf >>> Cannot add module via name 'mod.php4.c': not in list of loaded >>> modules. >>> >>> >>> I will of course open up the config file and look at it, but I >>> thought >>> if someone had come across this problem before they could tell me >>> what >>> the fix is. >>> >>> matt >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >> >> >> > MZ > _________________ > Matthew Zimmerman > Humanities Computing Group, NYU > Tel: 212.998.3038 > Fax: 212.995.4120 > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From ucsu at anapraxis.com Wed Jan 8 22:27:10 2003 From: ucsu at anapraxis.com (Weston Houghton) Date: Wed, 8 Jan 2003 22:27:10 -0500 Subject: [nycphp-talk] Installing PHP on Mac OS X Server In-Reply-To: <200301072214.h07MEHSt023399@parsec.nyphp.org> Message-ID: <3CAEAB54-2382-11D7-993F-003065760278@anapraxis.com> Sorry, I just caught up to this one, have you had any luck? I have it running quite happily on my machines here, all built (with various configurations) by me. I'm sure we can figure out what's going on. First off, did you only build php, or did you do both php and apache? Wes On Tuesday, January 7, 2003, at 05:14 PM, Matthew Zimmerman wrote: > Yeah, I figure that too Bradely. > > I replace the httpd.conf with the backup config file and stared from > scratch again, three times, and I keep getting the same error. > > Like I said, I also go to Marc's site a lot and do the same exact thing > and it always works so I cant' for life figure out what I did wrong. > This is my first time doing it on OS X server though. I have just done > it on OS X before. I know OS X server ships with PHP installed, but I > wanted the full version. > > Matt > > On Tuesday, January 7, 2003, at 04:51 PM, Bradley Baumann wrote: > >> Matt, >> I highly doubt that it is in the order matters... if apache is >> giving an >> error because it can't load PHP it's probably something because you >> forgot >> to do something, or something isn't in there right... >> Check this step of the PHP installation with Apache out : >> ---------------------------------------------------------------------- >> >> 14. Edit your httpd.conf or srm.conf file and check that these lines >> are >> present and not commented out: >> >> AddType application/x-httpd-php .php >> >> LoadModule php4_module libexec/libphp4.so >> >> You can choose any extension you wish here. .php is simply the one >> we suggest. You can even include .html, and .php3 can be added for >> backwards compatibility. >> >> The path on the right hand side of the LoadModule statement must >> point >> to the path of the PHP module on your system. The above statement is >> correct for the steps shown above. >> ---------------------------------------------------------------------- >> - >> - >> Full Text: http://www.php.net/manual/en/install.apache.php >> >> Hope that helps. >> -Bradley >> >> >> >> >> ----- Original Message ----- >> From: "Larry Chuon" >> To: "NYPHP Talk" >> Sent: Tuesday, January 07, 2003 4:29 PM >> Subject: RE: [nycphp-talk] Installing PHP on Mac OS X Server >> >> >>> At the bottom of this post >>> (http://www.ossuite.org/phpbb/viewtopic.php?t=29), it has a specific >>> on >> OSX. >>> It might have the answer to your problem in regard to httpd.conf. >>> >>> Did you do this? >>> >>> on Mac OS X: >>> >>> vi /etc/httpd/httpd.conf >>> >>> Find the following and make sure it is in this order: >>> >>> >>> DirectoryIndex default.php index.php index.htm index.html >>> >>> >>> -----Original Message----- >>> From: Matthew Zimmerman [mailto:mz34 at nyu.edu] >>> Sent: Tuesday, January 07, 2003 4:18 PM >>> To: NYPHP Talk >>> Subject: [nycphp-talk] Installing PHP on Mac OS X Server >>> >>> Hi gang, >>> >>> Got a new Mac X Serv and am installing MySQL and PHP. >>> >>> I use the downloads and instructions from www.entropy.ch. Always had >>> success with these, but I am having a problem I haven't had before. >>> >>> I follow all of Marcs instructions then type the final command: >>> >>> sudo apachectl graceful >>> >>> I get an error >>> >>> /usr/bin/apachectl graceful: configuration broken, ignoring restart >>> /usr/bin/apachectl graceful: (run 'apacectl configtest' for details) >>> >>> >>> when I run the configtest I get the message >>> >>> syntax error on line 369 of /etc/httpd/httd.conf >>> Cannot add module via name 'mod.php4.c': not in list of loaded >>> modules. >>> >>> >>> I will of course open up the config file and look at it, but I >>> thought >>> if someone had come across this problem before they could tell me >>> what >>> the fix is. >>> >>> matt >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >> >> >> > MZ > _________________ > Matthew Zimmerman > Humanities Computing Group, NYU > Tel: 212.998.3038 > Fax: 212.995.4120 > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From weslists at anapraxis.com Wed Jan 8 22:34:54 2003 From: weslists at anapraxis.com (Weston Houghton) Date: Wed, 8 Jan 2003 22:34:54 -0500 Subject: [nycphp-talk] Installing PHP on Mac OS X Server In-Reply-To: <200301072214.h07MEHSt023399@parsec.nyphp.org> Message-ID: <517018C1-2383-11D7-993F-003065760278@anapraxis.com> Sorry, I just caught up to this one, have you had any luck? I have it running quite happily on my machines here, all built (with various configurations) by me. I'm sure we can figure out what's going on. First off, did you only build php, or did you do both php and apache? Wes On Tuesday, January 7, 2003, at 05:14 PM, Matthew Zimmerman wrote: > Yeah, I figure that too Bradely. > > I replace the httpd.conf with the backup config file and stared from > scratch again, three times, and I keep getting the same error. > > Like I said, I also go to Marc's site a lot and do the same exact thing > and it always works so I cant' for life figure out what I did wrong. > This is my first time doing it on OS X server though. I have just done > it on OS X before. I know OS X server ships with PHP installed, but I > wanted the full version. > > Matt > > On Tuesday, January 7, 2003, at 04:51 PM, Bradley Baumann wrote: > >> Matt, >> I highly doubt that it is in the order matters... if apache is >> giving an >> error because it can't load PHP it's probably something because you >> forgot >> to do something, or something isn't in there right... >> Check this step of the PHP installation with Apache out : >> ---------------------------------------------------------------------- >> >> 14. Edit your httpd.conf or srm.conf file and check that these lines >> are >> present and not commented out: >> >> AddType application/x-httpd-php .php >> >> LoadModule php4_module libexec/libphp4.so >> >> You can choose any extension you wish here. .php is simply the one >> we suggest. You can even include .html, and .php3 can be added for >> backwards compatibility. >> >> The path on the right hand side of the LoadModule statement must >> point >> to the path of the PHP module on your system. The above statement is >> correct for the steps shown above. >> ---------------------------------------------------------------------- >> - >> - >> Full Text: http://www.php.net/manual/en/install.apache.php >> >> Hope that helps. >> -Bradley >> >> >> >> >> ----- Original Message ----- >> From: "Larry Chuon" >> To: "NYPHP Talk" >> Sent: Tuesday, January 07, 2003 4:29 PM >> Subject: RE: [nycphp-talk] Installing PHP on Mac OS X Server >> >> >>> At the bottom of this post >>> (http://www.ossuite.org/phpbb/viewtopic.php?t=29), it has a specific >>> on >> OSX. >>> It might have the answer to your problem in regard to httpd.conf. >>> >>> Did you do this? >>> >>> on Mac OS X: >>> >>> vi /etc/httpd/httpd.conf >>> >>> Find the following and make sure it is in this order: >>> >>> >>> DirectoryIndex default.php index.php index.htm index.html >>> >>> >>> -----Original Message----- >>> From: Matthew Zimmerman [mailto:mz34 at nyu.edu] >>> Sent: Tuesday, January 07, 2003 4:18 PM >>> To: NYPHP Talk >>> Subject: [nycphp-talk] Installing PHP on Mac OS X Server >>> >>> Hi gang, >>> >>> Got a new Mac X Serv and am installing MySQL and PHP. >>> >>> I use the downloads and instructions from www.entropy.ch. Always had >>> success with these, but I am having a problem I haven't had before. >>> >>> I follow all of Marcs instructions then type the final command: >>> >>> sudo apachectl graceful >>> >>> I get an error >>> >>> /usr/bin/apachectl graceful: configuration broken, ignoring restart >>> /usr/bin/apachectl graceful: (run 'apacectl configtest' for details) >>> >>> >>> when I run the configtest I get the message >>> >>> syntax error on line 369 of /etc/httpd/httd.conf >>> Cannot add module via name 'mod.php4.c': not in list of loaded >>> modules. >>> >>> >>> I will of course open up the config file and look at it, but I >>> thought >>> if someone had come across this problem before they could tell me >>> what >>> the fix is. >>> >>> matt >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >> >> >> > MZ > _________________ > Matthew Zimmerman > Humanities Computing Group, NYU > Tel: 212.998.3038 > Fax: 212.995.4120 > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From weslists at anapraxis.com Wed Jan 8 23:01:44 2003 From: weslists at anapraxis.com (Weston Houghton) Date: Wed, 8 Jan 2003 23:01:44 -0500 Subject: PHP Blogger Message-ID: <110B88D2-2387-11D7-993F-003065760278@anapraxis.com> Any quick recommendations on the best blogging system implemented in PHP? Cheers, Wes From bradley at bestweb.net Thu Jan 9 00:00:47 2003 From: bradley at bestweb.net (Bradley Baumann) Date: Thu, 9 Jan 2003 00:00:47 -0500 Subject: [nycphp-talk] PHP Blogger References: <200301090401.h0941rSt032760@parsec.nyphp.org> Message-ID: <001201c2b79c$12c55a60$0300a8c0@prophxp> The best is always yours. Try writing one yourself... If time is a big concern, however, I'm not sure what 3rd party script is the best one... There are a lot out there though... try google =) -Bradley ----- Original Message ----- From: "Weston Houghton" To: "NYPHP Talk" Sent: Wednesday, January 08, 2003 11:01 PM Subject: [nycphp-talk] PHP Blogger > > Any quick recommendations on the best blogging system implemented in > PHP? > > Cheers, > Wes > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From sterling at bumblebury.com Wed Jan 8 23:59:51 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 08 Jan 2003 23:59:51 -0500 Subject: [nycphp-talk] PHP Blogger In-Reply-To: <200301090458.h094wYSt033060@parsec.nyphp.org> References: <200301090458.h094wYSt033060@parsec.nyphp.org> Message-ID: <1042088391.495.178.camel@hasele> i use movabletype which is suitable and widely used. blosxom is another popular one, they're Perl, but whatever works, right? -Sterling On Wed, 2003-01-08 at 23:58, Bradley Baumann wrote: > The best is always yours. Try writing one yourself... > If time is a big concern, however, I'm not sure what 3rd party script is the > best one... There are a lot out there though... try google =) > -Bradley > > ----- Original Message ----- > From: "Weston Houghton" > To: "NYPHP Talk" > Sent: Wednesday, January 08, 2003 11:01 PM > Subject: [nycphp-talk] PHP Blogger > > > > > > Any quick recommendations on the best blogging system implemented in > > PHP? > > > > Cheers, > > Wes > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- -- "First they ignore you, then they laugh at you, then they fight you, then you win." - Gandhi From soazine at erols.com Thu Jan 9 01:51:11 2003 From: soazine at erols.com (Phil Powell) Date: Thu, 9 Jan 2003 01:51:11 -0500 Subject: XML File does not reflect changes upon reopen - HELP Message-ID: <012201c2b7ab$7f50fd60$2aaf6244@scandinawa1bo6> if ($isValid) { $cgi = '/cgi-bin'; if (strpos($HTTP_HOST, 'dyndns') === false) $cgi .= '/cgiwrap/ppowell'; $fileID = fopen("http://$SERVER_NAME$cgi/pollinsert.cgi?pollID=$pollID&answerID=$answerID&valIdentifier=" . urlencode($valIdentifier) . "&lastPollResultsID=" . ($pollResultsArray[sizeOf($pollResultsArray) - 2][attributes][ID] + 1), 'r') or die('Could not open CGI'); $result = fread($fileID, 100000); fclose($fileID); if (trim(strtoupper($result)) != 'DONE') die ("Problem with TCL CGI writing to file: $result"); // RE-PARSE XML CONTENTS SINCE ADDING NEW POLL ANSWER unset($pollResultsArray); unset($pollResultsXMLStuff); $fileID = fopen('/users/ppowell/web/xml/pollresults.xml', 'r') or die('Could not reopen file'); $pollResultsXMLStuff = fread($fileID, filesize('/users/ppowell/web/xml/pollresults.xml')); fclose($fileID); $parser = xml_parser_create(); xml_parse_into_struct($parser, $pollResultsXMLStuff, $pollResultsArray, $tags); xml_parser_free($parser); } else { // REDIRECT BACK TO POLL IF header("Location: http://$SERVER_NAME/poll/poll.php?pollID=$pollID&errorMsg=" . urlencode($errorMsg)); } // END OF FORM PLACEMENT } I am making changes to an XML file (and the only way I can, unless anyone knows how in PHP I can write TO an XML file!!! is to use a TCL CGI script to write to the XML file), once changes have been made I need to reopen the file and read its contents, however, every time I do I am getting OLD file information and NOT my changes, every single time, unless I refresh my page... Does anyone know what I can do about this? I can't redirect them, that would be horribly inefficient.. what can I do? Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From kilimajer at webglobe.sk Thu Jan 9 09:57:04 2003 From: kilimajer at webglobe.sk (Marek Kilimajer) Date: Thu, 09 Jan 2003 15:57:04 +0100 Subject: [PHP] XML File does not reflect changes upon reopen - HELP In-Reply-To: <012201c2b7ab$7f50fd60$2aaf6244@scandinawa1bo6> References: <012201c2b7ab$7f50fd60$2aaf6244@scandinawa1bo6> Message-ID: <3E1D8DC0.8050600@webglobe.sk> There might be couple of problems: - your php script should read from the cgi script until EOF, so it continues after the other script finishes - your cgi script should fflush the file before closing, and then close the connection - use clearstatcache() before opening the file if the php script accesses the file before Phil Powell wrote: >I am making changes to an XML file (and the only way I can, unless anyone knows how in PHP I can write TO an XML file!!! is to use a TCL CGI script to write to the XML file), once changes have been made I need to reopen the file and read its contents, however, every time I do I am getting OLD file information and NOT my changes, every single time, unless I refresh my page... > >Does anyone know what I can do about this? I can't redirect them, that would be horribly inefficient.. what can I do? > >Thanx >Phil > > > From JayeshSh at netscape.net Thu Jan 9 09:53:24 2003 From: JayeshSh at netscape.net (Jayesh Sheth) Date: Thu, 09 Jan 2003 09:53:24 -0500 Subject: [nycphp-talk] PHP Blogger References: <200301090401.h0941rSt032760@parsec.nyphp.org> Message-ID: <3E1D8CE4.8090701@netscape.net> Hello, I have used Rodin for various blogs and sites: http://rodin.lot23.com It is really small ( 5 to 10 k) and does a lot. It has some nifty plugins (referred to as 'toys') too. I plan to release my branch of Rodin under the GPL with different modules (support real estate listings), international language support, and a built in HTML editor with live preview, in some time. If you interested in trying out the (as yet private) demo site of my version, which uses Rodin, please let me know. I am looking for a good name for my own branch. If anyone has any suggestions, please let me know. Regards, - Jay weslists at anapraxis.com wrote: >Any quick recommendations on the best blogging system implemented in >PHP? > >Cheers, >Wes > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop at Netscape! http://shopnow.netscape.com/ From hans at nyphp.org Thu Jan 9 10:06:20 2003 From: hans at nyphp.org (Hans Zaunere) Date: Thu, 9 Jan 2003 07:06:20 -0800 (PST) Subject: NYPHP back in 2003 - January Meeting Update - http://nyphp.org Message-ID: <20030109150620.15823.qmail@web12802.mail.yahoo.com> -- Complete Details at http://nyphp.org -- I hope everyone had a great holiday and is hungry for an informative meeting; with a bonus! Good, because that's what we have in store for our January Meeting. New York PHP Presents... "Building a Scalable Architecture with PHP" "High Performance PHP" PHP Job Opportunities Presented by Community Connect's CTO Mike Montero and Chief Architect Dan Cowgill, these talks are for those interested in PHP internals, performance and enterprise PHP development. Few know PHP like these guys, so you won't want to miss their insight. And then, join Community Connect Recruiter David Dankin to explore the PHP job market and check out available positions at CC. What a great way to start a year! One important note, however, is that NYPHP monthly meetings have been moved to the 4th Tuesday of the month (1/28/03) so don't forget to update your PDAs. As always this meeting is free and open to the public, with complete meeting and location details at http://nyphp.org Thank you, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From nyphp at websapp.com Thu Jan 9 11:41:39 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 9 Jan 2003 11:41:39 -0500 Subject: The Future of PHP and the Zend Engine 2 - iSeminar - Zeev Suraski Message-ID: Can be seen in PlayBack mode at: http://zend.interwise.com/zend/iSeminar/OI1336/ Regards, Daniel Kushner Vice President New York PHP http://nyphp.org/ daniel at nyphp.org From tom at supertom.com Thu Jan 9 12:00:16 2003 From: tom at supertom.com (tom at supertom.com) Date: Thu, 9 Jan 2003 12:00:16 -0500 Subject: [nycphp-talk] UPS php code not working (followup) In-Reply-To: <200301061816.h06IGQSt007672@parsec.nyphp.org> Message-ID: Just to follow up and document the fix, after scrutiny I found that UPS changed the parameter from: 49_residential=2 (for commerical) to 49_residential=NO Having the '2' in there broke the whole thing. I'd like to find a better way to do this, but at least it now works. Thanks, Tom * I forgot the code in the previous email - code is below * Hello All, I have been using the following PHP code (found on the net somewhere) to connect to the UPS site to calculate shipping. The code now returns "error" for the shipping quote. When I assemble the string myself, I can see that the program on the UPS site has in fact stopped working. Does anyone have any information about this (when did it stop working, did they 'move' the program, new code to use, etc.)? Also, has anyone tried intershipper (www.intershipper.net) with PHP? What are your experiences? Thanks, Tom upsProduct("1DM"); // See upsProduct() function for codes $rate->origin("08033", "US"); // Use ISO country codes! $rate->dest("90210", "US"); // Use ISO country codes! $rate->rate("RDP"); // See the rate() function for codes $rate->container("CP"); // See the container() function for codes $rate->weight("2"); $rate->rescom("RES"); // See the rescom() function for codes $quote = $rate->getQuote(); echo $quote; */ class Ups { function upsProduct($prod){ /* 1DM == Next Day Air Early AM 1DA == Next Day Air 1DP == Next Day Air Saver 2DM == 2nd Day Air Early AM 2DA == 2nd Day Air 3DS == 3 Day Select GND == Ground STD == Canada Standard XPR == Worldwide Express XDM == Worldwide Express Plus XPD == Worldwide Expedited */ $this->upsProductCode = $prod; } function origin($postal, $country){ $this->originPostalCode = $postal; $this->originCountryCode = $country; } function dest($postal, $country){ $this->destPostalCode = $postal; $this->destCountryCode = $country; } function rate($foo){ switch($foo){ case "RDP": $this->rateCode = "Regular+Daily+Pickup"; break; case "OCA": $this->rateCode = "On+Call+Air"; break; case "OTP": $this->rateCode = "One+Time+Pickup"; break; case "LC": $this->rateCode = "Letter+Center"; break; case "CC": $this->rateCode = "Customer+Counter"; break; } } function container($foo){ switch($foo){ case "CP": // Customer Packaging $this->containerCode = "00"; break; case "ULE": // UPS Letter Envelope $this->containerCode = "01"; break; case "UT": // UPS Tube $this->containerCode = "03"; break; case "UEB": // UPS Express Box $this->containerCode = "21"; break; case "UW25": // UPS Worldwide 25 kilo $this->containerCode = "24"; break; case "UW10": // UPS Worldwide 10 kilo $this->containerCode = "25"; break; } } function weight($foo){ $this->packageWeight = $foo; } function rescom($foo){ switch($foo){ case "RES": // Residential Address $this->resComCode = "1"; break; case "COM": // Commercial Address $this->resComCode = "2"; break; } } function getQuote(){ $upsAction = "3"; // You want 3. Don't change unless you are sure. $url = join("&", array("http://www.ups.com/using/services/rave/qcostcgi.cgi?accept_UPS_licens e_agreement=yes", "10_action=$upsAction", "13_product=$this->upsProductCode", "14_origCountry=$this->originCountryCode", "15_origPostal=$this->originPostalCode", "19_destPostal=$this->destPostalCode", "22_destCountry=$this->destCountryCode", "23_weight=$this->packageWeight", "47_rateChart=$this->rateCode", "48_container=$this->containerCode", "49_residential=$this->resComCode" ) ); $fp = fopen($url, "r"); while(!feof($fp)){ $result = fgets($fp, 500); $result = explode("%", $result); $errcode = substr($result[0], -1); switch($errcode){ case 3: $returnval = $result[8]; break; case 4: $returnval = $result[8]; break; case 5: $returnval = $result[1]; break; case 6: $returnval = $result[1]; break; } } fclose($fp); if(! $returnval) { $returnval = "error"; } return $returnval; } } ?> From jadair at adairservices.net Thu Jan 9 13:13:39 2003 From: jadair at adairservices.net (John Adair) Date: Thu, 09 Jan 2003 13:13:39 -0500 Subject: [nycphp-talk] UPS php code not working In-Reply-To: <200301091705.h09H5CSt037015@parsec.nyphp.org> Message-ID: Hi Tom, I don't know why it is, but when I go to the UPS website and enter in the data for the sample I get a different value than what the class returns. Best regards, John Adair -----Original Message----- From: tom at supertom.com [mailto:tom at supertom.com] Sent: Thursday, January 09, 2003 12:05 PM To: NYPHP Talk Subject: [nycphp-talk] UPS php code not working Just to follow up and document the fix, after scrutiny I found that UPS changed the parameter from: 49_residential=2 (for commerical) to 49_residential=NO Having the '2' in there broke the whole thing. I'd like to find a better way to do this, but at least it now works. Thanks, Tom * I forgot the code in the previous email - code is below * Hello All, I have been using the following PHP code (found on the net somewhere) to connect to the UPS site to calculate shipping. The code now returns "error" for the shipping quote. When I assemble the string myself, I can see that the program on the UPS site has in fact stopped working. Does anyone have any information about this (when did it stop working, did they 'move' the program, new code to use, etc.)? Also, has anyone tried intershipper (www.intershipper.net) with PHP? What are your experiences? Thanks, Tom upsProduct("1DM"); // See upsProduct() function for codes $rate->origin("08033", "US"); // Use ISO country codes! $rate->dest("90210", "US"); // Use ISO country codes! $rate->rate("RDP"); // See the rate() function for codes $rate->container("CP"); // See the container() function for codes $rate->weight("2"); $rate->rescom("RES"); // See the rescom() function for codes $quote = $rate->getQuote(); echo $quote; */ class Ups { function upsProduct($prod){ /* 1DM == Next Day Air Early AM 1DA == Next Day Air 1DP == Next Day Air Saver 2DM == 2nd Day Air Early AM 2DA == 2nd Day Air 3DS == 3 Day Select GND == Ground STD == Canada Standard XPR == Worldwide Express XDM == Worldwide Express Plus XPD == Worldwide Expedited */ $this->upsProductCode = $prod; } function origin($postal, $country){ $this->originPostalCode = $postal; $this->originCountryCode = $country; } function dest($postal, $country){ $this->destPostalCode = $postal; $this->destCountryCode = $country; } function rate($foo){ switch($foo){ case "RDP": $this->rateCode = "Regular+Daily+Pickup"; break; case "OCA": $this->rateCode = "On+Call+Air"; break; case "OTP": $this->rateCode = "One+Time+Pickup"; break; case "LC": $this->rateCode = "Letter+Center"; break; case "CC": $this->rateCode = "Customer+Counter"; break; } } function container($foo){ switch($foo){ case "CP": // Customer Packaging $this->containerCode = "00"; break; case "ULE": // UPS Letter Envelope $this->containerCode = "01"; break; case "UT": // UPS Tube $this->containerCode = "03"; break; case "UEB": // UPS Express Box $this->containerCode = "21"; break; case "UW25": // UPS Worldwide 25 kilo $this->containerCode = "24"; break; case "UW10": // UPS Worldwide 10 kilo $this->containerCode = "25"; break; } } function weight($foo){ $this->packageWeight = $foo; } function rescom($foo){ switch($foo){ case "RES": // Residential Address $this->resComCode = "1"; break; case "COM": // Commercial Address $this->resComCode = "2"; break; } } function getQuote(){ $upsAction = "3"; // You want 3. Don't change unless you are sure. $url = join("&", array("http://www.ups.com/using/services/rave/qcostcgi.cgi?accept_UPS_licens e_agreement=yes", "10_action=$upsAction", "13_product=$this->upsProductCode", "14_origCountry=$this->originCountryCode", "15_origPostal=$this->originPostalCode", "19_destPostal=$this->destPostalCode", "22_destCountry=$this->destCountryCode", "23_weight=$this->packageWeight", "47_rateChart=$this->rateCode", "48_container=$this->containerCode", "49_residential=$this->resComCode" ) ); $fp = fopen($url, "r"); while(!feof($fp)){ $result = fgets($fp, 500); $result = explode("%", $result); $errcode = substr($result[0], -1); switch($errcode){ case 3: $returnval = $result[8]; break; case 4: $returnval = $result[8]; break; case 5: $returnval = $result[1]; break; case 6: $returnval = $result[1]; break; } } fclose($fp); if(! $returnval) { $returnval = "error"; } return $returnval; } } ?> --- Unsubscribe at http://nyphp.org/list/ --- From emm at scriptdigital.com Thu Jan 9 13:59:06 2003 From: emm at scriptdigital.com (Emmanuel. M. Decarie) Date: Thu, 09 Jan 2003 13:59:06 -0500 Subject: [nycphp-talk] PHP Blogger In-Reply-To: <200301090509.h0959MSt033127@parsec.nyphp.org> References: <200301090509.h0959MSt033127@parsec.nyphp.org> Message-ID: There is also PHPosxom inspired by blosxom. Cheers -Emmanuel ? (At) 00:09 -0500 09/01/03, Sterling Hughes ?crivait (wrote) : >i use movabletype which is suitable and widely used. blosxom is another >popular one, they're Perl, but whatever works, right? > >-Sterling -- ______________________________________________________________________ Emmanuel D?carie / Programmation pour le Web - Programming for the Web Frontier - Perl - PHP - Javascript - XML From hans at nyphp.org Thu Jan 9 14:17:47 2003 From: hans at nyphp.org (Hans Zaunere) Date: Thu, 9 Jan 2003 11:17:47 -0800 (PST) Subject: LinuxWorld Expo Update Message-ID: <20030109191747.67790.qmail@web12802.mail.yahoo.com> Good afternoon all, The response for helping LWE has been great; thank you! I have some more details that I hope will clarify our next steps for getting to LWE, and how you can help. Take a look at http://nyphp.org/#lwe for updated information, and the links to actually sign-up and scheduling. It's also a good idea to get on their mailing list (send a blank message to expo-subscribe at unilug.org), since most action will be discussed there. We have a great start already, but that doesn't mean you still can't help! There's a need for literature, brochure and/or take-card writting and design (give me a shout at hans at nyphp.org). And, since this IS a computer show, anyone who can bring laptops, hubs, monitors, etc. would be welcomed with open arms (sign-up at http://booth.unilug.org). If you'd like to help, but just aren't sure where to start, drop me a note at hans at nyphp.org; and ask any other questions as well. Thank you, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From JMKing at ipro.org Thu Jan 9 14:34:56 2003 From: JMKing at ipro.org (Jaz-Michael King) Date: Thu, 09 Jan 2003 14:34:56 -0500 Subject: including an & in a variable Message-ID: hi all I'm trying to pass a bunch of long urls to a script as a link tracker but the urls contain ampersands. so, if I want to track the link www.domain.com?state=ny&county=kings my script stops at the ampersand - I assume I have to escape it somehow? if (!isset($redir)) die("Sorry, that link is bad. Please go back and try a different link."); if (!isset($referrer)) { if (!isset($HTTP_REFERER)) { $referrer = "none"; } else { $referrer = $HTTP_REFERER; }; }; if (!isset($REMOTE_ADDR)) { $remotehost = "no client address"; } else { $remotehost = $REMOTE_ADDR; }; $timeused = date("Y-m-d H:i:s",time()); @mysql_db_query($db_data , "insert into $db_table values('$redir','$referrer', '$remotehost','$timeused')"); Header("Location: $redir"); exit; thanks much, jaz ****************************** Jaz-Michael King Online Services Manager IPRO http://ipro.org ****************************** From tfreedma at ubspw.com Thu Jan 9 14:42:08 2003 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Thu, 9 Jan 2003 14:42:08 -0500 Subject: DB connection - web vs. command line? Message-ID: Hi all, I've run into another weird one. I'm using PHP 4.1.2 to connect to SQL Server 2000. If I run the page from IIS, it connects to the DB just fine and runs a stored procedure. If I execute the same page via the command line, it dies on the connection attempt (mssql_connect()). Anyone run into something like this? I can't figure out why they'd behave differently. Thanks in advance! Tom From wkamm at att.com Thu Jan 9 14:56:16 2003 From: wkamm at att.com (Kamm, William R (Bill), SOLIT) Date: Thu, 9 Jan 2003 14:56:16 -0500 Subject: [nycphp-talk] DB connection - web vs. command line? Message-ID: <751943B643332C4FB1F92D137C1FB7FA0483075E@OCCLUST01EVS1.ugd.att.com> Hi everyone, After struggling with Windows all these years, I'm finally learning PHP and My SQL on Linux/Apache. Unfortunately, I have some data that I need to get to, that is in an MS Access database. Is it possible to access Access via PHP? Alternatively, is there a way to transform Access to MySQL instead? Any links to additional info would be appreciated! Thanks, Bill -----Original Message----- From: Freedman, Tom S. [mailto:tfreedma at ubspw.com] Sent: Thursday, January 09, 2003 2:42 PM To: NYPHP Talk Subject: [nycphp-talk] DB connection - web vs. command line? Hi all, I've run into another weird one. I'm using PHP 4.1.2 to connect to SQL Server 2000. If I run the page from IIS, it connects to the DB just fine and runs a stored procedure. If I execute the same page via the command line, it dies on the connection attempt (mssql_connect()). Anyone run into something like this? I can't figure out why they'd behave differently. Thanks in advance! Tom --- Unsubscribe at http://nyphp.org/list/ --- From sklar at sklar.com Thu Jan 9 15:02:53 2003 From: sklar at sklar.com (David Sklar) Date: Thu, 9 Jan 2003 15:02:53 -0500 Subject: [nycphp-talk] including an & in a variable In-Reply-To: <200301091938.h09JcfSt037807@parsec.nyphp.org> Message-ID: Use urlencode() to encode the URLs being passed to the link tracker. E.g. do this: $redir = 'http://www.domain.com?state=ny&county=kings'; print 'click here.'; Instead of this: $redir = 'http://www.domain.com?state=ny&county=kings'; print 'click here.'; -dave > -----Original Message----- > From: Jaz-Michael King [mailto:JMKing at ipro.org] > Sent: Thursday, January 09, 2003 2:39 PM > To: NYPHP Talk > Subject: [nycphp-talk] including an & in a variable > > > hi all > > I'm trying to pass a bunch of long urls to a script as a link tracker > but the urls contain ampersands. so, if I want to track the link > www.domain.com?state=ny&county=kings > > my script stops at the ampersand - I assume I have to escape it somehow? > > if (!isset($redir)) > die("Sorry, that link is bad. Please go back and try a > different link."); > > if (!isset($referrer)) { > if (!isset($HTTP_REFERER)) { > $referrer = "none"; > } else { > $referrer = $HTTP_REFERER; > }; > }; > > if (!isset($REMOTE_ADDR)) { > $remotehost = "no client address"; > } else { > $remotehost = $REMOTE_ADDR; > }; > > $timeused = date("Y-m-d H:i:s",time()); > > @mysql_db_query($db_data , "insert into $db_table > values('$redir','$referrer', > '$remotehost','$timeused')"); > > Header("Location: $redir"); > exit; > > thanks much, > jaz > > ****************************** > Jaz-Michael King > Online Services Manager > IPRO > http://ipro.org > ****************************** > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From nyphp at websapp.com Thu Jan 9 15:02:51 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 9 Jan 2003 15:02:51 -0500 Subject: [nycphp-talk] including an & in a variable In-Reply-To: <200301091938.h09JcfSt037807@parsec.nyphp.org> Message-ID: http://www.php.net/manual/en/function.urlencode.php http://www.php.net/manual/en/function.urldecode.php --Daniel > -----Original Message----- > From: Jaz-Michael King [mailto:JMKing at ipro.org] > Sent: Thursday, January 09, 2003 2:39 PM > To: NYPHP Talk > Subject: [nycphp-talk] including an & in a variable > > > hi all > > I'm trying to pass a bunch of long urls to a script as a link tracker > but the urls contain ampersands. so, if I want to track the link > www.domain.com?state=ny&county=kings > > my script stops at the ampersand - I assume I have to escape it somehow? > > if (!isset($redir)) > die("Sorry, that link is bad. Please go back and try a > different link."); > > if (!isset($referrer)) { > if (!isset($HTTP_REFERER)) { > $referrer = "none"; > } else { > $referrer = $HTTP_REFERER; > }; > }; > > if (!isset($REMOTE_ADDR)) { > $remotehost = "no client address"; > } else { > $remotehost = $REMOTE_ADDR; > }; > > $timeused = date("Y-m-d H:i:s",time()); > > @mysql_db_query($db_data , "insert into $db_table > values('$redir','$referrer', > '$remotehost','$timeused')"); > > Header("Location: $redir"); > exit; > > thanks much, > jaz > > ****************************** > Jaz-Michael King > Online Services Manager > IPRO > http://ipro.org > ****************************** > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From tfreedma at ubspw.com Thu Jan 9 15:14:21 2003 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Thu, 9 Jan 2003 15:14:21 -0500 Subject: [nycphp-talk] DB connection - web vs. command line? Message-ID: Nevermind, I was dumb and didn't check to make sure the database was defined as a System DSN. It seems IIS automagically resolves the database name, whereas PHP counts on the data source being registered with the system. Thanks anyway! :-) -Tom -----Original Message----- From: Freedman, Tom S. Sent: Thursday, January 09, 2003 2:42 PM To: NYPHP Talk Subject: [nycphp-talk] DB connection - web vs. command line? Hi all, I've run into another weird one. I'm using PHP 4.1.2 to connect to SQL Server 2000. If I run the page from IIS, it connects to the DB just fine and runs a stored procedure. If I execute the same page via the command line, it dies on the connection attempt (mssql_connect()). Anyone run into something like this? I can't figure out why they'd behave differently. Thanks in advance! Tom --- Unsubscribe at http://nyphp.org/list/ --- From jadair at adairservices.net Thu Jan 9 15:24:39 2003 From: jadair at adairservices.net (John Adair) Date: Thu, 09 Jan 2003 15:24:39 -0500 Subject: PDFlib with IE In-Reply-To: <200301091956.h09JuNSt037922@parsec.nyphp.org> Message-ID: I get an error, "The requested site is either unavailable or cannot be found" when I attempt to run the sample code pdfclock provided with PDFlib. Does anyone know what I need to do to correct this? I do believe that the PDF is being built because I do get prompted to save pdf_clock with a Filetype of Adobe Acrobat Control for ActiveX. System: Win2000 Pro, Apache 1.3.27, PHP 4.4.0-dev. John Adair From felix at students.poly.edu Thu Jan 9 15:24:51 2003 From: felix at students.poly.edu (Felix Zaslavskiy) Date: Thu, 9 Jan 2003 15:24:51 -0500 Subject: email handling with php Message-ID: <00c401c2b81d$29fe01b0$5e06fea9@brother> hi I am working on a web email client and i like to know how if anyone went about handling the protocols such as pop3,imap,smtp My alternatives as i see them are as follows A: roll my own code. ( I dont favor this and like to use reusable components) B: user Pear Mail and Net classes ( there is a pop3 implementation, there is also a general interface for sending mail , lacking imap) C: use the imap extentions (It can do other things then just imap, not sure if it can do pop3, but in any case i cant put a requirment that this extention bve installed) D: use the php own mail command (this may not be configured ? and its only for sending mail) Right now my plan is to create an abstract interface for receiving mail. I would use the imap extention if its available but fall back on pear classes if its not Anyone have any suggestions ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From tfreedma at ubspw.com Thu Jan 9 15:34:26 2003 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Thu, 9 Jan 2003 15:34:26 -0500 Subject: [nycphp-talk] DB connection - web vs. command line? Message-ID: Bill, I've done it on Windows... All you have to do is define the Access database as an ODBC data source, then use the ODBC functions (http://www.php.net/manual/en/ref.odbc.php) to connect to it and access the data. -Tom -----Original Message----- From: Kamm, William R , SOLIT [mailto:wkamm at att.com] Sent: Thursday, January 09, 2003 2:56 PM To: NYPHP Talk Subject: RE: [nycphp-talk] DB connection - web vs. command line? Hi everyone, After struggling with Windows all these years, I'm finally learning PHP and My SQL on Linux/Apache. Unfortunately, I have some data that I need to get to, that is in an MS Access database. Is it possible to access Access via PHP? Alternatively, is there a way to transform Access to MySQL instead? Any links to additional info would be appreciated! Thanks, Bill -----Original Message----- From: Freedman, Tom S. [mailto:tfreedma at ubspw.com] Sent: Thursday, January 09, 2003 2:42 PM To: NYPHP Talk Subject: [nycphp-talk] DB connection - web vs. command line? Hi all, I've run into another weird one. I'm using PHP 4.1.2 to connect to SQL Server 2000. If I run the page from IIS, it connects to the DB just fine and runs a stored procedure. If I execute the same page via the command line, it dies on the connection attempt (mssql_connect()). Anyone run into something like this? I can't figure out why they'd behave differently. Thanks in advance! Tom --- Unsubscribe at http://nyphp.org/list/ --- From JMKing at ipro.org Thu Jan 9 15:31:43 2003 From: JMKing at ipro.org (Jaz-Michael King) Date: Thu, 09 Jan 2003 15:31:43 -0500 Subject: [nycphp-talk] including an & in a variable Message-ID: So right now I have to point to dozens of pages like thi sone: http://www.medicare.gov/NHCompare/Search/HomeSelect.asp?State=NY1%7CNew+York+-+Upstate&Type=County&County=33060%7CChautauqua So I use href="http://www.ipro.org/redirect.php?redir=http://www.medicare.gov/NHCompare/Search/HomeSelect.asp?State=NY1%7CNew+York+-+Upstate&Type=County&County=33060%7CChautauqua" which counts the click and forwards the user (except for stopping at "&Upstate") but you're saying now I would need ... href="http://www.ipro.org/redirect.php?redir=" ... for each link? >>> sklar at sklar.com 01/09/03 03:02PM >>> Use urlencode() to encode the URLs being passed to the link tracker. E.g. do this: $redir = 'http://www.domain.com?state=ny&county=kings'; print 'click here.'; Instead of this: $redir = 'http://www.domain.com?state=ny&county=kings'; print 'click here.'; -dave > -----Original Message----- > From: Jaz-Michael King [mailto:JMKing at ipro.org] > Sent: Thursday, January 09, 2003 2:39 PM > To: NYPHP Talk > Subject: [nycphp-talk] including an & in a variable > > > hi all > > I'm trying to pass a bunch of long urls to a script as a link tracker > but the urls contain ampersands. so, if I want to track the link > www.domain.com?state=ny&county=kings > > my script stops at the ampersand - I assume I have to escape it somehow? > > if (!isset($redir)) > die("Sorry, that link is bad. Please go back and try a > different link."); > > if (!isset($referrer)) { > if (!isset($HTTP_REFERER)) { > $referrer = "none"; > } else { > $referrer = $HTTP_REFERER; > }; > }; > > if (!isset($REMOTE_ADDR)) { > $remotehost = "no client address"; > } else { > $remotehost = $REMOTE_ADDR; > }; > > $timeused = date("Y-m-d H:i:s",time()); > > @mysql_db_query($db_data , "insert into $db_table > values('$redir','$referrer', > '$remotehost','$timeused')"); > > Header("Location: $redir"); > exit; > > thanks much, > jaz > > ****************************** > Jaz-Michael King > Online Services Manager > IPRO > http://ipro.org > ****************************** > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From sklar at sklar.com Thu Jan 9 15:44:11 2003 From: sklar at sklar.com (David Sklar) Date: Thu, 9 Jan 2003 15:44:11 -0500 Subject: [nycphp-talk] including an & in a variable In-Reply-To: Message-ID: Yes. Although I suppose if you had your content in a difficult-to-edit format, or had thousands and thousands of links, you could do something like: This captures the page into $page using output buffering and then encodes the URLs with preg_replace() and urlencode. It assumes that there are no single or double quotes in the URLs that need to be encoding. You should doublecheck my preg_replace() regex syntax -- I haven't tested this code. -dave > -----Original Message----- > From: Jaz-Michael King [mailto:JMKing at ipro.org] > Sent: Thursday, January 09, 2003 3:32 PM > To: talk at nyphp.org; sklar at sklar.com > Subject: RE: [nycphp-talk] including an & in a variable > > > So right now I have to point to dozens of pages like thi sone: > http://www.medicare.gov/NHCompare/Search/HomeSelect.asp?State=NY1% > 7CNew+York+-+Upstate&Type=County&County=33060%7CChautauqua > > So I use > > href="http://www.ipro.org/redirect.php?redir=http://www.medicare.g ov/NHCompare/Search/HomeSelect.asp?State=NY1%7CNew+York+-> +Upstate&Type=County&County=33060%7CChautauqua" > > which counts the click and forwards the user (except for stopping > at "&Upstate") > > but you're saying now I would need > $redir = > 'http://www.medicare.gov/NHCompare/Search/HomeSelect.asp?State=NY1 > %7CNew+York+-+Upstate&Type=County&County=33060%7CChautauqua' > ?> > ... > href="http://www.ipro.org/redirect.php?redir=" > ... > > for each link? > > > >>> sklar at sklar.com 01/09/03 03:02PM >>> > Use urlencode() to encode the URLs being passed to the link tracker. > > E.g. do this: > > $redir = 'http://www.domain.com?state=ny&county=kings'; > print 'click here.'; > > Instead of this: > > $redir = 'http://www.domain.com?state=ny&county=kings'; > print 'click here.'; > > > -dave > > > > -----Original Message----- > > From: Jaz-Michael King [mailto:JMKing at ipro.org] > > Sent: Thursday, January 09, 2003 2:39 PM > > To: NYPHP Talk > > Subject: [nycphp-talk] including an & in a variable > > > > > > hi all > > > > I'm trying to pass a bunch of long urls to a script as a link tracker > > but the urls contain ampersands. so, if I want to track the link > > www.domain.com?state=ny&county=kings > > > > my script stops at the ampersand - I assume I have to escape it somehow? > > > > if (!isset($redir)) > > die("Sorry, that link is bad. Please go back and try a > > different link."); > > > > if (!isset($referrer)) { > > if (!isset($HTTP_REFERER)) { > > $referrer = "none"; > > } else { > > $referrer = $HTTP_REFERER; > > }; > > }; > > > > if (!isset($REMOTE_ADDR)) { > > $remotehost = "no client address"; > > } else { > > $remotehost = $REMOTE_ADDR; > > }; > > > > $timeused = date("Y-m-d H:i:s",time()); > > > > @mysql_db_query($db_data , "insert into $db_table > > values('$redir','$referrer', > > '$remotehost','$timeused')"); > > > > Header("Location: $redir"); > > exit; > > > > thanks much, > > jaz > > > > ****************************** > > Jaz-Michael King > > Online Services Manager > > IPRO > > http://ipro.org > > ****************************** > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From ejp at well.com Thu Jan 9 18:02:31 2003 From: ejp at well.com (Edward Potter) Date: Thu, 9 Jan 2003 18:02:31 -0500 Subject: [nycphp-talk] PHP Blogger In-Reply-To: <200301090458.h094wYSt033060@parsec.nyphp.org> Message-ID: <6E99A565-2426-11D7-9E10-000393BF8A42@well.com> It's my understanding that Moveable Type took 2 full-time programmers about a year to get online. I guess you can write your own as a php learning experience, on the other hand, you may want to just take theirs and and use that time to master Linux internals, or some other way out thing. :-) I believe this dialog (roll your own, or use what's out there) came up on slashdot awhile back, my favorite response was: "Dude, real programmers write their own OS'es" :-) -- ed On Wednesday, January 8, 2003, at 11:58 PM, Bradley Baumann wrote: > The best is always yours. Try writing one yourself... > If time is a big concern, however, I'm not sure what 3rd party script > is the > best one... There are a lot out there though... try google =) > -Bradley > > ----- Original Message ----- > From: "Weston Houghton" > To: "NYPHP Talk" > Sent: Wednesday, January 08, 2003 11:01 PM > Subject: [nycphp-talk] PHP Blogger > > >> >> Any quick recommendations on the best blogging system implemented in >> PHP? >> >> Cheers, >> Wes >> >> >> >> >> >> > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From soazine at erols.com Thu Jan 9 21:45:36 2003 From: soazine at erols.com (Phil Powell) Date: Thu, 9 Jan 2003 21:45:36 -0500 Subject: mysql_num_rows() error Message-ID: <013101c2b852$5b2cd8d0$2aaf6244@scandinawa1bo6> > Anyone know why this is happening? I have mySQL on Win2000 Server with IIS > and PHP: > > mysql_num_rows(): supplied argument is not a valid MySQL result resource > > Here is my code: > > $conn = mysql_connect('localhost', "xxx", "yyy") or die('Could not connect > to db'); > $result = mysql_query('select * from blah'); > echo "Number of rows: " . mysql_num_rows($result); > if (mysql_num_rows($result) > 0) { > while ($row = mysql_fetch_row($result)) { > for ($i = 0; $i < sizeOf($row); $i++) { > echo "$i: " . $row[$i] . "
"; > } > } > } > ?> > > It couldn't get any simpler. I just installed mySQL on my machine and am > trying to see what I can do with it giving Win2K and IIS. > > AUGH! Thanx > Phil > From bradley at bestweb.net Thu Jan 9 22:25:14 2003 From: bradley at bestweb.net (Bradley Baumann) Date: Thu, 9 Jan 2003 22:25:14 -0500 Subject: [nycphp-talk] mysql_num_rows error References: <200301100248.h0A2m8St040190@parsec.nyphp.org> Message-ID: <002401c2b857$e3f9a710$0300a8c0@prophxp> I have a feeling that your query isn't being executed properly. add an "or die"... example : $sql = 'SELECT * FROM blah'; $result = mysql_query($sql) or die(mysql_error()); ...rest of code... -Bradley Baumann ----- Original Message ----- From: "Phil Powell" To: "NYPHP Talk" Sent: Thursday, January 09, 2003 9:48 PM Subject: [nycphp-talk] mysql_num_rows error > > Anyone know why this is happening? I have mySQL on Win2000 Server with IIS > > and PHP: > > > > mysql_num_rows(): supplied argument is not a valid MySQL result resource > > > > Here is my code: > > > > > $conn = mysql_connect('localhost', "xxx", "yyy") or die('Could not > connect > > to db'); > > $result = mysql_query('select * from blah'); > > echo "Number of rows: " . mysql_num_rows($result); > > if (mysql_num_rows($result) > 0) { > > while ($row = mysql_fetch_row($result)) { > > for ($i = 0; $i < sizeOf($row); $i++) { > > echo "$i: " . $row[$i] . "
"; > > } > > } > > } > > ?> > > > > It couldn't get any simpler. I just installed mySQL on my machine and am > > trying to see what I can do with it giving Win2K and IIS. > > > > AUGH! Thanx > > Phil > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From phplist at jaydouglas.com Thu Jan 9 22:25:23 2003 From: phplist at jaydouglas.com (Jay \(PHP List\)) Date: Thu, 9 Jan 2003 20:25:23 -0700 Subject: [PHP] mysql_num_rows() error In-Reply-To: <013101c2b852$5b2cd8d0$2aaf6244@scandinawa1bo6> Message-ID: <006101c2b857$e9877770$4101a8c0@mine> You query is incorrect. Try doing the same query from the MySQL clent. |-> -----Original Message----- |-> From: Phil Powell [mailto:soazine at erols.com] |-> Sent: Thursday, January 09, 2003 7:46 PM |-> To: php-general at lists.php.net; talk at nyphp.org |-> Subject: [PHP] mysql_num_rows() error |-> |-> |-> > Anyone know why this is happening? I have mySQL on |-> Win2000 Server with |-> > IIS and PHP: |-> > |-> > mysql_num_rows(): supplied argument is not a valid MySQL result |-> > resource |-> > |-> > Here is my code: |-> > |-> > > $conn = mysql_connect('localhost', "xxx", "yyy") or |-> die('Could not |-> connect |-> > to db'); |-> > $result = mysql_query('select * from blah'); |-> > echo "Number of rows: " . mysql_num_rows($result); |-> > if (mysql_num_rows($result) > 0) { |-> > while ($row = mysql_fetch_row($result)) { |-> > for ($i = 0; $i < sizeOf($row); $i++) { |-> > echo "$i: " . $row[$i] . "
"; |-> > } |-> > } |-> > } |-> > ?> |-> > |-> > It couldn't get any simpler. I just installed mySQL on |-> my machine and |-> > am trying to see what I can do with it giving Win2K and IIS. |-> > |-> > AUGH! Thanx |-> > Phil |-> > |-> |-> |-> -- |-> PHP General Mailing List (http://www.php.net/) |-> To unsubscribe, visit: http://www.php.net/unsub.php |-> |-> From cthorn at wt.net Thu Jan 9 21:49:31 2003 From: cthorn at wt.net (cthorn) Date: Fri, 10 Jan 2003 02:49:31 GMT Subject: [nycphp-talk] DB connection - web vs. command line? Message-ID: <3e1e42cb.761a.1804289383@wt.net> Install myodbc for windows and export the tables and data to a mysql db... MyODBC http://www.mysql.com/downloads/api-myodbc-2.50.html A better way would be to port your access schema to mysql and use myodbc to link to the mysql tables and create queries in access to move data. > Hi everyone, > > After struggling with Windows all these years, I'm finally > learning PHP and My SQL on Linux/Apache. Unfortunately, I > have some data that I need to get to, that is in an MS > Access database. Is it possible to access Access via PHP? > Alternatively, is there a way to transform Access to > MySQL instead? Any links to additional info would be > appreciated! > Thanks, > > Bill > > -----Original Message----- > From: Freedman, Tom S. [mailto:tfreedma at ubspw.com] > Sent: Thursday, January 09, 2003 2:42 PM > To: NYPHP Talk > Subject: [nycphp-talk] DB connection - web vs. command > line? > > Hi all, > > I've run into another weird one. I'm using PHP 4.1.2 to > connect to SQL Server 2000. If I run the page from IIS, > it connects to the DB just fine and runs a stored > procedure. If I execute the same page via the command > line, it dies on the connection attempt (mssql_connect()). > Anyone run into something like this? I can't figure out > why they'd behave differently. > > Thanks in advance! > Tom > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From tech_learner at yahoo.com Thu Jan 9 23:46:30 2003 From: tech_learner at yahoo.com (Tracy) Date: Thu, 9 Jan 2003 20:46:30 -0800 (PST) Subject: [nycphp-talk] mysql_num_rows error In-Reply-To: <200301100248.h0A2m8St040190@parsec.nyphp.org> Message-ID: <20030110044630.51832.qmail@web14306.mail.yahoo.com> Hi, try if it works this way... $num_rows = mysql_num_rows($result); echo " Number of rows: $num_rows \ "; Tracy ~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From chun_lam at hotmail.com Fri Jan 10 00:36:18 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Fri, 10 Jan 2003 00:36:18 -0500 Subject: [nycphp-talk] Installing PHP on Mac OS X Server Message-ID: I answer this one before. I think you need to put AddModule mod_php4.c to the AddModule section on httpd.conf ----Original Message Follows---- From: Matthew Zimmerman Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] Installing PHP on Mac OS X Server Date: Tue, 7 Jan 2003 17:14:17 -0500 Received: from mc3-f13.law16.hotmail.com ([65.54.236.148]) by mc3-s3.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 7 Jan 2003 14:17:47 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc3-f13.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 7 Jan 2003 14:17:19 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h07MEHSt023399;Tue, 7 Jan 2003 17:14:17 -0500 (EST)(envelope-from listmaster at nyphp.org) Message-Id: <200301072214.h07MEHSt023399 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: listmaster at nyphp.org X-OriginalArrivalTime: 07 Jan 2003 22:17:19.0681 (UTC) FILETIME=[8B396B10:01C2B69A] Yeah, I figure that too Bradely. I replace the httpd.conf with the backup config file and stared from scratch again, three times, and I keep getting the same error. Like I said, I also go to Marc's site a lot and do the same exact thing and it always works so I cant' for life figure out what I did wrong. This is my first time doing it on OS X server though. I have just done it on OS X before. I know OS X server ships with PHP installed, but I wanted the full version. Matt On Tuesday, January 7, 2003, at 04:51 PM, Bradley Baumann wrote: > Matt, > I highly doubt that it is in the order matters... if apache is > giving an > error because it can't load PHP it's probably something because you > forgot > to do something, or something isn't in there right... > Check this step of the PHP installation with Apache out : > ---------------------------------------------------------------------- > > 14. Edit your httpd.conf or srm.conf file and check that these lines > are > present and not commented out: > > AddType application/x-httpd-php .php > > LoadModule php4_module libexec/libphp4.so > > You can choose any extension you wish here. .php is simply the one > we suggest. You can even include .html, and .php3 can be added for > backwards compatibility. > > The path on the right hand side of the LoadModule statement must > point > to the path of the PHP module on your system. The above statement is > correct for the steps shown above. > ----------------------------------------------------------------------- > - > Full Text: http://www.php.net/manual/en/install.apache.php > > Hope that helps. > -Bradley > > > > > ----- Original Message ----- > From: "Larry Chuon" > To: "NYPHP Talk" > Sent: Tuesday, January 07, 2003 4:29 PM > Subject: RE: [nycphp-talk] Installing PHP on Mac OS X Server > > >> At the bottom of this post >> (http://www.ossuite.org/phpbb/viewtopic.php?t=29), it has a specific >> on > OSX. >> It might have the answer to your problem in regard to httpd.conf. >> >> Did you do this? >> >> on Mac OS X: >> >> vi /etc/httpd/httpd.conf >> >> Find the following and make sure it is in this order: >> >> >> DirectoryIndex default.php index.php index.htm index.html >> >> >> -----Original Message----- >> From: Matthew Zimmerman [mailto:mz34 at nyu.edu] >> Sent: Tuesday, January 07, 2003 4:18 PM >> To: NYPHP Talk >> Subject: [nycphp-talk] Installing PHP on Mac OS X Server >> >> Hi gang, >> >> Got a new Mac X Serv and am installing MySQL and PHP. >> >> I use the downloads and instructions from www.entropy.ch. Always had >> success with these, but I am having a problem I haven't had before. >> >> I follow all of Marcs instructions then type the final command: >> >> sudo apachectl graceful >> >> I get an error >> >> /usr/bin/apachectl graceful: configuration broken, ignoring restart >> /usr/bin/apachectl graceful: (run 'apacectl configtest' for details) >> >> >> when I run the configtest I get the message >> >> syntax error on line 369 of /etc/httpd/httd.conf >> Cannot add module via name 'mod.php4.c': not in list of loaded >> modules. >> >> >> I will of course open up the config file and look at it, but I thought >> if someone had come across this problem before they could tell me what >> the fix is. >> >> matt >> >> >> >> >> >> >> >> >> > > > > > > > MZ _________________ Matthew Zimmerman Humanities Computing Group, NYU Tel: 212.998.3038 Fax: 212.995.4120 --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From chun_lam at hotmail.com Fri Jan 10 00:37:41 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Fri, 10 Jan 2003 00:37:41 -0500 Subject: [nycphp-talk] Message arrived Message-ID: This message arrived thing must be stop. My email account is filled with this. Matthew ----Original Message Follows---- From: "dporcher " Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] Message arrived Date: Tue, 7 Jan 2003 17:15:19 -0500 Received: from mc7-f22.law1.hotmail.com ([65.54.253.29]) by mc7-s19.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 7 Jan 2003 14:19:02 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc7-f22.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 7 Jan 2003 14:18:04 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h07MFJSt023417;Tue, 7 Jan 2003 17:15:19 -0500 (EST)(envelope-from listmaster at nyphp.org) Message-Id: <200301072215.h07MFJSt023417 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: listmaster at nyphp.org X-OriginalArrivalTime: 07 Jan 2003 22:18:05.0095 (UTC) FILETIME=[A64B0B70:01C2B69A] Message arrived --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus From tech_learner at yahoo.com Fri Jan 10 00:45:55 2003 From: tech_learner at yahoo.com (Tracy) Date: Thu, 9 Jan 2003 21:45:55 -0800 (PST) Subject: [nycphp-talk] DB connection - web vs. command line? In-Reply-To: <200301100340.h0A3etSt040492@parsec.nyphp.org> Message-ID: <20030110054555.54482.qmail@web14304.mail.yahoo.com> HI, http://www.mysql.com/portal/software/item-190.html see if this helps. i have tried and ported data from mysql to access using mysql import. havent tried the other way round. was about. so in case u hit some gud shortcuts plz pass teh word on... Tracy cthorn wrote:Install myodbc for windows and export the tables and data to a mysql db... MyODBC http://www.mysql.com/downloads/api-myodbc-2.50.html A better way would be to port your access schema to mysql and use myodbc to link to the mysql tables and create queries in access to move data. > Hi everyone, > > After struggling with Windows all these years, I'm finally > learning PHP and My SQL on Linux/Apache. Unfortunately, I > have some data that I need to get to, that is in an MS > Access database. Is it possible to access Access via PHP? > Alternatively, is there a way to transform Access to > MySQL instead? Any links to additional info would be > appreciated! > Thanks, > > Bill > > -----Original Message----- > From: Freedman, Tom S. [mailto:tfreedma at ubspw.com] > Sent: Thursday, January 09, 2003 2:42 PM > To: NYPHP Talk > Subject: [nycphp-talk] DB connection - web vs. command > line? > > Hi all, > > I've run into another weird one. I'm using PHP 4.1.2 to > connect to SQL Server 2000. If I run the page from IIS, > it connects to the DB just fine and runs a stored > procedure. If I execute the same page via the command > line, it dies on the connection attempt (mssql_connect()). > Anyone run into something like this? I can't figure out > why they'd behave differently. > > Thanks in advance! > Tom > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From chun_lam at hotmail.com Fri Jan 10 00:54:21 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Fri, 10 Jan 2003 00:54:21 -0500 Subject: [nycphp-talk] help Message-ID: You can exchange from PHP to Javascript but not vice-versa. If that is what you want, by all means do it. Otherwise, you have to try something else. ----Original Message Follows---- From: Hans Zaunere Reply-To: talk at nyphp.org To: NYPHP Talk Subject: RE: [nycphp-talk] help Date: Wed, 8 Jan 2003 13:24:14 -0500 Received: from mc8-f42.law1.hotmail.com ([65.54.253.178]) by mc8-s8.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 8 Jan 2003 10:31:41 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc8-f42.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 8 Jan 2003 10:31:41 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h08IOFSt029825;Wed, 8 Jan 2003 13:24:15 -0500 (EST)(envelope-from listmaster at nyphp.org) Message-Id: <200301081824.h08IOFSt029825 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: listmaster at nyphp.org X-OriginalArrivalTime: 08 Jan 2003 18:31:41.0803 (UTC) FILETIME=[306EEBB0:01C2B744] --- Dan Horning wrote: > With what can we help you? Ick, the mail parser has been stricking out lately, sorry folks (someone change the RFC again? :) I've included the original message below, with Tracy's attached files available online as noted. Hans > This message contained 2 file(s) and is available at > http://nyphp.org/list/paralist_archive.php?L_mid=2180 > > Hi, > > I am tring to sort the table that shows the contents in my user table. i > haev been able to sort on the basis of age and gender. i have tried for > name but if i use the persent syntax, i get only their first names meaning > title (MR. or MRS or MS) is chopped off. i want to know if its possible to > arrange as: Mrs. A, Mr. B, Ms. C instead of wot i have now : just A, B, C. > also i am unsure as to how i have the sorting functions called. i thought > including it as buttons in the table header and invoke onClick. but i dont > know how to switch from php to _javascript ie mix the two and exchange > values. the second option was to try to use links to re-load the page > ($php_self). > > which would be better, can any one suggest an optimum method to achive the > desired results? > > Regards, > Tracy --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From soazine at erols.com Fri Jan 10 03:18:16 2003 From: soazine at erols.com (Phil Powell) Date: Fri, 10 Jan 2003 03:18:16 -0500 Subject: fsockopen() to remote URL: what if remote URL "times out"? Message-ID: <000a01c2b880$d3dd1000$2aaf6244@scandinawa1bo6> I have a question about the usage of fsockopen() to open and "scrape" the contents of a remote URL: if the contents take a very long time to load on the remote URL either due to server or coding issues, is there a way for the socket on the PHP end to time out, that is, quit trying to "scrape" contents from the remote site and post a default message instead? Just wondering Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From soazine at erols.com Fri Jan 10 03:19:15 2003 From: soazine at erols.com (Phil Powell) Date: Fri, 10 Jan 2003 03:19:15 -0500 Subject: [nycphp-talk] mysql_num_rows error References: <200301100323.h0A3NWSt040384@parsec.nyphp.org> Message-ID: <001201c2b880$f740f7f0$2aaf6244@scandinawa1bo6> Ok will give it a shot, thanx! Phil ----- Original Message ----- From: "Bradley Baumann" To: "NYPHP Talk" Sent: Thursday, January 09, 2003 10:23 PM Subject: Re: [nycphp-talk] mysql_num_rows error > I have a feeling that your query isn't being executed properly. > add an "or die"... example : > > $sql = 'SELECT * FROM blah'; > $result = mysql_query($sql) > or die(mysql_error()); > > ..rest of code... > > -Bradley Baumann > > ----- Original Message ----- > From: "Phil Powell" > To: "NYPHP Talk" > Sent: Thursday, January 09, 2003 9:48 PM > Subject: [nycphp-talk] mysql_num_rows error > > > > > Anyone know why this is happening? I have mySQL on Win2000 Server with > IIS > > > and PHP: > > > > > > mysql_num_rows(): supplied argument is not a valid MySQL result resource > > > > > > Here is my code: > > > > > > > > $conn = mysql_connect('localhost', "xxx", "yyy") or die('Could not > > connect > > > to db'); > > > $result = mysql_query('select * from blah'); > > > echo "Number of rows: " . mysql_num_rows($result); > > > if (mysql_num_rows($result) > 0) { > > > while ($row = mysql_fetch_row($result)) { > > > for ($i = 0; $i < sizeOf($row); $i++) { > > > echo "$i: " . $row[$i] . "
"; > > > } > > > } > > > } > > > ?> > > > > > > It couldn't get any simpler. I just installed mySQL on my machine and > am > > > trying to see what I can do with it giving Win2K and IIS. > > > > > > AUGH! Thanx > > > Phil > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From maxim at php.net Fri Jan 10 06:17:06 2003 From: maxim at php.net (Maxim Maletsky) Date: Fri, 10 Jan 2003 12:17:06 +0100 Subject: [PHP] fsockopen() to remote URL: what if remote URL "times out"? In-Reply-To: <000a01c2b880$d3dd1000$2aaf6244@scandinawa1bo6> References: <000a01c2b880$d3dd1000$2aaf6244@scandinawa1bo6> Message-ID: <20030110121404.5D18.MAXIM@php.net> "Phil Powell" wrote... : > I have a question about the usage of fsockopen() to open and "scrape" the contents of a remote URL: if the contents take a very long time to load on the remote URL either due to server or coding issues, is there a way for the socket on the PHP end to time out, that is, quit trying to "scrape" contents from the remote site and post a default message instead? Yes, it is the last parameter of the fsockopen() function. Normally, it will be set to something like 30 seconds, you might adjust it to whatever you like. After that time you will get error 110 which means "Connection timed out". Additionally, if you set anything over 30 seconds, you might also consider altering the execution time limit for the php script itself. -- Maxim Maletsky maxim at php.net From fields at surgam.net Fri Jan 10 09:47:13 2003 From: fields at surgam.net (Adam Fields) Date: Fri, 10 Jan 2003 09:47:13 -0500 Subject: [nycphp-talk] fsockopen to remote URL: what if remote URL "times out"? In-Reply-To: <200301100820.h0A8KmSt042272@parsec.nyphp.org> References: <200301100820.h0A8KmSt042272@parsec.nyphp.org> Message-ID: <20030110144712.GB4908@eye.surgam.net> On Fri, Jan 10, 2003 at 03:20:48AM -0500, Phil Powell wrote: > I have a question about the usage of fsockopen() to open and "scrape" the contents of a remote URL: if the contents take a very long time to load on the remote URL either due to server or coding issues, is there a way for the socket on the PHP end to time out, that is, quit trying to "scrape" contents from the remote site and post a default message instead? > There are two ways to do this. You can specify a timeout value as the fifth arg to fsockopen. This is the timeout for the connection itself. You can also use stream_set_timeout once the socket is open. -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From MLynn at exchange.ml.com Fri Jan 10 10:45:16 2003 From: MLynn at exchange.ml.com (Lynn, Michael (DCS)) Date: Fri, 10 Jan 2003 10:45:16 -0500 Subject: fsockopen / scrape / html mail Message-ID: <8FA07D8665A9D511B80E00B0D068A1510293ABBE@ehope16.hew.us.ml.com> While the fsockopen / scrape issue is hot... I have a Newsletter mailing script that uses fsockopen to do just as you say: Scrape a url and mail the contents to a list of recipients. The only problem is that if I mail this to a user that doesn't have access to the original url, the resultant email will contain only text with errant referances to the images. This is because the email merely contains hrefs and src's back to the original server. Is anyone aware of how to scrape and grab content and mail it so that the email is wholey contained and independent of the original url/server? aTdHvAaNnKcSe, Mike From andrew at digitalpulp.com Fri Jan 10 11:39:58 2003 From: andrew at digitalpulp.com (Andrew M. Yochum) Date: Fri, 10 Jan 2003 11:39:58 -0500 (EST) Subject: [nycphp-talk] fsockopen / scrape / html mail In-Reply-To: <200301101545.h0AFjTSt044492@parsec.nyphp.org> Message-ID: On Fri, 10 Jan 2003, Lynn, Michael wrote: > While the fsockopen / scrape issue is hot... > > I have a Newsletter mailing script that uses fsockopen to do just as you say: > Scrape a url and mail the contents to a list of recipients. > > The only problem is that if I mail this to a user that doesn't have access to the original url, the resultant email will contain only text with errant referances to the images. This is because the > email merely contains hrefs and src's back to the original server. > > Is anyone aware of how to scrape and grab content and mail it so that the email is wholey contained and independent of the original url/server? I'm not sure how you would include the images as attachments for use in HTML in the email. You could drop them on a server that the user does have access to and refer to them in the email. Here are a few ideas to get you on your way in either case.. A. Parse the HTML and retrieve the files yourself. B. Using lynx: If you exec lynx on a page with the -dump and -image_links options, it will render the HTML to plain text for you, and at the end list all URLs and images referred to in the document. You could parse this list and use to retrieve each image required. (Much simpler parsing than in A) C. Using wget: Using the --page-requisites will cause wget to grab all other files required to render the page locally. (No parsing!) So once you've got your required files, then you have to get them to the email recipient. You could drop them on a server they do have access to. Or figure out how to attach them in an email and refer to them in an HTML email. I know the latter is possible, although I have not done it myself. Hope that helps. Regards, Andrew -- Andrew Yochum Digital Pulp, Inc. 212.679.0676x255 andrew at digitalpulp.com From matt at reconstrukt.com Fri Jan 10 01:44:20 2003 From: matt at reconstrukt.com (Matthew Knight) Date: Fri, 10 Jan 2003 01:44:20 -0500 Subject: Wanted - osCommerce Guru! In-Reply-To: <200301101640.h0AGe5St044825@parsec.nyphp.org> Message-ID: <001501c2b873$b4dedf10$4501a8c0@reconstrukt.com> In need of an osCommerce guru ASAP. Candidate will need to be well-versed in osCommerce (through past experience and/or through the oscdox.com documentation), PHP, SSL, and the installing of certificates on a remote server; and have managed and/or completed at least one install/mod of osCommerce on a remote server. This is obviously a paying gig. Email your links/creds/rate to matt at reconstukt.com, and if you're the person we're looking for, I'll send you everything else you need to know - including the design mockups, the mod requirements/writeups/code snippets, and SSL requirements for the osC install. Thanks! Matthew Knight *************************** Matthew Knight Reconstrukt, LLC P.O. Box 334 Larchmont, NY 10538 www.reconstrukt.com matt at reconstrukt.com 24-hr fax/fon: 866.212.1700 From chun_lam at hotmail.com Fri Jan 10 21:22:29 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Fri, 10 Jan 2003 21:22:29 -0500 Subject: [nycphp-talk] XML File does not reflect changes upon reopen - HELP Message-ID: This sounded like because the page was cached. Maybe try using socket and read in that way if you are not using a proxy server. Matthew ----Original Message Follows---- From: "Phil Powell" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] XML File does not reflect changes upon reopen - HELP Date: Thu, 9 Jan 2003 01:53:40 -0500 Received: from mc7-f11.law1.hotmail.com ([65.54.253.18]) by mc7-s8.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 8 Jan 2003 22:58:18 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc7-f11.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 8 Jan 2003 22:58:18 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h096reSt033750;Thu, 9 Jan 2003 01:53:40 -0500 (EST)(envelope-from listmaster at nyphp.org) Message-Id: <200301090653.h096reSt033750 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: listmaster at nyphp.org X-OriginalArrivalTime: 09 Jan 2003 06:58:18.0296 (UTC) FILETIME=[7D394B80:01C2B7AC] if ($isValid) { $cgi = '/cgi-bin'; if (strpos($HTTP_HOST, 'dyndns') === false) $cgi .= '/cgiwrap/ppowell'; $fileID = fopen("http://$SERVER_NAME$cgi/pollinsert.cgi?pollID=$pollID&answerID=$answerID&valIdentifier=" . urlencode($valIdentifier) . "&lastPollResultsID=" . ($pollResultsArray[sizeOf($pollResultsArray) - 2][attributes][ID] + 1), 'r') or die('Could not open CGI'); $result = fread($fileID, 100000); fclose($fileID); if (trim(strtoupper($result)) != 'DONE') die ("Problem with TCL CGI writing to file: $result"); // RE-PARSE XML CONTENTS SINCE ADDING NEW POLL ANSWER unset($pollResultsArray); unset($pollResultsXMLStuff); $fileID = fopen('/users/ppowell/web/xml/pollresults.xml', 'r') or die('Could not reopen file'); $pollResultsXMLStuff = fread($fileID, filesize('/users/ppowell/web/xml/pollresults.xml')); fclose($fileID); $parser = xml_parser_create(); xml_parse_into_struct($parser, $pollResultsXMLStuff, $pollResultsArray, $tags); xml_parser_free($parser); } else { // REDIRECT BACK TO POLL IF header("Location: http://$SERVER_NAME/poll/poll.php?pollID=$pollID&errorMsg=" . urlencode($errorMsg)); } // END OF FORM PLACEMENT } I am making changes to an XML file (and the only way I can, unless anyone knows how in PHP I can write TO an XML file!!! is to use a TCL CGI script to write to the XML file), once changes have been made I need to reopen the file and read its contents, however, every time I do I am getting OLD file information and NOT my changes, every single time, unless I refresh my page... Does anyone know what I can do about this? I can't redirect them, that would be horribly inefficient.. what can I do? Thanx Phil --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From chun_lam at hotmail.com Fri Jan 10 22:02:38 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Fri, 10 Jan 2003 22:02:38 -0500 Subject: [nycphp-talk] including an & in a variable Message-ID: Look up commands: htmlentities htmlspecialchars strtr ----Original Message Follows---- From: "Jaz-Michael King" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] including an & in a variable Date: Thu, 9 Jan 2003 14:38:41 -0500 Received: from mc8-f9.law1.hotmail.com ([65.54.253.145]) by mc8-s17.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 9 Jan 2003 11:49:09 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc8-f9.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 9 Jan 2003 11:49:08 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h09JcfSt037807;Thu, 9 Jan 2003 14:38:41 -0500 (EST)(envelope-from listmaster at nyphp.org) Message-Id: <200301091938.h09JcfSt037807 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: listmaster at nyphp.org X-OriginalArrivalTime: 09 Jan 2003 19:49:08.0843 (UTC) FILETIME=[2CB2B3B0:01C2B818] hi all I'm trying to pass a bunch of long urls to a script as a link tracker but the urls contain ampersands. so, if I want to track the link www.domain.com?state=ny&county=kings my script stops at the ampersand - I assume I have to escape it somehow? if (!isset($redir)) die("Sorry, that link is bad. Please go back and try a different link."); if (!isset($referrer)) { if (!isset($HTTP_REFERER)) { $referrer = "none"; } else { $referrer = $HTTP_REFERER; }; }; if (!isset($REMOTE_ADDR)) { $remotehost = "no client address"; } else { $remotehost = $REMOTE_ADDR; }; $timeused = date("Y-m-d H:i:s",time()); @mysql_db_query($db_data , "insert into $db_table values('$redir','$referrer', '$remotehost','$timeused')"); Header("Location: $redir"); exit; thanks much, jaz ****************************** Jaz-Michael King Online Services Manager IPRO http://ipro.org ****************************** --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From chun_lam at hotmail.com Fri Jan 10 22:05:35 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Fri, 10 Jan 2003 22:05:35 -0500 Subject: [nycphp-talk] DB connection - web vs. command line? Message-ID: Sounds like you are using 2 different PHP. One to run on the web server and the other run on the command line. If this is the case, you might have to change the setting for the command line PHP. Matthew ----Original Message Follows---- From: "Freedman, Tom S." Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] DB connection - web vs. command line? Date: Thu, 9 Jan 2003 14:42:16 -0500 Received: from mc10-f17.bay6.hotmail.com ([65.54.166.153]) by mc10-s9.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 9 Jan 2003 11:50:42 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc10-f17.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 9 Jan 2003 11:50:41 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h09JgGSt037833;Thu, 9 Jan 2003 14:42:16 -0500 (EST)(envelope-from listmaster at nyphp.org) Message-Id: <200301091942.h09JgGSt037833 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: listmaster at nyphp.org X-OriginalArrivalTime: 09 Jan 2003 19:50:42.0058 (UTC) FILETIME=[64422EA0:01C2B818] Hi all, I've run into another weird one. I'm using PHP 4.1.2 to connect to SQL Server 2000. If I run the page from IIS, it connects to the DB just fine and runs a stored procedure. If I execute the same page via the command line, it dies on the connection attempt (mssql_connect()). Anyone run into something like this? I can't figure out why they'd behave differently. Thanks in advance! Tom --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus From chun_lam at hotmail.com Fri Jan 10 22:07:50 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Fri, 10 Jan 2003 22:07:50 -0500 Subject: [nycphp-talk] DB connection - web vs. command line? Message-ID: try using ODBC and transfer the data to MySql. Then use it from there. Matthew ----Original Message Follows---- From: "Kamm, William R , SOLIT" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: RE: [nycphp-talk] DB connection - web vs. command line? Date: Thu, 9 Jan 2003 14:56:23 -0500 Received: from mc9-f34.bay6.hotmail.com ([65.54.166.41]) by mc9-s17.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 9 Jan 2003 12:10:01 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc9-f34.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 9 Jan 2003 12:10:00 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h09JuNSt037922;Thu, 9 Jan 2003 14:56:23 -0500 (EST)(envelope-from listmaster at nyphp.org) Message-Id: <200301091956.h09JuNSt037922 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: listmaster at nyphp.org X-OriginalArrivalTime: 09 Jan 2003 20:10:01.0221 (UTC) FILETIME=[172C6B50:01C2B81B] Hi everyone, After struggling with Windows all these years, I'm finally learning PHP and My SQL on Linux/Apache. Unfortunately, I have some data that I need to get to, that is in an MS Access database. Is it possible to access Access via PHP? Alternatively, is there a way to transform Access to MySQL instead? Any links to additional info would be appreciated! Thanks, Bill -----Original Message----- From: Freedman, Tom S. [mailto:tfreedma at ubspw.com] Sent: Thursday, January 09, 2003 2:42 PM To: NYPHP Talk Subject: [nycphp-talk] DB connection - web vs. command line? Hi all, I've run into another weird one. I'm using PHP 4.1.2 to connect to SQL Server 2000. If I run the page from IIS, it connects to the DB just fine and runs a stored procedure. If I execute the same page via the command line, it dies on the connection attempt (mssql_connect()). Anyone run into something like this? I can't figure out why they'd behave differently. Thanks in advance! Tom --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From soazine at erols.com Fri Jan 10 22:20:23 2003 From: soazine at erols.com (Phil Powell) Date: Fri, 10 Jan 2003 22:20:23 -0500 Subject: [nycphp-talk] including an & in a variable References: <200301092035.h09KZ8St038195@parsec.nyphp.org> Message-ID: <00b501c2b920$60ebe6c0$2aaf6244@scandinawa1bo6> In the links you would want to wrap them around the htmlentities() function that returns an HTML-escaped string. I'm not sure about htmlspecialchars() though.. Phil ----- Original Message ----- From: "Jaz-Michael King" To: "NYPHP Talk" Sent: Thursday, January 09, 2003 3:35 PM Subject: RE: [nycphp-talk] including an & in a variable > So right now I have to point to dozens of pages like thi sone: > http://www.medicare.gov/NHCompare/Search/HomeSelect.asp?State=NY1%7CNew+York +-+Upstate&Type=County&County=33060%7CChautauqua > > So I use > > href="http://www.ipro.org/redirect.php?redir=http://www.medicare.gov/NHCompa re/Search/HomeSelect.asp?State=NY1%7CNew+York+-+Upstate&Type=County&County=3 3060%7CChautauqua" > > which counts the click and forwards the user (except for stopping at "&Upstate") > > but you're saying now I would need > $redir = 'http://www.medicare.gov/NHCompare/Search/HomeSelect.asp?State=NY1%7CNew+Yor k+-+Upstate&Type=County&County=33060%7CChautauqua' > ?> > .. > href="http://www.ipro.org/redirect.php?redir=" > .. > > for each link? > > > >>> sklar at sklar.com 01/09/03 03:02PM >>> > Use urlencode() to encode the URLs being passed to the link tracker. > > E.g. do this: > > $redir = 'http://www.domain.com?state=ny&county=kings'; > print 'click here.'; > > Instead of this: > > $redir = 'http://www.domain.com?state=ny&county=kings'; > print 'click here.'; > > > -dave > > > > -----Original Message----- > > From: Jaz-Michael King [mailto:JMKing at ipro.org] > > Sent: Thursday, January 09, 2003 2:39 PM > > To: NYPHP Talk > > Subject: [nycphp-talk] including an & in a variable > > > > > > hi all > > > > I'm trying to pass a bunch of long urls to a script as a link tracker > > but the urls contain ampersands. so, if I want to track the link > > www.domain.com?state=ny&county=kings > > > > my script stops at the ampersand - I assume I have to escape it somehow? > > > > if (!isset($redir)) > > die("Sorry, that link is bad. Please go back and try a > > different link."); > > > > if (!isset($referrer)) { > > if (!isset($HTTP_REFERER)) { > > $referrer = "none"; > > } else { > > $referrer = $HTTP_REFERER; > > }; > > }; > > > > if (!isset($REMOTE_ADDR)) { > > $remotehost = "no client address"; > > } else { > > $remotehost = $REMOTE_ADDR; > > }; > > > > $timeused = date("Y-m-d H:i:s",time()); > > > > @mysql_db_query($db_data , "insert into $db_table > > values('$redir','$referrer', > > '$remotehost','$timeused')"); > > > > Header("Location: $redir"); > > exit; > > > > thanks much, > > jaz > > > > ****************************** > > Jaz-Michael King > > Online Services Manager > > IPRO > > http://ipro.org > > ****************************** > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From chun_lam at hotmail.com Fri Jan 10 23:52:48 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Fri, 10 Jan 2003 23:52:48 -0500 Subject: [nycphp-talk] fsockopen / scrape / html mail Message-ID: Why not read it in to a buffer, and then parse the href or src to add the server doc root url in front? What do you think? Matthew ----Original Message Follows---- From: "Lynn, Michael " Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] fsockopen / scrape / html mail Date: Fri, 10 Jan 2003 10:45:29 -0500 Received: from mc10-f12.bay6.hotmail.com ([65.54.166.148]) by mc10-s18.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 10 Jan 2003 07:56:38 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc10-f12.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 10 Jan 2003 07:56:35 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0AFjTSt044492;Fri, 10 Jan 2003 10:45:31 -0500 (EST)(envelope-from listmaster at nyphp.org) Message-Id: <200301101545.h0AFjTSt044492 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: listmaster at nyphp.org X-OriginalArrivalTime: 10 Jan 2003 15:56:37.0477 (UTC) FILETIME=[DB72F150:01C2B8C0] While the fsockopen / scrape issue is hot... I have a Newsletter mailing script that uses fsockopen to do just as you say: Scrape a url and mail the contents to a list of recipients. The only problem is that if I mail this to a user that doesn't have access to the original url, the resultant email will contain only text with errant referances to the images. This is because the email merely contains hrefs and src's back to the original server. Is anyone aware of how to scrape and grab content and mail it so that the email is wholey contained and independent of the original url/server? aTdHvAaNnKcSe, Mike --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus From chun_lam at hotmail.com Fri Jan 10 23:57:57 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Fri, 10 Jan 2003 23:57:57 -0500 Subject: [nycphp-talk] including an & in a variable Message-ID: you don't have to use all 3 commands, just pick the one that will suit your needs. Matthew ----Original Message Follows---- From: "Phil Powell" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] including an & in a variable Date: Fri, 10 Jan 2003 22:22:59 -0500 Received: from mc8-f32.law1.hotmail.com ([65.54.253.168]) by mc8-s1.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 10 Jan 2003 19:27:53 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc8-f32.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 10 Jan 2003 19:27:52 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0B3Mxv6048843;Fri, 10 Jan 2003 22:23:03 -0500 (EST)(envelope-from listmaster at nyphp.org) Message-Id: <200301110323.h0B3Mxv6048843 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: listmaster at nyphp.org X-OriginalArrivalTime: 11 Jan 2003 03:27:52.0708 (UTC) FILETIME=[6C9CF440:01C2B921] In the links you would want to wrap them around the htmlentities() function that returns an HTML-escaped string. I'm not sure about htmlspecialchars() though.. Phil ----- Original Message ----- From: "Jaz-Michael King" To: "NYPHP Talk" Sent: Thursday, January 09, 2003 3:35 PM Subject: RE: [nycphp-talk] including an & in a variable > So right now I have to point to dozens of pages like thi sone: > http://www.medicare.gov/NHCompare/Search/HomeSelect.asp?State=NY1%7CNew+York +-+Upstate&Type=County&County=33060%7CChautauqua > > So I use > > href="http://www.ipro.org/redirect.php?redir=http://www.medicare.gov/NHCompa re/Search/HomeSelect.asp?State=NY1%7CNew+York+-+Upstate&Type=County&County=3 3060%7CChautauqua" > > which counts the click and forwards the user (except for stopping at "&Upstate") > > but you're saying now I would need > $redir = 'http://www.medicare.gov/NHCompare/Search/HomeSelect.asp?State=NY1%7CNew+Yor k+-+Upstate&Type=County&County=33060%7CChautauqua' > ?> > .. > href="http://www.ipro.org/redirect.php?redir=" > .. > > for each link? > > > >>> sklar at sklar.com 01/09/03 03:02PM >>> > Use urlencode() to encode the URLs being passed to the link tracker. > > E.g. do this: > > $redir = 'http://www.domain.com?state=ny&county=kings'; > print 'click here.'; > > Instead of this: > > $redir = 'http://www.domain.com?state=ny&county=kings'; > print 'click here.'; > > > -dave > > > > -----Original Message----- > > From: Jaz-Michael King [mailto:JMKing at ipro.org] > > Sent: Thursday, January 09, 2003 2:39 PM > > To: NYPHP Talk > > Subject: [nycphp-talk] including an & in a variable > > > > > > hi all > > > > I'm trying to pass a bunch of long urls to a script as a link tracker > > but the urls contain ampersands. so, if I want to track the link > > www.domain.com?state=ny&county=kings > > > > my script stops at the ampersand - I assume I have to escape it somehow? > > > > if (!isset($redir)) > > die("Sorry, that link is bad. Please go back and try a > > different link."); > > > > if (!isset($referrer)) { > > if (!isset($HTTP_REFERER)) { > > $referrer = "none"; > > } else { > > $referrer = $HTTP_REFERER; > > }; > > }; > > > > if (!isset($REMOTE_ADDR)) { > > $remotehost = "no client address"; > > } else { > > $remotehost = $REMOTE_ADDR; > > }; > > > > $timeused = date("Y-m-d H:i:s",time()); > > > > @mysql_db_query($db_data , "insert into $db_table > > values('$redir','$referrer', > > '$remotehost','$timeused')"); > > > > Header("Location: $redir"); > > exit; > > > > thanks much, > > jaz > > > > ****************************** > > Jaz-Michael King > > Online Services Manager > > IPRO > > http://ipro.org > > ****************************** > > > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From jkapron at NewAgeWeb.com Sat Jan 11 00:37:00 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Sat, 11 Jan 2003 00:37:00 -0500 Subject: [nycphp-talk] fsockopen / scrape / html mail Message-ID: <002a01c2b933$7774a900$de01a8c0@duron.lan.newageweb.com> >>On Fri, 10 Jan 2003, Lynn, Michael wrote: >> Is anyone aware of how to scrape and grab content and mail it so that the email is wholey contained and independent of the original url/server? ... >On Fri, 10 Jan 2003, Andrew M. Yochum wrote: >I'm not sure how you would include the images as attachments for use in HTML in >the email. ... Michael/Andrew, It's possible to create a self-contained HTML e-mail message with images. I've done this many times. You need to compile a multipart/related MIME document. The images have to be base64 encoded, each as a separate MIME content part. In multipart/related MIME messages each part has it's own unique id specified in the part's MIME headers: Content-ID: Those id's would be used instead of image URI's in the HTML part of the message: The Newsletter / Web Site I'm scraping is on an intranet, the recipients are outside the firewall on the internet. -----Original Message----- From: CHUN-YIU LAM [mailto:chun_lam at hotmail.com] Sent: Friday, January 10, 2003 11:53 PM To: NYPHP Talk Subject: Re: [nycphp-talk] fsockopen / scrape / html mail Why not read it in to a buffer, and then parse the href or src to add the server doc root url in front? What do you think? Matthew ----Original Message Follows---- From: "Lynn, Michael " Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] fsockopen / scrape / html mail Date: Fri, 10 Jan 2003 10:45:29 -0500 Received: from mc10-f12.bay6.hotmail.com ([65.54.166.148]) by mc10-s18.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 10 Jan 2003 07:56:38 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc10-f12.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 10 Jan 2003 07:56:35 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0AFjTSt044492;Fri, 10 Jan 2003 10:45:31 -0500 (EST)(envelope-from listmaster at nyphp.org) Message-Id: <200301101545.h0AFjTSt044492 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: listmaster at nyphp.org X-OriginalArrivalTime: 10 Jan 2003 15:56:37.0477 (UTC) FILETIME=[DB72F150:01C2B8C0] While the fsockopen / scrape issue is hot... I have a Newsletter mailing script that uses fsockopen to do just as you say: Scrape a url and mail the contents to a list of recipients. The only problem is that if I mail this to a user that doesn't have access to the original url, the resultant email will contain only text with errant referances to the images. This is because the email merely contains hrefs and src's back to the original server. Is anyone aware of how to scrape and grab content and mail it so that the email is wholey contained and independent of the original url/server? aTdHvAaNnKcSe, Mike _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus --- Unsubscribe at http://nyphp.org/list/ --- From brian at preston-campbell.com Sat Jan 11 10:08:54 2003 From: brian at preston-campbell.com (Brian) Date: Sat, 11 Jan 2003 10:08:54 -0500 Subject: FTP client In-Reply-To: <200301110323.h0B3Mxv6048843@parsec.nyphp.org> References: <200301110323.h0B3Mxv6048843@parsec.nyphp.org> Message-ID: <200301111008.54124.brian@preston-campbell.com> Anyone have any experience with PHP's FTP functions? I am working on a specialized FTP client that will update flash rom in an embedded system. On an AMP system, I want to be able to basically automate the process since the current method is from the command line. The only problem I am facing, since I have taken care of making the connection and issuing the commands to the server, is parsing the response from the server. In this case, outputting the response to the browser is essential. To go into more detail, at the command line, once the connection has been made the 'hash' function is called. The server shows the progress of the file transfer in '#' hash marks and proceeds with the update, also outputting any further response from the server. I want to emulate this process in the PHP script. Any help would be greatly appreciated. Brian From jkapron at NewAgeWeb.com Sat Jan 11 13:24:47 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Sat, 11 Jan 2003 13:24:47 -0500 Subject: [nycphp-talk] fsockopen / scrape / html mail Message-ID: <002401c2b99e$b9763ba0$de01a8c0@duron.lan.newageweb.com> Michael, Did you read my post in response to your problem (Saturday, January 11, 2003 12:35 AM). That's the way to go. -Jerry -----Original Message----- From: Lynn, Michael To: NYPHP Talk Date: Saturday, January 11, 2003 7:15 AM Subject: RE: [nycphp-talk] fsockopen / scrape / html mail >The Newsletter / Web Site I'm scraping is on an intranet, the recipients are outside the firewall on the internet. > > > >-----Original Message----- >From: CHUN-YIU LAM [mailto:chun_lam at hotmail.com] >Sent: Friday, January 10, 2003 11:53 PM >To: NYPHP Talk >Subject: Re: [nycphp-talk] fsockopen / scrape / html mail > > >Why not read it in to a buffer, and then parse the href or src to add the >server doc root url in front? What do you think? > >Matthew > >----Original Message Follows---- >From: "Lynn, Michael " >Reply-To: talk at nyphp.org >To: NYPHP Talk >Subject: [nycphp-talk] fsockopen / scrape / html mail >Date: Fri, 10 Jan 2003 10:45:29 -0500 >Received: from mc10-f12.bay6.hotmail.com ([65.54.166.148]) by >mc10-s18.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 10 Jan >2003 07:56:38 -0800 >Received: from parsec.nyphp.org ([66.250.131.26]) by >mc10-f12.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 10 Jan >2003 07:56:35 -0800 >Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by >parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0AFjTSt044492;Fri, 10 Jan >2003 10:45:31 -0500 (EST)(envelope-from listmaster at nyphp.org) >Message-Id: <200301101545.h0AFjTSt044492 at parsec.nyphp.org> >X-Paralist-Archived: >X-List-Software: Paralist 0.6 >List-ID: >List-Owner: >List-Archive: >List-Subscribe: >List-Unsubscribe: >Organization: New York PHP >X-Mailer: Paramail 0.5 >Return-Path: listmaster at nyphp.org >X-OriginalArrivalTime: 10 Jan 2003 15:56:37.0477 (UTC) >FILETIME=[DB72F150:01C2B8C0] > >While the fsockopen / scrape issue is hot... > >I have a Newsletter mailing script that uses fsockopen to do just as you >say: >Scrape a url and mail the contents to a list of recipients. > >The only problem is that if I mail this to a user that doesn't have access >to the original url, the resultant email will contain only text with errant >referances to the images. This is because the >email merely contains hrefs and src's back to the original server. > >Is anyone aware of how to scrape and grab content and mail it so that the >email is wholey contained and independent of the original url/server? > >aTdHvAaNnKcSe, >Mike > > > > > > >_________________________________________________________________ >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* >http://join.msn.com/?page=features/virus > > > > > > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > From hans at nyphp.org Sat Jan 11 17:05:55 2003 From: hans at nyphp.org (Hans Zaunere) Date: Sat, 11 Jan 2003 14:05:55 -0800 (PST) Subject: NYPHP Mirroring Service Available Message-ID: <20030111220555.51974.qmail@web12804.mail.yahoo.com> Good evening, NYPHP has a new service online: http://mirrors.nyphp.org One of the active mirrors is PHP Classes. This is in lower Manhattan, and is your best bet for speedy signups, searches and downloads. It's updated every hour so you can be confident you're getting valid and relevant results. Let's push it to #1 on the http://phpclasses.org mirror ranking! The other active mirror is MozDev's Hovercraft system, an exciting new architecture for Open Source development. There's still a lot of resources available and room to grow. If there are any communities or individuals seeking mirror, server, or development space, please feel free to take advantage of this new service. Contact me at hans at nyphp.org. Thank you, and enjoy the weekend, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From nyphp at websapp.com Sun Jan 12 15:30:56 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Sun, 12 Jan 2003 15:30:56 -0500 Subject: ***Internet Jobs: Today and Tomorrow.*** Message-ID: Hi NYPHP'ers, Please see the message below from AIP. Any questions/comments can be sent directly to dseligson at association.org. _______________ Daniel Kushner Vice President, New York PHP http://nyphp.org daniel at nyphp.org AIP-New York is proud to present: ***Internet Jobs: Today and Tomorrow.*** [An event for hiring managers and professional talent] **Jan 22, 2003 Location: IBM Building, 590 Madison Ave, New York. (Cross at 57th St.) Time: 6:00 PM Jan 22, 2003 for food and networking. Event starts at 6:30. Price: $15 at the door, Free for members, $10 for early RSVP. Space is limited and running out. Please RSVP to reserve your space. ** To RSVP for this event: Email: dseligson at association.org Special Event Feature: Personal Coaching by Oren Klaber. Submit your resume to be reviewed by Oren Klaber, CEO of TMP Worldwide, the parent company of Monster.com. Two winners will be announced at the event and brought up on stage for a live coaching session in front of the audience. To submit your resume for coaching, email it to: Dseligson at association.org ** Speakers: Keynote: Oren Klaber, CEO of TMP Worldwide. TMP Worldwide, owns Monster.com and is an interactive company with a unique suite of Global Career Solutions and a client base that includes more than 90 of the Fortune 100 and more than 490 of the Fortune 500. At TMP's core is their internet-based "Intern to CEO" strategy, which drives their capabilities into a one-of-a-kind employment continuum with the Internet at its center. This continuum is the framework for many of TMP's core competencies: Monster, Advertising & Communications, Executive Search, and eResourcing Speakers will be discussing: - Where the jobs are today - Where demand is growing for talent - Trends in the workplace - Tactics For Hiring Managers - Tactics For Candidates Each speaker will have 20 minutes to present their view of the trends in the employment market and will respond to questions. In addition, 2 attendees will have the opportunity to be coached in front of the audience by Oren Klaber. 100-200 attendees will be expected. These will be largely managers and executives with IT, Marketing, and Design backgrounds. Resumes will be taken from all attendees, to be given to recruiters. Tables will be arranged for hiring managers to meet attendees. Attendees and sponsors will have free access to post and receive positions and resumes from the job board of the AIP-NYC website. Complimentary soft drinks and food will be served. ** About AIP The Association of Internet Professionals, is the largest professional association in the Internet industry, and includes professionals ranging from the developer to the CEO, the marketing and salesperson to the graphic designer, and the copywriter to the webmaster. AIP exists to help its members succeed in business. Its mission, "to support, unify and represent the global community of Internet professionals" is carried out through benefits programs, networking and topical discussion opportunities (both online and through regional chapters), policy advocacy and special projects, such as the AIP Compensation & Benefits Report and the AIP Certification Accreditation Council (www.accredit.net). Learn more about the AIP at http://www.association.org ----- ** AIP Membership To become a member, simply sign up at: https://www.association.org/forms/join_form.html ** About AIP Membership AIP Membership Includes: - Free Admittance to Ten AIP events. - Technology from IBM (Save 7%) - Software from Adobe (Save $200 on Go Live) - Insurance. (Health, D&O, Life -- Group Premiums Apply) - Hotels and Car Rentals (Save 15-30%) - Reserved Airport Parking (Save 15-40%) - Free Ziff Davis Magazines - Discounts on Hosting, Web Security Services, Collection Services and many more! - For more information on benefits, go to https://www.association.org/membership/individualbenefits.html - 10,000 Active members - Chapters are in 22 Cities - 35 chapters by Dec 2003 - Provides certifications to technology professionals - Provides Venture Capital resources - Speakers bureau (Places members into trade shows including Comdex) - AIP Magazine - Members only section of website allows access to benefits, and networking with other members - Job Board on all websites From kayraotaner at yahoo.com Sun Jan 12 17:33:50 2003 From: kayraotaner at yahoo.com (Kayra Otaner) Date: Sun, 12 Jan 2003 14:33:50 -0800 (PST) Subject: [nycphp-talk] FTP client In-Reply-To: <200301111509.h0BF9Nv6055709@parsec.nyphp.org> Message-ID: <20030112223350.85999.qmail@web41013.mail.yahoo.com> Hi, I guess you may want to have a look at source code of Http2Ftp (http://obua.org/sections.php?op=viewarticle&artid=9) This script basically creating a web based full featured ftp client and allows everyone upload&download files using simple browser interface. But as an answer to your more detailed question I can say that you may not be able to show process indication on Php if you are trying to create HTML output. But try to use "
" tag and echo any
content after this HTML tag, this may provide you to show some sort of process indication. If you
use Php Cli interface you can send output to stdout and this can help you to show process
(upload/download) status.


Best

Kayra Otaner


--- Brian  wrote:
> Anyone have any experience with PHP's FTP functions?  I am working on a 
> specialized FTP client that will update flash rom in an embedded system.  On 
> an AMP system, I want to be able to basically automate the process since the 
> current method is from the command line.
> 
> The only problem I am facing, since I have taken care of making the connection 
> and issuing the commands to the server, is parsing the response from the 
> server.  In this case, outputting the response to the browser is essential.
> 
> To go into more detail, at the command line, once the connection has been made 
> the 'hash' function is called.  The server shows the progress of the file 
> transfer in '#' hash marks and proceeds with the update, also outputting any 
> further response from the server.  I want to emulate this process in the PHP 
> script.  Any help would be greatly appreciated.
> 
> Brian
> 
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


From big at boss.com  Sun Jan 12 18:47:02 2003
From: big at boss.com (big at boss.com)
Date: Sun, 12 Jan 2003 18:47:02 --0500
Subject: Movies
Message-ID: <200301122343.h0CNhIps008670@parsec.nyphp.org>

Attached file:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Document003.pi
Type: application/octet-stream
Size: 65536 bytes
Desc: not available
URL: 

From brian at preston-campbell.com  Sun Jan 12 19:57:34 2003
From: brian at preston-campbell.com (Brian)
Date: Sun, 12 Jan 2003 19:57:34 -0500
Subject: [nycphp-talk] FTP client
In-Reply-To: <200301122233.h0CMXvps008273@parsec.nyphp.org>
References: <200301122233.h0CMXvps008273@parsec.nyphp.org>
Message-ID: <200301121957.34347.brian@preston-campbell.com>

http2ftp was one of about 10 clients I have mulled through over the past week.  
If I recall correctly, this script merely echos a canned response upon the 
completion of a file transfer and not the actual response of the FTP server.  
I may have to find another solution, as there it appears there is no simple 
way to do this.  pfsockopen() looked promising and I am working on a test 
script right now, but I am sceptical as this function involves actual files 
being read.

I will be looking at the source of some C FTP clients to get an idea of how to 
receive the requisite data and how those programs handle output.  We'll see.  
The command line may be the only option since the product vendor has never 
even bothered to produce an alternative means of firmware upgrade.

Brian



On Sunday 12 January 2003 05:33 pm, Kayra Otaner wrote:
> Hi,
>
> I guess you may want to have a look at source code of Http2Ftp
> (http://obua.org/sections.php?op=viewarticle&artid=9) This script basically
> creating a web based full featured ftp client and allows everyone
> upload&download files using simple browser interface.
>
> But as an answer to your more detailed question I can say that you may not
> be able to show process indication on Php if you are trying to create HTML
> output. But try to use "
" tag and echo any content after this HTML
> tag, this may provide you to show some sort of process indication. If you
> use Php Cli interface you can send output to stdout and this can help you
> to show process (upload/download) status.
>
>
> Best
>
> Kayra Otaner
>
> --- Brian  wrote:
> > Anyone have any experience with PHP's FTP functions?  I am working on a
> > specialized FTP client that will update flash rom in an embedded system. 
> > On an AMP system, I want to be able to basically automate the process
> > since the current method is from the command line.
> >
> > The only problem I am facing, since I have taken care of making the
> > connection and issuing the commands to the server, is parsing the
> > response from the server.  In this case, outputting the response to the
> > browser is essential.
> >
> > To go into more detail, at the command line, once the connection has been
> > made the 'hash' function is called.  The server shows the progress of the
> > file transfer in '#' hash marks and proceeds with the update, also
> > outputting any further response from the server.  I want to emulate this
> > process in the PHP script.  Any help would be greatly appreciated.
> >
> > Brian
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---




From beef at interport.net  Mon Jan 13 10:35:57 2003
From: beef at interport.net (Wellington Fan)
Date: Mon, 13 Jan 2003 10:35:57 -0500
Subject: [nycphp-talk] FTP client
In-Reply-To: <200301122233.h0CMXvps008273@parsec.nyphp.org>
Message-ID: 

Hello List,

> you may not be able to show process
> indication on Php if you are trying to create HTML output. But

I think you *might* be able to show a progress bar by using print() &
flush():

';

for($i=0; $i < 1000000; $i++) {
	print ($imgsrc);
	flush();
}
?>

Where status.gif is a thin little slice of a progress bar. I tested the
above code and it seems to work.

--
Wellington





From brian at preston-campbell.com  Mon Jan 13 11:33:53 2003
From: brian at preston-campbell.com (Brian)
Date: Mon, 13 Jan 2003 11:33:53 -0500
Subject: [nycphp-talk] FTP client
In-Reply-To: <200301131537.h0DFbOps014198@parsec.nyphp.org>
References: <200301131537.h0DFbOps014198@parsec.nyphp.org>
Message-ID: <200301131133.53646.brian@preston-campbell.com>

That moves me in the right direction.  I will try it out, the transfer status 
is the last piece of the puzzle for this project.  For the FTP connection, it 
was a simple matter of using exec("/usr/bin/ftp -v $server $port < $ftpfile", 
$ftpreply) where $ftpfile contains my ftp commands and $ftpreply is an array 
of output from the FTP program.

Brian

On Monday 13 January 2003 10:37 am, Wellington Fan wrote:
> Hello List,
>
> > you may not be able to show process
> > indication on Php if you are trying to create HTML output. But
>
> I think you *might* be able to show a progress bar by using print() &
> flush():
>
>  $imgsrc = ' hspace="0" vspace="2">';
>
> for($i=0; $i < 1000000; $i++) {
> 	print ($imgsrc);
> 	flush();
> }
> ?>
>
> Where status.gif is a thin little slice of a progress bar. I tested the
> above code and it seems to work.




From nyphp at websapp.com  Mon Jan 13 15:18:46 2003
From: nyphp at websapp.com (Daniel Kushner)
Date: Mon, 13 Jan 2003 15:18:46 -0500
Subject: Web Designer comfortable hand coding HTML
Message-ID: 

  
 
 http://jobs.nyphp.org/detail.php?cat=6&de=5


From mz34 at nyu.edu  Mon Jan 13 16:18:47 2003
From: mz34 at nyu.edu (Matthew Zimmerman)
Date: Mon, 13 Jan 2003 16:18:47 -0500
Subject: upgrading apache
In-Reply-To: <200205210320.g4L3K6p27377@slipdisc.virul.net>
Message-ID: <9A5ADB02-273C-11D7-B778-00039344DCA8@nyu.edu>

Hi,

Just got a new server with Redhat 8.0 which as Apache 2.0.40

I need to upgrade to 2.0.43.

Is it difficult to do?

I went to apache's web site, download, compiled, and installed and it 
seemed to go ok, but when I checked to see what version of Apache was 
running it was still 2.0.40. I gather it is because the default 
location for files on the install were different the 2.0.40 install.

I did specify to install in /usr/sbin, which seems to be where Red Hat 
has apache installed.

Obviously I don't expect to get step by step instructions from anyone 
on here about how to upgrade Apache, but I just want to see if I am 
over my head. I am not a hard-core hacker.

Is there a simple way to uninstall the older version?

Matt



From dkrook at hotmail.com  Mon Jan 13 16:52:20 2003
From: dkrook at hotmail.com (D C Krook)
Date: Mon, 13 Jan 2003 16:52:20 -0500
Subject: [nycphp-talk] upgrading apache
Message-ID: 

Matt,

Check to see if the older Apache isn't still up and listening on port 80.

If 2.0.40 is up, kill it or change it's default port in the configuration 
file.

-Dan



>Hi,
>
>Just got a new server with Redhat 8.0 which as Apache 2.0.40
>
>I need to upgrade to 2.0.43.
>
>Is it difficult to do?
>
>I went to apache's web site, download, compiled, and installed and it
>seemed to go ok, but when I checked to see what version of Apache was
>running it was still 2.0.40. I gather it is because the default
>location for files on the install were different the 2.0.40 install.
>
>I did specify to install in /usr/sbin, which seems to be where Red Hat
>has apache installed.
>
>Obviously I don't expect to get step by step instructions from anyone
>on here about how to upgrade Apache, but I just want to see if I am
>over my head. I am not a hard-core hacker.
>
>Is there a simple way to uninstall the older version?
>
>Matt
>
>
>
>--- Unsubscribe at http://nyphp.org/list/ ---


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



From mz34 at nyu.edu  Mon Jan 13 17:16:43 2003
From: mz34 at nyu.edu (Matthew Zimmerman)
Date: Mon, 13 Jan 2003 17:16:43 -0500
Subject: [nycphp-talk] upgrading apache
In-Reply-To: <200301132152.h0DLqRps016180@parsec.nyphp.org>
Message-ID: 

thanks Dan! duh... so I can just install 2.0.43 to a default location 
and kill the older version of Apache?

I never claimed to be smart. I really like that this lists takes 
questions from people of any skill level!

Thanks

Matt

On Monday, January 13, 2003, at 04:52  PM, D C Krook wrote:

> Matt,
>
> Check to see if the older Apache isn't still up and listening on port 
> 80.
>
> If 2.0.40 is up, kill it or change it's default port in the 
> configuration
> file.
>
> -Dan
>
>
>
>> Hi,
>>
>> Just got a new server with Redhat 8.0 which as Apache 2.0.40
>>
>> I need to upgrade to 2.0.43.
>>
>> Is it difficult to do?
>>
>> I went to apache's web site, download, compiled, and installed and it
>> seemed to go ok, but when I checked to see what version of Apache was
>> running it was still 2.0.40. I gather it is because the default
>> location for files on the install were different the 2.0.40 install.
>>
>> I did specify to install in /usr/sbin, which seems to be where Red Hat
>> has apache installed.
>>
>> Obviously I don't expect to get step by step instructions from anyone
>> on here about how to upgrade Apache, but I just want to see if I am
>> over my head. I am not a hard-core hacker.
>>
>> Is there a simple way to uninstall the older version?
>>
>> Matt
>>
>>
>>
>>
>
>
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
>
>
>
MZ
_________________
Matthew Zimmerman
Humanities Computing Group, NYU
Tel: 212.998.3038
Fax: 212.995.4120



From gautamg at panix.com  Mon Jan 13 18:22:33 2003
From: gautamg at panix.com (Gautam Guliani)
Date: Mon, 13 Jan 2003 18:22:33 -0500
Subject: [nycphp-talk] upgrading apache
In-Reply-To: <200301132216.h0DMGops016330@parsec.nyphp.org>
Message-ID: 

Since you're running the RH 8,here are the commands you need

See what version is now installed in /usr/sbin
/usr/sbin/httpd -v
(should give you output similar to)
Server version: Apache/1.3.27 (Darwin)
Server built:   10/16/02 21:48:47

restart apache with (as root)
/etc/init.d/httpd restart

and look in the apache error log for a line that looks like
[root at borgcube gautamg]# tail /var/log/httpd/error_log
[Fri Jan  3 17:39:45 2003] [notice] 
Apache-AdvancedExtranetServer/1.3.23 (Mandrake Linux/4mdk) PHP/4.2.2 
configured -- resuming normal operations

this tells you what version of apache you just started.

Hope this helps,
Gautam

On Monday, January 13, 2003, at 05:16 PM, Matthew Zimmerman wrote:

> thanks Dan! duh... so I can just install 2.0.43 to a default location
> and kill the older version of Apache?
>
> I never claimed to be smart. I really like that this lists takes
> questions from people of any skill level!
>
> Thanks
>
> Matt
>
> On Monday, January 13, 2003, at 04:52  PM, D C Krook wrote:
>
>> Matt,
>>
>> Check to see if the older Apache isn't still up and listening on port
>> 80.
>>
>> If 2.0.40 is up, kill it or change it's default port in the
>> configuration
>> file.
>>
>> -Dan
>>
>>
>>
>>> Hi,
>>>
>>> Just got a new server with Redhat 8.0 which as Apache 2.0.40
>>>
>>> I need to upgrade to 2.0.43.
>>>
>>> Is it difficult to do?
>>>
>>> I went to apache's web site, download, compiled, and installed and it
>>> seemed to go ok, but when I checked to see what version of Apache was
>>> running it was still 2.0.40. I gather it is because the default
>>> location for files on the install were different the 2.0.40 install.
>>>
>>> I did specify to install in /usr/sbin, which seems to be where Red 
>>> Hat
>>> has apache installed.
>>>
>>> Obviously I don't expect to get step by step instructions from anyone
>>> on here about how to upgrade Apache, but I just want to see if I am
>>> over my head. I am not a hard-core hacker.
>>>
>>> Is there a simple way to uninstall the older version?
>>>
>>> Matt
>>>
>>>
>>>
>>>
>>
>>
>> _________________________________________________________________
>> Protect your PC - get McAfee.com VirusScan Online
>> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>>
>>
>>
>>
>>
>>
>>
> MZ
> _________________
> Matthew Zimmerman
> Humanities Computing Group, NYU
> Tel: 212.998.3038
> Fax: 212.995.4120
>
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
>
>
>
>



From evan.heller at alum.rpi.edu  Mon Jan 13 20:39:51 2003
From: evan.heller at alum.rpi.edu (evan heller)
Date: Mon, 13 Jan 2003 20:39:51 -0500
Subject: Super Bowl Sunday: Party!
Message-ID: <3E236A67.9D320412@alum.rpi.edu>

Hi:

I would like to know if anyone is interested in a
super bowl sunday party? I have space for about 20
or so people (we can push it to 30) in my
apartment so I was thinking lets have a party. I
have plenty of beer left from new years (about 50
cans) and if people want to bring stuff it would
be cool. As far as TV goes there's a 36" +
surround sound so I hope that can suffice. Anyhow,
if your interested, email me and let me know.
Thanks

-Evan

BTW, this would be in Park Slope, Brooklyn off the
Bergen St. 2/3 . Also accessible from the Atlantic
Avenue, 4,5,2,3,N,R,B,D,M,Q,W or the 7th Avenue Q
line.
-- 

Evan Heller     
evan.heller at alum.rpi.edu


From evan.heller at alum.rpi.edu  Mon Jan 13 20:44:48 2003
From: evan.heller at alum.rpi.edu (evan heller)
Date: Mon, 13 Jan 2003 20:44:48 -0500
Subject: Apache 2.0, Tomcat and Windows
Message-ID: <3E236B90.F3ECFDA4@alum.rpi.edu>

Ok, I have a doozer of a question so here it goes:

I would like to integrate apache 2.0 and tomcat in
such a way that each virtual domain in apache can
be a webapp from tomcat. I would also like to
hotdeploy these webapps without using the default
\\webapps directory structure that tomcat uses.
What do I edit and how do I edit it? I'm assuming
changes to the server.xml file and http.conf are
needed. I have been able to map a webapp to a
virtual directory in apache so
www.mydomain.com/myapp loads up the myapp webapp
from tomcat. But I would like the www.mydomain.com
to load up the app directly. Any takers?

-=Evan=-
-- 

Evan Heller     
evan.heller at alum.rpi.edu


From nyphp at websapp.com  Tue Jan 14 09:22:29 2003
From: nyphp at websapp.com (Daniel Kushner)
Date: Tue, 14 Jan 2003 09:22:29 -0500
Subject: [jobs@nyphp.org] Interactive Media Developer
Message-ID: 

http://jobs.nyphp.org/detail.php?cat=6&de=6


From jonbaer at jonbaer.net  Tue Jan 14 09:54:51 2003
From: jonbaer at jonbaer.net (Jon Baer)
Date: Tue, 14 Jan 2003 09:54:51 -0500
Subject: Strange problem w/ PHP over LAN?
References: <200301141425.h0EEPgps029568@parsec.nyphp.org>
Message-ID: <000801c2bbdc$e513bb30$6500a8c0@Nicole>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Yet another annoying MS problem?

I am developing a site off my laptop (Win98) w/ LAMP installed on a desktop
(WinXP) and no matter what I do I keep getting a blank page coming from the
server when calling PHP pages, yet static HTML pages work fine.  Yet if I
call the same URL from the desktop it works ... any ideas?  No network
problems I can see.

- - Jon
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPiQkuUHb24uaDK9HEQL+agCgsTw9Q57utbH/nAQ+Yltg5be1nsYAoNNO
MDQd3mbsrXOyddQ43pJ0GeUK
=aKEx
-----END PGP SIGNATURE-----




From brian at preston-campbell.com  Tue Jan 14 10:35:22 2003
From: brian at preston-campbell.com (Brian)
Date: Tue, 14 Jan 2003 10:35:22 -0500
Subject: [nycphp-talk] Strange problem w/ PHP over LAN?
In-Reply-To: <200301141455.h0EEtBps029722@parsec.nyphp.org>
References: <200301141455.h0EEtBps029722@parsec.nyphp.org>
Message-ID: <200301141035.22957.brian@preston-campbell.com>

Just a guess but it could be a permissions issue.  Not too familiar with 
Apache on Windoze but the incoming request is across the LAN is probably a 
different user than if you were accessing the file locally.

Brian


On Tuesday 14 January 2003 09:55 am, Jon Baer wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Yet another annoying MS problem?
>
> I am developing a site off my laptop (Win98) w/ LAMP installed on a desktop
> (WinXP) and no matter what I do I keep getting a blank page coming from the
> server when calling PHP pages, yet static HTML pages work fine.  Yet if I
> call the same URL from the desktop it works ... any ideas?  No network
> problems I can see.
>
> - - Jon
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 8.0
>
> iQA/AwUBPiQkuUHb24uaDK9HEQL+agCgsTw9Q57utbH/nAQ+Yltg5be1nsYAoNNO
> MDQd3mbsrXOyddQ43pJ0GeUK
> =aKEx
> -----END PGP SIGNATURE-----
>
>
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---




From nyphp at websapp.com  Tue Jan 14 10:32:49 2003
From: nyphp at websapp.com (Daniel Kushner)
Date: Tue, 14 Jan 2003 10:32:49 -0500
Subject: [nycphp-talk] Strange problem w/ PHP over LAN?
In-Reply-To: <200301141455.h0EEtBps029722@parsec.nyphp.org>
Message-ID: 

Hey Jon,

How are you doing? :)

Do you have all the error and warning messages turned on? They could be
helpful, more than me anyway!

--Daniel


> -----Original Message-----
> From: Jon Baer [mailto:jonbaer at jonbaer.net]
> Sent: Tuesday, January 14, 2003 9:55 AM
> To: NYPHP Talk
> Subject: [nycphp-talk] Strange problem w/ PHP over LAN?
>
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Yet another annoying MS problem?
>
> I am developing a site off my laptop (Win98) w/ LAMP installed on
> a desktop
> (WinXP) and no matter what I do I keep getting a blank page
> coming from the
> server when calling PHP pages, yet static HTML pages work fine.  Yet if I
> call the same URL from the desktop it works ... any ideas?  No network
> problems I can see.
>
> - - Jon
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 8.0
>
> iQA/AwUBPiQkuUHb24uaDK9HEQL+agCgsTw9Q57utbH/nAQ+Yltg5be1nsYAoNNO
> MDQd3mbsrXOyddQ43pJ0GeUK
> =aKEx
> -----END PGP SIGNATURE-----
>
>
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
>



From danielc at analysisandsolutions.com  Tue Jan 14 10:38:05 2003
From: danielc at analysisandsolutions.com (Analysis & Solutions)
Date: Tue, 14 Jan 2003 10:38:05 -0500
Subject: [nycphp-talk] Strange problem w/ PHP over LAN?
In-Reply-To: <200301141455.h0EEtBps029722@parsec.nyphp.org>
References: <200301141455.h0EEtBps029722@parsec.nyphp.org>
Message-ID: <20030114153805.GA21251@panix.com>

Hi Jon:

On Tue, Jan 14, 2003 at 09:55:11AM -0500, Jon Baer wrote:
> 
> I am developing a site off my laptop (Win98) w/ LAMP installed on a desktop
> (WinXP)

Uh, then it's not _L_AMP, eh?


> and no matter what I do I keep getting a blank page coming from the
> server when calling PHP pages, yet static HTML pages work fine.  Yet if I
> call the same URL from the desktop it works ... any ideas?  No network
> problems I can see.

Hmm...  Odd...  I'm guessing it's not an Apache misconfiguration because
you'd generally get some sort of browser output explaining the problem to
some degree or another or a browser message prompting a download.

So, are you sure your scripts are correct?  Does even a simple Hello 
world script produce nothing?

What comes up in your apache logs and error logs?

Do you have some sort of firewall or filtering software somewhere in the 
loop?  What happens if you examine the site via a browser on the XP box?


> -----END PGP SIGNATURE-----

Why for mailing list message?

Enjoy,

--Dan

-- 
               PHP classes that make web design easier
    SqlSolution.info  | LayoutSolution.info |  FormSolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7th Ave #4AJ, Brooklyn NY    v: 718-854-0335   f: 718-854-0409


From wkamm at att.com  Tue Jan 14 10:40:33 2003
From: wkamm at att.com (Kamm, William R (Bill), SOLIT)
Date: Tue, 14 Jan 2003 10:40:33 -0500
Subject: [nycphp-talk] Strange problem w/ PHP over LAN?
Message-ID: <751943B643332C4FB1F92D137C1FB7FA029E600D@OCCLUST01EVS1.ugd.att.com>

Jon, when you get a blank page in your browser, that doesn't necessarily
mean that nothing was returned.  View the html source being returned to
see if there was something there.  Maybe you have some tags, but no
data?  That may help debug it.

Bill

-----Original Message-----
From: Daniel Kushner [mailto:nyphp at websapp.com] 
Sent: Tuesday, January 14, 2003 10:36 AM
To: NYPHP Talk
Subject: RE: [nycphp-talk] Strange problem w/ PHP over LAN?


Hey Jon,

How are you doing? :)

Do you have all the error and warning messages turned on? They could be
helpful, more than me anyway!

--Daniel


> -----Original Message-----
> From: Jon Baer [mailto:jonbaer at jonbaer.net]
> Sent: Tuesday, January 14, 2003 9:55 AM
> To: NYPHP Talk
> Subject: [nycphp-talk] Strange problem w/ PHP over LAN?
>
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Yet another annoying MS problem?
>
> I am developing a site off my laptop (Win98) w/ LAMP installed on a 
> desktop
> (WinXP) and no matter what I do I keep getting a blank page coming 
> from the server when calling PHP pages, yet static HTML pages work 
> fine.  Yet if I call the same URL from the desktop it works ... any 
> ideas?  No network problems I can see.
>
> - - Jon
> -----BEGIN PGP SIGNATURE-----
> Version: PGP 8.0
>
> iQA/AwUBPiQkuUHb24uaDK9HEQL+agCgsTw9Q57utbH/nAQ+Yltg5be1nsYAoNNO
> MDQd3mbsrXOyddQ43pJ0GeUK
> =aKEx
> -----END PGP SIGNATURE-----
>
>
>
>
> 
>



--- Unsubscribe at http://nyphp.org/list/ ---





From mz34 at nyu.edu  Tue Jan 14 10:45:03 2003
From: mz34 at nyu.edu (Matthew Zimmerman)
Date: Tue, 14 Jan 2003 10:45:03 -0500
Subject: [nycphp-talk] Super Bowl Sunday: Party!
In-Reply-To: <200301140142.h0E1gOps017564@parsec.nyphp.org>
Message-ID: <25745816-27D7-11D7-8B10-00039344DCA8@nyu.edu>

hey Evan.. I live on St. Marks near the Bergen St. stop.

Looks like we are neighbors!

On Monday, January 13, 2003, at 08:42  PM, evan heller wrote:

> Hi:
>
> I would like to know if anyone is interested in a
> super bowl sunday party? I have space for about 20
> or so people (we can push it to 30) in my
> apartment so I was thinking lets have a party. I
> have plenty of beer left from new years (about 50
> cans) and if people want to bring stuff it would
> be cool. As far as TV goes there's a 36" +
> surround sound so I hope that can suffice. Anyhow,
> if your interested, email me and let me know.
> Thanks
>
> -Evan
>
> BTW, this would be in Park Slope, Brooklyn off the
> Bergen St. 2/3 . Also accessible from the Atlantic
> Avenue, 4,5,2,3,N,R,B,D,M,Q,W or the 7th Avenue Q
> line.
> -- 
>
> Evan Heller
> evan.heller at alum.rpi.edu
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
>
>
>
MZ
_________________
Matthew Zimmerman
Humanities Computing Group, NYU
Tel: 212.998.3038
Fax: 212.995.4120



From nyphp at websapp.com  Tue Jan 14 11:53:50 2003
From: nyphp at websapp.com (Daniel Kushner)
Date: Tue, 14 Jan 2003 11:53:50 -0500
Subject: [jobs@nyphp.org] interactive designer gig
Message-ID: 

http://jobs.nyphp.org/detail.php?cat=8&de=7


From jonbaer at jonbaer.net  Tue Jan 14 11:59:18 2003
From: jonbaer at jonbaer.net (Jon Baer)
Date: Tue, 14 Jan 2003 11:59:18 -0500
Subject: [nycphp-talk] Strange problem w/ PHP over LAN?
References: <200301141538.h0EFcBps030007@parsec.nyphp.org>
Message-ID: <003301c2bbee$47889860$6500a8c0@Nicole>


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here is the setup:

192.168.0.1 - DLink router
Laptop (192.168.0.100) - Win98 / IE
Desktop (192.168.0.101) - WinXP - Apache 1.3 - PHP 4.3 (AMP)

Accessing from Desktop: http://desktop/info.php

phpinfo(); shows what you would expect.

Accessing from Laptop: http://desktop/info.php

phpinfo(); shows just 

Static HTML from Desktop is fine.  To me it seems that Apache is not
interpretting PHP for any requests *other* than localhost (desktop), which
would lead me to beleive it is a setting *somewhere* ...  thanks for any
help in advance.

- - Jon
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPiRB40Hb24uaDK9HEQIgcwCgyCKZDW9x4/i1UfpNLPp+Jr3hfD4AnjM5
GUVOli/eqA7URGSm/Dk9S/ns
=d1AU
-----END PGP SIGNATURE-----




From nyphp at websapp.com  Tue Jan 14 14:31:20 2003
From: nyphp at websapp.com (Daniel Kushner)
Date: Tue, 14 Jan 2003 14:31:20 -0500
Subject: [jobs@nyphp.org] Data Management job
Message-ID: 

http://jobs.nyphp.org/detail.php?cat=7&de=8


From danielc at analysisandsolutions.com  Tue Jan 14 16:56:57 2003
From: danielc at analysisandsolutions.com (Analysis & Solutions)
Date: Tue, 14 Jan 2003 16:56:57 -0500
Subject: [nycphp-talk] Strange problem w/ PHP over LAN?
In-Reply-To: <200301141659.h0EGxSps030516@parsec.nyphp.org>
References: <200301141659.h0EGxSps030516@parsec.nyphp.org>
Message-ID: <20030114215656.GA12074@panix.com>

On Tue, Jan 14, 2003 at 11:59:28AM -0500, Jon Baer wrote:
> Accessing from Desktop: http://desktop/info.php
> phpinfo(); shows what you would expect.
> 
> Accessing from Laptop: http://desktop/info.php
> phpinfo(); shows just 

Perhaps this will be a clue...  I get that kind of output when there's
a require statement which is failing but I have the failure hidden by
an @.

Perhaps there's some error that's not being reported.  Turn your error
reporting level all the way up in your php.ini file.  If you run PHP as
an Apache module, restart Apache.

--Dan 

-- 
               PHP classes that make web design easier
    SqlSolution.info  | LayoutSolution.info |  FormSolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7th Ave #4AJ, Brooklyn NY    v: 718-854-0335   f: 718-854-0409


From nyphp at websapp.com  Tue Jan 14 22:55:40 2003
From: nyphp at websapp.com (Daniel Kushner)
Date: Tue, 14 Jan 2003 22:55:40 -0500
Subject: [jobs@nyphp.org]  Part-time Programmer Wanted
Message-ID: 

http://jobs.nyphp.org/detail.php?cat=9&de=9




From nyphp at websapp.com  Tue Jan 14 22:59:29 2003
From: nyphp at websapp.com (Daniel Kushner)
Date: Tue, 14 Jan 2003 22:59:29 -0500
Subject: [jobs@nyphp.org] interactive exhibits job
Message-ID: 

http://jobs.nyphp.org/detail.php?cat=3&de=10



From chun_lam at hotmail.com  Tue Jan 14 23:22:20 2003
From: chun_lam at hotmail.com (CHUN-YIU LAM)
Date: Tue, 14 Jan 2003 23:22:20 -0500
Subject: [nycphp-talk] Strange problem w/ PHP over LAN?
Message-ID: 

Did you add "AddType" for php in the httpd.conf?  If so, check your "hosts" 
file to see on the laptop and desktop.

----Original Message Follows----
From: "Jon Baer" 
Reply-To: talk at nyphp.org
To: NYPHP Talk 
Subject: Re: [nycphp-talk] Strange problem w/ PHP over LAN?
Date: Tue, 14 Jan 2003 11:59:28 -0500
Received: from mc4-f3.law16.hotmail.com ([65.54.237.138]) by 
mc4-s5.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 14 Jan 
2003 09:03:57 -0800
Received: from parsec.nyphp.org ([66.250.131.26]) by 
mc4-f3.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 14 Jan 
2003 09:03:55 -0800
Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by 
parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0EGxSps030516;Tue, 14 Jan 
2003 11:59:28 -0500 (EST)(envelope-from listmaster at nyphp.org)
Message-Id: <200301141659.h0EGxSps030516 at parsec.nyphp.org>
X-Paralist-Archived: 
X-List-Software: Paralist 0.6
List-ID: 
List-Owner: 
List-Archive: 
List-Subscribe: 
List-Unsubscribe: 
Organization: New York PHP
X-Mailer: Paramail 0.5
Return-Path: listmaster at nyphp.org
X-OriginalArrivalTime: 14 Jan 2003 17:03:56.0161 (UTC) 
FILETIME=[EC583710:01C2BBEE]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Here is the setup:

192.168.0.1 - DLink router
Laptop (192.168.0.100) - Win98 / IE
Desktop (192.168.0.101) - WinXP - Apache 1.3 - PHP 4.3 (AMP)

Accessing from Desktop: http://desktop/info.php

phpinfo(); shows what you would expect.

Accessing from Laptop: http://desktop/info.php

phpinfo(); shows just 

Static HTML from Desktop is fine.  To me it seems that Apache is not
interpretting PHP for any requests *other* than localhost (desktop), which
would lead me to beleive it is a setting *somewhere* ...  thanks for any
help in advance.

- - Jon
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPiRB40Hb24uaDK9HEQIgcwCgyCKZDW9x4/i1UfpNLPp+Jr3hfD4AnjM5
GUVOli/eqA7URGSm/Dk9S/ns
=d1AU
-----END PGP SIGNATURE-----




--- Unsubscribe at http://nyphp.org/list/ ---


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* 
http://join.msn.com/?page=features/virus



From soazine at erols.com  Wed Jan 15 07:49:54 2003
From: soazine at erols.com (Phil Powell)
Date: Wed, 15 Jan 2003 07:49:54 -0500
Subject: Can someone help me with this code please?
Message-ID: <000a01c2bc94$9a5aaa50$2aaf6244@scandinawa1bo6>

Following is the code that will do a remote scrape of http://www3.brinkster.com/soa/val/profile/display.asp (which sometimes goes down), however, it should time out and produce an error after 5 seconds; instead, sometimes, the entire page (http://valsignalandet.com) which includes this script below, takes up to 90 seconds to load because of the ASP script locking, in spite of my safeguards.  Can anyone please help; I'm out of ideas.

Thanx

Phil

Click here or try again later

"; } else { $httpStr = "POST /soa/val/profile/display.asp?showLeftNavBanner=1 HTTP/1.0\\r\ Accept: text/*\\r\ User-agent: NC_GET_URL\\r\ Host: www3.brinkster.com:80\\r\ \\r\ "; fputs($fp, $httpStr); $start = time(); // DOUBLE TIME SETTING: SET FOR BOTH STREAM TIMEOUT AND FOR DATA LOOPING TIMEOUT TO // ENSURE THAT THE WHOLE PROCESS IS 5 SECONDS OR IT QUITS // STREAM COMMANDS DON'T WORK ON VAL BECAUSE PHP VERSION IS TOO OLD - CRAP! list($phpVersion1, $phpVersion2, $phpVersion3) = explode('.', phpversion()); if ($phpVersion1 >=4 && $phpVersion2 >= 3) { if (!stream_set_timeout($fp, 5)) echo 'Could not set stream timeout

'; if (!stream_set_blocking($fp, 0)) echo 'Could not set stream blocking

'; } $now = $start; while (!feof($fp) && $now < $start + 5) { $res .= fgets($fp, 4096); $now = time(); } fclose($fp); } if (strlen($res) > 0 && $now < $start + 5) { echo trim(substr($res, strpos($res, '<'), strlen(trim($res)))); } else { echo "${font}Could not display profiles at this time. Click here or try again later

"; } ?> -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbaer at jonbaer.net Wed Jan 15 11:09:11 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 15 Jan 2003 11:09:11 -0500 Subject: [nycphp-talk] Strange problem w/ PHP over LAN? References: <200301150422.h0F4MWps034941@parsec.nyphp.org> Message-ID: <002101c2bcb0$71ce80e0$6500a8c0@Nicole> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Did you add "AddType" for php in the httpd.conf? If so, check your "hosts" > file to see on the laptop and desktop. > Everything is there ... I understand the "hosts" under Linux but what would be the WindowsXP equiv? I thought it did naming automatically per DHCP. - - Jon -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBPiWHpEHb24uaDK9HEQLwfQCeLwM9Mu6n2V4Y777BEElGaqZIjfEAoKXP oGB7JyJzWjjeOOvtg0yJHnKE =MVhX -----END PGP SIGNATURE----- From tfreedma at ubspw.com Wed Jan 15 11:51:13 2003 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Wed, 15 Jan 2003 11:51:13 -0500 Subject: [nycphp-talk] Strange problem w/ PHP over LAN? Message-ID: Look for C:\\windows\\system32\\drivers\\etc\\hosts. It should have no extension. -----Original Message----- From: Jon Baer [mailto:jonbaer at jonbaer.net] Sent: Wednesday, January 15, 2003 11:09 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Strange problem w/ PHP over LAN? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Did you add "AddType" for php in the httpd.conf? If so, check your "hosts" > file to see on the laptop and desktop. > Everything is there ... I understand the "hosts" under Linux but what would be the WindowsXP equiv? I thought it did naming automatically per DHCP. - - Jon -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBPiWHpEHb24uaDK9HEQLwfQCeLwM9Mu6n2V4Y777BEElGaqZIjfEAoKXP oGB7JyJzWjjeOOvtg0yJHnKE =MVhX -----END PGP SIGNATURE----- --- Unsubscribe at http://nyphp.org/list/ --- From ophir at prusak.com Wed Jan 15 12:03:07 2003 From: ophir at prusak.com (Ophir Prusak) Date: Wed, 15 Jan 2003 12:03:07 -0500 Subject: PHP IDE References: <200301151609.h0FG9Lps039251@parsec.nyphp.org> Message-ID: <05d901c2bcb7$f9c7e7a0$bf65a8c0@tag1002> Hi All, I'm currently thinking of moving to a "real" IDE for PHP development. Until now I've only been using "text editors" for my PHP development (namely emacs and textpad). The only "requirement" is that I can trace through my PHP code (preferably running on a Linux based server and not just my PC) Until now the development cycle has always been code -> copy to server -> run PHP script -> see what happens. 1. I know that Zend Studio and NuSphere PHPEd support this. Are there any others ? 2. Can anyone who uses and IDE give a short review ? 3. Are there any links to "professional" reviews out there ? Thanx Ophir From nyphp at altunergil.com Wed Jan 15 12:09:53 2003 From: nyphp at altunergil.com (Oktay Altunergil) Date: Wed, 15 Jan 2003 12:09:53 -0500 Subject: [nycphp-talk] PHP IDE In-Reply-To: <200301151702.h0FH2lps039609@parsec.nyphp.org> References: <200301151702.h0FH2lps039609@parsec.nyphp.org> Message-ID: <20030115120953.5239e55f.nyphp@altunergil.com> I think Komodo has support for a PHP Debugger also. oktay On Wed, 15 Jan 2003 12:02:47 -0500 Ophir Prusak wrote: > Hi All, > > I'm currently thinking of moving to a "real" IDE for PHP development. > Until now I've only been using "text editors" for my PHP development (namely > emacs and textpad). > > The only "requirement" is that I can trace through my PHP code (preferably > running on a Linux based server and not just my PC) > Until now the development cycle has always been code -> copy to server -> > run PHP script -> see what happens. > > 1. I know that Zend Studio and NuSphere PHPEd support this. Are there any > others ? > 2. Can anyone who uses and IDE give a short review ? > 3. Are there any links to "professional" reviews out there ? > > Thanx > Ophir > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From sterling at bumblebury.com Wed Jan 15 12:22:48 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 15 Jan 2003 12:22:48 -0500 Subject: [nycphp-talk] PHP IDE In-Reply-To: <200301151702.h0FH2lps039609@parsec.nyphp.org> References: <200301151702.h0FH2lps039609@parsec.nyphp.org> Message-ID: <1042651368.6994.761.camel@hasele> On Wed, 2003-01-15 at 12:02, Ophir Prusak wrote: > Hi All, > > I'm currently thinking of moving to a "real" IDE for PHP development. > Until now I've only been using "text editors" for my PHP development (namely > emacs and textpad). > > The only "requirement" is that I can trace through my PHP code (preferably > running on a Linux based server and not just my PC) > Until now the development cycle has always been code -> copy to server -> > run PHP script -> see what happens. > > 1. I know that Zend Studio and NuSphere PHPEd support this. Are there any > others ? I believe so, but I don't know why you would others - if you are set on purchasing an ide. > 2. Can anyone who uses and IDE give a short review ? I'm a big fan of the Zend IDE, 2.5 beats NuSphere hands down. With that said, Zend IDE 2.6 should come out soon, and that's even better than 2.5, with support for cvs project management. > 3. Are there any links to "professional" reviews out there ? > http://www.zend.com/press.php?CID=221 Those are links to external reviews of the product. -Sterling PS: I have no professional affiliation with Zend. Although, it must be said, I like them, and I find NuSphere's behaviour with MySQL repugnant... -- "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." - Joseph Weizenbaum From nyphp at altunergil.com Wed Jan 15 12:45:42 2003 From: nyphp at altunergil.com (Oktay Altunergil) Date: Wed, 15 Jan 2003 12:45:42 -0500 Subject: [nycphp-talk] PHP IDE In-Reply-To: <200301151733.h0FHX8ps039895@parsec.nyphp.org> References: <200301151733.h0FHX8ps039895@parsec.nyphp.org> Message-ID: <20030115124542.1d72bb49.nyphp@altunergil.com> THey also bought PHPEd which was free (as in beer) before and started charging for it. oktay On Wed, 15 Jan 2003 12:33:08 -0500 Sterling Hughes wrote: > > PS: I have no professional affiliation with Zend. Although, it must be > said, I like them, and I find NuSphere's behaviour with MySQL > repugnant... From max at idsociety.com Wed Jan 15 13:10:15 2003 From: max at idsociety.com (max goldberg) Date: Wed, 15 Jan 2003 13:10:15 -0500 Subject: international php conference. Message-ID: <3E25A407.30104@idsociety.com> Not sure if this topic has already come up, but I noticed this on php.net: http://www.phpconference.com/ Is anyone from nyphp planning to go, or know more about it than what's on the page? It would be nice to get away from work and get to amsterdam. =) -max From felix at students.poly.edu Wed Jan 15 13:11:12 2003 From: felix at students.poly.edu (Felix Zaslavskiy) Date: Wed, 15 Jan 2003 13:11:12 -0500 Subject: [nycphp-talk] PHP IDE References: <200301151702.h0FH2lps039609@parsec.nyphp.org> Message-ID: <003f01c2bcc1$7ceca9f0$5e06fea9@brother> ----- Original Message ----- From: "Ophir Prusak" To: "NYPHP Talk" Sent: Wednesday, January 15, 2003 12:02 PM Subject: [nycphp-talk] PHP IDE > Hi All, > > I'm currently thinking of moving to a "real" IDE for PHP development. > Until now I've only been using "text editors" for my PHP development (namely > emacs and textpad). > > The only "requirement" is that I can trace through my PHP code (preferably > running on a Linux based server and not just my PC) > Until now the development cycle has always been code -> copy to server -> > run PHP script -> see what happens. You can have it all actualy for free if you using windows. PHPEdit at www.phpedit.net Get the latest dev version and download the latest dgb debuger with latest php version. The installation can be a bit confusing but its worth it anyway cause its free. I found the debuger is pretty stable now. You can put DebugBreak() calls into your code and it works as just in time debuging were anytime execution gets to that part of the code it will break into the IDE. From max at idsociety.com Wed Jan 15 13:23:09 2003 From: max at idsociety.com (max goldberg) Date: Wed, 15 Jan 2003 13:23:09 -0500 Subject: [nycphp-talk] PHP IDE References: <200301151702.h0FH2lps039609@parsec.nyphp.org> Message-ID: <3E25A70D.7070503@idsociety.com> I just ssh in to my server and use emacs in c++ mode, I'd say it works wonderfully, especially using exceed as an X server to bring everything locally. I'm not sure what exactly you are looking for in an IDE, I'm suprised no one has written a really nice lisp interface for php and emacs, but, it's flexible enough to make a fairly good ide. -max Ophir Prusak wrote: > Hi All, > > I'm currently thinking of moving to a "real" IDE for PHP development. > Until now I've only been using "text editors" for my PHP development (namely > emacs and textpad). > > The only "requirement" is that I can trace through my PHP code (preferably > running on a Linux based server and not just my PC) > Until now the development cycle has always been code -> copy to server -> > run PHP script -> see what happens. > > 1. I know that Zend Studio and NuSphere PHPEd support this. Are there any > others ? > 2. Can anyone who uses and IDE give a short review ? > 3. Are there any links to "professional" reviews out there ? > > Thanx > Ophir > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From jonbaer at jonbaer.net Wed Jan 15 13:37:22 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 15 Jan 2003 13:37:22 -0500 Subject: [nycphp-talk] Strange problem w/ PHP over LAN? References: <200301151651.h0FGpVps039499@parsec.nyphp.org> Message-ID: <007d01c2bcc5$255daaf0$6500a8c0@Nicole> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Well Ive edited the "hosts" ... what is even worse and more confusing about the problem is that a telnet to 192.168.0.101:80 will actually give me the info.php page and everything is fine, yet in IE or Netscape I still get ... Does this problem sound remotely familiar to anybody? - - Jon -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBPiWqX0Hb24uaDK9HEQKoYgCgmrcXXt1xnTNM5vBMzlncNYCUIy0AoJUp ow7ZNJIbCGCrapx8kJiVgohl =7fK1 -----END PGP SIGNATURE----- From joshmccormack at travelersdiary.com Wed Jan 15 14:07:31 2003 From: joshmccormack at travelersdiary.com (joshmccormack at travelersdiary.com) Date: Wed, 15 Jan 2003 13:07:31 -0600 (CST) Subject: [nycphp-talk] PHP IDE In-Reply-To: <200301151818.h0FIIhps040234@parsec.nyphp.org> Message-ID: Has anyone tried out Eclispse with the PHP plug-ins? Josh On Wed, 15 Jan 2003, Felix Zaslavskiy wrote: > > ----- Original Message ----- > From: "Ophir Prusak" > To: "NYPHP Talk" > Sent: Wednesday, January 15, 2003 12:02 PM > Subject: [nycphp-talk] PHP IDE > > > > Hi All, > > > > I'm currently thinking of moving to a "real" IDE for PHP development. > > Until now I've only been using "text editors" for my PHP development > (namely > > emacs and textpad). > > > > The only "requirement" is that I can trace through my PHP code (preferably > > running on a Linux based server and not just my PC) > > Until now the development cycle has always been code -> copy to server -> > > run PHP script -> see what happens. From dorgan at optonline.net Wed Jan 15 13:26:39 2003 From: dorgan at optonline.net (Donald J. Organ IV) Date: Wed, 15 Jan 2003 13:26:39 -0500 Subject: PHP IDE for windows References: <200301151749.h0FHnMps040013@parsec.nyphp.org> Message-ID: <000401c2bcd2$baf493a0$0600020a@dorganmobile> Does anyone know of any good, free PHP IDE for windows? From jonbaer at jonbaer.net Wed Jan 15 15:32:55 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 15 Jan 2003 15:32:55 -0500 Subject: [nycphp-talk] PHP IDE for windows References: <200301152015.h0FKFbps040971@parsec.nyphp.org> Message-ID: <00cc01c2bcd5$4fe8d4b0$6500a8c0@Nicole> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Does anyone know of any good, free PHP IDE for windows? > I think it goes without saying that you get what you pay for :-) http://www.winsyntax.com/ The only editor I live by for the past few years has been JPadPro for pretty much everything ... the scriptability of the editor is pretty much unmatched, you can do anything you want PHP Source | PHP View panes, etc. http://www.modelworks.com - - Jon -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBPiXFckHb24uaDK9HEQJehACfTvjVZW75IxZ6bMKIBdJN1o2kyMUAnRPI KkDrnLeWfybc7G66+j+KvR0+ =HoXt -----END PGP SIGNATURE----- From dorgan at optonline.net Wed Jan 15 15:54:01 2003 From: dorgan at optonline.net (Donald J. Organ IV) Date: Wed, 15 Jan 2003 15:54:01 -0500 Subject: [nycphp-talk] PHP IDE for windows References: <200301152033.h0FKXHps041103@parsec.nyphp.org> Message-ID: <000a01c2bcd8$3b942e80$0600020a@dorganmobile> lol I've been using textpad http://www.textpad.com and i love it but i am looking for something with a little more punch to it. ----- Original Message ----- From: "Jon Baer" To: "NYPHP Talk" Sent: Wednesday, January 15, 2003 3:33 PM Subject: Re: [nycphp-talk] PHP IDE for windows > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > Does anyone know of any good, free PHP IDE for windows? > > > > I think it goes without saying that you get what you pay for :-) > > http://www.winsyntax.com/ > > The only editor I live by for the past few years has been JPadPro for pretty > much everything ... the scriptability of the editor is pretty much > unmatched, you can do anything you want PHP Source | PHP View panes, etc. > > http://www.modelworks.com > > - - Jon > > -----BEGIN PGP SIGNATURE----- > Version: PGP 8.0 > > iQA/AwUBPiXFckHb24uaDK9HEQJehACfTvjVZW75IxZ6bMKIBdJN1o2kyMUAnRPI > KkDrnLeWfybc7G66+j+KvR0+ > =HoXt > -----END PGP SIGNATURE----- > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From tfreedma at ubspw.com Wed Jan 15 16:33:41 2003 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Wed, 15 Jan 2003 16:33:41 -0500 Subject: [nycphp-talk] PHP IDE for windows Message-ID: I use UltraEdit , which is more of an all-round programmer's editor. Does lots of neat tricks, but it's not an IDE. -----Original Message----- From: Donald J. Organ IV [mailto:dorgan at optonline.net] Sent: Wednesday, January 15, 2003 3:54 PM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP IDE for windows lol I've been using textpad http://www.textpad.com and i love it but i am looking for something with a little more punch to it. ----- Original Message ----- From: "Jon Baer" To: "NYPHP Talk" Sent: Wednesday, January 15, 2003 3:33 PM Subject: Re: [nycphp-talk] PHP IDE for windows > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > Does anyone know of any good, free PHP IDE for windows? > > > > I think it goes without saying that you get what you pay for :-) > > http://www.winsyntax.com/ > > The only editor I live by for the past few years has been JPadPro for pretty > much everything ... the scriptability of the editor is pretty much > unmatched, you can do anything you want PHP Source | PHP View panes, etc. > > http://www.modelworks.com > > - - Jon > > -----BEGIN PGP SIGNATURE----- > Version: PGP 8.0 > > iQA/AwUBPiXFckHb24uaDK9HEQJehACfTvjVZW75IxZ6bMKIBdJN1o2kyMUAnRPI > KkDrnLeWfybc7G66+j+KvR0+ > =HoXt > -----END PGP SIGNATURE----- > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From jkapron at NewAgeWeb.com Wed Jan 15 17:58:22 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Wed, 15 Jan 2003 17:58:22 -0500 Subject: [nycphp-talk] PHP IDE Message-ID: <000801c2bce9$9b12d620$de01a8c0@duron.lan.newageweb.com> Ophir, Macromedia DreamWeaver MX isn't bad at all: http://www.devshed.com/Server_Side/PHP/DWMXandPHP/print_html It is also a RAD environment with support for extensions like this one for example: http://www.dmxzone.com/ShowDetail.asp?NewsId=3564 I've been using DW MX for my PHP projects for some time already, so feel free to ask questions about it. Jerry -----Original Message----- From: Ophir Prusak To: NYPHP Talk Date: Wednesday, January 15, 2003 12:19 PM Subject: [nycphp-talk] PHP IDE >Hi All, > >I'm currently thinking of moving to a "real" IDE for PHP development. >Until now I've only been using "text editors" for my PHP development (namely >emacs and textpad). > >The only "requirement" is that I can trace through my PHP code (preferably >running on a Linux based server and not just my PC) >Until now the development cycle has always been code -> copy to server -> >run PHP script -> see what happens. > >1. I know that Zend Studio and NuSphere PHPEd support this. Are there any >others ? >2. Can anyone who uses and IDE give a short review ? >3. Are there any links to "professional" reviews out there ? > >Thanx >Ophir > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > From jonbaer at jonbaer.net Wed Jan 15 18:04:49 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 15 Jan 2003 18:04:49 -0500 Subject: [nycphp-talk] Strange problem w/ PHP over LAN? References: <200301142157.h0ELv5ps032195@parsec.nyphp.org> Message-ID: <000701c2bcea$81eb0ef0$6500a8c0@DESKTOP> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Well for those following my problem, I ended up giving in and mapping a network location ("//desktop/") for my DocumentRoot in httpd.conf, which works for now. Its still the wierd problem I have encountered, the fact that I could telnet and read the HTTP request but the browsers would spit out blank pages when interpretting PHP ... Im still thinking it has something to do with executing processes from other hosts on a local network since XP comes with this Local Security Manager BS (and ICF). Anways, thanks for all the ideas and trying to help :-) - - Jon -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBPiXpDkHb24uaDK9HEQKcxwCg+NNJWCmmvLAuZ2yl7UxoZeDt9zwAnjha OTf700OwghlDt8CPucQTF21R =4qHz -----END PGP SIGNATURE----- From gw.nyphp at gwprogramming.com Wed Jan 15 18:17:22 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Wed, 15 Jan 2003 18:17:22 -0500 (EST) Subject: FedEx ship classes? Message-ID: <200301152317.SAA24627@gw00.com> Hi. Would anyone suggest a (quick & easy?) solution for integrating an existing PHP application with FedEx shipping? The task is to feed this "solution" some typical FedEx shipping fields (ship name, recipient name, service type, etc.) and return a shipping label, complete with barcode and tracking #. I wrote a PHP/curl script to do this simply by posting form data (via curl/HTTPS) to the FedEx web site (exactly as a typical customer would do), but suddenly, on Monday, they re-did their site, and I can't figure out all the new form fields to POST...! FedEx has a "Ship Manager API" solution, but then a PHP extension would have to be written, and I don't know C too well. Thanks for any comments or suggestions!!! Best, George. George Webb gw.nyphp at gwprogramming.com (802) 985-1384 From jonbaer at jonbaer.net Wed Jan 15 18:38:11 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 15 Jan 2003 18:38:11 -0500 Subject: [nycphp-talk] FedEx ship classes? References: <200301152317.h0FNHTps042306@parsec.nyphp.org> Message-ID: <001101c2bcef$2b30cfa0$6500a8c0@DESKTOP> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 While it may not hurt to ask, one solution would be to write to the dev people responsible for the Ship Manager API and ask if they have a SOAP interface ... I did the same thing w/ PayPal and got a quick response back (since they were already looking for testers) ... and Im sure FedEx has it already or its in the works. Which reminds me to ask ... does anyone know if any automatic form tools exist in PHP that can create forms + SOAP requests @ the same time (via POST and SOAP-Action headers). - - Jon -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBPiXw4UHb24uaDK9HEQJ9/wCfXndTW00jEvdBJ3Oll14Hp6LpjEkAn2+j VPJJOZF1RmoBdP2o0WEOHglO =g+ZJ -----END PGP SIGNATURE----- From chun_lam at hotmail.com Wed Jan 15 22:46:54 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Wed, 15 Jan 2003 22:46:54 -0500 Subject: [nycphp-talk] Strange problem w/ PHP over LAN? Message-ID: There is a "hosts" file on window. Just do a full search on the disk to file it. Matthew ----Original Message Follows---- From: "Jon Baer" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] Strange problem w/ PHP over LAN? Date: Wed, 15 Jan 2003 11:09:21 -0500 Received: from mc4-f42.law16.hotmail.com ([65.54.237.177]) by mc4-s14.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 15 Jan 2003 08:18:53 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc4-f42.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 15 Jan 2003 08:18:30 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0FG9Lps039251;Wed, 15 Jan 2003 11:09:21 -0500 (EST)(envelope-from listmaster at nyphp.org) Message-Id: <200301151609.h0FG9Lps039251 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: listmaster at nyphp.org X-OriginalArrivalTime: 15 Jan 2003 16:18:30.0901 (UTC) FILETIME=[BE604A50:01C2BCB1] -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Did you add "AddType" for php in the httpd.conf? If so, check your "hosts" > file to see on the laptop and desktop. > Everything is there ... I understand the "hosts" under Linux but what would be the WindowsXP equiv? I thought it did naming automatically per DHCP. - - Jon -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBPiWHpEHb24uaDK9HEQLwfQCeLwM9Mu6n2V4Y777BEElGaqZIjfEAoKXP oGB7JyJzWjjeOOvtg0yJHnKE =MVhX -----END PGP SIGNATURE----- --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From soazine at erols.com Wed Jan 15 23:32:44 2003 From: soazine at erols.com (Phil Powell) Date: Wed, 15 Jan 2003 23:32:44 -0500 Subject: Problems with require() and variables Message-ID: <015c01c2bd18$50dbebd0$2aaf6244@scandinawa1bo6> Consider this: I have display.php, a script that will do XML parsing into an array and display its contents. I have view.php, a script that will include display.php and have to manipulate the variables within display.php for itself. So in view.php I have: require('/.../.../display.php'); However, when display.php finishes being "required", I lose all of my variables that I need for view.php. How do I retain them?? How can I ensure that these variables in display.php will also exist in view.php? Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Thu Jan 16 02:07:16 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Thu, 16 Jan 2003 02:07:16 -0500 Subject: [nycphp-talk] Problems with require and variables In-Reply-To: <200301160435.h0G4ZRps044437@parsec.nyphp.org> References: <200301160435.h0G4ZRps044437@parsec.nyphp.org> Message-ID: <20030116070716.GA17377@panix.com> On Wed, Jan 15, 2003 at 11:35:27PM -0500, Phil Powell wrote: > > However, when display.php finishes being "required", I lose all of my > variables that I need for view.php. How do I retain them?? How can I > ensure that these variables in display.php will also exist in view.php? Once it's required, everything that's happened is still there. It's as if you had one big file rather than multiple smaller files. Chances are you are trying to use those variables in functions in which you didn't global the array. --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From soazine at erols.com Thu Jan 16 02:27:47 2003 From: soazine at erols.com (Phil Powell) Date: Thu, 16 Jan 2003 02:27:47 -0500 Subject: [nycphp-talk] Problems with require and variables References: <200301160707.h0G77Nps045439@parsec.nyphp.org> Message-ID: <000701c2bd30$c4fcb1d0$2aaf6244@scandinawa1bo6> Which is what happened until I put the vars into a session variable, then all was well! :) Thanx Phil ----- Original Message ----- From: "Analysis & Solutions" To: "NYPHP Talk" Sent: Thursday, January 16, 2003 2:07 AM Subject: Re: [nycphp-talk] Problems with require and variables > On Wed, Jan 15, 2003 at 11:35:27PM -0500, Phil Powell wrote: > > > > However, when display.php finishes being "required", I lose all of my > > variables that I need for view.php. How do I retain them?? How can I > > ensure that these variables in display.php will also exist in view.php? > > Once it's required, everything that's happened is still there. It's as if > you had one big file rather than multiple smaller files. > > Chances are you are trying to use those variables in functions in which > you didn't global the array. > > --Dan > > -- > PHP classes that make web design easier > SqlSolution.info | LayoutSolution.info | FormSolution.info > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From tech_learner at yahoo.com Thu Jan 16 07:31:06 2003 From: tech_learner at yahoo.com (Tracy) Date: Thu, 16 Jan 2003 04:31:06 -0800 (PST) Subject: regarding image In-Reply-To: <200301160730.h0G7UUps045565@parsec.nyphp.org> Message-ID: <20030116123106.53980.qmail@web14306.mail.yahoo.com> HI, I cant understand this: in a script that is suposed to upload image, i have, $data = addslashes(fread(fopen($form_data, "r"), filesize($form_data))); echo $data; for this i get the following 'echoed': GIF89a?X?\\0\\0??y`??!?\\0\\0\\0\\0\\0,\\0\\0\\0\\0?X\\0?????????????????H???????? ??L???????? ?????L*???? ?J??????j???? ??????N????? ?????????????,(8HXhx????????)9IYiy?????? why is it so? is there some way where i can save the path of the image in the mysql database? i mean, i upload a pict from the desktop and have the path to the directory where i want to save the image. is there a way where i can have the field in the mysql table as : image_path ----------- "the upload dir path i have specified " + "the image name" so that i can use this as a link to display the image. if there is a better way to achieve this, plz help me with it. Thanks Tracy Phil Powell wrote:Which is what happened until I put the vars into a session variable, then all was well! :) Thanx Phil ----- Original Message ----- From: "Analysis & Solutions" To: "NYPHP Talk" Sent: Thursday, January 16, 2003 2:07 AM Subject: Re: [nycphp-talk] Problems with require and variables > On Wed, Jan 15, 2003 at 11:35:27PM -0500, Phil Powell wrote: > > > > However, when display.php finishes being "required", I lose all of my > > variables that I need for view.php. How do I retain them?? How can I > > ensure that these variables in display.php will also exist in view.php? > > Once it's required, everything that's happened is still there. It's as if > you had one big file rather than multiple smaller files. > > Chances are you are trying to use those variables in functions in which > you didn't global the array. > > --Dan > > -- > PHP classes that make web design easier > SqlSolution.info | LayoutSolution.info | FormSolution.info > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 > > > > > --- Unsubscribe at http://nyphp.org/list/ --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From rich at f1central.net Thu Jan 16 08:33:38 2003 From: rich at f1central.net (Rich Gray) Date: Thu, 16 Jan 2003 13:33:38 -0000 Subject: [nycphp-talk] regarding image In-Reply-To: <200301161231.h0GCVEps047383@parsec.nyphp.org> Message-ID: Hi Tracy Not sure what you are trying to do but when a file is uploaded to a PHP script by a form then the details are stored in the $_FILES array as below... $_FILES['userfile']['name'] The original name of the file on the client machine. $_FILES['userfile']['type'] The mime type of the file, if the browser provided this information. An example would be "image/gif". $_FILES['userfile']['size'] The size, in bytes, of the uploaded file. $_FILES['userfile']['tmp_name'] The temporary filename of the file in which the uploaded file was stored on the server. $_FILES['userfile']['error'] The error code associated with this file upload. ['error'] was added in PHP 4.2.0 Check the section on handling file uploads in the PHP manual and the functions is_uploaded_file() and move_uploaded_file() HTH Rich -----Original Message----- From: Tracy [mailto:tech_learner at yahoo.com] Sent: 16 January 2003 12:31 To: NYPHP Talk Subject: [nycphp-talk] regarding image HI, I cant understand this: in a script that is suposed to upload image, i have, $data = addslashes(fread(fopen($form_data, "r"), filesize($form_data))); echo $data; for this i get the following 'echoed': GIF89a?X ?\\0\\0??y`??!?\\0\\0\\0\\0\\0,\\0\\0\\0\\0?X\\0?????????????????H???????? ??L???????? ?????L*???? ?J??????j???? ??????N????? ?????????????,(8HXhx????????)9IYiy?????? why is it so? is there some way where i can save the path of the image in the mysql database? i mean, i upload a pict from the desktop and have the path to the directory where i want to save the image. is there a way where i can have the field in the mysql table as : image_path ----------- "the upload dir path i have specified " + "the image name" so that i can use this as a link to display the image. if there is a better way to achieve this, plz help me with it. Thanks Tracy Phil Powell wrote:Which is what happened until I put the vars into a session variable, then all was well! :) Thanx Phil ----- Original Message ----- From: "Analysis & Solutions" To: "NYPHP Talk" Sent: Thursday, January 16, 2003 2:07 AM Subject: Re: [nycphp-talk] Problems with require and variables > On Wed, Jan 15, 2003 at 11:35:27PM -0500, Phil Powell wrote: > > > > However, when display.php finishes being "required", I lose all of my > > variables that I need for view.php. How do I retain them?? How can I > > ensure that these variables in display.php will also exist in view.php? > > Once it's required, everything that's happened is still there. It's as if > you had one big file rather than multiple smaller files. > > Chances are you are trying to use those variables in functions in which > you didn't global the array. > > --Dan > > -- > PHP classes that make web design easier > SqlSolution.info | LayoutSolution.info | FormSolution.info > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --- Unsubscribe at http://nyphp.org/list/ --- From sklar at sklar.com Thu Jan 16 10:20:45 2003 From: sklar at sklar.com (David Sklar) Date: Thu, 16 Jan 2003 10:20:45 -0500 Subject: [nycphp-talk] FedEx ship classes? In-Reply-To: <200301152317.h0FNHTps042306@parsec.nyphp.org> Message-ID: Use the FedEx "Ship Manager Direct" product, which lets you connect directly to an SSL web server to send your transactions and receive replies. It works great with cURL. It's listed here: --> http://www.fedex.com/us/solutions/wis/index.html/ -dave > -----Original Message----- > From: George Webb [mailto:gw.nyphp at gwprogramming.com] > Sent: Wednesday, January 15, 2003 6:17 PM > To: NYPHP Talk > Subject: [nycphp-talk] FedEx ship classes? > > > Hi. Would anyone suggest a (quick & easy?) solution for > integrating an existing PHP application with FedEx shipping? > The task is to feed this "solution" some typical FedEx > shipping fields (ship name, recipient name, service type, etc.) > and return a shipping label, complete with barcode and tracking #. > > I wrote a PHP/curl script to do this simply by posting > form data (via curl/HTTPS) to the FedEx web site (exactly as a > typical customer would do), but suddenly, on Monday, they > re-did their site, and I can't figure out all the new form > fields to POST...! > > FedEx has a "Ship Manager API" solution, but then a > PHP extension would have to be written, and I don't know C > too well. > > Thanks for any comments or suggestions!!! > > Best, George. > > George Webb > gw.nyphp at gwprogramming.com > (802) 985-1384 > > > --- Unsubscribe at http://nyphp.org/list/ --- > From LarryC at indexstock.com Thu Jan 16 10:49:17 2003 From: LarryC at indexstock.com (Larry Chuon) Date: Thu, 16 Jan 2003 10:49:17 -0500 Subject: LAMP product Message-ID: <86713EAB93BD5F40B94A0C8E604C7C91AEBABF@index-exchange.indexstock.com> OSSuite v1.01 was released last night. You can find the demo at http://demo.ossuite.org/final/oserp/ (admin/password). Please download ( http://sourceforge.net/projects/ossuite ) the latest source and try it out. Once again, if you would like to contribute to OSSuite, please drop me a line. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ssmith at tomega.com Thu Jan 16 10:55:59 2003 From: ssmith at tomega.com (Sean Smith) Date: Thu, 16 Jan 2003 10:55:59 -0500 Subject: [nycphp-talk] PHP IDE References: <200301152256.h0FMuPps042153@parsec.nyphp.org> Message-ID: <3E26D60F.5040500@tomega.com> I agree with Jerry. I use Dreamweaver MX also. It has built in highlights for php and I like the integration of file management both on the local machine and remote machine. Another nice feature is the code snippets. I try to reuse code as much as possible (as I'm sure most programmers do) and this makes it a little easier. From nyphp at altunergil.com Thu Jan 16 10:53:27 2003 From: nyphp at altunergil.com (Oktay Altunergil) Date: Thu, 16 Jan 2003 10:53:27 -0500 Subject: [nycphp-talk] LAMP product In-Reply-To: <200301161549.h0GFnPps048489@parsec.nyphp.org> References: <200301161549.h0GFnPps048489@parsec.nyphp.org> Message-ID: <20030116105327.3ffc96dd.nyphp@altunergil.com> Larry, Is there a changelog on the web anywhere ? Oktay On Thu, 16 Jan 2003 10:49:25 -0500 Larry Chuon wrote: > OSSuite v1.01 was released last night. You can find the demo at > http://demo.ossuite.org/final/oserp/ > (admin/password). Please download ( http://sourceforge.net/projects/ossuite > ) the latest source and try it > out. > > Once again, if you would like to contribute to OSSuite, please drop me a > line. > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From nyphp at websapp.com Thu Jan 16 11:16:00 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 16 Jan 2003 11:16:00 -0500 Subject: New York PHP become the Official Zend Beta Tester Gang!! Message-ID: Dear New York PHP Group, Please keep the information and links information private. This is not a public beta release and is only available for NYPHP and selected Zend customers. Thank you, Daniel Kushner Vice President New York PHP http://nyphp.org/ daniel at nyphp.org ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++ We are happy to inform you that a beta release of Zend Studio 2.6 is now available. This beta release is available to all existing Zend Studio customers for evaluation. You can access the beta package at: http://nyphp.org/zendbeta.php This release will be available up until the upcoming official Studio 2.6 launch, in early February. What's New ********** We hope that you'll enjoy taking advantage of the new features available, including: - CVS Integration: Perform all your CVS operations, directly from within the Zend Development Environment - Advanced project management capabilities - Additional advanced usability features: cross-file searching and bookmark management, regular expression searching, window cloning, customizable shortcuts, conditional breakpoints, deeper ftp integration, mousewheel support - Tighter Windows integration, including file system view - Improved performance on all platforms - Java Runtime v1.41 integration - Mousewheel support - Many bug fixes (including the infamous flashing window pane bug!) Feedback ******** Please send all comments and feedback to mailto:beta at zend.com. We want to hear from you. System Requirements ******************* System Requirements for Studio 2.6 remain the same as Studio 2.5 requirements, with the following exceptions: - Windows 98 is no longer supported. - For Windows 2000 users, it is strongly recommended to install Microsoft's Service Pack 3. - Mac OSX is not yet supported for Studio 2.6. Support will be made available in the future, in parallel with Apple support for Java JRE 1.4.1. - NOTE: Zend Studio 2.6 will support PHP 4.3. However, the current beta release is not yet fully compatible with 4.3. From LarryC at indexstock.com Thu Jan 16 12:04:41 2003 From: LarryC at indexstock.com (Larry Chuon) Date: Thu, 16 Jan 2003 12:04:41 -0500 Subject: [nycphp-talk] LAMP product Message-ID: <86713EAB93BD5F40B94A0C8E604C7C91AEBAC5@index-exchange.indexstock.com> Sorry, we only put it in the tar file. You can find a shorter version of it at http://www.ossuite.org/phpbb/viewtopic.php?t=16&highlight=release -----Original Message----- From: Oktay Altunergil [mailto:nyphp at altunergil.com] Sent: Thursday, January 16, 2003 10:58 AM To: NYPHP Talk Subject: Re: [nycphp-talk] LAMP product Larry, Is there a changelog on the web anywhere ? Oktay On Thu, 16 Jan 2003 10:49:25 -0500 Larry Chuon wrote: > OSSuite v1.01 was released last night. You can find the demo at > http://demo.ossuite.org/final/oserp/ > (admin/password). Please download ( http://sourceforge.net/projects/ossuite > ) the latest source and try it > out. > > Once again, if you would like to contribute to OSSuite, please drop me a > line. > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From MLynn at exchange.ml.com Thu Jan 16 12:18:15 2003 From: MLynn at exchange.ml.com (Lynn, Michael (DCS)) Date: Thu, 16 Jan 2003 12:18:15 -0500 Subject: [nycphp-talk] PHP IDE Message-ID: <8FA07D8665A9D511B80E00B0D068A1510293ABF1@ehope16.hew.us.ml.com> I'm also a fan of DW MX. Although, regarding highlighting, I haven't found a way to indicate to DW that files with no extension should be treated as PHP. Anyone done this? -----Original Message----- From: Sean Smith [mailto:ssmith at tomega.com] Sent: Thursday, January 16, 2003 10:56 AM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP IDE I agree with Jerry. I use Dreamweaver MX also. It has built in highlights for php and I like the integration of file management both on the local machine and remote machine. Another nice feature is the code snippets. I try to reuse code as much as possible (as I'm sure most programmers do) and this makes it a little easier. --- Unsubscribe at http://nyphp.org/list/ --- From nyphp at websapp.com Thu Jan 16 12:36:16 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 16 Jan 2003 12:36:16 -0500 Subject: [jobs@nyphp.org] Programmer Analyst (Visual Basic & Web Development) Message-ID: http://jobs.nyphp.org/detail.php?cat=3&de=11 From nyphp at websapp.com Thu Jan 16 12:42:55 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 16 Jan 2003 12:42:55 -0500 Subject: [jobs@nyphp.org] Cold Fusion Message-ID: http://jobs.nyphp.org/detail.php?cat=10&de=12 From sterling at bumblebury.com Thu Jan 16 12:41:50 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 16 Jan 2003 12:41:50 -0500 Subject: [nycphp-talk] PHP IDE In-Reply-To: <200301161718.h0GHISps049492@parsec.nyphp.org> References: <200301161718.h0GHISps049492@parsec.nyphp.org> Message-ID: <1042738910.6993.3770.camel@hasele> On Thu, 2003-01-16 at 12:18, Lynn, Michael wrote: > I'm also a fan of DW MX. Although, regarding highlighting, I haven't found a way to indicate to DW that files with no extension should be treated as PHP. Anyone done this? > > -----Original Message----- > From: Sean Smith [mailto:ssmith at tomega.com] > Sent: Thursday, January 16, 2003 10:56 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] PHP IDE > > > I agree with Jerry. I use Dreamweaver MX also. It has built in > highlights for php and I like the integration of file management both on > the local machine and remote machine. Another nice feature is the code > snippets. I try to reuse code as much as possible (as I'm sure most > programmers do) and this makes it a little easier. > > Just a note, that the Zend IDE has all these features, and includes extensive debugging capabilities. Breakpoints, watches, everything. -Sterling > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- -- "Reductionists like to take things apart. The rest of us are just trying to get it together." - Larry Wall, Programming Perl, 3rd Edition From weslists at anapraxis.com Thu Jan 16 12:58:38 2003 From: weslists at anapraxis.com (Weston Houghton) Date: Thu, 16 Jan 2003 12:58:38 -0500 Subject: [nycphp-talk] New York PHP become the Official Zend Beta Tester Gang!! In-Reply-To: <200301161619.h0GGJEps048842@parsec.nyphp.org> Message-ID: <23FB58E0-297C-11D7-87BE-003065760278@anapraxis.com> Is there any reference information we should be using when communicating with the beta folks at Zend? I'd love to be testing this under OS X, and just want to clear up a couple questions with them. Should I just mention that I am a nyphp member? Cheers, Wes On Thursday, January 16, 2003, at 11:19 AM, Daniel Kushner wrote: > Dear New York PHP Group, > > Please keep the information and links information private. This is not > a > public beta release and is only available for NYPHP and selected Zend > customers. > > Thank you, > Daniel Kushner > Vice President > New York PHP > http://nyphp.org/ > daniel at nyphp.org > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > +++++ > ++++ > > We are happy to inform you that a beta release of Zend Studio 2.6 is > now > available. This beta release is available to all existing Zend Studio > customers for evaluation. > > You can access the beta package at: http://nyphp.org/zendbeta.php > > This release will be available up until the upcoming official Studio > 2.6 > launch, in early February. > > > What's New > ********** > We hope that you'll enjoy taking advantage of the new features > available, > including: > - CVS Integration: Perform all your CVS operations, directly from > within > the Zend Development Environment > - Advanced project management capabilities > - Additional advanced usability features: cross-file searching and > bookmark > management, regular expression searching, window cloning, customizable > shortcuts, conditional breakpoints, deeper ftp integration, mousewheel > support > - Tighter Windows integration, including file system view > - Improved performance on all platforms > - Java Runtime v1.41 integration > - Mousewheel support > - Many bug fixes (including the infamous flashing window pane bug!) > > > Feedback > ******** > Please send all comments and feedback to mailto:beta at zend.com. We want > to > hear from you. > > > > System Requirements > ******************* > System Requirements for Studio 2.6 remain the same as Studio 2.5 > requirements, with the following exceptions: > - Windows 98 is no longer supported. > - For Windows 2000 users, it is strongly recommended to install > Microsoft's > Service Pack 3. > - Mac OSX is not yet supported for Studio 2.6. Support will be made > available in the future, in parallel with Apple support for Java JRE > 1.4.1. > > - NOTE: Zend Studio 2.6 will support PHP 4.3. However, the current > beta > release is not yet fully compatible with 4.3. > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From sklar at sklar.com Thu Jan 16 13:08:00 2003 From: sklar at sklar.com (David Sklar) Date: Thu, 16 Jan 2003 13:08:00 -0500 Subject: [nycphp-talk] [jobs@nyphp.org] Cold Fusion In-Reply-To: <200301161746.h0GHk6ps049819@parsec.nyphp.org> Message-ID: Maybe I'm missing something here, but why exactly are there Cold Fusion jobs on the NYPHP job board? Especially when the ad says things like "No Perl/PHP/cgis - strictly Coldfusion"? -dave > -----Original Message----- > From: Daniel Kushner [mailto:nyphp at websapp.com] > Sent: Thursday, January 16, 2003 12:46 PM > To: NYPHP Talk > Subject: [nycphp-talk] [jobs at nyphp.org] Cold Fusion > > > http://jobs.nyphp.org/detail.php?cat=10&de=12 > > > --- Unsubscribe at http://nyphp.org/list/ --- > From nyphp at altunergil.com Thu Jan 16 13:10:09 2003 From: nyphp at altunergil.com (Oktay Altunergil) Date: Thu, 16 Jan 2003 13:10:09 -0500 Subject: [nycphp-talk] [jobs@nyphp.org] Cold Fusion In-Reply-To: <200301161807.h0GI7Xps050082@parsec.nyphp.org> References: <200301161807.h0GI7Xps050082@parsec.nyphp.org> Message-ID: <20030116131009.653de249.nyphp@altunergil.com> There might be PHP people on the list who are in dire need of a job and also happen to know ColdFusion. I think any job is good in this economy. :) oktay On Thu, 16 Jan 2003 13:07:33 -0500 David Sklar wrote: > Maybe I'm missing something here, but why exactly are there Cold Fusion jobs > on the NYPHP job board? Especially when the ad says things like "No > Perl/PHP/cgis - strictly Coldfusion"? > > -dave > > > > -----Original Message----- > > From: Daniel Kushner [mailto:nyphp at websapp.com] > > Sent: Thursday, January 16, 2003 12:46 PM > > To: NYPHP Talk > > Subject: [nycphp-talk] [jobs at nyphp.org] Cold Fusion > > > > > > http://jobs.nyphp.org/detail.php?cat=10&de=12 > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From nyphp at websapp.com Thu Jan 16 13:33:40 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 16 Jan 2003 13:33:40 -0500 Subject: [nycphp-talk] [jobs@nyphp.org] Cold Fusion In-Reply-To: <200301161807.h0GI7Xps050082@parsec.nyphp.org> Message-ID: Sorry :) > -----Original Message----- > From: David Sklar [mailto:sklar at sklar.com] > Sent: Thursday, January 16, 2003 1:08 PM > To: NYPHP Talk > Subject: RE: [nycphp-talk] [jobs at nyphp.org] Cold Fusion > > > Maybe I'm missing something here, but why exactly are there Cold > Fusion jobs > on the NYPHP job board? Especially when the ad says things like "No > Perl/PHP/cgis - strictly Coldfusion"? > > -dave > > > > -----Original Message----- > > From: Daniel Kushner [mailto:nyphp at websapp.com] > > Sent: Thursday, January 16, 2003 12:46 PM > > To: NYPHP Talk > > Subject: [nycphp-talk] [jobs at nyphp.org] Cold Fusion > > > > > > http://jobs.nyphp.org/detail.php?cat=10&de=12 > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From nyphp at websapp.com Thu Jan 16 13:33:39 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 16 Jan 2003 13:33:39 -0500 Subject: [nycphp-talk] New York PHP become the Official Zend Beta Tester Gang!! In-Reply-To: <200301161758.h0GHwqps049943@parsec.nyphp.org> Message-ID: Yes, mention that you are a NYPHP member. You can contact beta at zend.com Daniel Kushner Vice President New York PHP http://nyphp.org/ daniel at nyphp.org > -----Original Message----- > From: Weston Houghton [mailto:weslists at anapraxis.com] > Sent: Thursday, January 16, 2003 12:59 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] New York PHP become the Official Zend Beta > Tester Gang!! > > > > Is there any reference information we should be using when > communicating with the beta folks at Zend? I'd love to be testing this > under OS X, and just want to clear up a couple questions with them. > Should I just mention that I am a nyphp member? > > Cheers, > Wes > > > On Thursday, January 16, 2003, at 11:19 AM, Daniel Kushner wrote: > > > Dear New York PHP Group, > > > > Please keep the information and links information private. This is not > > a > > public beta release and is only available for NYPHP and selected Zend > > customers. > > > > Thank you, > > Daniel Kushner > > Vice President > > New York PHP > > http://nyphp.org/ > > daniel at nyphp.org > > > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > +++++ > > ++++ > > > > We are happy to inform you that a beta release of Zend Studio 2.6 is > > now > > available. This beta release is available to all existing Zend Studio > > customers for evaluation. > > > > You can access the beta package at: http://nyphp.org/zendbeta.php > > > > This release will be available up until the upcoming official Studio > > 2.6 > > launch, in early February. > > > > > > What's New > > ********** > > We hope that you'll enjoy taking advantage of the new features > > available, > > including: > > - CVS Integration: Perform all your CVS operations, directly from > > within > > the Zend Development Environment > > - Advanced project management capabilities > > - Additional advanced usability features: cross-file searching and > > bookmark > > management, regular expression searching, window cloning, customizable > > shortcuts, conditional breakpoints, deeper ftp integration, mousewheel > > support > > - Tighter Windows integration, including file system view > > - Improved performance on all platforms > > - Java Runtime v1.41 integration > > - Mousewheel support > > - Many bug fixes (including the infamous flashing window pane bug!) > > > > > > Feedback > > ******** > > Please send all comments and feedback to mailto:beta at zend.com. We want > > to > > hear from you. > > > > > > > > System Requirements > > ******************* > > System Requirements for Studio 2.6 remain the same as Studio 2.5 > > requirements, with the following exceptions: > > - Windows 98 is no longer supported. > > - For Windows 2000 users, it is strongly recommended to install > > Microsoft's > > Service Pack 3. > > - Mac OSX is not yet supported for Studio 2.6. Support will be made > > available in the future, in parallel with Apple support for Java JRE > > 1.4.1. > > > > - NOTE: Zend Studio 2.6 will support PHP 4.3. However, the current > > beta > > release is not yet fully compatible with 4.3. > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From dj at waletzky.com Thu Jan 16 13:39:01 2003 From: dj at waletzky.com (D. J. Waletzky) Date: Thu, 16 Jan 2003 13:39:01 -0500 Subject: PHP Conference 2003 In-Reply-To: <200301140142.h0E1gOps017564@parsec.nyphp.org> References: <200301140142.h0E1gOps017564@parsec.nyphp.org> Message-ID: Has anyone been to any of the previous PHP Conferences? More importantly, does anyone know how much admission ought to cost? Anyone else thinking of going (it's in Amsterdam, May 8th and 9th). -- D. J. Waletzky dj at waletzky.com "Non sunt multiplicanda entia praeter necessitam." From sklar at sklar.com Thu Jan 16 13:48:35 2003 From: sklar at sklar.com (David Sklar) Date: Thu, 16 Jan 2003 13:48:35 -0500 Subject: [nycphp-talk] [jobs@nyphp.org] Cold Fusion In-Reply-To: <200301161814.h0GIERps050139@parsec.nyphp.org> Message-ID: Then maybe they should join a ColdFusion list and look on a ColdFusion job board. :) I don't mean to be too snooty about this -- the job board should have maximum utility for NYPHP members. But if the ads become so general that there's no difference between the NYPHP job board and searching on monster.com for web development jobs in NYC, then I don't think that's maximum utility. -dave > -----Original Message----- > From: Oktay Altunergil [mailto:nyphp at altunergil.com] > Sent: Thursday, January 16, 2003 1:14 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] [jobs at nyphp.org] Cold Fusion > > > There might be PHP people on the list who are in dire need of a > job and also happen to know ColdFusion. I think any job is good > in this economy. :) > > oktay > > On Thu, 16 Jan 2003 13:07:33 -0500 > David Sklar wrote: > > > Maybe I'm missing something here, but why exactly are there > Cold Fusion jobs > > on the NYPHP job board? Especially when the ad says things like "No > > Perl/PHP/cgis - strictly Coldfusion"? > > > > -dave > > > > > > > -----Original Message----- > > > From: Daniel Kushner [mailto:nyphp at websapp.com] > > > Sent: Thursday, January 16, 2003 12:46 PM > > > To: NYPHP Talk > > > Subject: [nycphp-talk] [jobs at nyphp.org] Cold Fusion > > > > > > > > > http://jobs.nyphp.org/detail.php?cat=10&de=12 > > > > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From dorgan at optonline.net Thu Jan 16 14:01:02 2003 From: dorgan at optonline.net (Donald J. Organ IV) Date: Thu, 16 Jan 2003 14:01:02 -0500 Subject: [nycphp-talk] New York PHP become the Official Zend Beta Tester Gang!! References: <200301161619.h0GGJEps048842@parsec.nyphp.org> Message-ID: <005201c2bd91$cd5da850$09010064@dorganmobile> Has anyone had a problem installing the Zend Studio beta, I am getting a cannot contact server message. ----- Original Message ----- From: "Daniel Kushner" To: "NYPHP Talk" Sent: Thursday, January 16, 2003 11:19 AM Subject: [nycphp-talk] New York PHP become the Official Zend Beta Tester Gang!! > Dear New York PHP Group, > > Please keep the information and links information private. This is not a > public beta release and is only available for NYPHP and selected Zend > customers. > > Thank you, > Daniel Kushner > Vice President > New York PHP > http://nyphp.org/ > daniel at nyphp.org > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ++++ > > We are happy to inform you that a beta release of Zend Studio 2.6 is now > available. This beta release is available to all existing Zend Studio > customers for evaluation. > > You can access the beta package at: http://nyphp.org/zendbeta.php > > This release will be available up until the upcoming official Studio 2.6 > launch, in early February. > > > What's New > ********** > We hope that you'll enjoy taking advantage of the new features available, > including: > - CVS Integration: Perform all your CVS operations, directly from within > the Zend Development Environment > - Advanced project management capabilities > - Additional advanced usability features: cross-file searching and bookmark > management, regular expression searching, window cloning, customizable > shortcuts, conditional breakpoints, deeper ftp integration, mousewheel > support > - Tighter Windows integration, including file system view > - Improved performance on all platforms > - Java Runtime v1.41 integration > - Mousewheel support > - Many bug fixes (including the infamous flashing window pane bug!) > > > Feedback > ******** > Please send all comments and feedback to mailto:beta at zend.com. We want to > hear from you. > > > > System Requirements > ******************* > System Requirements for Studio 2.6 remain the same as Studio 2.5 > requirements, with the following exceptions: > - Windows 98 is no longer supported. > - For Windows 2000 users, it is strongly recommended to install Microsoft's > Service Pack 3. > - Mac OSX is not yet supported for Studio 2.6. Support will be made > available in the future, in parallel with Apple support for Java JRE 1.4.1. > > - NOTE: Zend Studio 2.6 will support PHP 4.3. However, the current beta > release is not yet fully compatible with 4.3. > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From brian at preston-campbell.com Thu Jan 16 14:38:12 2003 From: brian at preston-campbell.com (Brian) Date: Thu, 16 Jan 2003 14:38:12 -0500 Subject: [nycphp-talk] New York PHP become the Official Zend Beta Tester Gang!! In-Reply-To: <200301161903.h0GJ3ips050649@parsec.nyphp.org> References: <200301161903.h0GJ3ips050649@parsec.nyphp.org> Message-ID: <200301161438.12421.brian@preston-campbell.com> What platform? It was an easy install on Linux, but then again I chose to leave the server form blank as I am not connecting to a Zend server. Brian On Thursday 16 January 2003 02:03 pm, Donald J. Organ IV wrote: > Has anyone had a problem installing the Zend Studio beta, I am getting a > cannot contact server message. > > > ----- Original Message ----- > From: "Daniel Kushner" > To: "NYPHP Talk" > Sent: Thursday, January 16, 2003 11:19 AM > Subject: [nycphp-talk] New York PHP become the Official Zend Beta Tester > Gang!! > > > Dear New York PHP Group, > > > > Please keep the information and links information private. This is not a > > public beta release and is only available for NYPHP and selected Zend > > customers. > > > > Thank you, > > Daniel Kushner > > Vice President > > New York PHP > > http://nyphp.org/ > > daniel at nyphp.org > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >+ > > > ++++ > > > > We are happy to inform you that a beta release of Zend Studio 2.6 is now > > available. This beta release is available to all existing Zend Studio > > customers for evaluation. > > > > You can access the beta package at: http://nyphp.org/zendbeta.php > > > > This release will be available up until the upcoming official Studio 2.6 > > launch, in early February. > > > > > > What's New > > ********** > > We hope that you'll enjoy taking advantage of the new features available, > > including: > > - CVS Integration: Perform all your CVS operations, directly from within > > the Zend Development Environment > > - Advanced project management capabilities > > - Additional advanced usability features: cross-file searching and > > bookmark > > > management, regular expression searching, window cloning, customizable > > shortcuts, conditional breakpoints, deeper ftp integration, mousewheel > > support > > - Tighter Windows integration, including file system view > > - Improved performance on all platforms > > - Java Runtime v1.41 integration > > - Mousewheel support > > - Many bug fixes (including the infamous flashing window pane bug!) > > > > > > Feedback > > ******** > > Please send all comments and feedback to mailto:beta at zend.com. We want to > > hear from you. > > > > > > > > System Requirements > > ******************* > > System Requirements for Studio 2.6 remain the same as Studio 2.5 > > requirements, with the following exceptions: > > - Windows 98 is no longer supported. > > - For Windows 2000 users, it is strongly recommended to install > > Microsoft's > > > Service Pack 3. > > - Mac OSX is not yet supported for Studio 2.6. Support will be made > > available in the future, in parallel with Apple support for Java JRE > > 1.4.1. > > > - NOTE: Zend Studio 2.6 will support PHP 4.3. However, the current beta > > release is not yet fully compatible with 4.3. > > --- Unsubscribe at http://nyphp.org/list/ --- From nyphp at websapp.com Thu Jan 16 14:43:21 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 16 Jan 2003 14:43:21 -0500 Subject: [nycphp-talk] New York PHP become the Official Zend Beta Tester Gang!! In-Reply-To: <200301161903.h0GJ3ips050649@parsec.nyphp.org> Message-ID: Are you on Windows or Linux? I installed the Windows version with not problem. In your machine online? That could be a necessity! Daniel Kushner Vice President New York PHP http://nyphp.org/ daniel at nyphp.org > -----Original Message----- > From: Donald J. Organ IV [mailto:dorgan at optonline.net] > Sent: Thursday, January 16, 2003 2:04 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] New York PHP become the Official Zend Beta > Tester Gang!! > > > Has anyone had a problem installing the Zend Studio beta, I am getting a > cannot contact server message. > > > ----- Original Message ----- > From: "Daniel Kushner" > To: "NYPHP Talk" > Sent: Thursday, January 16, 2003 11:19 AM > Subject: [nycphp-talk] New York PHP become the Official Zend Beta Tester > Gang!! > > > > Dear New York PHP Group, > > > > Please keep the information and links information private. This is not a > > public beta release and is only available for NYPHP and selected Zend > > customers. > > > > Thank you, > > Daniel Kushner > > Vice President > > New York PHP > > http://nyphp.org/ > > daniel at nyphp.org > > > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > ++++++++++ > > ++++ > > > > We are happy to inform you that a beta release of Zend Studio 2.6 is now > > available. This beta release is available to all existing Zend Studio > > customers for evaluation. > > > > You can access the beta package at: http://nyphp.org/zendbeta.php > > > > This release will be available up until the upcoming official Studio 2.6 > > launch, in early February. > > > > > > What's New > > ********** > > We hope that you'll enjoy taking advantage of the new features > available, > > including: > > - CVS Integration: Perform all your CVS operations, directly > from within > > the Zend Development Environment > > - Advanced project management capabilities > > - Additional advanced usability features: cross-file searching and > bookmark > > management, regular expression searching, window cloning, customizable > > shortcuts, conditional breakpoints, deeper ftp integration, mousewheel > > support > > - Tighter Windows integration, including file system view > > - Improved performance on all platforms > > - Java Runtime v1.41 integration > > - Mousewheel support > > - Many bug fixes (including the infamous flashing window pane bug!) > > > > > > Feedback > > ******** > > Please send all comments and feedback to mailto:beta at zend.com. > We want to > > hear from you. > > > > > > > > System Requirements > > ******************* > > System Requirements for Studio 2.6 remain the same as Studio 2.5 > > requirements, with the following exceptions: > > - Windows 98 is no longer supported. > > - For Windows 2000 users, it is strongly recommended to install > Microsoft's > > Service Pack 3. > > - Mac OSX is not yet supported for Studio 2.6. Support will be made > > available in the future, in parallel with Apple support for Java JRE > 1.4.1. > > > > - NOTE: Zend Studio 2.6 will support PHP 4.3. However, the > current beta > > release is not yet fully compatible with 4.3. > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From nyphp at websapp.com Thu Jan 16 16:21:32 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 16 Jan 2003 16:21:32 -0500 Subject: [jobs@nyphp.org] Web Designer/Production Pro for E-Commerce Site Message-ID: http://jobs.nyphp.org/detail.php?cat=8&de=13 From gw.nyphp at gwprogramming.com Thu Jan 16 17:07:45 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Thu, 16 Jan 2003 17:07:45 -0500 (EST) Subject: FT Web Developer Job Message-ID: <200301162207.RAA25649@gw00.com> Hi PHP Crew! I wish this job were more an entirely "PHP Job", but it isn't. It is probably more of an "HTML job," so some graphics experience is required. But PHP is definitely "on the rise" at VTB (and its affiliated companies), and this department, the "Internet Department," would like to become more technologically independent of the I.T. department (or outsourcers), which usually has to do even their most basic programming. I myself am in the I.T. department at this company, as the "web programmer," and I would definitely recommend that the Internet department become more independent of I.T. Maybe someone on this list would be both capable and interested. Yes, this permanent position is in Shelburne, VT, which is right next to Burlington. So far the applicants have all been over-qualified, which may not be that surprising. The best candidate will probably show speed of producing web pages and associated components (images, stylesheets, etc.) and will be able to work with some databases (Access, MySQL) and e-commerce solutions (Yahoo Store, InterShop, etc.). Perl and PHP abilities would be the next priority, I would suppose. >>> WEBSITE CONTENT DEVELOPER - Shelburne Seeking Internet person to create and maintain website content on The Vermont Teddy Bear Company's consumer and internal websites. Experience with HTML, CSS, Photoshop, Dreamweaver and JavaScript required. Experience with Yahoo! Store, InterShop or other e-commerce store platforms preferred. Must be able to manage workload independently and with attention to detail, in a fun, fast-paced, multi-website environment. Please send resume to: The Vermont Teddy Bear Company Attn: Human Resources 6655 Shelburne Road, Shelburne, VT 05482 fax to 802-985-1330 or email in MS Word format to sues at vtbear.com (Sue Schermerhorn, Senior Human Resources Generalist) <<< Best, George. George Webb gw.nyphp at gwprogramming.com From jkapron at NewAgeWeb.com Thu Jan 16 18:10:17 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Thu, 16 Jan 2003 18:10:17 -0500 Subject: [nycphp-talk] PHP IDE Message-ID: <002e01c2bdb4$6fe5f6a0$de01a8c0@duron.lan.newageweb.com> >Just a note, that the Zend IDE has all these features, and includes >extensive debugging capabilities. Breakpoints, watches, everything. > >-Sterling Is Zend IDE also a RAD (Rapid Aplication Development) environment like DM MX? It can generate some code for you using what Macromedia calls exstensions or 'server behaviors'. This is much more than code snippets. To gat a better idea take a look at this tutorial: http://www.macromedia.com/desdev/mx/dreamweaver/articles/record_store.html You can also write your own DW extensions: http://www.macromedia.com/desdev/mx/dreamweaver/articles/breadcrumbs.html I havn't really used much of the RAD functionality of DW MX, since I like to write all my code by hand, but I can see how much it can speed up web app development in general. One feature I really like is how DW manages db connections and dynamic datasets. Jerry From gw.nyphp at gwprogramming.com Thu Jan 16 20:49:24 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Thu, 16 Jan 2003 20:49:24 -0500 (EST) Subject: Why doesn't this work: chained ?: expressions Message-ID: <200301170149.UAA25845@gw00.com> Hi PHP Team! I'm sure "associativity" is the answer to why doesn't this work as desired, but perhaps someone could suggest how to get this sexy expression chain to work, and still look sexy: ----- $input = $argv[1]; $output = preg_match ( '/one/i', $input ) ? '01' : preg_match ( '/two/i', $input ) ? '02' : preg_match ( '/three/i', $input ) ? '03' : preg_match ( '/four/i', $input ) ? '04' : '00'; echo "$input => $output\ "; ----- Here is some sample output: one => 04 two => 04 three => 04 four => 04 five => 00 asdf => 00 Obviously this is not the desired result. Must we fix this with parentheses, and if so how? Will it become ugly? Should I just use a bunch of "if" statements? Thanks for your thoughts! Best, George. George Webb gw.nyphp at gwprogramming.com (802) 283-4352 From chun_lam at hotmail.com Thu Jan 16 21:15:19 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Thu, 16 Jan 2003 21:15:19 -0500 Subject: [nycphp-talk] Problems with require and variables Message-ID: Have you tried include? ----Original Message Follows---- From: "Phil Powell" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] Problems with require and variables Date: Wed, 15 Jan 2003 23:35:27 -0500 Received: from mc3-f14.law16.hotmail.com ([65.54.236.149]) by mc3-s11.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 15 Jan 2003 20:45:48 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc3-f14.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 15 Jan 2003 20:45:18 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0G4ZRps044437;Wed, 15 Jan 2003 23:35:27 -0500 (EST)(envelope-from listmaster at nyphp.org) Message-Id: <200301160435.h0G4ZRps044437 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: listmaster at nyphp.org X-OriginalArrivalTime: 16 Jan 2003 04:45:18.0896 (UTC) FILETIME=[1205BB00:01C2BD1A] Consider this: I have display.php, a script that will do XML parsing into an array and display its contents. I have view.php, a script that will include display.php and have to manipulate the variables within display.php for itself. So in view.php I have: require('/.../.../display.php'); However, when display.php finishes being "required", I lose all of my variables that I need for view.php. How do I retain them?? How can I ensure that these variables in display.php will also exist in view.php? Thanx Phil --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE* http://join.msn.com/?page=features/virus From chun_lam at hotmail.com Thu Jan 16 21:21:54 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Thu, 16 Jan 2003 21:21:54 -0500 Subject: [nycphp-talk] regarding image Message-ID: Read in the page that contain the path. Strip everything around it. ;-) ----Original Message Follows---- From: Tracy Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] regarding image Date: Thu, 16 Jan 2003 07:31:14 -0500 Received: from mc4-f19.law16.hotmail.com ([65.54.237.154]) by mc4-s8.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 16 Jan 2003 04:40:18 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc4-f19.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 16 Jan 2003 04:40:17 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0GCVEps047383;Thu, 16 Jan 2003 07:31:15 -0500 (EST)(envelope-from listmaster at nyphp.org) Message-Id: <200301161231.h0GCVEps047383 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: listmaster at nyphp.org X-OriginalArrivalTime: 16 Jan 2003 12:40:17.0898 (UTC) FILETIME=[6CC054A0:01C2BD5C] HI, I cant understand this: in a script that is suposed to upload image, i have, $data = addslashes(fread(fopen($form_data, "r"), filesize($form_data))); echo $data; for this i get the following 'echoed': GIF89a?X?\\0\\0??y`??!?\\0\\0\\0\\0\\0,\\0\\0\\0\\0?X\\0?????????????????H???????? ??L???????? ?????L*???? ?J??????j???? ??????N????? ?????????????,(8HXhx????????)9IYiy?????? why is it so? is there some way where i can save the path of the image in the mysql database? i mean, i upload a pict from the desktop and have the path to the directory where i want to save the image. is there a way where i can have the field in the mysql table as : image_path ----------- "the upload dir path i have specified " + "the image name" so that i can use this as a link to display the image. if there is a better way to achieve this, plz help me with it. Thanks Tracy Phil Powell wrote:Which is what happened until I put the vars into a session variable, then all was well! :) Thanx Phil ----- Original Message ----- From: "Analysis & Solutions" To: "NYPHP Talk" Sent: Thursday, January 16, 2003 2:07 AM Subject: Re: [nycphp-talk] Problems with require and variables > On Wed, Jan 15, 2003 at 11:35:27PM -0500, Phil Powell wrote: > > > > However, when display.php finishes being "required", I lose all of my > > variables that I need for view.php. How do I retain them?? How can I > > ensure that these variables in display.php will also exist in view.php? > > Once it's required, everything that's happened is still there. It's as if > you had one big file rather than multiple smaller files. > > Chances are you are trying to use those variables in functions in which > you didn't global the array. > > --Dan > > -- > PHP classes that make web design easier > SqlSolution.info | LayoutSolution.info | FormSolution.info > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From hans at nyphp.org Thu Jan 16 23:12:03 2003 From: hans at nyphp.org (Hans Zaunere) Date: Thu, 16 Jan 2003 20:12:03 -0800 (PST) Subject: NYPHP LinuxWorld Events Message-ID: <20030117041203.99152.qmail@web12808.mail.yahoo.com> Good evening, LinuxWorld Expo is only a few days away, and with the indispensable support of NYPHP members, UNILUG and Ron Guerin, we're excited to offer some great happenings at LWE. January 22, 2003 @ 1:30pm, NYPHP Booth #16 "Q&A with Doron Gerstel, CEO, Co-Founder, Zend Technologies" Doron has kindly taken time from his busy schedule to address NY's questions on PHP, Zend, and the community's direction. Join us and get your questions answered by Zend's leading man. January 22,23,24, 2003 @ 3:30pm, NYPHP Booth #16 "PHP Developers Cookbook by Sterling Hughes and Andrei Zmievski Book Raffle" Get your name entered by 3:30pm each day and have a chance to win this valuable reference for any PHP programmer. Thanks to Sterling Hughes and Sams Publishing. Haven't signed up for LinuxWorld Expo yet? It?s not too late - register for FREE at http://linuxworldexpo.com and stop by Booth #16 for talk, fun and PHP! And if you'd like to take a load off, spend some time behind the booth answering questions and talking with fellow Linux and PHP users. Don't forget to look at http://booth.unilug.org for coverage dates and times (Thursday staffing is still a bit thin!). Many thanks, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From jonbaer at jonbaer.net Thu Jan 16 07:57:15 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 16 Jan 2003 07:57:15 -0500 Subject: [nycphp-talk] NYPHP LinuxWorld Events References: <200301170412.h0H4C93P055689@parsec.nyphp.org> Message-ID: <003b01c2bd5e$ce036660$6400a8c0@laptop> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Im trying to figure out what time this event starts and if it is free, can someone tell: MySQL: Learn What's New BOF Leaders: Marten Mickos CEO, MySQL David Axmark, CoFounder, MySQL Michael (Monty) Widenius, Co-Founder/CTO and main designer & developer, MySQL Kaj Arn?, VP Tranining, MySQL The main developers will walk though the new features of MySQL. Come ask members of the MySQL team about anything you want to know! - - Jon -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBPiasKEHb24uaDK9HEQLIpACeKaym3rGLy6S3O+eHQTRb8B/msxsAoLrL 9vD3A5dC8ex6eJ+5BRDlRd1C =Nslc -----END PGP SIGNATURE----- From zaunere at yahoo.com Thu Jan 16 23:53:27 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 16 Jan 2003 20:53:27 -0800 (PST) Subject: [nycphp-talk] NYPHP LinuxWorld Events In-Reply-To: <200301170431.h0H4V73P055852@parsec.nyphp.org> Message-ID: <20030117045327.66757.qmail@web12804.mail.yahoo.com> --- Jon Baer wrote: > Im trying to figure out what time this event starts and if it is free, can > someone tell: > > MySQL: Learn What's New > BOF Leaders: Marten Mickos CEO, MySQL > David Axmark, CoFounder, MySQL > Michael (Monty) Widenius, Co-Founder/CTO and main designer & developer, > MySQL > Kaj Arn?, VP Tranining, MySQL > The main developers will walk though the new features of MySQL. Come ask > members of the MySQL team about anything you want to know! I have this flyer at work, and try to check the details. I think it is Free, and, I remember correctly, is a general ongoing pow-wow type of event at their booth (I may be wrong, though). http://www.linuxworldexpo.com/linuxworldny03/V33/floorplan/floorplan.cvn?b=214&exbID=69 ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From feeney at un.org Fri Jan 17 10:29:57 2003 From: feeney at un.org (Griffith Feeney) Date: Fri, 17 Jan 2003 10:29:57 -0500 Subject: Apache/PHP Authentication Message-ID: I would like to use Apache authentication to password protect certain directories that contain mostly binary files. With 1600+ users, I don't want to authenticate against a text file, especially as there is already a mysql database available for the purpose. The webhosting provider doesn't provide mod_auth. I'm thinking of using a PHP page to authenticate against the mysql database and, once a user is authenticated, have the PHP page send the server an .htaccess user name and password. The latter would be changed from time to time, but would be the same for all users. High security is not required here. I've spent many hours reading around on the web on the subject, but don't find anything along these lines, and being a rank beginner in PHP, I don't want to spend time trying to implement this idea if it is unworkable. Does anybody know of an implementation, or have an idea of whether or not this could be made to work? Thanks! From sklar at sklar.com Fri Jan 17 10:40:27 2003 From: sklar at sklar.com (David Sklar) Date: Fri, 17 Jan 2003 10:40:27 -0500 Subject: [nycphp-talk] NYPHP LinuxWorld Events In-Reply-To: <200301170412.h0H4C93P055689@parsec.nyphp.org> Message-ID: I'll add that Adam Trachtenberg and I will be at the O'Reilly booth (#457) on Wednesday afternoon starting at 1pm to sign copies of "PHP Cookbook" and hang out. So if you're around, please come by to say "hi". David From georgenatalino at yahoo.com Fri Jan 17 11:12:40 2003 From: georgenatalino at yahoo.com (georgenatalino at yahoo.com) Date: Fri, 17 Jan 2003 11:12:40 -0500 Subject: LinuxWorld: MySQL: Learn What?s New Message-ID: <3E282B78.60657706@yahoo.com> An HTML attachment was scrubbed... URL: From paul at weinberg.com Fri Jan 17 11:13:46 2003 From: paul at weinberg.com (paul at weinberg.com) Date: Fri, 17 Jan 2003 08:13:46 -0800 (PST) Subject: [nycphp-talk] Apache/PHP Authentication Message-ID: <20030117081347.23802.h015.c000.wm@mail.weinberg.com.criticalpath.net> Hi, I'm certainly not an authority on the subject, but it feels like you need to be at a lower level within Apache then PHP will get you to. I would try to use mod_perl to do this, in effect writing an Apache module in perl. good luck, Paul On Fri, 17 Jan 2003, "Griffith Feeney" wrote: > > I would like to use Apache authentication to password > protect certain > directories that contain mostly binary files. With > 1600+ users, I don't > want to authenticate against a text file, especially as > there is already a > mysql database available for the purpose. The > webhosting provider doesn't > provide mod_auth. > > I'm thinking of using a PHP page to authenticate > against the mysql database > and, once a user is authenticated, have the PHP page > send the server an > htaccess user name and password. The latter would be > changed from time to > time, but would be the same for all users. High > security is not required > here. > > I've spent many hours reading around on the web on the > subject, but don't > find anything along these lines, and being a rank > beginner in PHP, I don't > want to spend time trying to implement this idea if it > is unworkable. > > Does anybody know of an implementation, or have an idea > of whether or not > this could be made to work? Thanks! > > > > --- Unsubscribe at http://nyphp.org/list/ --- From dkrook at hotmail.com Fri Jan 17 11:14:32 2003 From: dkrook at hotmail.com (D C Krook) Date: Fri, 17 Jan 2003 11:14:32 -0500 Subject: Camera/Video Equipment Needed for LinuxWorld Expo Message-ID: Greetings all, The planning for NYPHP's presence at the LinuxWorld Expo is rapidly progressing. The best way to keep tabs on our preparation is to sign up for the relatively low traffic NYPHP Development list and the UniLUG Expo mailing list: [http://nyphp.org/list/] and [http://unilug.org/mailinglists.html] We're currently looking for volunteers to provide a digital camera or video recording equipment so that we can record the Q & A session with Zend Technologies CEO Doron Gerstel on Wednesday the 22nd. If anybody is willing to help record the event or just to provide the necessary equipment for the afternoon, please get in touch with Hans or I as soon as possible. Thanks, Dan ===== Daniel Krook Director of Communications, New York PHP http://nyphp.org krook at nyphp.org >LinuxWorld Expo is only a few days away, and with the indispensable support >of NYPHP members, UNILUG and Ron Guerin, we're excited to offer some great >happenings at LWE. > > >January 22, 2003 @ 1:30pm, NYPHP Booth #16 >"Q&A with Doron Gerstel, CEO, Co-Founder, Zend Technologies" > >Doron has kindly taken time from his busy schedule to address NY's >questions >on PHP, Zend, and the community's direction. Join us and get your >questions >answered by Zend's leading man. > > >January 22,23,24, 2003 @ 3:30pm, NYPHP Booth #16 >"PHP Developers Cookbook by Sterling Hughes and Andrei Zmievski Book >Raffle" > >Get your name entered by 3:30pm each day and have a chance to win this >valuable reference for any PHP programmer. Thanks to Sterling Hughes and >Sams Publishing. > > >Haven't signed up for LinuxWorld Expo yet? > >It?s not too late - register for FREE at http://linuxworldexpo.com and stop >by Booth #16 for talk, fun and PHP! And if you'd like to take a load off, >spend some time behind the booth answering questions and talking with >fellow >Linux and PHP users. > >Don't forget to look at http://booth.unilug.org for coverage dates and >times >(Thursday staffing is still a bit thin!). > >Many thanks, > >===== >Hans Zaunere >President, New York PHP >http://nyphp.org >hans at nyphp.org _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From brian at preston-campbell.com Fri Jan 17 11:28:12 2003 From: brian at preston-campbell.com (Brian) Date: Fri, 17 Jan 2003 11:28:12 -0500 Subject: [nycphp-talk] Camera/Video Equipment Needed for LinuxWorld Expo In-Reply-To: <200301171614.h0HGEd3P061889@parsec.nyphp.org> References: <200301171614.h0HGEd3P061889@parsec.nyphp.org> Message-ID: <200301171128.12720.brian@preston-campbell.com> I have an Axis 2120 Network Video Camera (http://www.axis.com) if you have the means to capture the stream to hard disk. Let me know if you are interested, as I can bring it with me. Brian On Friday 17 January 2003 11:14 am, D C Krook wrote: > Greetings all, > > The planning for NYPHP's presence at the LinuxWorld Expo is rapidly > progressing. The best way to keep tabs on our preparation is to sign up > for the relatively low traffic NYPHP Development list and the UniLUG Expo > mailing list: [http://nyphp.org/list/] and > [http://unilug.org/mailinglists.html] > > We're currently looking for volunteers to provide a digital camera or video > recording equipment so that we can record the Q & A session with Zend > Technologies CEO Doron Gerstel on Wednesday the 22nd. > > If anybody is willing to help record the event or just to provide the > necessary equipment for the afternoon, please get in touch with Hans or I > as soon as possible. > > Thanks, > Dan > > > > ===== > Daniel Krook > Director of Communications, New York PHP > http://nyphp.org > krook at nyphp.org > > >LinuxWorld Expo is only a few days away, and with the indispensable > > support of NYPHP members, UNILUG and Ron Guerin, we're excited to offer > > some great happenings at LWE. > > > > > >January 22, 2003 @ 1:30pm, NYPHP Booth #16 > >"Q&A with Doron Gerstel, CEO, Co-Founder, Zend Technologies" > > > >Doron has kindly taken time from his busy schedule to address NY's > >questions > >on PHP, Zend, and the community's direction. Join us and get your > >questions > >answered by Zend's leading man. > > > > > >January 22,23,24, 2003 @ 3:30pm, NYPHP Booth #16 > >"PHP Developers Cookbook by Sterling Hughes and Andrei Zmievski Book > >Raffle" > > > >Get your name entered by 3:30pm each day and have a chance to win this > >valuable reference for any PHP programmer. Thanks to Sterling Hughes and > >Sams Publishing. > > > > > >Haven't signed up for LinuxWorld Expo yet? > > > >It?s not too late - register for FREE at http://linuxworldexpo.com and > > stop by Booth #16 for talk, fun and PHP! And if you'd like to take a > > load off, spend some time behind the booth answering questions and > > talking with fellow > >Linux and PHP users. > > > >Don't forget to look at http://booth.unilug.org for coverage dates and > >times > >(Thursday staffing is still a bit thin!). > > > >Many thanks, > > > >===== > >Hans Zaunere > >President, New York PHP > >http://nyphp.org > >hans at nyphp.org > > _________________________________________________________________ > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > --- Unsubscribe at http://nyphp.org/list/ --- From jim at bizcomputinginc.com Fri Jan 17 11:32:33 2003 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Fri, 17 Jan 2003 11:32:33 -0500 Subject: [nycphp-talk] Apache/PHP Authentication References: <200301171530.h0HFUI3P061406@parsec.nyphp.org> Message-ID: <00cc01c2be46$0aff3200$6601a8c0@Notebook> I use PHP to authenticate against mySQL and then store login info in the session. Then it's a simple affair to check at the top of each page if the login info is good, if not divert to login. I have the code that checks the login state as a seperate file that I include in all my pages that need to be secured. Jim ______________________________________________________________ Jim Hendricks, President, Biz Computing, Inc Phone: (201) 599-9380 Email: jim at bizcomputinginc.com Web: www.bizcomputinginc.com Snail: Jim Hendricks, Biz Computing, Inc., 255 McKinley Ave, New Milford, NJ 07646 ______________________________________________________________ ----- Original Message ----- From: "Griffith Feeney" To: "NYPHP Talk" Sent: Friday, January 17, 2003 10:30 AM Subject: [nycphp-talk] Apache/PHP Authentication > I would like to use Apache authentication to password protect certain > directories that contain mostly binary files. With 1600+ users, I don't > want to authenticate against a text file, especially as there is already a > mysql database available for the purpose. The webhosting provider doesn't > provide mod_auth. > > I'm thinking of using a PHP page to authenticate against the mysql database > and, once a user is authenticated, have the PHP page send the server an > htaccess user name and password. The latter would be changed from time to > time, but would be the same for all users. High security is not required > here. > > I've spent many hours reading around on the web on the subject, but don't > find anything along these lines, and being a rank beginner in PHP, I don't > want to spend time trying to implement this idea if it is unworkable. > > Does anybody know of an implementation, or have an idea of whether or not > this could be made to work? Thanks! > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > > From sklar at sklar.com Fri Jan 17 11:50:55 2003 From: sklar at sklar.com (David Sklar) Date: Fri, 17 Jan 2003 11:50:55 -0500 Subject: [nycphp-talk] Why doesn't this work: chained ?: expressions In-Reply-To: <200301170149.h0H1nUps054457@parsec.nyphp.org> Message-ID: You don't have to add many parenthesis to get it to work right: $output = preg_match ( '/one/i', $input ) ? '01' : (preg_match ( '/two/i', $input ) ? '02' : (preg_match ( '/three/i', $input ) ? '03' : (preg_match ( '/four/i', $input ) ? '04': '00'))); You could do it with less calls to preg_match() like this: $map = array ('one' => '01', 'two' => '02', 'three' => '03', 'four' => '04'); $output = preg_match('/'.join('|',array_keys($map)).'/',$input,$matches)) ? $map[$matches[0]] : '00'; You might also want to put some anchors around the "one" "two" "three", etc. or when $input is "none", $output will be "01". -dave > -----Original Message----- > From: George Webb [mailto:gw.nyphp at gwprogramming.com] > Sent: Thursday, January 16, 2003 8:50 PM > To: NYPHP Talk > Subject: [nycphp-talk] Why doesn't this work: chained ?: expressions > > > Hi PHP Team! > > I'm sure "associativity" is the answer to why doesn't this work > as desired, but perhaps someone could suggest how to get this > sexy expression > chain to work, and still look sexy: > > > ----- > $input = $argv[1]; > > $output = preg_match ( '/one/i', $input ) ? '01' > : preg_match ( '/two/i', $input ) ? '02' > : preg_match ( '/three/i', $input ) ? '03' > : preg_match ( '/four/i', $input ) ? '04' > : '00'; > > echo "$input => $output\ "; > ----- > > > Here is some sample output: > > one => 04 > two => 04 > three => 04 > four => 04 > five => 00 > asdf => 00 > > Obviously this is not the desired result. Must we fix this > with parentheses, and if so how? Will it become ugly? Should I just > use a bunch of "if" statements? > > Thanks for your thoughts! > > > Best, George. > > George Webb > gw.nyphp at gwprogramming.com > (802) 283-4352 > > > --- Unsubscribe at http://nyphp.org/list/ --- > From dkrook at hotmail.com Fri Jan 17 11:55:56 2003 From: dkrook at hotmail.com (D C Krook) Date: Fri, 17 Jan 2003 11:55:56 -0500 Subject: [nycphp-talk] Camera/Video Equipment Needed for LinuxWorld Expo Message-ID: Brian, The specs on that look fantastic (embedded Linux OS, direct ethernet output, 25/10fps), and it looks like it would be great for our needs. So it basically needs a Windows, Linux, or Mac laptop to be hooked up to? Do you have the software to connect it to all of those or just a PC? > >I have an Axis 2120 Network Video Camera (http://www.axis.com) if you have >the >means to capture the stream to hard disk. Let me know if you are >interested, >as I can bring it with me. > >Brian > _________________________________________________________________ Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From brian at preston-campbell.com Fri Jan 17 11:40:05 2003 From: brian at preston-campbell.com (Brian) Date: Fri, 17 Jan 2003 11:40:05 -0500 Subject: [nycphp-talk] Camera/Video Equipment Needed for LinuxWorld Expo In-Reply-To: <200301171614.h0HGEd3P061889@parsec.nyphp.org> References: <200301171614.h0HGEd3P061889@parsec.nyphp.org> Message-ID: <200301171140.05293.brian@preston-campbell.com> I just realized that I don't have the audio module for this Axis camera right now, so given that audio would probably be desireable, please disregard my last post. Brian On Friday 17 January 2003 11:14 am, D C Krook wrote: > Greetings all, > > The planning for NYPHP's presence at the LinuxWorld Expo is rapidly > progressing. The best way to keep tabs on our preparation is to sign up > for the relatively low traffic NYPHP Development list and the UniLUG Expo > mailing list: [http://nyphp.org/list/] and > [http://unilug.org/mailinglists.html] > > We're currently looking for volunteers to provide a digital camera or video > recording equipment so that we can record the Q & A session with Zend > Technologies CEO Doron Gerstel on Wednesday the 22nd. > > If anybody is willing to help record the event or just to provide the > necessary equipment for the afternoon, please get in touch with Hans or I > as soon as possible. > > Thanks, > Dan > > > > ===== > Daniel Krook > Director of Communications, New York PHP > http://nyphp.org > krook at nyphp.org > > >LinuxWorld Expo is only a few days away, and with the indispensable > > support of NYPHP members, UNILUG and Ron Guerin, we're excited to offer > > some great happenings at LWE. > > > > > >January 22, 2003 @ 1:30pm, NYPHP Booth #16 > >"Q&A with Doron Gerstel, CEO, Co-Founder, Zend Technologies" > > > >Doron has kindly taken time from his busy schedule to address NY's > >questions > >on PHP, Zend, and the community's direction. Join us and get your > >questions > >answered by Zend's leading man. > > > > > >January 22,23,24, 2003 @ 3:30pm, NYPHP Booth #16 > >"PHP Developers Cookbook by Sterling Hughes and Andrei Zmievski Book > >Raffle" > > > >Get your name entered by 3:30pm each day and have a chance to win this > >valuable reference for any PHP programmer. Thanks to Sterling Hughes and > >Sams Publishing. > > > > > >Haven't signed up for LinuxWorld Expo yet? > > > >It?s not too late - register for FREE at http://linuxworldexpo.com and > > stop by Booth #16 for talk, fun and PHP! And if you'd like to take a > > load off, spend some time behind the booth answering questions and > > talking with fellow > >Linux and PHP users. > > > >Don't forget to look at http://booth.unilug.org for coverage dates and > >times > >(Thursday staffing is still a bit thin!). > > > >Many thanks, > > > >===== > >Hans Zaunere > >President, New York PHP > >http://nyphp.org > >hans at nyphp.org > > _________________________________________________________________ > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > --- Unsubscribe at http://nyphp.org/list/ --- From daniel at websapp.com Fri Jan 17 12:22:00 2003 From: daniel at websapp.com (Daniel Kushner) Date: Fri, 17 Jan 2003 12:22:00 -0500 Subject: [nycphp-talk] Camera/Video Equipment Needed for LinuxWorld Expo In-Reply-To: <200301171656.h0HGu73P062373@parsec.nyphp.org> Message-ID: I can bring a 60GB hard drive if somebody can bring a computer/laptop with external hard drive adapter. --Daniel > -----Original Message----- > From: D C Krook [mailto:dkrook at hotmail.com] > Sent: Friday, January 17, 2003 11:56 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Camera/Video Equipment Needed for LinuxWorld > Expo > > > Brian, > > The specs on that look fantastic (embedded Linux OS, direct > ethernet output, > 25/10fps), and it looks like it would be great for our needs. > > So it basically needs a Windows, Linux, or Mac laptop to be > hooked up to? > Do you have the software to connect it to all of those or just a PC? > > > > > > >I have an Axis 2120 Network Video Camera (http://www.axis.com) > if you have > >the > >means to capture the stream to hard disk. Let me know if you are > >interested, > >as I can bring it with me. > > > >Brian > > > > _________________________________________________________________ > Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From nyphp at websapp.com Fri Jan 17 12:30:09 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Fri, 17 Jan 2003 12:30:09 -0500 Subject: NEW! PHP Jobs Board Message-ID: Good Morning! As most have seen, we have set up a NYPHP Job Board (http://jobs.nyphp.org). I would like to thank David Sklar (http://sklar.com for donating his time to administer the project. I believe that this board will become an important asset to NYPHP's members and the PHP job market in general. I am asking you, as a member of NYPHP, to send any jobs either directly to David at sklar at sklar.com or to post them on the board. If you think that you can send David 2-3 jobs a day, and would like recognition as a NYPHP Job Board member at http://nyphp.org/principals.php please send me an email (daniel at nyphp.org) and we'll take it from there. Best regards, Daniel Kushner Vice President New York PHP http://nyphp.org/ daniel at nyphp.org From nyphp at websapp.com Fri Jan 17 12:31:29 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Fri, 17 Jan 2003 12:31:29 -0500 Subject: Jobs Board - Correction Message-ID: David's email for this purpose is: nyphp-jobs at sklar.com --Daniel From brian at preston-campbell.com Fri Jan 17 12:27:07 2003 From: brian at preston-campbell.com (Brian) Date: Fri, 17 Jan 2003 12:27:07 -0500 Subject: [nycphp-talk] Camera/Video Equipment Needed for LinuxWorld Expo In-Reply-To: <200301171656.h0HGu73P062373@parsec.nyphp.org> References: <200301171656.h0HGu73P062373@parsec.nyphp.org> Message-ID: <200301171227.07505.brian@preston-campbell.com> They are great devices, the video quality is decent and they have FTP, SMTP and a lot of other features. The video servers allow custom scripts in PHP3 which is how I got involved with the company I now work for, one of the largest resellers in the Northeast. If anyone is interested, you can hit my camera from the web and see my street in Greenpoint, Brooklyn. Take it easy on the server, however, they have trouble with more than 10 concurrent connections. Higher traffic sites require constant FTPing of images to a refreshed image on a web page. http://141.155.36.87:69 The capture would be written directly to a hard drive simply by saving the image file. It creates a motion jpeg that can then be converted to AVI, mpeg, or whatever format is needed. Obviously an event like this Q&A session could also be webcast from the same camera. Brian On Friday 17 January 2003 11:56 am, D C Krook wrote: > Brian, > > The specs on that look fantastic (embedded Linux OS, direct ethernet > output, 25/10fps), and it looks like it would be great for our needs. > > So it basically needs a Windows, Linux, or Mac laptop to be hooked up to? > Do you have the software to connect it to all of those or just a PC? > > >I have an Axis 2120 Network Video Camera (http://www.axis.com) if you have > >the > >means to capture the stream to hard disk. Let me know if you are > >interested, > >as I can bring it with me. > > > >Brian > > _________________________________________________________________ > Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > --- Unsubscribe at http://nyphp.org/list/ --- From sklar at sklar.com Fri Jan 17 12:46:40 2003 From: sklar at sklar.com (David Sklar) Date: Fri, 17 Jan 2003 12:46:40 -0500 Subject: [nycphp-talk] Jobs Board - Correction In-Reply-To: <200301171734.h0HHYc3P062825@parsec.nyphp.org> Message-ID: And don't send me any Cold Fusion jobs. :):):) -dave > -----Original Message----- > From: Daniel Kushner [mailto:nyphp at websapp.com] > Sent: Friday, January 17, 2003 12:35 PM > To: NYPHP Talk > Subject: [nycphp-talk] Jobs Board - Correction > > > David's email for this purpose is: nyphp-jobs at sklar.com > > --Daniel > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From adam at trachtenberg.com Fri Jan 17 12:46:14 2003 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 17 Jan 2003 12:46:14 -0500 (EST) Subject: [nycphp-talk] Why doesn't this work: chained ?: expressions In-Reply-To: <200301171650.h0HGoR3P062304@parsec.nyphp.org> Message-ID: WRT your problems chaining ?: statements, PHP has ** a different ** presidence order than C. This was an accident, but now it's backwards compatibility. It certainly does lead to a high WTF factor, however. -adam -- adam at trachtenberg.com co-author of o'reilly's php cookbook On Fri, 17 Jan 2003, David Sklar wrote: > You don't have to add many parenthesis to get it to work right: > > $output = preg_match ( '/one/i', $input ) ? '01' > : (preg_match ( '/two/i', $input ) ? '02' > : (preg_match ( '/three/i', $input ) ? '03' > : (preg_match ( '/four/i', $input ) ? '04': '00'))); > > > You could do it with less calls to preg_match() like this: > > $map = array ('one' => '01', 'two' => '02', > 'three' => '03', 'four' => '04'); > $output = preg_match('/'.join('|',array_keys($map)).'/',$input,$matches)) ? > $map[$matches[0]] : '00'; > > You might also want to put some anchors around the "one" "two" "three", etc. > or when $input is "none", $output will be "01". > > -dave > > > -----Original Message----- > > From: George Webb [mailto:gw.nyphp at gwprogramming.com] > > Sent: Thursday, January 16, 2003 8:50 PM > > To: NYPHP Talk > > Subject: [nycphp-talk] Why doesn't this work: chained ?: expressions > > > > > > Hi PHP Team! > > > > I'm sure "associativity" is the answer to why doesn't this work > > as desired, but perhaps someone could suggest how to get this > > sexy expression > > chain to work, and still look sexy: > > > > > > ----- > > $input = $argv[1]; > > > > $output = preg_match ( '/one/i', $input ) ? '01' > > : preg_match ( '/two/i', $input ) ? '02' > > : preg_match ( '/three/i', $input ) ? '03' > > : preg_match ( '/four/i', $input ) ? '04' > > : '00'; > > > > echo "$input => $output\ "; > > ----- > > > > > > Here is some sample output: > > > > one => 04 > > two => 04 > > three => 04 > > four => 04 > > five => 00 > > asdf => 00 From sterling at bumblebury.com Fri Jan 17 15:13:08 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 17 Jan 2003 15:13:08 -0500 Subject: [nycphp-talk] New York PHP become the Official Zend Beta Tester Gang!! In-Reply-To: <200301171954.h0HJsH3P064220@parsec.nyphp.org> References: <200301171954.h0HJsH3P064220@parsec.nyphp.org> Message-ID: <1042834388.13712.12.camel@hasele> On Fri, 2003-01-17 at 14:54, Shawn Lawyer wrote: > I had no issues with Zend studio. I said this many times before, it's my > editor of choice for php. the only part I have a problem with is the > language it's written in. I'm all for java but, not on a full scale dev > studio > like this. it's starts, runs and closes slower than any other dev studio > I've > ever used and uses up so many resources on my puter,so even with 512 > on a P3 1.2ghz I can't run and do as many things as I like at once without > drastically slowing down ZS. now like I said it's a good program and it's > not Zend's fault that my computer isn't fast enough to run ZS efficiently, > but > I think there whole way of doing it is wrong. what's even funnier, the only > reason I could see using java for this would be cross platform usage but > if that was the case it's would be a all java.swing even thought's uses > some classes form java.lang. so my whole point is why use an os > independent language if you're going to write os dependant code. > shawn lawyer > That's wierd. I have a P3 700 Mhz compaq armada with 320 MB of ram, and Zend Studio 2.6 b runs fast on my system, and I average around 50-60 gui apps per session: at least 3 emacs windows, divided again into multiple buffers, 10-12 aterms, evolution, mozilla (5-6 copies), gaim, xchat, openoffice (3-4 copies), straw, and then any non-standard programs on top of that. I'm not even counting the shell programs I run regularly, vi, ssh, gcc, autoconf, find, apt-get. Any operating system that can't handle Zend Studio with those specs, should be taken out and shot. As for os independence, it supports FreeBSD, OSX, Linux and Windows flawlessly; I don't know what you define as platform independent, but that combination works for me :-) -Sterling > ----- Original Message ----- > From: "Donald J. Organ IV" > To: "NYPHP Talk" > Sent: Thursday, January 16, 2003 2:03 PM > Subject: Re: [nycphp-talk] New York PHP become the Official Zend Beta Tester > Gang!! > > > > Has anyone had a problem installing the Zend Studio beta, I am getting a > > cannot contact server message. > > > > > > ----- Original Message ----- > > From: "Daniel Kushner" > > To: "NYPHP Talk" > > Sent: Thursday, January 16, 2003 11:19 AM > > Subject: [nycphp-talk] New York PHP become the Official Zend Beta Tester > > Gang!! > > > > > > > Dear New York PHP Group, > > > > > > Please keep the information and links information private. This is not a > > > public beta release and is only available for NYPHP and selected Zend > > > customers. > > > > > > Thank you, > > > Daniel Kushner > > > Vice President > > > New York PHP > > > http://nyphp.org/ > > > daniel at nyphp.org > > > > > > > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > ++++ > > > > > > We are happy to inform you that a beta release of Zend Studio 2.6 is now > > > available. This beta release is available to all existing Zend Studio > > > customers for evaluation. > > > > > > You can access the beta package at: http://nyphp.org/zendbeta.php > > > > > > This release will be available up until the upcoming official Studio 2.6 > > > launch, in early February. > > > > > > > > > What's New > > > ********** > > > We hope that you'll enjoy taking advantage of the new features > available, > > > including: > > > - CVS Integration: Perform all your CVS operations, directly from > within > > > the Zend Development Environment > > > - Advanced project management capabilities > > > - Additional advanced usability features: cross-file searching and > > bookmark > > > management, regular expression searching, window cloning, customizable > > > shortcuts, conditional breakpoints, deeper ftp integration, mousewheel > > > support > > > - Tighter Windows integration, including file system view > > > - Improved performance on all platforms > > > - Java Runtime v1.41 integration > > > - Mousewheel support > > > - Many bug fixes (including the infamous flashing window pane bug!) > > > > > > > > > Feedback > > > ******** > > > Please send all comments and feedback to mailto:beta at zend.com. We want > to > > > hear from you. > > > > > > > > > > > > System Requirements > > > ******************* > > > System Requirements for Studio 2.6 remain the same as Studio 2.5 > > > requirements, with the following exceptions: > > > - Windows 98 is no longer supported. > > > - For Windows 2000 users, it is strongly recommended to install > > Microsoft's > > > Service Pack 3. > > > - Mac OSX is not yet supported for Studio 2.6. Support will be made > > > available in the future, in parallel with Apple support for Java JRE > > 1.4.1. > > > > > > - NOTE: Zend Studio 2.6 will support PHP 4.3. However, the current > beta > > > release is not yet fully compatible with 4.3. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- -- "A business that makes nothing but money is a poor kind of business." - Henry Ford From kayraotaner at yahoo.com Fri Jan 17 18:38:36 2003 From: kayraotaner at yahoo.com (Kayra Otaner) Date: Fri, 17 Jan 2003 15:38:36 -0800 (PST) Subject: [nycphp-talk] Apache/PHP Authentication In-Reply-To: <200301171632.h0HGWh3P062104@parsec.nyphp.org> Message-ID: <20030117233836.61456.qmail@web41011.mail.yahoo.com> Hi, You may use $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] to simulate HTTP authentication similar to Apache's own internal one. You need to ask for these variables using : if(!isset($PHP_AUTH_USER)) { Header("WWW-Authenticate: Basic realm=\\"Security Checking!!!\\""); Header("HTTP/1.0 401 Unauthorized"); echo "Authentication Problem...\ "; exit; } or similar code. After this step $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] will be defined by Apache and stored to the session (I'm not talking about Php sessions) for future references. You need to put above code to the 'index.php' (and may be to the others also) and need to check those two variables on all other secured pages (from database off course) to ensure security. I hope this helps Best Kayra Otaner PS : I'm looking for job/projects, does anyone looking for Php Developer/System Administrator? --- Jim Hendricks wrote: > I use PHP to authenticate against mySQL and then store login info in the > session. Then it's a simple affair to check at the top of each page if the > login info is good, if not divert to login. I have the code that checks the > login state as a seperate file that I include in all my pages that need to > be secured. > > Jim > ______________________________________________________________ > Jim Hendricks, President, Biz Computing, Inc > Phone: (201) 599-9380 Email: jim at bizcomputinginc.com > Web: www.bizcomputinginc.com > Snail: Jim Hendricks, Biz Computing, Inc., 255 McKinley Ave, New Milford, > NJ 07646 > ______________________________________________________________ > > ----- Original Message ----- > From: "Griffith Feeney" > To: "NYPHP Talk" > Sent: Friday, January 17, 2003 10:30 AM > Subject: [nycphp-talk] Apache/PHP Authentication > > > > I would like to use Apache authentication to password protect certain > > directories that contain mostly binary files. With 1600+ users, I don't > > want to authenticate against a text file, especially as there is already a > > mysql database available for the purpose. The webhosting provider doesn't > > provide mod_auth. > > > > I'm thinking of using a PHP page to authenticate against the mysql > database > > and, once a user is authenticated, have the PHP page send the server an > > htaccess user name and password. The latter would be changed from time to > > time, but would be the same for all users. High security is not required > > here. > > > > I've spent many hours reading around on the web on the subject, but don't > > find anything along these lines, and being a rank beginner in PHP, I don't > > want to spend time trying to implement this idea if it is unworkable. > > > > Does anybody know of an implementation, or have an idea of whether or not > > this could be made to work? Thanks! > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From chun_lam at hotmail.com Fri Jan 17 21:12:55 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Fri, 17 Jan 2003 21:12:55 -0500 Subject: [nycphp-talk] Apache/PHP Authentication Message-ID: try mod_auth_mysql ----Original Message Follows---- From: paul at weinberg.com Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] Apache/PHP Authentication Date: Fri, 17 Jan 2003 11:13:55 -0500 Received: from mc3-f14.law16.hotmail.com ([65.54.236.149]) by mc3-s13.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 17 Jan 2003 08:29:01 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc3-f14.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 17 Jan 2003 08:28:05 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0HGDt3P061860;Fri, 17 Jan 2003 11:13:55 -0500 (EST)(envelope-from listmaster at nyphp.org) Message-Id: <200301171613.h0HGDt3P061860 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: listmaster at nyphp.org X-OriginalArrivalTime: 17 Jan 2003 16:28:05.0782 (UTC) FILETIME=[69DBAB60:01C2BE45] Hi, I'm certainly not an authority on the subject, but it feels like you need to be at a lower level within Apache then PHP will get you to. I would try to use mod_perl to do this, in effect writing an Apache module in perl. good luck, Paul On Fri, 17 Jan 2003, "Griffith Feeney" wrote: > > I would like to use Apache authentication to password > protect certain > directories that contain mostly binary files. With > 1600+ users, I don't > want to authenticate against a text file, especially as > there is already a > mysql database available for the purpose. The > webhosting provider doesn't > provide mod_auth. > > I'm thinking of using a PHP page to authenticate > against the mysql database > and, once a user is authenticated, have the PHP page > send the server an > htaccess user name and password. The latter would be > changed from time to > time, but would be the same for all users. High > security is not required > here. > > I've spent many hours reading around on the web on the > subject, but don't > find anything along these lines, and being a rank > beginner in PHP, I don't > want to spend time trying to implement this idea if it > is unworkable. > > Does anybody know of an implementation, or have an idea > of whether or not > this could be made to work? Thanks! > > > > --- Unsubscribe at http://nyphp.org/list/ --- --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From evan.heller at alum.rpi.edu Fri Jan 17 22:54:43 2003 From: evan.heller at alum.rpi.edu (evan heller) Date: Fri, 17 Jan 2003 22:54:43 -0500 Subject: [nycphp-talk] Apache/PHP Authentication References: <200301180213.h0I2D33P067602@parsec.nyphp.org> Message-ID: <3E28D003.B6B974FA@alum.rpi.edu> Does anyone know where to get mod_auth_mysql for windows apache?? -Evan -- Evan Heller evan.heller at alum.rpi.edu From ophir at prusak.com Sat Jan 18 19:13:07 2003 From: ophir at prusak.com (Ophir Prusak) Date: Sat, 18 Jan 2003 19:13:07 -0500 Subject: PHP Application Building Blocks References: <200301182104.h0IL3RA7078432@parsec.nyphp.org> Message-ID: <00c101c2bf4f$8b4d0f40$0300a8c0@866w2k> Hi All, After custom coding my video game site for the past 3 years, I've decided to rewrite the whole thing from scratch. Instead of re-inventing the wheel, I'm looking for good PHP "packages" that I'll be able to use. I am NOT looking for a portal in a box. I AM looking for packages that provide "building blocks" that will allow me to create a site. Can any one recommend anything ? Thanx Ophir From georgenatalino at yahoo.com Sun Jan 19 05:20:02 2003 From: georgenatalino at yahoo.com (georgenatalino at yahoo.com) Date: Sun, 19 Jan 2003 05:20:02 -0500 Subject: The Mail Archive | PHP Lists Message-ID: <3E2A7BD2.D7922577@yahoo.com> An HTML attachment was scrubbed... URL: From hans at nyphp.org Sun Jan 19 15:19:43 2003 From: hans at nyphp.org (Hans Zaunere) Date: Sun, 19 Jan 2003 12:19:43 -0800 (PST) Subject: NYPHP Adds Two New Lists Message-ID: <20030119201943.21979.qmail@web12802.mail.yahoo.com> Hello, NYPHP has added two additional mailing lists to meet the needs of our members: Jobs - New York's list for AMP Technology and IT job opportunities. A wide variety of available positions, resumes and additions to http://jobs.nyphp.org are posted here, including general discussion of networking events and the job market. Announce - NYPHP's low traffic, moderated list. You'll find news, events and meeting announcements from the global community here. If you have something you'd like posted, please don't hesitate to contact us at contact at nyphp.org Go to http://nyphp.org/list/ and subscribe today. Regards, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From southwell at dneba.com Sun Jan 19 22:33:50 2003 From: southwell at dneba.com (Michael Southwell) Date: Sun, 19 Jan 2003 22:33:50 -0500 Subject: Fwd: RE: [nycphp-dev] FW: LWE Flyer Message-ID: <5.1.0.14.2.20030119223019.00b38118@mail.optonline.net> > > > > When LWE is over, I think we should regroup and talk about putting > > together a sponsor faq which will make it clear to sponsors and us what the > > benefits and requirements are for sponsorship. One of the obvious > > requirement is a variety of logos suitable for web or print work. > >Yeah, I agree. We need some language on the site about sponsorship, etc. >Also, I think some of the language on the flyer is nice enough that we could >update the site with some of things we've developed for the flyer. In an earlier incarnation I was a Professor of English, and I will be happy to check over any proposed language for future materials to make sure it's clear, correct, and clean. Sorry that I haven't been able to offer this for the LWE materials, but in the future I should be able to help in this regard. Michael G. Southwell ================================= DNEBA Enterprises 81 South Road Bloomingdale, NJ 07403-1419 973/492-7873 (voice and fax) southwell at dneba.com http://www.dneba.com ====================================================== From danielc at analysisandsolutions.com Sun Jan 19 23:38:12 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Sun, 19 Jan 2003 23:38:12 -0500 Subject: [nycphp-talk] Why doesn't this work: chained ?: expressions In-Reply-To: <200301171650.h0HGoR3P062304@parsec.nyphp.org> References: <200301171650.h0HGoR3P062304@parsec.nyphp.org> Message-ID: <20030120043811.GA1381@panix.com> On Fri, Jan 17, 2003 at 11:50:27AM -0500, David Sklar wrote: > > $map = array ('one' => '01', 'two' => '02', > 'three' => '03', 'four' => '04'); > $output = preg_match('/'.join('|',array_keys($map)).'/',$input,$matches)) ? > $map[$matches[0]] : '00'; Along these same lines, preg_replace() can be called with arrays. See the manual for more info. http://www.php.net/manual/en/function.preg-replace.php --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From tech_learner at yahoo.com Mon Jan 20 00:35:45 2003 From: tech_learner at yahoo.com (Tracy) Date: Sun, 19 Jan 2003 21:35:45 -0800 (PST) Subject: [nycphp-talk] Apache/PHP Authentication In-Reply-To: <200301180357.h0I3vv3P068330@parsec.nyphp.org> Message-ID: <20030120053545.38122.qmail@web14302.mail.yahoo.com> http://www.diegonet.com/support/mod_auth_mysql.shtml not sure for which OS. http://ftp.yars.free.net/pub/software/windows/programming/cygwin/release/apache/mod_auth_mysql/ better try this first Tracy evan heller wrote:Does anyone know where to get mod_auth_mysql for windows apache?? -Evan -- Evan Heller evan.heller at alum.rpi.edu --- Unsubscribe at http://nyphp.org/list/ --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at websapp.com Mon Jan 20 10:01:21 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Mon, 20 Jan 2003 10:01:21 -0500 Subject: Monster.com Message-ID: Morning, If anybody knows a big shot from Monster.com I would like to talk to him/her. In particular, I am looking for an introduction with Jeff Taylor (Founder) or someone from their Biz Dev team. Thanks, Daniel Kushner Vice President New York PHP http://nyphp.org/ daniel at nyphp.org From hans at nyphp.org Mon Jan 20 11:01:14 2003 From: hans at nyphp.org (Hans Zaunere) Date: Mon, 20 Jan 2003 08:01:14 -0800 (PST) Subject: Mailing List Changes Message-ID: <20030120160114.5332.qmail@web12803.mail.yahoo.com> Good morning, I've made some long deserved mailing list tweaks, that should have improved performance and stability. I also did an audit of user accounts and email addresses. It seems that there were several registered accounts, but without a related email address. This problem has been corrected, and everyone's account should be inline with the correct email addresses. I urge everyone to login and check that their account info is correct (especially the email addresses), and that they are subscribed to the proper lists (and don't forget the two new lists!). If anything looks off, or you can't login, please don't hesitate to contact me at hans at nyphp.org Thank you, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From zaunere at yahoo.com Mon Jan 20 11:26:03 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Mon, 20 Jan 2003 08:26:03 -0800 (PST) Subject: [nycphp-talk] Fwd: RE: [nycphp-dev] FW: LWE Flyer In-Reply-To: <200301200335.h0K3XxRR096325@parsec.nyphp.org> Message-ID: <20030120162603.11364.qmail@web12801.mail.yahoo.com> Hi Michael, --- Michael Southwell wrote: > In an earlier incarnation I was a Professor of English, and I will be happy > to check over any proposed language for future materials to make sure it's > clear, correct, and clean. Sorry that I haven't been able to offer this > for the LWE materials, but in the future I should be able to help in this > regard. Something like this would be great. It'd be invaluable to have experienced eyes look over our text and help us get it proper. Give me a shout, Michael, and hopefully I'll see you at LWE or our meeting next week. Thank You, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From ejp at well.com Mon Jan 20 12:03:06 2003 From: ejp at well.com (Edward Potter) Date: Mon, 20 Jan 2003 12:03:06 -0500 Subject: NYC Freelance rates In-Reply-To: <200301201602.h0KG1WQb004864@parsec.nyphp.org> Message-ID: <0B4D3CB4-2C99-11D7-A882-000393BF8A42@well.com> Hi, I was just wondering what the going rate for freelance (NYC) PHP programmers was? I have a client that says she is getting scores of resumes where guys are charging less then $20 an hour. I had assumed it was about $40 - $50 these days. thanks -- ed On Monday, January 20, 2003, at 11:01 AM, Hans Zaunere wrote: > > Good morning, > > I've made some long deserved mailing list tweaks, that should have > improved > performance and stability. > > I also did an audit of user accounts and email addresses. It seems > that > there were several registered accounts, but without a related email > address. > This problem has been corrected, and everyone's account should be > inline with > the correct email addresses. > > I urge everyone to login and check that their account info is correct > (especially the email addresses), and that they are subscribed to the > proper > lists (and don't forget the two new lists!). > > If anything looks off, or you can't login, please don't hesitate to > contact > me at hans at nyphp.org > > Thank you, > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From joshmccormack at travelersdiary.com Mon Jan 20 12:09:20 2003 From: joshmccormack at travelersdiary.com (joshmccormack at travelersdiary.com) Date: Mon, 20 Jan 2003 11:09:20 -0600 (CST) Subject: [nycphp-talk] NYC Freelance rates In-Reply-To: <200301201704.h0KH39Pp006684@parsec.nyphp.org> Message-ID: I think there's some major league low balling going on. I bid for a project and was told by the company about the competing bids. People are looking for anything they can get, and don't want to risk overbidding. I think you'd need an impressive history, good sales pitch and good clients to get $40-$50 with consistency these days. Josh On Mon, 20 Jan 2003, Edward Potter wrote: > Hi, > > I was just wondering what the going rate for freelance (NYC) PHP > programmers was? I have a client that says she is getting scores of > resumes where guys are charging less then $20 an hour. I had assumed it > was about $40 - $50 these days. > > thanks > > -- ed From nyphp at altunergil.com Mon Jan 20 12:02:17 2003 From: nyphp at altunergil.com (Oktay Altunergil) Date: Mon, 20 Jan 2003 12:02:17 -0500 Subject: [nycphp-talk] NYC Freelance rates In-Reply-To: <200301201703.h0KH39I3006684@parsec.nyphp.org> References: <200301201703.h0KH39I3006684@parsec.nyphp.org> Message-ID: <20030120120217.0f01f769.nyphp@altunergil.com> I think you're both right. There are a lot of people who'll work for even $10/hour (even for free). But there are also others that get paid well over $40/hr. If it's a question of fairness, i think the latter is more like it. However, you can't completely ignore something called 'supply and demand'. I would try to let them know that you probably have more experience than those people and can get the job done faster and better. If you can differentiate yourself and build a trust relationship with the people involved, I am willing to believe that they'd still pay you the fair rate. oktay On Mon, 20 Jan 2003 12:03:09 -0500 Edward Potter wrote: > Hi, > > I was just wondering what the going rate for freelance (NYC) PHP > programmers was? I have a client that says she is getting scores of > resumes where guys are charging less then $20 an hour. I had assumed it > was about $40 - $50 these days. > > thanks > > -- ed From bradley at bestweb.net Mon Jan 20 12:17:35 2003 From: bradley at bestweb.net (Bradley Baumann) Date: Mon, 20 Jan 2003 12:17:35 -0500 Subject: [nycphp-talk] NYC Freelance rates References: <200301201709.h0KH9NIl007365@parsec.nyphp.org> Message-ID: <008101c2c0a7$d36b6f20$0300a8c0@prophxp> Ed, I charge anywhere from 80-120+ an hour. Completely depends on the job, and the company. Someone wanted me to do a job at 3am once, to save their company because their huge ecommerce site was launching the same day, and it wasn't working. Obviously, I'd take this into consideration, too. I charged ~250/hr. Honestly, I think charging 40-50/hr isn't professional ($10/hr is almost childish -- Babysitters charge more.). If you're a beginner just trying to get some money, perhaps that fee is appropriate -- but if you're a professional who knows your stuff and know you can get the job done faster then most others, I defiantly believe that a higher price is more than acceptable. Food for thought. -Bradley Baumann ----- Original Message ----- From: To: "NYPHP Talk" Sent: Monday, January 20, 2003 12:09 PM Subject: Re: [nycphp-talk] NYC Freelance rates > I think there's some major league low balling going on. I bid for a project and was told by the company about the competing bids. People are looking for anything they can get, and don't want to risk overbidding. I think you'd need an impressive history, good sales pitch and good clients to get $40-$50 with consistency these days. > > Josh > > On Mon, 20 Jan 2003, Edward Potter wrote: > > > Hi, > > > > I was just wondering what the going rate for freelance (NYC) PHP > > programmers was? I have a client that says she is getting scores of > > resumes where guys are charging less then $20 an hour. I had assumed it > > was about $40 - $50 these days. > > > > thanks > > > > -- ed > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From nyphp at websapp.com Mon Jan 20 12:15:24 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Mon, 20 Jan 2003 12:15:24 -0500 Subject: [nycphp-talk] NYC Freelance rates In-Reply-To: <200301201704.h0KH39QV006684@parsec.nyphp.org> Message-ID: Hi Edward, This is a tricky question, and the current economic situation doesn't help. First and foremost, you get what you pay for - in most cases. Programmers working at a rate of $20/hour could not be considered professional. Sure their code will (might) work, but is it optimized? Is it secure? Will it work under high loads? I have consulted companies, where 'cheap' programmers where hired to do the job. After one hour of looking at the code, I found countless security flaws and no optimization what so ever. When you ask why there is only one function in the whole application and the answer is: "Well, I only found out last week that there are functions in PHP", you can fully understand where the $20/hour comes from. It's true that we all need to start somewhere, and that's where you'll find those guys. The fact that companies are hiring them to build major applications is wrong, but in most cases, they either find this out later on in life, or their application never gets launched, so the faults are never found. What can we do about it? Try to explain this to the hiring company. Sometimes it work! Regards, Daniel Kushner Vice President New York PHP http://nyphp.org/ daniel at nyphp.org > -----Original Message----- > From: Edward Potter [mailto:ejp at well.com] > Sent: Monday, January 20, 2003 12:03 PM > To: NYPHP Talk > Subject: [nycphp-talk] NYC Freelance rates > > > Hi, > > I was just wondering what the going rate for freelance (NYC) PHP > programmers was? I have a client that says she is getting scores of > resumes where guys are charging less then $20 an hour. I had assumed it > was about $40 - $50 these days. > > thanks > > -- ed > > > On Monday, January 20, 2003, at 11:01 AM, Hans Zaunere wrote: > > > > > Good morning, > > > > I've made some long deserved mailing list tweaks, that should have > > improved > > performance and stability. > > > > I also did an audit of user accounts and email addresses. It seems > > that > > there were several registered accounts, but without a related email > > address. > > This problem has been corrected, and everyone's account should be > > inline with > > the correct email addresses. > > > > I urge everyone to login and check that their account info is correct > > (especially the email addresses), and that they are subscribed to the > > proper > > lists (and don't forget the two new lists!). > > > > If anything looks off, or you can't login, please don't hesitate to > > contact > > me at hans at nyphp.org > > > > Thank you, > > > > > > ===== > > Hans Zaunere > > President, New York PHP > > http://nyphp.org > > hans at nyphp.org > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From danielc at analysisandsolutions.com Mon Jan 20 12:26:42 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Mon, 20 Jan 2003 12:26:42 -0500 Subject: [nycphp-talk] NYC Freelance rates In-Reply-To: <200301201703.h0KH39I9006684@parsec.nyphp.org> References: <200301201703.h0KH39I9006684@parsec.nyphp.org> Message-ID: <20030120172641.GA29168@panix.com> Hey Folks: On Mon, Jan 20, 2003 at 12:03:09PM -0500, Edward Potter wrote: > > I was just wondering what the going rate for freelance (NYC) PHP > programmers was? I've got a sliding scale. For friends and non-profit's I'm friendly with, I charge $45/hr. For small to medium companies, it goes up to $60-75. This last category, if there's an emergency not of my making, I'll bill $120. If I landed a large corporate gig, I'd want $90. Just to be clear, these rates involve working from my office as a contractor, not from a client's location. Of course, a kid out of college generally couldn't charge this. I feel comfortable with these rates due to several years of experience, am meticulous and innovative plus write code that's efficient, readable and documented. I've got several ideas in the works to revamp my website to better put these points forth. Enjoy, --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From sterling at bumblebury.com Mon Jan 20 12:19:06 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 20 Jan 2003 12:19:06 -0500 Subject: [nycphp-talk] NYC Freelance rates In-Reply-To: <200301201716.h0KHFHOF008681@parsec.nyphp.org> References: <200301201716.h0KHFHOF008681@parsec.nyphp.org> Message-ID: <1043083146.12437.26.camel@hasele> On Mon, 2003-01-20 at 12:15, Bradley Baumann wrote: > Ed, > > I charge anywhere from 80-120+ an hour. Completely depends on the job, > and the company. > Someone wanted me to do a job at 3am once, to save their company because > their huge ecommerce site was launching the same day, and it wasn't working. > Obviously, I'd take this into consideration, too. I charged ~250/hr. > Honestly, I think charging 40-50/hr isn't professional ($10/hr is almost > childish -- Babysitters charge more.). If you're a beginner just trying to > get some money, perhaps that fee is appropriate -- but if you're a > professional who knows your stuff and know you can get the job done faster > then most others, I defiantly believe that a higher price is more than > acceptable. > While I charge around the same, I don't think "unprofessional" is the right word for charging less. I'm as busy as I'd like to be at this point (although I'll always consider new projects :-), so my rate works for my experience and contacts. But, if I needed work, given my current experience, and someone offered me a job for $10, I'd jump. Jobs lead to experience and contacts, and you can always renegotiate for further work. Professional or unprofessional, your rate is what you can get, when the offers start pouring in, then you can charge at your liking. :-) With that said, I think the original poster should hold out for more. $20 a hour is low. State your advantages over a programmer that charges $20. But if you can't get them up, then you need to decide: do you have a better offer? Evaluate the opportunity cost and don't let pride get in the way. -Sterling -- "People can have the Model T in any colour -- so long as it's black." - Henry Ford From brian at preston-campbell.com Mon Jan 20 12:37:56 2003 From: brian at preston-campbell.com (Brian) Date: Mon, 20 Jan 2003 12:37:56 -0500 Subject: [nycphp-talk] NYC Freelance rates In-Reply-To: <200301201730.h0KHToOP010708@parsec.nyphp.org> References: <200301201730.h0KHToOP010708@parsec.nyphp.org> Message-ID: <200301201237.56723.brian@preston-campbell.com> Jumping at a low rate has a tendency to put you in a low pay bracket for any future work that may come out of it. People start passing out your name as 'the cheap guy' and that type of pigeon-holing is a trend that is difficult to change. That may be easy for me to say, since I am not at a loss for projects at the moment either. I will say that it was necessary for me to cut some of the cheap ties lately and make contacts in bigger companies with bigger budgets and with a better understanding of quality work. Brian On Monday 20 January 2003 12:29 pm, Sterling Hughes wrote: > On Mon, 2003-01-20 at 12:15, Bradley Baumann wrote: > > Ed, > > > > I charge anywhere from 80-120+ an hour. Completely depends on the > > job, and the company. > > Someone wanted me to do a job at 3am once, to save their company > > because their huge ecommerce site was launching the same day, and it > > wasn't working. Obviously, I'd take this into consideration, too. I > > charged ~250/hr. Honestly, I think charging 40-50/hr isn't professional > > ($10/hr is almost childish -- Babysitters charge more.). If you're a > > beginner just trying to get some money, perhaps that fee is appropriate > > -- but if you're a professional who knows your stuff and know you can get > > the job done faster then most others, I defiantly believe that a higher > > price is more than acceptable. > > While I charge around the same, I don't think "unprofessional" is the > right word for charging less. I'm as busy as I'd like to be at this > point (although I'll always consider new projects :-), so my rate works > for my experience and contacts. But, if I needed work, given my current > experience, and someone offered me a job for $10, I'd jump. Jobs lead > to experience and contacts, and you can always renegotiate for further > work. Professional or unprofessional, your rate is what you can get, > when the offers start pouring in, then you can charge at your liking. > > :-) > > With that said, I think the original poster should hold out for more. > $20 a hour is low. State your advantages over a programmer that charges > $20. But if you can't get them up, then you need to decide: do you have > a better offer? Evaluate the opportunity cost and don't let pride get > in the way. > > -Sterling From bradley at bestweb.net Mon Jan 20 12:44:24 2003 From: bradley at bestweb.net (Bradley Baumann) Date: Mon, 20 Jan 2003 12:44:24 -0500 Subject: [nycphp-talk] NYC Freelance rates References: <200301201729.h0KHToIl010708@parsec.nyphp.org> Message-ID: <009101c2c0ab$9240dc20$0300a8c0@prophxp> Sterling, I think that "unprofessional" was a bad word to have chosen, I believe that the phrase I was looking for was "the amount you charge is a direct reflection of your working skill / ability." If you're hiring a big-shot that knows his/her stuff, doesn't screw around, and write innovative, well commented and well thought-out code -- They're going to charge you for it. You will -not- find one of those people charging $10/hr. You're going to find them charging you $90+/hr. It's common sense in the business-world (and any other world you're living in) to charge more for better services. If someone charges you $10/hr -- it's a job you want to turn down (unless you're a beginner). If you know the people, and want to help them out or be friendly, that's a -completely- different story. If it's a professional relationship, and they are offering you an obscenely low amount, I would deny it. It's almost insulting. If I were to take the job, I would not give them everything that a client giving me $90+/hr would be getting. -Bradley Baumann ----- Original Message ----- From: "Sterling Hughes" To: "NYPHP Talk" Sent: Monday, January 20, 2003 12:29 PM Subject: Re: [nycphp-talk] NYC Freelance rates > On Mon, 2003-01-20 at 12:15, Bradley Baumann wrote: > > Ed, > > > > I charge anywhere from 80-120+ an hour. Completely depends on the job, > > and the company. > > Someone wanted me to do a job at 3am once, to save their company because > > their huge ecommerce site was launching the same day, and it wasn't working. > > Obviously, I'd take this into consideration, too. I charged ~250/hr. > > Honestly, I think charging 40-50/hr isn't professional ($10/hr is almost > > childish -- Babysitters charge more.). If you're a beginner just trying to > > get some money, perhaps that fee is appropriate -- but if you're a > > professional who knows your stuff and know you can get the job done faster > > then most others, I defiantly believe that a higher price is more than > > acceptable. > > > > While I charge around the same, I don't think "unprofessional" is the > right word for charging less. I'm as busy as I'd like to be at this > point (although I'll always consider new projects :-), so my rate works > for my experience and contacts. But, if I needed work, given my current > experience, and someone offered me a job for $10, I'd jump. Jobs lead > to experience and contacts, and you can always renegotiate for further > work. Professional or unprofessional, your rate is what you can get, > when the offers start pouring in, then you can charge at your liking. > :-) > > With that said, I think the original poster should hold out for more. > $20 a hour is low. State your advantages over a programmer that charges > $20. But if you can't get them up, then you need to decide: do you have > a better offer? Evaluate the opportunity cost and don't let pride get > in the way. > > -Sterling > > > -- > "People can have the Model T in any colour -- so long as it's black." > - Henry Ford > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From bradley at bestweb.net Mon Jan 20 12:46:46 2003 From: bradley at bestweb.net (Bradley Baumann) Date: Mon, 20 Jan 2003 12:46:46 -0500 Subject: [nycphp-talk] NYC Freelance rates References: <200301201738.h0KHcXIl011445@parsec.nyphp.org> Message-ID: <009701c2c0ab$e6c7ce70$0300a8c0@prophxp> I completely agree. ----- Original Message ----- From: "Brian" To: "NYPHP Talk" Sent: Monday, January 20, 2003 12:38 PM Subject: Re: [nycphp-talk] NYC Freelance rates > Jumping at a low rate has a tendency to put you in a low pay bracket for any > future work that may come out of it. People start passing out your name as > 'the cheap guy' and that type of pigeon-holing is a trend that is difficult > to change. > > That may be easy for me to say, since I am not at a loss for projects at the > moment either. I will say that it was necessary for me to cut some of the > cheap ties lately and make contacts in bigger companies with bigger budgets > and with a better understanding of quality work. > > Brian > > On Monday 20 January 2003 12:29 pm, Sterling Hughes wrote: > > On Mon, 2003-01-20 at 12:15, Bradley Baumann wrote: > > > Ed, > > > > > > I charge anywhere from 80-120+ an hour. Completely depends on the > > > job, and the company. > > > Someone wanted me to do a job at 3am once, to save their company > > > because their huge ecommerce site was launching the same day, and it > > > wasn't working. Obviously, I'd take this into consideration, too. I > > > charged ~250/hr. Honestly, I think charging 40-50/hr isn't professional > > > ($10/hr is almost childish -- Babysitters charge more.). If you're a > > > beginner just trying to get some money, perhaps that fee is appropriate > > > -- but if you're a professional who knows your stuff and know you can get > > > the job done faster then most others, I defiantly believe that a higher > > > price is more than acceptable. > > > > While I charge around the same, I don't think "unprofessional" is the > > right word for charging less. I'm as busy as I'd like to be at this > > point (although I'll always consider new projects :-), so my rate works > > for my experience and contacts. But, if I needed work, given my current > > experience, and someone offered me a job for $10, I'd jump. Jobs lead > > to experience and contacts, and you can always renegotiate for further > > work. Professional or unprofessional, your rate is what you can get, > > when the offers start pouring in, then you can charge at your liking. > > > > :-) > > > > With that said, I think the original poster should hold out for more. > > $20 a hour is low. State your advantages over a programmer that charges > > $20. But if you can't get them up, then you need to decide: do you have > > a better offer? Evaluate the opportunity cost and don't let pride get > > in the way. > > > > -Sterling > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From sterling at bumblebury.com Mon Jan 20 12:35:29 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 20 Jan 2003 12:35:29 -0500 Subject: [nycphp-talk] NYC Freelance rates In-Reply-To: <200301201739.h0KHcXOF011445@parsec.nyphp.org> References: <200301201739.h0KHcXOF011445@parsec.nyphp.org> Message-ID: <1043084129.12432.44.camel@hasele> On Mon, 2003-01-20 at 12:38, Brian wrote: > Jumping at a low rate has a tendency to put you in a low pay bracket for any > future work that may come out of it. People start passing out your name as > 'the cheap guy' and that type of pigeon-holing is a trend that is difficult > to change. > > That may be easy for me to say, since I am not at a loss for projects at the > moment either. I will say that it was necessary for me to cut some of the > cheap ties lately and make contacts in bigger companies with bigger budgets > and with a better understanding of quality work. > Of course, and when that time comes you can say, "I'm sorry, but my rate is no longer XXX an hour. Because of the quality of my work, I'm very busy and my rate is UUU. Since you're an old client, I'll only charge you ZZZ." XXX == cheap rate ZZZ == exorbinant rate minus a little UUU == exorbinant rate If they don't want to pay you, then you can move onto your other clients, and they will probably still have a good taste in their mouth because you tried to accomodate them, and hopefully give you more expensive work when they find it. If they are willing to pay you, then great, you're only giving them a small discount for one project, and it may lead to a continuing relationship at the rate you're currently charging. -Sterling -- "I can't give you a brain, so I'll give you a diploma" - The Great Oz, The Wizard of Oz From jonbaer at jonbaer.net Sun Jan 19 07:29:32 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Sun, 19 Jan 2003 07:29:32 -0500 Subject: [nycphp-talk] NYC Freelance rates References: <200301201718.h0KHIYMF009338@parsec.nyphp.org> Message-ID: <00e301c2bfb6$6bd0e300$6400a8c0@laptop> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > and no optimization what so ever. When you ask why there is only one > function in the whole application and the answer is: "Well, I only found out > last week that there are functions in PHP", you can fully understand where > the $20/hour comes from. This is a good point ... but recently the whole hiring process has made me sick, including a recent "would you work for back pay?" ... Im thinking of leaving the entire software area for a long time till things get ironed out, you have people trying to hire you not even knowing what *they* want, you have software platforms that sometimes change from one release to another literally overnight ... on top your work can't even be "creative" and "fun" anymore, you have to adhere to strict guidelines which are barely ever taught, you have 100 different books by 100 different programmers on the same subject using 100 different methods to do 1 single thing and then you have this term "freelance" in which people think the word "free" in there actually has a different term besides "free to do other things @ the same time" ... I was fortunate to land a 3 month LAMP project to keep things afloat but I can't see beyond it and will probably move to hardware/reselling/training or selling. Id also recommend the individual hold out for more money despite the economy but there could be other factors, question is how much you can live for to decide on whether the job (and probably headaches) are worth. - - Jon -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBPiqaKUHb24uaDK9HEQIMwgCgg7E1f4UJw+/IfnUxMmLo+aLCG/cAn3nf XLlQIm/vw3YZ3jukhp2T/oYe =w3Bp -----END PGP SIGNATURE----- From jkapron at NewAgeWeb.com Mon Jan 20 12:54:35 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Mon, 20 Jan 2003 12:54:35 -0500 Subject: [nycphp-talk] Monster.com Message-ID: <001f01c2c0ac$fefb86c0$de01a8c0@duron.lan.newageweb.com> Daniel, I know Tom Schellenberg, one of the executive vice presidents at TMP Worldwide, the parent company of Monster.com. Let me know if that helps. Jerry - 42.7% of all statistics are made up on the spot. - -----Original Message----- From: Daniel Kushner To: NYPHP Talk Date: Monday, January 20, 2003 10:05 AM Subject: [nycphp-talk] Monster.com >Morning, > >If anybody knows a big shot from Monster.com I would like to talk to >him/her. > >In particular, I am looking for an introduction with Jeff Taylor (Founder) >or someone from their Biz Dev team. > >Thanks, >Daniel Kushner >Vice President >New York PHP >http://nyphp.org/ >daniel at nyphp.org > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > From nyphp at websapp.com Mon Jan 20 12:52:13 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Mon, 20 Jan 2003 12:52:13 -0500 Subject: Swiss town leads way with Internet vote Message-ID: http://www.cnn.com/2003/TECH/internet/01/20/switzerland.internet.ap/ If anyone can find out what technology they used, that would be great :) (wishful thinking) --Daniel From bradley at bestweb.net Mon Jan 20 13:00:39 2003 From: bradley at bestweb.net (Bradley Baumann) Date: Mon, 20 Jan 2003 13:00:39 -0500 Subject: [nycphp-talk] NYC Freelance rates References: <200301201752.h0KHqOIl014135@parsec.nyphp.org> Message-ID: <00b201c2c0ad$d7d179a0$0300a8c0@prophxp> Heh. Well, I think that is straying away from the topic that we're dealing with. But I know what you mean. -Bradley. ----- Original Message ----- From: "Jon Baer" To: "NYPHP Talk" Sent: Monday, January 20, 2003 12:52 PM Subject: Re: [nycphp-talk] NYC Freelance rates > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > and no optimization what so ever. When you ask why there is only one > > function in the whole application and the answer is: "Well, I only found > out > > last week that there are functions in PHP", you can fully understand where > > the $20/hour comes from. > > This is a good point ... but recently the whole hiring process has made me > sick, including a recent "would you work for back pay?" ... Im thinking of > leaving the entire software area for a long time till things get ironed out, > you have people trying to hire you not even knowing what *they* want, you > have software platforms that sometimes change from one release to another > literally overnight ... on top your work can't even be "creative" and "fun" > anymore, you have to adhere to strict guidelines which are barely ever > taught, you have 100 different books by 100 different programmers on the > same subject using 100 different methods to do 1 single thing and then you > have this term "freelance" in which people think the word "free" in there > actually has a different term besides "free to do other things @ the same > time" ... > > I was fortunate to land a 3 month LAMP project to keep things afloat but I > can't see beyond it and will probably move to hardware/reselling/training or > selling. Id also recommend the individual hold out for more money despite > the economy but there could be other factors, question is how much you can > live for to decide on whether the job (and probably headaches) are worth. > > - - Jon > -----BEGIN PGP SIGNATURE----- > Version: PGP 8.0 > > iQA/AwUBPiqaKUHb24uaDK9HEQIMwgCgg7E1f4UJw+/IfnUxMmLo+aLCG/cAn3nf > XLlQIm/vw3YZ3jukhp2T/oYe > =w3Bp > -----END PGP SIGNATURE----- > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From bradley at bestweb.net Mon Jan 20 13:02:22 2003 From: bradley at bestweb.net (Bradley Baumann) Date: Mon, 20 Jan 2003 13:02:22 -0500 Subject: [nycphp-talk] Swiss town leads way with Internet vote References: <200301201755.h0KHtLIl015417@parsec.nyphp.org> Message-ID: <00b801c2c0ae$14f5a2c0$0300a8c0@prophxp> I can't wait until a family like the Bushes move there and hack/rig the election. Hope they used unset() with their sessions! *giggle* -Bradley Baumann ----- Original Message ----- From: "Daniel Kushner" To: "NYPHP Talk" Sent: Monday, January 20, 2003 12:55 PM Subject: [nycphp-talk] Swiss town leads way with Internet vote > http://www.cnn.com/2003/TECH/internet/01/20/switzerland.internet.ap/ > > If anyone can find out what technology they used, that would be great :) > (wishful thinking) > > --Daniel > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From jim at bizcomputinginc.com Mon Jan 20 13:00:58 2003 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Mon, 20 Jan 2003 13:00:58 -0500 Subject: [nycphp-talk] NYC Freelance rates References: <200301201746.h0KHkDIp013430@parsec.nyphp.org> Message-ID: <02d901c2c0ad$e48398e0$6601a8c0@Notebook> A great story about the cost/value question. I started my business almost 2 years ago. I have 19 years in the business so knew that my experience should allow for high rates, but my lack of name recognition as an independent would work against me. Rather than start my rates at the $90 I felt I should be able to get, I started at $70. I also factored my cost of living, extra cost for running the business, and an expectation of 20 billable hours per week and came up with $60 would be the minimum I would need to live on if I obtained the 20 billable per week. I had no bites. I finally had a great lead which would lead to the potential for much future work, but they didn't want to pay over $50, this was with me stating the $70 hr. rate. Since the potential was great, we settled on $55 hr for the first project, each project thereafter would be a new negotiation with the understanding that I would over time attempt to get the rate up to my $70. Well experience pays off, my next couple projects were at $60, then $65, now at $70. On top of all that, they have lots of other projects ongoing with other consultants. They even have one project billing out at $10 an hour. Wouldn't you know that many of their lowball projects have encountered many problems at delivery time with no end in sight as to when the problems would be corrected. They have pulled me in to correct the problems fully understanding that my corrections would take more time because I would need to familurize myself with what was done by the other programmer. They now rarely contract any real projects for the person willing to lowball because they finally understand the concept of getting what you pay for and don't want to have to pay me to correct the problems caused by the low ballers. Jim ______________________________________________________________ Jim Hendricks, President, Biz Computing, Inc Phone: (201) 599-9380 Email: jim at bizcomputinginc.com Web: www.bizcomputinginc.com Snail: Jim Hendricks, Biz Computing, Inc., 255 McKinley Ave, New Milford, NJ 07646 ______________________________________________________________ ----- Original Message ----- From: "Sterling Hughes" To: "NYPHP Talk" Sent: Monday, January 20, 2003 12:46 PM Subject: Re: [nycphp-talk] NYC Freelance rates > On Mon, 2003-01-20 at 12:38, Brian wrote: > > Jumping at a low rate has a tendency to put you in a low pay bracket for any > > future work that may come out of it. People start passing out your name as > > 'the cheap guy' and that type of pigeon-holing is a trend that is difficult > > to change. > > > > That may be easy for me to say, since I am not at a loss for projects at the > > moment either. I will say that it was necessary for me to cut some of the > > cheap ties lately and make contacts in bigger companies with bigger budgets > > and with a better understanding of quality work. > > > > Of course, and when that time comes you can say, "I'm sorry, but my rate > is no longer XXX an hour. Because of the quality of my work, I'm very > busy and my rate is UUU. Since you're an old client, I'll only charge > you ZZZ." > > XXX == cheap rate > ZZZ == exorbinant rate minus a little > UUU == exorbinant rate > > If they don't want to pay you, then you can move onto your other > clients, and they will probably still have a good taste in their mouth > because you tried to accomodate them, and hopefully give you more > expensive work when they find it. If they are willing to pay you, then > great, you're only giving them a small discount for one project, and it > may lead to a continuing relationship at the rate you're currently > charging. > > > -Sterling > > -- > "I can't give you a brain, so I'll give you a diploma" > - The Great Oz, The Wizard of Oz > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > > From bradley at bestweb.net Mon Jan 20 13:07:45 2003 From: bradley at bestweb.net (Bradley Baumann) Date: Mon, 20 Jan 2003 13:07:45 -0500 Subject: [nycphp-talk] NYC Freelance rates References: <200301201801.h0KI15Il017822@parsec.nyphp.org> Message-ID: <00c601c2c0ae$d5280f10$0300a8c0@prophxp> A fine example. :-D Recipe for success. 1. Read your books. 2. Get some experience. 3. Get more experience. 4. Charge a lot. 5. Blow everyone away. Heh. -Bradley Baumann ----- Original Message ----- From: "Jim Hendricks" To: "NYPHP Talk" Sent: Monday, January 20, 2003 1:01 PM Subject: Re: [nycphp-talk] NYC Freelance rates > A great story about the cost/value question. I started my business almost 2 > years ago. I have 19 years in the business so knew that my experience > should allow for high rates, but my lack of name recognition as an > independent would work against me. Rather than start my rates at the $90 I > felt I should be able to get, I started at $70. I also factored my cost of > living, extra cost for running the business, and an expectation of 20 > billable hours per week and came up with $60 would be the minimum I would > need to live on if I obtained the 20 billable per week. I had no bites. I > finally had a great lead which would lead to the potential for much future > work, but they didn't want to pay over $50, this was with me stating the $70 > hr. rate. Since the potential was great, we settled on $55 hr for the first > project, each project thereafter would be a new negotiation with the > understanding that I would over time attempt to get the rate up to my $70. > > Well experience pays off, my next couple projects were at $60, then $65, now > at $70. On top of all that, they have lots of other projects ongoing with > other consultants. They even have one project billing out at $10 an hour. > Wouldn't you know that many of their lowball projects have encountered many > problems at delivery time with no end in sight as to when the problems would > be corrected. They have pulled me in to correct the problems fully > understanding that my corrections would take more time because I would need > to familurize myself with what was done by the other programmer. They now > rarely contract any real projects for the person willing to lowball because > they finally understand the concept of getting what you pay for and don't > want to have to pay me to correct the problems caused by the low ballers. > > Jim > ______________________________________________________________ > Jim Hendricks, President, Biz Computing, Inc > Phone: (201) 599-9380 Email: jim at bizcomputinginc.com > Web: www.bizcomputinginc.com > Snail: Jim Hendricks, Biz Computing, Inc., 255 McKinley Ave, New Milford, > NJ 07646 > ______________________________________________________________ > > ----- Original Message ----- > From: "Sterling Hughes" > To: "NYPHP Talk" > Sent: Monday, January 20, 2003 12:46 PM > Subject: Re: [nycphp-talk] NYC Freelance rates > > > > On Mon, 2003-01-20 at 12:38, Brian wrote: > > > Jumping at a low rate has a tendency to put you in a low pay bracket for > any > > > future work that may come out of it. People start passing out your name > as > > > 'the cheap guy' and that type of pigeon-holing is a trend that is > difficult > > > to change. > > > > > > That may be easy for me to say, since I am not at a loss for projects at > the > > > moment either. I will say that it was necessary for me to cut some of > the > > > cheap ties lately and make contacts in bigger companies with bigger > budgets > > > and with a better understanding of quality work. > > > > > > > Of course, and when that time comes you can say, "I'm sorry, but my rate > > is no longer XXX an hour. Because of the quality of my work, I'm very > > busy and my rate is UUU. Since you're an old client, I'll only charge > > you ZZZ." > > > > XXX == cheap rate > > ZZZ == exorbinant rate minus a little > > UUU == exorbinant rate > > > > If they don't want to pay you, then you can move onto your other > > clients, and they will probably still have a good taste in their mouth > > because you tried to accomodate them, and hopefully give you more > > expensive work when they find it. If they are willing to pay you, then > > great, you're only giving them a small discount for one project, and it > > may lead to a continuing relationship at the rate you're currently > > charging. > > > > > > -Sterling > > > > -- > > "I can't give you a brain, so I'll give you a diploma" > > - The Great Oz, The Wizard of Oz > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From jonbaer at jonbaer.net Sun Jan 19 08:00:35 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Sun, 19 Jan 2003 08:00:35 -0500 Subject: [nycphp-talk] Swiss town leads way with Internet vote References: <200301201755.h0KHtLMF015417@parsec.nyphp.org> Message-ID: <002501c2bfba$c199ce60$6400a8c0@laptop> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Well ... I beleive with a good PKI in place, online voting will eventually take place despite what the article says :-) I read once a good paper on a voting example with SOAP and PGP (secure SOAP ballots) that seemed to make sense but never went anywhere (the model was similar to micropayments and the XML model for that). Good simple effective idea :-) - - Jon -----BEGIN PGP SIGNATURE----- Version: PGP 8.0 iQA/AwUBPiqhcEHb24uaDK9HEQI++ACgzXGfmJboV9Esy/i6FMx49HyQhnQAniZ/ tNDZPQG5NWi6J3Waspi8/iOv =Bhmi -----END PGP SIGNATURE----- From dj at waletzky.com Mon Jan 20 13:52:57 2003 From: dj at waletzky.com (D. J. Waletzky) Date: Mon, 20 Jan 2003 13:52:57 -0500 Subject: Logfile analysis In-Reply-To: <200301201806.h0KI5NP5018505@parsec.nyphp.org> References: <200301201806.h0KI5NP5018505@parsec.nyphp.org> Message-ID: Does anyone know of a good Apache logfile analysis program that recognizes the difference between GET query pages (like "page.php?section=about" and "page.php?section=news")? I have a large site we're about to launch, and we need to be able to distinguish between template-driven pages. Hopefully, I won't have to write my own grep-based solution! -- D. J. Waletzky dj at waletzky.com "Non sunt multiplicanda entia praeter necessitam." From pete at npgroup.net Mon Jan 20 13:57:22 2003 From: pete at npgroup.net (Pete Czech - New Possibilities Group, LLC) Date: Mon, 20 Jan 2003 13:57:22 -0500 Subject: [nycphp-talk] Swiss town leads way with Internet vote References: <200301201800.h0KHxtNN017159@parsec.nyphp.org> Message-ID: <011a01c2c0b5$c4c4f190$0900a8c0@petedell> WHoa. How was that rigged? Harboring some anger, are ya?! Finally a message that got me involved in the discussion ;-) Pete Czech New Possibilities Group, LLC www.npgroup.net ----- Original Message ----- From: "Bradley Baumann" To: "NYPHP Talk" Sent: Monday, January 20, 2003 12:59 PM Subject: Re: [nycphp-talk] Swiss town leads way with Internet vote > I can't wait until a family like the Bushes move there and hack/rig the > election. > Hope they used unset() with their sessions! > *giggle* > -Bradley Baumann > > ----- Original Message ----- > From: "Daniel Kushner" > To: "NYPHP Talk" > Sent: Monday, January 20, 2003 12:55 PM > Subject: [nycphp-talk] Swiss town leads way with Internet vote > > > > http://www.cnn.com/2003/TECH/internet/01/20/switzerland.internet.ap/ > > > > If anyone can find out what technology they used, that would be great :) > > (wishful thinking) > > > > --Daniel > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From nyphp at websapp.com Mon Jan 20 14:01:41 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Mon, 20 Jan 2003 14:01:41 -0500 Subject: [nycphp-talk] Swiss town leads way with Internet vote In-Reply-To: <200301201857.h0KIuYQV020883@parsec.nyphp.org> Message-ID: I was hoping that someone would say: Yeah, they did that using PHP! Oh well.... --Daniel > -----Original Message----- > From: Pete Czech - New Possibilities Group, LLC > [mailto:pete at npgroup.net] > Sent: Monday, January 20, 2003 1:57 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Swiss town leads way with Internet vote > > > WHoa. How was that rigged? Harboring some anger, are ya?! > > Finally a message that got me involved in the discussion ;-) > > Pete Czech > New Possibilities Group, LLC > www.npgroup.net > ----- Original Message ----- > From: "Bradley Baumann" > To: "NYPHP Talk" > Sent: Monday, January 20, 2003 12:59 PM > Subject: Re: [nycphp-talk] Swiss town leads way with Internet vote > > > > I can't wait until a family like the Bushes move there and hack/rig the > > election. > > Hope they used unset() with their sessions! > > *giggle* > > -Bradley Baumann > > > > ----- Original Message ----- > > From: "Daniel Kushner" > > To: "NYPHP Talk" > > Sent: Monday, January 20, 2003 12:55 PM > > Subject: [nycphp-talk] Swiss town leads way with Internet vote > > > > > > > http://www.cnn.com/2003/TECH/internet/01/20/switzerland.internet.ap/ > > > > > > If anyone can find out what technology they used, that would > be great :) > > > (wishful thinking) > > > > > > --Daniel > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From hans at nyphp.org Mon Jan 20 16:10:33 2003 From: hans at nyphp.org (Hans Zaunere) Date: Mon, 20 Jan 2003 13:10:33 -0800 (PST) Subject: [nycphp-talk] Logfile analysis In-Reply-To: <200301201854.h0KIr1R7020219@parsec.nyphp.org> Message-ID: <20030120211033.78251.qmail@web12804.mail.yahoo.com> --- "D. J. Waletzky" wrote: > Does anyone know of a good Apache logfile analysis program that recognizes > the difference between GET query pages (like "page.php?section=about" and > "page.php?section=news")? I have a large site we're about to launch, and we > > need to be able to distinguish between template-driven pages. Hopefully, I > won't have to write my own grep-based solution! I've never noted which analyzers do what you speak of, but my favorite is Webalizer (http://www.mrunix.net/webalizer/) and I've worked with Analog a bit (http://www.analog.cx/). Some other possibly useful links: http://www.phpbuilder.com/columns/hampton20010904.php3 http://www.hotscripts.com/Tools_and_Utilities/Log_Analyzers/ http://dmoz.org/Computers/Software/Internet/Site_Management/Log_Analysis/Related_Utilities/ [ from http://www.google.com/search?q=apache+log+file+analysis ] Best, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From soazine at erols.com Mon Jan 20 16:49:22 2003 From: soazine at erols.com (Phil Powell) Date: Mon, 20 Jan 2003 16:49:22 -0500 Subject: Cannot show reuploaded image file on page unless manual refresh Message-ID: <03e701c2c0cd$cb833ec0$2aaf6244@scandinawa1bo6> I am using the following header() functions to force view.php to not cache: header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); // HTTP/1.0 However, when a user reuploads a file in manage.php, it does a form post onto manage.php and reuploads the file (which I verified works). However, when redirected via header() to view.php, they still see their OLD image file, NOT the new one! Unless I manually refresh the page, they never see it, until they manually refresh the page, then the new image file appears! I am handling file uploading this way: If they select another file to upload, the old file is deleted and the new file uploaded. Any suggestions? Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiflett at php.net Mon Jan 20 17:03:29 2003 From: shiflett at php.net (Chris Shiflett) Date: Mon, 20 Jan 2003 14:03:29 -0800 (PST) Subject: [PHP] Cannot show reuploaded image file on page unless manual refresh In-Reply-To: <03e701c2c0cd$cb833ec0$2aaf6244@scandinawa1bo6> Message-ID: <20030120220329.16223.qmail@web14304.mail.yahoo.com> --- Phil Powell wrote: > I am using the following header() functions to force > view.php to not cache: > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . > " GMT"); > header("Cache-Control: no-store, no-cache, > must-revalidate"); > header("Cache-Control: post-check=0, pre-check=0", > false); > header("Pragma: no-cache"); :-) I think you killed it. > However, when a user reuploads a file in manage.php, it > does a form post onto manage.php and reuploads the file > (which I verified works). However, when redirected via > header() to view.php, they still see their OLD image > file, NOT the new one! Unless I manually refresh the > page, they never see it, until they manually refresh the > page, then the new image file appears! Right. I think you are forgetting that the image is not really part of the PHP resource. Meaning, this is the series of events for a PHP script that refernces a single image called bar.jpg using the tag: 1. HTTP request sent for foo.php (Web client -> Web server) 2. HTTP response sent that includes the output of foo.php (Web server -> Web client) 3. Web client (browser) notices tag referenced in the HTML. 4. HTTP request sent for bar.jpg (Web client -> Web server) 5. HTTP response sent that includes bar.jpg So, the headers that you are setting only matter for the resource returned in step 2. Meaning, the HTML output of foo.php is not cached. The image, since it is returned by the Web server and not your PHP script, is cached. Chris From soazine at erols.com Mon Jan 20 17:08:20 2003 From: soazine at erols.com (Phil Powell) Date: Mon, 20 Jan 2003 17:08:20 -0500 Subject: Fw: [PHP] Cannot show reuploaded image file on page unless manual refresh Message-ID: <03f901c2c0d0$716c51d0$2aaf6244@scandinawa1bo6> ----- Original Message ----- From: "Phil Powell" To: Sent: Monday, January 20, 2003 5:08 PM Subject: Re: [PHP] Cannot show reuploaded image file on page unless manual refresh > Chris, that made no sense to me at all! > > How in the world could an HTTP-RESPONSE send back a cached .jpg file that no > longer exists on the server end? That's impossible, unless the entire page > is cached. Now, how do I ensure that view.php always gets the "fresh" image > every time? > > Phil > > ----- Original Message ----- > From: "Chris Shiflett" > To: "Phil Powell" ; ; > > Sent: Monday, January 20, 2003 5:03 PM > Subject: Re: [PHP] Cannot show reuploaded image file on page unless manual > refresh > > > > --- Phil Powell wrote: > > > I am using the following header() functions to force > > > view.php to not cache: > > > > > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); > > > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . > > > " GMT"); > > > header("Cache-Control: no-store, no-cache, > > > must-revalidate"); > > > header("Cache-Control: post-check=0, pre-check=0", > > > false); > > > header("Pragma: no-cache"); > > > > :-) > > > > I think you killed it. > > > > > However, when a user reuploads a file in manage.php, it > > > does a form post onto manage.php and reuploads the file > > > (which I verified works). However, when redirected via > > > header() to view.php, they still see their OLD image > > > file, NOT the new one! Unless I manually refresh the > > > page, they never see it, until they manually refresh the > > > page, then the new image file appears! > > > > Right. > > > > I think you are forgetting that the image is not really > > part of the PHP resource. Meaning, this is the series of > > events for a PHP script that refernces a single image > > called bar.jpg using the tag: > > > > 1. HTTP request sent for foo.php (Web client -> Web server) > > 2. HTTP response sent that includes the output of foo.php > > (Web server -> Web client) > > 3. Web client (browser) notices tag referenced in > > the HTML. > > 4. HTTP request sent for bar.jpg (Web client -> Web server) > > 5. HTTP response sent that includes bar.jpg > > > > So, the headers that you are setting only matter for the > > resource returned in step 2. Meaning, the HTML output of > > foo.php is not cached. The image, since it is returned by > > the Web server and not your PHP script, is cached. > > > > Chris > From soazine at erols.com Mon Jan 20 17:27:33 2003 From: soazine at erols.com (Phil Powell) Date: Mon, 20 Jan 2003 17:27:33 -0500 Subject: files no longer upload! Message-ID: <040e01c2c0d3$210eb680$2aaf6244@scandinawa1bo6> I'm having a day, gang! I have done nothing to my code and now is_uploaded_file is constantly false, even when uploading a file every time. I dunno what to do, would someone want to look at my code and tell me what I did wrong; I'm out of ideas. Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiflett at php.net Mon Jan 20 17:33:19 2003 From: shiflett at php.net (Chris Shiflett) Date: Mon, 20 Jan 2003 14:33:19 -0800 (PST) Subject: [PHP] Cannot show reuploaded image file on page unless manual refresh In-Reply-To: <03f301c2c0d0$6b3bb1c0$2aaf6244@scandinawa1bo6> Message-ID: <20030120223319.86212.qmail@web14305.mail.yahoo.com> --- Phil Powell wrote: > Chris, that made no sense to me at all! Sorry. :-) > How in the world could an HTTP-RESPONSE send back a > cached .jpg file that no longer exists on the server > end? That's impossible, unless the entire page is > cached. Now, how do I ensure that view.php always > gets the "fresh" image every time? I probably explained this poorly. The main point I was trying to make is that images are completely separate resources. They are not part of a page as you seem to be thinking, even though they appear to be once rendered in your browser. While a request for view.php results in a response that includes all of those headers you explicitly set, a request for blah.jpg gets returned by the Web server directly. It is probably being cached by the browser. However, the Web client usually includes an If-Modified-Since header that will cause the Web server to return a fresh resource if it has in fact been modified. Is there a way you can show us the HTTP transactions for the image in question both before and after it has been modified? Chris From ed at home.homes2see.com Mon Jan 20 13:48:56 2003 From: ed at home.homes2see.com (ed at home.homes2see.com) Date: Mon, 20 Jan 2003 13:48:56 -0500 (EST) Subject: [PHP] Cannot show reuploaded image file on page unless manual refresh In-Reply-To: <20030120220329.16223.qmail@web14304.mail.yahoo.com> Message-ID: Aha! Something I can chime in on. I happened across the same scenario a few months back. The list helped me then so I'll give back. Call the image using a random identifier. $rand = rand(1000, 9999); echo " --- Phil Powell wrote: > > I am using the following header() functions to force > > view.php to not cache: > > > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); > > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . > > " GMT"); > > header("Cache-Control: no-store, no-cache, > > must-revalidate"); > > header("Cache-Control: post-check=0, pre-check=0", > > false); > > header("Pragma: no-cache"); > > :-) > > I think you killed it. > > > However, when a user reuploads a file in manage.php, it > > does a form post onto manage.php and reuploads the file > > (which I verified works). However, when redirected via > > header() to view.php, they still see their OLD image > > file, NOT the new one! Unless I manually refresh the > > page, they never see it, until they manually refresh the > > page, then the new image file appears! > > Right. > > I think you are forgetting that the image is not really > part of the PHP resource. Meaning, this is the series of > events for a PHP script that refernces a single image > called bar.jpg using the tag: > > 1. HTTP request sent for foo.php (Web client -> Web server) > 2. HTTP response sent that includes the output of foo.php > (Web server -> Web client) > 3. Web client (browser) notices tag referenced in > the HTML. > 4. HTTP request sent for bar.jpg (Web client -> Web server) > 5. HTTP response sent that includes bar.jpg > > So, the headers that you are setting only matter for the > resource returned in step 2. Meaning, the HTML output of > foo.php is not cached. The image, since it is returned by > the Web server and not your PHP script, is cached. > > Chris > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > From paul at webpowerdesign.net Mon Jan 20 17:30:48 2003 From: paul at webpowerdesign.net (Paul Nicholson) Date: Mon, 20 Jan 2003 17:30:48 -0500 Subject: [PHP] files no longer upload! In-Reply-To: <040e01c2c0d3$210eb680$2aaf6244@scandinawa1bo6> References: <040e01c2c0d3$210eb680$2aaf6244@scandinawa1bo6> Message-ID: <200301202230.h0KMUwl07997@WPD01.network.webpowerdesign.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 sure...we could look at your code if you showed it to us. Other than seeing it I'd say check 'register_globals'... HTH! ~Paul On Monday 20 January 2003 05:27 pm, Phil Powell wrote: > I'm having a day, gang! > > I have done nothing to my code and now is_uploaded_file is constantly > false, even when uploading a file every time. I dunno what to do, would > someone want to look at my code and tell me what I did wrong; I'm out of > ideas. > > Phil - -- ~Paul Nicholson Design Specialist @ WebPower Design paul at webpowerdesign.net www.webpowerdesign.net "The web....the way you want it!" "It said uses Windows 98 or better, so I loaded Linux!" Registered Linux User #183202 using Register Linux System # 81891 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+LHibDyXNIUN3+UQRAvo0AKCAoCOjj0laMSUPEhqvH1EyGLvr7gCePfc0 29Eip+/Liu2BlBCxRRkrvZc= =eSjL -----END PGP SIGNATURE----- From soazine at erols.com Mon Jan 20 18:28:37 2003 From: soazine at erols.com (Phil Powell) Date: Mon, 20 Jan 2003 18:28:37 -0500 Subject: [nycphp-talk] Re: [PHP] Cannot show reuploaded image file on page unless manual refresh References: <200301202233.h0KMXMfN027341@parsec.nyphp.org> Message-ID: <044901c2c0db$a8cf3d80$2aaf6244@scandinawa1bo6> Still failed, even with a random string tacked onto the image URL, it STILL cached!!!!!! Phil ----- Original Message ----- From: "Chris Shiflett" To: "NYPHP Talk" Sent: Monday, January 20, 2003 5:33 PM Subject: [nycphp-talk] Re: [PHP] Cannot show reuploaded image file on page unless manual refresh > --- Phil Powell wrote: > > Chris, that made no sense to me at all! > > Sorry. :-) > > > How in the world could an HTTP-RESPONSE send back a > > cached .jpg file that no longer exists on the server > > end? That's impossible, unless the entire page is > > cached. Now, how do I ensure that view.php always > > gets the "fresh" image every time? > > I probably explained this poorly. The main point I was > trying to make is that images are completely separate > resources. They are not part of a page as you seem to be > thinking, even though they appear to be once rendered in > your browser. > > While a request for view.php results in a response that > includes all of those headers you explicitly set, a request > for blah.jpg gets returned by the Web server directly. It > is probably being cached by the browser. > > However, the Web client usually includes an > If-Modified-Since header that will cause the Web server to > return a fresh resource if it has in fact been modified. > > Is there a way you can show us the HTTP transactions for > the image in question both before and after it has been > modified? > > Chris > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From gw.nyphp at gwprogramming.com Mon Jan 20 18:33:29 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Mon, 20 Jan 2003 18:33:29 -0500 (EST) Subject: [nycphp-talk] files no longer upload! Message-ID: <200301202333.SAA00358@gw00.com> Just a thought: maybe you moved some files around so your server is 301/302 Redirecting to your script. If you post to one URL, I don't think the posted data will actually get posted to the redirected URL. Or, are you sure the script you're editing (or as you said, you're *not* editing) is the script which the server is serving? As a check, you could thrown some fatal syntax error in to see if that crashes your script via HTTP. If your script still runs, you're editing the wrong script. This happens to me often in a multi-server environment when I'm editing the file on the wrong server. I'm all about the idiot checks. Or more accurately, I should be! Best, George. George Webb From shiflett at php.net Mon Jan 20 18:35:02 2003 From: shiflett at php.net (Chris Shiflett) Date: Mon, 20 Jan 2003 15:35:02 -0800 (PST) Subject: [nycphp-talk] Re: [PHP] Cannot show reuploaded image file on page unless manual refresh In-Reply-To: <200301202332.h0KNVQk1028520@parsec.nyphp.org> Message-ID: <20030120233502.209.qmail@web14309.mail.yahoo.com> --- Phil Powell wrote: > Still failed, even with a random string tacked onto > the image URL, it STILL cached!!!!!! Yes, I thought that might happen. Is this a public site where we can take a look? Chris From gw.nyphp at gwprogramming.com Mon Jan 20 18:49:22 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Mon, 20 Jan 2003 18:49:22 -0500 (EST) Subject: [nycphp-talk] Cannot show reuploaded image file on page unless manual refresh Message-ID: <200301202349.SAA00391@gw00.com> Phil, I'm sure we can see the problem by looking just at the client-side, since it sounds like an HTTP issue. But could you show us the rest of the source for view.php? Specifically, does view.php actually print out an image, i.e. does it set Header ( 'Content-type: image/jpeg' ) or other image type? Or does it then do another redirect (e.g. Header ( 'Location: /other/path/imageNNN.jpg' )? If it's the latter, your no-cache magic won't apply. You have to do the former, or find some other way to set the no-cache stuff for the images. (In that case I think Apache has a directive or two you can use to force no-cache.) Of course, if these images are to get repeatedly hit by the same client, you waste bandwidth and CPU time if you keep sending the same image (i.e. defeating the cache). So you should harness the HTTP caching protocol prudently. Best, George. George Webb From soazine at erols.com Mon Jan 20 19:01:26 2003 From: soazine at erols.com (Phil Powell) Date: Mon, 20 Jan 2003 19:01:26 -0500 Subject: [nycphp-talk] Cannot show reuploaded image file on page unless manual refresh References: <200301202349.h0KNnOfN030560@parsec.nyphp.org> Message-ID: <046f01c2c0e0$3e80f040$2aaf6244@scandinawa1bo6> HTTP protocol is far beyond me, I'm sorry. What I did in view.php is simple: I am now generating a random string inside the image URL, so that when you upload an image you get something like this: Kd0SLDSdslasdfasdOWKDC_60.jpg the first part of the URL is a random string that causes a fresh new URL to appear everytime you upload a new image and then go to view.php. I figured that was the best way of handling the image URL caching issue, since HTTP protocols are honestly out of my league. Phil ----- Original Message ----- From: "George Webb" To: "NYPHP Talk" Sent: Monday, January 20, 2003 6:49 PM Subject: Re: [nycphp-talk] Cannot show reuploaded image file on page unless manual refresh > Phil, I'm sure we can see the problem by looking just at the client-side, > since it sounds like an HTTP issue. But could you show us the rest of > the source for view.php? > > Specifically, does view.php actually print out an image, i.e. > does it set Header ( 'Content-type: image/jpeg' ) or other image type? > > Or does it then do another redirect (e.g. > Header ( 'Location: /other/path/imageNNN.jpg' )? > > If it's the latter, your no-cache magic won't apply. You have > to do the former, or find some other way to set the no-cache stuff > for the images. (In that case I think Apache has a directive or two > you can use to force no-cache.) > > Of course, if these images are to get repeatedly hit by the > same client, you waste bandwidth and CPU time if you keep sending the > same image (i.e. defeating the cache). So you should harness the HTTP > caching protocol prudently. > > > Best, George. > > George Webb > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From phplist at zonedzero.net Mon Jan 20 19:07:59 2003 From: phplist at zonedzero.net (Jim Lucas) Date: Mon, 20 Jan 2003 16:07:59 -0800 Subject: [PHP] Cannot show reuploaded image file on page unless manual refresh References: Message-ID: <007b01c2c0e1$28cc08b0$db64a8c0@xp> I would add the modification time of the file in question with filetime($filename); that way you will be sure to get a unique argurment. Jim ----- Original Message ----- From: To: "Chris Shiflett" Cc: "Phil Powell" ; ; Sent: Monday, January 20, 2003 10:48 AM Subject: Re: [PHP] Cannot show reuploaded image file on page unless manual refresh > > Aha! Something I can chime in on. I happened across the same scenario a > few months back. The list helped me then so I'll give back. > > Call the image using a random identifier. > > $rand = rand(1000, 9999); > > echo " > Since the browser will more than likely not have the image file identified > by the random number it must request it again from the server. Works > great where I need it! > > Ed > > On Mon, 20 Jan 2003, Chris Shiflett wrote: > > > --- Phil Powell wrote: > > > I am using the following header() functions to force > > > view.php to not cache: > > > > > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); > > > header("Last-Modified: " . gmdate("D, d M Y H:i:s") . > > > " GMT"); > > > header("Cache-Control: no-store, no-cache, > > > must-revalidate"); > > > header("Cache-Control: post-check=0, pre-check=0", > > > false); > > > header("Pragma: no-cache"); > > > > :-) > > > > I think you killed it. > > > > > However, when a user reuploads a file in manage.php, it > > > does a form post onto manage.php and reuploads the file > > > (which I verified works). However, when redirected via > > > header() to view.php, they still see their OLD image > > > file, NOT the new one! Unless I manually refresh the > > > page, they never see it, until they manually refresh the > > > page, then the new image file appears! > > > > Right. > > > > I think you are forgetting that the image is not really > > part of the PHP resource. Meaning, this is the series of > > events for a PHP script that refernces a single image > > called bar.jpg using the tag: > > > > 1. HTTP request sent for foo.php (Web client -> Web server) > > 2. HTTP response sent that includes the output of foo.php > > (Web server -> Web client) > > 3. Web client (browser) notices tag referenced in > > the HTML. > > 4. HTTP request sent for bar.jpg (Web client -> Web server) > > 5. HTTP response sent that includes bar.jpg > > > > So, the headers that you are setting only matter for the > > resource returned in step 2. Meaning, the HTML output of > > foo.php is not cached. The image, since it is returned by > > the Web server and not your PHP script, is cached. > > > > Chris > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > From shiflett at php.net Mon Jan 20 19:16:18 2003 From: shiflett at php.net (Chris Shiflett) Date: Mon, 20 Jan 2003 16:16:18 -0800 (PST) Subject: [nycphp-talk] Cannot show reuploaded image file on page unless manual refresh In-Reply-To: <200301210004.h0L04Ek1031336@parsec.nyphp.org> Message-ID: <20030121001618.96271.qmail@web14311.mail.yahoo.com> --- Phil Powell wrote: > HTTP protocol is far beyond me, I'm sorry. You can buy HTTP Developer's Handbook. It introduces HTTP from a Web developer's perspective and uses PHP as the primary language for examples. It is not being printed until the end of February, but you can order it from Amazon at http://www.amazon.com/exec/obidos/ASIN/0672324547/. > What I did in view.php is simple: I am now generating > a random string inside the image URL, so that when you > upload an image you get something like this: > > Kd0SLDSdslasdfasdOWKDC_60.jpg And this works, correct? I feel certain that we could have solved your earlier problem a better way, but if this works for you, don't look back. :-) > HTTP protocols are honestly out of my league. A little knowledge of HTTP can go a long way in terms of developing applications for the Web. It's not nearly as advanced as it may seem, and it can help you resolve some otherwise difficult problems. Even a small overview can give you an enlightened perspective about the way the Web works. O'Reilly has a pocket reference for less than $10. Chris From fb at intldef.org Mon Jan 20 19:50:48 2003 From: fb at intldef.org (FB`) Date: Mon, 20 Jan 2003 19:50:48 -0500 Subject: [nycphp-talk] Logfile analysis References: <200301201853.h0KIr1M5020219@parsec.nyphp.org> Message-ID: <057c01c2c0e7$2386a440$1901a8c0@ybsweb> Have you considered going to a .htaccess & $path_info driven approach for your variables? can do things like /section/news/ instead of /page.php?section=news and /whatever/about/staff/joebob/ instead of /page.php?section=about&subsect=staff&person=joebob when done properly, even Apache can't tell it's not butter, and all log analyzers treat your urls as legitimate files. and it all looks a lot more elegant. would be pretty easy to implement on an existing site - would just need to control link generation and add some parsing near the top... i forget the url that got me going on this, but poke around on google for path_info, htaccess and search engine friendly URLs PS - webalizer is -good-, but clueless about query strings. works like a charm in a setup with path_info tho FB` ----- Original Message ----- From: "D. J. Waletzky" To: "NYPHP Talk" Sent: Monday, January 20, 2003 1:53 PM Subject: [nycphp-talk] Logfile analysis > Does anyone know of a good Apache logfile analysis program that recognizes > the difference between GET query pages (like "page.php?section=about" and > "page.php?section=news")? I have a large site we're about to launch, and we > need to be able to distinguish between template-driven pages. Hopefully, I > won't have to write my own grep-based solution! > > -- > D. J. Waletzky > dj at waletzky.com > > "Non sunt multiplicanda entia praeter necessitam." > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From tech_learner at yahoo.com Tue Jan 21 06:56:26 2003 From: tech_learner at yahoo.com (Tracy) Date: Tue, 21 Jan 2003 03:56:26 -0800 (PST) Subject: how to go about achieving command line interface in PHP? In-Reply-To: <200301202231.h0KMULn1026666@parsec.nyphp.org> Message-ID: <20030121115626.44023.qmail@web14307.mail.yahoo.com> Hi all, i am essentially interested in having a command-line neural network interface. I, at present, am not considering C++ to achieve it. Is it posible via PHP? Regards, Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From bradley at bestweb.net Tue Jan 21 08:09:28 2003 From: bradley at bestweb.net (Bradley Baumann) Date: Tue, 21 Jan 2003 08:09:28 -0500 Subject: [nycphp-talk] how to go about achieving command line interface in PHP? References: <200301211156.h0LBuTdx038626@parsec.nyphp.org> Message-ID: <001401c2c14e$5435b150$0300a8c0@prophxp> Tracy, I think your goal needs some clarification. I have no idea what it is that you're trying to do. Chances are PHP can do whatever it is you need, but with this, I really don't know. Explain yourself. -Bradley. ----- Original Message ----- From: "Tracy" To: "NYPHP Talk" Sent: Tuesday, January 21, 2003 6:56 AM Subject: [nycphp-talk] how to go about achieving command line interface in PHP? > > Hi all, > > i am essentially interested in having a command-line neural network interface. I, at present, am not considering C++ to achieve it. Is it posible via PHP? > > Regards, > > Tracy > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Coming together is a beginning... > keeping together is progress... > working together is success !!! > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From brian at preston-campbell.com Tue Jan 21 08:15:01 2003 From: brian at preston-campbell.com (Brian) Date: Tue, 21 Jan 2003 08:15:01 -0500 Subject: [nycphp-talk] how to go about achieving command line interface in PHP? In-Reply-To: <200301211307.h0LD77jX039817@parsec.nyphp.org> References: <200301211307.h0LD77jX039817@parsec.nyphp.org> Message-ID: <200301210815.01186.brian@preston-campbell.com> I think this could be a start for command line I/O with PHP http://www.zend.com/manual/wrappers.php.php Brian On Tuesday 21 January 2003 08:07 am, Bradley Baumann wrote: > Tracy, > > I think your goal needs some clarification. I have no idea what it is > that you're trying to do. Chances are PHP can do whatever it is you need, > but with this, I really don't know. > > Explain yourself. > -Bradley. > > ----- Original Message ----- > From: "Tracy" > To: "NYPHP Talk" > Sent: Tuesday, January 21, 2003 6:56 AM > Subject: [nycphp-talk] how to go about achieving command line interface in > PHP? > > > Hi all, > > > > i am essentially interested in having a command-line neural network > > interface. I, at present, am not considering C++ to achieve it. Is it > posible via PHP? > > > Regards, > > > > Tracy > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Coming together is a beginning... > > keeping together is progress... > > working together is success !!! > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > --- Unsubscribe at http://nyphp.org/list/ --- From nyphp at websapp.com Tue Jan 21 08:39:56 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Tue, 21 Jan 2003 08:39:56 -0500 Subject: [nycphp-talk] how to go about achieving command line interface in PHP? In-Reply-To: <200301211316.h0LDFalf040513@parsec.nyphp.org> Message-ID: You should also look into PHP CLI http://www.php.net/manual/en/features.commandline.php --Daniel -----Original Message----- From: Brian [mailto:brian at preston-campbell.com] Sent: Tuesday, January 21, 2003 8:16 AM To: NYPHP Talk Subject: Re: [nycphp-talk] how to go about achieving command line interface in PHP? I think this could be a start for command line I/O with PHP http://www.zend.com/manual/wrappers.php.php Brian On Tuesday 21 January 2003 08:07 am, Bradley Baumann wrote: > Tracy, > > I think your goal needs some clarification. I have no idea what it is > that you're trying to do. Chances are PHP can do whatever it is you need, > but with this, I really don't know. > > Explain yourself. > -Bradley. > > ----- Original Message ----- > From: "Tracy" > To: "NYPHP Talk" > Sent: Tuesday, January 21, 2003 6:56 AM > Subject: [nycphp-talk] how to go about achieving command line interface in > PHP? > > > Hi all, > > > > i am essentially interested in having a command-line neural network > > interface. I, at present, am not considering C++ to achieve it. Is it > posible via PHP? > > > Regards, > > > > Tracy > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > Coming together is a beginning... > > keeping together is progress... > > working together is success !!! > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > --- Unsubscribe at http://nyphp.org/list/ --- From max at idsociety.com Tue Jan 21 09:26:11 2003 From: max at idsociety.com (max goldberg) Date: Tue, 21 Jan 2003 09:26:11 -0500 Subject: [nycphp-talk] NYPHP LinuxWorld Events References: <200301171540.h0HFe83P061498@parsec.nyphp.org> Message-ID: <3E2D5883.3010907@idsociety.com> Are you going to sell copies there or would one be required to bring their copy? -max David Sklar wrote: > I'll add that Adam Trachtenberg and I will be at the O'Reilly booth (#457) > on Wednesday afternoon starting at 1pm to sign copies of "PHP Cookbook" and > hang out. So if you're around, please come by to say "hi". > > David > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From sklar at sklar.com Tue Jan 21 10:00:43 2003 From: sklar at sklar.com (David Sklar) Date: Tue, 21 Jan 2003 10:00:43 -0500 Subject: [nycphp-talk] NYPHP LinuxWorld Events In-Reply-To: <200301211428.h0LES2k1042435@parsec.nyphp.org> Message-ID: The O'Reilly folks should have plenty of copies for sale at the show. -dave > -----Original Message----- > From: max goldberg [mailto:max at idsociety.com] > Sent: Tuesday, January 21, 2003 9:28 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] NYPHP LinuxWorld Events > > > Are you going to sell copies there or would one be required to bring > their copy? > > -max > > David Sklar wrote: > > I'll add that Adam Trachtenberg and I will be at the O'Reilly > booth (#457) > > on Wednesday afternoon starting at 1pm to sign copies of "PHP > Cookbook" and > > hang out. So if you're around, please come by to say "hi". > > > > David > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From ophir at prusak.com Tue Jan 21 10:28:57 2003 From: ophir at prusak.com (Ophir Prusak) Date: Tue, 21 Jan 2003 10:28:57 -0500 Subject: [nycphp-talk] Logfile analysis References: <200301210052.h0L0p1jb032949@parsec.nyphp.org> Message-ID: <05ec01c2c164$3183b240$bf65a8c0@tag1002> Analog can do this and MUCH more. It even breaks it down to something like: 500 requests total for page.php 200 for page.php?section=a 100 for page.php?something=blah etc. It's also probably the fastest logfile analysis program out there. Only two downsides: 1. The output isn't as pretty as some other packages, but there's even a program called report magic which ads nice graphs to the output. 2. It's not as user friendly as it could be. (you'll need to read the docs if you want to change anything). For more info, see http://www.analog.cx/ a sample report is at http://www.statslab.cam.ac.uk/webstats/stats.html ophir > ----- Original Message ----- > From: "D. J. Waletzky" > To: "NYPHP Talk" > Sent: Monday, January 20, 2003 1:53 PM > Subject: [nycphp-talk] Logfile analysis > > > > Does anyone know of a good Apache logfile analysis program that recognizes > > the difference between GET query pages (like "page.php?section=about" and > > "page.php?section=news")? I have a large site we're about to launch, and > we > > need to be able to distinguish between template-driven pages. Hopefully, I > > won't have to write my own grep-based solution! > > > > -- > > D. J. Waletzky > > dj at waletzky.com > > > > "Non sunt multiplicanda entia praeter necessitam." > > From JMKing at ipro.org Tue Jan 21 10:51:33 2003 From: JMKing at ipro.org (Jaz-Michael King) Date: Tue, 21 Jan 2003 10:51:33 -0500 Subject: [nycphp-talk] PHP Application Building Blocks Message-ID: Sitellite Application Framework : http://www.simian.ca J >>> ophir at prusak.com 01/18/03 06:56PM >>> Hi All, After custom coding my video game site for the past 3 years, I've decided to rewrite the whole thing from scratch. Instead of re-inventing the wheel, I'm looking for good PHP "packages" that I'll be able to use. I am NOT looking for a portal in a box. I AM looking for packages that provide "building blocks" that will allow me to create a site. Can any one recommend anything ? Thanx Ophir --- Unsubscribe at http://nyphp.org/list/ --- From JMKing at ipro.org Tue Jan 21 11:03:25 2003 From: JMKing at ipro.org (Jaz-Michael King) Date: Tue, 21 Jan 2003 11:03:25 -0500 Subject: [nycphp-talk] NYC Freelance rates Message-ID: I was gone all weekend so I'm late to the rate party, but after 6 years in NYC I have a few notes: If the job pays less than $50 an hour and you want it for referral purposes, do it for free. If you want to compete with similar skilled peers, you have to charge similar rates. Small businesses pay plumbers $50 an hour. They should be paying you at least that. $80 seems to be a rule of thumb, economy schmonomy. Just because there's a bad economy, it doesn't deflate your rate, it just deflates your chance of getting the job. PLENTY of people are getting full rate work. Customers who want it cheap can never handle project creep. You'll end up making enemies. For the record: my base rate is $125 with a month lead time, scales up depending on how much notice and what kind of emergency it is. My major selling point is I can work twice as fast and twice as efficiently as any 40-50 an hour guy. Sell your experience and skills, if it's too expensive for them you probably shouldn't take the job. At worst, find someone who does want the job and reap a 10% commission. Jaz >>> joshmccormack at travelersdiary.com 01/20/03 12:09PM >>> I think there's some major league low balling going on. I bid for a project and was told by the company about the competing bids. People are looking for anything they can get, and don't want to risk overbidding. I think you'd need an impressive history, good sales pitch and good clients to get $40-$50 with consistency these days. Josh On Mon, 20 Jan 2003, Edward Potter wrote: > Hi, > > I was just wondering what the going rate for freelance (NYC) PHP > programmers was? I have a client that says she is getting scores of > resumes where guys are charging less then $20 an hour. I had assumed it > was about $40 - $50 these days. > > thanks > > -- ed --- Unsubscribe at http://nyphp.org/list/ --- From weslists at anapraxis.com Tue Jan 21 11:10:55 2003 From: weslists at anapraxis.com (Weston Houghton) Date: Tue, 21 Jan 2003 11:10:55 -0500 Subject: BlueShoes Message-ID: Does anyone have any experience with or comments on blueshoes? I've not investigated it much, as the license seems a bit odd, but I thought I'd get some info on it if anyone had any. http://www.blueshoes.org/ Cheers, Wes From JMKing at ipro.org Tue Jan 21 11:10:02 2003 From: JMKing at ipro.org (Jaz-Michael King) Date: Tue, 21 Jan 2003 11:10:02 -0500 Subject: [nycphp-talk] Swiss town leads way with Internet vote Message-ID: asp i think http://www.anieres.ch/default.asp j >>> nyphp at websapp.com 01/20/03 12:55PM >>> http://www.cnn.com/2003/TECH/internet/01/20/switzerland.internet.ap/ If anyone can find out what technology they used, that would be great :) (wishful thinking) --Daniel --- Unsubscribe at http://nyphp.org/list/ --- From hans at nyphp.org Tue Jan 21 11:21:16 2003 From: hans at nyphp.org (Hans Zaunere) Date: Tue, 21 Jan 2003 08:21:16 -0800 (PST) Subject: MySQL at LinuxWorld Message-ID: <20030121162116.56605.qmail@web12807.mail.yahoo.com> I forget if this has been covered, but since I have the flyer in front of me, I thought I'd finalize MySQL's events at LWE. I've outlined the flyer below: Jan. 22-24,2003 MySQL Booth: #R24 David Axmark will be available each day from 10-11pm and Monty Widenius 3-4pm (MySQL Founders) MySQL Reference Manuals can be autographed and will be available at the O'Reilly booth #457 "Join the MySQL Founders and Architects for an informal "Birds-of-a-Feather" discussion in Room 1E12 on Thursday, January 23 from 5:30-7pm" (I'm going to try to catch this) That about covers it. Best, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From ejp at well.com Tue Jan 21 11:26:23 2003 From: ejp at well.com (Edward Potter) Date: Tue, 21 Jan 2003 11:26:23 -0500 Subject: Linux World, Free passes, tickets, etc? In-Reply-To: <200301211429.h0LES2ll042435@parsec.nyphp.org> Message-ID: <15129529-2D5D-11D7-878F-000393BF8A42@well.com> has anyone seen any coupons? I always wait to the last minute on things like this!!! :-) On Tuesday, January 21, 2003, at 09:28 AM, max goldberg wrote: > Are you going to sell copies there or would one be required to bring > their copy? > > -max > > David Sklar wrote: >> I'll add that Adam Trachtenberg and I will be at the O'Reilly booth >> (#457) >> on Wednesday afternoon starting at 1pm to sign copies of "PHP >> Cookbook" and >> hang out. So if you're around, please come by to say "hi". >> >> David >> >> >> >> >> >> > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From sterling at bumblebury.com Tue Jan 21 11:16:45 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 21 Jan 2003 11:16:45 -0500 Subject: ADT alpha 1 Message-ID: <1043165805.12437.1312.camel@hasele> Hi, ADT alpha 1 is available! ADT is a PHP extension that provides a collection of Abstract Data Types (ADT), including trees, graphs, queues, heaps, sets and stacks. You can find more information about adt, and installing alpha 1, at http://www.php.net/~sterling/adt/. -Sterling -- "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup From Arno.Vanmosel at wwecorp.com Tue Jan 21 12:51:52 2003 From: Arno.Vanmosel at wwecorp.com (Vanmosel, Arno ) Date: Tue, 21 Jan 2003 12:51:52 -0500 Subject: [nycphp-talk] BlueShoes Message-ID: <7101D732D17CD311AEFF00508B55857203F72B34@NT-EXCH-TOWER2> Never heard of it ... and yeah ... that is a weird license agreement. You gonna play with it? If so ... would like to hear some comments too. Arno -----Original Message----- From: Weston Houghton [mailto:weslists at anapraxis.com] Sent: Tuesday, January 21, 2003 11:11 AM To: NYPHP Talk Subject: [nycphp-talk] BlueShoes Does anyone have any experience with or comments on blueshoes? I've not investigated it much, as the license seems a bit odd, but I thought I'd get some info on it if anyone had any. http://www.blueshoes.org/ Cheers, Wes --- Unsubscribe at http://nyphp.org/list/ --- -------------- next part -------------- An HTML attachment was scrubbed... URL: From JMKing at ipro.org Tue Jan 21 13:25:28 2003 From: JMKing at ipro.org (Jaz-Michael King) Date: Tue, 21 Jan 2003 13:25:28 -0500 Subject: [nycphp-talk] PHP Application Building Blocks Message-ID: the oermissions system's lowest rung is member, they have no access to the cms but they can view pages assigned a "member" status - there are groups and users, but it's just the architecture, you'll need to make the various modules. maybe some already done in dev, check the group in yahoo. comments / personalization isn't built-in, but it's easy enough to add. I picked sitellite out of about 10 packages for a few vaguely remembered reasons: here's what I can drag out ofmemory most cms I use make it impossible to refine the layout beyond three columns lots of boxes, this one is way more open no redundant code (that I could find) the site was federal money, so needed to be section 508 compliant, this one seemd to be the most 508 capable code was extremely well documented within the code, well laid out, obvious attention to detail within the product seemed young enough to not yet have a bunch of feature creep and code bloat all over it (which was true) not free, but not expensive - I wanted to pay *something*. I haven't yet, though, no matter how hard I try. xhtml / css ready thats what I can remember at least j ****************************** Jaz-Michael King Online Services Manager IPRO http://ipro.org ****************************** >>> "Ophir Prusak" 01/21/03 12:58PM >>> It looks pretty good for cms stuff. My biggest concern is that the site I'm making is very user centric. Users will be able to register / add comments / vote / etc. Does sitellite already have user authentication / group management stuff it in ? (not the site editors themselves). If not do u think it would be hard to add it ? Also - I'm wondering why u picked sitellite (and not the tons of other packages). Again, thanx for your time, Ophir ----- Original Message ----- From: "Jaz-Michael King" To: Sent: Tuesday, January 21, 2003 11:58 AM Subject: Re: [nycphp-talk] PHP Application Building Blocks Absolutely, been using it for over a year now. www.ipro.org runs it - 20k uniques a month, as does my test site mynameismonkey.com - one word of advice, php accelerator. w/o it I'd be effed. It's a breeze to work with, doesn't take control of your content or layout, and is easily extended. Support is iffy, there's a yahoo dev group but the project is still pretty small user wise IMO. Documentation is lacking, mostly due to the fact that it's mostly one guy and he releases faster than he can document :o) J >>> "Ophir Prusak" 01/21/03 11:15AM >>> Hi Jaz, Thanks for the info. Have you used Sitellite yourself ? If yes, any comments ? thanx ophir ----- Original Message ----- From: "Jaz-Michael King" To: "NYPHP Talk" Sent: Tuesday, January 21, 2003 10:55 AM Subject: Re: [nycphp-talk] PHP Application Building Blocks > Sitellite Application Framework : http://www.simian.ca > > J > > >>> ophir at prusak.com 01/18/03 06:56PM >>> > Hi All, > > After custom coding my video game site for the past 3 years, I've decided to > rewrite the whole thing from scratch. > > Instead of re-inventing the wheel, I'm looking for good PHP "packages" that > I'll be able to use. > > I am NOT looking for a portal in a box. > > I AM looking for packages that provide "building blocks" that will allow me > to create a site. > > Can any one recommend anything ? > > Thanx > Ophir > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From adam at trachtenberg.com Tue Jan 21 14:22:46 2003 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 21 Jan 2003 14:22:46 -0500 (EST) Subject: [nycphp-talk] Linux World, Free passes, tickets, etc? In-Reply-To: <200301211626.h0LGQQkr048649@parsec.nyphp.org> Message-ID: I think you should be able to get a free floor pass at http://www.linuxworldexpo.com/. I signed up a few weeks ago and they mailed me a card, but I think you can pick yours up at the show. See you there! -adam -- adam at trachtenberg.com On Tue, 21 Jan 2003, Edward Potter wrote: > has anyone seen any coupons? I always wait to the last minute on things > like this!!! > > :-) > > > On Tuesday, January 21, 2003, at 09:28 AM, max goldberg wrote: > > > Are you going to sell copies there or would one be required to bring > > their copy? > > > > -max > > > > David Sklar wrote: > >> I'll add that Adam Trachtenberg and I will be at the O'Reilly booth > >> (#457) > >> on Wednesday afternoon starting at 1pm to sign copies of "PHP > >> Cookbook" and > >> hang out. So if you're around, please come by to say "hi". > >> > >> David From jim at nettmedia.com Tue Jan 21 14:31:45 2003 From: jim at nettmedia.com (Jim Musil) Date: Tue, 21 Jan 2003 14:31:45 -0500 Subject: Cookie Based Stats Message-ID: We'd like to start tracking visitors to our sites based on cookies in order to compare the results with our traditional apache log crunching method, Analog. As I'm searching the web for packages and other info, can anyone here comment on their experience doing something like this? You could also correct, if necessary, my assumption that the best way to track visitors is to use a combination of log examination and cookie storage since both have faults. Thanks! Jim Musil Nettmedia, Senior Developer 345 Seventh Ave., 24th Floor. New York, NY 10001 Tel. 212.629.0004 x 131 From andrew at digitalpulp.com Tue Jan 21 15:01:44 2003 From: andrew at digitalpulp.com (Andrew M. Yochum) Date: Tue, 21 Jan 2003 15:01:44 -0500 (EST) Subject: [nycphp-talk] Cookie Based Stats In-Reply-To: <200301211931.h0LJVoeh054128@parsec.nyphp.org> Message-ID: Hmm... are you looking for clickstream analysis (watching users' paths through the site)? If that is your goal then this bit might help... What I've done is added the storage of cookies in the apache log format. This in conjunction with cookie-based php sessions (or your own custom cookie based sessions) will allow you to do clickstream analysis. If you don't use sessions, I believe the Apache mod_usertrack module will give you a similar result. Here's an example from my httpd.conf file for the log format that includes cookies: LogFormat "%h %l %u %t \\"%r\\" %>s %b \\"%{Referer}i\\" \\"%{User-Agent}i\\" \\"%{Cookie}i\\"" combinedcookie ...which adds \\"%{Cookie}i\\" to log the stock combined log format. Then you need a log analysis tool that knows how to use that cookie data to track the user's path through your site, and that is where my experience ends, as I've only done the setup and left the rest up to clients. I believe WebTrends does such things, but costs $$$ ... Regards, Andrew On Tue, 21 Jan 2003, Jim Musil wrote: > > We'd like to start tracking visitors to our sites based on cookies in order > to compare the results with our traditional apache log crunching method, > Analog. > > As I'm searching the web for packages and other info, can anyone here > comment on their experience doing something like this? > > You could also correct, if necessary, my assumption that the best way to > track visitors is to use a combination of log examination and cookie storage > since both have faults. > > Thanks! > > > Jim Musil > > Nettmedia, Senior Developer > 345 Seventh Ave., 24th Floor. > New York, NY 10001 > Tel. 212.629.0004 x 131 > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > -- Andrew Yochum Digital Pulp, Inc. 212.679.0676x255 andrew at digitalpulp.com From hans at nyphp.org Tue Jan 21 15:10:43 2003 From: hans at nyphp.org (Hans Zaunere) Date: Tue, 21 Jan 2003 12:10:43 -0800 (PST) Subject: NYPHP Presents: January's Meeting on Enterprise PHP Message-ID: <20030121201043.52809.qmail@web12806.mail.yahoo.com> -- Complete Details at http://nyphp.org -- New York PHP Presents... January 28th, 2003 @ 6:30pm at Digital Pulp, Inc. "Building a Scalable Architecture with PHP" "High Performance PHP" PHP Job Opportunities Presented by Community Connect's CTO Mike Montero and Chief Architect Dan Cowgill, these talks are for those interested in PHP internals, performance and enterprise PHP development. Few know PHP like these guys, so you won't want to miss their insight. And then, join Community Connect Recruiter David Dankin to explore the PHP job market and check out available positions at CC. What a great way to start a year! One important note, however, is that NYPHP monthly meetings have been moved to the 4th Tuesday of the month (1/28/03). As always this meeting is free and open to the public, with complete meeting and location details at http://nyphp.org I'd also like to point out NYPHP's new job board. It's still developing, but going strong. Check it out at http://jobs.nyphp.org and send your available positions to jobs-submit at nyphp.org. Thank you, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From nyphp at websapp.com Tue Jan 21 17:01:42 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Tue, 21 Jan 2003 17:01:42 -0500 Subject: Wednesday's Recruitment Seminar Update! Message-ID: On behalf of AIP: We are very pleased to let you know that Dino Grigorakakis, the Regional VP of Robert Half International, will be joining Oren Klaber from Monster.com to be part of our panel this Wednesday. RHI is the world leader in specialized staffing services, and Dino will discuss compensation trends and inform us of strategies to increase compensation packages. In addition, RHI will be sending five experts to be part of the event and the networking opportunities. Full details below: Location: IBM Building, 590 Madison Ave, New York. (Cross at 57th St.) Time: 6:00 PM Jan 22, 2003 for food and networking. Event starts at 6:30. Price: $15 at the door, Free for members, $10 for pre-registrants Space is limited and running out. Please register to reserve your space. To register for this event: Please email dseligson at association.org or call 212-375-6290 x 200 and ask for Dan Seligson. PRESENTER: Dino Grigorakakis is the Regional Vice-President for Robert Half International Inc. (RHI). Robert Half International Inc. (RHI) pioneered specialized staffing services today is the world's leader in the field. Founded in 1948, the company is traded on the New York Stock Exchange (symbol: RHI) and operates seven separate divisions, each serving distinct markets. They include: Accountemps, Robert Half Accounting and FinanceR and Robert Half Management ResourcesR, for temporary, full-time and project professionals, respectively, in the fields of accounting and finance; OfficeTeamR, for highly skilled temporary administrative support; Robert Half TechnologyR, for information technology professionals; The AffiliatesR, for temporary, project and full-time staffing of attorneys, paralegals and legal support personnel; and The Creative GroupR, for creative, advertising, marketing and web design professionals. PRESENTATION TITLE: IT COMPENSATION TRENDS IN 2003 OVERVIEW: Based on research conducted for the 2003 Robert Half Technology Salary Guide, we will explore the intimate knowledge of hiring markets and identify key trends. We support this information with research conducted through our surveys of more than 1,400 CIOs, and with findings from the Department of Labor's Bureau of Labor Statistics as well as news and trade publications. OUTLINE: Factors influencing compensation levels: * Specialized experience * Local employment conditions * Growing industries in a given market Key issues for upcoming years compensation: * Trends in IT compensation for 2003 and how they're being affected by current economic conditions. * The factors influencing hiring managers across the country and the strategies they're employing to meet their needs. From tommyo at dolemite.org Tue Jan 21 17:58:23 2003 From: tommyo at dolemite.org (Tom O'Neill) Date: Tue, 21 Jan 2003 16:58:23 -0600 Subject: Quickbooks file format Message-ID: <02b201c2c1a0$9a7f0920$6401a8c0@Tom2k> Has anyone on the list ever created a QuickBooks IIF file to be imported into the QB software. I have a client that would like to download the web order information and import it into QuickBooks. I have found a link that had the file format on QuickBooks site but the link is dead. Anyone out there done this before? Thanks! Just incase... Here is the link.... maybe it will work for someone out there. http://www.quickbooks.com/support/faqs/qbw2002/95359.html Thomas O'Neill tommyo at dolemite.org 1222 1/2 West 5th Winona, MN 55987 home: 507-454-2798 mobile: 507-303-9202 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dean.Benjamin at mm.com Tue Jan 21 18:21:34 2003 From: Dean.Benjamin at mm.com (Dean.Benjamin at mm.com) Date: Tue, 21 Jan 2003 17:21:34 -0600 Subject: [tcphp] Quickbooks file format In-Reply-To: <02b201c2c1a0$9a7f0920$6401a8c0@Tom2k> Message-ID: <5.1.1.6.2.20030121170814.009f4ec0@mailhost.mm.com> That page links to two EXEs (self-extracting zip files with sample IIFs). I'll email you the HTML plus the two EXEs separately (off-list). I know lots about bookkeeping and using IIF files for entering transactions into QuickBooks Pro, so feel free to ask me any followup questions. -- Dean At 04:58 PM 1/21/03 -0600, Tom O'Neill wrote: >Has anyone on the list ever created a QuickBooks IIF file to be >imported into the QB software. I have a client that would like to >download the web order information and import it into QuickBooks. I >have found a link that had the file format on QuickBooks site but >the link is dead. Anyone out there done this before? > >Thanks! > >Just incase... Here is the link.... maybe it will work for someone >out there. >http://www.quickbooks.com/support/faqs/qbw2002/95359.html > >Thomas O'Neill >tommyo at dolemite.org >1222 1/2 West 5th >Winona, MN 55987 >home: 507-454-2798 >mobile: 507-303-9202 From soazine at erols.com Tue Jan 21 18:38:33 2003 From: soazine at erols.com (Phil Powell) Date: Tue, 21 Jan 2003 18:38:33 -0500 Subject: Fw: I need my PHP script to call a TCL proc Message-ID: <009901c2c1a6$3623e850$2aaf6244@scandinawa1bo6> ----- Original Message ----- From: To: Sent: Tuesday, January 21, 2003 5:36 PM Subject: I need my PHP script to call a TCL proc > From: soazine at erols.com (Phil Powell) > Newsgroups: comp.lang.tcl,comp.lang.php > Subject: I need my PHP script to call a TCL proc > NNTP-Posting-Host: 65.201.150.91 > Message-ID: <1cdca2a7.0301211436.3950d68a at posting.google.com> > > It's either that my PHP script call a working TCL proc that converts > all string text that looks like a URL ("http://...") into a hyperlink, > or does someone have a PHP equivalent to do it? My PHP function > VALIDATE_URL fails to do any conversion in its regexp, however, the > TCL proc works every time, and the matching pattern is nearly > identical in both! > > TCL: > > proc VALIDATE_URL {contents} { > regsub -all "\\\ " $contents "
" contents > regsub -all {\\.{2,}} $contents {. .} contents > regsub -all {(http://([a-zA-Z0-9_\\-]+\\.)+(/[a-zA-Z0-9_\\-\\.\\~\\^,%\\+]+)*[^<\\(\\)> > ]+)} $contents " style='text-decoration:none'>\\\\1" contents > regsub -all {\\. \\.} $contents {..} contents > return $contents > } > > PHP: > > function VALIDATE_URL($contents) { > $contents = preg_replace("/\\\ /e", '
', $contents); > $contents = preg_replace('/\\.{2,}/e', '. .', $contents); > $contents = preg_replace('/http[s]?:\\/\\/\\([a-zA-Z0-9_\\-]+\\.\\)+\\(\\/[a-zA-Z0-9_\\-\\.\\~\\^,%\\ +]+\\)*[^<\\\\(\\\\)> > ]+\\)/ei', "\\\\\\\\1", $contents); > return preg_replace('/\\. \\./e', '..', $contents); > } > > So who wins, TCL or PHP? > > Thanx > Phil From hans at nyphp.org Tue Jan 21 19:13:36 2003 From: hans at nyphp.org (Hans Zaunere) Date: Tue, 21 Jan 2003 16:13:36 -0800 (PST) Subject: NYPHP at LinuxWorld Expo 2003, Tomorrow! Message-ID: <20030122001336.2532.qmail@web12806.mail.yahoo.com> Greetings, The first day of exhibits at LinuxWorld Expo 2003 is tomorrow, January 22nd. NYPHP members who will be helping tomorrow plan on meeting in the front area of Javitts at 9:00am. This is what's in store throughout the day: "Q&A with Doron Gerstel, CEO, Co-Founder, Zend Technologies" January 22, 2003 @ 1:30pm, NYPHP, Booth #16 Doron has kindly taken time from his busy schedule to address NY's questions on PHP, Zend, and the community's direction. Join us and get your questions answered by Zend's leading man. "PHP Developers Cookbook by Sterling Hughes and Andrei Zmievski Book Raffle" January 22,23,24, 2003 @ 3:30pm, NYPHP, Booth #16 Get your name entered by 3:30pm each day and have a chance to win this valuable reference for any PHP programmer. Thanks to Sterling Hughes and Sams Publishing. -- And don't forget to stop by anytime, to get info on PHP and our community! Haven't signed up for LinuxWorld Expo yet? It's not too late - register for FREE at http://linuxworldexpo.com and stop by Booth #16 for talk, fun and PHP! And if you'd like to take a load off, spend some time behind the booth answering questions and talking with fellow Linux and PHP users. If you need to contact me for any reason, I'll be available all day at 646 242 4101. Thank you, and see you at the Expo! ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From soazine at erols.com Tue Jan 21 20:36:02 2003 From: soazine at erols.com (Phil Powell) Date: Tue, 21 Jan 2003 20:36:02 -0500 Subject: How do I find email patterns in a query string in a text and urlescape them? Message-ID: <010701c2c1b6$a0dcf8c0$2aaf6244@scandinawa1bo6> If I have a text of string like this: $stuff = "Hi my name is Phil, my email is xx at yy.com and you can find me at http://www.xx.yy?username=xx at yy.com"; What I want to do is to "validate" all patterns resembling an email address EXCEPT those found within the query string of a URL. I would want to to urlencode(\\\\1) somehow onto the email address pattern found within the query string of the URL to ensure that it is not "validated" like any other email address (validate means to convert xx at yy.com to xx at yy.com). Can anyone figure this out for me? I tried using pattern matching and eval() but the results were completely wrong: function VALIDATE_URL($stuff) { $stuff = preg_replace('/[\ \\r]/', '
', $stuff); $stuff = preg_replace('/\\.\\./', ' . .', $stuff); // URL ESCAPE ALL EMAIL ADDRESSES FOUND WITHIN QUERY STRINGS TO ENSURE PROPER VALIDATION // IF USING VALIDATE_EMAIL $stuff = preg_replace('/([\\?&][a-zA-Z0-9]+=)([a-zA-Z0-9_\\-\\.]+@([a-zA-Z0-9_\\-]+\\.)+[a-zA-Z0-9_\\-]+)/', '\\\\1' . '', $stuff); $stuff = eval('?>' . $stuff); $stuff = preg_replace('/(http[s]?:\\/\\/([a-zA-Z0-9_\\-]+\\.)+(\\/[a-zA-Z0-9_\\-\\.\\~\\^,%\\+]+)*[^<\\(\\)> ]+)/', '\\\\1', $stuff); return preg_replace('/ \\. \\./', '..', $stuff); } Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From webmaster at localnotion.com Tue Jan 21 20:49:40 2003 From: webmaster at localnotion.com (webmaster at localnotion.com) Date: Wed, 22 Jan 2003 01:49:40 +0000 Subject: [nycphp-talk] NYPHP at LinuxWorld Expo 2003, Tomorrow! In-Reply-To: <200301220014.h0M0Dchf060720@parsec.nyphp.org> References: <200301220014.h0M0Dchf060720@parsec.nyphp.org> Message-ID: <1043200180.3e2df8b49e673@webmail.localnotion.com> Is it really still free? I went to the site and it looks like it was 30 bucks now. Quoting Hans Zaunere : > Greetings, > > The first day of exhibits at LinuxWorld Expo 2003 is tomorrow, January 22nd. > NYPHP members who will be helping tomorrow plan on meeting in the front area > of Javitts at 9:00am. > > This is what's in store throughout the day: > > > "Q&A with Doron Gerstel, CEO, Co-Founder, Zend Technologies" > January 22, 2003 @ 1:30pm, NYPHP, Booth #16 > > Doron has kindly taken time from his busy schedule to address NY's questions > on PHP, Zend, and the community's direction. Join us and get your questions > answered by Zend's leading man. > > > "PHP Developers Cookbook by Sterling Hughes and Andrei Zmievski Book Raffle" > January 22,23,24, 2003 @ 3:30pm, NYPHP, Booth #16 > > Get your name entered by 3:30pm each day and have a chance to win this > valuable reference for any PHP programmer. Thanks to Sterling Hughes and Sams > Publishing. > > > -- And don't forget to stop by anytime, to get info on PHP and our community! > > > Haven't signed up for LinuxWorld Expo yet? > > It's not too late - register for FREE at http://linuxworldexpo.com and stop > by Booth #16 for talk, fun and PHP! And if you'd like to take a load off, > spend some time behind the booth answering questions and talking with fellow > Linux and PHP users. > > > If you need to contact me for any reason, I'll be available all day at 646 > 242 4101. > > Thank you, and see you at the Expo! > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- From cthorn at wt.net Tue Jan 21 21:00:51 2003 From: cthorn at wt.net (cthorn) Date: Wed, 22 Jan 2003 02:00:51 GMT Subject: [nycphp-talk] Quickbooks file format Message-ID: <3e2e0963.5e50.1804289383@wt.net> Hi, I was able to get to the link and attached a couple of the files.. It should be easy to create these file on the fly... e.g. if(!$iif_file = fopen("test.iif","w")) { print "Couldn't open file"; } else { fputs($iif_file,"!SPL\ TRNSID\ TRNSTYPE\ DATE\ ACCNT\ NAME\ AMOUNT\ DOCNUM\ MEMO\ CLEAR\ "); fputs($iif_file,"!TRNS\ TRNSID\ TRNSTYPE\ DATE\ ACCNT\ NAME\\ tAMOUNT\ DOCNUM\ MEMO\ CLEAR\ "); snip .... fclose($iif_file); } > Has anyone on the list ever created a QuickBooks IIF file > to be imported into the QB software. I have a client that > would like to download the web order information and > import it into QuickBooks. I have found a link that had > the file format on QuickBooks site but the link is dead. > Anyone out there done this before? > Thanks! > > Just incase... Here is the link.... maybe it will work for > someone out there. > http://www.quickbooks.com/support/faqs/qbw2002/95359.html > Thomas O'Neill > tommyo at dolemite.org > 1222 1/2 West 5th > Winona, MN 55987 > home: 507-454-2798 > mobile: 507-303-9202 > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: purchase_order.iif URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: transfer.iif URL: From zaunere at yahoo.com Tue Jan 21 22:32:51 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 21 Jan 2003 19:32:51 -0800 (PST) Subject: [nycphp-talk] NYPHP at LinuxWorld Expo 2003, Tomorrow! In-Reply-To: <200301220150.h0M1nmmH062798@parsec.nyphp.org> Message-ID: <20030122033251.91521.qmail@web12807.mail.yahoo.com> --- webmaster at localnotion.com wrote: > Is it really still free? I went to the site and it looks like it was 30 > bucks now. I just noticed that too. I had *heard* that it was going to be free even for onsite registering, however the site obviously states otherwise. You might want check on the unilug.org or nylug.org mailing lists, as they may know more. Best, Hans > > > Quoting Hans Zaunere : > > > Greetings, > > > > The first day of exhibits at LinuxWorld Expo 2003 is tomorrow, January > 22nd. > > NYPHP members who will be helping tomorrow plan on meeting in the front > area > > of Javitts at 9:00am. > > > > This is what's in store throughout the day: > > > > > > "Q&A with Doron Gerstel, CEO, Co-Founder, Zend Technologies" > > January 22, 2003 @ 1:30pm, NYPHP, Booth #16 > > > > Doron has kindly taken time from his busy schedule to address NY's > questions > > on PHP, Zend, and the community's direction. Join us and get your > questions > > answered by Zend's leading man. > > > > > > "PHP Developers Cookbook by Sterling Hughes and Andrei Zmievski Book > Raffle" > > January 22,23,24, 2003 @ 3:30pm, NYPHP, Booth #16 > > > > Get your name entered by 3:30pm each day and have a chance to win this > > valuable reference for any PHP programmer. Thanks to Sterling Hughes and > Sams > > Publishing. > > > > > > -- And don't forget to stop by anytime, to get info on PHP and our > community! > > > > > > Haven't signed up for LinuxWorld Expo yet? > > > > It's not too late - register for FREE at http://linuxworldexpo.com and > stop > > by Booth #16 for talk, fun and PHP! And if you'd like to take a load off, > > spend some time behind the booth answering questions and talking with > fellow > > Linux and PHP users. > > > > > > If you need to contact me for any reason, I'll be available all day at > 646 > > 242 4101. > > > > Thank you, and see you at the Expo! > > > > > > ===== > > Hans Zaunere > > President, New York PHP > > http://nyphp.org > > hans at nyphp.org > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From danielc at analysisandsolutions.com Tue Jan 21 23:22:28 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Tue, 21 Jan 2003 23:22:28 -0500 Subject: [nycphp-talk] How do I find email patterns in a query string in a text and urlescape them? In-Reply-To: <200301220138.h0M1csdL062100@parsec.nyphp.org> References: <200301220138.h0M1csdL062100@parsec.nyphp.org> Message-ID: <20030122042228.GA18051@panix.com> Hi Phil: Before I get started, in the future, please fix your email software so it wraps lines at around 77 characters. That'll save everyone who wants to help you some time not having to reformat your emails. On Tue, Jan 21, 2003 at 08:38:54PM -0500, Phil Powell wrote: > $stuff = "Hi my name is Phil, my email is xx at yy.com and you can find me > at http://www.xx.yy?username=xx at yy.com"; > > What I want to do is to "validate" all patterns resembling an email > address EXCEPT those found within the query string of a URL. So, why not just skip over whatever's a URI and then do the validate whatever's left? Before we start giving you code, I just wanted to check that this direction is acceptable. --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From soazine at erols.com Wed Jan 22 01:11:05 2003 From: soazine at erols.com (Phil Powell) Date: Wed, 22 Jan 2003 01:11:05 -0500 Subject: [nycphp-talk] How do I find email patterns in a query string in a text and urlescape them? References: <200301220422.h0M4MUfL065856@parsec.nyphp.org> Message-ID: <018201c2c1dd$0c2268b0$2aaf6244@scandinawa1bo6> I'm sorry, I'm using Outlook Express 6, how do I do that? Phil ----- Original Message ----- From: "Analysis & Solutions" To: "NYPHP Talk" Sent: Tuesday, January 21, 2003 11:22 PM Subject: Re: [nycphp-talk] How do I find email patterns in a query string in a text and urlescape them? > Hi Phil: > > Before I get started, in the future, please fix your email software so it > wraps lines at around 77 characters. That'll save everyone who wants to > help you some time not having to reformat your emails. > > > On Tue, Jan 21, 2003 at 08:38:54PM -0500, Phil Powell wrote: > > > $stuff = "Hi my name is Phil, my email is xx at yy.com and you can find me > > at http://www.xx.yy?username=xx at yy.com"; > > > > What I want to do is to "validate" all patterns resembling an email > > address EXCEPT those found within the query string of a URL. > > So, why not just skip over whatever's a URI and then do the validate > whatever's left? Before we start giving you code, I just wanted to check > that this direction is acceptable. > > --Dan > > -- > PHP classes that make web design easier > SqlSolution.info | LayoutSolution.info | FormSolution.info > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From brent at landover.com Wed Jan 22 10:40:15 2003 From: brent at landover.com (Brent Baisley) Date: Wed, 22 Jan 2003 10:40:15 -0500 Subject: [nycphp-talk] NYC Freelance rates In-Reply-To: <200301201703.h0KH39MR006684@parsec.nyphp.org> Message-ID: You've gotten a lot of could advice on this tough question. There are a lot of people with poor programming practices who are very confident and charge very little. I can't tell you how many MS Access based systems I've replaced. Not that Access is bad, it just seems the wizards were used to create the systems. What I tend to do is put a cap on the hours I will charge or even offer a flat fee. Most of the $20 hour people aren't willing to do that, or if they do, will hit the cap and drop the project. Of course, this requires a well defined project scope which can be tough to do when people don't know what they want. But if you can strictly define the scope, you can also provide a completion date up front. The client needs to be able to compare the proposals and see that yours is much more complete than the low baller's. I always make sure I "give" them something. Initial analysis is free is they grant the project to me, otherwise I charge them an analysis rate. I submit $0.00 invoices for things I do outside the scope of the project, like troubleshooting a printing problem for a user. If this happens a lot, you can start charging them. At the very least you show them your other talents. I picked up a number of clients who have me come in on a regular basis for preventive maintenance. In one sense I am one of those $20/hour people, but that's what I charge for updating virus definitions. On Monday, January 20, 2003, at 12:03 PM, Edward Potter wrote: > I was just wondering what the going rate for freelance (NYC) PHP > programmers was? I have a client that says she is getting scores of > resumes where guys are charging less then $20 an hour. I had assumed it > was about $40 - $50 these days. -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 From fb at intldef.org Wed Jan 22 13:24:22 2003 From: fb at intldef.org (FB`) Date: Wed, 22 Jan 2003 13:24:22 -0500 Subject: LinuxWorld Expo 2003, free passes References: <200301220333.h0M3WrhD064804@parsec.nyphp.org> Message-ID: <021f01c2c243$83cb2080$1901a8c0@ybsweb> >From NYLUG list: http://www.redhat.com/mktg/pdf/LWNY2003_promo.pdf FB` From ejp at well.com Wed Jan 22 13:34:17 2003 From: ejp at well.com (Edward Potter) Date: Wed, 22 Jan 2003 13:34:17 -0500 Subject: [nycphp-talk] LinuxWorld Expo 2003, free passes In-Reply-To: <200301221826.h0MIOnlh073931@parsec.nyphp.org> Message-ID: <1D811998-2E38-11D7-8B03-000393BF8A42@well.com> THANKS!!!! On Wednesday, January 22, 2003, at 01:24 PM, FB` wrote: >> From NYLUG list: > > http://www.redhat.com/mktg/pdf/LWNY2003_promo.pdf > > FB` > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From fields at surgam.net Wed Jan 22 18:34:30 2003 From: fields at surgam.net (Adam Fields) Date: Wed, 22 Jan 2003 18:34:30 -0500 Subject: [nycphp-talk] LinuxWorld Expo 2003, free passes In-Reply-To: <200301221835.h0MIYTkL074639@parsec.nyphp.org> References: <200301221835.h0MIYTkL074639@parsec.nyphp.org> Message-ID: <20030122233430.GG7929@eye.surgam.net> Today was fun - and it was good to meet some of you. My pictures are up: http://www.aquick.org/pictures/lwe_2003_day1/page_01.htm I'm not sure if I'll have time to get there tomorrow, but if so, it'll be in the early afternoon. -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From jellicle at inch.com Wed Jan 22 18:42:40 2003 From: jellicle at inch.com (Michael Sims) Date: Wed, 22 Jan 2003 18:42:40 -0500 Subject: [nycphp-talk] NYC Freelance rates In-Reply-To: <200301201703.h0KH39Lv006684@parsec.nyphp.org> References: <200301201703.h0KH39Lv006684@parsec.nyphp.org> Message-ID: <20030122235151.EA41E10DE43@thirstydog.dsl.net> On Monday 20 January 2003 12:03 pm, Edward Potter wrote: > I was just wondering what the going rate for freelance (NYC) PHP > programmers was? I have a client that says she is getting scores of > resumes where guys are charging less then $20 an hour. I had assumed > it was about $40 - $50 these days. There has been a lot of useful info in this thread. One thing that I didn't see mentioned (besides the hordes of unemployed programmers who are willing to work quite cheaply) is that you are also competing against overseas people - India, Russia, etc. I know of one company in NYC who is employing a Bulgarian firm. They have skilled, competent programmers, and the rate is $10/hour - $10/hour that the U.S. firm is paying out, so who knows what the Bulgarians are getting individually for a salary, but it isn't much. There are lots of situations where foreign outsourcing isn't really an option, and in those cases contract programmers can expect to continue to demand decent wages. But if we invented teleportation tomorrow, plumbers wouldn't command $80/hour any more, because you could teleport in skilled plumbers from Bulgaria who would work for a tenner and then teleport them right back home. That is happening now with any project that can be outsourced overseas. So watch out, and really cunning programmers will look for market segments where they *aren't* competing against overseas labor. -- Michael Sims From louie at zibi.co.il Wed Jan 22 22:31:02 2003 From: louie at zibi.co.il (louie) Date: Wed, 22 Jan 2003 19:31:02 -0800 Subject: [nycphp-talk] NYC Freelance rates References: <200301222353.h0MNpun9078435@parsec.nyphp.org> Message-ID: <007701c2c28f$db276860$b35efea9@w3j5c4> greetings folks, well, i work for NYC company for 6 months free, on some projects, doing more than just PHP(,net\\vb\\perl), just to get my H1 visa, i think, you should charge per project, not Per hour, that what i do, after you got the project done, you charge BTH. for service. give a fair price for the project, and keep everyone happy. funny story, the only company that wanted to give me a full time job, and pay for my H1 had an openning for A+ and networking shit. i remember saying the hell with it, why not?!, the very next day, i got my first call it was a man with window XP, the problem? my mouse want move. i shake it, i tilt it, nothin', he sad. i put him on hold, and quit, work as bus boy for 2 months, until i got the other gig. ^_^ just a personal story, and i know alot of people that tryed to get H1 via companies just to relocate from other countries, guess some of them here best regards, louie. -" ----- Original Message ----- From: "Michael Sims" To: "NYPHP Talk" Sent: Wednesday, January 22, 2003 3:51 PM Subject: Re: [nycphp-talk] NYC Freelance rates > On Monday 20 January 2003 12:03 pm, Edward Potter wrote: > > > I was just wondering what the going rate for freelance (NYC) PHP > > programmers was? I have a client that says she is getting scores of > > resumes where guys are charging less then $20 an hour. I had assumed > > it was about $40 - $50 these days. > > There has been a lot of useful info in this thread. One thing that I > didn't see mentioned (besides the hordes of unemployed programmers who > are willing to work quite cheaply) is that you are also competing > against overseas people - India, Russia, etc. > > I know of one company in NYC who is employing a Bulgarian firm. They > have skilled, competent programmers, and the rate is $10/hour - $10/hour > that the U.S. firm is paying out, so who knows what the Bulgarians are > getting individually for a salary, but it isn't much. > > There are lots of situations where foreign outsourcing isn't really an > option, and in those cases contract programmers can expect to continue > to demand decent wages. But if we invented teleportation tomorrow, > plumbers wouldn't command $80/hour any more, because you could teleport > in skilled plumbers from Bulgaria who would work for a tenner and then > teleport them right back home. That is happening now with any project > that can be outsourced overseas. So watch out, and really cunning > programmers will look for market segments where they *aren't* competing > against overseas labor. > > > -- > Michael Sims > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From chendry at nyc.rr.com Wed Jan 22 19:59:58 2003 From: chendry at nyc.rr.com (Christopher Hendry) Date: Wed, 22 Jan 2003 19:59:58 -0500 Subject: [nycphp-talk] NYC Freelance rates In-Reply-To: <200301222352.h0MNpuif078435@parsec.nyphp.org> Message-ID: While this is all true, I know of companies contracting overseas firms for cheap only to end up with undocumented code or documentation in the language of the country...so this can be just another strong selling point for a higher rate... -> There has been a lot of useful info in this thread. One thing that I -> didn't see mentioned (besides the hordes of unemployed programmers who -> are willing to work quite cheaply) is that you are also competing -> against overseas people - India, Russia, etc. -> -> I know of one company in NYC who is employing a Bulgarian firm. They -> have skilled, competent programmers, and the rate is $10/hour - $10/hour -> that the U.S. firm is paying out, so who knows what the Bulgarians are -> getting individually for a salary, but it isn't much. -> -> There are lots of situations where foreign outsourcing isn't really an -> option, and in those cases contract programmers can expect to continue -> to demand decent wages. But if we invented teleportation tomorrow, -> plumbers wouldn't command $80/hour any more, because you could teleport -> in skilled plumbers from Bulgaria who would work for a tenner and then -> teleport them right back home. That is happening now with any project -> that can be outsourced overseas. So watch out, and really cunning -> programmers will look for market segments where they *aren't* competing -> against overseas labor. From hans at nyphp.org Wed Jan 22 21:58:16 2003 From: hans at nyphp.org (Hans Zaunere) Date: Wed, 22 Jan 2003 18:58:16 -0800 (PST) Subject: Opening Day at LWE Message-ID: <20030123025816.26645.qmail@web12801.mail.yahoo.com> Today was the first day of exhibits at LinuxWorld Expo 2003, and although they say the economy is weak, you wouldn't know it by attending the show. The floor was packed with all the major IT companies (yes, even Microsoft), and the crowd was thick from 10:00-5:00. The UNILUG booth was a buzz of activity, and NYPHP was right in the middle of things. Thanks to all who stopped by today, and especially the staffers behind the booth. And of course a big thanks to Doron Gerstel, CEO, Zend Technologies for fielding questions, and Sterling Hughes for the book raffle. Tomorrow the show continues, and those who didn't get a chance to stop by today are encouraged to do so tomorrow or Friday. If you're interested in staffing the UNILUG/NYPHP booth tomorrow, please contact me at hans at nyphp.org. I will also be in and around the booth throughout the day and Friday afternoon. Thanks to Michael, Adam and Kayra for pictures. If there are any other pictures out there, let me know and we'll include them in the photo gallery after the expo. Special thanks to UNILUG for reserving the booth and letting NYPHP be a part of it. Best, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From dkrook at hotmail.com Thu Jan 23 01:19:48 2003 From: dkrook at hotmail.com (D C Krook) Date: Thu, 23 Jan 2003 01:19:48 -0500 Subject: [nycphp-talk] LinuxWorld Expo 2003, free passes Message-ID: We might want to make sure this shot of Daniel and Hans *doesn't* make it into any future NYPHP literature. :P http://www.aquick.org/pictures/lwe_2003_day1/IMG_4532.JPG [321K] ============ Daniel Krook Director of Communications, New York PHP http://nyphp.org krook at nyphp.org >Today was fun - and it was good to meet some of you. > >My pictures are up: > >http://www.aquick.org/pictures/lwe_2003_day1/page_01.htm > >I'm not sure if I'll have time to get there tomorrow, but if so, >it'll be in the early afternoon. > > >-- > - Adam _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From gw.nyphp at gwprogramming.com Thu Jan 23 01:24:30 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Thu, 23 Jan 2003 01:24:30 -0500 (EST) Subject: mysql_pconnect() problems with PHP 4.3.0 anyone? Message-ID: <200301230624.BAA02652@gw00.com> Hi NYPHPeeps... I am jealous to be out of the area during the LWE... I hope you are loving it. Has anyone noticed any occasional failures with mysql_pconnect() failing to reconnect using PHP version 4.3.0? I would assume the desired operation would be for PHP to silently reconnect any persistent connection which seems to have died. However the following fatal error (it's hardly a "warning!") occurs somewhat frequently now, with PHP 4.3.0 (Apache module sapi) and MySQL 3.23.54 on RH Linux 7.1/Apache 1.3.27. Also, the MySQL server is on a remote machine, so mysql_pconnect() is using TCP/IP. I suppose that dropped connections is not the problem; rather, the problem is that mysql_pconnect() fails to *reconnect*. Of course I don't see why the connection would have dropped; the server was not restarted and there are no networking failures. If I can't figure it out, I guess we'll go back to using mysql_connect(), wouldn't you agree? Has anyone else noticed anything similar? The PHP.net manual entry for mysql_pconnect() ( http://www.php.net/manual/en/function.mysql-pconnect.php ) shows a user comment suggesting that 4.3.0 might be the problem. Below is the phpinfo() mysql section. Thanks for your thoughts. ---- mysql MySQL Support => enabled Active Persistent Links => 1 Active Links => 1 Client API version => 3.23.54 MYSQL_MODULE_TYPE => external MYSQL_SOCKET => /tmp/mysql.sock MYSQL_INCLUDE => -I/usr/local/mysql/include MYSQL_LIBS => -L/usr/local/mysql/lib -lmysqlclient Directive => Local Value => Master Value mysql.allow_persistent => On => On mysql.connect_timeout => -1 => -1 mysql.default_host => no value => no value mysql.default_password => no value => no value mysql.default_port => no value => no value mysql.default_socket => /tmp/mysql.sock => /tmp/mysql.sock mysql.default_user => no value => no value mysql.max_links => Unlimited => Unlimited mysql.max_persistent => Unlimited => Unlimited mysql.trace_mode => Off => Off ---- Best, George. George Webb gw.nyphp at gwprogramming.com From gw.nyphp at gwprogramming.com Thu Jan 23 03:06:42 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Thu, 23 Jan 2003 03:06:42 -0500 (EST) Subject: Pictures Message-ID: <200301230806.DAA02713@gw00.com> Thanks, Adam for those pictures! Do I correctly recognize the back of MySQL and PHP developer Jim Winstead in http://www.aquick.org/pictures/lwe_2003_day1/IMG_4549.JPG ? It would be interesting to identify any other people. Of course I recognize Dan and Hans in http://www.aquick.org/pictures/lwe_2003_day1/IMG_4532.JPG . Also, what is the device pictured in the background of http://www.aquick.org/pictures/lwe_2003_day1/IMG_4528.JPG and http://www.aquick.org/pictures/lwe_2003_day1/IMG_4554.JPG ? Is it an input device? (I'm interested in alternative human-interface devices because of all the repetitive stress of typical CRT/keyboard workstations.) Have a great day-two! Best, George. George Webb gw.nyphp at gwprogramming.com From brian at preston-campbell.com Thu Jan 23 07:16:19 2003 From: brian at preston-campbell.com (Brian) Date: Thu, 23 Jan 2003 07:16:19 -0500 Subject: [nycphp-talk] Re: Pictures In-Reply-To: <200301230807.h0N86ijX086042@parsec.nyphp.org> References: <200301230807.h0N86ijX086042@parsec.nyphp.org> Message-ID: <200301230716.19272.brian@preston-campbell.com> That appears to be the logo for Gentoo Linux. Brian On Thursday 23 January 2003 03:06 am, George Webb wrote: > Thanks, Adam for those pictures! Do I correctly recognize the back of > MySQL and PHP developer Jim Winstead in > http://www.aquick.org/pictures/lwe_2003_day1/IMG_4549.JPG ? > > It would be interesting to identify any other people. Of course I > recognize Dan and Hans in > http://www.aquick.org/pictures/lwe_2003_day1/IMG_4532.JPG . > > Also, what is the device pictured in the background of > http://www.aquick.org/pictures/lwe_2003_day1/IMG_4528.JPG > and http://www.aquick.org/pictures/lwe_2003_day1/IMG_4554.JPG ? Is it > an input device? (I'm interested in alternative human-interface devices > because of all the repetitive stress of typical CRT/keyboard workstations.) > > Have a great day-two! > > > Best, George. > > George Webb > gw.nyphp at gwprogramming.com > > > --- Unsubscribe at http://nyphp.org/list/ --- From nyphp at websapp.com Thu Jan 23 08:24:35 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 23 Jan 2003 08:24:35 -0500 Subject: [nycphp-talk] LinuxWorld Expo 2003, free passes In-Reply-To: <200301230621.h0N6Jplf083821@parsec.nyphp.org> Message-ID: Yes Hans. Not all pictures go into the album. Maybe we can have a 'pay' section :) > -----Original Message----- > From: D C Krook [mailto:dkrook at hotmail.com] > Sent: Thursday, January 23, 2003 1:20 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] LinuxWorld Expo 2003, free passes > > > We might want to make sure this shot of Daniel and Hans > *doesn't* make it into any future NYPHP literature. :P > > http://www.aquick.org/pictures/lwe_2003_day1/IMG_4532.JPG [321K] > > > > > ============ > Daniel Krook > Director of Communications, New York PHP > http://nyphp.org > krook at nyphp.org > > > > >Today was fun - and it was good to meet some of you. > > > >My pictures are up: > > > >http://www.aquick.org/pictures/lwe_2003_day1/page_01.htm > > > >I'm not sure if I'll have time to get there tomorrow, but if so, > >it'll be in the early afternoon. > > > > > >-- > > - Adam > > > _________________________________________________________________ > Add photos to your messages with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From fields at surgam.net Thu Jan 23 09:31:42 2003 From: fields at surgam.net (Adam Fields) Date: Thu, 23 Jan 2003 09:31:42 -0500 Subject: [nycphp-talk] LinuxWorld Expo 2003, free passes In-Reply-To: <200301230620.h0N6JpkP083821@parsec.nyphp.org> References: <200301230620.h0N6JpkP083821@parsec.nyphp.org> Message-ID: <20030123143142.GB14232@eye.surgam.net> On Thu, Jan 23, 2003 at 01:19:51AM -0500, D C Krook wrote: > We might want to make sure this shot of Daniel and Hans > *doesn't* make it into any future NYPHP literature. :P > > http://www.aquick.org/pictures/lwe_2003_day1/IMG_4532.JPG [321K] But Hans looks so debonair! Generally, the light in there was somewhat confusing for my camera. It doesn't like big open spaces. -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From fields at surgam.net Thu Jan 23 09:44:05 2003 From: fields at surgam.net (Adam Fields) Date: Thu, 23 Jan 2003 09:44:05 -0500 Subject: [nycphp-talk] Re: Pictures In-Reply-To: <200301230807.h0N86ikP086042@parsec.nyphp.org> References: <200301230807.h0N86ikP086042@parsec.nyphp.org> Message-ID: <20030123144405.GC14232@eye.surgam.net> On Thu, Jan 23, 2003 at 03:06:44AM -0500, George Webb wrote: > Also, what is the device pictured in the background of > http://www.aquick.org/pictures/lwe_2003_day1/IMG_4528.JPG > and http://www.aquick.org/pictures/lwe_2003_day1/IMG_4554.JPG ? Is it > an input device? (I'm interested in alternative human-interface devices > because of all the repetitive stress of typical CRT/keyboard workstations.) It's a DDR (Dance Dance Revolution) pad. The game flashes directions at you and you have to tap the right key with your feet. Rule #1 of demoing a DDR pad at a linux show: get some women to do it for you. -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From fields at surgam.net Thu Jan 23 15:39:13 2003 From: fields at surgam.net (Adam Fields) Date: Thu, 23 Jan 2003 15:39:13 -0500 Subject: [nycphp-talk] ADT alpha 1 In-Reply-To: <200301211628.h0LGRbkN049284@parsec.nyphp.org> References: <200301211628.h0LGRbkN049284@parsec.nyphp.org> Message-ID: <20030123203913.GL31040@eye.surgam.net> On Tue, Jan 21, 2003 at 11:27:37AM -0500, Sterling Hughes wrote: > ADT alpha 1 is available! ADT is a PHP extension that provides a > collection of Abstract Data Types (ADT), including trees, graphs, > queues, heaps, sets and stacks. > > You can find more information about adt, and installing alpha 1, at > http://www.php.net/~sterling/adt/. Nice! Haven't looked at it yet, but this is totally useful. -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From zaunere at yahoo.com Thu Jan 23 19:50:18 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 23 Jan 2003 16:50:18 -0800 (PST) Subject: [nycphp-talk] LinuxWorld Expo 2003, free passes In-Reply-To: <200301231322.h0NDLSmJ089498@parsec.nyphp.org> Message-ID: <20030124005018.49480.qmail@web12805.mail.yahoo.com> --- Daniel Kushner wrote: > Yes Hans. Not all pictures go into the album. Maybe we can have a 'pay' > section :) We'd have to pay them... > > -----Original Message----- > > From: D C Krook [mailto:dkrook at hotmail.com] > > > > We might want to make sure this shot of Daniel and Hans > > *doesn't* make it into any future NYPHP literature. :P > > > > http://www.aquick.org/pictures/lwe_2003_day1/IMG_4532.JPG [321K] I agree! In fact, Adam; rawrite the sectors of your harddrive that contain that image!! ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From louie at zibi.co.il Fri Jan 24 04:47:12 2003 From: louie at zibi.co.il (louie) Date: Fri, 24 Jan 2003 01:47:12 -0800 Subject: WebCam Message-ID: <004201c2c38d$924b2b00$b35efea9@w3j5c4> greetings folks, i want to Add a fast loading webcam portal page to my website. (with some kind of moderating option, on who can join.) <--- this NP i can handle mYself..... first, does anyone familiar with any ready script out there that do so? does anyone have any experience with coding for webcam portal? fast loading, bugs, tips. anythin' will be great Later ... louie. -"mummy,mummy, louie sad Anal !" p.s. cant attend wednesdays meeting, saw the LWE pics, Nice knowing the faces that run/partake this list. -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at preston-campbell.com Fri Jan 24 07:26:45 2003 From: brian at preston-campbell.com (Brian) Date: Fri, 24 Jan 2003 07:26:45 -0500 Subject: [nycphp-talk] WebCam In-Reply-To: <200301240659.h0O6wGa7003832@parsec.nyphp.org> References: <200301240659.h0O6wGa7003832@parsec.nyphp.org> Message-ID: <200301240726.45096.brian@preston-campbell.com> At one time I was looking for webcam portals and general cam programs and I could not find many. Hotscripts yielded one webcam portal program -- http://www.hotscripts.com/Detailed/18858.html -- as well as a PHP-Nuke module. There were a couple on Sourceforge but if I recall correctly they were in Perl. It could be an interesting project if anyone would be willing to take it on. Brian On Friday 24 January 2003 01:58 am, louie wrote: > greetings folks, > > > i want to Add a fast loading webcam portal page > to my website. > > (with some kind of moderating option, > on who can join.) <--- this NP i can handle mYself..... > > > first, does anyone familiar with any ready script out there that do so? > > does anyone have any experience with coding for webcam portal? > > fast loading, bugs, tips. > anythin' will be great > > Later ... > louie. > -"mummy,mummy, louie sad Anal !" > > p.s. > cant attend wednesdays meeting, > saw the LWE pics, Nice knowing the faces that run/partake this list. > > > > --- Unsubscribe at http://nyphp.org/list/ --- From zaunere at yahoo.com Fri Jan 24 08:34:24 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Fri, 24 Jan 2003 05:34:24 -0800 (PST) Subject: [nycphp-talk] WebCam In-Reply-To: <200301240659.h0O6wGcr003832@parsec.nyphp.org> Message-ID: <20030124133424.92793.qmail@web12803.mail.yahoo.com> --- louie wrote: > > p.s. > cant attend wednesdays meeting, __Tuesday's__ meeting ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From georgenatalino at yahoo.com Fri Jan 24 10:03:01 2003 From: georgenatalino at yahoo.com (georgenatalino at yahoo.com) Date: Fri, 24 Jan 2003 10:03:01 -0500 Subject: aRTICLE: Security with PHP Superglobals Message-ID: <3E3155A5.D7ECA9DA@yahoo.com> An HTML attachment was scrubbed... URL: From jonbaer at jonbaer.net Fri Jan 24 10:44:30 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 24 Jan 2003 10:44:30 -0500 Subject: [nycphp-talk] aRTICLE: Security with PHP Superglobals References: <200301241502.h0OF2GXv010406@parsec.nyphp.org> Message-ID: <000701c2c3bf$7c629300$6400a8c0@laptop> what is the URL for the article? thanks. From zaunere at yahoo.com Fri Jan 24 10:56:07 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Fri, 24 Jan 2003 07:56:07 -0800 (PST) Subject: [nycphp-talk] mysql_pconnect problems with PHP 4.3.0 anyone? In-Reply-To: <200301230625.h0N6OWmJ084495@parsec.nyphp.org> Message-ID: <20030124155607.84855.qmail@web12806.mail.yahoo.com> --- George Webb wrote: > Hi NYPHPeeps... I am jealous to be out of the area during the LWE... > I hope you are loving it. > > Has anyone noticed any occasional failures with mysql_pconnect() > failing to reconnect using PHP version 4.3.0? I would assume the > desired operation would be for PHP to silently reconnect any persistent > connection which seems to have died. However the following fatal error > (it's hardly a "warning!") occurs somewhat frequently now, with PHP > 4.3.0 (Apache module sapi) and MySQL 3.23.54 on RH Linux 7.1/Apache 1.3.27. > Also, the MySQL server is on a remote machine, so mysql_pconnect() is using > TCP/IP. What's the fatal error? Is it something like what's at: http://bugs.php.net/bug.php?id=21498 > I suppose that dropped connections is not the problem; > rather, the problem is that mysql_pconnect() fails to *reconnect*. > > Of course I don't see why the connection would have dropped; > the server was not restarted and there are no networking failures. Sometimes it's a timeout issue. Take a look at the user comments at http://www.php.net/manual/en/function.mysql-pconnect.php > If I can't figure it out, I guess we'll go back to using > mysql_connect(), wouldn't you agree? Has anyone else noticed anything > similar? The PHP.net manual entry for mysql_pconnect() > ( http://www.php.net/manual/en/function.mysql-pconnect.php ) > shows a user comment suggesting that 4.3.0 might be the problem. Oh, you already did look at the user comments :) I've had pconnects working in production for over a year with no problems, albeit 4.0.6 for the most part. However, I have heard a slight buzz about problems with 4.3.0's pconnect, although I can't say what they are. Unless you have very high traffic, I'd go with mysql_connect() anyway. Hans > > Below is the phpinfo() mysql section. Thanks for your thoughts. > > ---- > mysql > > MySQL Support => enabled > Active Persistent Links => 1 > Active Links => 1 > Client API version => 3.23.54 > MYSQL_MODULE_TYPE => external > MYSQL_SOCKET => /tmp/mysql.sock > MYSQL_INCLUDE => -I/usr/local/mysql/include > MYSQL_LIBS => -L/usr/local/mysql/lib -lmysqlclient > > Directive => Local Value => Master Value > mysql.allow_persistent => On => On > mysql.connect_timeout => -1 => -1 > mysql.default_host => no value => no value > mysql.default_password => no value => no value > mysql.default_port => no value => no value > mysql.default_socket => /tmp/mysql.sock => /tmp/mysql.sock > mysql.default_user => no value => no value > mysql.max_links => Unlimited => Unlimited > mysql.max_persistent => Unlimited => Unlimited > mysql.trace_mode => Off => Off > ---- > > > Best, George. > > George Webb > gw.nyphp at gwprogramming.com > > > --- Unsubscribe at http://nyphp.org/list/ --- > > ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From mikeh at dtev.com Fri Jan 24 16:34:47 2003 From: mikeh at dtev.com (Mike Hjorleifsson) Date: Fri, 24 Jan 2003 13:34:47 -0800 Subject: [nycphp-talk] NYC Freelance rates In-Reply-To: <200301241726.h0OHQ8VR013802@parsec.nyphp.org> Message-ID: <004701c2c3f0$6d816880$1efea8c0@mikepc> I have to agree with Shawn -----Original Message----- From: Shawn Lawyer [mailto:shawn at shawnlawyer.com] Sent: Friday, January 24, 2003 9:26 AM To: NYPHP Talk Subject: Re: [nycphp-talk] NYC Freelance rates understanding we are in a tough economy, i still bill at least $80/ hour. you get what you pay for and someone charging $20/per hour might just be worth $20/per hour. one thing to remember, php is a great language, and can allow someone with little experience to write crappy code that that will still work. what i also find just wheeling and dealing in business is that people trying to get work cheap will say will say much more then , "she is getting scores of resumes where guys are charging less then $20 an hour". it's all a game and if a potential client is going to try to pull that one i often will not even bother with them. i don't need to stress myself out dealing with people who want something for nothing. those types of clients are also the ones who will call you every 5 minutes wanting to change something. my suggestion is to leave that work for the script kiddies because they still have to pay there dues. > > I was just wondering what the going rate for freelance (NYC) PHP > > programmers was? I have a client that says she is getting scores of > > resumes where guys are charging less then $20 an hour. I had assumed > > it was about $40 - $50 these days. there was an artical about this topic in New Architect this month. Maybe that is where you got that from? basically if someone wants to deal with an international firm they'll find out that there getting more than they bargined for. In reverse trywriting for someone india (wrox) if they can get the work done so cheap in there country why are they contracting american programmers. > There has been a lot of useful info in this thread. One thing that I > didn't see mentioned (besides the hordes of unemployed programmers who > are willing to work quite cheaply) is that you are also competing > against overseas people - India, Russia, etc. > I know of one company in NYC who is employing a Bulgarian firm. They > have skilled, competent programmers, and the rate is $10/hour - $10/hour > that the U.S. firm is paying out, so who knows what the Bulgarians are > getting individually for a salary, but it isn't much. shawn --- Unsubscribe at http://nyphp.org/list/ --- From james.byrne2 at ntlworld.com Fri Jan 24 14:57:39 2003 From: james.byrne2 at ntlworld.com (James Byrne) Date: Fri, 24 Jan 2003 19:57:39 +0000 Subject: List of PHP download sites? Message-ID: Hi, Does anyone know of a list of download sites that cater mainly for PHP authors. I have just released a PHP image utility as shareware, and would like to upload it to the most appropriate sites. This is my first post to this list - been lurking for a week or so; hi to all - hope this isn't an inappropriate post? All the best, Jim -- QuicknEasyImage - the quick and easy way to add images (including photographs) to your web pages. Get this 'must have' utility at http://www.quickneasyimage.com From louie at zibi.co.il Fri Jan 24 19:09:07 2003 From: louie at zibi.co.il (louie) Date: Fri, 24 Jan 2003 16:09:07 -0800 Subject: [nycphp-talk] WebCam References: <200301241335.h0ODYQdj008572@parsec.nyphp.org> Message-ID: <008101c2c405$fb06c280$b35efea9@w3j5c4> lol, You say potatoe, I say potato i thought the meeting was on wednesdays, but you say Tuesday's hmm thats even wrost for me. ^_^ i'm sorry, my point was that i'm busy, days got nothin' to do with it. but since you kinda ok, some even say: "But Hans looks so debonair!" -- - Adam http://www.aquick.org/pictures/lwe_2003_day1/IMG_4532.JPG [321K] I'll do my best, to partake. ----- Original Message ----- From: "Hans Zaunere" To: "NYPHP Talk" Sent: Friday, January 24, 2003 5:34 AM Subject: Re: [nycphp-talk] WebCam > > --- louie wrote: > > > > p.s. > > cant attend wednesdays meeting, > > __Tuesday's__ meeting > > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From zaunere at yahoo.com Fri Jan 24 21:08:26 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Fri, 24 Jan 2003 18:08:26 -0800 (PST) Subject: [nycphp-talk] WebCam In-Reply-To: <200301242128.h0OLQxct017886@parsec.nyphp.org> Message-ID: <20030125020826.23242.qmail@web12807.mail.yahoo.com> --- louie wrote: > lol, > > You say potatoe, I say potato > > i thought the meeting was on wednesdays, > but you say Tuesday's hmm thats even wrost for me. ^_^ > i'm sorry, > my point was that i'm busy, days got nothin' to do with it. > but since you kinda ok, > some even say: > > "But Hans looks so debonair!" > -- > - Adam > http://www.aquick.org/pictures/lwe_2003_day1/IMG_4532.JPG [321K] I can see I'm not going to live this one down anytime soon. > I'll do my best, to partake. Hope to see you and everyone else there. It should be a very interesting meeting, especially for those who are interested in some technical details of PHP. Hans > > > > > > ----- Original Message ----- > From: "Hans Zaunere" > To: "NYPHP Talk" > Sent: Friday, January 24, 2003 5:34 AM > Subject: Re: [nycphp-talk] WebCam > > > > > > --- louie wrote: > > > > > > p.s. > > > cant attend wednesdays meeting, > > > > __Tuesday's__ meeting > > > > > > > > ===== > > Hans Zaunere > > President, New York PHP > > http://nyphp.org > > hans at nyphp.org > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From hans at nyphp.org Fri Jan 24 21:34:40 2003 From: hans at nyphp.org (Hans Zaunere) Date: Fri, 24 Jan 2003 18:34:40 -0800 (PST) Subject: LWE Wrap Up and Book Raffle Winners Message-ID: <20030125023440.21094.qmail@web12801.mail.yahoo.com> Good evening, I'd like to thank everyone who stopped by the UNILUG/NYPHP booth. It was great meeting all of you, some old, many new. If our booth at LWE is any indication, PHPCon should be fantastic. After a couple of weeks, we plan to get PHPCon planning underway. There's a lot to be done, but I think with the support we've seen so far, there should be no problem, and if anyone wants to lend a hand, there's tons to be done. And of course a big thanks to Daniel, Daniel, Michael, Adam and Fil for helping out with everything over the last couple of days. We have three book raffle winners: -- David Chan -- Peter Lehrer -- Carl Romano We will bring the books to our next meeting, this Tuesday, 1/28/03 at 6:30pm. If you can't make it Tuesday, please let me know, and we can try to work something out. Best Regards, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From hans at nyphp.org Sat Jan 25 16:18:46 2003 From: hans at nyphp.org (Hans Zaunere) Date: Sat, 25 Jan 2003 13:18:46 -0800 (PST) Subject: get/setitimer() Functionality Message-ID: <20030125211846.37663.qmail@web12805.mail.yahoo.com> Hi folks, I'm playing with some daemonized scripts (fork(),setsid(),fork()) and could use the functionality of setitimer()/getitimer() system calls. This is [obviously] for CLI scripts. I haven't seen any indication of this functionality in php.net's function list, and am wondering if I've just missed this, or if anyone has any ideas on implementing this another way. Thanks, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From jkapron at NewAgeWeb.com Sun Jan 26 03:03:23 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Sun, 26 Jan 2003 03:03:23 -0500 Subject: Regular Expressions + URL Message-ID: <003301c2c511$681de220$de01a8c0@duron.lan.newageweb.com> I'm trying to get rid of a specific name=value pair from a URL (query string). In this case it's baked=any_value. Note that it may appear in different context and removing additional preceding or trailing characters (& and/or ?) may be required. Here are the 4 different cases: ...?baked=any_value&... (as the first but not only name=value pair) ...?baked=any_value (as the only name=value pair) ...&baked=any_value&... (between other name=value pairs) ...&baked=any_value (as the last of many name=value pairs) I solved this with these 3 lines of code: $uri = ereg_replace('&?baked=[^&]*','',$uri); // ? == {,1} $uri = ereg_replace('\\?&','?',$uri); $uri = ereg_replace('\\?$','',$uri); I was just wondering wether there is a shorter way (one preg_replace() perhaps?). thanks, Jerry -- 42.7% of all statistics are made up on the spot. - From rainman at deroo.net Sun Jan 26 09:07:46 2003 From: rainman at deroo.net (The Rain Maker) Date: Sun, 26 Jan 2003 09:07:46 -0500 Subject: [nycphp-talk] Regular Expressions + URL In-Reply-To: <200301260801.h0Q81AVD065750@parsec.nyphp.org> Message-ID: <8BCC17FF-3137-11D7-B05A-0050E4E0697B@deroo.net> On Sunday, Jan 26, 2003, at 03:01 America/New_York, Jerry Kapron wrote: > I'm trying to get rid of a specific name=value pair from a URL (query > string). > I solved this with these 3 lines of code: > > $uri = ereg_replace('&?baked=[^&]*','',$uri); // ? == {,1} > $uri = ereg_replace('\\?&','?',$uri); > $uri = ereg_replace('\\?$','',$uri); > > I was just wondering wether there is a shorter way (one preg_replace() > perhaps?). Yup, there sure is... $uri = preg_replace("/[?&]baked=[^&]+/", '', $uri); And you are good to go. .r --- Raymond DeRoo -- Senior Partner Support Services -- (203) 952-3900 www.supserv.com -- rderoo at supserv.com From jkapron at NewAgeWeb.com Sun Jan 26 12:38:56 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Sun, 26 Jan 2003 12:38:56 -0500 Subject: [nycphp-talk] Regular Expressions + URL Message-ID: <005c01c2c561$cdef3220$de01a8c0@duron.lan.newageweb.com> >On Sunday, Jan 26, 2003, at 03:01 Jerry Kapron wrote: >> I solved this with these 3 lines of code: >> >> $uri = ereg_replace('&?baked=[^&]*','',$uri); // ? == {,1} >> $uri = ereg_replace('\\?&','?',$uri); >> $uri = ereg_replace('\\?$','',$uri); >> >> I was just wondering wether there is a shorter way (one preg_replace() >> perhaps?). > >Yup, there sure is... > >$uri = preg_replace("/[?&]baked=[^&]+/", '', $uri); > >And you are good to go. > >r Ray, This wouldn't work. Note that if baked=any_value was the first of many name=value pairs in a query string, your preg_replace() would remove the '?' (that's not good). Jerry From chun_lam at hotmail.com Sun Jan 26 16:32:55 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Sun, 26 Jan 2003 16:32:55 -0500 Subject: [nycphp-talk] Logfile analysis Message-ID: Do you open the mail from Bradley Baumann It contains a virus. Matthew ----Original Message Follows---- From: Hans Zaunere Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] Logfile analysis Date: Mon, 20 Jan 2003 16:10:36 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc4-f13.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 20 Jan 2003 13:11:03 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0KLAaLh023458for ; Mon, 20 Jan 2003 16:11:03 -0500 (EST)(envelope-from null at nyphp.org) Message-Id: <200301202111.h0KLAaLh023458 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 20 Jan 2003 21:11:03.0882 (UTC) FILETIME=[70D562A0:01C2C0C8] --- "D. J. Waletzky" wrote: > Does anyone know of a good Apache logfile analysis program that recognizes > the difference between GET query pages (like "page.php?section=about" and > "page.php?section=news")? I have a large site we're about to launch, and we > > need to be able to distinguish between template-driven pages. Hopefully, I > won't have to write my own grep-based solution! I've never noted which analyzers do what you speak of, but my favorite is Webalizer (http://www.mrunix.net/webalizer/) and I've worked with Analog a bit (http://www.analog.cx/). Some other possibly useful links: http://www.phpbuilder.com/columns/hampton20010904.php3 http://www.hotscripts.com/Tools_and_Utilities/Log_Analyzers/ http://dmoz.org/Computers/Software/Internet/Site_Management/Log_Analysis/Related_Utilities/ [ from http://www.google.com/search?q=apache+log+file+analysis ] Best, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From bradley at bestweb.net Sun Jan 26 16:39:22 2003 From: bradley at bestweb.net (Bradley Baumann) Date: Sun, 26 Jan 2003 16:39:22 -0500 Subject: [nycphp-talk] Logfile analysis References: <200301262133.h0QLWxUX078332@parsec.nyphp.org> Message-ID: <000b01c2c583$6449eff0$0300a8c0@prophxp> I believe my computer is infected with some worm, do NOT open that email or run the attachment - I'm working on removing whatever it is that is sending the emails right now. Thank you, and I apologize for the incontinence. -Bradley ----- Original Message ----- From: "CHUN-YIU LAM" To: "NYPHP Talk" Sent: Sunday, January 26, 2003 4:32 PM Subject: Re: [nycphp-talk] Logfile analysis > Do you open the mail from > > Bradley Baumann > > It contains a virus. > > Matthew > > ----Original Message Follows---- > From: Hans Zaunere > Reply-To: talk at nyphp.org > To: NYPHP Talk > Subject: Re: [nycphp-talk] Logfile analysis > Date: Mon, 20 Jan 2003 16:10:36 -0500 > Received: from parsec.nyphp.org ([66.250.131.26]) by > mc4-f13.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 20 Jan > 2003 13:11:03 -0800 > Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by > parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0KLAaLh023458for > ; Mon, 20 Jan 2003 16:11:03 -0500 (EST)(envelope-from > null at nyphp.org) > Message-Id: <200301202111.h0KLAaLh023458 at parsec.nyphp.org> > X-Paralist-Archived: > X-List-Software: Paralist 0.6 > List-ID: > List-Owner: > List-Archive: > List-Subscribe: > List-Unsubscribe: > Organization: New York PHP > X-Mailer: Paramail 0.5 > Return-Path: null at nyphp.org > X-OriginalArrivalTime: 20 Jan 2003 21:11:03.0882 (UTC) > FILETIME=[70D562A0:01C2C0C8] > > --- "D. J. Waletzky" wrote: > > Does anyone know of a good Apache logfile analysis program that > recognizes > > the difference between GET query pages (like "page.php?section=about" and > > "page.php?section=news")? I have a large site we're about to launch, and > we > > > > need to be able to distinguish between template-driven pages. Hopefully, > I > > won't have to write my own grep-based solution! > > I've never noted which analyzers do what you speak of, but my favorite is > Webalizer (http://www.mrunix.net/webalizer/) and I've worked with Analog a > bit (http://www.analog.cx/). Some other possibly useful links: > > http://www.phpbuilder.com/columns/hampton20010904.php3 > http://www.hotscripts.com/Tools_and_Utilities/Log_Analyzers/ > http://dmoz.org/Computers/Software/Internet/Site_Management/Log_Analysis/Rel ated_Utilities/ > > [ from http://www.google.com/search?q=apache+log+file+analysis ] > > Best, > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > > > > _________________________________________________________________ > The new MSN 8: advanced junk mail protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From chun_lam at hotmail.com Sun Jan 26 16:42:00 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Sun, 26 Jan 2003 16:42:00 -0500 Subject: [nycphp-talk] NYPHP Presents: January's Meeting on Enterprise PHP Message-ID: Sorry I meant not to open the Bradley mail. It contains a virus. Matthew _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From hans at nyphp.org Sun Jan 26 16:48:42 2003 From: hans at nyphp.org (Hans Zaunere) Date: Sun, 26 Jan 2003 13:48:42 -0800 (PST) Subject: Virus Clarification Message-ID: <20030126214842.78567.qmail@web12806.mail.yahoo.com> Just to clarify... The virus was rejected by the list, and hasn't been distributed to list subscribers. However, if you were in Bradley's address book (as I was) you were sent the message. Then again, I hope people don't run .exe files from mail attachments anyway. Best, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From bradley at bestweb.net Sun Jan 26 18:44:21 2003 From: bradley at bestweb.net (Bradley Baumann) Date: Sun, 26 Jan 2003 18:44:21 -0500 Subject: [nycphp-talk] Virus Clarification References: <200301262148.h0QLmkUX081020@parsec.nyphp.org> Message-ID: <003801c2c594$d9dac4e0$0300a8c0@prophxp> My apologies Hans -- I believe I've removed the virus. Sorry for any inconvenience I may have caused you. ...my girlfriend is never using this machine again...hermph. Heh. Sorry, again. -Brad ----- Original Message ----- From: "Hans Zaunere" To: "NYPHP Talk" Sent: Sunday, January 26, 2003 4:48 PM Subject: [nycphp-talk] Virus Clarification > > Just to clarify... > > The virus was rejected by the list, and hasn't been distributed to list > subscribers. However, if you were in Bradley's address book (as I was) you > were sent the message. Then again, I hope people don't run .exe files from > mail attachments anyway. > > Best, > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From brian at preston-campbell.com Sun Jan 26 19:06:32 2003 From: brian at preston-campbell.com (Brian) Date: Sun, 26 Jan 2003 19:06:32 -0500 Subject: [nycphp-talk] Virus Clarification In-Reply-To: <200301262149.h0QLmkaB081020@parsec.nyphp.org> References: <200301262149.h0QLmkaB081020@parsec.nyphp.org> Message-ID: <200301261906.32082.brian@preston-campbell.com> It appears to me that I received it from the list, I highly doubt that I was in Bradley's address book. No fear, though, Linux will protect me from .exe viruses -- for now at least. Brian On Sunday 26 January 2003 04:48 pm, Hans Zaunere wrote: > Just to clarify... > > The virus was rejected by the list, and hasn't been distributed to list > subscribers. However, if you were in Bradley's address book (as I was) you > were sent the message. Then again, I hope people don't run .exe files from > mail attachments anyway. > > Best, > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- From zaunere at yahoo.com Sun Jan 26 19:19:00 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Sun, 26 Jan 2003 16:19:00 -0800 (PST) Subject: [nycphp-talk] Virus Clarification In-Reply-To: <200301270008.h0R07Ecv084947@parsec.nyphp.org> Message-ID: <20030127001900.72905.qmail@web12804.mail.yahoo.com> --- Brian wrote: > It appears to me that I received it from the list, I highly doubt that I > was in Bradley's address book. I received the mail with the [nycphp-talk] signature as well, however it didn't pass thru NYPHP.org's mail servers. Often, email clients will collect addresses that have been sent to or recieved from. This, I guess, is where the virus would get most of it's addresses. Bradley: No harm done. H > No fear, though, Linux will protect me from > .exe > viruses -- for now at least. > > Brian > > On Sunday 26 January 2003 04:48 pm, Hans Zaunere wrote: > > Just to clarify... > > > > The virus was rejected by the list, and hasn't been distributed to list > > subscribers. However, if you were in Bradley's address book (as I was) > you > > were sent the message. Then again, I hope people don't run .exe files > from > > mail attachments anyway. > > > > Best, > > > > > > ===== > > Hans Zaunere > > President, New York PHP > > http://nyphp.org > > hans at nyphp.org > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From tech_learner at yahoo.com Mon Jan 27 02:05:31 2003 From: tech_learner at yahoo.com (Tracy) Date: Sun, 26 Jan 2003 23:05:31 -0800 (PST) Subject: [nycphp-talk] Fw: I need my PHP script to call a TCL proc In-Reply-To: <200301212342.h0LNfNmv059481@parsec.nyphp.org> Message-ID: <20030127070531.56861.qmail@web14307.mail.yahoo.com> No reply to tis mail and my mail too.... If u can call a tcl prog from a phpscript, can u also call c programs? like i already posted, does any one know how to go about cgi programming in php? i dont have enough time to go thru the entire process of installing perl, conf apache, learning to prog in perl n then the cgi .... any answers out there? Tracy Phil Powell wrote: ----- Original Message ----- From: To: Sent: Tuesday, January 21, 2003 5:36 PM Subject: I need my PHP script to call a TCL proc > From: soazine at erols.com (Phil Powell) > Newsgroups: comp.lang.tcl,comp.lang.php > Subject: I need my PHP script to call a TCL proc > NNTP-Posting-Host: 65.201.150.91 > Message-ID: <1cdca2a7.0301211436.3950d68a at posting.google.com> > > It's either that my PHP script call a working TCL proc that converts > all string text that looks like a URL ("http://...") into a hyperlink, > or does someone have a PHP equivalent to do it? My PHP function > VALIDATE_URL fails to do any conversion in its regexp, however, the > TCL proc works every time, and the matching pattern is nearly > identical in both! > > TCL: > > proc VALIDATE_URL {contents} { > regsub -all "\\\ " $contents " " contents > regsub -all {\\.{2,}} $contents {. .} contents > regsub -all {(http://([a-zA-Z0-9_\\-]+\\.)+(/[a-zA-Z0-9_\\-\\.\\~\\^,%\\+]+)*[^<\\(\\)> > ]+)} $contents "> style='text-decoration:none'>\\\\1" contents > regsub -all {\\. \\.} $contents {..} contents > return $contents > } > > PHP: > > function VALIDATE_URL($contents) { > $contents = preg_replace("/\\\ /e", ' ', $contents); > $contents = preg_replace('/\\.{2,}/e', '. .', $contents); > $contents = preg_replace('/http[s]?:\\/\\/\\([a-zA-Z0-9_\\-]+\\.\\)+\\(\\/[a-zA-Z0-9_\\-\\.\\~\\^,%\\ +]+\\)*[^<\\\\(\\\\)> > ]+\\)/ei', "\\\\\\\\1", $contents); > return preg_replace('/\\. \\./e', '..', $contents); > } > > So who wins, TCL or PHP? > > Thanx > Phil --- Unsubscribe at http://nyphp.org/list/ --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at nyphp.org Mon Jan 27 10:29:26 2003 From: hans at nyphp.org (Hans Zaunere) Date: Mon, 27 Jan 2003 07:29:26 -0800 (PST) Subject: [nycphp-talk] ADT alpha 1 In-Reply-To: <200301211628.h0LGRbmH049284@parsec.nyphp.org> Message-ID: <20030127152926.83589.qmail@web12805.mail.yahoo.com> Hey Sterling, --- Sterling Hughes wrote: > > ADT alpha 1 is available! ADT is a PHP extension that provides a > collection of Abstract Data Types (ADT), including trees, graphs, > queues, heaps, sets and stacks. Have you considered implementing these using shared memory and semaphores - or at least offering that as an option during initialization? I've written some PHP (http://phpnow.net/src/pVar.inc.phps) to implement application variables via shared memory, but it really needs to be redone in C, since PHP's SHM/SEM functionality isn't all there. But with the assortment of data types ADT offers, if it was in shared memory, it'd be great. Pleasure meeting you at LWE by the way. Hans From hans at nyphp.org Mon Jan 27 10:38:39 2003 From: hans at nyphp.org (Hans Zaunere) Date: Mon, 27 Jan 2003 07:38:39 -0800 (PST) Subject: Fwd: MySQL Newsletter: January 2003 Message-ID: <20030127153839.82968.qmail@web12807.mail.yahoo.com> I'm not sure how many people are aware of MySQL's newsletter, but I always find it useful. It's also online at http://www.mysql.com/newsletter/ and includes a great article on query caches and new features in MySQL 4 Hans --- MySQL AB wrote: > Date: Mon, 27 Jan 2003 05:11:24 +0100 > To: hans at nyphp.org > Subject: MySQL Newsletter: January 2003 > From: MySQL AB > > MySQL Newsletter > January 2003 > newsletter at mysql.com > > -------------------------------------------------- > > Welcome to MySQL Newsletter > > MySQL Newsletter is a convenient channel in keeping you > informed of the latest MySQL news. MySQL newsletter > is sent only to those, who have opted-in to receive > it either at registering at mysql.com or when using > the online forms at mysql.com. If you don't want to > receive it -or- think that you've received it in > error, please let us know. > > To remove yourself, simply reply to this note and > type "unsubscribe" in the subject field -or- go to > http://www.mysql.com/login.php and edit your > profile information. > > Personalized Newsletter > > The newsletter you are reading is prepared specially > for you based on the categories you have chosen to > receive in your profile. This might mean that there > are actually more articles in the full newsletter. > You can read the full newsletter on our website at > http://www.mysql.com/newsletter/2003-01/ > > Articles in this newsletter: > > PRODUCTS > * MySQL 4.0.9 (Gamma) is released > * MyODBC 3.51.05 (gamma) is released > * MySQL 3.23.55 is released > FEATURES > * Tuning MySQL Server 4.0 Query cache. > TRAINING > * Upcoming MySQL Training courses > PARTNER CORNER > * The Kompany partners with MySQL AB to offer Rekall Pro for MySQL > LATEST NEWS > * Latest MySQL News > > -------------------------------------------------- > PRODUCTS > > MySQL 4.0.9 (Gamma) is released > > MySQL 4.0.9, a new version of the world's most > popular Open Source Database, has been released. > It is now available in source and binary form for > a number of platforms from our download pages at > http://www.mysql.com/downloads/ > and mirror sites. > > Note that all mirrors may not be up to date; If > you can't find this version on some mirror, please > retry later or try another mirror. > > This is a new gamma release, fixing some recently > discovered bugs. > > You can see the changes for 4.0.9 at the changelog > at > http://www.mysql.com/doc/en/News-4.0.9.html > > MyODBC 3.51.05 (gamma) is released > > As you might have already noticed from our web > site, the MyODBC 3.51.05 - Gamma is released. It > is now available in source and binary form for a > number of platforms from our download pages at > http://www.mysql.com/downloads/api-myodbc-3.51.html > > and mirror sites. > > This is the gamma release of MyODBC 3.51.05. This > should be the final release in the development > series before making the stable announcement > unless if there is any critical bugs from this > version. > > OpenOffice users must upgrade to this version on > all platforms, as this > includes number of fixes, and this version is > pre-tested from the Open > Office team before the release. > > So, please test this, and let us know the status > back. > > Here is the list of changes: > > -- Fix for the thread-safe library core dumps when > the driver is built with the debug options. > -- Fix for OpenOffice to return valid list of > catalog names SQLTables along with a valid catalog > name. > -- Fixed SQLTablePrivileges and > SQLColumnPrivileges to return each > privilege type in a individual rows. > -- Fixed the time conversion format error from > SQL_TIME_STRUCT. > (Thanks to Ocke Janssen for > the above 3 bugs from OpenOffice team). > -- Fixed SQLSpecialColumns coredump on HP-UX > (threaded library) > -- Fixed SQLGetTypeInfo to return individual rows > for auto_increment > status for all numeric types. (Request from Gerry > Sweeney ) > -- Fixed to return an error when the conversion is > from SQL_C_NUMERIC as the driver is not capable to > handle SQL_NUMERIC_STRUCT conversion due to lack > of descriptors support. (Request from Michael > Thomas from Microsoft > ODBC team) > -- Added missed ROWS_FETCH_PTR status to SQLFetch > and SQLExtendedFetch as that of SQLFetchScroll > along with PARAMS_PROCESSED_PTR. > -- Fixed to not to set the default attributes for > the new DSN when the attributes are set through > the config APIs (Windows specific). > -- Added to return the DRIVER name when there is > no DSN is specified (Unix only fix). > -- Support for the new autoconf tools along with > few new configuration > options. > -- Lot of cleanups to configure script to work on > all Unix platforms > along with gcc 3.x compatibility. > -- Added distribution utility scripts under > scripts sub-directory. > * Binary distribution support for all platforms > * Snapshot source distribution > -- Minor fix-ups to work with native compilers. > > Recommended upgrade to earlier versions on all > platforms. > > For more information about MyODBC 3.51.05, refer > to the following > (updated): > > FAQ : > http://www.mysql.com/products/myodbc/faq_toc.html > > (updated with new style, with a split on > individual chapters). > Manual : > http://www.mysql.com/products/myodbc/manual_toc.html > > Release notes, Changelog and downloads: > http://www.mysql.com/downloads/api-myodbc-3.51.html > > > > MySQL 3.23.55 is released > > MySQL 3.23.55, a new version of the popular Open > Source Database, has been released. It is now > available in source and binary form for a number > of platforms from our download pages at > http://www.mysql.com/downloads/ > and mirror sites. > > Note that not all mirror sites may be up to date > at this point of time - if you can't find this > version on some mirror, please try again later or > choose another download site. > > This is a bugfix release for the current stable > tree. Users who use MySQL in an untrusted > multi-user environment should consider upgrading > to this version, which also fixes a bug that > enabled valid local users to crash mysqld by using > a specially modified mysql client application. > > You can see the changes for 3.23.55 at the > changelog at > http://www.mysql.com/doc/en/News-3.23.55.html > > -------------------------------------------------- > FEATURES > > Tuning MySQL Server 4.0 Query cache. > > Peter Zaitsev > > It is always a challenging job to tune database > for the best performance. There are plenty of > options, which you can set to provide the balance, > which provides the best performance for exactly > your application. MySQL 4.0 adds more tools to > this job by introducing Query Cache, which can > also be tuned. > > What is the MySQL Query Cache? > Query Cache is an intelligent MySQL feature, which > allows to greatly improving the speed of the > frequently executed queries by caching query > response and returning it to the client instead of > real query execution. > > In order to adjust Query Cache settings you need > to understand how does the query cache work. Let > us explain this briefly. As the query arrives to > MySQL server it performs a textual comparison with > the queries in the Query Cache. This means "SELECT > * FROM a" and "Select * From a" will be recognized > as different queries. If a query matches one > stored in the cache, the cached result is > returned. If not, then the query is executed and > if parameters allow the query result is stored in > the query cache. When a table is modified, queries > stored in the cache using the modified table, are > removed from query cache. > > There are 3 main variables, which can be used to > tune Query Cache settings. They are > query_cache_size, query_cache_limit and > query_cache_type. > > query_cache_size: > Setting proper query_cache_size is the most > complex task. It sets the amount of memory used > for the query cache. One should find the right > balance between the benefit you get from query > cache and that non-cached queries slow down a bit, > basicly due to less amount of memory available for > other caches and buffers. Only benchmarking can > point out the exactly best balance, but there are > some guidelines, how to set this variable. Basic > idea is that the more benefit query cache > potentially gives you, the more memory it might be > worth to allocate for it. Qcache_inserts will show > you how many queries are added to query cache > while qcache_hits will show you how many query > results are taken directly from the query cache > instead of executing them. You should compare > qcache_hits value to total number of your select > queries to see what is your current hit rate. You > may increase or degrease query_cache_size to find > the value, which provides best performance for > you. Note that as the query cache content gets > invalidated with update queries, amount of memory > which query cache can use is not unbound. > Qcache_free_memory shows amount of free memory in > query cache, which is not used at the moment. If > this value stays constantly high during the load > it might be good idea to decrease the query cache > size, i.e. to free some memory from the query > cache to other caches and buffers. > > query_cache_limit: > This variable sets the maximum result size, which > would be stored in the query cache. The reason to > have this variable is to limit queries having very > large result sets to overwrite all the queries in > the query set. The way to set this variable is to > determine, what is the largest result set size of > the queries you wish to cache? In most cases you > can find the answer easily. In some cases there > are queries of any possible size. In such case you > might want to compare benefit from caching this > large query with benefit of having in the cache > smaller queries, the large query overwrites to > make the decision. Examining cache query hit rate > is also a good help here. A rule of thumb to start > tuning the parameter might be setting > query_cache_limit 1/100 to 1/10 of > query_cache_size. > > query_cache_type: > There are two ways how query cache can be enabled. > Setting this variable "on" will attempt to cache > all select queries. It is a good setting if you do > not want to make any changes in your application, > but you want it to start using query cache. Thus > this setting allows you later to mark queries you > do not want to be cached with SQL_NO_CACHE. > Setting query_cache_type value to "DEMAND" is a > good solution if in your application most of the > queries will not benefit from the caching, as they > never repeat or result is invalidated before the > query is repeated. With this option you can select > those queries, which will benefit from caching by > using the SQL_CACHE option. > > -------------------------------------------------- > TRAINING > > Upcoming MySQL Training courses > > MySQL AB is holding numerous training courses in > the following countries: USA, Germany, Canada, > France, UK, Australia, and Sweden. Check out dates > and locations at > http://www.mysql.com/training/ > > -------------------------------------------------- > PARTNER CORNER > > The Kompany partners with MySQL AB to offer Rekall > Pro for MySQL > > TheKompany provides a line of powerful, > multi-platform tools for developers and desktop > users, a number of which are database centric such > as Rekall and DataArchitect, which is what led to > this partnership. Rekall is a RAD DBMS centric > tool for Linux, Windows and Mac OS X (to be > released soon). Rekall provides a full compliment > of widgets and tools for rapidly prototyping, > creating and deploying applications on top of > MySQL. Scripting on widgets and events is > accomplished using the popular Python object > oriented scripting language for which there is > even an embedded debugger. DataArchitect is the > emerging enterprise tool for designing databases, > reverse engineering and creating ERD's, at all > levels of an organization. > Learn more and order at: > http://www.thekompany.com/products/dataarchitect/ > > > -------------------------------------------------- > LATEST NEWS > > Latest MySQL News > > MySQL Adds Subselects, Upgrades Performance and > Security > http://www.mysql.com/press/release_2003_05.html > > MySQL AB Hosts First MySQL Users Conference & > Expo > http://www.mysql.com/press/release_2003_04.html > > MySQL Named "Swedish IT Product of the Year" > http://www.mysql.com/press/release_2003_03.html > > MySQL Database Available on IBM eServer zSeries > http://www.mysql.com/press/release_2003_02.html > > Enhanced MySQL Software for Mac OS X Available > from MySQL AB > http://www.mysql.com/press/release_2002_18.html > > Westone Amplifies Database Performance with > MySQL > http://www.mysql.com/press/user_stories/westone.html > > MySQL Releases Database Upgrade with Major > Security, Stability Enhancements > http://www.mysql.com/press/release_2002_17.html > > -------------------------------------------------- > > UNSUBSCRIBING & FEEDBACK > > You can send us queries and give us feedback at > http://www.mysql.com/feedback/ > You can unsubscribe from this newsletter from your profile page: > http://www.mysql.com/login.php > or by replying to this e-mail with subject 'unsubscribe' > > ABOUT THE NEWSLETTER > > Please read http://www.mysql.com/newsletter/ > > ________________________________________________ > Copyright ? 2002 MySQL AB. All rights reserved. > You are free to distribute this newsletter, > as long as you don't make any changes. > From zaunere at yahoo.com Mon Jan 27 10:47:49 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Mon, 27 Jan 2003 07:47:49 -0800 (PST) Subject: [nycphp-talk] Fw: I need my PHP script to call a TCL proc In-Reply-To: <200301270706.h0R75Ybh092729@parsec.nyphp.org> Message-ID: <20030127154749.14557.qmail@web12806.mail.yahoo.com> --- Tracy wrote: > > No reply to tis mail and my mail too.... > If u can call a tcl prog from a phpscript, can u also call c programs? http://www.php.net/manual/en/ref.exec.php Just be careful with cleaning any user data that you pass to the shell - people can do some real nasty things, and in fact, I never pass things directly to a command line, even with proper escaping. I generally push it through some strcmp() or switch() statements, so I know exactly what's up. > like i already posted, does any one know how to go about cgi programming in > php? Sure.. just like you would in Perl or anything else. Compile PHP with --enable-cgi (although you should double-check ./configure --help that I'm correct) and off you go. There's loads of documentation on the web concerning CGI techniques, etc., of which I'm not familiar with. I always use mod_php, which I recommend if the environment permits. > Phil Powell wrote: > > It's either that my PHP script call a working TCL proc that converts > > all string text that looks like a URL ("http://...") into a hyperlink, > > or does someone have a PHP equivalent to do it? My PHP function > > VALIDATE_URL fails to do any conversion in its regexp, however, the > > TCL proc works every time, and the matching pattern is nearly > > identical in both! > > > > TCL: > > > > proc VALIDATE_URL {contents} { > > regsub -all "\\\ " $contents " > " contents > > regsub -all {\\.{2,}} $contents {. .} contents > > regsub -all > {(http://([a-zA-Z0-9_\\-]+\\.)+(/[a-zA-Z0-9_\\-\\.\\~\\^,%\\+]+)*[^<\\(\\)> > > ]+)} $contents "> style='text-decoration:none'>\\\\1" contents > > regsub -all {\\. \\.} $contents {..} contents > > return $contents > > } > > > > PHP: > > > > function VALIDATE_URL($contents) { > > $contents = preg_replace("/\\\ /e", ' > ', $contents); > > $contents = preg_replace('/\\.{2,}/e', '. .', $contents); > > $contents = > preg_replace('/http[s]?:\\/\\/\\([a-zA-Z0-9_\\-]+\\.\\)+\\(\\/[a-zA-Z0-9_\\-\\.\\~\\^,%\\ > +]+\\)*[^<\\\\(\\\\)> > > ]+\\)/ei', "\\\\\\\\1", $contents); > > return preg_replace('/\\. \\./e', '..', $contents); > > } > > > > So who wins, TCL or PHP? Whew, no idea. Icky regular expressions, but see link above for external program execution. ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From sterling at bumblebury.com Mon Jan 27 10:37:25 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 27 Jan 2003 10:37:25 -0500 Subject: [nycphp-talk] ADT alpha 1 In-Reply-To: <200301271530.h0RFTTYn000138@parsec.nyphp.org> References: <200301271530.h0RFTTYn000138@parsec.nyphp.org> Message-ID: <1043681845.795.175.camel@hasele> On Mon, 2003-01-27 at 10:29, Hans Zaunere wrote: > Hey Sterling, > > --- Sterling Hughes wrote: > > > > ADT alpha 1 is available! ADT is a PHP extension that provides a > > collection of Abstract Data Types (ADT), including trees, graphs, > > queues, heaps, sets and stacks. > > Have you considered implementing these using shared memory and semaphores - > or at least offering that as an option during initialization? I've written > some PHP (http://phpnow.net/src/pVar.inc.phps) to implement application > variables via shared memory, but it really needs to be redone in C, since > PHP's SHM/SEM functionality isn't all there. But with the assortment of data > types ADT offers, if it was in shared memory, it'd be great. > I'm planning on implementing a method of node (element) proxying, so you initialize a structure and specify handlers, which get called when you access elements. This will allow for SHM, DB or whatever, storage. > Pleasure meeting you at LWE by the way. > Same here. -Sterling -- "First they ignore you, then they laugh at you, then they fight you, then you win." - Gandhi From winston at xylophage.com Mon Jan 27 15:44:20 2003 From: winston at xylophage.com (Winston Churchill-Joell) Date: Mon, 27 Jan 2003 15:44:20 -0500 Subject: LAMP talking to an AS400 Message-ID: Has anyone ever tried connecting to an IBM AS400 (running OS400, not AIX) with PHP? I know PHP has DB2 support, but my network administrator is skeptical of success. We're stuck with this dinosaur (the IBM, not the network admin - he's a life saver) for another couple of years, so we need to find a way to work with it. Thanks in advance for any advice or ideas, Winston From asmny at hotmail.com Mon Jan 27 15:48:06 2003 From: asmny at hotmail.com (A. Morales) Date: Mon, 27 Jan 2003 15:48:06 -0500 Subject: [nycphp-talk] LAMP talking to an AS400 Message-ID: Client Access comes with ODBC to enable queries. _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From fields at surgam.net Mon Jan 27 15:52:01 2003 From: fields at surgam.net (Adam Fields) Date: Mon, 27 Jan 2003 15:52:01 -0500 Subject: [nycphp-talk] LAMP talking to an AS400 In-Reply-To: <200301272046.h0RKiPZr007475@parsec.nyphp.org> References: <200301272046.h0RKiPZr007475@parsec.nyphp.org> Message-ID: <20030127205201.GH30211@eye.surgam.net> On Mon, Jan 27, 2003 at 03:44:25PM -0500, Winston Churchill-Joell wrote: > Has anyone ever tried connecting to an IBM AS400 (running OS400, not AIX) > with PHP? I know PHP has DB2 support, but my network administrator is > skeptical of success. We're stuck with this dinosaur (the IBM, not the > network admin - he's a life saver) for another couple of years, so we need > to find a way to work with it. > > Thanks in advance for any advice or ideas, This process is described in detail here: http://dns.celleweb.de/db2/db2howto.eng.html -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From zaunere at yahoo.com Mon Jan 27 16:08:53 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Mon, 27 Jan 2003 13:08:53 -0800 (PST) Subject: [nycphp-talk] ADT alpha 1 In-Reply-To: <200301271549.h0RFn5bh002313@parsec.nyphp.org> Message-ID: <20030127210853.30766.qmail@web12808.mail.yahoo.com> --- Sterling Hughes wrote: > On Mon, 2003-01-27 at 10:29, Hans Zaunere wrote: > > Hey Sterling, > > > > --- Sterling Hughes wrote: > > > > > > ADT alpha 1 is available! ADT is a PHP extension that provides a > > > collection of Abstract Data Types (ADT), including trees, graphs, > > > queues, heaps, sets and stacks. > > > > Have you considered implementing these using shared memory and semaphores > - > > or at least offering that as an option during initialization? I've > written > > some PHP (http://phpnow.net/src/pVar.inc.phps) to implement application > > variables via shared memory, but it really needs to be redone in C, since > > PHP's SHM/SEM functionality isn't all there. But with the assortment of > data > > types ADT offers, if it was in shared memory, it'd be great. > > > > I'm planning on implementing a method of node (element) proxying, so you > initialize a structure and specify handlers, which get called when you > access elements. This will allow for SHM, DB or whatever, storage. Wow, that'll be exactly what I need :) I'll be anxious to work on it when I get some time. Hans From hans at nyphp.org Tue Jan 28 10:09:47 2003 From: hans at nyphp.org (Hans Zaunere) Date: Tue, 28 Jan 2003 07:09:47 -0800 (PST) Subject: Tonight at 6:30 NYPHP Presents: PHP in the Enterprise Message-ID: <20030128150947.47779.qmail@web12806.mail.yahoo.com> -- Complete Details at http://nyphp.org -- -- Please RSVP at http://nyphp.org/rsvp -- This will be a packed meeting, with a lot of material to cover. Please arrive on time and RSVP. New York PHP Presents... January 28th, 2003 @ 6:30pm at Digital Pulp, Inc. "Building a Scalable Architecture with PHP" "High Performance PHP" PHP Job Opportunities Presented by Community Connect's CTO Mike Montero and Chief Architect Dan Cowgill, these talks are for those interested in PHP internals, performance and enterprise PHP development. Few know PHP like these guys, so you won't want to miss their insight. And then, join Community Connect Recruiter David Dankin to explore the PHP job market and check out available positions at CC. What a great way to start a year! One important note, however, is that NYPHP monthly meetings have been moved to the 4th Tuesday of the month (1/28/03). As always this meeting is free and open to the public, with complete meeting and location details at http://nyphp.org - and please be sure to RSVP at http://nyphp.org/rsvp so we can prepare enough seating and drinks (thanks to Oddcast). I'd also like to point out NYPHP's new job board. It's still developing, but going strong. Check it out at http://jobs.nyphp.org and send your available positions to jobs-submit at nyphp.org. Thank you, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From winston at xylophage.com Tue Jan 28 12:34:39 2003 From: winston at xylophage.com (Winston Churchill-Joell) Date: Tue, 28 Jan 2003 12:34:39 -0500 Subject: [nycphp-talk] LAMP talking to an AS400 In-Reply-To: <200301272048.h0RKm9bP008167@parsec.nyphp.org> Message-ID: Based on your response, I went to the IBM site, found the information and a link to download a free Linux driver. Thanks to your advice we now have a PHP test page on our Linux server making successful queries to our AS400. As my knowledge and experience increases, I hope to give back to this list as much as I get from it. Thanks again, Winston On 1/27/03 3:48 PM, "A. Morales" wrote: > Client Access comes with ODBC to enable queries. > > > > > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From drodriguez1 at mac.com Tue Jan 28 16:20:03 2003 From: drodriguez1 at mac.com (e_dave) Date: Tue, 28 Jan 2003 16:20:03 -0500 Subject: Sessions Message-ID: <43F4185A-3306-11D7-A89D-000A27D8C444@mac.com> Can someone point me in the right direction? I am writing what I think is a fairly simple session authentication script, but I keep getting the following error: Warning : Cannot send session cache limiter - headers already sent (output started at /Library/WebServer/Documents/DSMetro/header.php:16) in /Library/WebServer/Documents/DSMetro/frontpage.php on line 111 It sounds to me like the problem is due to the http headers at the top of the page, but I don't know how best to handle this. I don't want to leave out the headers, right? Your friendly neighborhood newbie. e.Dave -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 936 bytes Desc: not available URL: From nyphp at altunergil.com Tue Jan 28 16:08:46 2003 From: nyphp at altunergil.com (Oktay Altunergil) Date: Tue, 28 Jan 2003 16:08:46 -0500 Subject: [nycphp-talk] Sessions In-Reply-To: <200301282120.h0SLKASX031906@parsec.nyphp.org> References: <200301282120.h0SLKASX031906@parsec.nyphp.org> Message-ID: <20030128160846.2d60a949.nyphp@altunergil.com> invisible ink ? :) On Tue, 28 Jan 2003 16:20:10 -0500 e_dave wrote: > From drodriguez1 at mac.com Tue Jan 28 16:25:35 2003 From: drodriguez1 at mac.com (e_dave) Date: Tue, 28 Jan 2003 16:25:35 -0500 Subject: Sessions Message-ID: <09BEC88F-3307-11D7-A89D-000A27D8C444@mac.com> Let's try that one more time, in plain text. Can someone point me in the right direction? I am writing what I think is a fairly simple session authentication script, but I keep getting the following error: Warning : Cannot send session cache limiter - headers already sent (output started at /Library/WebServer/Documents/DSMetro/header.php:16) in /Library/WebServer/Documents/DSMetro/frontpage.php on line 111 It sounds to me like the problem is due to the http headers at the top of the page, but I don't know how best to handle this. I don't want to leave out the headers, right? Your friendly neighborhood newbie. e.Dave From fields at surgam.net Tue Jan 28 16:28:38 2003 From: fields at surgam.net (Adam Fields) Date: Tue, 28 Jan 2003 16:28:38 -0500 Subject: [nycphp-talk] Sessions In-Reply-To: <200301282126.h0SLPiZx033288@parsec.nyphp.org> References: <200301282126.h0SLPiZx033288@parsec.nyphp.org> Message-ID: <20030128212838.GJ12131@eye.surgam.net> On Tue, Jan 28, 2003 at 04:25:44PM -0500, e_dave wrote: > Let's try that one more time, in plain text. > > Can someone point me in the right direction? I am writing what I think > is a fairly simple session authentication script, but I keep getting > the following error: > > Warning : Cannot send session cache limiter - headers already sent > (output started at /Library/WebServer/Documents/DSMetro/header.php:16) > in /Library/WebServer/Documents/DSMetro/frontpage.php on line 111 > > It sounds to me like the problem is due to the http headers at the top > of the page, but I don't know how best to handle this. I don't want to > leave out the headers, right? > > Your friendly neighborhood newbie. Basically, session info is sent in the header of the page, which must be sent prior to any content. Normally, this is done by the server, transparently to you. If you're mucking with any of the header info using PHP commands, those commands must appear before anything that sends output to the page, including whitespace. -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From drodriguez1 at mac.com Tue Jan 28 16:48:58 2003 From: drodriguez1 at mac.com (e_dave) Date: Tue, 28 Jan 2003 16:48:58 -0500 Subject: [nycphp-talk] Sessions In-Reply-To: <200301282129.h0SLShXF033975@parsec.nyphp.org> Message-ID: <4E6B9E74-330A-11D7-A89D-000A27D8C444@mac.com> OK, but all I did was enter the usual META TAG info. So I take it you might be talking about something else. What is happening is that on the page "frontpage.php" one enters their user name and password. Then the same page is called to verify the user and create a session with the user's info. Now using the header() function, frontpage.php is called once more with the session id on the end of the URL. And when I try to access the user's info such as if (isset($HTTP_SESSION_VARS['userID'])){ echo $HTTP_SESSION_VARS['userName']; } I get nothing unless I say start_session() before the if statement. However doing that triggers the error I mentioned earlier. D. On Tuesday, January 28, 2003, at 04:28 PM, Adam Fields wrote: > On Tue, Jan 28, 2003 at 04:25:44PM -0500, e_dave wrote: >> Let's try that one more time, in plain text. >> >> Can someone point me in the right direction? I am writing what I >> think >> is a fairly simple session authentication script, but I keep getting >> the following error: >> >> Warning : Cannot send session cache limiter - headers already sent >> (output started at /Library/WebServer/Documents/DSMetro/header.php:16) >> in /Library/WebServer/Documents/DSMetro/frontpage.php on line 111 >> >> It sounds to me like the problem is due to the http headers at the top >> of the page, but I don't know how best to handle this. I don't want >> to >> leave out the headers, right? >> >> Your friendly neighborhood newbie. > > Basically, session info is sent in the header of the page, which must > be sent prior to any content. Normally, this is done by the server, > transparently to you. If you're mucking with any of the header info > using PHP commands, those commands must appear before anything that > sends output to the page, including whitespace. > > -- > - Adam > > ----- > Adam Fields, Managing Partner, fields at surgam.net > Surgam, Inc. is a technology consulting firm with strong background in > delivering scalable and robust enterprise web and IT applications. > http://www.adamfields.com > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From fields at surgam.net Tue Jan 28 16:59:15 2003 From: fields at surgam.net (Adam Fields) Date: Tue, 28 Jan 2003 16:59:15 -0500 Subject: [nycphp-talk] Sessions In-Reply-To: <200301282149.h0SLn6Zx034896@parsec.nyphp.org> References: <200301282149.h0SLn6Zx034896@parsec.nyphp.org> Message-ID: <20030128215915.GL12131@eye.surgam.net> On Tue, Jan 28, 2003 at 04:49:06PM -0500, e_dave wrote: > OK, but all I did was enter the usual META TAG info. So I take it you > might be talking about something else. > > What is happening is that on the page "frontpage.php" one enters their > user name and password. > Then the same page is called to verify the user and create a session > with the user's info. > Now using the header() function, frontpage.php is called once more with > the session id on the end of the URL. And when I try to access the > user's info such as > if (isset($HTTP_SESSION_VARS['userID'])){ > echo $HTTP_SESSION_VARS['userName']; > } > I get nothing unless I say start_session() before the if statement. > However doing that triggers the error I mentioned earlier. Send the text of the page up until the if statement above. -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From chendry at nyc.rr.com Tue Jan 28 17:06:49 2003 From: chendry at nyc.rr.com (Christopher Hendry) Date: Tue, 28 Jan 2003 17:06:49 -0500 Subject: [nycphp-talk] Sessions In-Reply-To: <200301282126.h0SLPiY9033288@parsec.nyphp.org> Message-ID: Howdy e.Dave - probably not the right place for this question, but what this likely means is that you're trying to start your session after you've already output something to the browser. session_start() should be the first function you call in your code - and should be before any HTML. contact me directly if you need more help. C -> -----Original Message----- -> From: e_dave [mailto:drodriguez1 at mac.com] -> Sent: Tuesday, January 28, 2003 4:26 PM -> To: NYPHP Talk -> Subject: [nycphp-talk] Sessions -> -> -> Let's try that one more time, in plain text. -> -> Can someone point me in the right direction? I am writing what I think -> is a fairly simple session authentication script, but I keep getting -> the following error: -> -> Warning : Cannot send session cache limiter - headers already sent -> (output started at /Library/WebServer/Documents/DSMetro/header.php:16) -> in /Library/WebServer/Documents/DSMetro/frontpage.php on line 111 -> -> It sounds to me like the problem is due to the http headers at the top -> of the page, but I don't know how best to handle this. I don't want to -> leave out the headers, right? -> -> Your friendly neighborhood newbie. -> -> e.Dave -> -> -> -> --- Unsubscribe at http://nyphp.org/list/ --- -> -> -> From chun_lam at hotmail.com Tue Jan 28 23:28:00 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Tue, 28 Jan 2003 23:28:00 -0500 Subject: [nycphp-talk] Sessions Message-ID: Put the session in the first line and the do the second header by using the header function. Matthew ----Original Message Follows---- From: e_dave Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] Sessions Date: Tue, 28 Jan 2003 16:25:44 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc5-f11.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 28 Jan 2003 13:25:59 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0SLPiWH033288for ; Tue, 28 Jan 2003 16:25:58 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200301282125.h0SLPiWH033288 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 28 Jan 2003 21:25:59.0500 (UTC) FILETIME=[D9F7D8C0:01C2C713] Let's try that one more time, in plain text. Can someone point me in the right direction? I am writing what I think is a fairly simple session authentication script, but I keep getting the following error: Warning : Cannot send session cache limiter - headers already sent (output started at /Library/WebServer/Documents/DSMetro/header.php:16) in /Library/WebServer/Documents/DSMetro/frontpage.php on line 111 It sounds to me like the problem is due to the http headers at the top of the page, but I don't know how best to handle this. I don't want to leave out the headers, right? Your friendly neighborhood newbie. e.Dave --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From webapprentice at onemain.com Tue Jan 28 23:56:25 2003 From: webapprentice at onemain.com (Webapprentice) Date: Tue, 28 Jan 2003 23:56:25 -0500 Subject: Remembering which option in a SELECT the user picked. Message-ID: <3E375EF9.1000502@onemain.com> Hello NYPHP group, I'm searching for an answer to this, that I don't find in the usual resources (i.e. PHP cookbook, www.php.net). My PHP skill is novice at best, so I could use some help. I have a SELECT on a web form. Only one option may be chosen. When I submit this form, there could be errors. When I have errors, I wish to reprint the form with the user's values remembered. In the reprinted SELECT tag, one of the OPTION tags will now have a SELECTED attribute. Is there any elegant way to insert the SELECTED attribute on the right option? I've been running into this situation a lot. Thank you for your time and help. --Stephen From seth at ghiek.com Tue Jan 28 23:58:28 2003 From: seth at ghiek.com (Seth [Ghiek]) Date: Tue, 28 Jan 2003 23:58:28 -0500 Subject: [nycphp-talk] Sessions In-Reply-To: <200301282207.h0SM70V7036554@parsec.nyphp.org> Message-ID: this is how i start every web page...and the $tid value is maintained flawlessly for tracking the user. *********** -----Original Message----- -> From: e_dave [mailto:drodriguez1 at mac.com] -> Sent: Tuesday, January 28, 2003 4:26 PM -> To: NYPHP Talk -> Subject: [nycphp-talk] Sessions -> -> -> Let's try that one more time, in plain text. -> -> Can someone point me in the right direction? I am writing what I think -> is a fairly simple session authentication script, but I keep getting -> the following error: -> -> Warning : Cannot send session cache limiter - headers already sent -> (output started at /Library/WebServer/Documents/DSMetro/header.php:16) -> in /Library/WebServer/Documents/DSMetro/frontpage.php on line 111 -> -> It sounds to me like the problem is due to the http headers at the top -> of the page, but I don't know how best to handle this. I don't want to -> leave out the headers, right? -> -> Your friendly neighborhood newbie. -> -> e.Dave -> -> -> -> -> -> -> --- Unsubscribe at http://nyphp.org/list/ --- From webapprentice at onemain.com Wed Jan 29 00:10:40 2003 From: webapprentice at onemain.com (Webapprentice) Date: Wed, 29 Jan 2003 00:10:40 -0500 Subject: Much more elegant code Re: [PHP] Remembering which option in a SELECT tag the user had chosen References: Message-ID: <3E376250.9000300@onemain.com> I am truly a novice. haha. This is so elegant. I don't have access to a database, so I'll go with your array structure. The PHP server is < 4.1. I have to go with $HTTP_POST_VARS["timeChoice"] (Explicit reference) I was originally doing this using #3 of your notes 9type out each if statement), but that was so inefficient that there had to be another way. I can load the date values in an array and cycle through that. Thank you Justin for the tip. Let me attempt to work along the idea you provided. --Stephen Justin French wrote: >For starters, let's assume that these dates are stored in a database or >array, so that we can do everything through a loop. > >I'll just do an array of 4 dates to prove the point: > >$dates = array( > 'Saturday August 23, 10:00 PM - 12:00 AM', > 'Sunday August 24, 12:00 AM - 02:00 AM', > 'Sunday August 24, 12:00 PM - 02:00 PM', > 'Sunday August 24, 02:00 PM - 04:00 PM' > ); >?> > > >1. untested code > >2. assumes register globals are OFF and PHP > 4.1 ... change >$_POST['timeChoice'] to $timeChoice if you're old fashioned :) > >3. if you don't have these dates in an array or db table, then you will have >to manually type out each if statement, to check whether the value you're >putting into the option matches a value in $_POST['timeChoice'] > >4. change $_POST['timeChoice'] to $_GET['timeChoice'] if your

method >is GET. > > >Justin > > > > > From bfeqx44002 at sneakemail.com Wed Jan 29 00:14:39 2003 From: bfeqx44002 at sneakemail.com (gadhra) Date: Wed, 29 Jan 2003 00:14:39 -0500 Subject: [nycphp-talk] Remembering which option in a SELECT the user picked. In-Reply-To: <200301290455.h0T4tCZd043294@parsec.nyphp.org> References: <200301290455.h0T4tCZd043294@parsec.nyphp.org> Message-ID: <4647-98123@sneakemail.com> Hi Stephen, You might consider offloading the creating of the select to a function call: function generate_select($name,$option,$sel=0) { $str = "\ \ "; return $str; } Then, you can just create an array of the values you want in select: /* I used a numerical representation of the date time to avoid confusion between the key and value */ $arr_times = array( "Friday August 22, 04:00 PM - 06:00 PM"=> "082203_1600_1800", "Friday August 22, 06:00 PM - 08:00 PM"=> "082203_1800_2000"); and run the function like this: $display_select = generate_select("TimeChoice",$arr_times); if ($error) { $display_select = generate_select("TimeChoice",$arr_times,$_POST['TimeChoice']); } If you get an error, you will retain the HTTP_POST_VARS for your select value, and you should be in business. Bear in mind I haven't tested this out, but I think it will work; anyone see problems with this? +gadhra+ Webapprentice webapprentice-at-onemain.com |NY PHP| wrote: >Hello NYPHP group, >I'm searching for an answer to this, that I don't find in the usual >resources (i.e. PHP cookbook, www.php.net). My PHP skill is novice at >best, so I could use some help. > > >I have a SELECT on a web form. > > > >Only one option may be chosen. > >When I submit this form, there could be errors. When I have errors, I >wish to reprint the form with the user's values remembered. In the >reprinted SELECT tag, one of the OPTION tags will now have a SELECTED >attribute. Is there any elegant way to insert the SELECTED attribute on >the right option? > >I've been running into this situation a lot. > >Thank you for your time and help. > >--Stephen > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > From hans at nyphp.org Wed Jan 29 00:20:50 2003 From: hans at nyphp.org (Hans Zaunere) Date: Tue, 28 Jan 2003 21:20:50 -0800 (PST) Subject: Tonight's Meeting and Zeev Suraski on the Zend Engine 2 - Part II Message-ID: <20030129052050.55515.qmail@web12801.mail.yahoo.com> Thank you for all those who attended tonight's meeting, and especially Community Connect Inc. for giving an excellent presentation. The presentation and additional information will be available at http://nyphp.org/presentations/ shortly. Tonight, Daniel Kushner had mentioned that the second part of Zeev Suraski's iSeminar on the Zend Engine 2 would occur tomorrow, January 29th. Part I was very well received and extremely informative, and Part II looks to deal with concrete examples and tutorials for leveraging the up-and-coming Zend Engine 2. Please register at http://zend.interwise.com/zend/iSeminar/WV2160/ and join us 01/29/03 at 11:00am EST for this highly interactive discussion with one of PHP's most vital developers. Many thanks, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From bfeqx44002 at sneakemail.com Wed Jan 29 00:24:25 2003 From: bfeqx44002 at sneakemail.com (gadhra) Date: 29 Jan 2003 05:24:25 -0000 Subject: [nycphp-talk] Remembering which option in a SELECT the user picked. Message-ID: <2068-02893@sneakemail.com> Hi Stephen, You might consider offloading the creating of the select to a function call: function generate_select($name,$option,$sel=0) { $str = "\ \ "; return $str; } Then, you can just create an array of the values you want in select: /* I used a numerical representation of the date time to avoid confusion between the key and value */ $arr_times = array( "Friday August 22, 04:00 PM - 06:00 PM"=> "082203_1600_1800", "Friday August 22, 06:00 PM - 08:00 PM"=> "082203_1800_2000"); and run the function like this: $display_select = generate_select("TimeChoice",$arr_times); if ($error) { $display_select = generate_select("TimeChoice",$arr_times,$_POST['TimeChoice']); } If you get an error, you will retain the HTTP_POST_VARS for your select value, and you should be in business. Bear in mind I haven't tested this out, but I think it will work; anyone see problems with this? +gadhra+ -------------------------------------- Protect yourself from spam, use http://sneakemail.com From drodriguez1 at mac.com Wed Jan 29 08:15:50 2003 From: drodriguez1 at mac.com (e_dave) Date: Wed, 29 Jan 2003 08:15:50 -0500 Subject: [nycphp-talk] Remembering which option in a SELECT the user picked. In-Reply-To: <200301290455.h0T4tCXF043294@parsec.nyphp.org> Message-ID: Your scripts got to remember the entry the user made. And then the " > > > > > > > > > > > > > > > > > Only one option may be chosen. > > When I submit this form, there could be errors. When I have errors, I > wish to reprint the form with the user's values remembered. In the > reprinted SELECT tag, one of the OPTION tags will now have a SELECTED > attribute. Is there any elegant way to insert the SELECTED attribute > on > the right option? > > I've been running into this situation a lot. > > Thank you for your time and help. > > --Stephen > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From drodriguez1 at mac.com Wed Jan 29 08:18:01 2003 From: drodriguez1 at mac.com (e_dave) Date: Wed, 29 Jan 2003 08:18:01 -0500 Subject: [nycphp-talk] Sessions In-Reply-To: <200301290457.h0T4vUXF043970@parsec.nyphp.org> Message-ID: <17788921-338C-11D7-9290-000A27D8C444@mac.com> Thanks to everyone for the help with sessions. I simply didn't realize that session_start(); had to come so soon in the page. e.Dave On Tuesday, January 28, 2003, at 11:57 PM, Seth [Ghiek] wrote: > this is how i start every web page...and the $tid value is maintained > flawlessly for tracking the user. > > *********** > session_start(); > $tid = $_COOKIE["PHPSESSID"]; > ************ > I, for one, am completely blown away with how easy sessions are to > manage > with php. i never it expected it to be so simple, so transparent and so > reliable...at least, at my host, it works that way. > > spirits, > > seth j hersh > > -----Original Message----- > From: Christopher Hendry [mailto:chendry at nyc.rr.com] > Sent: Tuesday, January 28, 2003 5:07 PM > To: NYPHP Talk > Subject: RE: [nycphp-talk] Sessions > > > Howdy e.Dave - > > probably not the right place for this question, but what this likely > means > is that you're trying to start your session after you've already output > something to the browser. session_start() should be the first > function you > call in your code - and should be before any HTML. > > contact me directly if you need more help. C > > -> -----Original Message----- > -> From: e_dave [mailto:drodriguez1 at mac.com] > -> Sent: Tuesday, January 28, 2003 4:26 PM > -> To: NYPHP Talk > -> Subject: [nycphp-talk] Sessions > -> > -> > -> Let's try that one more time, in plain text. > -> > -> Can someone point me in the right direction? I am writing what I > think > -> is a fairly simple session authentication script, but I keep getting > -> the following error: > -> > -> Warning : Cannot send session cache limiter - headers already sent > -> (output started at > /Library/WebServer/Documents/DSMetro/header.php:16) > -> in /Library/WebServer/Documents/DSMetro/frontpage.php on line 111 > -> > -> It sounds to me like the problem is due to the http headers at the > top > -> of the page, but I don't know how best to handle this. I don't > want to > -> leave out the headers, right? > -> > -> Your friendly neighborhood newbie. > -> > -> e.Dave > -> > -> > -> > -> > -> > -> > -> > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From hans at nyphp.org Wed Jan 29 10:57:38 2003 From: hans at nyphp.org (Hans Zaunere) Date: Wed, 29 Jan 2003 07:57:38 -0800 (PST) Subject: Zeev on ZE2 - Starts Now! Message-ID: <20030129155738.12693.qmail@web12806.mail.yahoo.com> A quick reminder: http://zend.interwise.com/zend/iSeminar/WV2160/ Starting right now... see you there. ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From jim at nettmedia.com Wed Jan 29 11:02:45 2003 From: jim at nettmedia.com (Jim Musil) Date: Wed, 29 Jan 2003 11:02:45 -0500 Subject: Developer Salaries Message-ID: Sorry, if I missed it, but has there ever been a formal or informal survey done here on market salaries? Jim From zaunere at yahoo.com Wed Jan 29 11:07:55 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 29 Jan 2003 08:07:55 -0800 (PST) Subject: [nycphp-talk] Developer Salaries In-Reply-To: <200301291603.h0TG2nbr058274@parsec.nyphp.org> Message-ID: <20030129160755.59163.qmail@web12805.mail.yahoo.com> --- Jim Musil wrote: > > Sorry, if I missed it, but has there ever been a formal or informal survey > done here on market salaries? There has been considerable discussion on hourly rates and the like, but not a formal tally. This would make a nice poll and/or writeup on nyphp.org if anyone would like to do it (it would be pretty easy, too). Hans From zaunere at yahoo.com Wed Jan 29 11:09:47 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 29 Jan 2003 08:09:47 -0800 (PST) Subject: [nycphp-talk] Zeev on ZE2 - Starts Now! In-Reply-To: <200301291558.h0TFvibr057442@parsec.nyphp.org> Message-ID: <20030129160947.16321.qmail@web12806.mail.yahoo.com> --- Hans Zaunere wrote: > > A quick reminder: > > http://zend.interwise.com/zend/iSeminar/WV2160/ > > Starting right now... see you there. Is it just me, or are there only about 13 participants, and there is no sign of any audio yet? Server troubles in Interwise land, or is it something on my end? H From lance_lovette at hotmail.com Wed Jan 29 11:12:34 2003 From: lance_lovette at hotmail.com (Lance Lovette) Date: Wed, 29 Jan 2003 11:12:34 -0500 Subject: [nycphp-talk] Zeev on ZE2 - Starts Now! References: <200301291610.h0TG9nYX059359@parsec.nyphp.org> Message-ID: I don't have audio or video. ----- Original Message ----- From: "Hans Zaunere" To: "NYPHP Talk" Sent: Wednesday, January 29, 2003 11:09 AM Subject: Re: [nycphp-talk] Zeev on ZE2 - Starts Now! > > --- Hans Zaunere wrote: > > > > A quick reminder: > > > > http://zend.interwise.com/zend/iSeminar/WV2160/ > > > > Starting right now... see you there. > > Is it just me, or are there only about 13 participants, and there is no sign > of any audio yet? > > Server troubles in Interwise land, or is it something on my end? > > H > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From Wasch at aol.com Wed Jan 29 11:12:37 2003 From: Wasch at aol.com (Wasch at aol.com) Date: Wed, 29 Jan 2003 11:12:37 EST Subject: [nycphp-talk] Zeev on ZE2 - Starts Now! Message-ID: <1ee.8349ec.2b695775@aol.com> Went through the check in process and sat waiting & waiting and nothing happened to let me in Wayne Schultz From jadair at adairservices.net Wed Jan 29 11:17:53 2003 From: jadair at adairservices.net (John Adair) Date: Wed, 29 Jan 2003 11:17:53 -0500 Subject: [nycphp-talk] Zeev on ZE2 - Starts Now! In-Reply-To: <200301291609.h0TG9nSJ059359@parsec.nyphp.org> Message-ID: It's not just you. -----Original Message----- From: Hans Zaunere [mailto:zaunere at yahoo.com] Sent: Wednesday, January 29, 2003 11:10 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Zeev on ZE2 - Starts Now! --- Hans Zaunere wrote: > > A quick reminder: > > http://zend.interwise.com/zend/iSeminar/WV2160/ > > Starting right now... see you there. Is it just me, or are there only about 13 participants, and there is no sign of any audio yet? Server troubles in Interwise land, or is it something on my end? H --- Unsubscribe at http://nyphp.org/list/ --- From zaunere at yahoo.com Wed Jan 29 11:28:13 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 29 Jan 2003 08:28:13 -0800 (PST) Subject: [nycphp-talk] Zeev on ZE2 - Starts Now! In-Reply-To: <200301291620.h0TGJUbr060536@parsec.nyphp.org> Message-ID: <20030129162813.65641.qmail@web12807.mail.yahoo.com> This just in: Daniel just called Zeev and he's on his way so we should get underway shortly. Best, --- John Adair wrote: > It's not just you. > > -----Original Message----- > From: Hans Zaunere [mailto:zaunere at yahoo.com] > Sent: Wednesday, January 29, 2003 11:10 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Zeev on ZE2 - Starts Now! > > > > --- Hans Zaunere wrote: > > > > A quick reminder: > > > > http://zend.interwise.com/zend/iSeminar/WV2160/ > > > > Starting right now... see you there. > > Is it just me, or are there only about 13 participants, and there is no > sign > of any audio yet? > > Server troubles in Interwise land, or is it something on my end? > > H > > > --- Unsubscribe at http://nyphp.org/list/ --- > > ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From hans at nyphp.org Wed Jan 29 11:34:21 2003 From: hans at nyphp.org (Hans Zaunere) Date: Wed, 29 Jan 2003 08:34:21 -0800 (PST) Subject: Zeev on ZE2 - Starts Tomorrow! In-Reply-To: <200301291629.h0TGSGbr061318@parsec.nyphp.org> Message-ID: <20030129163421.21438.qmail@web12806.mail.yahoo.com> Hi again, It sounds like there were some technical problems with the iSeminar system, so the event will take place tomorrow at the same time (11:00am) and place (http://zend.interwise.com/zend/iSeminar/WV2160/). We'll try this again tomorrow then, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From jkapron at NewAgeWeb.com Wed Jan 29 11:43:56 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Wed, 29 Jan 2003 11:43:56 -0500 Subject: [nycphp-talk] Remembering which option in a SELECT the user picked. Message-ID: <010d01c2c7b5$9dbe5620$de01a8c0@duron.lan.newageweb.com> >Your scripts got to remember the entry the user made. And then the >". Jerry -- 42.7% of all statistics are made up on the spot. From joshmccormack at travelersdiary.com Wed Jan 29 11:45:41 2003 From: joshmccormack at travelersdiary.com (joshmccormack at travelersdiary.com) Date: Wed, 29 Jan 2003 10:45:41 -0600 (CST) Subject: [nycphp-talk] Developer Salaries In-Reply-To: <200301291610.h0TG7vaX059030@parsec.nyphp.org> Message-ID: Something along the lines of, but more granular, than salary.com. Maybe hourly and salary with some idea on responsibilities. Josh On Wed, 29 Jan 2003, Hans Zaunere wrote: > > --- Jim Musil wrote: > > > > Sorry, if I missed it, but has there ever been a formal or informal survey > > done here on market salaries? > > There has been considerable discussion on hourly rates and the like, but not > a formal tally. This would make a nice poll and/or writeup on nyphp.org if > anyone would like to do it (it would be pretty easy, too). > > Hans > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From webapprentice at onemain.com Wed Jan 29 12:21:09 2003 From: webapprentice at onemain.com (Webapprentice) Date: Wed, 29 Jan 2003 12:21:09 -0500 Subject: [nycphp-talk] Remembering which option in a SELECT the user picked. References: <200301291316.h0TDFuYT053790@parsec.nyphp.org> Message-ID: <3E380D85.7080700@onemain.com> Hi, I received some possible solutions for this from the mailing group. I'm going to store the option values in an array and use a function to dynamically generate the dropdown. Thanks, Stephen e_dave wrote: >Your scripts got to remember the entry the user made. And then the >"" tag has to be placed at that entry instead of the top. >> >>D. >> >> >> >You probably meant . >That's something totally different from menu: $TimeChoice_options = array( 'Friday August 22, 04:00 PM - 06:00 PM', 'Friday August 22, 06:00 PM - 08:00 PM', 'Friday August 22, 08:00 PM - 10:00 PM', ... ); Next define this function: function make_select($source, $field_name, $selected_id = "") { echo '\ "; } Now place this function call where you would like to have your options: ... ... just build a two-dimentional array instead (the above function is ready for it): $TimeChoice_options = array( array( '1', 'Monday'), array( '2', 'Tuesday' ), array( '3', 'Wednesday'), array( '3', 'Thursday'), ... ); Good Luck, Jerry -- 42.7% of all statistics are made up on the spot. From cahoyos at us.ibm.com Wed Jan 29 14:11:24 2003 From: cahoyos at us.ibm.com (Carlos A Hoyos) Date: Wed, 29 Jan 2003 14:11:24 -0500 Subject: fetch page script Message-ID: Hi, I need to write a function that given a URL, will open it and "rip it" to my local server, (i.e. save the page's code to a specific directory, queue all of the page's assets -images, css, js, etc- save them to that directory as well and fix all paths to make it available for local browsing). Not really a big one, but if somebody already knows about a script that does this, I wouldn't mind the head start. Lastly, it was great to have meet some of you last night... great meeting. Carlos From joshmccormack at travelersdiary.com Wed Jan 29 14:22:04 2003 From: joshmccormack at travelersdiary.com (joshmccormack at travelersdiary.com) Date: Wed, 29 Jan 2003 13:22:04 -0600 (CST) Subject: [nycphp-talk] fetch page script In-Reply-To: <200301291913.h0TJC4aX068484@parsec.nyphp.org> Message-ID: You could try to figure out copy(), which didn't work too well for me, or use fopen() and fwrite() Josh On Wed, 29 Jan 2003, Carlos A Hoyos wrote: > > > > > Hi, > I need to write a function that given a URL, will open it and "rip it" to > my local server, (i.e. save the page's code to a specific directory, queue > all of the page's assets -images, css, js, etc- save them to that directory > as well and fix all paths to make it available for local browsing). > > Not really a big one, but if somebody already knows about a script that > does this, I wouldn't mind the head start. > > Lastly, it was great to have meet some of you last night... great meeting. > > Carlos > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From jkonikowski at nyc.rr.com Wed Jan 29 14:27:16 2003 From: jkonikowski at nyc.rr.com (Jeffrey Konikowski) Date: Wed, 29 Jan 2003 11:27:16 -0800 (PST) Subject: [nycphp-talk] fetch page script Message-ID: <3941922.1043868436203.JavaMail.www-data@moksha.oddpost.com> I don't have a script, but start with http://www.php.net/manual/en/function.fsockopen.php and you can have a quick and dirty page grab function going in no time. -----Original Message----- Hi, I need to write a function that given a URL, will open it and "rip it" to my local server, (i.e. save the page's code to a specific directory, queue all of the page's assets -images, css, js, etc- save them to that directory as well and fix all paths to make it available for local browsing). Not really a big one, but if somebody already knows about a script that does this, I wouldn't mind the head start. Lastly, it was great to have meet some of you last night... great meeting. Carlos --- Unsubscribe at http://nyphp.org/list/ --- From bfeqx44002 at sneakemail.com Wed Jan 29 14:37:16 2003 From: bfeqx44002 at sneakemail.com (gadhra) Date: Wed, 29 Jan 2003 14:37:16 -0500 Subject: [nycphp-talk] fetch page script References: <200301291912.h0TJC4Zb068484@parsec.nyphp.org> Message-ID: <18983-42776@sneakemail.com> I don't know if this is the type of function you migh be looking for, either, but the PHP cURL stuff is pretty sweet (check http://www.php.net/manual/en/ref.curl.php). You might be able to leverage this with some clever use of the string functions once you get the data to your script. Carlos A Hoyos cahoyos-at-us.ibm.com |NY PHP| wrote: >Hi, >I need to write a function that given a URL, will open it and "rip it" to >my local server, (i.e. save the page's code to a specific directory, queue >all of the page's assets -images, css, js, etc- save them to that directory >as well and fix all paths to make it available for local browsing). > >Not really a big one, but if somebody already knows about a script that >does this, I wouldn't mind the head start. > >Lastly, it was great to have meet some of you last night... great meeting. > >Carlos > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > > > -- +gadhra+(/s) ********************* And seize the metropolis; It's you it's built on From nyphp at enobrev.com Wed Jan 29 15:15:46 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Wed, 29 Jan 2003 15:15:46 -0500 Subject: can i replace curl with sockets? Message-ID: <01ce01c2c7d3$38f67ce0$96721d18@enobrev> To start, I'm new to the list, so hello all. I'm working on a script that requires cURL, but I'd rather surpass the need for cURL as it isn't usually installed by default on servers (namely mine - but other servers I've been on hadn't had it installed either). I realize I could try to use the command line cURL, but it's my understanding that that can be a security issue, and I would just like to handle it all within the script. I want to mimic this : ------------------------------ $curl_holder = curl_init(); curl_setopt ($curl_holder , CURLOPT_URL, ' https://www.url.com/'); curl_setopt ($curl_holder , CURLOPT_HEADER, 0); curl_setopt ($curl_holder , CURLOPT_POST, 1); curl_setopt ($curl_holder , CURLOPT_POSTFIELDS, $vars); curl_setopt ($curl_holder , CURLOPT_RETURNTRANSFER, 1); $server_response = curl_exec ($curl_holder ); curl_close ($curl_holder ); print $server_response; I've tried this: ----------------- $vars = 'name=mark&user=enobrev' $header = 'POST /track HTTP/1.0' . "\\r\ "; $header .= 'Content-type: application/x-www-form-urlencoded' . "\\r\ "; $header .= 'Content-length: ' . strlen($vars) . "\\r\ \\r\ "; $fp = fsockopen('www.url.com/script/', 443, $error_number, $error_sting); if ($fp) { fputs($fp, $header . $vars); while (!feof($fp)) { $response .= fgets($fp, 128); fclose($fp); } print htmlspecialchars($response); } else { print $error_number . ': ' . $error_sting . ' - could not connect to ' . $url); } And i get a whole bunch of these (which refers to the while line and the lines within the loop): -------------------- Warning: feof(): 2 is not a valid File-Handle resource The Question ------------------- Am I going the right way about this, or is there a better way? And what exactly is that error referring to? Thank you in advance. Mark Armendariz http://www.enobrev.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at enobrev.com Wed Jan 29 15:19:15 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Wed, 29 Jan 2003 15:19:15 -0500 Subject: [nycphp-talk] can i replace curl with sockets? In-Reply-To: <200301292016.h0TKGAUh073963@parsec.nyphp.org> Message-ID: <01d301c2c7d3$b214a700$96721d18@enobrev> Sorry, the CURLOPT_URL line got screwy: curl_setopt ($curl_holder , CURLOPT_URL, 'https://www.url.com/'); Mark -----Original Message----- From: Mark Armendariz [mailto:nyphp at enobrev.com] Sent: Wednesday, January 29, 2003 3:16 PM To: NYPHP Talk Subject: [nycphp-talk] can i replace curl with sockets? To start, I'm new to the list, so hello all. I'm working on a script that requires cURL, but I'd rather surpass the need for cURL as it isn't usually installed by default on servers (namely mine - but other servers I've been on hadn't had it installed either). I realize I could try to use the command line cURL, but it's my understanding that that can be a security issue, and I would just like to handle it all within the script. I want to mimic this : ------------------------------ $curl_holder = curl_init(); curl_setopt ($curl_holder , CURLOPT_URL, ' https://www.url.com/'); curl_setopt ($curl_holder , CURLOPT_HEADER, 0); curl_setopt ($curl_holder , CURLOPT_POST, 1); curl_setopt ($curl_holder , CURLOPT_POSTFIELDS, $vars); curl_setopt ($curl_holder , CURLOPT_RETURNTRANSFER, 1); $server_response = curl_exec ($curl_holder ); curl_close ($curl_holder ); print $server_response; I've tried this: ----------------- $vars = 'name=mark&user=enobrev' $header = 'POST /track HTTP/1.0' . "\\r\ "; $header .= 'Content-type: application/x-www-form-urlencoded' . "\\r\ "; $header .= 'Content-length: ' . strlen($vars) . "\\r\ \\r\ "; $fp = fsockopen('www.url.com/script/', 443, $error_number, $error_sting); if ($fp) { fputs($fp, $header . $vars); while (!feof($fp)) { $response .= fgets($fp, 128); fclose($fp); } print htmlspecialchars($response); } else { print $error_number . ': ' . $error_sting . ' - could not connect to ' . $url); } And i get a whole bunch of these (which refers to the while line and the lines within the loop): -------------------- Warning: feof(): 2 is not a valid File-Handle resource The Question ------------------- Am I going the right way about this, or is there a better way? And what exactly is that error referring to? Thank you in advance. Mark Armendariz http://www.enobrev.com --- Unsubscribe at http://nyphp.org/list/ --- From jim at nettmedia.com Wed Jan 29 15:21:44 2003 From: jim at nettmedia.com (Jim Musil) Date: Wed, 29 Jan 2003 15:21:44 -0500 Subject: [nycphp-talk] can i replace curl with sockets? In-Reply-To: <200301292016.h0TKGAXn073963@parsec.nyphp.org> Message-ID: I use a self-modified version of a script called PostIt which I think uses sockets. http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=15&lngWI d=8 Jim On 1/29/03 3:16 PM, "Mark Armendariz" wrote: > To start, I'm new to the list, so hello all. > > I'm working on a script that requires cURL, but I'd rather surpass the > need for cURL as it isn't usually installed by default on servers > (namely mine - but other servers I've been on hadn't had it installed > either). I realize I could try to use the command line cURL, but it's > my understanding that that can be a security issue, and I would just > like to handle it all within the script. > > I want to mimic this : > ------------------------------ > > $curl_holder = curl_init(); > curl_setopt ($curl_holder , CURLOPT_URL, ' > https://www.url.com/'); > curl_setopt ($curl_holder , CURLOPT_HEADER, 0); > curl_setopt ($curl_holder , CURLOPT_POST, 1); > curl_setopt ($curl_holder , CURLOPT_POSTFIELDS, $vars); > curl_setopt ($curl_holder , CURLOPT_RETURNTRANSFER, 1); > > $server_response = curl_exec ($curl_holder ); > curl_close ($curl_holder ); > > print $server_response; > > I've tried this: > ----------------- > > $vars = 'name=mark&user=enobrev' > > $header = 'POST /track HTTP/1.0' . "\\r\ "; > $header .= 'Content-type: application/x-www-form-urlencoded' . > "\\r\ "; > $header .= 'Content-length: ' . strlen($vars) . "\\r\ \\r\ "; > > $fp = fsockopen('www.url.com/script/', 443, $error_number, > $error_sting); > > if ($fp) { > fputs($fp, $header . $vars); > > while (!feof($fp)) { > $response .= fgets($fp, 128); > fclose($fp); > } > > print htmlspecialchars($response); > } else { > print $error_number . ': ' . $error_sting . ' - could not connect to > ' . $url); > } > > And i get a whole bunch of these (which refers to the while line and the > lines within the loop): > -------------------- > > Warning: feof(): 2 is not a valid File-Handle resource > > The Question > ------------------- > > Am I going the right way about this, or is there a better way? And what > exactly is that error referring to? > > > Thank you in advance. > > Mark Armendariz > http://www.enobrev.com > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From jim at nettmedia.com Wed Jan 29 15:24:15 2003 From: jim at nettmedia.com (Jim Musil) Date: Wed, 29 Jan 2003 15:24:15 -0500 Subject: [nycphp-talk] can i replace curl with sockets? In-Reply-To: <200301292019.h0TKJQXn074659@parsec.nyphp.org> Message-ID: I don't think you can (easily) use sockets to communicate with the HTTPS protocol. Everything you send would need to be encrypted and everything you receive would need to be decrypted. This is a real pain. Jim On 1/29/03 3:19 PM, "Mark Armendariz" wrote: > Sorry, the CURLOPT_URL line got screwy: > > curl_setopt ($curl_holder , CURLOPT_URL, 'https://www.url.com/'); > > Mark > > -----Original Message----- > From: Mark Armendariz [mailto:nyphp at enobrev.com] > Sent: Wednesday, January 29, 2003 3:16 PM > To: NYPHP Talk > Subject: [nycphp-talk] can i replace curl with sockets? > > > To start, I'm new to the list, so hello all. > > I'm working on a script that requires cURL, but I'd rather surpass the > need for cURL as it isn't usually installed by default on servers > (namely mine - but other servers I've been on hadn't had it installed > either). I realize I could try to use the command line cURL, but it's > my understanding that that can be a security issue, and I would just > like to handle it all within the script. > > I want to mimic this : > ------------------------------ > > $curl_holder = curl_init(); > curl_setopt ($curl_holder , CURLOPT_URL, ' > https://www.url.com/'); > curl_setopt ($curl_holder , CURLOPT_HEADER, 0); > curl_setopt ($curl_holder , CURLOPT_POST, 1); > curl_setopt ($curl_holder , CURLOPT_POSTFIELDS, $vars); > curl_setopt ($curl_holder , CURLOPT_RETURNTRANSFER, 1); > > $server_response = curl_exec ($curl_holder ); > curl_close ($curl_holder ); > > print $server_response; > > I've tried this: > ----------------- > > $vars = 'name=mark&user=enobrev' > > $header = 'POST /track HTTP/1.0' . "\\r\ "; > $header .= 'Content-type: application/x-www-form-urlencoded' . > "\\r\ "; > $header .= 'Content-length: ' . strlen($vars) . "\\r\ \\r\ "; > > $fp = fsockopen('www.url.com/script/', 443, $error_number, > $error_sting); > > if ($fp) { > fputs($fp, $header . $vars); > > while (!feof($fp)) { > $response .= fgets($fp, 128); > fclose($fp); > } > > print htmlspecialchars($response); > } else { > print $error_number . ': ' . $error_sting . ' - could not connect to > ' . $url); > } > > And i get a whole bunch of these (which refers to the while line and the > lines within the loop): > -------------------- > > Warning: feof(): 2 is not a valid File-Handle resource > > The Question > ------------------- > > Am I going the right way about this, or is there a better way? And what > exactly is that error referring to? > > > Thank you in advance. > > Mark Armendariz > http://www.enobrev.com > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From nyphp at enobrev.com Wed Jan 29 15:27:56 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Wed, 29 Jan 2003 15:27:56 -0500 Subject: [nycphp-talk] can i replace curl with sockets? In-Reply-To: <200301292024.h0TKOJUh076044@parsec.nyphp.org> Message-ID: <01d401c2c7d4$e8a50c00$96721d18@enobrev> Hmm.. Ok Jim, I appreciate it. That fact had completely escaped me. Well, command line it is. Thanks!!!! Mark -----Original Message----- From: Jim Musil [mailto:jim at nettmedia.com] Sent: Wednesday, January 29, 2003 3:24 PM To: NYPHP Talk Subject: Re: [nycphp-talk] can i replace curl with sockets? I don't think you can (easily) use sockets to communicate with the HTTPS protocol. Everything you send would need to be encrypted and everything you receive would need to be decrypted. This is a real pain. Jim On 1/29/03 3:19 PM, "Mark Armendariz" wrote: > Sorry, the CURLOPT_URL line got screwy: > > curl_setopt ($curl_holder , CURLOPT_URL, 'https://www.url.com/'); > > Mark > > -----Original Message----- > From: Mark Armendariz [mailto:nyphp at enobrev.com] > Sent: Wednesday, January 29, 2003 3:16 PM > To: NYPHP Talk > Subject: [nycphp-talk] can i replace curl with sockets? > > > To start, I'm new to the list, so hello all. > > I'm working on a script that requires cURL, but I'd rather surpass the > need for cURL as it isn't usually installed by default on servers > (namely mine - but other servers I've been on hadn't had it installed > either). I realize I could try to use the command line cURL, but it's > my understanding that that can be a security issue, and I would just > like to handle it all within the script. > > I want to mimic this : > ------------------------------ > > $curl_holder = curl_init(); > curl_setopt ($curl_holder , CURLOPT_URL, ' > https://www.url.com/'); curl_setopt > ($curl_holder , CURLOPT_HEADER, 0); curl_setopt ($curl_holder , > CURLOPT_POST, 1); curl_setopt ($curl_holder , CURLOPT_POSTFIELDS, > $vars); curl_setopt ($curl_holder , CURLOPT_RETURNTRANSFER, 1); > > $server_response = curl_exec ($curl_holder ); > curl_close ($curl_holder ); > > print $server_response; > > I've tried this: > ----------------- > > $vars = 'name=mark&user=enobrev' > > $header = 'POST /track HTTP/1.0' . "\\r\ "; > $header .= 'Content-type: application/x-www-form-urlencoded' . > "\\r\ "; $header .= 'Content-length: ' . strlen($vars) . "\\r\ \\r\ "; > > $fp = fsockopen('www.url.com/script/', 443, $error_number, > $error_sting); > > if ($fp) { > fputs($fp, $header . $vars); > > while (!feof($fp)) { > $response .= fgets($fp, 128); > fclose($fp); > } > > print htmlspecialchars($response); > } else { > print $error_number . ': ' . $error_sting . ' - could not connect to > ' . $url); } > > And i get a whole bunch of these (which refers to the while line and > the lines within the loop): > -------------------- > > Warning: feof(): 2 is not a valid File-Handle resource > > The Question > ------------------- > > Am I going the right way about this, or is there a better way? And > what exactly is that error referring to? > > > Thank you in advance. > > Mark Armendariz > http://www.enobrev.com > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From hans at nyphp.org Wed Jan 29 16:21:58 2003 From: hans at nyphp.org (Hans Zaunere) Date: Wed, 29 Jan 2003 13:21:58 -0800 (PST) Subject: [nycphp-talk] can i replace curl with sockets? In-Reply-To: <200301292017.h0TKGAbr073963@parsec.nyphp.org> Message-ID: <20030129212158.88392.qmail@web12806.mail.yahoo.com> --- Mark Armendariz wrote: > To start, I'm new to the list, so hello all. Welcome. > I'm working on a script that requires cURL, but I'd rather surpass the > need for cURL as it isn't usually installed by default on servers > (namely mine - but other servers I've been on hadn't had it installed > either). There's no absolute need for cURL, but considerable complexity is added without it, especially since it looks like you need to speak HTTPS, and not just HTTP. > I realize I could try to use the command line cURL, but it's > my understanding that that can be a security issue, and I would just > like to handle it all within the script. If you're careful, there shouldn't be any problems. Try to limit user input from getting into system() and related calls as much as possible, and you'll be ok. > I want to mimic this : > ------------------------------ > > $curl_holder = curl_init(); > curl_setopt ($curl_holder , CURLOPT_URL, ' > https://www.url.com/'); > curl_setopt ($curl_holder , CURLOPT_HEADER, 0); > curl_setopt ($curl_holder , CURLOPT_POST, 1); > curl_setopt ($curl_holder , CURLOPT_POSTFIELDS, $vars); > curl_setopt ($curl_holder , CURLOPT_RETURNTRANSFER, 1); > > $server_response = curl_exec ($curl_holder ); > curl_close ($curl_holder ); > > print $server_response; > > I've tried this: > ----------------- > > $vars = 'name=mark&user=enobrev' > > $header = 'POST /track HTTP/1.0' . "\\r\ "; > $header .= 'Content-type: application/x-www-form-urlencoded' . > "\\r\ "; > $header .= 'Content-length: ' . strlen($vars) . "\\r\ \\r\ "; > > $fp = fsockopen('www.url.com/script/', 443, $error_number, > $error_sting); > > if ($fp) { > fputs($fp, $header . $vars); > > while (!feof($fp)) { > $response .= fgets($fp, 128); > fclose($fp); > } > > print htmlspecialchars($response); > } else { > print $error_number . ': ' . $error_sting . ' - could not connect to > ' . $url); > } > > And i get a whole bunch of these (which refers to the while line and the > lines within the loop): > -------------------- > > Warning: feof(): 2 is not a valid File-Handle resource fsockopen() failed to open because 'www.url.com/script/' is not a valid address (fsockopen() takes only a hostname [and protocol]). $fp = fsockopen('www.url.com', 443, $error_number, $error_sting); or $fp = fsockopen('udp://www.url.com', 443, $error_number, $error_sting); Plus, you're connecting to an encrypted service, which means you'll probably have to have some handshaking done before you can begin to talk. I don't speak HTTPS, but it's probably not too fun. > The Question > ------------------- > > Am I going the right way about this, or is there a better way? This is the right way; aside from using cURL :) Or you could use real sockets (as opposed to streams, of which fsockopen() is) if you have a lot of time to kill. http://www.php.net/manual/en/ref.sockets.php ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From zaunere at yahoo.com Wed Jan 29 16:29:29 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 29 Jan 2003 13:29:29 -0800 (PST) Subject: [nycphp-talk] fetch page script In-Reply-To: <200301291913.h0TJC4br068484@parsec.nyphp.org> Message-ID: <20030129212929.30845.qmail@web12801.mail.yahoo.com> Hello, --- Carlos A Hoyos wrote: > > Hi, > I need to write a function that given a URL, will open it and "rip it" to > my local server, (i.e. save the page's code to a specific directory, queue > all of the page's assets -images, css, js, etc- save them to that directory > as well and fix all paths to make it available for local browsing). Connecting and ripping pages isn't a big deal, but there may be some added complexity to consider: -- Are cookies involved? Will the remote server give you the content you expect? -- Parsing through the code for all required assets I think would be horrible (especially trying to deal with JS, etc. in real complex pages). Same goes for fixing paths and the like. Then again, I despise client-side code, so I'm probably biased. > Not really a big one, but if somebody already knows about a script that > does this, I wouldn't mind the head start. I'm sure something at least to start with exists; try http://phpclasses.mirrors.nyphp.org maybe? or hotscripts.com? Also, maybe the good old wget command-line tool would come in handy. > Lastly, it was great to have meet some of you last night... great meeting. Good seeing you again Carlos, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From sterling at bumblebury.com Wed Jan 29 16:24:05 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 29 Jan 2003 16:24:05 -0500 Subject: [nycphp-talk] can i replace curl with sockets? In-Reply-To: <200301292122.h0TLM1Yr078583@parsec.nyphp.org> References: <200301292122.h0TLM1Yr078583@parsec.nyphp.org> Message-ID: <1043875445.20251.2.camel@hasele> > > > > Am I going the right way about this, or is there a better way? > > This is the right way; aside from using cURL :) Or you could use real > sockets (as opposed to streams, of which fsockopen() is) if you have a lot of > time to kill. > > http://www.php.net/manual/en/ref.sockets.php > three notes: 1) Use cURL, any PHP solution you create will be 1/5 the speed, at best. 2) You can't do ssl handshakes, etc. in PHP 3) cURL and the cURL extension will be bundled as of php5 -Sterling -- "Whether you think you can or think you can't -- you are right." - Henry Ford From jim at nettmedia.com Wed Jan 29 16:37:55 2003 From: jim at nettmedia.com (Jim Musil) Date: Wed, 29 Jan 2003 16:37:55 -0500 Subject: Related Socket Question... In-Reply-To: <200301292122.h0TLM1Xn078583@parsec.nyphp.org> Message-ID: On 1/29/03 4:22 PM, "Hans Zaunere" wrote: > > This is the right way; aside from using cURL :) Or you could use real > sockets (as opposed to streams, of which fsockopen() is) if you have a lot of > time to kill. > How exactly does PHP "open a socket"? Is it using something that is part of the PHP engine? or is it using some other system call? For instance, how close are the following operations? 1. Using fsockopen() to connect to port 80 on a remote server. AND 2. Using the shell command telnet to connect to PORT 80 on a remote server. The reason I ask is both are moving very slowly on one of our Linux servers. I'm suspicious of xinetd because I had a previous problem with FTP'ing that was solved through xinetd's conf files. Jim From zaunere at yahoo.com Wed Jan 29 16:38:31 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 29 Jan 2003 13:38:31 -0800 (PST) Subject: [nycphp-talk] Remembering which option in a SELECT the user picked. In-Reply-To: <200301290456.h0T4tCbt043294@parsec.nyphp.org> Message-ID: <20030129213831.33911.qmail@web12805.mail.yahoo.com> --- Webapprentice wrote: > Hello NYPHP group, > I'm searching for an answer to this, that I don't find in the usual > resources (i.e. PHP cookbook, www.php.net). My PHP skill is novice at > best, so I could use some help. > > > I have a SELECT on a web form. > > Just my opinion, but to reduce processing and possible error, you may want to consider making the value= some sort of shorter representation of the value you're after. This is really pedantic, though. > Only one option may be chosen. > > When I submit this form, there could be errors. When I have errors, I > wish to reprint the form with the user's values remembered. In the > reprinted SELECT tag, one of the OPTION tags will now have a SELECTED > attribute. Is there any elegant way to insert the SELECTED attribute on > the right option? > > I've been running into this situation a lot. Same here, so I wrote a silly little function: function is_selected( $val,$val1 ) { if( $val == $val1 ) return " SELECTED value=\\"$val1\\" "; else return " value=\\"$val1\\" "; } which I use along these lines: ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From zaunere at yahoo.com Wed Jan 29 16:46:13 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 29 Jan 2003 13:46:13 -0800 (PST) Subject: [nycphp-talk] can i replace curl with sockets? In-Reply-To: <200301292136.h0TLZwbr080133@parsec.nyphp.org> Message-ID: <20030129214613.33127.qmail@web12804.mail.yahoo.com> --- Sterling Hughes wrote: > > > > > > > Am I going the right way about this, or is there a better way? > > > > This is the right way; aside from using cURL :) Or you could use real > > sockets (as opposed to streams, of which fsockopen() is) if you have a > lot of > > time to kill. > > > > http://www.php.net/manual/en/ref.sockets.php > > > > three notes: > > 1) Use cURL, any PHP solution you create will be 1/5 the speed, at best. > 2) You can't do ssl handshakes, etc. in PHP I know very little of what's involved with the SSL process, but out of curiosity, why can't you do homegrown SSL in PHP yourself? Binary safety issues and immature sockets? > 3) cURL and the cURL extension will be bundled as of php5 > > -Sterling > > > -- > "Whether you think you can or think you can't -- you are right." > - Henry Ford > From zaunere at yahoo.com Wed Jan 29 16:59:34 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 29 Jan 2003 13:59:34 -0800 (PST) Subject: [nycphp-talk] Related Socket Question... In-Reply-To: <200301292138.h0TLbwbr080805@parsec.nyphp.org> Message-ID: <20030129215934.37460.qmail@web12801.mail.yahoo.com> --- Jim Musil wrote: > On 1/29/03 4:22 PM, "Hans Zaunere" wrote: > > > > > > This is the right way; aside from using cURL :) Or you could use real > > sockets (as opposed to streams, of which fsockopen() is) if you have a > lot of > > time to kill. > > > > > How exactly does PHP "open a socket"? At the OS level, the same as anything else (ie telnet). > Is it using something that is part of the PHP engine? Partially; the nicety of being able to do fsockopen("udp://somewhere.com") or fsockopen("tcp://somewhere.com") is a PHPism. I think how PHP does this has changed and/or improved to a certain extent recently, but I know little more of the details. http://www.php.net/manual/en/streams.php http://www.php.net/manual/en/ref.stream.php > or is it using some other system call? Streams, whether stdio or PHP, all use the same system calls at one point; they are just various wrappers. > For instance, how close are the following operations? > > 1. Using fsockopen() to connect to port 80 on a remote server. > > AND > > 2. Using the shell command telnet to connect to PORT 80 on a remote > server. As far as Linux, the OS, is concerned, identical. > The reason I ask is both are moving very slowly on one of our Linux > servers. > I'm suspicious of xinetd because I had a previous problem with FTP'ing that > was solved through xinetd's conf files. I stay away from super-servers so maybe I've lost track of what it does, but xinetd should only be involved with incoming connections (which, I suppose *could* affect FTP). But doing just a telnet should have no difference. Check DNS latency, network congestion, kernel/hardware errors, etc. ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From nyphp at enobrev.com Wed Jan 29 17:05:44 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Wed, 29 Jan 2003 17:05:44 -0500 Subject: [nycphp-talk] can i replace curl with sockets? In-Reply-To: <200301292122.h0TLM1Uh078583@parsec.nyphp.org> Message-ID: <021201c2c7e2$9205dfb0$96721d18@enobrev> > Try to limit user input from getting into system() and related calls as much > as possible, and you'll be ok. The thought of user input going anywhere near system calls makes my teeth chatter. Here's what I'm running instead of the fsock-- solution: exec('curl ' . '-d ' . $post_vars . ' ' . $this->url, $data); And then when I ran it via ssh, I found out that ssl support hasn't been complied into my server's curl. Thankfully my host is always helpful and will solve that one for me. > fsockopen() failed to open because 'www.url.com/script/' is not a valid address > (fsockopen() takes only a hostname [and protocol]). Thank you. Well, I suppose I'm at my host's mercy waiting for them to get curl going with ssl support. I was really hoping to make something that could run without having to bother them, but oh well. Mark From mjdewitt at alexcommgrp.com Wed Jan 29 17:06:08 2003 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Wed, 29 Jan 2003 17:06:08 -0500 Subject: Great meeting last night Message-ID: I was inspired and loaded up Ioncube's php accelerator http://www.php-accelerator.co.uk/ . Install was very easy and it's happily churning away on my website. Since my site is very low traffic, its hard to see a big difference. Time will tell. Mike From amiller at hollywood101.com Wed Jan 29 17:09:21 2003 From: amiller at hollywood101.com (Alan T. Miller) Date: Wed, 29 Jan 2003 14:09:21 -0800 Subject: [nycphp-talk] Remembering which option in a SELECT the user picked. References: <200301292138.h0TLcXVP081383@parsec.nyphp.org> Message-ID: <004301c2c7e3$13374c90$6e01a8c0@webdev> The following is a piece of code that demonstrates one way to do what you are trying to do. 'Please Select', 'Weekly Rental' => 'Weekly Rental', 'Monthly Rental' => 'Monthly Rental', 'Daily Rental' => 'Daily Rental', 'Annual Rental' => 'Annual Rental', 'Year Round Living' => 'Year Round Living', 'other' => 'Other' ); echo"\ "; ?> ----- Original Message ----- From: "Hans Zaunere" To: "NYPHP Talk" Sent: Wednesday, January 29, 2003 1:38 PM Subject: Re: [nycphp-talk] Remembering which option in a SELECT the user picked. > > --- Webapprentice wrote: > > Hello NYPHP group, > > I'm searching for an answer to this, that I don't find in the usual > > resources (i.e. PHP cookbook, www.php.net). My PHP skill is novice at > > best, so I could use some help. > > > > > > I have a SELECT on a web form. > > > > > > Just my opinion, but to reduce processing and possible error, you may want to > consider making the value= some sort of shorter representation of the value > you're after. This is really pedantic, though. > > > Only one option may be chosen. > > > > When I submit this form, there could be errors. When I have errors, I > > wish to reprint the form with the user's values remembered. In the > > reprinted SELECT tag, one of the OPTION tags will now have a SELECTED > > attribute. Is there any elegant way to insert the SELECTED attribute on > > the right option? > > > > I've been running into this situation a lot. > > Same here, so I wrote a silly little function: > > > function is_selected( $val,$val1 ) { > if( $val == $val1 ) > return " SELECTED value=\\"$val1\\" "; > else > return " value=\\"$val1\\" "; > } > > which I use along these lines: > > > > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From webapprentice at onemain.com Wed Jan 29 17:32:00 2003 From: webapprentice at onemain.com (Webapprentice) Date: Wed, 29 Jan 2003 17:32:00 -0500 Subject: Thanks. Re: [nycphp-talk] Remembering which option in a SELECT the user picked. References: <200301292209.h0TM8wYR085268@parsec.nyphp.org> Message-ID: <3E385660.8040604@onemain.com> Thanks to everybody who provided ideas to solve this. I just have to get it working in my instance. --Stephen Alan T. Miller wrote: >The following is a piece of code that demonstrates one way to do what you >are trying to do. > > >$arr = array ( > '0' => 'Please Select', > 'Weekly Rental' => 'Weekly Rental', > 'Monthly Rental' => 'Monthly Rental', > 'Daily Rental' => 'Daily Rental', > 'Annual Rental' => 'Annual Rental', > 'Year Round Living' => 'Year Round Living', > 'other' => 'Other' > ); > > echo"\ "; >?> > > > > >----- Original Message ----- >From: "Hans Zaunere" >To: "NYPHP Talk" >Sent: Wednesday, January 29, 2003 1:38 PM >Subject: Re: [nycphp-talk] Remembering which option in a SELECT the user >picked. > > > > >>--- Webapprentice wrote: >> >> >>>Hello NYPHP group, >>>I'm searching for an answer to this, that I don't find in the usual >>>resources (i.e. PHP cookbook, www.php.net). My PHP skill is novice at >>>best, so I could use some help. >>> >>> >>>I have a SELECT on a web form. >>> >>> >>> >>> >>Just my opinion, but to reduce processing and possible error, you may want >> >> >to > > >>consider making the value= some sort of shorter representation of the >> >> >value > > >>you're after. This is really pedantic, though. >> >> >> >>>Only one option may be chosen. >>> >>>When I submit this form, there could be errors. When I have errors, I >>>wish to reprint the form with the user's values remembered. In the >>>reprinted SELECT tag, one of the OPTION tags will now have a SELECTED >>>attribute. Is there any elegant way to insert the SELECTED attribute on >>>the right option? >>> >>>I've been running into this situation a lot. >>> >>> >>Same here, so I wrote a silly little function: >> >> >>function is_selected( $val,$val1 ) { >> if( $val == $val1 ) >> return " SELECTED value=\\"$val1\\" "; >> else >> return " value=\\"$val1\\" "; >>} >> >>which I use along these lines: >> >> >> >> >> >>===== >>Hans Zaunere >>President, New York PHP >>http://nyphp.org >>hans at nyphp.org >> >> >> >> >> >> >> >> > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > From chris at psydeshow.org Wed Jan 29 17:29:10 2003 From: chris at psydeshow.org (Chris Snyder) Date: Wed, 29 Jan 2003 17:29:10 -0500 Subject: [nycphp-talk] Great meeting last night In-Reply-To: <200301292206.h0TM6BZ5084129@parsec.nyphp.org> References: <200301292206.h0TM6BZ5084129@parsec.nyphp.org> Message-ID: <3E3855B6.4080305@psydeshow.org> DeWitt, Michael wrote: >I was inspired and loaded up Ioncube's php accelerator >http://www.php-accelerator.co.uk/ . > >Install was very easy and it's happily churning away on my website. Since my >site is very low traffic, its hard to see a big difference. Time will tell. > >Mike > I did this too-- I've profiled a number of scripts and seen a 30%-50% speed increase. Seems to work as advertised. Now if only gewtimagesize() calls didn't bog things down so much... Thanks for a very informative session! chris. -- HIP HOP CLOWN MONTH coming soon to a metropolis near you http://hiphopclown.org/ From chris at psydeshow.org Wed Jan 29 17:43:18 2003 From: chris at psydeshow.org (Chris Snyder) Date: Wed, 29 Jan 2003 17:43:18 -0500 Subject: [nycphp-talk] Great meeting last night In-Reply-To: <200301292206.h0TM6BZ5084129@parsec.nyphp.org> References: <200301292206.h0TM6BZ5084129@parsec.nyphp.org> Message-ID: <3E385906.2010206@psydeshow.org> DeWitt, Michael wrote: >I was inspired and loaded up Ioncube's php accelerator >http://www.php-accelerator.co.uk/ . > >Install was very easy and it's happily churning away on my website. Since my >site is very low traffic, its hard to see a big difference. Time will tell. > >Mike > I did this too-- I've profiled a number of scripts and seen a 30%-50% speed increase. Now if only gewtimagesize() calls didn't bog things down so much... Thanks for a very informative session! chris. -- HIP HOP CLOWN MONTH coming soon to a metropolis near you http://hiphopclown.org/ From hans at nyphp.org Wed Jan 29 18:58:17 2003 From: hans at nyphp.org (Hans Zaunere) Date: Wed, 29 Jan 2003 15:58:17 -0800 (PST) Subject: PHPCon East 2003 heads to New York City Message-ID: <20030129235817.61873.qmail@web12801.mail.yahoo.com> New York PHP is working closely with PHPCon to bring a groundbreaking event to the area. Details are below, and updates will be available at http://nyphp.org as they develop. Like PHP? Love PHP? LIVE PHP! Last year we launched the eagerly attended PHPCon 2002, the first all-PHP technical conference in the US. If you're interested in PHP, PHPCon East 2003 is where you need to be. PHPCon East 2003 attracts the top names in PHP development, giving you a great opportunity to network with peers, hear about the latest technology and trends in PHP, and learn tips and tricks from the gurus. PHPCon 2003 speakers include: - Rasmus Lerdorf, Keynote Speaker and Inventor of PHP - Michael Radwin, Yahoo, Inc. - Zak Greant, MySQL.com - Shane Caraveo, Active State, Inc. - Luke Welling and Laura Thompson, Tangent Technologies - George Schlossnagle, OmniTI - Dan Radigan, Macromedia - J. Scott Johnson, FuzzyBlog . And more! This year we've added a full day of hands-on, intensive tutorials - 6 half day sessions offering practical, easily implemented PHP solutions and ideas. Whether you're just starting to learn PHP or are looking for advanced technical skills, PHPCon East tutorials give you just what you're looking for. Tutorial topics include: - MySQL and PHP - Building and Consuming Web Services with SOAP - Getting Started with PHP - Introduction to XML with PHP4 - MySQL & PHP for Carbon-Based Lifeforms - High Performance PHP: Profiling and Benchmarking Register Today and Save! PHPCon East has discounts for early registration, students, non-profits, and Tutorials/Conference registration packages! Save hundreds by registering early and reserving your space. Early Bird Deadline is March 31st. PHPCon East 2003 April 23-25, 2003 Park Central New York Hotel New York, New York http://www.php-con.com/return.php?i=ny2 More speakers and sessions are being added daily! Follow this link for Conference Program and Registration information. http://www.php-con.com/return.php?i=ny2 Know someone else interested in PHP? Pass this message along! Many thanks, and see you at the expo! ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From nyphp at websapp.com Wed Jan 29 19:06:43 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Wed, 29 Jan 2003 19:06:43 -0500 Subject: PHP Meeting - Jan 28, 2003 Message-ID: Hello everyone, I would like to thank everyone who helped make last night's meeting such a success and I hope that you will find my summary useful. Best, Daniel Kushner Vice President, New York PHP http://nyphp.org daniel at nyphp.org ------------------------------------------------------------- Thanks to ========= Digital Pulp for office space [www.digitalpulp.com] Oddcast for bagels and drinks [www.oddcast.com] In the past =========== PHP 4.3.0 release [www.php.net] iSeminar by Zeev Suraski on PHP 5 [www.zend.com/iseminar.php] NYPHP at Linux World 2003 [www.linuxworldexpo.com] New Sponsors ============ Microsoft - MSDN subscription [www.microsoft.com] New on NYPHP DOT ORG ==================== Mirror of PHPClasses [phpclasses.mirrors.nyphp.org] Primary download mirror for Mozdev.org [mozdev.org] Jobs Board - [jobs.nyphp.org][jobs-submit at nyphp.org] Two new mailing lists: jobs at nyphp.org and announce at nyphp.org Achievements ============ Official Zend Beta Testers First in the world to get Zend IDE 4.6 Beta New NYPHP Board members ======================= Michael DeWitt - Director of Marketing David Sklar - Jobs Board Administration In the future ============= International PHP Conference 2003 - Amsterdam May 8-9 PHPCon East, April 23-25. NYPHP is the main media sponsor [www.php-con.com] New Features ============ Free *.usphp.com and *.usphp.org sub domains for free PHP user group hosting and development. News ==== We need more volunteers! Especially front-end designers (Webmasters), website maintainers and PHP integration. From nsr81 at ny-tech.net Wed Jan 29 19:23:27 2003 From: nsr81 at ny-tech.net (Nasir Zubair) Date: Wed, 29 Jan 2003 19:23:27 -0500 Subject: [nycphp-talk] PHPCon East 2003 heads to New York City In-Reply-To: <200301292358.h0TNwKXx088836@parsec.nyphp.org> Message-ID: <001301c2c7f5$d0ebbb60$9ff0ca97@nyt001> Thanks for the heads up Hans. For those interested in Student discount, here are the details: -------------- Thank you for your interest in PHPCON East. The student discount is 50%. If you register before March 31st, your fee would be $300; after March 31st it would be $350. To register, download the pdf from the website, complete it and send it with your payment, student ID and schedule of classes. Jane Stahl, CMP Conference Coordination Voice: (650) 583-7249 Fax: (650) 745-3416 or (650) 794-9110 www.meetingmatters.com ----------------------- That's is only for Tutorials (Apr. 23rd, 2003). Not sure if I'll be able to pay for registration, but was wondering if there are any other coupons or discounts? - Nasir Zubair From webapprentice at onemain.com Wed Jan 29 20:12:22 2003 From: webapprentice at onemain.com (Webapprentice) Date: Wed, 29 Jan 2003 20:12:22 -0500 Subject: [nycphp-talk] Remembering which option in a SELECT the user picked. References: <200301292209.h0TM8wYR085268@parsec.nyphp.org> Message-ID: <3E387BF6.8090702@onemain.com> Based on recent feedback, I created this snippet of code to generate the SELECT dropdown menu. // Dates clubhouse is available $clubhouseDates = array( 'Friday August 22, 04:00 PM - 06:00 PM' => 'Friday August 22, 04:00 PM - 06:00 PM', 'Friday August 22, 06:00 PM - 08:00 PM' => 'Friday August 22, 06:00 PM - 08:00 PM', 'Friday August 22, 08:00 PM - 10:00 PM' => 'Friday August 22, 08:00 PM - 10:00 PM', 'Friday August 22, 10:00 PM - 12:00 AM' => 'Friday August 22, 10:00 PM - 12:00 AM', 'Saturday August 23, 12:00 AM - 02:00 AM' => 'Saturday August 23, 12:00 AM - 02:00 AM', 'Saturday August 23, 12:00 PM - 02:00 PM' => 'Saturday August 23, 12:00 PM - 02:00 PM', 'Saturday August 23, 02:00 PM - 04:00 PM' => 'Saturday August 23, 02:00 PM - 04:00 PM', 'Saturday August 23, 04:00 PM - 06:00 PM' => 'Saturday August 23, 04:00 PM - 06:00 PM', 'Saturday August 23, 06:00 PM - 08:00 PM' => 'Saturday August 23, 06:00 PM - 08:00 PM', 'Saturday August 23, 08:00 PM - 10:00 PM' => 'Saturday August 23, 08:00 PM - 10:00 PM', 'Saturday August 23, 10:00 PM - 12:00 AM' => 'Saturday August 23, 10:00 PM - 12:00 AM', 'Sunday August 24, 12:00 AM - 02:00 AM' => 'Sunday August 24, 12:00 AM - 02:00 AM', 'Sunday August 24, 12:00 PM - 02:00 PM' => 'Sunday August 24, 12:00 PM - 02:00 PM', 'Sunday August 24, 02:00 PM - 04:00 PM' => 'Sunday August 24, 02:00 PM - 04:00 PM' ); /* Generate the SELECT tag with options. * $selectName: Name of the SELECT tag * $optionValues: Array containing all the values * $selectdValue: Which option gets the SELECTED attribute (pass this function the value * of the SELECT tag */ function generateHtmlSelectTag($selectName, $optionValues, $selectedValue) { $str = "\ "; return $str; } // End function // This is called in the PHP file elsewhere to generate the SELECT tag with options But every OPTION tag has the selected attribute... It appears this condition turns out true. if ($selectedValue == $value) { Printing out the value gives me 0 (integer) and Friday August 22, 04:00 PM - 06:00 PM (string), but how can the equality be true? What do I not understand? Thanks. --Stephen From nyphp at ehummel.net Thu Jan 30 01:52:39 2003 From: nyphp at ehummel.net (Erik) Date: Thu, 30 Jan 2003 01:52:39 -0500 Subject: [nycphp-talk] PHPCon East 2003 heads to New York City In-Reply-To: <200301292358.h0TNwKUX088836@parsec.nyphp.org> Message-ID: <000101c2c82c$3218fd90$0200a8c0@laptophum> Hans, I'd love to help out with some volunteer work, but since the schedule is during the week, I have classes (last semester before I graduate) to attend to. If there is anything I can help with from here (Baltimore) then I'd be glad to lend a hand. Otherwise, if the semester ends up with me having free time on that week, then I will be up to volunteer to help with any background work that needs to be done. This email list has been great to me, and I hope to be able to help out in the future. - Erik Hummel -----Original Message----- From: Hans Zaunere [mailto:hans at nyphp.org] Sent: Wednesday, January 29, 2003 6:58 PM To: NYPHP Talk Subject: [nycphp-talk] PHPCon East 2003 heads to New York City New York PHP is working closely with PHPCon to bring a groundbreaking event to the area. Details are below, and updates will be available at http://nyphp.org as they develop. Like PHP? Love PHP? LIVE PHP! Last year we launched the eagerly attended PHPCon 2002, the first all-PHP technical conference in the US. If you're interested in PHP, PHPCon East 2003 is where you need to be. PHPCon East 2003 attracts the top names in PHP development, giving you a great opportunity to network with peers, hear about the latest technology and trends in PHP, and learn tips and tricks from the gurus. PHPCon 2003 speakers include: - Rasmus Lerdorf, Keynote Speaker and Inventor of PHP - Michael Radwin, Yahoo, Inc. - Zak Greant, MySQL.com - Shane Caraveo, Active State, Inc. - Luke Welling and Laura Thompson, Tangent Technologies - George Schlossnagle, OmniTI - Dan Radigan, Macromedia - J. Scott Johnson, FuzzyBlog . And more! This year we've added a full day of hands-on, intensive tutorials - 6 half day sessions offering practical, easily implemented PHP solutions and ideas. Whether you're just starting to learn PHP or are looking for advanced technical skills, PHPCon East tutorials give you just what you're looking for. Tutorial topics include: - MySQL and PHP - Building and Consuming Web Services with SOAP - Getting Started with PHP - Introduction to XML with PHP4 - MySQL & PHP for Carbon-Based Lifeforms - High Performance PHP: Profiling and Benchmarking Register Today and Save! PHPCon East has discounts for early registration, students, non-profits, and Tutorials/Conference registration packages! Save hundreds by registering early and reserving your space. Early Bird Deadline is March 31st. PHPCon East 2003 April 23-25, 2003 Park Central New York Hotel New York, New York http://www.php-con.com/return.php?i=ny2 More speakers and sessions are being added daily! Follow this link for Conference Program and Registration information. http://www.php-con.com/return.php?i=ny2 Know someone else interested in PHP? Pass this message along! Many thanks, and see you at the expo! ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org --- Unsubscribe at http://nyphp.org/list/ --- From soazine at erols.com Thu Jan 30 01:54:49 2003 From: soazine at erols.com (Phil Powell) Date: Thu, 30 Jan 2003 01:54:49 -0500 Subject: Problem with xml_parse_into_struct Message-ID: <01c301c2c82c$7c3f88d0$2aaf6244@scandinawa1bo6> I have various XML files that might contain <> tags inside the element body, for example: Today on 1/29/03, stuff happened Because of this I can't use xml_parse_into_struct; when I do this happens: array ( ... [attributes] => array ( [ID] = "1" [SHORTDESCRIPTION] = "Stuff Happened Today" ) [values] = "Today on" ) and it stops right there on the tag. What I need to do is this: Clean out ALL occurrences of that are NOT part of the original XML structure from the contents read from the XML file: $fileID = fopen('/phil/xml/news.xml', 'r') or die('Could not open XML'); $stuff = fread($fileID, filesize('/phil/xml/news.xml')); fclose($fileID); $stuff contains the contents of news.xml, so I would have to do my cleanup in $stuff, BUT.. I can't use preg_replace for tags because then ALL of my tags would be altered and xml_parse_into_struct would fail altogether. How then do I make sure to ONLY remove the from each XML row body and nowhere else??? Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at enobrev.com Thu Jan 30 03:01:36 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Thu, 30 Jan 2003 03:01:36 -0500 Subject: [nycphp-talk] Problem with xml_parse_into_struct In-Reply-To: <200301300657.h0U6v6Uj098764@parsec.nyphp.org> Message-ID: <002901c2c835$d3083eb0$96721d18@enobrev> Well, I realize this isn't the most elegant solution, but it worked for me: $tags = array('b', 'br', 'i', 'p'); $ok_tags = array(); $ok_replaced = array(); foreach($tags as $tag) { $ok_tags[] = '<' . $tag . '>'; $ok_tags[] = ''; $ok_replaced[] = '<' . $tag . '>'; $ok_replaced[] = '</' . $tag . '>'; } $data = str_replace($ok_tags, $ok_replaced, $data); $parser = xml_parser_create('ISO-8859-1'); xml_parse_into_struct($parser , $data, $values, $index); // etc, etc... I know it doesn't help for xhtml style tags (
, etc) nor does it do much for tags with attributes (img, etc), but if it's just the basics, it does the trick... -----Original Message----- From: Phil Powell [mailto:soazine at erols.com] Sent: Thursday, January 30, 2003 1:57 AM To: NYPHP Talk Subject: [nycphp-talk] Problem with xml_parse_into_struct I have various XML files that might contain <> tags inside the element body, for example: Today on 1/29/03, stuff happened Because of this I can't use xml_parse_into_struct; when I do this happens: array ( ... [attributes] => array ( [ID] = "1" [SHORTDESCRIPTION] = "Stuff Happened Today" ) [values] = "Today on" ) and it stops right there on the tag. What I need to do is this: Clean out ALL occurrences of that are NOT part of the original XML structure from the contents read from the XML file: $fileID = fopen('/phil/xml/news.xml', 'r') or die('Could not open XML'); $stuff = fread($fileID, filesize('/phil/xml/news.xml')); fclose($fileID); $stuff contains the contents of news.xml, so I would have to do my cleanup in $stuff, BUT.. I can't use preg_replace for tags because then ALL of my tags would be altered and xml_parse_into_struct would fail altogether. How then do I make sure to ONLY remove the from each XML row body and nowhere else??? Thanx Phil --- Unsubscribe at http://nyphp.org/list/ --- From tech_learner at yahoo.com Thu Jan 30 07:44:30 2003 From: tech_learner at yahoo.com (Tracy) Date: Thu, 30 Jan 2003 04:44:30 -0800 (PST) Subject: solved???Re: [nycphp-talk] Remembering which option in a SELECT the user picked. In-Reply-To: <200301300112.h0U1B7cZ091904@parsec.nyphp.org> Message-ID: <20030130124430.68637.qmail@web14301.mail.yahoo.com> HI, is this wot u r trying to get??? 'Friday August 22, 04:00 PM - 06:00 PM', 'Friday August 22, 06:00 PM - 08:00 PM' => 'Friday August 22, 06:00 PM - 08:00 PM', 'Friday August 22, 08:00 PM - 10:00 PM' => 'Friday August 22, 08:00 PM - 10:00 PM', 'Friday August 22, 10:00 PM - 12:00 AM' => 'Friday August 22, 10:00 PM - 12:00 AM', 'Saturday August 23, 12:00 AM - 02:00 AM' => 'Saturday August 23, 12:00 AM - 02:00 AM', 'Saturday August 23, 12:00 PM - 02:00 PM' => 'Saturday August 23, 12:00 PM - 02:00 PM', 'Saturday August 23, 02:00 PM - 04:00 PM' => 'Saturday August 23, 02:00 PM - 04:00 PM', 'Saturday August 23, 04:00 PM - 06:00 PM' => 'Saturday August 23, 04:00 PM - 06:00 PM', 'Saturday August 23, 06:00 PM - 08:00 PM' => 'Saturday August 23, 06:00 PM - 08:00 PM', 'Saturday August 23, 08:00 PM - 10:00 PM' => 'Saturday August 23, 08:00 PM - 10:00 PM', 'Saturday August 23, 10:00 PM - 12:00 AM' => 'Saturday August 23, 10:00 PM - 12:00 AM', 'Sunday August 24, 12:00 AM - 02:00 AM' => 'Sunday August 24, 12:00 AM - 02:00 AM', 'Sunday August 24, 12:00 PM - 02:00 PM' => 'Sunday August 24, 12:00 PM - 02:00 PM', 'Sunday August 24, 02:00 PM - 04:00 PM' => 'Sunday August 24, 02:00 PM - 04:00 PM' ); /* Generate the SELECT tag with options. * $selectName: Name of the SELECT tag * $optionValues: Array containing all the values * $selectdValue: Which option gets the SELECTED attribute (pass this function the value * of the SELECT tag */ function generateHtmlSelectTag($selectName, $optionValues, $selectedValue) { $str = "\ "; return $str; } // End function // This is called in the PHP file elsewhere to generate the SELECT tag with options $displaySelectTag = generateHtmlSelectTag("requestTime", $clubhouseDates, ' '); echo $displaySelectTag; ?> here is the "view source" i got
$v) $$k = $v; //echo $k, $v; include ("select.php"); $displaySelectTag = generateHtmlSelectTag("requestTime", $clubhouseDates, $v); echo $displaySelectTag; ?> and when i "view source" see.php i get Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From webapprentice at onemain.com Thu Jan 30 09:25:04 2003 From: webapprentice at onemain.com (Webapprentice) Date: Thu, 30 Jan 2003 09:25:04 -0500 Subject: solved???Re: [nycphp-talk] Remembering which option in a SELECT the user picked. References: <200301301250.h0UCijYT005163@parsec.nyphp.org> Message-ID: <3E3935C0.7050009@onemain.com> Yes, I solved it. Before I was passing 0 for $v. I had not know about the automatic type conversion, so every OPTION tag had the selected attribute in it. I switched over to === in that comparison. --Stephen $v) $$k = $v; //echo $k, $v; include ("select.php"); $displaySelectTag = generateHtmlSelectTag("requestTime", $clubhouseDates, $v); echo $displaySelectTag; ?> Tracy wrote: >HI, >is this wot u r trying to get??? > >
>// Dates clubhouse is available >$clubhouseDates = array( > 'Friday August 22, 04:00 PM - 06:00 PM' => 'Friday August 22, 04:00 PM - 06:00 PM', > 'Friday August 22, 06:00 PM - 08:00 PM' => 'Friday August 22, 06:00 PM - 08:00 PM', > 'Friday August 22, 08:00 PM - 10:00 PM' => 'Friday August 22, 08:00 PM - 10:00 PM', > 'Friday August 22, 10:00 PM - 12:00 AM' => 'Friday August 22, 10:00 PM - 12:00 AM', > 'Saturday August 23, 12:00 AM - 02:00 AM' => 'Saturday August 23, 12:00 AM - 02:00 AM', > 'Saturday August 23, 12:00 PM - 02:00 PM' => 'Saturday August 23, 12:00 PM - 02:00 PM', > 'Saturday August 23, 02:00 PM - 04:00 PM' => 'Saturday August 23, 02:00 PM - 04:00 PM', > 'Saturday August 23, 04:00 PM - 06:00 PM' => 'Saturday August 23, 04:00 PM - 06:00 PM', > 'Saturday August 23, 06:00 PM - 08:00 PM' => 'Saturday August 23, 06:00 PM - 08:00 PM', > 'Saturday August 23, 08:00 PM - 10:00 PM' => 'Saturday August 23, 08:00 PM - 10:00 PM', > 'Saturday August 23, 10:00 PM - 12:00 AM' => 'Saturday August 23, 10:00 PM - 12:00 AM', > 'Sunday August 24, 12:00 AM - 02:00 AM' => 'Sunday August 24, 12:00 AM - 02:00 AM', > 'Sunday August 24, 12:00 PM - 02:00 PM' => 'Sunday August 24, 12:00 PM - 02:00 PM', > 'Sunday August 24, 02:00 PM - 04:00 PM' => 'Sunday August 24, 02:00 PM - 04:00 PM' >); > >/* Generate the SELECT tag with options. > * $selectName: Name of the SELECT tag > * $optionValues: Array containing all the values > * $selectdValue: Which option gets the SELECTED attribute (pass this function the value > * of the SELECT tag > */ >function generateHtmlSelectTag($selectName, $optionValues, $selectedValue) { > $str = "\ "; > return $str; >} // End function > >// This is called in the PHP file elsewhere to generate the SELECT tag with options >$displaySelectTag = generateHtmlSelectTag("requestTime", $clubhouseDates, ' '); >echo $displaySelectTag; >?> > >
> >here is the "view source" i got >
> > >
> > >foreach ($_POST as $k => $v) >$$k = $v; >//echo $k, $v; >include ("select.php"); >$displaySelectTag = generateHtmlSelectTag("requestTime", $clubhouseDates, $v); >echo $displaySelectTag; >?> > >and when i "view source" see.php i get > > > >Tracy > > > > From hans at nyphp.org Thu Jan 30 09:28:53 2003 From: hans at nyphp.org (Hans Zaunere) Date: Thu, 30 Jan 2003 06:28:53 -0800 (PST) Subject: Zeev on ZE2 - Yes, at 11am Today Message-ID: <20030130142853.96664.qmail@web12801.mail.yahoo.com> Hello again, Today it seems things are straightened out, and the talk will begin at 11am today. That URL again: http://zend.interwise.com/zend/iSeminar/WV2160/ See you there, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From southwell at dneba.com Thu Jan 30 09:41:14 2003 From: southwell at dneba.com (Michael Southwell) Date: Thu, 30 Jan 2003 09:41:14 -0500 Subject: [nycphp-talk] Problem with xml_parse_into_struct In-Reply-To: <200301300657.h0U6v6U5098764@parsec.nyphp.org> Message-ID: <5.1.0.14.2.20030130093858.00b49e98@mail.optonline.net> if there is just a limited number of different ones, do it by brute force: clean out each one globally in turn. This would be easiest and probably quickest, again assuming that there are not many many different ones. At 01:57 AM 1/30/2003, you wrote: >I have various XML files that might contain <> tags inside the element >body, for example: > >Today on >1/29/03, stuff happened > >Because of this I can't use xml_parse_into_struct; when I do this happens: > >array ( > ... > [attributes] => array ( > [ID] = "1" > [SHORTDESCRIPTION] = "Stuff Happened > Today" > ) > [values] = "Today on" >) > >and it stops right there on the tag. > >What I need to do is this: Clean out ALL occurrences of that are >NOT part of the original XML structure from the contents read from the XML >file: > >$fileID = fopen('/phil/xml/news.xml', 'r') or die('Could not open XML'); >$stuff = fread($fileID, filesize('/phil/xml/news.xml')); >fclose($fileID); > >$stuff contains the contents of news.xml, so I would have to do my cleanup >in $stuff, BUT.. I can't use preg_replace for tags because then ALL of my >tags would be altered and xml_parse_into_struct would fail altogether. > >How then do I make sure to ONLY remove the from each XML row >body and nowhere else??? > >Thanx >Phil > > > >--- Unsubscribe at http://nyphp.org/list/ --- Michael G. Southwell ================================= DNEBA Enterprises 81 South Road Bloomingdale, NJ 07403-1419 973/492-7873 (voice and fax) southwell at dneba.com http://www.dneba.com ====================================================== From wkamm at att.com Thu Jan 30 09:46:28 2003 From: wkamm at att.com (Kamm, William R (Bill), SOLIT) Date: Thu, 30 Jan 2003 09:46:28 -0500 Subject: [nycphp-talk] Problem with xml_parse_into_struct Message-ID: <751943B643332C4FB1F92D137C1FB7FA057ED11E@OCCLUST01EVS1.ugd.att.com> Where are you getting the XML source from? Can that person URL encode tags such as , so that you can decode them later? That way, they wouldn't interfere with your parsing. Bill -----Original Message----- From: Michael Southwell [mailto:southwell at dneba.com] Sent: Thursday, January 30, 2003 9:41 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Problem with xml_parse_into_struct if there is just a limited number of different ones, do it by brute force: clean out each one globally in turn. This would be easiest and probably quickest, again assuming that there are not many many different ones. At 01:57 AM 1/30/2003, you wrote: >I have various XML files that might contain <> tags inside the element >body, for example: > >Today on >1/29/03, stuff happened > >Because of this I can't use xml_parse_into_struct; when I do this >happens: > >array ( > ... > [attributes] => array ( > [ID] = "1" > [SHORTDESCRIPTION] = "Stuff >Happened > Today" > ) > [values] = "Today on" >) > >and it stops right there on the tag. > >What I need to do is this: Clean out ALL occurrences of that are >NOT part of the original XML structure from the contents read from the XML >file: > >$fileID = fopen('/phil/xml/news.xml', 'r') or die('Could not open >XML'); $stuff = fread($fileID, filesize('/phil/xml/news.xml')); >fclose($fileID); > >$stuff contains the contents of news.xml, so I would have to do my >cleanup >in $stuff, BUT.. I can't use preg_replace for tags because then ALL of my >tags would be altered and xml_parse_into_struct would fail altogether. > >How then do I make sure to ONLY remove the from each XML >row >body and nowhere else??? > >Thanx >Phil > > > > Michael G. Southwell ================================= DNEBA Enterprises 81 South Road Bloomingdale, NJ 07403-1419 973/492-7873 (voice and fax) southwell at dneba.com http://www.dneba.com ====================================================== --- Unsubscribe at http://nyphp.org/list/ --- From zaunere at yahoo.com Thu Jan 30 11:03:59 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 30 Jan 2003 08:03:59 -0800 (PST) Subject: Zeev on ZE2 - Just Starting In-Reply-To: <200301301437.h0UET0bt007744@parsec.nyphp.org> Message-ID: <20030130160359.18665.qmail@web12807.mail.yahoo.com> Yes, it's a go this time. http://zend.interwise.com/zend/iSeminar/WV2160/ ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From nyphp at websapp.com Thu Jan 30 11:07:22 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 30 Jan 2003 11:07:22 -0500 Subject: [nycphp-talk] Zeev on ZE2 - Yes, at 11am Today In-Reply-To: <200301301437.h0UET0bH007744@parsec.nyphp.org> Message-ID: Happening NOW :) Please join.... > -----Original Message----- > From: Hans Zaunere [mailto:hans at nyphp.org] > Sent: Thursday, January 30, 2003 9:29 AM > To: NYPHP Talk > Subject: [nycphp-talk] Zeev on ZE2 - Yes, at 11am Today > > > > Hello again, > > Today it seems things are straightened out, and the talk will > begin at 11am > today. That URL again: > > http://zend.interwise.com/zend/iSeminar/WV2160/ > > See you there, > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- > From chris at psydeshow.org Thu Jan 30 11:14:18 2003 From: chris at psydeshow.org (Chris Snyder) Date: Thu, 30 Jan 2003 11:14:18 -0500 Subject: [nycphp-talk] Problem with xml_parse_into_struct In-Reply-To: <200301300657.h0U6v6Z7098764@parsec.nyphp.org> References: <200301300657.h0U6v6Z7098764@parsec.nyphp.org> Message-ID: <3E394F5A.3050606@psydeshow.org> Phil Powell wrote: >I have various XML files that might contain <> tags inside the element body, for example: > >Today on 1/29/03, stuff happened > > > I've been wondering about this, too. I've been parsing RSS newsfeeds (which sounds like the format you might want to try to get your data in if you have any control over it-- http://web.resource.org/rss/1.0/ ). The RSS spec declares that html entities must be escaped, which makes it easy to parse. But then I decided to try building templates using XML and ran into exactly this problem-- I'm not an XML expert, but I wonder two things: 1) Can I wrap blocks of HTML with CDATA tags to cause the parser to ignore the tags? 2) Should there be a parser function created (as part of PHP) that flags certain tags as containing unparseable data? I didn't have time to try 1 yet and 2 is a little out of my league. Is there another way besides brute-force tag rewriting? chris. -- HIP HOP CLOWN MONTH coming soon to a metropolis near you http://hiphopclown.org/ From fields at surgam.net Thu Jan 30 11:56:24 2003 From: fields at surgam.net (Adam Fields) Date: Thu, 30 Jan 2003 11:56:24 -0500 Subject: What breaks in 4.3? Message-ID: <20030130165624.GD12131@eye.surgam.net> I'm planning on upgrading from 4.1 to 4.3. I've heard some reports that some things break in 4.3, but no specifics. What should I be on the lookout for? -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From nyphp at websapp.com Thu Jan 30 13:11:53 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 30 Jan 2003 13:11:53 -0500 Subject: Today's iSeminar Message-ID: Good afternoon, We would like to know how many attendees where at Zend's iSeminar today that came from our great NYPHP group. Please stick your email or name here: http://nyphp.org/iseminar/ so that we can see the results. Thanks, Daniel Kushner Vice President, New York PHP http://nyphp.org/ daniel at nyphp.org From weslists at anapraxis.com Thu Jan 30 13:27:18 2003 From: weslists at anapraxis.com (Weston Houghton) Date: Thu, 30 Jan 2003 13:27:18 -0500 Subject: [nycphp-talk] Today's iSeminar In-Reply-To: <200301301815.h0UIFAl9018346@parsec.nyphp.org> Message-ID: <76BCB531-3480-11D7-852D-000393A95C72@anapraxis.com> I tired, but it seems that the iseminar software doesn't want to work on Macs... Wes On Thursday, January 30, 2003, at 01:15 PM, Daniel Kushner wrote: > Good afternoon, > > We would like to know how many attendees where at Zend's iSeminar > today that > came from our great NYPHP group. Please stick your email or name here: > http://nyphp.org/iseminar/ so that we can see the results. > > Thanks, > Daniel Kushner > Vice President, New York PHP > http://nyphp.org/ > daniel at nyphp.org > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > ------------------------------------------------------------------------ --- The selection and placement of letters on this page was determined automatically by a computer program. Any resemblance to actual words, sentences, or paragraphs is pure coincidence, and no liability will be assumed for such coincidences. ------------------------------------------------------------------------ --- From nsr81 at ny-tech.net Thu Jan 30 14:28:54 2003 From: nsr81 at ny-tech.net (Nasir Zubair) Date: Thu, 30 Jan 2003 14:28:54 -0500 Subject: Ghost Email Address In-Reply-To: <200301301827.h0UIREqV019168@parsec.nyphp.org> Message-ID: <000a01c2c895$d53492f0$49eeca97@nyt001> Hi, Can anyone tell me what "Add Ghost Email" is for on http://nyphp.org/edituserform.php? - Nasir From southwell at dneba.com Thu Jan 30 14:31:06 2003 From: southwell at dneba.com (Michael Southwell) Date: Thu, 30 Jan 2003 14:31:06 -0500 Subject: [nycphp-talk] Ghost Email Address In-Reply-To: <200301301929.h0UJSumZ020748@parsec.nyphp.org> Message-ID: <5.1.0.14.2.20030130143008.00b38d28@mail.optonline.net> It is for users who have several email addresses; it permits them to post to the list even while sending from an address different from the one that is subscribed. At 02:28 PM 1/30/2003, you wrote: >Hi, > >Can anyone tell me what "Add Ghost Email" is for on >http://nyphp.org/edituserform.php? > >- Nasir > > > >--- Unsubscribe at http://nyphp.org/list/ --- Michael G. Southwell ================================= DNEBA Enterprises 81 South Road Bloomingdale, NJ 07403-1419 973/492-7873 (voice and fax) southwell at dneba.com http://www.dneba.com ====================================================== From nsr81 at ny-tech.net Thu Jan 30 14:32:58 2003 From: nsr81 at ny-tech.net (Nasir Zubair) Date: Thu, 30 Jan 2003 14:32:58 -0500 Subject: [nycphp-talk] Ghost Email Address In-Reply-To: <200301301931.h0UJVBqV021434@parsec.nyphp.org> Message-ID: <000b01c2c896$66995690$49eeca97@nyt001> Thanks :) -----Original Message----- From: Michael Southwell [mailto:southwell at dneba.com] Sent: Thursday, January 30, 2003 2:31 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Ghost Email Address It is for users who have several email addresses; it permits them to post to the list even while sending from an address different from the one that is subscribed. At 02:28 PM 1/30/2003, you wrote: >Hi, > >Can anyone tell me what "Add Ghost Email" is for on >http://nyphp.org/edituserform.php? > >- Nasir > > > > Michael G. Southwell ================================= DNEBA Enterprises 81 South Road Bloomingdale, NJ 07403-1419 973/492-7873 (voice and fax) southwell at dneba.com http://www.dneba.com ====================================================== --- Unsubscribe at http://nyphp.org/list/ --- From nsr81 at ny-tech.net Thu Jan 30 14:35:52 2003 From: nsr81 at ny-tech.net (Nasir Zubair) Date: Thu, 30 Jan 2003 14:35:52 -0500 Subject: [nycphp-talk] Ghost Email Address In-Reply-To: <200301301931.h0UJVBqV021434@parsec.nyphp.org> Message-ID: <000001c2c896$ce8fdee0$49eeca97@nyt001> Now another one, how do I remove a Ghost address? -----Original Message----- From: Michael Southwell [mailto:southwell at dneba.com] Sent: Thursday, January 30, 2003 2:31 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Ghost Email Address It is for users who have several email addresses; it permits them to post to the list even while sending from an address different from the one that is subscribed. At 02:28 PM 1/30/2003, you wrote: From kenneth at ylayali.net Thu Jan 30 14:46:53 2003 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Thu, 30 Jan 2003 14:46:53 -0500 Subject: [nycphp-talk] Today's iSeminar In-Reply-To: <200301301827.h0UIREvD019168@parsec.nyphp.org> References: <200301301827.h0UIREvD019168@parsec.nyphp.org> Message-ID: <20030130144653.078a9c28.kenneth@ylayali.net> On Thu, 30 Jan 2003 13:27:14 -0500 Weston Houghton wrote: > > I tired, but it seems that the iseminar software doesn't want to work > > on Macs... > > Wes > or linux. i was curious, but not enough to reboot. > > On Thursday, January 30, 2003, at 01:15 PM, Daniel Kushner wrote: > > > Good afternoon, > > > > We would like to know how many attendees where at Zend's iSeminar > > today that > > came from our great NYPHP group. Please stick your email or name > > here: http://nyphp.org/iseminar/ so that we can see the results. > > > > Thanks, > > Daniel Kushner > > Vice President, New York PHP > > http://nyphp.org/ > > daniel at nyphp.org > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > --- --- > The selection and placement of letters on this page was > determined automatically by a computer program. Any > resemblance to actual words, sentences, or paragraphs is > pure coincidence, and no liability will be assumed for > such coincidences. > --------------------------------------------------------------------- > --- --- > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From zaunere at yahoo.com Thu Jan 30 16:32:13 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 30 Jan 2003 13:32:13 -0800 (PST) Subject: [nycphp-talk] Ghost Email Address In-Reply-To: <200301301936.h0UJZsuP022820@parsec.nyphp.org> Message-ID: <20030130213213.86101.qmail@web12805.mail.yahoo.com> --- Nasir Zubair wrote: > Now another one, how do I remove a Ghost address? Next version :) Having a dozen Ghost Addresses won't do any harm; it just looks sloppy. Hans > > -----Original Message----- > From: Michael Southwell [mailto:southwell at dneba.com] > Sent: Thursday, January 30, 2003 2:31 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Ghost Email Address > > > It is for users who have several email addresses; it permits them to > post > to the list even while sending from an address different from the one > that > is subscribed. > > At 02:28 PM 1/30/2003, you wrote: > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From jkapron at NewAgeWeb.com Fri Jan 31 00:12:39 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Fri, 31 Jan 2003 00:12:39 -0500 Subject: talk list test Message-ID: <001701c2c8e7$62855120$de01a8c0@duron.lan.newageweb.com> Please disregard. -- 42.7% of all statistics are made up on the spot. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at NewAgeWeb.com Fri Jan 31 08:02:54 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Fri, 31 Jan 2003 08:02:54 -0500 Subject: files vs. mySQL session handling Message-ID: <000801c2c929$124d67a0$de01a8c0@duron.lan.newageweb.com> I just performed some benchmarking and noticed that the default file session handler is about 3.5 times faster than one using mySQL on localhost. I need a shared session data storage for multiple web servers, but did not expect mySQL session handling to be that much slower than files. I'm wondering if anyone on the list have done anything like that and would like to share their experience. Thanks, Jerry -- 42.7% of all statistics are made up on the spot. From smanes at magpie.com Fri Jan 31 08:42:55 2003 From: smanes at magpie.com (Steve Manes) Date: Fri, 31 Jan 2003 08:42:55 -0500 Subject: [nycphp-talk] files vs. mySQL session handling In-Reply-To: <200301311301.h0VD0Spl040784@parsec.nyphp.org> Message-ID: <5.1.1.6.2.20030131082609.0237ffc0@192.168.111.6> At 08:00 AM 1/31/2003 -0500, Jerry Kapron wrote: >I just performed some benchmarking and noticed that the default file session >handler is about 3.5 times faster than one using mySQL on localhost. I need >a shared session data storage for multiple web servers, but did not expect >mySQL session handling to be that much slower than files. I'm wondering if >anyone on the list have done anything like that and would like to share >their experience. This makes sense, especially if you don't have a persistent MySQL connection. MySQL has to verify the connection, process the query, hit the index, fetch the data and return it to the API. A 'files' approach just needs to open the session file, the data for which is probably already cached by the OS. If you want even more speed, put those session files on a RAM disk. As you said, a MySQL session solution comes into its own when you're dealing with multiple web servers, although you could also do it over NFS (but NFS is pretty slow too). Also, the 'files' solution doesn't do a very good job of cleaning up after itself. Thousands of stale session files are going to slow down directory search times. You could build a custom session server which serves session data from a memory-bound hash over a socket. From feeney at un.org Fri Jan 31 08:47:44 2003 From: feeney at un.org (Griffith Feeney) Date: Fri, 31 Jan 2003 08:47:44 -0500 Subject: Apache/PHP Authentication - Again Message-ID: Thanks to those who replied to my earlier post (below). It's taken me a while to get on with this. The files I need to protect are mostly binary, so I can't use a solution that involves inserting authentication code at the top of PHP pages. The approach suggested in http://www.zend.com/zend/trick/tricks-august-2001.php (put the files outside the document root and use PHP to read them, supply headers, and forward) will work, but it would be much simpler to be able to password protect all files in any specified set of directories using Apache .htaccess. The problem with this is updating the user list, which is large and in MySQL. The web hosting service doesn't support mod_auth_mysql. What I would like to do is 1 set up .htaccess protected directories with a single user name and password, 2 use a PHP page to authenticate users (user by user) against a MySQL database, and 3 have the PHP page send requests from authenticated users to the server with the basic authentication header, so that the Apache authentication window does *not* pop-up, the server having already received basic authentication credentials. This last step is not possible directly, but I thought that it might be accomplished indirectly using a redirect header, like this. This doesn't work. Is there any way to make this idea work? From chris at psydeshow.org Fri Jan 31 09:54:21 2003 From: chris at psydeshow.org (Chris Snyder) Date: Fri, 31 Jan 2003 09:54:21 -0500 Subject: [nycphp-talk] Apache/PHP Authentication - Again In-Reply-To: <200301311348.h0VDm4rZ043051@parsec.nyphp.org> References: <200301311348.h0VDm4rZ043051@parsec.nyphp.org> Message-ID: <3E3A8E1D.3030603@psydeshow.org> Griffith Feeney wrote: >The approach suggested in >http://www.zend.com/zend/trick/tricks-august-2001.php (put the files >outside the document root and use PHP to read them, supply headers, and >forward) will work, but it would be much simpler to be able to password >protect all files in any specified set of directories using Apache >htaccess. The problem with this is updating the user list, which is large >and in MySQL. The web hosting service doesn't support mod_auth_mysql. > > > This is probably off-topic since it sounds like you've decided on an .htaccess solution, but I have a project called Fiatlux (http://chxo.com/berylium/software/fiatlux/ ) that creates password-protected fileshares using PHP. It currently uses a flat file user database, but could easily be extended to incorporate MySQL. chris. From paul at weinberg.com Fri Jan 31 10:00:19 2003 From: paul at weinberg.com (paul at weinberg.com) Date: Fri, 31 Jan 2003 07:00:19 -0800 (PST) Subject: [nycphp-talk] Apache/PHP Authentication - Again Message-ID: <20030131070021.29003.h010.c000.wm@mail.weinberg.com.criticalpath.net> OK, here is a silly idea: After you authenticate in your code, you make an HTTP request to yourself to get the file. That should go through Apache again. You have to supply the authentication headers. You then just stream the byes back to the client. NOTE: There ia deadlock potential if the number of Apache children is set too low. Paul BTW, there is always mod_perl :) On Fri, 31 Jan 2003 06:57:03 -0800 (PST), "Griffith Feeney" wrote: > > Thanks to those who replied to my earlier post (below). > It's taken me a > while to get on with this. > > The files I need to protect are mostly binary, so I > can't use a solution > that involves inserting authentication code at the top > of PHP pages. > > The approach suggested in > http://www.zend.com/zend/trick/tricks-august-2001.php > (put the files > outside the document root and use PHP to read them, > supply headers, and > forward) will work, but it would be much simpler to be > able to password > protect all files in any specified set of directories > using Apache > htaccess. The problem with this is updating the user > list, which is large > and in MySQL. The web hosting service doesn't support > mod_auth_mysql. > > What I would like to do is > > 1 set up .htaccess protected directories with a single > user name and > password, > > 2 use a PHP page to authenticate users (user by user) > against a MySQL > database, and > > 3 have the PHP page send requests from authenticated > users to the server > with the basic authentication header, so that the > Apache authentication > window does *not* pop-up, the server having already > received basic > authentication credentials. > > This last step is not possible directly, but I thought > that it might be > accomplished indirectly using a redirect header, like > this. > > http://www.domainname.com/members/membershome.php'); > header('Authorization: base64_encode("abc:123")'); > ?> > > This doesn't work. Is there any way to make this idea > work? > > > > --- Unsubscribe at http://nyphp.org/list/ --- From JayeshSh at netscape.net Fri Jan 31 10:56:06 2003 From: JayeshSh at netscape.net (Jayesh Sheth) Date: Fri, 31 Jan 2003 10:56:06 -0500 Subject: [nycphp-talk] Problem with xml_parse_into_struct References: <200301301614.h0UGEKqH014557@parsec.nyphp.org> Message-ID: <3E3A9C96.2010302@netscape.net> Hello Chris, There is a ready-made PHP-Pear RSS XML class ( http://pear.php.net/manual/en/packages.xml.xml_rss.php ). You can see it being used at my Mozblogs at MozTips site: http://www.moztips.com/mozblogs , a very experimental and very basic web based RSS feed reader. Regards, - Jay Sheth chris at psydeshow.org wrote: >Phil Powell wrote: > > > >>I have various XML files that might contain <> tags inside the element body, for example: >> >>Today on 1/29/03, stuff happened >> >> >> >> >> >I've been wondering about this, too. I've been parsing RSS newsfeeds >(which sounds like the format you might want to try to get your data in >if you have any control over it-- http://web.resource.org/rss/1.0/ ). >The RSS spec declares that html entities must be escaped, which makes it >easy to parse. > >But then I decided to try building templates using XML and ran into >exactly this problem-- I'm not an XML expert, but I wonder two things: > >1) Can I wrap blocks of HTML with CDATA tags to cause the parser to >ignore the tags? >2) Should there be a parser function created (as part of PHP) that flags >certain tags as containing unparseable data? > >I didn't have time to try 1 yet and 2 is a little out of my league. Is >there another way besides brute-force tag rewriting? > > chris. > > > -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop at Netscape! http://shopnow.netscape.com/ From adam at trachtenberg.com Fri Jan 31 11:40:26 2003 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 31 Jan 2003 11:40:26 -0500 (EST) Subject: [nycphp-talk] files vs. mySQL session handling In-Reply-To: <200301311302.h0VD0St1040784@parsec.nyphp.org> Message-ID: On Fri, 31 Jan 2003, Jerry Kapron wrote: > I need a shared session data storage for multiple web servers, but > did not expect mySQL session handling to be that much slower than > files. Check out msession (http://www.php.net/msession). Unfortunately, I have no first-hand experience to share. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jim at nettmedia.com Fri Jan 31 12:37:28 2003 From: jim at nettmedia.com (Jim Musil) Date: Fri, 31 Jan 2003 12:37:28 -0500 Subject: Output name of Variable Message-ID: It seems like it would be helpful if there were a way to grab the name assigned to a variable and output it. Is there already a function like this? I would use this mainly for tracing and reporting. So, if I had a simple function show_variable($var), it would not only output the value assigned to the variable, but would also show the name of the variable itself. Am I missing it? Jim Musil Nettmedia, Senior Developer 345 Seventh Ave., 24th Floor. New York, NY 10001 Tel. 212.629.0004 x 131 From brian at preston-campbell.com Fri Jan 31 12:40:36 2003 From: brian at preston-campbell.com (Brian) Date: Fri, 31 Jan 2003 12:40:36 -0500 Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200301311738.h0VHbVrX049918@parsec.nyphp.org> References: <200301311738.h0VHbVrX049918@parsec.nyphp.org> Message-ID: <200301311240.36106.brian@preston-campbell.com> I have never used it, so I may be wrong, but I think what you need is $$variable On Friday 31 January 2003 12:37 pm, Jim Musil wrote: > It seems like it would be helpful if there were a way to grab the name > assigned to a variable and output it. Is there already a function like > this? > > I would use this mainly for tracing and reporting. So, if I had a simple > function show_variable($var), it would not only output the value assigned > to the variable, but would also show the name of the variable itself. > > Am I missing it? > > > Jim Musil > > Nettmedia, Senior Developer > 345 Seventh Ave., 24th Floor. > New York, NY 10001 > Tel. 212.629.0004 x 131 > > > > --- Unsubscribe at http://nyphp.org/list/ --- From jim at nettmedia.com Fri Jan 31 12:51:36 2003 From: jim at nettmedia.com (Jim Musil) Date: Fri, 31 Jan 2003 12:51:36 -0500 Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200301311741.h0VHfJqL050636@parsec.nyphp.org> Message-ID: I don't think so. I think this would allow the name of a variable to be dynamic. eg: $foo = "bar"; $bar = "This is the value of my variable"; ... echo $$foo; ... will output "This is the value of my variable" Jim Musil Nettmedia, Senior Developer 345 Seventh Ave., 24th Floor. New York, NY 10001 Tel. 212.629.0004 x 131 On 1/31/03 12:41 PM, "Brian" wrote: > I have never used it, so I may be wrong, but I think what you need is > > $$variable > > On Friday 31 January 2003 12:37 pm, Jim Musil wrote: >> It seems like it would be helpful if there were a way to grab the name >> assigned to a variable and output it. Is there already a function like >> this? >> >> I would use this mainly for tracing and reporting. So, if I had a simple >> function show_variable($var), it would not only output the value assigned >> to the variable, but would also show the name of the variable itself. >> >> Am I missing it? >> >> >> Jim Musil >> >> Nettmedia, Senior Developer >> 345 Seventh Ave., 24th Floor. >> New York, NY 10001 >> Tel. 212.629.0004 x 131 >> >> >> >> > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From brian at preston-campbell.com Fri Jan 31 12:54:53 2003 From: brian at preston-campbell.com (Brian) Date: Fri, 31 Jan 2003 12:54:53 -0500 Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200301311752.h0VHpdrX051428@parsec.nyphp.org> References: <200301311752.h0VHpdrX051428@parsec.nyphp.org> Message-ID: <200301311254.53666.brian@preston-campbell.com> I was kinda wondering how that worked. Doesn't really apply to the original question then. Answered one for me then, thanks. Brian On Friday 31 January 2003 12:51 pm, Jim Musil wrote: > I don't think so. I think this would allow the name of a variable to be > dynamic. > > eg: > > $foo = "bar"; > $bar = "This is the value of my variable"; > > .. > > echo $$foo; > > .. will output "This is the value of my variable" > > > > Jim Musil > > Nettmedia, Senior Developer > 345 Seventh Ave., 24th Floor. > New York, NY 10001 > Tel. 212.629.0004 x 131 > > On 1/31/03 12:41 PM, "Brian" wrote: > > I have never used it, so I may be wrong, but I think what you need is > > > > $$variable > > > > On Friday 31 January 2003 12:37 pm, Jim Musil wrote: > >> It seems like it would be helpful if there were a way to grab the name > >> assigned to a variable and output it. Is there already a function like > >> this? > >> > >> I would use this mainly for tracing and reporting. So, if I had a simple > >> function show_variable($var), it would not only output the value > >> assigned to the variable, but would also show the name of the variable > >> itself. > >> > >> Am I missing it? > >> > >> > >> Jim Musil > >> > >> Nettmedia, Senior Developer > >> 345 Seventh Ave., 24th Floor. > >> New York, NY 10001 > >> Tel. 212.629.0004 x 131 > > --- Unsubscribe at http://nyphp.org/list/ --- From agfische at email.smith.edu Fri Jan 31 12:59:58 2003 From: agfische at email.smith.edu (Aaron Fischer) Date: Fri, 31 Jan 2003 12:59:58 -0500 Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200301311800.h0VI0dnD052274@parsec.nyphp.org> Message-ID: I think it's simpler then that: $foo="bar"; then: echo $foo; will output the value of the variable Aaron On Friday, January 31, 2003, at 01:00 PM, Brian wrote: > I was kinda wondering how that worked. Doesn't really apply to the > original > question then. Answered one for me then, thanks. > > Brian > > On Friday 31 January 2003 12:51 pm, Jim Musil wrote: >> I don't think so. I think this would allow the name of a variable to >> be >> dynamic. >> >> eg: >> >> $foo = "bar"; >> $bar = "This is the value of my variable"; >> >> .. >> >> echo $$foo; >> >> .. will output "This is the value of my variable" >> >> >> >> Jim Musil >> >> Nettmedia, Senior Developer >> 345 Seventh Ave., 24th Floor. >> New York, NY 10001 >> Tel. 212.629.0004 x 131 >> >> On 1/31/03 12:41 PM, "Brian" wrote: >>> I have never used it, so I may be wrong, but I think what you need is >>> >>> $$variable >>> >>> On Friday 31 January 2003 12:37 pm, Jim Musil wrote: >>>> It seems like it would be helpful if there were a way to grab the >>>> name >>>> assigned to a variable and output it. Is there already a function >>>> like >>>> this? >>>> >>>> I would use this mainly for tracing and reporting. So, if I had a >>>> simple >>>> function show_variable($var), it would not only output the value >>>> assigned to the variable, but would also show the name of the >>>> variable >>>> itself. >>>> >>>> Am I missing it? >>>> >>>> >>>> Jim Musil >>>> >>>> Nettmedia, Senior Developer >>>> 345 Seventh Ave., 24th Floor. >>>> New York, NY 10001 >>>> Tel. 212.629.0004 x 131 >> >> > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From jim at nettmedia.com Fri Jan 31 13:06:32 2003 From: jim at nettmedia.com (Jim Musil) Date: Fri, 31 Jan 2003 13:06:32 -0500 Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200301311804.h0VI3vqL052974@parsec.nyphp.org> Message-ID: Right. But I want it to output the NAME of the variable, not the VALUE... Jim Musil Nettmedia, Senior Developer 345 Seventh Ave., 24th Floor. New York, NY 10001 Tel. 212.629.0004 x 131 On 1/31/03 1:03 PM, "Aaron Fischer" wrote: > I think it's simpler then that: > > $foo="bar"; > > then: > > echo $foo; > will output the value of the variable > > Aaron > > > On Friday, January 31, 2003, at 01:00 PM, Brian wrote: > >> I was kinda wondering how that worked. Doesn't really apply to the >> original >> question then. Answered one for me then, thanks. >> >> Brian >> >> On Friday 31 January 2003 12:51 pm, Jim Musil wrote: >>> I don't think so. I think this would allow the name of a variable to >>> be >>> dynamic. >>> >>> eg: >>> >>> $foo = "bar"; >>> $bar = "This is the value of my variable"; >>> >>> .. >>> >>> echo $$foo; >>> >>> .. will output "This is the value of my variable" >>> >>> >>> >>> Jim Musil >>> >>> Nettmedia, Senior Developer >>> 345 Seventh Ave., 24th Floor. >>> New York, NY 10001 >>> Tel. 212.629.0004 x 131 >>> >>> On 1/31/03 12:41 PM, "Brian" wrote: >>>> I have never used it, so I may be wrong, but I think what you need is >>>> >>>> $$variable >>>> >>>> On Friday 31 January 2003 12:37 pm, Jim Musil wrote: >>>>> It seems like it would be helpful if there were a way to grab the >>>>> name >>>>> assigned to a variable and output it. Is there already a function >>>>> like >>>>> this? >>>>> >>>>> I would use this mainly for tracing and reporting. So, if I had a >>>>> simple >>>>> function show_variable($var), it would not only output the value >>>>> assigned to the variable, but would also show the name of the >>>>> variable >>>>> itself. >>>>> >>>>> Am I missing it? >>>>> >>>>> >>>>> Jim Musil >>>>> >>>>> Nettmedia, Senior Developer >>>>> 345 Seventh Ave., 24th Floor. >>>>> New York, NY 10001 >>>>> Tel. 212.629.0004 x 131 >>> >>> >> >> >> >> >> >> >> > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From sklar at sklar.com Fri Jan 31 13:14:53 2003 From: sklar at sklar.com (David Sklar) Date: Fri, 31 Jan 2003 13:14:53 -0500 Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200301311807.h0VI6Zs5053678@parsec.nyphp.org> Message-ID: So use the $$var construct but pass the name to the function. E.g. function display_var($varname) { print $varname; var_dump($$varname); // or print_r($$varname); } -dave function display_var($varname) { if (is_array($$varname)) { print "$varname is an array:\ " > -----Original Message----- > From: Jim Musil [mailto:jim at nettmedia.com] > Sent: Friday, January 31, 2003 1:07 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Output name of Variable > > > > Right. But I want it to output the NAME of the variable, not the VALUE... > > > Jim Musil > > Nettmedia, Senior Developer > 345 Seventh Ave., 24th Floor. > New York, NY 10001 > Tel. 212.629.0004 x 131 > > > > On 1/31/03 1:03 PM, "Aaron Fischer" wrote: > > > I think it's simpler then that: > > > > $foo="bar"; > > > > then: > > > > echo $foo; > > will output the value of the variable > > > > Aaron > > > > > > On Friday, January 31, 2003, at 01:00 PM, Brian wrote: > > > >> I was kinda wondering how that worked. Doesn't really apply to the > >> original > >> question then. Answered one for me then, thanks. > >> > >> Brian > >> > >> On Friday 31 January 2003 12:51 pm, Jim Musil wrote: > >>> I don't think so. I think this would allow the name of a variable to > >>> be > >>> dynamic. > >>> > >>> eg: > >>> > >>> $foo = "bar"; > >>> $bar = "This is the value of my variable"; > >>> > >>> .. > >>> > >>> echo $$foo; > >>> > >>> .. will output "This is the value of my variable" > >>> > >>> > >>> > >>> Jim Musil > >>> > >>> Nettmedia, Senior Developer > >>> 345 Seventh Ave., 24th Floor. > >>> New York, NY 10001 > >>> Tel. 212.629.0004 x 131 > >>> > >>> On 1/31/03 12:41 PM, "Brian" wrote: > >>>> I have never used it, so I may be wrong, but I think what you need is > >>>> > >>>> $$variable > >>>> > >>>> On Friday 31 January 2003 12:37 pm, Jim Musil wrote: > >>>>> It seems like it would be helpful if there were a way to grab the > >>>>> name > >>>>> assigned to a variable and output it. Is there already a function > >>>>> like > >>>>> this? > >>>>> > >>>>> I would use this mainly for tracing and reporting. So, if I had a > >>>>> simple > >>>>> function show_variable($var), it would not only output the value > >>>>> assigned to the variable, but would also show the name of the > >>>>> variable > >>>>> itself. > >>>>> > >>>>> Am I missing it? > >>>>> > >>>>> > >>>>> Jim Musil > >>>>> > >>>>> Nettmedia, Senior Developer > >>>>> 345 Seventh Ave., 24th Floor. > >>>>> New York, NY 10001 > >>>>> Tel. 212.629.0004 x 131 > >>> > >>> > >> > >> > >> > >> > >> > >> > >> > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From ophir at prusak.com Fri Jan 31 13:14:36 2003 From: ophir at prusak.com (Ophir Prusak) Date: Fri, 31 Jan 2003 13:14:36 -0500 Subject: [nycphp-talk] Output name of Variable References: <200301311807.h0VI6ZrZ053678@parsec.nyphp.org> Message-ID: <030001c2c954$9d21a960$bf65a8c0@tag1002> I was recently trying to solve the same problem myself. I asked around at work and the consensus seems to be that it's impossible for plain variables. My solution ended up being passing the name of the variable to the function and not the variable itself. Then you can just use $$name to get the value. Please let me know if you manage to pull it off some other way. Ophir ----- Original Message ----- From: "Jim Musil" To: "NYPHP Talk" Sent: Friday, January 31, 2003 1:06 PM Subject: Re: [nycphp-talk] Output name of Variable > > Right. But I want it to output the NAME of the variable, not the VALUE... > > > Jim Musil > > Nettmedia, Senior Developer > 345 Seventh Ave., 24th Floor. > New York, NY 10001 > Tel. 212.629.0004 x 131 > > > > On 1/31/03 1:03 PM, "Aaron Fischer" wrote: > > > I think it's simpler then that: > > > > $foo="bar"; > > > > then: > > > > echo $foo; > > will output the value of the variable > > > > Aaron > > > > > > On Friday, January 31, 2003, at 01:00 PM, Brian wrote: > > > >> I was kinda wondering how that worked. Doesn't really apply to the > >> original > >> question then. Answered one for me then, thanks. > >> > >> Brian > >> > >> On Friday 31 January 2003 12:51 pm, Jim Musil wrote: > >>> I don't think so. I think this would allow the name of a variable to > >>> be > >>> dynamic. > >>> > >>> eg: > >>> > >>> $foo = "bar"; > >>> $bar = "This is the value of my variable"; > >>> > >>> .. > >>> > >>> echo $$foo; > >>> > >>> .. will output "This is the value of my variable" > >>> > >>> > >>> > >>> Jim Musil > >>> > >>> Nettmedia, Senior Developer > >>> 345 Seventh Ave., 24th Floor. > >>> New York, NY 10001 > >>> Tel. 212.629.0004 x 131 > >>> > >>> On 1/31/03 12:41 PM, "Brian" wrote: > >>>> I have never used it, so I may be wrong, but I think what you need is > >>>> > >>>> $$variable > >>>> > >>>> On Friday 31 January 2003 12:37 pm, Jim Musil wrote: > >>>>> It seems like it would be helpful if there were a way to grab the > >>>>> name > >>>>> assigned to a variable and output it. Is there already a function > >>>>> like > >>>>> this? > >>>>> > >>>>> I would use this mainly for tracing and reporting. So, if I had a > >>>>> simple > >>>>> function show_variable($var), it would not only output the value > >>>>> assigned to the variable, but would also show the name of the > >>>>> variable > >>>>> itself. > >>>>> > >>>>> Am I missing it? > >>>>> > >>>>> > >>>>> Jim Musil > >>>>> > >>>>> Nettmedia, Senior Developer > >>>>> 345 Seventh Ave., 24th Floor. > >>>>> New York, NY 10001 > >>>>> Tel. 212.629.0004 x 131 > >>> > >>> > >> > >> > >> > >> > >> > >> > >> > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From nyphp at enobrev.com Fri Jan 31 13:24:48 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 31 Jan 2003 13:24:48 -0500 Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200301311737.h0VHbVnH049918@parsec.nyphp.org> Message-ID: <004f01c2c956$09c5bec0$96721d18@enobrev> I can't seem to find much about finding the name of a variable, as I can see how it would be helpful. I suppose, if you wanted to change your coding methods, you could have a vars array. Where you could: $vars = array(); ... In the beginning of every script (or in your config file). The rest of your page using $vars['name'] throughout in place of variables and then for debugging something like: foreach($vars as $name => $value) { print $name . ': ' . $value . '
'; } Come to think of it, I kinda like the idea (could probably make some great variable management functions this way). I suppose that would work for an overall means of debugging without inserting debug variable display functions throughout the script. Otherwise, I like David's solution. Anyways... if you find a way, please pass it on... Mark -----Original Message----- From: Jim Musil [mailto:jim at nettmedia.com] Sent: Friday, January 31, 2003 12:38 PM To: NYPHP Talk Subject: [nycphp-talk] Output name of Variable It seems like it would be helpful if there were a way to grab the name assigned to a variable and output it. Is there already a function like this? I would use this mainly for tracing and reporting. So, if I had a simple function show_variable($var), it would not only output the value assigned to the variable, but would also show the name of the variable itself. Am I missing it? Jim Musil Nettmedia, Senior Developer 345 Seventh Ave., 24th Floor. New York, NY 10001 Tel. 212.629.0004 x 131 --- Unsubscribe at http://nyphp.org/list/ --- From jonbaer at jonbaer.net Fri Jan 31 13:18:39 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 31 Jan 2003 13:18:39 -0500 Subject: [nycphp-talk] Output name of Variable References: <200301311806.h0VI6ZpL053678@parsec.nyphp.org> Message-ID: <008201c2c955$2d977920$6600a8c0@laptop> The name of the variable is what value you initially gave it ... Example: $var = "Hello"; $$var = "World"; echo "Hello $$var"; // produces $Hello - Jon ----- Original Message ----- From: "Jim Musil" To: "NYPHP Talk" Sent: Friday, January 31, 2003 1:06 PM Subject: Re: [nycphp-talk] Output name of Variable > > Right. But I want it to output the NAME of the variable, not the VALUE... > From jim at nettmedia.com Fri Jan 31 13:34:48 2003 From: jim at nettmedia.com (Jim Musil) Date: Fri, 31 Jan 2003 13:34:48 -0500 Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200301311828.h0VIRwqL056566@parsec.nyphp.org> Message-ID: That only seems to work with double quotation marks. ( Which doesn't mean it's not the solution... ) $var = "Hello"; $$var = "World"; echo "$$var"; // Produces $Hello echo '

'; echo $$var; // Produces World echo '

'; echo '$$var'; // Produces $$var On 1/31/03 1:27 PM, "Jon Baer" wrote: > $var = "Hello"; > $$var = "World"; > echo "Hello $$var"; // produces $Hello From bfeqx44002 at sneakemail.com Fri Jan 31 14:14:28 2003 From: bfeqx44002 at sneakemail.com (gadhra) Date: Fri, 31 Jan 2003 14:14:28 -0500 Subject: [nycphp-talk] Output name of Variable References: <200301311738.h0VHbVs9049918@parsec.nyphp.org> Message-ID: <13166-75676@sneakemail.com> This is kind of a different tack - I don't know if it could help you or not. It uses a function call, so you have to be careful of the variable scope. Function is something like: function show_variable($arr,$var) { foreach ($arr as $key=>$val) { if ($key == $var) { $str = "$$key = $val"; return $str; } } } /* Then, you can call it like this: */ $test = "Test me!"; echo show_variable(get_defined_vars(),"test"); /* result is $test = Test me! */ Since get_defined_vars() has all the variables in your current scope, it needs to be passed to the function. The need to pass the name of the variable in quotes might be might be suboptimal for you, but I can confirm that this works, kicking out the appropriate string. -- +gadhra+(/s) Jim Musil jim-at-nettmedia.com |NY PHP| wrote: >It seems like it would be helpful if there were a way to grab the name >assigned to a variable and output it. Is there already a function like this? > >I would use this mainly for tracing and reporting. So, if I had a simple >function show_variable($var), it would not only output the value assigned to >the variable, but would also show the name of the variable itself. > >Am I missing it? > > >Jim Musil > >Nettmedia, Senior Developer >345 Seventh Ave., 24th Floor. >New York, NY 10001 >Tel. 212.629.0004 x 131 > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > > > From chun_lam at hotmail.com Fri Jan 31 15:02:02 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Fri, 31 Jan 2003 15:02:02 -0500 Subject: [nycphp-talk] Output name of Variable Message-ID: use $$var ----Original Message Follows---- From: Jim Musil Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] Output name of Variable Date: Fri, 31 Jan 2003 12:37:31 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc10-f6.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 31 Jan 2003 09:38:00 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0VHbVon049918for ; Fri, 31 Jan 2003 12:37:56 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200301311737.h0VHbVon049918 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 31 Jan 2003 17:38:01.0544 (UTC) FILETIME=[8082A480:01C2C94F] It seems like it would be helpful if there were a way to grab the name assigned to a variable and output it. Is there already a function like this? I would use this mainly for tracing and reporting. So, if I had a simple function show_variable($var), it would not only output the value assigned to the variable, but would also show the name of the variable itself. Am I missing it? Jim Musil Nettmedia, Senior Developer 345 Seventh Ave., 24th Floor. New York, NY 10001 Tel. 212.629.0004 x 131 --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From webapprentice at onemain.com Fri Jan 31 16:36:51 2003 From: webapprentice at onemain.com (Webapprentice) Date: Fri, 31 Jan 2003 16:36:51 -0500 Subject: Passing some form values through to a redirected page... References: <200301311815.h0VIEOqx054534@parsec.nyphp.org> Message-ID: <3E3AEC73.2050204@onemain.com> Hi, Upon a successful submission of the form on my PHP page, I use the header("Location: ") function to redirect to another page. I'd like to carry over some form values over to the redirected page to use. Is this possible? Or is there another way to do this? I don't think it's a good idea to embed the second page into the main PHP page as the main PHP page will be very long. Thanks. --Stephen From nyphp at jimbishop.org Fri Jan 31 16:38:44 2003 From: nyphp at jimbishop.org (nyphp at jimbishop.org) Date: Fri, 31 Jan 2003 13:38:44 -0800 (PST) Subject: [nycphp-talk] Passing some form values through to a redirected page... In-Reply-To: <200301312135.h0VLZZpJ061666@parsec.nyphp.org> Message-ID: > Upon a successful submission of the form on my PHP page, I use the > header("Location: ") function to redirect to another page. I'd like > to carry over some form values over to the redirected page to use. > Is this possible? Or is there another way to do this? I don't think > it's a good idea to embed the second page into the main PHP page as > the main PHP page will be very long. the easiest way is to just: Location: http://url.com/?name=value&name1=value1 then on the corresponding grab the values in the $_GET hash. From chun_lam at hotmail.com Fri Jan 31 16:39:26 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Fri, 31 Jan 2003 16:39:26 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... Message-ID: I think the answer is yes, but you have to encode your the all your Form variables including the any equal signs. Matthew ----Original Message Follows---- From: Webapprentice Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] Passing some form values through to a redirected page... Date: Fri, 31 Jan 2003 16:35:35 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc2-f20.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 31 Jan 2003 13:35:57 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h0VLZZon061666for ; Fri, 31 Jan 2003 16:35:54 -0500 (EST)(envelope-from null at nyphp.org) Message-Id: <200301312135.h0VLZZon061666 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 31 Jan 2003 21:35:58.0308 (UTC) FILETIME=[BE1FF240:01C2C970] Hi, Upon a successful submission of the form on my PHP page, I use the header("Location: ") function to redirect to another page. I'd like to carry over some form values over to the redirected page to use. Is this possible? Or is there another way to do this? I don't think it's a good idea to embed the second page into the main PHP page as the main PHP page will be very long. Thanks. --Stephen --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus From steven at sohh.com Fri Jan 31 16:42:27 2003 From: steven at sohh.com (Steven Samuel) Date: Fri, 31 Jan 2003 16:42:27 -0500 Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200301311738.h0VHbVsH049918@parsec.nyphp.org> Message-ID: I think the easiest way to accomplish this would be instead of assigning to a variable, assign it to an associative array. This way you can name the array whatever you'd like and cycle through the name using a foreach loop. Steven Samuel SOHH.com -----Original Message----- From: Jim Musil [mailto:jim at nettmedia.com] Sent: Friday, January 31, 2003 12:38 PM To: NYPHP Talk Subject: [nycphp-talk] Output name of Variable It seems like it would be helpful if there were a way to grab the name assigned to a variable and output it. Is there already a function like this? I would use this mainly for tracing and reporting. So, if I had a simple function show_variable($var), it would not only output the value assigned to the variable, but would also show the name of the variable itself. Am I missing it? Jim Musil Nettmedia, Senior Developer 345 Seventh Ave., 24th Floor. New York, NY 10001 Tel. 212.629.0004 x 131 --- Unsubscribe at http://nyphp.org/list/ --- From webapprentice at onemain.com Fri Jan 31 16:53:40 2003 From: webapprentice at onemain.com (Webapprentice) Date: Fri, 31 Jan 2003 16:53:40 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... References: <200301312139.h0VLcjqx062362@parsec.nyphp.org> Message-ID: <3E3AF064.6020705@onemain.com> Ok, this is an easy way, no doubt. How would I do this via POST? Some form fields may not be presentable to the screen. --Stephen nyphp at jimbishop.org wrote: >>Upon a successful submission of the form on my PHP page, I use the >>header("Location: ") function to redirect to another page. I'd like >>to carry over some form values over to the redirected page to use. >>Is this possible? Or is there another way to do this? I don't think >>it's a good idea to embed the second page into the main PHP page as >>the main PHP page will be very long. >> >> > > >the easiest way is to just: > >Location: http://url.com/?name=value&name1=value1 > >then on the corresponding grab the values in the $_GET hash. > > > > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > From drydell at worldnet.att.net Fri Jan 31 16:56:12 2003 From: drydell at worldnet.att.net (David Rydell) Date: Fri, 31 Jan 2003 16:56:12 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... In-Reply-To: <200301312152.h0VLqMlZ064489@parsec.nyphp.org> Message-ID: how about calling a javascript function to populate a second form (with the action= your redirected page and method=post) with your required data and then submitting it? -----Original Message----- From: Webapprentice [mailto:webapprentice at onemain.com] Sent: Friday, January 31, 2003 4:52 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Passing some form values through to a redirected page... Ok, this is an easy way, no doubt. How would I do this via POST? Some form fields may not be presentable to the screen. --Stephen nyphp at jimbishop.org wrote: >>Upon a successful submission of the form on my PHP page, I use the >>header("Location: ") function to redirect to another page. I'd like >>to carry over some form values over to the redirected page to use. >>Is this possible? Or is there another way to do this? I don't think >>it's a good idea to embed the second page into the main PHP page as >>the main PHP page will be very long. >> >> > > >the easiest way is to just: > >Location: http://url.com/?name=value&name1=value1 > >then on the corresponding grab the values in the $_GET hash. > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.422 / Virus Database: 237 - Release Date: 11/20/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.422 / Virus Database: 237 - Release Date: 11/20/2002 From friendsofmarch at jimbishop.org Fri Jan 31 17:20:30 2003 From: friendsofmarch at jimbishop.org (friendsofmarch at jimbishop.org) Date: Fri, 31 Jan 2003 14:20:30 -0800 (PST) Subject: [nycphp-talk] Passing some form values through to a redirected page... In-Reply-To: <200301312152.h0VLqMpJ064489@parsec.nyphp.org> Message-ID: > Ok, this is an easy way, no doubt. > > How would I do this via POST? Some form fields may not be presentable > to the screen. hmmm.... off the top of my head, i would say you can't. you could cookie the info, pass a tag in the query string to the next page, and then grab the info from the cookie. alternatively, you could write the sensitive data to a file on disk, pass a tag, pull the file, read the data and delete the file. this is just off the top of my head, and not completely secure. i know. jim.bishop From nyphp at NewAgeWeb.com Fri Jan 31 19:12:12 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Fri, 31 Jan 2003 19:12:12 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... Message-ID: <006601c2c986$921d7580$de01a8c0@duron.lan.newageweb.com> This is a simplified version of what I do to pass POST data: These two functions are included in all my scripts: function post_save() { if(count($_POST)) $_SESSION['post_around'] = $_POST; } } function post_read() { if(!count($_POST) && isset($_SESSION['post_around']) ) { $_POST = $_SESSION['post_around']; unset($_SESSION['post_around']); } } I place this code near the top of each script: session_start(); post_read(); and this right before each header( 'Location: ...') call: post_save(); Hope this helps, Jerry] -- 42.7% of all statistics are made up on the spot. -----Original Message----- From: Webapprentice Subject: Re: [nycphp-talk] Passing some form values through to a redirected page... >Ok, this is an easy way, no doubt. > >How would I do this via POST? Some form fields may not be presentable >to the screen. > >--Stephen > >nyphp at jimbishop.org wrote: > >>>Upon a successful submission of the form on my PHP page, I use the >>>header("Location: ") function to redirect to another page. I'd like >>>to carry over some form values over to the redirected page to use. >>>Is this possible? Or is there another way to do this? I don't think >>>it's a good idea to embed the second page into the main PHP page as >>>the main PHP page will be very long. >>> >>> >> >> >>the easiest way is to just: >> >>Location: http://url.com/?name=value&name1=value1 >> >>then on the corresponding grab the values in the $_GET hash. >> >> >> >> >> >> >> >> >> >> >> >> >> > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > From nyphp at NewAgeWeb.com Fri Jan 31 19:29:33 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Fri, 31 Jan 2003 19:29:33 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... Message-ID: <006f01c2c988$fe7f8360$de01a8c0@duron.lan.newageweb.com> Re. my previous message Corrected function: function post_save() { if(count($_POST)) { $_SESSION['post_around'] = $_POST; } } Jerry -- 42.7% of all statistics are made up on the spot. -----Original Message----- From: Jerry Kapron Subject: Re: [nycphp-talk] Passing some form values through to a redirected page... >This is a simplified version of what I do to pass POST data: > >These two functions are included in all my scripts: > >function post_save() { > if(count($_POST)) > > $_SESSION['post_around'] = $_POST; > } >} > From jonbaer at jonbaer.net Sun Jan 5 13:58:38 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Sun, 5 Jan 2003 13:58:38 -0500 Subject: [nycphp-talk] Chat help References: <200302052056.h15KuXok069004@parsec.nyphp.org> Message-ID: <00b401c2b4ec$75478c60$6600a8c0@laptop> Im pretty sure it's based on open-source code: http://www.nycwireless.net/chat/ Probably the best PHP based (since it has MySQL backend logging): http://www.ortelius.de/phpopenchat/ - Jon ----- Original Message ----- From: "Jim Musil" To: "NYPHP Talk" Sent: Wednesday, February 05, 2003 3:56 PM Subject: [nycphp-talk] Chat help > > Hi All, > > Can anyone personally recommend an open source chat solution that could be > embedded into a page on a LAMP system. This is not necessarily a PHP > question, but it could be... > > > Jim Musil > > Nettmedia, Senior Developer > 345 Seventh Ave., 24th Floor. > New York, NY 10001 > Tel. 212.629.0004 x 131 > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > >