From nyphp at NewAgeWeb.com Tue Apr 1 00:59:19 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Tue, 01 Apr 2003 00:59:19 -0500 Subject: [nycphp-talk] Hi ! Message-ID: <009d01c2f813$d63bb720$de01a8c0@duron.lan.newageweb.com> Jim, No reason to blame NYPHP. I've been working on anti-spam technology for a couple of years and can list dozens of ways how your NYPHP e-mail address ended up on a spammer's mailing list. Harvesting the Web is not the only way. Perhaps that's really the case that someone joined NYPHP just to collect e-mail addresses from the web archive. However there are all kinds of other things done by spammers to get e-mail addresses. You gotta realize that once you send an e-mail message to a mailing list, the message is distributed to all subscribers, therefore many different IPS's and PC's. .. and then you have things like: - evil admins who extract addresses from mailbox and mail log files on mail servers - weak security on shared mail/hosting servers where any user can do the above - e-mail worms harvesting addresses from e-mail client mailboxes - the list goes on .. I hope you'll be able to sleep tonight and use e-mail ever again :) Cheers, Jerry -- 42.7% of all statistics are made up on the spot. > >--- nyphp at jimbishop.org wrote: >> > --- nyphp at jimbishop.org wrote: >> > > I just got this piece of spam to my mail account using the address I >> set >> > > up just for NYPHP. Has the subscriber list been compromised? >> > >> > Negative, and with private archives the address must have been harvested >> > using other means. >> >> So then it was picked up off of the online archives? > >Again, negative. The archives are only accesible after registering and >logging in - something others have mentioned as being a pain, but at the same >time, this is the first ever spam issue that's been reported. > >> The only place I use >> this address is for this mailing list. It's not even a mail account or an >> alias. I just have all of my email go to one mailbox, but I switch out >> the name to track who's selling my email address. I don't believe NYPHP >> is selling email addresses, but I wonder if the archives are being >> harvested for spam purposes. > >Unless a spammer has registered and logged into the archives, this is not an >issue. As others pointed out, there are many clever ways people can sniff >addresses or use "brute force" methods. Having a catchall account for >nyphp.org, I am a victim of these types of attacks continuously. > >H > >> jim.bishop >> >> >> >> >> >> > > ---------- Forwarded message ---------- >> > > Return-Path: >> > > Received: from aol.com ([211.184.230.1] (may be forged)) by >> cypress.he.net >> > > (8.8.6/8.8.2) with SMTP id LAA16879 for ; Fri, >> > > 28 Mar 2003 11:30:13 -0800 >> > > From: soloboso at aol.com >> > > Message-ID: <001010b0ba75$bed64013$58630437 at gmx.u> >> > > To: Administrator at cypress.he.net >> > > Subject: Hi ! >> > > Date: Fri, 28 Mar 2003 13:07:50 +0600 >> > > MIME-Version: 1.0 >> > > Content-Type: text/plain; >> > > charset="iso-8859-1" >> > > Content-Transfer-Encoding: 8bit >> > > X-Priority: 3 >> > > X-Mailer: Microsoft Outlook Express 6.00.2800.1106 >> > > Importance: Normal >> > > >> > > : ))). >> > > >> > > NEED UP TO THE MINUTE EMAIL LISTS >> > > TO MAIL TO -- FRESH DAILY? 30,000 >> > > brand new email names -- just $20 ! >> > > >> > > http://BulletproofMailings.com >> > > >> > > Delivered to you immediately with Paypal >> > > or Credit Card payment online. Special >> > > yearly subscription allows you access to >> > > ALL our past, present and future lists! >> > > >> > > >> > > Send blank email to: remove at BulletproofMailings.com >> > > to be removed from our mailings. >> > > >> > > >> > > >> > >> >6489DXSF2-974RMqn0745IfyN5-899Kudi6325ofiK9-776ildZ9696aXSM6-980Wspp1032nti O3-641HKl78 >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > >> > >> > >> > >> > >> > >> >> >> >> >> >> ---------------------------------------------------------- >> jim.bishop at jimbishop.org >> >> support regime change http://www.deanforamerica.com >> http://www.newyorkfordean.com >> ---------------------------------------------------------- >> >> >> >> >> >> > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > From nyphp at enobrev.com Tue Apr 1 03:26:10 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Tue, 1 Apr 2003 03:26:10 -0500 Subject: Performance hit from including classes Message-ID: <004a01c2f828$59caabf0$e1951d18@enobrev> Up until now, I've been only including (via require_once) only the classes I need within the script that's executing. My upload class for file processors, database class for mysql, my dropdown class for selects, etc, etc. I suppose it would be much cleaner and more manageable if I included them all in my application_top.php or configure.php file. Does anyone know how much of a performance hit it would be to include all 6 or 8 classes at once? Thank You Mark Armendariz -------------- next part -------------- An HTML attachment was scrubbed... URL: From smanes at magpie.com Tue Apr 1 07:57:44 2003 From: smanes at magpie.com (Steve Manes) Date: Tue, 01 Apr 2003 07:57:44 -0500 Subject: [nycphp-talk] Hi ! In-Reply-To: <200304010427.h314QYtB009073@parsec.nyphp.org> Message-ID: <5.1.1.6.2.20030401073831.01e83b40@192.168.111.6> At 11:26 PM 3/31/2003 -0500, Hans Zaunere wrote: >Again, negative. The archives are only accesible after registering and >logging in - something others have mentioned as being a pain, but at the same >time, this is the first ever spam issue that's been reported. I ran into this problem on a couple of my lists. The culprit turned out to be unauthorized, third-party web archives. Bots were subscribed which fed my lists to their archives, operated by sharks scavenging the net for content to wrap their advertising around. Googling on "nyphp" reveals one site (alicebot) which has mirrored at least some NYPHP posts. One of the bigger ones I found archiving my TBL list apparently blocked search engine 'bots so it didn't show up on the search engines at all. A subscriber told me about it. Of course, robots.txt is only advisory and useless against address mining robots. They had five years of my digests published on their site. From zaunere at yahoo.com Tue Apr 1 09:35:05 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 1 Apr 2003 06:35:05 -0800 (PST) Subject: [nycphp-talk] Performance hit from including classes In-Reply-To: <200304010833.h318QC0L015880@parsec.nyphp.org> Message-ID: <20030401143505.72769.qmail@web12801.mail.yahoo.com> --- Mark Armendariz wrote: > Up until now, I've been only including (via require_once) only the > classes I need within the script that's executing. My upload class for > file processors, database class for mysql, my dropdown class for > selects, etc, etc. I suppose it would be much cleaner and more > manageable if I included them all in my application_top.php or > configure.php file. > > Does anyone know how much of a performance hit it would be to include > all 6 or 8 classes at once? It really depends on how much traffic you're dealing with. If it's mild traffic, I doubt you'd see any difference - obviously more traffic would have a greater impact. If I remember correctly, here are some details on the include/require family (please correct me if I've made a mistake): require/require_once -- compile time (using a cache will make the overhead very small) -- require_once() has more overhead than require() include/include_once -- runtime directives (more expensive than any of the require()s) -- include_once() has more overhead than include() H > > Thank You > > Mark Armendariz > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From rolan at omnistep.com Tue Apr 1 09:36:59 2003 From: rolan at omnistep.com (Rolan Yang) Date: Tue, 01 Apr 2003 09:36:59 -0500 Subject: [nycphp-talk] Hi ! In-Reply-To: <200304011258.h31CvnuZ021935@parsec.nyphp.org> References: <200304011258.h31CvnuZ021935@parsec.nyphp.org> Message-ID: <3E89A40B.9020108@omnistep.com> You might want to try something like Spamassassin to tag/divert your spam. I receive, on average, about 400 pieces of junk mail per day. With a combination of email client filters + spamassassin, I'm down to reading/deleting only about 5 unwated daily spams. That is roughly 2-3% of my daily email ham - which, for me, is acceptable. From hans at nyphp.org Tue Apr 1 09:45:15 2003 From: hans at nyphp.org (Hans Zaunere) Date: Tue, 1 Apr 2003 06:45:15 -0800 (PST) Subject: PHP Meetup: Informal get-together Message-ID: <20030401144515.34599.qmail@web12804.mail.yahoo.com> Just as a reminder for anyone interested: http://php.meetup.com It's happening at V Bar this month, on Thursday. See you there, H From lists at redibishosting.com Tue Apr 1 10:42:56 2003 From: lists at redibishosting.com (Deidra McIntyre) Date: Tue, 1 Apr 2003 10:42:56 -0500 (EST) Subject: [nycphp-talk] php include file question IT WORKS In-Reply-To: <200303312251.h2VMp8vf098652@parsec.nyphp.org> References: <200303312251.h2VMp8vf098652@parsec.nyphp.org> Message-ID: <1791.172.150.18.101.1049211776.squirrel@www.myhostingadmin.com> Thank you!! What I did was change the includes to Dan's format: And change all the files (i.e. formerly index.html, aboutus.html) to .php as per the suggestion from Louie (Translated by Tim). Thanks!! Deidra > Just to clarify, and I think this is what Louie was talking about... > > Are you using the php include call on an html page? Or do you have a > page (whatever.php) from which you are calling .html files as includes? > If this is the case, and your main page is a .html page, then you cannot > use on it unless your server is specifically set up > to parse .html files as if they were php. Dig? So when he's talking > about changing .html to .php, he's talking about the main page, not the > pages you are calling from that page. If this is your situation, you > need to tell your web admin to set up the webserver to parse .html files > as if they were .php. > > Hope I'm getting the problem right. It's all a bit confusing. > > Luck, > Tim > > On 3/31/03 5:38 PM, "Deidra McIntyre" wrote: > >> I passed along most of the emails to the syst. admin (technician) who >> installed the PHP on the servers. He's not in till tomorrow. >> >> I will try Dan's suggestion later tonight. Because, that may resolve >> the entire issue. >> >> I don't understand the question below. Too much short-hand. To >> reclarify, I have basic html pages for the site. Let's take one of >> them, index.html. Within index.html, I used several include files to >> call standard aspects of the site (i.e. header, certain repetitive >> images, and copyright). None of these include files contain php. They >> are just html (i.e.

). >> >> Simply changing the html or include files to .php does not resolve the >> issue. >> >> Does that clarify it for you? >> >> Thanks, >> Deidra >> >> --> Deidra >> >> greetings folks, >>> >>> you all list all the problems the include() function can cause, i >>> dont think she realy describe her problem, >>> i just think she put the >>> within .html\\.htm extension. >>> she mention a technician so did the conf the php.ini >>> most off them leave the error all , >>> and she didnt say nothin' about error >>> and she say : >>> >>>> Within the HTML documents that call the include files, >>> >>> within the html doc?????? >>> she call the include() from html doc. ?? >>> all she need than is to cahnge is the file to "whatever.php" and >>> face the scond problem :P >>> >>> deidra : write the file name ? >>> and just C/P the code here, >>> >>> best regards, >>> louie. >>> >>> ----- Original Message ----- >>> From: "Deidra McIntyre" >>> To: "NYPHP Talk" >>> Sent: Monday, March 31, 2003 9:52 AM >>> Subject: [nycphp-talk] php include file question >>> >>> >>>> List, >>>> >>>> I'm breaking up my html site into includes (header, copyright, >>>> etc.). Within the HTML documents that call the include files, I have >>>> the appropriate php tags (i.e. . >>>> All of the includes (i.e. copyright.html) are sitting in the same >>>> directory as my html pages (i.e. index.html). PHP is installed. >>>> >>>> So, why, no matter what I do, don't the include files parse into my >>>> document? I have tried to changed the include extensions from .html >>>> to php to .inc. None parse. Most of my includes contain basic HTML >>>> (no php) like

Copyright © 2003. All Rights Reserved.

. >>>> >>>> Am I doing something wrong? Or does my technician need to change >>>> something in the server configuration (if so what)? >>>> >>>> Thanks, >>>> Deidra >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> >> >> >> >> >> >> > > _________________ > Tim Arnold > tim at fiercefamily.com > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From hans at nyphp.org Tue Apr 1 12:22:43 2003 From: hans at nyphp.org (Hans Zaunere) Date: Tue, 1 Apr 2003 09:22:43 -0800 (PST) Subject: Changes at New York PHP Message-ID: <20030401172243.13774.qmail@web12806.mail.yahoo.com> Hello all, The IT industry is a fast paced, ever changing environment that demands equally dynamic adoptions to keep in the running. Recognizing certain key factors, New York PHP has undergone some changes in the hopes to increase it?s value to it's community and users. Please see our main page, http://nyphp.org, for complete details. Regards, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From sterling at bumblebury.com Tue Apr 1 12:06:02 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 01 Apr 2003 12:06:02 -0500 Subject: [nycphp-talk] Changes at New York PHP In-Reply-To: <200304011723.h31HMlv7031613@parsec.nyphp.org> References: <200304011723.h31HMlv7031613@parsec.nyphp.org> Message-ID: <1049216762.5154.85.camel@hasele> What, no Python Server Pages? -Sterling On Tue, 2003-04-01 at 12:22, Hans Zaunere wrote: > Hello all, > > The IT industry is a fast paced, ever changing environment that demands > equally dynamic adoptions to keep in the running. Recognizing certain key > factors, New York PHP has undergone some changes in the hopes to increase > its value to it's community and users. > > Please see our main page, http://nyphp.org, for complete details. > > Regards, > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- -- Good judgement comes from experience, and experience comes from bad judgement. - Fred Brooks From nyphp at websapp.com Tue Apr 1 12:28:10 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Tue, 1 Apr 2003 12:28:10 -0500 Subject: [nycphp-talk] Changes at New York PHP In-Reply-To: <200304011723.h31HMlxj031613@parsec.nyphp.org> Message-ID: Good job Hans. I thought that the conversion would take a couple more days. When are you going to send out the notice that to attend the monthly meetings there will be a $50 entrance fee? Daniel Kushner Vice President, New York PHP http://nyphp.org/ daniel at nyphp.org > -----Original Message----- > From: Hans Zaunere [mailto:hans at nyphp.org] > Sent: Tuesday, April 01, 2003 12:23 PM > To: NYPHP Talk > Subject: [nycphp-talk] Changes at New York PHP > > > > Hello all, > > The IT industry is a fast paced, ever changing environment that demands > equally dynamic adoptions to keep in the running. Recognizing certain key > factors, New York PHP has undergone some changes in the hopes to increase > it?s value to it's community and users. > > Please see our main page, http://nyphp.org, for complete details. > > Regards, > > > ===== > 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 Tue Apr 1 12:28:49 2003 From: brian at preston-campbell.com (Brian) Date: Tue, 1 Apr 2003 12:28:49 -0500 Subject: [nycphp-talk] Changes at New York PHP In-Reply-To: <200304011723.h31HMlvF031613@parsec.nyphp.org> References: <200304011723.h31HMlvF031613@parsec.nyphp.org> Message-ID: <200304011228.49826.brian@preston-campbell.com> On Tuesday 01 April 2003 12:22 pm, Hans Zaunere wrote: > Hello all, > > The IT industry is a fast paced, ever changing environment that > demands equally dynamic adoptions to keep in the running. > Recognizing certain key factors, New York PHP has undergone some > changes in the hopes to increase it?s value to it's community and > users. > > Please see our main page, http://nyphp.org, for complete details. > > Regards, > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- That's a deal on ASP and AMP Technology Training -- $780, I figured it would be $7800 for such an intensive ASP course! Brian From sailer at bnl.gov Tue Apr 1 12:29:07 2003 From: sailer at bnl.gov (Tim Sailer) Date: Tue, 1 Apr 2003 12:29:07 -0500 Subject: [nycphp-talk] Changes at New York PHP In-Reply-To: <200304011722.h31HMlor031613@parsec.nyphp.org> References: <200304011722.h31HMlor031613@parsec.nyphp.org> Message-ID: <20030401172907.GB807@bnl.gov> On Tue, Apr 01, 2003 at 12:22:47PM -0500, Hans Zaunere wrote: > > Hello all, > > The IT industry is a fast paced, ever changing environment that demands > equally dynamic adoptions to keep in the running. Recognizing certain key > factors, New York PHP has undergone some changes in the hopes to increase > it?s value to it's community and users. > > Please see our main page, http://nyphp.org, for complete details. Even as a joke, that's deeply disturbing. That's like Linus going to work in Redmond! Tim -- Tim Sailer Application Services Information Technology Division Brookhaven National Laboratory (631) 344-3001 From nyphp at websapp.com Tue Apr 1 12:34:11 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Tue, 1 Apr 2003 12:34:11 -0500 Subject: [nycphp-talk] Changes at New York PHP In-Reply-To: <200304011731.h31HUJxj033942@parsec.nyphp.org> Message-ID: > That's a deal on ASP and AMP Technology Training -- $780, I figured it > would be $7800 for such an intensive ASP course! > > Brian I knew it. As soon as we start using ASP, the site is full of bugs. --Daniel From FWoolsey at ltk.com Tue Apr 1 12:37:23 2003 From: FWoolsey at ltk.com (Woolsey, Fred) Date: Tue, 1 Apr 2003 12:37:23 -0500 Subject: [nycphp-talk] Changes at New York PHP Message-ID: <49C27D5DC02B03409C25B3039719955D4114EC@exambler.ltk.com> Had me goin' until I checked my calendar..... Fred Woolsey Senior Consultant LTK Engineering Services 100 West Butler Avenue Ambler, PA 19002 Tel: 215-641-8865 Fax: 215-654-9370 fwoolsey at ltk.com -----Original Message----- From: Hans Zaunere [mailto:hans at nyphp.org] Sent: Tuesday, April 01, 2003 12:23 PM To: NYPHP Talk Subject: [nycphp-talk] Changes at New York PHP Hello all, The IT industry is a fast paced, ever changing environment that demands equally dynamic adoptions to keep in the running. Recognizing certain key factors, New York PHP has undergone some changes in the hopes to increase it's value to it's community and users. Please see our main page, http://nyphp.org, for complete details. Regards, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org --- Unsubscribe at http://nyphp.org/list/ --- From FWoolsey at ltk.com Tue Apr 1 12:40:23 2003 From: FWoolsey at ltk.com (Woolsey, Fred) Date: Tue, 1 Apr 2003 12:40:23 -0500 Subject: [nycphp-talk] Changes at New York PHP Message-ID: <49C27D5DC02B03409C25B3039719955D4114ED@exambler.ltk.com> What next, an article on "How to reduce the total cost of ownership by increasing the cost of all the parts?" Fred Woolsey Senior Consultant LTK Engineering Services 100 West Butler Avenue Ambler, PA 19002 Tel: 215-641-8865 Fax: 215-654-9370 fwoolsey at ltk.com -----Original Message----- From: Hans Zaunere [mailto:hans at nyphp.org] Sent: Tuesday, April 01, 2003 12:23 PM To: NYPHP Talk Subject: [nycphp-talk] Changes at New York PHP Hello all, The IT industry is a fast paced, ever changing environment that demands equally dynamic adoptions to keep in the running. Recognizing certain key factors, New York PHP has undergone some changes in the hopes to increase it's value to it's community and users. Please see our main page, http://nyphp.org, for complete details. Regards, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org --- Unsubscribe at http://nyphp.org/list/ --- From louie at zibi.co.il Tue Apr 1 16:09:12 2003 From: louie at zibi.co.il (louie) Date: Tue, 1 Apr 2003 13:09:12 -0800 Subject: [nycphp-talk] Changes at New York PHP References: <200304011723.h31HMl1L031613@parsec.nyphp.org> Message-ID: <003c01c2f892$f2deda40$b35efea9@w3j5c4> greetings hans, did you read some articale? regarding this "change"? what are the key factors? what make asp just now better choice than php? and as for now new york asp will deal only with asp or combine the two? best regards, louie. ----- Original Message ----- From: "Hans Zaunere" To: "NYPHP Talk" Sent: Tuesday, April 01, 2003 9:22 AM Subject: [nycphp-talk] Changes at New York PHP > > Hello all, > > The IT industry is a fast paced, ever changing environment that demands > equally dynamic adoptions to keep in the running. Recognizing certain key > factors, New York PHP has undergone some changes in the hopes to increase > it?s value to it's community and users. > > Please see our main page, http://nyphp.org, for complete details. > > Regards, > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From rolan at omnistep.com Tue Apr 1 13:17:54 2003 From: rolan at omnistep.com (Rolan Yang) Date: Tue, 01 Apr 2003 13:17:54 -0500 Subject: [nycphp-talk] Changes at New York PHP In-Reply-To: <200304011723.h31HMluX031613@parsec.nyphp.org> References: <200304011723.h31HMluX031613@parsec.nyphp.org> Message-ID: <3E89D7D2.2020600@omnistep.com> All I'm getting is.. Active Server Pages error 'ASP 0401' Disallowed Operating System /index.asp line 433433 Hans Zaunere wrote: >Hello all, > >The IT industry is a fast paced, ever changing environment that demands >equally dynamic adoptions to keep in the running. Recognizing certain key >factors, New York PHP has undergone some changes in the hopes to increase >it?s value to it's community and users. > >Please see our main page, http://nyphp.org, for complete details. > >Regards, > > >===== >Hans Zaunere >President, New York PHP >http://nyphp.org >hans at nyphp.org > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > From ophir at prusak.com Tue Apr 1 13:26:33 2003 From: ophir at prusak.com (Ophir Prusak) Date: Tue, 1 Apr 2003 13:26:33 -0500 Subject: [nycphp-talk] Changes at New York PHP References: <200304011818.h31IHbvH038303@parsec.nyphp.org> Message-ID: <017701c2f87c$39247940$bf65a8c0@tag1002> check todays date ... ----- Original Message ----- From: "louie" To: "NYPHP Talk" Sent: Tuesday, April 01, 2003 1:17 PM Subject: Re: [nycphp-talk] Changes at New York PHP > greetings hans, > > did you read some articale? regarding this "change"? > what are the key factors? > what make asp just now better choice than php? > and as for now new york asp will deal only with asp or combine the two? > > best regards, > louie. > > > > > ----- Original Message ----- > From: "Hans Zaunere" > To: "NYPHP Talk" > Sent: Tuesday, April 01, 2003 9:22 AM > Subject: [nycphp-talk] Changes at New York PHP > > > > > > Hello all, > > > > The IT industry is a fast paced, ever changing environment that demands > > equally dynamic adoptions to keep in the running. Recognizing certain key > > factors, New York PHP has undergone some changes in the hopes to increase > > it's value to it's community and users. > > > > Please see our main page, http://nyphp.org, for complete details. > > > > Regards, > > > > > > ===== > > Hans Zaunere > > President, New York PHP > > http://nyphp.org > > hans at nyphp.org > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From jim at bizcomputinginc.com Tue Apr 1 13:29:11 2003 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Tue, 1 Apr 2003 13:29:11 -0500 Subject: [nycphp-talk] Changes at New York PHP References: <200304011820.h31IKqop039059@parsec.nyphp.org> Message-ID: <02c701c2f87c$973c74b0$6501a8c0@Notebook> Can I suggest dropping the LAMP and AMP acronyms altogether? It should now be WISA for Windows, IIS, Sql Server, ASP. You may have problems when the group needs to change it's name to NYASP since this domain is already taken by some school pshycologists. Probably don't want to negotiate with them for the name either, they might think our transition is crazy. Jim P.S. Did any of you catch the latest Gateway commercial on TV where they mention PHP? ----- Original Message ----- From: "Rolan Yang" To: "NYPHP Talk" Sent: Tuesday, April 01, 2003 1:20 PM Subject: Re: [nycphp-talk] Changes at New York PHP > All I'm getting is.. > > Active Server Pages error 'ASP 0401' > Disallowed Operating System > /index.asp line 433433 > > > Hans Zaunere wrote: > > >Hello all, > > > >The IT industry is a fast paced, ever changing environment that demands > >equally dynamic adoptions to keep in the running. Recognizing certain key > >factors, New York PHP has undergone some changes in the hopes to increase > >it?s value to it's community and users. > > > >Please see our main page, http://nyphp.org, for complete details. > > > >Regards, > > > > > >===== > >Hans Zaunere > >President, New York PHP > >http://nyphp.org > >hans at nyphp.org > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From Ed at ComSimplicity.com Tue Apr 1 13:35:43 2003 From: Ed at ComSimplicity.com (Ed McCarroll) Date: Tue, 1 Apr 2003 10:35:43 -0800 Subject: [nycphp-talk] Changes at New York PHP In-Reply-To: <200304011817.h31IHbpH038303@parsec.nyphp.org> Message-ID: > did you read some articale? regarding this "change"? > what are the key factors? > what make asp just now better choice than php? Today is "All Fools Day". It's an American tradition that might not be well know to people from other cultures. One year, working at a large company, every member of my entire department put letters of resignation in the boss' in-box. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ed McCarroll MailTo:Ed at ComSimplicity.com ComSimplicity (310) 838-4330 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From enunez at tiaa-cref.org Tue Apr 1 13:47:33 2003 From: enunez at tiaa-cref.org (Nunez, Eddy) Date: Tue, 1 Apr 2003 11:47:33 -0700 Subject: [nycphp-talk] Changes at New York PHP Message-ID: <7CE0EC1FC2D0D411910700508BE38D0F0A6D9C37@msxnyusr01.msx.ops.tiaa-cref.org> "...entire department put letters of resignation in the boss' in-box." This could really backfire for someone in the dept! I was considering for last 2 weeks of getting a cheap wedding ring and performing a mock marriage proposal to a rather pessimistic lady I know, but she might end up with hurt feelings or worst yet- take me seriously!? Choose your jests wisely. But enjoy! LONG LIVE Bill Gates & ASP! -Eddy -----Original Message----- From: Ed McCarroll [mailto:Ed at ComSimplicity.com] Sent: Tuesday, April 01, 2003 1:36 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Changes at New York PHP > did you read some articale? regarding this "change"? > what are the key factors? > what make asp just now better choice than php? Today is "All Fools Day". It's an American tradition that might not be well know to people from other cultures. One year, working at a large company, every member of my entire department put letters of resignation in the boss' in-box. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ed McCarroll MailTo:Ed at ComSimplicity.com ComSimplicity (310) 838-4330 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --- Unsubscribe at http://nyphp.org/list/ --- ********************************************************************** 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 nyphp at NewAgeWeb.com Tue Apr 1 14:27:04 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Tue, 01 Apr 2003 14:27:04 -0500 Subject: [nycphp-talk] Changes at New York PHP Message-ID: <005801c2f884$ae13cd20$de01a8c0@duron.lan.newageweb.com> I don't think this is originally an American tradition. In fact it originated in Europe. It has to be really old, since some european countries still use a latin name for it -'Primo Aprilis'. cheers, Jerry -- 42.7% of all statistics are made up on the spot. -----Original Message----- From: Ed McCarroll To: NYPHP Talk Date: Tuesday, April 01, 2003 1:36 PM Subject: RE: [nycphp-talk] Changes at New York PHP >> did you read some articale? regarding this "change"? >> what are the key factors? >> what make asp just now better choice than php? > >Today is "All Fools Day". It's an American tradition that might >not be well know to people from other cultures. > >One year, working at a large company, every member of my entire >department put letters of resignation in the boss' in-box. > >- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >Ed McCarroll MailTo:Ed at ComSimplicity.com >ComSimplicity (310) 838-4330 >- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > From cahoyos at us.ibm.com Wed Apr 2 14:25:38 2003 From: cahoyos at us.ibm.com (Carlos Hoyos) Date: Wed, 2 Apr 2003 14:25:38 -0500 Subject: phpinfo Message-ID: another reason why I love php: Seeing a dog on the top of my phpinfo page gave me the chills for a sec, before realizing it's April's fools ;) Anyway, just wanted to be sure this was just a harmless easter egg: A closer look at /ext/standard/info.c... if ((ta->tm_mon==3) && (ta->tm_mday==1)) { PUTS("?="PHP_EGG_LOGO_GUID"\\" alt=\\"Thies!\\" />"); } else { PUTS("?="PHP_LOGO_GUID"\\" alt=\\"PHP Logo\\" />"); } Once again, another reason why I love php and open source... and another moment to wonder how much crap there's behind windows that we can't see ;) Carlos From louie at zibi.co.il Tue Apr 1 17:21:58 2003 From: louie at zibi.co.il (louie) Date: Tue, 1 Apr 2003 14:21:58 -0800 Subject: [nycphp-talk] Changes at New York PHP References: <200304011836.h31IZe1L041873@parsec.nyphp.org> Message-ID: <005c01c2f89d$1cbb8340$b35efea9@w3j5c4> OMG I forgot, heh ----- Original Message ----- From: "Ed McCarroll" To: "NYPHP Talk" Sent: Tuesday, April 01, 2003 10:35 AM Subject: RE: [nycphp-talk] Changes at New York PHP > > did you read some articale? regarding this "change"? > > what are the key factors? > > what make asp just now better choice than php? > > Today is "All Fools Day". It's an American tradition that might > not be well know to people from other cultures. > > One year, working at a large company, every member of my entire > department put letters of resignation in the boss' in-box. > > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > Ed McCarroll MailTo:Ed at ComSimplicity.com > ComSimplicity (310) 838-4330 > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From patrick.fee at baesystems.com Tue Apr 1 14:32:32 2003 From: patrick.fee at baesystems.com (Fee, Patrick J) Date: Tue, 1 Apr 2003 14:32:32 -0500 Subject: [nycphp-talk] Changes at New York PHP Message-ID: So.... Windows as your O/S, IIS, MySql and PHP would be .... WIMP? NYASP.... hmmmm.... N(ow) Y(ou're) A(ctually) S(uppose) to P(rogram)? And Linux with IIS and Sql Server and PHP would be ... LISP? Sorry... long day here in our Nation's Capitol.... Where everyday is April Fool's day! Patrick J. Fee Web & Database Group Manager BAE SYSTEMS 600 Maryland Ave. SW Suite 600 Washington D.C. 20024 Patrick.Fee at BAESYSTEMS.com Tel: (202) 548-3759 Fax: (202) 608-5970 -----Original Message----- From: Jim Hendricks [mailto:jim at bizcomputinginc.com] Sent: Tuesday, April 01, 2003 1:29 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Changes at New York PHP Can I suggest dropping the LAMP and AMP acronyms altogether? It should now be WISA for Windows, IIS, Sql Server, ASP. You may have problems when the group needs to change it's name to NYASP since this domain is already taken by some school pshycologists. Probabl= y don't want to negotiate with them for the name either, they might think o= ur transition is crazy. Jim P.S. Did any of you catch the latest Gateway commercial on TV where they mention PHP? From chris at psydeshow.org Tue Apr 1 14:42:04 2003 From: chris at psydeshow.org (Chris Snyder) Date: Tue, 01 Apr 2003 14:42:04 -0500 Subject: [nycphp-talk] phpinfo In-Reply-To: <200304011926.h31JPnvL044943@parsec.nyphp.org> References: <200304011926.h31JPnvL044943@parsec.nyphp.org> Message-ID: <3E89EB8C.4030001@psydeshow.org> I might take a moment to point out just how many of us never read the source, but rely on someone else to find our easter eggs. Thanks Carlos! (And thanks to all the people who have tracked down and fixed all the unintentional surprises, as well!) Carlos Hoyos wrote: >another reason why I love php: > >Seeing a dog on the top of my phpinfo page gave me the chills for a sec, >before realizing it's April's fools ;) >Anyway, just wanted to be sure this was just a harmless easter egg: > >A closer look at /ext/standard/info.c... > >if ((ta->tm_mon==3) && (ta->tm_mday==1)) { > PUTS("?="PHP_EGG_LOGO_GUID"\\" alt=\\"Thies!\\" />"); >} else { > PUTS("?="PHP_LOGO_GUID"\\" alt=\\"PHP Logo\\" />"); >} > >Once again, another reason why I love php and open source... and another >moment to wonder how much crap there's behind windows that we can't see ;) > > >Carlos > > > > From hans at nyphp.org Tue Apr 1 15:20:33 2003 From: hans at nyphp.org (Hans Zaunere) Date: Tue, 1 Apr 2003 12:20:33 -0800 (PST) Subject: [nycphp-talk] Changes at New York PHP In-Reply-To: <200304011726.h31HPv0L032412@parsec.nyphp.org> Message-ID: <20030401202033.98876.qmail@web12803.mail.yahoo.com> --- Sterling Hughes wrote: > What, no Python Server Pages? We're going totally proprietary - no open source! I didn't know which to go with; ASP, JSP, or ColdFusion. I ended up going with ASP, well, because MS is always such a good sport :) A Motley Fool, H > > -Sterling > > On Tue, 2003-04-01 at 12:22, Hans Zaunere wrote: > > Hello all, > > > > The IT industry is a fast paced, ever changing environment that demands > > equally dynamic adoptions to keep in the running. Recognizing certain > key > > factors, New York PHP has undergone some changes in the hopes to increase > > its value to it's community and users. > > > > Please see our main page, http://nyphp.org, for complete details. > > > > Regards, > > > > > > ===== > > Hans Zaunere > > President, New York PHP > > http://nyphp.org > > hans at nyphp.org > > > > > > > -- > Good judgement comes from experience, and experience comes from > bad judgement. > - Fred Brooks > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From FWoolsey at ltk.com Tue Apr 1 15:25:34 2003 From: FWoolsey at ltk.com (Woolsey, Fred) Date: Tue, 1 Apr 2003 15:25:34 -0500 Subject: [nycphp-talk] Changes at New York PHP Message-ID: <49C27D5DC02B03409C25B3039719955D4114EE@exambler.ltk.com> I hear Redmond is suing Gloria Steinem for naming her magazine "MS".... Fred Woolsey Senior Consultant LTK Engineering Services 100 West Butler Avenue Ambler, PA 19002 Tel: 215-641-8865 Fax: 215-654-9370 fwoolsey at ltk.com -----Original Message----- From: Hans Zaunere [mailto:hans at nyphp.org] Sent: Tuesday, April 01, 2003 3:21 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Changes at New York PHP --- Sterling Hughes wrote: > What, no Python Server Pages? We're going totally proprietary - no open source! I didn't know which to go with; ASP, JSP, or ColdFusion. I ended up going with ASP, well, because MS is always such a good sport :) A Motley Fool, H > > -Sterling > > On Tue, 2003-04-01 at 12:22, Hans Zaunere wrote: > > Hello all, > > > > The IT industry is a fast paced, ever changing environment that > > demands equally dynamic adoptions to keep in the running. > > Recognizing certain > key > > factors, New York PHP has undergone some changes in the hopes to > > increase its value to it's community and users. > > > > Please see our main page, http://nyphp.org, for complete details. > > > > Regards, > > > > > > ===== > > Hans Zaunere > > President, New York PHP > > http://nyphp.org > > hans at nyphp.org > > > > > > > -- > Good judgement comes from experience, and experience comes from > bad judgement. > - Fred Brooks > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From Ed at ComSimplicity.com Tue Apr 1 15:30:04 2003 From: Ed at ComSimplicity.com (Ed McCarroll) Date: Tue, 1 Apr 2003 12:30:04 -0800 Subject: [nycphp-talk] Changes at New York PHP In-Reply-To: <200304011925.h31JPIpH044650@parsec.nyphp.org> Message-ID: > >Today is "All Fools Day". It's an American tradition that might > >not be well know to people from other cultures. > I don't think this is originally an American tradition. Regardless of origin, it IS an American tradition. As with most of our culture, I'm sure we stole it fair and square from somewhere. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ed McCarroll MailTo:Ed at ComSimplicity.com ComSimplicity (310) 838-4330 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From nyphp at jimbishop.org Tue Apr 1 18:50:09 2003 From: nyphp at jimbishop.org (nyphp at jimbishop.org) Date: Tue, 1 Apr 2003 15:50:09 -0800 (PST) Subject: [nycphp-talk] Hi ! In-Reply-To: <200304011258.h31Cvnsb021935@parsec.nyphp.org> Message-ID: this is what i was referring to. i was not "blaming" NYPHP as one reactionary poster cried. i was interested only because i am very careful what addresses i give out and to whom. i do you spam filters, but i accept all mail to nyphp at jimbishop because it's ... from the list. oh well. > At 11:26 PM 3/31/2003 -0500, Hans Zaunere wrote: > >Again, negative. The archives are only accesible after registering and > >logging in - something others have mentioned as being a pain, but at the same > >time, this is the first ever spam issue that's been reported. > > I ran into this problem on a couple of my lists. The culprit turned out to > be unauthorized, third-party web archives. Bots were subscribed which fed > my lists to their archives, operated by sharks scavenging the net for > content to wrap their advertising around. > > Googling on "nyphp" reveals one site (alicebot) which has mirrored at least > some NYPHP posts. One of the bigger ones I found archiving my TBL list > apparently blocked search engine 'bots so it didn't show up on the search > engines at all. A subscriber told me about it. Of course, robots.txt is > only advisory and useless against address mining robots. They had five > years of my digests published on their site. From cahoyos at us.ibm.com Wed Apr 2 11:18:03 2003 From: cahoyos at us.ibm.com (Carlos Hoyos) Date: Wed, 2 Apr 2003 11:18:03 -0500 Subject: math library Message-ID: I just started reading this article: http://www-106.ibm.com/developerworks/web/library/wa-linphp/ and the first sentence caught my eye "In contrast with other open source languages like Perl and Python, PHP lacks a robust community effort to develop a math library." Anyway, php has some math functions built in the standard module (and also bcmath)... but I don't recall any advanced math libraries (lineal algebra, statistics, series, complex numbers). I am originally a mathematician with good experience in algorithms, and would be interested in building (or at least sizing the possibility of) an advanced math module for php. Could this be worth it for PHP ? If anybody is aware of any work being conducted in that direction, is interested in discussing this a bit more, has any suggestions of other contacts in that area, please reply or contact me directly thanks, Carlos From soazine at pop.mail.rcn.net Wed Apr 2 13:19:31 2003 From: soazine at pop.mail.rcn.net (soazine@pop.erols.com) Date: Wed, 2 Apr 2003 13:19:31 -0500 Subject: Anyone out there know how to write MS Excel 2000 VB Macros? Message-ID: <323910-2200343218193177@M2W093.mail2web.com> I thought someone out there might know how to do that as I am trying to help a friend with a rather complex Excel formula he has to write and my rudimentary VB and Excel formula-writing skills are not helping right offhand. All he wants is a means of translating a letter grade in a column of cells into a number (e.g. "A-" or "a-" -> 3.7 or "B+" or "b+" -> 3.3). Thanx Phil -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From fawcett at bard.edu Wed Apr 2 13:06:43 2003 From: fawcett at bard.edu (P. Fawcett) Date: Wed, 02 Apr 2003 13:06:43 -0500 Subject: address delete Message-ID: <3E8B26B3.82ED29C8@bard.edu> as my contract with bard college is ending this friday 4/4, please drop the fawcett at bard.edu address & 845-758-7228 phone from your books by then. my home/office marcott at ulster.net 845-331-2102 remains. pandora fawcett From cmerlo at turing.matcmp.ncc.edu Wed Apr 2 13:34:28 2003 From: cmerlo at turing.matcmp.ncc.edu (Christopher R. Merlo) Date: Wed, 2 Apr 2003 13:34:28 -0500 Subject: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? In-Reply-To: <200304021820.h32IJXx3005826@parsec.nyphp.org>; from soazine@pop.mail.rcn.net on Wed, Apr 02, 2003 at 01:19:33PM -0500 References: <200304021820.h32IJXx3005826@parsec.nyphp.org> Message-ID: <20030402133428.B1109@turing.matcmp.ncc.edu> On 2003-04-02 13:19 -0500, soazine at pop.erols.com wrote: > All he wants is a means of translating a letter grade in a column of cells > into a number (e.g. "A-" or "a-" -> 3.7 or "B+" or "b+" -> 3.3). I use the VLOOKUP function. I have two columns which look like this: 0 F 60 D 65 D+ 70 C etc... Let's say that starts at cell A1, and goes through B8. Now, if cell D15 has a number grade in it, put this in E15 to calculate the letter grade: =vlookup( D15, A1:B8, 2 ) That means, look up the value stored in D15 in the table mentioned above in the cells A1 through B8, and return what you find in the second column, which is the letter grades. No macro needed, so now you can e-mail it to people and they won't flip out. The last thing I do is make a separate worksheet with the letter grades, so from each section's worksheet, I just refer to the grades worksheet: =vlookup( D15, 'Letter Grades'!A1:B8, 2 ) Done. -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo Windows: More than enough rope. From cmerlo at turing.matcmp.ncc.edu Wed Apr 2 13:35:56 2003 From: cmerlo at turing.matcmp.ncc.edu (Christopher R. Merlo) Date: Wed, 2 Apr 2003 13:35:56 -0500 Subject: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? In-Reply-To: <200304021820.h32IJXx3005826@parsec.nyphp.org>; from soazine@pop.mail.rcn.net on Wed, Apr 02, 2003 at 01:19:33PM -0500 References: <200304021820.h32IJXx3005826@parsec.nyphp.org> Message-ID: <20030402133556.C1109@turing.matcmp.ncc.edu> Oh, BTW, I should mention that I did that stuff in Gnumeric, not Excel, so my apologies if the order of parameters is different. Tell your friend just to look up Excel's vlookup function -- it's real similar, if not exactly the same. -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo Windows: More than enough rope. From betenoir at echonyc.com Wed Apr 2 13:40:13 2003 From: betenoir at echonyc.com (betenoir at echonyc.com) Date: Wed, 2 Apr 2003 13:40:13 -0500 Subject: Leaky Javascript In-Reply-To: <200304021819.h32IJXq5005826@parsec.nyphp.org> Message-ID: I am having a persistent problem with Javascript appearing in the body of my .php page when it first loads. NOTE: the code in question is NOT in the body of the page -- it's in the head. Sometimes it's just a half a line of code, other times it's a combination of Javascript from the head and partial HTML tags from the body. I had noticed that it seems to start with a particular line of code, and I have since gone through and cleaned up and reduced the number of lines of script (removed comments, vestigial routines, etc.) but the problem persists. On Reload/Refresh the page rights itself and all is well. Any ideas? Clyde From soazine at pop.mail.rcn.net Wed Apr 2 14:25:06 2003 From: soazine at pop.mail.rcn.net (soazine@pop.erols.com) Date: Wed, 2 Apr 2003 14:25:06 -0500 Subject: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? Message-ID: <184670-2200343219256789@M2W073.mail2web.com> Thanx, however, my friend is having problems with the VLOOKUP insofar as that it will convert from number to string but not from string to number. I am not sure how to help him rather than writing a super-complex IF statement. Phil Original Message: ----------------- From: Christopher R. Merlo cmerlo at turing.matcmp.ncc.edu Date: Wed, 2 Apr 2003 13:36:01 -0500 To: talk at nyphp.org Subject: Re: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? Oh, BTW, I should mention that I did that stuff in Gnumeric, not Excel, so my apologies if the order of parameters is different. Tell your friend just to look up Excel's vlookup function -- it's real similar, if not exactly the same. -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo Windows: More than enough rope. --- Unsubscribe at http://nyphp.org/list/ --- -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From tfreedma at ubspw.com Wed Apr 2 14:40:37 2003 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Wed, 2 Apr 2003 14:40:37 -0500 Subject: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? Message-ID: I hate to be this way, but your friend must be doing something wrong. I just did a mockup in Excel 97 (we're still in the dark ages here) and it worked fine going from string to number. If you're going to go the VBA route, there is a "Switch Case" construct, instead of using a bunch of if-elses. -----Original Message----- From: soazine at pop.erols.com [mailto:soazine at pop.mail.rcn.net] Sent: Wednesday, April 02, 2003 2:25 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? Thanx, however, my friend is having problems with the VLOOKUP insofar as that it will convert from number to string but not from string to number. I am not sure how to help him rather than writing a super-complex IF statement. Phil Original Message: ----------------- From: Christopher R. Merlo cmerlo at turing.matcmp.ncc.edu Date: Wed, 2 Apr 2003 13:36:01 -0500 To: talk at nyphp.org Subject: Re: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? Oh, BTW, I should mention that I did that stuff in Gnumeric, not Excel, so my apologies if the order of parameters is different. Tell your friend just to look up Excel's vlookup function -- it's real similar, if not exactly the same. -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo Windows: More than enough rope. -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . --- Unsubscribe at http://nyphp.org/list/ --- From soazine at pop.mail.rcn.net Wed Apr 2 14:54:57 2003 From: soazine at pop.mail.rcn.net (soazine@pop.erols.com) Date: Wed, 2 Apr 2003 14:54:57 -0500 Subject: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? Message-ID: <157240-22003432195457777@M2W057.mail2web.com> Could you either give me an example of how to use VLOOKUP to convert from number to string, or could you show me the steps toward writing simple VBA to be used within Excel 2000 (I don't have the O'Reilly book on me I'm afraid). Thanx Phil Original Message: ----------------- From: Freedman, Tom S. tfreedma at ubspw.com Date: Wed, 2 Apr 2003 14:40:42 -0500 To: talk at nyphp.org Subject: RE: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? I hate to be this way, but your friend must be doing something wrong. I just did a mockup in Excel 97 (we're still in the dark ages here) and it worked fine going from string to number. If you're going to go the VBA route, there is a "Switch Case" construct, instead of using a bunch of if-elses. -----Original Message----- From: soazine at pop.erols.com [mailto:soazine at pop.mail.rcn.net] Sent: Wednesday, April 02, 2003 2:25 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? Thanx, however, my friend is having problems with the VLOOKUP insofar as that it will convert from number to string but not from string to number. I am not sure how to help him rather than writing a super-complex IF statement. Phil Original Message: ----------------- From: Christopher R. Merlo cmerlo at turing.matcmp.ncc.edu Date: Wed, 2 Apr 2003 13:36:01 -0500 To: talk at nyphp.org Subject: Re: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? Oh, BTW, I should mention that I did that stuff in Gnumeric, not Excel, so my apologies if the order of parameters is different. Tell your friend just to look up Excel's vlookup function -- it's real similar, if not exactly the same. -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo Windows: More than enough rope. -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . --- Unsubscribe at http://nyphp.org/list/ --- -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From dkrook at hotmail.com Wed Apr 2 14:56:21 2003 From: dkrook at hotmail.com (D C Krook) Date: Wed, 02 Apr 2003 14:56:21 -0500 Subject: [nycphp-talk] Leaky Javascript Message-ID: Clyde, How are you packaging the JavaScript in the head of your page? With HTML comments? a type attribute? What other items are also in the head? -Dan > >I am having a persistent problem with Javascript appearing in the body of >my .php page when it first loads. > >NOTE: the code in question is NOT in the body of the page -- it's in the >head. Sometimes it's just a half a line of code, other times it's a >combination of Javascript from the head and partial HTML tags from the >body. I had noticed that it seems to start with a particular line of code, >and I have since gone through and cleaned up and reduced the number of >lines of script (removed comments, vestigial routines, etc.) but the >problem persists. > >On Reload/Refresh the page rights itself and all is well. > >Any ideas? > >Clyde > _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From lance at optimost.com Wed Apr 2 15:03:20 2003 From: lance at optimost.com (Lance Lovette) Date: Wed, 2 Apr 2003 15:03:20 -0500 Subject: gmmktime weirdness Message-ID: <001301c2f952$ec456300$0a11010a@lance> Can someone do me a favor and run this script with the latest release of PHP and tell me what the output is for them? ', $t, gmdate('D, d M Y H:i:s T', $t)); $t = gmmktime(2, 30, 0, 4, 6, 2003); printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); $t = gmmktime(3, 0, 0, 4, 6, 2003); printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); gmmktime(0, 0, 0, 1, 1, 1970); // causes later calls to gmmktime to be wrong $t = gmmktime(2, 0, 0, 4, 6, 2003); printf('%d = %s expected 2:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); $t = gmmktime(2, 30, 0, 4, 6, 2003); printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); $t = gmmktime(3, 0, 0, 4, 6, 2003); printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); ?> I'm running version 4.2.1 and the output makes no sense to me. 1049590800 = Sun, 06 Apr 2003 01:00:00 GMT expected 2:00 AM 1049592600 = Sun, 06 Apr 2003 01:30:00 GMT expected 2:30 AM 1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM 1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 2:00 AM 1049599800 = Sun, 06 Apr 2003 03:30:00 GMT expected 2:30 AM 1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM First off, calling gmmktime in the middle of the script changes the return value of later gmmktime calls even though they are identical to the first set of calls. Second, I figured gmmktime(2, 0, 0, 4, 6, 2003) would always return 2 AM even though that's when the time "Springs forward" for me. Thanks! Lance -------------- next part -------------- An HTML attachment was scrubbed... URL: From tfreedma at ubspw.com Wed Apr 2 15:08:50 2003 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Wed, 2 Apr 2003 15:08:50 -0500 Subject: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? Message-ID: Replying off list... -----Original Message----- From: soazine at pop.erols.com [mailto:soazine at pop.mail.rcn.net] Sent: Wednesday, April 02, 2003 2:55 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? Could you either give me an example of how to use VLOOKUP to convert from number to string, or could you show me the steps toward writing simple VBA to be used within Excel 2000 (I don't have the O'Reilly book on me I'm afraid). Thanx Phil Original Message: ----------------- From: Freedman, Tom S. tfreedma at ubspw.com Date: Wed, 2 Apr 2003 14:40:42 -0500 To: talk at nyphp.org Subject: RE: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? I hate to be this way, but your friend must be doing something wrong. I just did a mockup in Excel 97 (we're still in the dark ages here) and it worked fine going from string to number. If you're going to go the VBA route, there is a "Switch Case" construct, instead of using a bunch of if-elses. -----Original Message----- From: soazine at pop.erols.com [mailto:soazine at pop.mail.rcn.net] Sent: Wednesday, April 02, 2003 2:25 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? Thanx, however, my friend is having problems with the VLOOKUP insofar as that it will convert from number to string but not from string to number. I am not sure how to help him rather than writing a super-complex IF statement. Phil Original Message: ----------------- From: Christopher R. Merlo cmerlo at turing.matcmp.ncc.edu Date: Wed, 2 Apr 2003 13:36:01 -0500 To: talk at nyphp.org Subject: Re: [nycphp-talk] Anyone out there know how to write MS Excel 2000 VB Macros? Oh, BTW, I should mention that I did that stuff in Gnumeric, not Excel, so my apologies if the order of parameters is different. Tell your friend just to look up Excel's vlookup function -- it's real similar, if not exactly the same. -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo Windows: More than enough rope. -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . --- Unsubscribe at http://nyphp.org/list/ --- From betenoir at echonyc.com Wed Apr 2 15:20:32 2003 From: betenoir at echonyc.com (betenoir at echonyc.com) Date: Wed, 2 Apr 2003 15:20:32 -0500 Subject: [nycphp-talk] Leaky Javascript In-Reply-To: <200304021956.h32JuNq5013461@parsec.nyphp.org> Message-ID: Hi Dan > >How are you packaging the JavaScript in the head of your page? With HTML >comments? Yes My Title a type attribute? What is should the type attribute be? >What other items are also in the head? Just the title tags and the linked stylesheet. >-Dan > > >> >>I am having a persistent problem with Javascript appearing in the body of >>my .php page when it first loads. >> >>NOTE: the code in question is NOT in the body of the page -- it's in the >>head. Sometimes it's just a half a line of code, other times it's a >>combination of Javascript from the head and partial HTML tags from the >>body. I had noticed that it seems to start with a particular line of code, >>and I have since gone through and cleaned up and reduced the number of >>lines of script (removed comments, vestigial routines, etc.) but the >>problem persists. >> >>On Reload/Refresh the page rights itself and all is well. >> >>Any ideas? >> >>Clyde >> > >_________________________________________________________________ >Add photos to your e-mail with MSN 8. Get 2 months FREE*. >http://join.msn.com/?page=features/featuredemail > > > >--- Unsubscribe at http://nyphp.org/list/ --- From lance.listserv at optimost.com Wed Apr 2 15:46:13 2003 From: lance.listserv at optimost.com (Lance Lovette) Date: Wed, 2 Apr 2003 15:46:13 -0500 Subject: gmmktime weirdness Message-ID: <001d01c2f958$e8cf1940$0a11010a@lance> Can someone do me a favor and run this script with the latest release of PHP and tell me what the output is for them? ', $t, gmdate('D, d M Y H:i:s T', $t)); $t = gmmktime(2, 30, 0, 4, 6, 2003); printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); $t = gmmktime(3, 0, 0, 4, 6, 2003); printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); gmmktime(0, 0, 0, 1, 1, 1970); // causes later calls to gmmktime to be wrong $t = gmmktime(2, 0, 0, 4, 6, 2003); printf('%d = %s expected 2:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); $t = gmmktime(2, 30, 0, 4, 6, 2003); printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); $t = gmmktime(3, 0, 0, 4, 6, 2003); printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); ?> I'm running version 4.2.1 and the output makes no sense to me. 1049590800 = Sun, 06 Apr 2003 01:00:00 GMT expected 2:00 AM 1049592600 = Sun, 06 Apr 2003 01:30:00 GMT expected 2:30 AM 1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM 1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 2:00 AM 1049599800 = Sun, 06 Apr 2003 03:30:00 GMT expected 2:30 AM 1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM First off, calling gmmktime in the middle of the script changes the return value of later gmmktime calls even though they are identical to the first set of calls. Second, I figured gmmktime(2, 0, 0, 4, 6, 2003) would always return 2 AM even though that's when the time "Springs forward" for me. Thanks! Lance From jhise at nextsource.com Wed Apr 2 16:08:12 2003 From: jhise at nextsource.com (Hise, Jeremy) Date: Wed, 2 Apr 2003 16:08:12 -0500 Subject: Pushing PHP as downloads Message-ID: <89C3243EE1C6D411A7C200508BDCA846D13E35@nyexch01.nextsource.com> Hi All: I just rebuilt my copy of PHP to enable gd support...but now my apache keeps trying to get me to download my php pages...I've kept my existing httpd.conf file, which was working perfectly fine before. Does anyone know why this happens? Thanks, hise ----+--------------------+ | jeremy_hise | | software_developer | | x334 | +--------------------+ | nextSource, Inc. | +--------------------+ "Say, what version of DOS you runn'n here?!?!" ****CONFIDENTIALITY NOTICE**** The Information in this email and any attachments are confidential and intended to be reviewed by only the individual or organization named above. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system. Thank You. From hans at nyu.edu Wed Apr 2 16:31:54 2003 From: hans at nyu.edu (Hans Zaunere) Date: Wed, 02 Apr 2003 16:31:54 -0500 Subject: [nycphp-talk] gmmktime weirdness In-Reply-To: <200304022047.h32KkMuX016826@parsec.nyphp.org> References: <200304022047.h32KkMuX016826@parsec.nyphp.org> Message-ID: <3E8B56CA.5060507@nyu.edu> Lance Lovette wrote: >Can someone do me a favor and run this script with the latest release of PHP >and tell me what the output is for them? > >$t = gmmktime(2, 0, 0, 4, 6, 2003); >printf('%d = %s expected 2:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >$t = gmmktime(2, 30, 0, 4, 6, 2003); >printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >$t = gmmktime(3, 0, 0, 4, 6, 2003); >printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); > >gmmktime(0, 0, 0, 1, 1, 1970); // causes later calls to gmmktime to be wrong > >$t = gmmktime(2, 0, 0, 4, 6, 2003); >printf('%d = %s expected 2:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >$t = gmmktime(2, 30, 0, 4, 6, 2003); >printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >$t = gmmktime(3, 0, 0, 4, 6, 2003); >printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >?> > >I'm running version 4.2.1 and the output makes no sense to me. > >1049590800 = Sun, 06 Apr 2003 01:00:00 GMT expected 2:00 AM >1049592600 = Sun, 06 Apr 2003 01:30:00 GMT expected 2:30 AM >1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM >1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 2:00 AM >1049599800 = Sun, 06 Apr 2003 03:30:00 GMT expected 2:30 AM >1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM > >First off, calling gmmktime in the middle of the script changes the return >value of later gmmktime calls even though they are identical to the first >set of calls. Second, I figured gmmktime(2, 0, 0, 4, 6, 2003) would always >return 2 AM even though that's when the time "Springs forward" for me. > http://hans.newyorkphp.com/gmmktime.tmp.php Probably not what you wanted to see. That's on a FreeBSD 4.7 system, and there are significant bugs (that I think some of the PHP folks are trying to skirt :) in relation to DST, mktime() and BSD. http://bugs.php.net/bug.php?id=22163 is just one of them. Search for mktime and gmmktime at bugs.php.net as well. H From jhise at nextsource.com Wed Apr 2 16:39:30 2003 From: jhise at nextsource.com (Hise, Jeremy) Date: Wed, 2 Apr 2003 16:39:30 -0500 Subject: [nycphp-talk] Pushing PHP as downloads Message-ID: <89C3243EE1C6D411A7C200508BDCA846D13E39@nyexch01.nextsource.com> The answer is ./configure --enable-module=src/modules/php4/libphp4.a is incorrect.... ...sorry for wasting the bandwidth :) hise (though apach's configure didn't complain) -----Original Message----- From: Hise, Jeremy [mailto:jhise at nextsource.com] Sent: Wednesday, April 02, 2003 4:10 PM To: NYPHP Talk Subject: [nycphp-talk] Pushing PHP as downloads Hi All: I just rebuilt my copy of PHP to enable gd support...but now my apache keeps trying to get me to download my php pages...I've kept my existing httpd.conf file, which was working perfectly fine before. Does anyone know why this happens? Thanks, hise ----+--------------------+ | jeremy_hise | | software_developer | | x334 | +--------------------+ | nextSource, Inc. | +--------------------+ "Say, what version of DOS you runn'n here?!?!" ****CONFIDENTIALITY NOTICE**** The Information in this email and any attachments are confidential and intended to be reviewed by only the individual or organization named above. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system. Thank You. --- Unsubscribe at http://nyphp.org/list/ --- ****CONFIDENTIALITY NOTICE**** The Information in this email and any attachments are confidential and intended to be reviewed by only the individual or organization named above. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system. Thank You. From lance at optimost.com Wed Apr 2 16:44:37 2003 From: lance at optimost.com (Lance Lovette) Date: Wed, 2 Apr 2003 16:44:37 -0500 Subject: [nycphp-talk] gmmktime weirdness In-Reply-To: <200304022128.h32LSGuv019784@parsec.nyphp.org> Message-ID: <002501c2f961$12144f20$0a11010a@lance> Wow. Those values are way off base. I'm running Red Hat 7.2. Can anyone produce results from a Red Hat server running PHP 4.3.x? -----Original Message----- From: Hans Zaunere [mailto:hans at nyu.edu] Sent: Wednesday, April 02, 2003 4:28 PM To: NYPHP Talk Subject: Re: [nycphp-talk] gmmktime weirdness Lance Lovette wrote: >Can someone do me a favor and run this script with the latest release >of PHP and tell me what the output is for them? > >$t = gmmktime(2, 0, 0, 4, 6, 2003); >printf('%d = %s expected 2:00 AM
', $t, gmdate('D, d M Y H:i:s T', >$t)); >$t = gmmktime(2, 30, 0, 4, 6, 2003); >printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >$t = gmmktime(3, 0, 0, 4, 6, 2003); >printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); > >gmmktime(0, 0, 0, 1, 1, 1970); // causes later calls to gmmktime to be >wrong > >$t = gmmktime(2, 0, 0, 4, 6, 2003); >printf('%d = %s expected 2:00 AM
', $t, gmdate('D, d M Y H:i:s T', >$t)); >$t = gmmktime(2, 30, 0, 4, 6, 2003); >printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >$t = gmmktime(3, 0, 0, 4, 6, 2003); >printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >?> > >I'm running version 4.2.1 and the output makes no sense to me. > >1049590800 = Sun, 06 Apr 2003 01:00:00 GMT expected 2:00 AM >1049592600 = Sun, 06 Apr 2003 01:30:00 GMT expected 2:30 AM >1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM >1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 2:00 AM >1049599800 = Sun, 06 Apr 2003 03:30:00 GMT expected 2:30 AM >1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM > >First off, calling gmmktime in the middle of the script changes the >return value of later gmmktime calls even though they are identical to >the first set of calls. Second, I figured gmmktime(2, 0, 0, 4, 6, 2003) >would always return 2 AM even though that's when the time "Springs >forward" for me. > http://hans.newyorkphp.com/gmmktime.tmp.php Probably not what you wanted to see. That's on a FreeBSD 4.7 system, and there are significant bugs (that I think some of the PHP folks are trying to skirt :) in relation to DST, mktime() and BSD. http://bugs.php.net/bug.php?id=22163 is just one of them. Search for mktime and gmmktime at bugs.php.net as well. H --- Unsubscribe at http://nyphp.org/list/ --- From cmerlo at turing.matcmp.ncc.edu Wed Apr 2 16:59:05 2003 From: cmerlo at turing.matcmp.ncc.edu (Christopher R. Merlo) Date: Wed, 2 Apr 2003 16:59:05 -0500 Subject: [nycphp-talk] gmmktime weirdness In-Reply-To: <200304022047.h32KkMxF016826@parsec.nyphp.org>; from lance.listserv@optimost.com on Wed, Apr 02, 2003 at 03:46:22PM -0500 References: <200304022047.h32KkMxF016826@parsec.nyphp.org> Message-ID: <20030402165905.F1109@turing.matcmp.ncc.edu> Lance: I might be way off base here, but for some reason I have the feeling that GMT has no Daylight Savings setting. You ever notice that we're either -0500 or -0400, depending on the time of the year? I think that's what you're running into. Of course, I may be wrong. -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo Windows: More than enough rope. From soazine at pop.mail.rcn.net Wed Apr 2 17:05:28 2003 From: soazine at pop.mail.rcn.net (soazine@pop.erols.com) Date: Wed, 2 Apr 2003 17:05:28 -0500 Subject: Need Javascript "ArraySearch" function for non-sequential array Message-ID: <157240-2200343222528988@M2W094.mail2web.com> have you ever heard of this: You have an array of numbers like (1-10, 20-25, 32, 45-98) and you have to see if your value is in that array - this is in Javascript, how is that done? If anyone knows that'd be awesome, thanx! Phil -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From lance at optimost.com Wed Apr 2 17:46:21 2003 From: lance at optimost.com (Lance Lovette) Date: Wed, 2 Apr 2003 17:46:21 -0500 Subject: [nycphp-talk] gmmktime weirdness In-Reply-To: <200304022128.h32LSGuv019784@parsec.nyphp.org> Message-ID: <002b01c2f969$b00bc980$0a11010a@lance> Wow. Those values are way off base. I'm running Red Hat 7.2. Can anyone produce results from a Red Hat server running PHP 4.3.x? -----Original Message----- From: Hans Zaunere [mailto:hans at nyu.edu] Sent: Wednesday, April 02, 2003 4:28 PM To: NYPHP Talk Subject: Re: [nycphp-talk] gmmktime weirdness Lance Lovette wrote: >Can someone do me a favor and run this script with the latest release >of PHP and tell me what the output is for them? > >$t = gmmktime(2, 0, 0, 4, 6, 2003); >printf('%d = %s expected 2:00 AM
', $t, gmdate('D, d M Y H:i:s T', >$t)); >$t = gmmktime(2, 30, 0, 4, 6, 2003); >printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >$t = gmmktime(3, 0, 0, 4, 6, 2003); >printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); > >gmmktime(0, 0, 0, 1, 1, 1970); // causes later calls to gmmktime to be >wrong > >$t = gmmktime(2, 0, 0, 4, 6, 2003); >printf('%d = %s expected 2:00 AM
', $t, gmdate('D, d M Y H:i:s T', >$t)); >$t = gmmktime(2, 30, 0, 4, 6, 2003); >printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >$t = gmmktime(3, 0, 0, 4, 6, 2003); >printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >?> > >I'm running version 4.2.1 and the output makes no sense to me. > >1049590800 = Sun, 06 Apr 2003 01:00:00 GMT expected 2:00 AM >1049592600 = Sun, 06 Apr 2003 01:30:00 GMT expected 2:30 AM >1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM >1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 2:00 AM >1049599800 = Sun, 06 Apr 2003 03:30:00 GMT expected 2:30 AM >1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM > >First off, calling gmmktime in the middle of the script changes the >return value of later gmmktime calls even though they are identical to >the first set of calls. Second, I figured gmmktime(2, 0, 0, 4, 6, 2003) >would always return 2 AM even though that's when the time "Springs >forward" for me. > http://hans.newyorkphp.com/gmmktime.tmp.php Probably not what you wanted to see. That's on a FreeBSD 4.7 system, and there are significant bugs (that I think some of the PHP folks are trying to skirt :) in relation to DST, mktime() and BSD. http://bugs.php.net/bug.php?id=22163 is just one of them. Search for mktime and gmmktime at bugs.php.net as well. H --- Unsubscribe at http://nyphp.org/list/ --- From anirudh at aumcomputers.com Thu Apr 3 00:37:37 2003 From: anirudh at aumcomputers.com (Anirudh Zala) Date: Thu, 3 Apr 2003 11:07:37 +0530 Subject: Caching only images (to save Bandwidth) Message-ID: <006b01c2f9a3$25c6b480$0164a8c0@com1> Hello Peeps, Is it possible to cache only images at my ISP? My exact situation is that my site has thousands of images, that I want to share among lot of users without loading it from server each time. I know i can use browser cache, but it can store whole documents including images but it works for 1 client only and I don't want to cache whole document, but i just want to cache only images. Morover I prefer to cache images on my ISP server rather than relying on client's browser cache. In short if user A request a page that laods from server then ISP should retain all images on it's cache and when user B request same page or a such page that contains same images, then images should be loaded from that ISP only not by loading it from my server so that I can save my valuable Bandwidth. Thanks, Anirudh Zala ------------------------------------------------------------------------------------------------------- Anirudh Zala (Project Manager) AUM Computers, Tel: +91 281 2451894 425, Star Plaza, Mobile: +91 98981 37727 Rajkot-360 001, Gujarat, INDIA anirudh at aumcomputers.com http://www.aumcomputers.com ------------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at nyphp.org Thu Apr 3 09:59:24 2003 From: hans at nyphp.org (Hans Zaunere) Date: Thu, 3 Apr 2003 06:59:24 -0800 (PST) Subject: Well Good Morning! Message-ID: <20030403145924.75403.qmail@web12807.mail.yahoo.com> It's every list's nightmare: bad procmail rules. A recently subscribed member has an error in his procmail rules, which reflects all mail right back to the list - without rewriting any headers. This is obviously very bad. The user has been isolated, and while I don't think it was malicious, we're keeping an eye on it. My apologies for the spam, and enjoy your day! Regards, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From hans at nyphp.org Thu Apr 3 10:51:45 2003 From: hans at nyphp.org (Hans Zaunere) Date: Thu, 3 Apr 2003 07:51:45 -0800 (PST) Subject: [nycphp-talk] Caching only images In-Reply-To: <200304031337.h33DaYuN047743@parsec.nyphp.org> Message-ID: <20030403155145.43769.qmail@web12805.mail.yahoo.com> This was the message that started the hailstorm, so I figure I'll jump in and test the waters :) --- NYPHP wrote: > Hello Peeps, > > Is it possible to cache only images at my ISP? My exact situation is that > my site has thousands of images, that I want to share among lot of users > without loading it from server each time. I know i can use browser cache, > but it can store whole documents including images but it works for 1 client > only and I don't want to cache whole document, but i just want to cache > only images. Morover I prefer to cache images on my ISP server rather than > relying on client's browser cache. Assuming I understand completly, the answer is no. > In short if user A request a page that laods from server then ISP should > retain all images on it's cache and when user B request same page or a such > page that contains same images, then images should be loaded from that ISP > only not by loading it from my server so that I can save my valuable > Bandwidth. No - you have no control over how other people access your site. If user is using an ISP that uses caching, and you have proper caching headers set on your pages, then it'll save you bandwidth. But you have no way of enforcing this. That said, there is a *slight* chance that you could work something out with *your* ISP, whereby they cache content for you, and for some insane reason would charge you less for the bandwidth used, but this is all highly unlikely. H ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From lance at optimost.com Thu Apr 3 11:01:44 2003 From: lance at optimost.com (Lance Lovette) Date: Thu, 3 Apr 2003 11:01:44 -0500 Subject: [nycphp-talk] gmmktime weirdness In-Reply-To: <200304022128.h32LSGuv019784@parsec.nyphp.org> Message-ID: <000601c2f9fa$55e0c7d0$0a11010a@lance> Wow. Although not too surprising, those values are way off base. I'm running Red Hat 7.2. Can anyone produce results from a Red Hat server running PHP 4.3.x? I want to know the current behavior of gmmktime before I submit a new bug report. -----Original Message----- From: Hans Zaunere [mailto:hans at nyu.edu] Sent: Wednesday, April 02, 2003 4:28 PM To: NYPHP Talk Subject: Re: [nycphp-talk] gmmktime weirdness Lance Lovette wrote: >Can someone do me a favor and run this script with the latest release >of PHP and tell me what the output is for them? > >$t = gmmktime(2, 0, 0, 4, 6, 2003); >printf('%d = %s expected 2:00 AM
', $t, gmdate('D, d M Y H:i:s T', >$t)); >$t = gmmktime(2, 30, 0, 4, 6, 2003); >printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >$t = gmmktime(3, 0, 0, 4, 6, 2003); >printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); > >gmmktime(0, 0, 0, 1, 1, 1970); // causes later calls to gmmktime to be >wrong > >$t = gmmktime(2, 0, 0, 4, 6, 2003); >printf('%d = %s expected 2:00 AM
', $t, gmdate('D, d M Y H:i:s T', >$t)); >$t = gmmktime(2, 30, 0, 4, 6, 2003); >printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >$t = gmmktime(3, 0, 0, 4, 6, 2003); >printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >?> > >I'm running version 4.2.1 and the output makes no sense to me. > >1049590800 = Sun, 06 Apr 2003 01:00:00 GMT expected 2:00 AM 1049592600 >= Sun, 06 Apr 2003 01:30:00 GMT expected 2:30 AM 1049598000 = Sun, 06 >Apr 2003 03:00:00 GMT expected 3:00 AM 1049598000 = Sun, 06 Apr 2003 >03:00:00 GMT expected 2:00 AM 1049599800 = Sun, 06 Apr 2003 03:30:00 >GMT expected 2:30 AM 1049598000 = Sun, 06 Apr 2003 03:00:00 GMT >expected 3:00 AM > >First off, calling gmmktime in the middle of the script changes the >return value of later gmmktime calls even though they are identical to >the first set of calls. Second, I figured gmmktime(2, 0, 0, 4, 6, 2003) >would always return 2 AM even though that's when the time "Springs >forward" for me. > http://hans.newyorkphp.com/gmmktime.tmp.php Probably not what you wanted to see. That's on a FreeBSD 4.7 system, and there are significant bugs (that I think some of the PHP folks are trying to skirt :) in relation to DST, mktime() and BSD. http://bugs.php.net/bug.php?id=22163 is just one of them. Search for mktime and gmmktime at bugs.php.net as well. H --- Unsubscribe at http://nyphp.org/list/ --- From hans at nyphp.org Thu Apr 3 11:09:37 2003 From: hans at nyphp.org (Hans Zaunere) Date: Thu, 3 Apr 2003 08:09:37 -0800 (PST) Subject: [nycphp-talk] math library In-Reply-To: <200304021618.h32GIDuL002205@parsec.nyphp.org> Message-ID: <20030403160937.92786.qmail@web12802.mail.yahoo.com> Hi Carlos, Good to see they haven't buried you completly :) --- Carlos Hoyos wrote: > I just started reading this article: > > http://www-106.ibm.com/developerworks/web/library/wa-linphp/ > > and the first sentence caught my eye > "In contrast with other open source languages like Perl and Python, PHP > lacks a robust community effort to develop a math library." I agree, although am skeptical on the "robust community effort to develop a math library" for the aforementioned languages, as well. Regardless, PHP is geared toward Internet connectivity, databases, and frontend types of manipulation. Not until recently has it been recognized as useful for other, "old school" jobs, and there is a lot of room to grow. > Anyway, php has some math functions built in the standard module (and also > bcmath)... but I don't recall any advanced math libraries (lineal algebra, > statistics, series, complex numbers). I haven't seen anything like this either. That said, there are some libraries for graphing functionality (not just drawing the actual graph, but doing the number crunching), albeit not onpar, last I looked, with some of the C libs for similar purposes. > I am originally a mathematician with good experience in algorithms, and > would be interested in building (or at least sizing the possibility of) an > advanced math module for php. Could this be worth it for PHP ? I think so; especially from the perspective of graphing, statistics and analysis. It could be hugely useful in the mapping, financial/stock markets, and scientific arenas. > If anybody is aware of any work being conducted in that direction, is > interested in discussing this a bit more, has any suggestions of other > contacts in that area, please reply or contact me directly I wish I could help more than saying what a good idea it would be. This doesn't help much: http://www.google.com/search?q=php+math+library but: http://sourceforge.net/softwaremap/trove_list.php?form_cat=98&discrim=164 may be a nice list of libraries that would be canidates for wrapping in a PHP extension. Regards, H From drodriguez1 at mac.com Thu Apr 3 11:12:07 2003 From: drodriguez1 at mac.com (David Rodriguez) Date: Thu, 3 Apr 2003 11:12:07 -0500 Subject: [nycphp-talk] Caching only images In-Reply-To: <200304031552.h33FplHp083822@parsec.nyphp.org> Message-ID: <043ED252-65EF-11D7-ADB8-000A27D8C444@mac.com> That is the kind of thing a service like Akamai does for you. They store copies of whatever images or video you want on servers all over the world and when someone makes a request the data is drawn from the server closest to the requester. Go to Akamai.com for more info. Otherwise I agree with Hans, you can't do it. D. On Thursday, Apr 3, 2003, at 10:51 America/New_York, Hans Zaunere wrote: > > This was the message that started the hailstorm, so I figure I'll jump > in and > test the waters :) > > --- NYPHP wrote: >> Hello Peeps, >> >> Is it possible to cache only images at my ISP? My exact situation is >> that >> my site has thousands of images, that I want to share among lot of >> users >> without loading it from server each time. I know i can use browser >> cache, >> but it can store whole documents including images but it works for 1 >> client >> only and I don't want to cache whole document, but i just want to >> cache >> only images. Morover I prefer to cache images on my ISP server rather >> than >> relying on client's browser cache. > > Assuming I understand completly, the answer is no. > >> In short if user A request a page that laods from server then ISP >> should >> retain all images on it's cache and when user B request same page or >> a such >> page that contains same images, then images should be loaded from >> that ISP >> only not by loading it from my server so that I can save my valuable >> Bandwidth. > > No - you have no control over how other people access your site. If > user is > using an ISP that uses caching, and you have proper caching headers > set on > your pages, then it'll save you bandwidth. But you have no way of > enforcing > this. > > That said, there is a *slight* chance that you could work something > out with > *your* ISP, whereby they cache content for you, and for some insane > reason > would charge you less for the bandwidth used, but this is all highly > unlikely. > > H > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From lance.listserv at optimost.com Thu Apr 3 11:21:26 2003 From: lance.listserv at optimost.com (Lance Lovette) Date: Thu, 3 Apr 2003 11:21:26 -0500 Subject: [nycphp-talk] gmmktime weirdness In-Reply-To: <200304022128.h32LSGuv019784@parsec.nyphp.org> Message-ID: <000a01c2f9fd$16f0d800$0a11010a@lance> Wow. Although not too surprising, those values are way off base. I'm running Red Hat 7.2. Can anyone produce results from a Red Hat server running PHP 4.3.x? I want to know the current behavior of gmmktime before I submit a new bug report. -----Original Message----- From: Hans Zaunere [mailto:hans at nyu.edu] Sent: Wednesday, April 02, 2003 4:28 PM To: NYPHP Talk Subject: Re: [nycphp-talk] gmmktime weirdness Lance Lovette wrote: >Can someone do me a favor and run this script with the latest release >of PHP and tell me what the output is for them? > >$t = gmmktime(2, 0, 0, 4, 6, 2003); >printf('%d = %s expected 2:00 AM
', $t, gmdate('D, d M Y H:i:s T', >$t)); >$t = gmmktime(2, 30, 0, 4, 6, 2003); >printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >$t = gmmktime(3, 0, 0, 4, 6, 2003); >printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); > >gmmktime(0, 0, 0, 1, 1, 1970); // causes later calls to gmmktime to be >wrong > >$t = gmmktime(2, 0, 0, 4, 6, 2003); >printf('%d = %s expected 2:00 AM
', $t, gmdate('D, d M Y H:i:s T', >$t)); >$t = gmmktime(2, 30, 0, 4, 6, 2003); >printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >$t = gmmktime(3, 0, 0, 4, 6, 2003); >printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >?> > >I'm running version 4.2.1 and the output makes no sense to me. > >1049590800 = Sun, 06 Apr 2003 01:00:00 GMT expected 2:00 AM >1049592600 = Sun, 06 Apr 2003 01:30:00 GMT expected 2:30 AM >1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM >1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 2:00 AM >1049599800 = Sun, 06 Apr 2003 03:30:00 GMT expected 2:30 AM >1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM > >First off, calling gmmktime in the middle of the script changes the >return value of later gmmktime calls even though they are identical to >the first set of calls. Second, I figured gmmktime(2, 0, 0, 4, 6, 2003) >would always return 2 AM even though that's when the time "Springs >forward" for me. > http://hans.newyorkphp.com/gmmktime.tmp.php Probably not what you wanted to see. That's on a FreeBSD 4.7 system, and there are significant bugs (that I think some of the PHP folks are trying to skirt :) in relation to DST, mktime() and BSD. http://bugs.php.net/bug.php?id=22163 is just one of them. Search for mktime and gmmktime at bugs.php.net as well. H --- Unsubscribe at http://nyphp.org/list/ --- From max at idsociety.com Thu Apr 3 11:27:07 2003 From: max at idsociety.com (max goldberg) Date: Thu, 03 Apr 2003 11:27:07 -0500 Subject: [nycphp-talk] Caching only images References: <200304031552.h33FplGx083822@parsec.nyphp.org> Message-ID: <3E8C60DB.4030803@idsociety.com> One thing you could try doing is having all of your images go through a php script, send some cache headers, then output the image. Alternatively you could see if there was something you could put in a .htaccess that would do the same thing. This may or may not work but it's definately worth a try. For more info on caching headers see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html -m Hans Zaunere wrote: > This was the message that started the hailstorm, so I figure I'll jump in and > test the waters :) > > --- NYPHP wrote: > >>Hello Peeps, >> >>Is it possible to cache only images at my ISP? My exact situation is that >>my site has thousands of images, that I want to share among lot of users >>without loading it from server each time. I know i can use browser cache, >>but it can store whole documents including images but it works for 1 client >>only and I don't want to cache whole document, but i just want to cache >>only images. Morover I prefer to cache images on my ISP server rather than >>relying on client's browser cache. > > > Assuming I understand completly, the answer is no. > > >>In short if user A request a page that laods from server then ISP should >>retain all images on it's cache and when user B request same page or a such >>page that contains same images, then images should be loaded from that ISP >>only not by loading it from my server so that I can save my valuable >>Bandwidth. > > > No - you have no control over how other people access your site. If user is > using an ISP that uses caching, and you have proper caching headers set on > your pages, then it'll save you bandwidth. But you have no way of enforcing > this. > > That said, there is a *slight* chance that you could work something out with > *your* ISP, whereby they cache content for you, and for some insane reason > would charge you less for the bandwidth used, but this is all highly > unlikely. > > H > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From hans at nyu.edu Thu Apr 3 11:41:58 2003 From: hans at nyu.edu (Hans Zaunere) Date: Thu, 03 Apr 2003 11:41:58 -0500 Subject: [nycphp-talk] gmmktime weirdness In-Reply-To: <200304031622.h33GLZJ9087742@parsec.nyphp.org> References: <200304031622.h33GLZJ9087742@parsec.nyphp.org> Message-ID: <3E8C6456.5080605@nyu.edu> PHP 4.3.0 (Apache DSO) on RH 7.3 1049598000 = Sat, 05 Apr 2003 22:00:00 EST expected 2:00 AM 1049599800 = Sun, 06 Apr 2003 03:30:00 GMT expected 2:30 AM 1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM 1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 2:00 AM 1049599800 = Sun, 06 Apr 2003 03:30:00 GMT expected 2:30 AM 1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM H Lance Lovette wrote: >Wow. Although not too surprising, those values are way off base. I'm running >Red Hat 7.2. Can anyone produce results from a Red Hat server running PHP >4.3.x? I want to know the current behavior of gmmktime before I submit a new >bug report. > >-----Original Message----- >From: Hans Zaunere [mailto:hans at nyu.edu] >Sent: Wednesday, April 02, 2003 4:28 PM >To: NYPHP Talk >Subject: Re: [nycphp-talk] gmmktime weirdness > > > >Lance Lovette wrote: > > > >>Can someone do me a favor and run this script with the latest release >>of PHP and tell me what the output is for them? >> >>>$t = gmmktime(2, 0, 0, 4, 6, 2003); >>printf('%d = %s expected 2:00 AM
', $t, gmdate('D, d M Y H:i:s T', >>$t)); >>$t = gmmktime(2, 30, 0, 4, 6, 2003); >>printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >> >> > > > >>$t = gmmktime(3, 0, 0, 4, 6, 2003); >>printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >> >>gmmktime(0, 0, 0, 1, 1, 1970); // causes later calls to gmmktime to be >>wrong >> >>$t = gmmktime(2, 0, 0, 4, 6, 2003); >>printf('%d = %s expected 2:00 AM
', $t, gmdate('D, d M Y H:i:s T', >>$t)); >>$t = gmmktime(2, 30, 0, 4, 6, 2003); >>printf('%d = %s expected 2:30 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >> >> > > > >>$t = gmmktime(3, 0, 0, 4, 6, 2003); >>printf('%d = %s expected 3:00 AM
', $t, gmdate('D, d M Y H:i:s T', $t)); >> >> > > > >>?> >> >>I'm running version 4.2.1 and the output makes no sense to me. >> >>1049590800 = Sun, 06 Apr 2003 01:00:00 GMT expected 2:00 AM >>1049592600 = Sun, 06 Apr 2003 01:30:00 GMT expected 2:30 AM >>1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM >>1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 2:00 AM >>1049599800 = Sun, 06 Apr 2003 03:30:00 GMT expected 2:30 AM >>1049598000 = Sun, 06 Apr 2003 03:00:00 GMT expected 3:00 AM >> >>First off, calling gmmktime in the middle of the script changes the >>return value of later gmmktime calls even though they are identical to >>the first set of calls. Second, I figured gmmktime(2, 0, 0, 4, 6, 2003) >>would always return 2 AM even though that's when the time "Springs >>forward" for me. >> >> >> >http://hans.newyorkphp.com/gmmktime.tmp.php > >Probably not what you wanted to see. That's on a FreeBSD 4.7 system, >and there are significant bugs (that I think some of the PHP folks are >trying to skirt :) in relation to DST, mktime() and BSD. > >http://bugs.php.net/bug.php?id=22163 > >is just one of them. Search for mktime and gmmktime at bugs.php.net as >well. > >H > > > > > > > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > From danporcher at earthlink.net Thu Apr 3 13:14:51 2003 From: danporcher at earthlink.net (Daniel Porcher) Date: Thu, 3 Apr 2003 13:14:51 -0500 Subject: Problems writing session variables Message-ID: Can anyone tell me why I can't successfully write out session variables. I'm test in a Windows AMP environment. I doublechecked the session folder in php.ini and I'm successfully creating and deleting the sessions themselves. When I look at the variables in the session file after I execute the code below, all I see is: !ses_user| The code: Message-ID: <9ACA6584-6602-11D7-96F8-0050E4858059@plusfour.org> Hi, See notes below. On Thursday, April 3, 2003, at 10:11 AM, Daniel Porcher wrote: > > function loginuser() > { > > global $_POST; > global $_SESSION; > //Add these things to debug, make sure you have data.. and see what data you have.. print_r($_POST) . " POST
\ "; > $userid = $_POST['userid']; > $passwd = $_POST['passwd']; > print_r($_SESSION) . " SESSION
\ "; > //I validate user against DB here, if valid I write out session > variables // i am not sure if this is correct.. print_r the vaules of each field, or if you can, get the whole row.. and print_r that row.. print_r($rsSecurity) . " ODBC CONNECTION SOMETHING OR OTHER
\ "; > > $_SESSION['ses_user'] = $userid; > $_SESSION['ses_access'] = odbc_result($rsSecurity,'AccessType'); > $_SESSION['ses_orgtype'] = odbc_result($rsSecurity,'OrgType'); > $_SESSION['ses_orgid'] = odbc_result($rsSecurity,'OrgID'); > print_r($_SESSION) . " SESSION AFTER DB
\ "; > } Does the correct info print out? What is there? Ian From davevgl at yahoo.com Thu Apr 3 14:19:12 2003 From: davevgl at yahoo.com (David Vogel) Date: Thu, 3 Apr 2003 11:19:12 -0800 (PST) Subject: file include performance In-Reply-To: <200304031812.h33IBYNn001687@parsec.nyphp.org> Message-ID: <20030403191912.41170.qmail@web14303.mail.yahoo.com> Just wondering if anyone has a sense of how much of a performance hit you incur by including a file in php. Specifically I have a script with two main branches. Does it make any sense to separate those out into two different include files, or does the cost of getting a file outweigh the cost of downloading both branches when only using one? thanks, David __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com From ophir at prusak.com Thu Apr 3 14:50:06 2003 From: ophir at prusak.com (Ophir Prusak) Date: Thu, 3 Apr 2003 14:50:06 -0500 Subject: [nycphp-talk] file include performance References: <200304031920.h33JJGK1008490@parsec.nyphp.org> Message-ID: <014f01c2fa1a$3a4db4e0$bf65a8c0@tag1002> The performace hit of reading a file should be very very small. If the file is read often it'll probably be in the OS's file cache anyways, so you won't even be reading it from disk. ----- Original Message ----- From: "David Vogel" To: "NYPHP Talk" Sent: Thursday, April 03, 2003 2:19 PM Subject: [nycphp-talk] file include performance > Just wondering if anyone has a sense of how much of a performance hit > you incur by including a file in php. Specifically I have a script > with two main branches. Does it make any sense to separate those out > into two different include files, or does the cost of getting a file > outweigh the cost of downloading both branches when only using one? > > thanks, > David > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - File online, calculators, forms, and more > http://tax.yahoo.com > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From hans at nyphp.org Thu Apr 3 16:06:52 2003 From: hans at nyphp.org (Hans Zaunere) Date: Thu, 3 Apr 2003 13:06:52 -0800 (PST) Subject: [nycphp-talk] Problems writing session variables In-Reply-To: <200304031812.h33IBYJ1001687@parsec.nyphp.org> Message-ID: <20030403210652.57054.qmail@web12802.mail.yahoo.com> --- Daniel Porcher wrote: > Can anyone tell me why I can't successfully write out session variables. > > I'm test in a Windows AMP environment. I doublechecked the session folder > in > php.ini and I'm successfully creating and deleting the sessions themselves. > When I look at the variables in the session file after I execute the code > below, all I see is: > > !ses_user| > > > The code: > > > session_start(); > > loginuser(); > > function loginuser() > { > > global $_POST; > global $_SESSION; This is unneeded, and may be your problem (although I'm pretty PHP would just ignore it). $_POST and $_SESSION are superglobals: they are available in all scopes. > $userid = $_POST['userid']; > $passwd = $_POST['passwd']; > > //I validate user against DB here, if valid I write out session > variables Double check that you're actually getting what you expect: var_dump($userid); var_dump($passwd); > $_SESSION['ses_user'] = $userid; > $_SESSION['ses_access'] = odbc_result($rsSecurity,'AccessType'); > $_SESSION['ses_orgtype'] = odbc_result($rsSecurity,'OrgType'); > $_SESSION['ses_orgid'] = odbc_result($rsSecurity,'OrgID'); This should work, although I would double check that the odbc_result() calls return what you expect before investigating it as session troubles first. var_dump(); is your friend. H > } > > > Thanks, > > Dan > > > Daniel Porcher > President > Watershed Web Design > > Website: http://www.watersheddesign.com > E-mail: dporcher at watersheddesign.com > Phone: 609-466-0266 > > "A ship in harbor is safe, but that is not what ships are built for." > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From zaunere at yahoo.com Thu Apr 3 16:10:55 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 3 Apr 2003 13:10:55 -0800 (PST) Subject: [nycphp-talk] file include performance In-Reply-To: <200304031919.h33JJGJ1008490@parsec.nyphp.org> Message-ID: <20030403211055.79189.qmail@web12801.mail.yahoo.com> --- David Vogel wrote: > Just wondering if anyone has a sense of how much of a performance hit > you incur by including a file in php. Specifically I have a script > with two main branches. Does it make any sense to separate those out > into two different include files, or does the cost of getting a file > outweigh the cost of downloading both branches when only using one? It might; if you expect a rise in traffic, or experience performance issues now, you may see a benefit. It's really a the cost of PHP reading and compiling the files that's important. I had a similar message about this: http://nyphp.org/list/paralist_archive.php?L_mid=3771 ( sorry folks - a new, SEARCHABLE mailing list archive is around the corner ) H > > thanks, > David > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - File online, calculators, forms, and more > http://tax.yahoo.com > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From cahoyos at us.ibm.com Thu Apr 3 16:24:24 2003 From: cahoyos at us.ibm.com (Carlos Hoyos) Date: Thu, 3 Apr 2003 16:24:24 -0500 Subject: [nycphp-talk] file include performance Message-ID: It really depends on your traffic and load if you can afford it or not. For some web tools (low traffic), I've included all classes in a file header to make maintenance easier, as well as code completeness. This choice, of course, after having profiled my code and realized that initialization took around 10% of execution time (acceptable for this tool) (this 10% was after using code cache, it was around 20% before). Carlos David Vogel m> cc: Subject: [nycphp-talk] file include performance 04/03/2003 02:19 PM Please respond to talk Just wondering if anyone has a sense of how much of a performance hit you incur by including a file in php. Specifically I have a script with two main branches. Does it make any sense to separate those out into two different include files, or does the cost of getting a file outweigh the cost of downloading both branches when only using one? thanks, David __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com --- Unsubscribe at http://nyphp.org/list/ --- From adam at trachtenberg.com Thu Apr 3 17:34:54 2003 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Thu, 3 Apr 2003 17:34:54 -0500 (EST) Subject: [nycphp-talk] file include performance In-Reply-To: <200304031920.h33JJGLV008490@parsec.nyphp.org> Message-ID: On Thu, 3 Apr 2003, David Vogel wrote: > Just wondering if anyone has a sense of how much of a performance hit > you incur by including a file in php. Specifically I have a script > with two main branches. Does it make any sense to separate those out > into two different include files, or does the cost of getting a file The PHP Internals (nee php-dev) mailing list has a few messages from Rasmus about this topic. (Say about 1-2 months ago.) In general, unless you're running FreeBSD, things are pretty fast. If you're running FreeBSD, things can be slow, especially under heavy load. In his case, heavy load was Yahoo!, so YMMV. :) He made some modifications to improve performance, so if you do find this to be a problem, make sure you're running the most recent CVS code, as I don't know if those patches made it into the current final release. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From chris at shiflett.org Thu Apr 3 17:46:44 2003 From: chris at shiflett.org (Chris Shiflett) Date: Thu, 3 Apr 2003 14:46:44 -0800 (PST) Subject: [nycphp-talk] file include performance In-Reply-To: <200304032235.h33MYvKV016295@parsec.nyphp.org> Message-ID: <20030403224644.18001.qmail@web14307.mail.yahoo.com> --- Adam Maccabee Trachtenberg wrote: > The PHP Internals (nee php-dev) mailing list has a few messages from > Rasmus about this topic. (Say about 1-2 months ago.) Here is the thread if anyone is interested (sorry in advance for the wrapping): http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&frame=right&rnum=1&thl=0,1119753295,1119748537,1119746883,1119725663,1119724441,1119720352,1119719789,1119719651,1119719475,1119717685,1119717149&seekm=b0shk1%241hcu%241%40FreeBSD.csie.NCTU.edu.tw#link1 Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ From melissa at inexact.info Thu Apr 3 19:16:22 2003 From: melissa at inexact.info (Melissa) Date: Thu, 3 Apr 2003 19:16:22 -0500 Subject: rewrite help! In-Reply-To: <200304032247.h33MklH7017171@parsec.nyphp.org> Message-ID: Sorry if this is a little off topic, but i was hoping to get some help with a mod_rewrite problem. I used a statement in my .htaccess with an error that caused an infinite loop, and understandably my host got a bit peeved. If I get it wrong again, they may cancel my account - the problem being, that I think I have the error corrected, but I don't want to risk testing it and losing my hosting. What I am trying to do is to make everything redirect to /index.php: so http://inexact.info/this/that would go to http://www.inexact.info/index.php where lives php that would make use of /this/that as variables - thus avoiding having urls like inexact.info/index.php?var1=this&var2=that. Is the following correct to put in .htaccess and achieve this goal, or will it simply loop infinitly and cause me to get booted from dreamhost? RewriteEngine on RewriteRule !\\.(gif|jpg|png|css)$ /home/risoeng/inexact.info/index.php Thanks, Melissa From danporcher at earthlink.net Thu Apr 3 20:26:55 2003 From: danporcher at earthlink.net (Daniel Porcher) Date: Thu, 3 Apr 2003 20:26:55 -0500 Subject: [nycphp-talk] Problems writing session variables In-Reply-To: <200304031832.h33IWREn004224@parsec.nyphp.org> Message-ID: I appear to be setting the Session variables within the program, but nothing is actually being stored on the server once the program ends. If I open the session file after the php file is run, the file is completely blank. At first I thought the problem was related to the fact that I was using a redirect after I set the variables, but removing the redirect made no difference. Any other thoughts? My understanding of how sessions should work is you use session_start() to create a new session if none exists or access the current session, if it currently exists. Writing to a session variable will either create a new one if it doesn't exist or overwrite an existing value if the variable has already been created. Is this correct? Dan Here are the var_dumps: POST: array(4) { ["action"]=> string(9) "loginuser" ["userid"]=> string(10) "testagency" ["passwd"]=> string(6) "agency" ["submit"]=> string(5) "Enter" } SESSION before accessing DB: array(0) { } SESSION after writing variables from DB: array(4) { ["ses_user"]=> string(10) "testagency" ["ses_access"]=> string(1) "1" ["ses_orgtype"]=> string(1) "1" ["ses_orgid"]=> string(1) "1" } ID: 8b516266d29b2b69fb47f2c3145f53f9 iisset(SESSION['ses_user']): 1 session_cache_expire 180 session_cache_limiter nocache -----Original Message----- From: Ian Forsyth [mailto:ian at plusfour.org] Sent: Thursday, April 03, 2003 1:32 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Problems writing session variables Hi, See notes below. On Thursday, April 3, 2003, at 10:11 AM, Daniel Porcher wrote: > > function loginuser() > { > > global $_POST; > global $_SESSION; > //Add these things to debug, make sure you have data.. and see what data you have.. print_r($_POST) . " POST
\ "; > $userid = $_POST['userid']; > $passwd = $_POST['passwd']; > print_r($_SESSION) . " SESSION
\ "; > //I validate user against DB here, if valid I write out session > variables // i am not sure if this is correct.. print_r the vaules of each field, or if you can, get the whole row.. and print_r that row.. print_r($rsSecurity) . " ODBC CONNECTION SOMETHING OR OTHER
\ "; > > $_SESSION['ses_user'] = $userid; > $_SESSION['ses_access'] = odbc_result($rsSecurity,'AccessType'); > $_SESSION['ses_orgtype'] = odbc_result($rsSecurity,'OrgType'); > $_SESSION['ses_orgid'] = odbc_result($rsSecurity,'OrgID'); > print_r($_SESSION) . " SESSION AFTER DB
\ "; > } Does the correct info print out? What is there? Ian --- Unsubscribe at http://nyphp.org/list/ --- From dorgan at optonline.net Thu Apr 3 23:11:05 2003 From: dorgan at optonline.net (Donald J. Organ IV) Date: Thu, 03 Apr 2003 23:11:05 -0500 Subject: Fw: Need some help Message-ID: <00c001c2fa60$370a1fd0$0600020a@dorganmobile> Has anyone ever used a java based WYSIWYG called ekit. I am running into a problem when i try to display the html loaded from a database. if i have quotes in the field which happens when the WYSIWYG places

into the field. When the WYSIWUT displays the information it cuts off all the information after the first quote and just ends the

and I dont get anything else, can anyone help. From xml at aumcomputers.com Fri Apr 4 00:06:57 2003 From: xml at aumcomputers.com (NYPHP) Date: Fri, 4 Apr 2003 10:36:57 +0530 Subject: [nycphp-talk] Caching only images References: <200304031612.h33GCBDT086740@parsec.nyphp.org> Message-ID: <00ca01c2fa68$137431c0$3500a8c0@com1> Hans, your comment: "If user is using an ISP that uses caching, and you have proper caching headers set on your pages, then it'll save you bandwidth" Here seems some hope, then i would like to know what are those proper "caching headers set" that i need to set in my php script. Consider below example of function header. (page will be cached for for 1 day, including all objects that reside in it) header("Cache-Control: max-age=86400, must-revalidate"); Above function caches page on client or isp (for now forget where it stores), BUT it stores whole document. While i need to store only IMAGES that resides in this document. So do ineed to write above header in some other way so that it will cache only images rather than docment? In short is there any other arguments like "Content-type: image/jpg" that i need to pass in above header functions so that i can cache only images NOT document. I assume it is possible but i just don't know how, nor i could find any example anywhere. Thanks, Anirudh Zala ----- Original Message ----- From: "David Rodriguez" To: "NYPHP Talk" Sent: Thursday, 03 April, 2003 9:42 PM Subject: Re: [nycphp-talk] Caching only images > That is the kind of thing a service like Akamai does for you. They > store copies of whatever images or video you want on servers all over > the world and when someone makes a request the data is drawn from the > server closest to the requester. Go to Akamai.com for more info. > Otherwise I agree with Hans, you can't do it. > > D. > > On Thursday, Apr 3, 2003, at 10:51 America/New_York, Hans Zaunere wrote: > > > > > This was the message that started the hailstorm, so I figure I'll jump > > in and > > test the waters :) > > > > --- NYPHP wrote: > >> Hello Peeps, > >> > >> Is it possible to cache only images at my ISP? My exact situation is > >> that > >> my site has thousands of images, that I want to share among lot of > >> users > >> without loading it from server each time. I know i can use browser > >> cache, > >> but it can store whole documents including images but it works for 1 > >> client > >> only and I don't want to cache whole document, but i just want to > >> cache > >> only images. Morover I prefer to cache images on my ISP server rather > >> than > >> relying on client's browser cache. > > > > Assuming I understand completly, the answer is no. > > > >> In short if user A request a page that laods from server then ISP > >> should > >> retain all images on it's cache and when user B request same page or > >> a such > >> page that contains same images, then images should be loaded from > >> that ISP > >> only not by loading it from my server so that I can save my valuable > >> Bandwidth. > > > > No - you have no control over how other people access your site. If > > user is > > using an ISP that uses caching, and you have proper caching headers > > set on > > your pages, then it'll save you bandwidth. But you have no way of > > enforcing > > this. > > > > That said, there is a *slight* chance that you could work something > > out with > > *your* ISP, whereby they cache content for you, and for some insane > > reason > > would charge you less for the bandwidth used, but this is all highly > > unlikely. > > > > H > > > > > > ===== > > Hans Zaunere > > President, New York PHP > > http://nyphp.org > > hans at nyphp.org > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From shiflett at php.net Fri Apr 4 00:18:21 2003 From: shiflett at php.net (Chris Shiflett) Date: Thu, 3 Apr 2003 21:18:21 -0800 (PST) Subject: [nycphp-talk] Caching only images In-Reply-To: <200304040509.h34590KV028666@parsec.nyphp.org> Message-ID: <20030404051821.47723.qmail@web14302.mail.yahoo.com> --- NYPHP wrote: > Here seems some hope, then i would like to know what are those proper > "caching headers set" that i need to set in my php script. Consider below > example of function header. (page will be cached for for 1 day, including > all objects that reside in it) > > header("Cache-Control: max-age=86400, must-revalidate"); > > Above function caches page on client or isp (for now forget where it > stores), BUT it stores whole document. While i need to store only IMAGES > that resides in this document. So do ineed to write above header in some > other way so that it will cache only images rather than docment? Embedded resources such as images are fetched with a separate HTTP request. What does this mean? It means that the HTTP headers you use in blah.php do not affect the caching behavior of images within blah.php in any way. If your images are generated by a PHP script (for example, you use ), then you can use header() calls in the image_generator.php script to alter the headers of images. Otherwise (this is the more common case), the headers returned for images relies completely on your Web server and has nothing to do with your PHP. Hope that helps; I actually wasn't following this thread, but I wanted to throw that in. It has been known to cause great confusion (and I'm not entirely sure I explained it clearly). Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ From xml at aumcomputers.com Fri Apr 4 00:30:06 2003 From: xml at aumcomputers.com (NYPHP) Date: Fri, 4 Apr 2003 11:00:06 +0530 Subject: [nycphp-talk] Caching only images References: <200304040518.h345IPDT029505@parsec.nyphp.org> Message-ID: <00e801c2fa6b$42901a20$3500a8c0@com1> Chris, This is right. I am not generating any images using my php script, those are just static ones that reside in images directory and is being used in php scripts. My document outputs 270 kb as results including 100kb of those static images that remains static all the time. So i assumed that if somehow, by passing headers or something like that i can tell browser cache or isp cache to store those images at locally and always using from there only, whenever requested. So for me my script will output only 170 kb and i can handle more clients and can save my bandwidth. But i guess it was my misunderstanding. what do u think? Thanks Anirudh Zala ----- Original Message ----- From: "Chris Shiflett" To: "NYPHP Talk" Sent: Friday, 04 April, 2003 10:48 AM Subject: Re: [nycphp-talk] Caching only images > --- NYPHP wrote: > > Here seems some hope, then i would like to know what are those proper > > "caching headers set" that i need to set in my php script. Consider below > > example of function header. (page will be cached for for 1 day, including > > all objects that reside in it) > > > > header("Cache-Control: max-age=86400, must-revalidate"); > > > > Above function caches page on client or isp (for now forget where it > > stores), BUT it stores whole document. While i need to store only IMAGES > > that resides in this document. So do ineed to write above header in some > > other way so that it will cache only images rather than docment? > > Embedded resources such as images are fetched with a separate HTTP request. > What does this mean? It means that the HTTP headers you use in blah.php do not > affect the caching behavior of images within blah.php in any way. > > If your images are generated by a PHP script (for example, you use src="/image_generator.php">), then you can use header() calls in the > image_generator.php script to alter the headers of images. > > Otherwise (this is the more common case), the headers returned for images > relies completely on your Web server and has nothing to do with your PHP. > > Hope that helps; I actually wasn't following this thread, but I wanted to throw > that in. It has been known to cause great confusion (and I'm not entirely sure > I explained it clearly). > > Chris > > ===== > Become a better Web developer with the HTTP Developer's Handbook > http://httphandbook.org/ > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From nyphp at enobrev.com Fri Apr 4 10:05:02 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 4 Apr 2003 10:05:02 -0500 Subject: Any way to check for CLI? Message-ID: <019e01c2fabb$94a784b0$e1951d18@enobrev> Do any of you by any chance know how to check if a script is called via command line or from a browser? I have a script that is called from either one, and I need to change the output methods accordingly. Looking at the phpinfo, I don't see any variable that seems like a solid "this is from the command line". Oh, and to slip a second one in here. What is $_SERVER['PWD']? I noticed it shows the dir structure to the current file on my server, which is fantastic. Is that what it's supposed to do? And what does PWD stand for. Muchos Thanks and have a great Friday!!! Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From brian at preston-campbell.com Fri Apr 4 10:07:17 2003 From: brian at preston-campbell.com (Brian) Date: Fri, 4 Apr 2003 10:07:17 -0500 Subject: [nycphp-talk] Any way to check for CLI? In-Reply-To: <200304041506.h34F5KJx044785@parsec.nyphp.org> References: <200304041506.h34F5KJx044785@parsec.nyphp.org> Message-ID: <200304041007.17781.brian@preston-campbell.com> [P]rintf [W]orking [D]irectory ? Just a guess. Brian On Friday 04 April 2003 10:05 am, Mark Armendariz wrote: > Do any of you by any chance know how to check if a script is called > via command line or from a browser? > > I have a script that is called from either one, and I need to > change the output methods accordingly. Looking at the phpinfo, I > don't see any variable that seems like a solid "this is from the > command line". > > Oh, and to slip a second one in here. What is $_SERVER['PWD']? I > noticed it shows the dir structure to the current file on my > server, which is fantastic. Is that what it's supposed to do? And > what does PWD stand for. > > Muchos Thanks and have a great Friday!!! > > Mark > > > > --- Unsubscribe at http://nyphp.org/list/ --- From tfreedma at ubspw.com Fri Apr 4 10:10:03 2003 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Fri, 4 Apr 2003 10:10:03 -0500 Subject: [nycphp-talk] Any way to check for CLI? Message-ID: PWD is "Present Working Directory". It's also *NIX command to display exactly the same information... kind of a "where am I?" -----Original Message----- From: Mark Armendariz [mailto:nyphp at enobrev.com] Sent: Friday, April 04, 2003 10:05 AM To: NYPHP Talk Subject: [nycphp-talk] Any way to check for CLI? Do any of you by any chance know how to check if a script is called via command line or from a browser? I have a script that is called from either one, and I need to change the output methods accordingly. Looking at the phpinfo, I don't see any variable that seems like a solid "this is from the command line". Oh, and to slip a second one in here. What is $_SERVER['PWD']? I noticed it shows the dir structure to the current file on my server, which is fantastic. Is that what it's supposed to do? And what does PWD stand for. Muchos Thanks and have a great Friday!!! Mark --- Unsubscribe at http://nyphp.org/list/ --- From mjdewitt at alexcommgrp.com Fri Apr 4 10:11:51 2003 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Fri, 4 Apr 2003 10:11:51 -0500 Subject: [nycphp-talk] Any way to check for CLI? Message-ID: I don't know if this is the right way, but it might work: 'PHP_SELF' The filename of the currently executing script, relative to the document root. For instance, $_SERVER['PHP_SELF'] in a script at the address http://example.com/test.php/foo.bar would be /test.php/foo.bar. If PHP is running as a command-line processor, this variable is not available. Also, I am curious what get_browser() returns or 'HTTP_USER_AGENT' under CLI Mike > -----Original Message----- > From: Mark Armendariz [SMTP:nyphp at enobrev.com] > Sent: Friday, April 04, 2003 10:05 AM > To: NYPHP Talk > Subject: [nycphp-talk] Any way to check for CLI? > > Do any of you by any chance know how to check if a script is called via > command line or from a browser? > > I have a script that is called from either one, and I need to change the > output methods accordingly. Looking at the phpinfo, I don't see any > variable that seems like a solid "this is from the command line". > > Oh, and to slip a second one in here. What is $_SERVER['PWD']? I > noticed it shows the dir structure to the current file on my server, > which is fantastic. Is that what it's supposed to do? And what does > PWD stand for. > > Muchos Thanks and have a great Friday!!! > > Mark > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From dsexton at ubspw.com Fri Apr 4 10:11:52 2003 From: dsexton at ubspw.com (Sexton, David) Date: Fri, 4 Apr 2003 10:11:52 -0500 Subject: [nycphp-talk] Any way to check for CLI? Message-ID: <18D7B8CAA5284F478470828806DB124603789D48@psle01.xchg.pwj.com> It stands for "present working directory". What you could do is run your command line script from a specific directory and then use $_SERVER['PWD'] to determine if it's in the command-line only directory. Unless you have some requirements for running it from a specific location. -Dave -----Original Message----- From: Mark Armendariz [mailto:nyphp at enobrev.com] Sent: Friday, April 04, 2003 10:05 AM To: NYPHP Talk Subject: [nycphp-talk] Any way to check for CLI? Do any of you by any chance know how to check if a script is called via command line or from a browser? I have a script that is called from either one, and I need to change the output methods accordingly. Looking at the phpinfo, I don't see any variable that seems like a solid "this is from the command line". Oh, and to slip a second one in here. What is $_SERVER['PWD']? I noticed it shows the dir structure to the current file on my server, which is fantastic. Is that what it's supposed to do? And what does PWD stand for. Muchos Thanks and have a great Friday!!! Mark --- Unsubscribe at http://nyphp.org/list/ --- From nyphp at enobrev.com Fri Apr 4 10:12:55 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 4 Apr 2003 10:12:55 -0500 Subject: [nycphp-talk] Any way to check for CLI? In-Reply-To: <200304041510.h34FAFFF046331@parsec.nyphp.org> Message-ID: <01a601c2fabc$ab7c9760$e1951d18@enobrev> *entered it into the ssh window.. a HA!! Thanks you sirs. Have a fantastic weekend! Maek -----Original Message----- From: Freedman, Tom S. [mailto:tfreedma at ubspw.com] Sent: Friday, April 04, 2003 10:10 AM To: NYPHP Talk Subject: RE: [nycphp-talk] Any way to check for CLI? PWD is "Present Working Directory". It's also *NIX command to display exactly the same information... kind of a "where am I?" -----Original Message----- From: Mark Armendariz [mailto:nyphp at enobrev.com] Sent: Friday, April 04, 2003 10:05 AM To: NYPHP Talk Subject: [nycphp-talk] Any way to check for CLI? Do any of you by any chance know how to check if a script is called via command line or from a browser? I have a script that is called from either one, and I need to change the output methods accordingly. Looking at the phpinfo, I don't see any variable that seems like a solid "this is from the command line". Oh, and to slip a second one in here. What is $_SERVER['PWD']? I noticed it shows the dir structure to the current file on my server, which is fantastic. Is that what it's supposed to do? And what does PWD stand for. Muchos Thanks and have a great Friday!!! Mark --- Unsubscribe at http://nyphp.org/list/ --- From ian at plusfour.org Fri Apr 4 13:41:17 2003 From: ian at plusfour.org (Ian Forsyth) Date: Fri, 4 Apr 2003 10:41:17 -0800 Subject: [nycphp-talk] Caching only images In-Reply-To: <200304040532.h345VvJv030410@parsec.nyphp.org> Message-ID: <056DFF12-66CD-11D7-93B3-0050E4858059@plusfour.org> http://www.squid-cache.org/Doc/FAQ/FAQ.html if you are in cahoots with sysadmin of you isp... Ian From melissa at inexact.info Fri Apr 4 22:20:06 2003 From: melissa at inexact.info (Melissa) Date: Fri, 4 Apr 2003 22:20:06 -0500 Subject: FW: rewrite help! Message-ID: Guys, not to be a pain or anything, but does anyone have any thoughts on this matter? -----Original Message----- From: Melissa [mailto:melissa at inexact.info] Sent: Thursday, April 03, 2003 7:16 PM To: talk at nyphp.org Subject: rewrite help! Sorry if this is a little off topic, but i was hoping to get some help with a mod_rewrite problem. I used a statement in my .htaccess with an error that caused an infinite loop, and understandably my host got a bit peeved. If I get it wrong again, they may cancel my account - the problem being, that I think I have the error corrected, but I don't want to risk testing it and losing my hosting. What I am trying to do is to make everything redirect to /index.php: so http://inexact.info/this/that would go to http://www.inexact.info/index.php where lives php that would make use of /this/that as variables - thus avoiding having urls like inexact.info/index.php?var1=this&var2=that. Is the following correct to put in .htaccess and achieve this goal, or will it simply loop infinitly and cause me to get booted from dreamhost? RewriteEngine on RewriteRule !\\.(gif|jpg|png|css)$ /home/risoeng/inexact.info/index.php Thanks, Melissa From nyphp at websapp.com Sat Apr 5 09:26:45 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Sat, 5 Apr 2003 09:26:45 -0500 Subject: [nycphp-talk] FW: rewrite help! In-Reply-To: <200304050321.h353K8MV065472@parsec.nyphp.org> Message-ID: RewriteRule !\\.(gif|jpg|png|css)$ /home/risoeng/inexact.info/index.php Would also redirect index.php to index.php! I am sure that this is not what you want. Try something adding "NOT index.php" in your regular expression. Regards, Daniel Kushner Vice President, New York PHP http://nyphp.org daniel at nyphp.org > -----Original Message----- > From: Melissa [mailto:melissa at inexact.info] > Sent: Friday, April 04, 2003 10:20 PM > To: NYPHP Talk > Subject: [nycphp-talk] FW: rewrite help! > > > Guys, not to be a pain or anything, but does anyone have any thoughts on > this matter? > > -----Original Message----- > From: Melissa [mailto:melissa at inexact.info] > Sent: Thursday, April 03, 2003 7:16 PM > To: talk at nyphp.org > Subject: rewrite help! > > > Sorry if this is a little off topic, but i was hoping to get some > help with > a mod_rewrite problem. I used a statement in my .htaccess with an error > that caused an infinite loop, and understandably my host got a bit peeved. > If I get it wrong again, they may cancel my account - the problem being, > that I think I have the error corrected, but I don't want to risk > testing it > and losing my hosting. > > What I am trying to do is to make everything redirect to /index.php: so > http://inexact.info/this/that would go to > http://www.inexact.info/index.php > where lives php that would make use of /this/that as variables - thus > avoiding having urls like inexact.info/index.php?var1=this&var2=that. > > Is the following correct to put in .htaccess and achieve this > goal, or will > it simply loop infinitly and cause me to get booted from dreamhost? > > > RewriteEngine on > RewriteRule !\\.(gif|jpg|png|css)$ /home/risoeng/inexact.info/index.php > > Thanks, > Melissa > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From jonbaer at jonbaer.net Sat Apr 5 22:28:36 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Sat, 5 Apr 2003 19:28:36 -0800 Subject: crossplatform mod_auth_mysql? Message-ID: <000501c2fbec$9ceb11a0$6400a8c0@INTEL17> hey, im currently looking for mod_auth_mysql to develop on win and deploy on debian box but am trying to figure out what options there are ... unfortunatly its a requirement mixed with some rsa/misc encyption stuff so i have to use the module. i came across this ... http://apache.dev.wapme.net/modules/mod_auth_mysql-2.20/ but seems kinda out of date, can i cygwin/build the original .c file and expect it to work on apache 2.0? thanks. - jon From sterling at bumblebury.com Sun Apr 6 11:36:55 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 06 Apr 2003 11:36:55 -0400 Subject: [nycphp-talk] crossplatform mod_auth_mysql? In-Reply-To: <200304060329.h363SxJn096085@parsec.nyphp.org> References: <200304060329.h363SxJn096085@parsec.nyphp.org> Message-ID: <1049643414.28044.42.camel@hasele> On Sat, 2003-04-05 at 22:28, Jon Baer wrote: > hey, > > im currently looking for mod_auth_mysql to develop on win and deploy on > debian box but am trying to figure out what options there are ... > unfortunatly its a requirement mixed with some rsa/misc encyption stuff so i > have to use the module. > > i came across this ... > > http://apache.dev.wapme.net/modules/mod_auth_mysql-2.20/ > > but seems kinda out of date, can i cygwin/build the original .c file and > expect it to work on apache 2.0? > http://www.heuer.org/mod_auth_mysql/ -Sterling > thanks. > > - jon > > > > --- Unsubscribe at http://nyphp.org/list/ --- -- Good judgement comes from experience, and experience comes from bad judgement. - Fred Brooks From tech_learner at yahoo.com Mon Apr 7 00:37:40 2003 From: tech_learner at yahoo.com (Tracy) Date: Sun, 6 Apr 2003 21:37:40 -0700 (PDT) Subject: [nycphp-talk] php include file question In-Reply-To: <200303311930.h2VJT50x087920@parsec.nyphp.org> Message-ID: <20030407043740.4188.qmail@web14309.mail.yahoo.com> Yes, if i remember right i read that all of include(x) 's and require(x) 's treat the x's as HTML and so u have to to get php into action Tracy "Hise, Jeremy" wrote:I just performed this test. 1) Created a file called inctest.php 2) Contents of inctest.php include("./myinc.php"); ?> 3) Created file called myinc.php 4) Contents of myinc.php (note there are no ) print("Hello"); 5) Loaded up file inctest.php in browser 6) Output is: print("Hello"); So it seems to me that you MUST put the PHP code in the INCLUDED file IN and ?> in order for it to be parsed. It doesn't matter that you are including it from withing PHP and it doesn't matter that it ends with .php. It will not be parsed if it is not in . This test was run on RH 7.3 with PHP 4.3.0-dev with Apache 1.3.22 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From adam at ecamp.net Mon Apr 7 16:27:41 2003 From: adam at ecamp.net (Adam) Date: Mon, 7 Apr 2003 16:27:41 -0400 Subject: [nycphp-talk] password for PHPCON East In-Reply-To: <200303052107.h25L7IX7026579@parsec.nyphp.org> Message-ID: Can someone post me the password? I want to register before it goes away today! :) -----Original Message----- From: Hans Zaunere [mailto:zaunere at yahoo.com] Sent: Wednesday, March 05, 2003 4:07 PM To: NYPHP Talk Subject: Re: [nycphp-talk] password for PHPCON East Hi Matt, --- Matthew Zimmerman wrote: > Hi, > > I am registering for the PHPCON East conference and I notice there is a > registration option for NYPHP members, but it requires a password. > > If it has already been posted to the list, I apologize, but could > someone post it again? We're waiting on the go ahead to post the discount password, hopefully by this evening. Thanks, H > > MZ > _________________ > Matthew Zimmerman > Humanities Computing Group, NYU > Tel: 212.998.3038 > Fax: 212.995.4120 > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From daniel at websapp.com Mon Apr 7 16:42:44 2003 From: daniel at websapp.com (Daniel Kushner) Date: Mon, 7 Apr 2003 16:42:44 -0400 Subject: [nycphp-talk] password for PHPCON East In-Reply-To: <200304072031.h37KUHMV050921@parsec.nyphp.org> Message-ID: newyorkphp > -----Original Message----- > From: Adam [mailto:adam at ecamp.net] > Sent: Monday, April 07, 2003 4:30 PM > To: NYPHP Talk > Subject: RE: [nycphp-talk] password for PHPCON East > > > Can someone post me the password? I want to register before it goes > away today! :) > > > -----Original Message----- > From: Hans Zaunere [mailto:zaunere at yahoo.com] > Sent: Wednesday, March 05, 2003 4:07 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] password for PHPCON East > > > Hi Matt, > > --- Matthew Zimmerman wrote: > > Hi, > > > > I am registering for the PHPCON East conference and I notice there is > a > > registration option for NYPHP members, but it requires a password. > > > > If it has already been posted to the list, I apologize, but could > > someone post it again? > > We're waiting on the go ahead to post the discount password, hopefully > by > this evening. > > Thanks, > > H > > > > > MZ > > _________________ > > Matthew Zimmerman > > Humanities Computing Group, NYU > > Tel: 212.998.3038 > > Fax: 212.995.4120 > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From hans at nyphp.org Wed Apr 9 16:22:33 2003 From: hans at nyphp.org (Hans Zaunere) Date: Wed, 9 Apr 2003 13:22:33 -0700 (PDT) Subject: Announcing NYPHP.org v2.0-BETA at http://dev.nyphp.org Message-ID: <20030409202233.57638.qmail@web12803.mail.yahoo.com> Good afternoon, New York PHP is proud to announce NYPHP.org v2.0-BETA. It is a completely redesigned site, adding such great features as an event calendar, news articles, picture gallery, searching, improved jobs board and banners, better layout and just an overall wonderful appearance! This site wouldn't be possible without the steadfast efforts of the New York PHP Development Team: -- Stefan Antonowicz -- Alexander Chan -- Chris Hendry -- Jeff Knight -- Peter Lehrer -- Peter Sawczynec Thank You! And a special thank you to team leaders Jeff K. and Peter S., Director Daniel Krook, and everyone who has helped over the last couple of months. We urge you to visit http://dev.nyphp.org and use the site as much as possible. Try all the new functionality, look for bugs and see how it holds up! It is still beta, but we are working diligently on getting it released to the NYPHP.org domain by week's end. Please post any problems, suggestions, errors or offers of help to dev at nyphp.org (make sure you're subscribed; go to http://dev.nyphp.org and click Mailing Lists). Thank you, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From heli_travel at yahoo.com Thu Apr 10 11:06:00 2003 From: heli_travel at yahoo.com (LY) Date: Thu, 10 Apr 2003 08:06:00 -0700 (PDT) Subject: RTML In-Reply-To: <200302261723.h1QHLRKF059751@parsec.nyphp.org> Message-ID: <20030410150600.72306.qmail@web12201.mail.yahoo.com> Where can I find a reference book and editor for RTML? I totally don't understand what is RTML. Thank you for help! LY __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com From enunez at tiaa-cref.org Thu Apr 10 11:32:41 2003 From: enunez at tiaa-cref.org (Nunez, Eddy) Date: Thu, 10 Apr 2003 11:32:41 -0400 Subject: [nycphp-talk] Announcing NYPHP.org v2.0-BETA at http://dev.nyp hp.org Message-ID: <7CE0EC1FC2D0D411910700508BE38D0F0A6D9C4C@msxnyusr01.msx.ops.tiaa-cref.org> I like the new appearance, more organized and sophisticated. But.... #1) Sluggish - ... was this new site made with coldfusion?! Takes at least 3-4 seconds to load/render most pages. #2) The "Store"...Love it ! Didn't know NYPHP mugs and teddy bears were available. Even a NYPHP Thong! My hat's off to the dev.nyphp team! Kudos! -Ed -----Original Message----- From: Hans Zaunere [mailto:hans at nyphp.org] Sent: Wednesday, April 09, 2003 4:23 PM To: NYPHP Talk Subject: [nycphp-talk] Announcing NYPHP.org v2.0-BETA at http://dev.nyphp.org Good afternoon, New York PHP is proud to announce NYPHP.org v2.0-BETA. It is a completely redesigned site, adding such great features as an event calendar, news articles, picture gallery, searching, improved jobs board and banners, better layout and just an overall wonderful appearance! This site wouldn't be possible without the steadfast efforts of the New York PHP Development Team: -- Stefan Antonowicz -- Alexander Chan -- Chris Hendry -- Jeff Knight -- Peter Lehrer -- Peter Sawczynec Thank You! And a special thank you to team leaders Jeff K. and Peter S., Director Daniel Krook, and everyone who has helped over the last couple of months. We urge you to visit http://dev.nyphp.org and use the site as much as possible. Try all the new functionality, look for bugs and see how it holds up! It is still beta, but we are working diligently on getting it released to the NYPHP.org domain by week's end. Please post any problems, suggestions, errors or offers of help to dev at nyphp.org (make sure you're subscribed; go to http://dev.nyphp.org and click Mailing Lists). Thank you, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org --- Unsubscribe at http://nyphp.org/list/ --- ********************************************************************** 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 rutzj at yahoo.com Thu Apr 10 13:37:46 2003 From: rutzj at yahoo.com (Jeremy Rutz) Date: Thu, 10 Apr 2003 10:37:46 -0700 (PDT) Subject: Parameter Question Message-ID: <20030410173746.46279.qmail@web11508.mail.yahoo.com> I'm trying to pass the parameter '#' between PHP programs, as in: program.php?letter=# and I'm finding the '#' parameter does not get passed, although other alphanumeric characters do. I just need confirmation '#' is a reserved character that cannot be used as a parameter. Also, what other restrictions are placed on parameters? Do they have to be alphanumeric? Thanks, Jeremy --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiflett at php.net Thu Apr 10 13:48:26 2003 From: shiflett at php.net (Chris Shiflett) Date: Thu, 10 Apr 2003 10:48:26 -0700 (PDT) Subject: [nycphp-talk] Parameter Question In-Reply-To: <200304101738.h3AHbnKX037378@parsec.nyphp.org> Message-ID: <20030410174826.98494.qmail@web14310.mail.yahoo.com> Hello Jeremy, --- Jeremy Rutz wrote: > I'm trying to pass the parameter '#' between PHP programs, as in: > > program.php?letter=# The pound sign indicates a fragment in a URL, so it is an invalid character to be used otherwise. All you have to do, however, is URL encode it: program.php?letter= That's a bit verbose, but you get the idea. :-) Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ From tfreedma at ubspw.com Thu Apr 10 13:53:03 2003 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Thu, 10 Apr 2003 13:53:03 -0400 Subject: [nycphp-talk] RTML Message-ID: >From some Googling, I found this site for the Remote Telescope Markup Language: http://hou.lbl.gov/rtml/index.html Hope that helps! -Tom -----Original Message----- From: LY [mailto:heli_travel at yahoo.com] Sent: Thursday, April 10, 2003 11:06 AM To: NYPHP Talk Subject: [nycphp-talk] RTML Where can I find a reference book and editor for RTML? I totally don't understand what is RTML. Thank you for help! LY __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com --- Unsubscribe at http://nyphp.org/list/ --- From cahoyos at us.ibm.com Thu Apr 10 14:02:12 2003 From: cahoyos at us.ibm.com (Carlos A Hoyos) Date: Thu, 10 Apr 2003 14:02:12 -0400 Subject: [nycphp-talk] RTML In-Reply-To: <200304101753.h3AHr9M3038989@parsec.nyphp.org> Message-ID: You might be speaking about the "yahoo store" proprietary language. They claim it's a "real programming language", but the only time I had to deal with it I found it quite hard to work with... Language overview: http://shop.store.yahoo.com/vw/rtml.html Carlos From MAILER-DAEMON at optonline.net Thu Apr 10 14:54:54 2003 From: MAILER-DAEMON at optonline.net (Mail Delivery Subsystem) Date: Thu, 10 Apr 2003 14:54:54 -0400 (EDT) Subject: Returned mail: User unknown Message-ID: <200304101854.h3AIsZgG000080@asv4.srv.hcvlny.cv.net> The original message was received at Thu, 10 Apr 2003 14:45:02 0500 ----- The following addresses had permanent fatal errors ----- ----- Transcript of session follows ----- ... while talking to mail-hub.optonline.net: >>> RCPT To: <<< 550 ... User unknown 550 ... User unknown From heli_travel at yahoo.com Thu Apr 10 16:04:23 2003 From: heli_travel at yahoo.com (LY) Date: Thu, 10 Apr 2003 13:04:23 -0700 (PDT) Subject: [nycphp-talk] RTML -- Carlos A Hoyos In-Reply-To: <200304101803.h3AI2PN7039978@parsec.nyphp.org> Message-ID: <20030410200423.6780.qmail@web12208.mail.yahoo.com> Yes, you are right. but have to know it if I want the store be more like a website. Did you try to build a template? Is there a way I can edit it in local machine? what is the file 's extension? Can I just use IE or netscape to run it? thanks for your help! LY --- Carlos A Hoyos wrote: > > > > > > > You might be speaking about the "yahoo store" proprietary > language. > They claim it's a "real programming language", but the only > time I had to > deal with it I found it quite hard to work with... > > Language overview: > http://shop.store.yahoo.com/vw/rtml.html > > > > > Carlos > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com From nyphp at NewAgeWeb.com Thu Apr 10 16:32:06 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Thu, 10 Apr 2003 16:32:06 -0400 Subject: [nycphp-talk] Parameter Question Message-ID: <004401c2ffa0$4146bb80$de01a8c0@duron.lan.newageweb.com> Jeremy, Some characters need to be URL-encoded in order to be included in a URL. # should be represented as %23.. in your case: program.php?letter=%23 These should help: http://www.ittc.ukans.edu/~paden/reference/guides/Encode/url.html http://www.w3schools.com/html/html_ref_urlencode.asp http://www.cis.ohio-state.edu/cgi-bin/rfc/rfc1738.html cheers, Jerry -- 42.7% of all statistics are made up on the spot. -----Original Message----- From: Jeremy Rutz To: NYPHP Talk Date: Thursday, April 10, 2003 1:38 PM Subject: [nycphp-talk] Parameter Question > >I'm trying to pass the parameter '#' between PHP programs, as in: > >program.php?letter=# > >and I'm finding the '#' parameter does not get passed, although other alphanumeric characters do. I just need confirmation '#' is a reserved character that cannot be used as a parameter. Also, what other restrictions are placed on parameters? Do they have to be alphanumeric? > >Thanks, > >Jeremy > > > >--------------------------------- >Do you Yahoo!? >Yahoo! Tax Center - File online, calculators, forms, and more > > >--- Unsubscribe at http://nyphp.org/list/ --- > > From cahoyos at us.ibm.com Thu Apr 10 18:20:03 2003 From: cahoyos at us.ibm.com (Carlos A Hoyos) Date: Thu, 10 Apr 2003 18:20:03 -0400 Subject: [nycphp-talk] RTML -- Carlos A Hoyos In-Reply-To: <200304102005.h3AK4QM1043629@parsec.nyphp.org> Message-ID: since it has my name on the subject, I might as well answer it ;) I haven't had much exposure to RTML, but as tech lead on a store migration from Yahoo, I played around with this code. I know RTML was developed by a small group of folks who didn't quite document it... my impression is that it's a holdover from the 'good old days' and that they don't know how to get rid of it. (yeahh, I know, I'm also thinking they should replace it with php). Resources: I remember downloading an ebook ("RTML for Yahoo! Store") which was useless, think I lost the file, but if I find it I'll send it to you. I am not aware of any compiler or local environment to do local development. I also remember that I felt the same frustration, since being not documented, an industry of "specialized firms" that make yahoo stores, and they are not releasing any documentation or knowledge that they might have. It's still hard to believe why yahoo decided on a proprietary language, instead of some open standard... well, maybe they learned the lesson and that's why they are going for php now... Carlos LY o.com> cc: Subject: RE: [nycphp-talk] RTML -- Carlos A Hoyos 04/10/2003 04:04 PM Please respond to talk Yes, you are right. but have to know it if I want the store be more like a website. Did you try to build a template? Is there a way I can edit it in local machine? what is the file 's extension? Can I just use IE or netscape to run it? thanks for your help! LY --- Carlos A Hoyos wrote: > > > > > > > You might be speaking about the "yahoo store" proprietary > language. > They claim it's a "real programming language", but the only > time I had to > deal with it I found it quite hard to work with... > > Language overview: > http://shop.store.yahoo.com/vw/rtml.html > > > > > Carlos > > > > > > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com --- Unsubscribe at http://nyphp.org/list/ --- From heli_travel at yahoo.com Thu Apr 10 22:08:00 2003 From: heli_travel at yahoo.com (LY) Date: Thu, 10 Apr 2003 19:08:00 -0700 (PDT) Subject: [nycphp-talk] RTML -- thanks In-Reply-To: <200304102221.h3AMKDN7047370@parsec.nyphp.org> Message-ID: <20030411020800.85909.qmail@web12202.mail.yahoo.com> thank you so much Carlos! your name is inside now! Sorry about the inside out! Looks like I have a long lonely way to go ... Thanks Again! LY --- Carlos A Hoyos wrote: > > > > > > > since it has my name on the subject, I might as well answer it > ;) > > I haven't had much exposure to RTML, but as tech lead on a > store migration > from Yahoo, I played around with this code. > I know RTML was developed by a small group of folks who didn't > quite > document it... my impression is that it's a holdover from the > 'good old > days' and that they don't know how to get rid of it. (yeahh, I > know, I'm > also thinking they should replace it with php). > > Resources: I remember downloading an ebook ("RTML for Yahoo! > Store") which > was useless, think I lost the file, but if I find it I'll send > it to you. > I am not aware of any compiler or local environment to do > local > development. > > I also remember that I felt the same frustration, since being > not > documented, an industry of "specialized firms" that make yahoo > stores, and > they are not releasing any documentation or knowledge that > they might have. > > It's still hard to believe why yahoo decided on a proprietary > language, > instead of some open standard... well, maybe they learned the > lesson and > that's why they are going for php now... > > > > > Carlos > > > > > > LY > > > Talk > > o.com> cc: > > > Subject: RE: > [nycphp-talk] RTML -- Carlos A Hoyos > > 04/10/2003 04:04 > > > PM > > > Please respond to > > > talk > > > > > > > > > Yes, you are right. but have to know it if I want the store be > more like a website. Did you try to build a template? Is there > a > way I can edit it in local machine? what is the file 's > extension? Can I just use IE or netscape to run it? > > thanks for your help! > > LY > > > --- Carlos A Hoyos wrote: > > > > > > > > > > > > > > You might be speaking about the "yahoo store" proprietary > > language. > > They claim it's a "real programming language", but the only > > time I had to > > deal with it I found it quite hard to work with... > > > > Language overview: > > http://shop.store.yahoo.com/vw/rtml.html > > > > > > > > > > Carlos > > > > > > > > > > > > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - File online, calculators, forms, and more > http://tax.yahoo.com > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com From zaunere at yahoo.com Fri Apr 11 08:42:11 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Fri, 11 Apr 2003 05:42:11 -0700 (PDT) Subject: [nycphp-talk] Announcing NYPHP.org v2.0-BETA at http://dev.nyp hp.org In-Reply-To: <200304101533.h3AFWkJ3032846@parsec.nyphp.org> Message-ID: <20030411124211.40773.qmail@web12801.mail.yahoo.com> > I like the new appearance, more organized and sophisticated. But.... > #1) Sluggish - ... was this new site made with coldfusion?! > Takes at least 3-4 seconds to load/render most pages. The site is slightly slower, since it does more, but I've never seen anywhere near 3-4 seconds to load up. We're continuing to make some tweaks, so keep an eye on it and let us know how things end up. > #2) The "Store"...Love it ! Didn't know NYPHP mugs and teddy bears were > available. Even a NYPHP Thong! You bet :) > My hat's off to the dev.nyphp team! Kudos! Thank you Eddy; these guys did a really great thing. H > > -Ed > > > -----Original Message----- > From: Hans Zaunere [mailto:hans at nyphp.org] > Sent: Wednesday, April 09, 2003 4:23 PM > To: NYPHP Talk > Subject: [nycphp-talk] Announcing NYPHP.org v2.0-BETA at > http://dev.nyphp.org > > > > Good afternoon, > > New York PHP is proud to announce NYPHP.org v2.0-BETA. It is a completely > redesigned site, adding such great features as an event calendar, news > articles, picture gallery, searching, improved jobs board and banners, > better > layout and just an overall wonderful appearance! > > This site wouldn't be possible without the steadfast efforts of the New > York > PHP Development Team: > > -- Stefan Antonowicz > -- Alexander Chan > -- Chris Hendry > -- Jeff Knight > -- Peter Lehrer > -- Peter Sawczynec > > Thank You! > > And a special thank you to team leaders Jeff K. and Peter S., Director > Daniel > Krook, and everyone who has helped over the last couple of months. > > We urge you to visit http://dev.nyphp.org and use the site as much as > possible. Try all the new functionality, look for bugs and see how it > holds > up! It is still beta, but we are working diligently on getting it released > to the NYPHP.org domain by week's end. Please post any problems, > suggestions, errors or offers of help to dev at nyphp.org (make sure you're > subscribed; go to http://dev.nyphp.org and click Mailing Lists). > > Thank you, > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > > > > > ********************************************************************** > 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 soazine at pop.mail.rcn.net Fri Apr 11 09:05:12 2003 From: soazine at pop.mail.rcn.net (soazine@pop.erols.com) Date: Fri, 11 Apr 2003 09:05:12 -0400 Subject: PHP/ASP anomaly Message-ID: <29950-2200345111351250@M2W046.mail2web.com> Hey.. the past few days I've noticed a rather strange phenomenon occur.. On my website (http://valsignalandet.com) I have a link to some pages on a site that are written in ASP (because of the demands of the host those pages are on). On occasion the site will go berzerk due to possible memory leaks on the server end and thus my ASP pages will all crash.. All but one.. This one page is called up by a PHP script I wrote on my V?l site (http://valsignalandet.com/events/calendar.php), and every time everything else crashes on the site where the ASP scripts are, this one PHP page consistently pulls up the remote ASP script anyway! What does anyone make of that? I'm both dumbfounded and devilishly delighted at the same time! >:) Phil -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From hans at nyphp.org Fri Apr 11 09:43:33 2003 From: hans at nyphp.org (Hans Zaunere) Date: Fri, 11 Apr 2003 06:43:33 -0700 (PDT) Subject: PHPCon Exhibitors Message-ID: <20030411134333.64662.qmail@web12803.mail.yahoo.com> Good morning, New York PHP is in need of one or two more exhibitors for PHPCon 2003. The badge would give you access to both Opening and Closing keynote addresses, all evening sessions (after 6 pm on Thursday), and all social events. The needed times are: Set Up and Clean Up: Display space set up: Wednesday, April 23, 2003 - 2 pm to 6 pm Display space clean up: Friday, April 25, 2003 - 5 pm to 8 pm Exhibit hours: Thursday, April 24, 2003 - 9 am to 6 pm Friday, April 25, 2003 - 9 am to 5 pm Evening Sessions: Thursday, April 24, 2003 - 6 pm to 9 pm We currently have spotty coverage, so someone who could dedicate at least one or two full days would be great. Thank you, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From jsiegel1 at optonline.net Fri Apr 11 10:22:16 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Fri, 11 Apr 2003 10:22:16 -0400 Subject: MySQL & 2.5 million rows! Message-ID: <4b59d74b8c12.4b8c124b59d7@optonline.net> You read the subject line correctly!!! I'm loading 2.5 million rows from an ASCII file into a MySQL database. So...here's a little background on what I've done and then a question. (Please keep in mind I'm a Php/MySQL newbie...though I'm learnin' fast!!) I created three tables - data_new, data_old, data_live. The Ascii file gets read, line by line, and inserted into data_new. When it's completed and there are no glitches (i.e., no problem with the Ascii file), I want to move the data from data_live to data_old and then move the new data from data_new to data_live. So...the question...is there a fast way to move the data from one MySQL table to another (from data_new to data_live) other than walking through data_new row by row...creating an Insert statement on the fly...and then inserting the row into data_live? BTW, in case you are wondering why there are three different tables, I felt that this was a better way than my client's present system which simply wipes out the live data and then reads in the Ascii file. If there is a glitch then they have to empty the table and reload the Ascii. Doing it this way, if they need to go back to the old data, I would move it data from data_old to data_live. Jeff From bpang at bpang.com Fri Apr 11 10:29:43 2003 From: bpang at bpang.com (Brian Pang) Date: Fri, 11 Apr 2003 10:29:43 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! Message-ID: phpMyAdmin has a nice tool to do it for you. But this is all that it's really doing. INSERT INTO dbTwo.tableName SELECT * FROM dbOne.tableName > You read the subject line correctly!!! I'm loading 2.5 million rows from an ASCII file into a MySQL database. So...here's a little background on what I've done and then a question. (Please keep in mind I'm a Php/MySQL newbie...though I'm learnin' fast!!) > > I created three tables - data_new, data_old, data_live. The Ascii file gets read, line by line, and inserted into data_new. When it's completed and there are no glitches (i.e., no problem with the Ascii file), I want to move the data from data_live to data_old and then move the new data from data_new to data_live. So...the question...is there a fast way to move the data from one MySQL table to another (from data_new to data_live) other than walking through data_new row by row...creating an Insert statement on the fly...and then inserting the row into data_live? > > BTW, in case you are wondering why there are three different tables, I felt that this was a better way than my client's present system which simply wipes out the live data and then reads in the Ascii file. If there is a glitch then they have to empty the table and reload the Ascii. Doing it this way, if they need to go back to the old data, I would move it data from data_old to data_live. > > Jeff > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From nyphp at jimbishop.org Fri Apr 11 10:30:30 2003 From: nyphp at jimbishop.org (nyphp at jimbishop.org) Date: Fri, 11 Apr 2003 07:30:30 -0700 (PDT) Subject: [nycphp-talk] MySQL & 2.5 million rows! In-Reply-To: <200304111424.h3BEO9HN067435@parsec.nyphp.org> Message-ID: > BTW, in case you are wondering why there are three different tables, I > felt that this was a better way than my client's present system which > simply wipes out the live data and then reads in the Ascii file. If > there is a glitch then they have to empty the table and reload the > Ascii. Doing it this way, if they need to go back to the old data, I > would move it data from data_old to data_live. a better system would be to store all of the data in one table and then have a "status" table that kept track of what was live data, old data, etc. then when you want to pull the "live" data, you query the "status" table which holds a foreign key to the data table. no moving data around. no duplication of data. From jsiegel1 at optonline.net Fri Apr 11 10:34:03 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Fri, 11 Apr 2003 10:34:03 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! Message-ID: <48de36490bae.490bae48de36@optonline.net> phpMyAdmin is GREAT tool. However, this is something that the "end user" (i.e., my client) would be doing and I don't want to allow them to use phpMyAdmin. I had thought of the the Insert into...select statement but, though I hadn't tried it...I was bit concerned since the select statement would pull 2.5 million rows...unless MySql is smart enough to handle this without running out of memory or temp space. Jeff ----- Original Message ----- From: Brian Pang Date: Friday, April 11, 2003 10:29 am Subject: Re: [nycphp-talk] MySQL & 2.5 million rows! > phpMyAdmin has a nice tool to do it for you. > > But this is all that it's really doing. > > INSERT INTO dbTwo.tableName SELECT * FROM dbOne.tableName > > > > > You read the subject line correctly!!! I'm loading 2.5 million rows > from an ASCII file into a MySQL database. So...here's a little > background on what I've done and then a question. (Please keep in mind > I'm a Php/MySQL newbie...though I'm learnin' fast!!) > > > > I created three tables - data_new, data_old, data_live. The > Ascii file > gets read, line by line, and inserted into data_new. When it's > completedand there are no glitches (i.e., no problem with the > Ascii file), I want > to move the data from data_live to data_old and then move the new data > from data_new to data_live. So...the question...is there a fast > way to > move the data from one MySQL table to another (from data_new to > data_live) other than walking through data_new row by > row...creating an > Insert statement on the fly...and then inserting the row into > data_live?> > > BTW, in case you are wondering why there are three different > tables, I > felt that this was a better way than my client's present system which > simply wipes out the live data and then reads in the Ascii file. If > there is a glitch then they have to empty the table and reload the > Ascii. Doing it this way, if they need to go back to the old data, I > would move it data from data_old to data_live. > > > > Jeff > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From keremtuzemen at hotmail.com Fri Apr 11 10:34:10 2003 From: keremtuzemen at hotmail.com (Kerem Tuzemen) Date: Fri, 11 Apr 2003 10:34:10 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! References: <200304111424.h3BEO9GN067435@parsec.nyphp.org> Message-ID: Hey Jeff Why don't you put all of the data into the same table and add a smallint field to keep the status of a particular record (i.e. showing which group it belongs)? If needed, you can make it 2 or 3 different fields. That way you'll have just one table and if I'm not missing something, it should work pretty fast compared to your 3 table structure. Good luck. ----- Original Message ----- From: To: "NYPHP Talk" Sent: Friday, April 11, 2003 10:24 AM Subject: [nycphp-talk] MySQL & 2.5 million rows! > You read the subject line correctly!!! I'm loading 2.5 million rows from an ASCII file into a MySQL database. So...here's a little background on what I've done and then a question. (Please keep in mind I'm a Php/MySQL newbie...though I'm learnin' fast!!) > > I created three tables - data_new, data_old, data_live. The Ascii file gets read, line by line, and inserted into data_new. When it's completed and there are no glitches (i.e., no problem with the Ascii file), I want to move the data from data_live to data_old and then move the new data from data_new to data_live. So...the question...is there a fast way to move the data from one MySQL table to another (from data_new to data_live) other than walking through data_new row by row...creating an Insert statement on the fly...and then inserting the row into data_live? > > BTW, in case you are wondering why there are three different tables, I felt that this was a better way than my client's present system which simply wipes out the live data and then reads in the Ascii file. If there is a glitch then they have to empty the table and reload the Ascii. Doing it this way, if they need to go back to the old data, I would move it data from data_old to data_live. > > Jeff > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From jsiegel1 at optonline.net Fri Apr 11 10:38:05 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Fri, 11 Apr 2003 10:38:05 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! Message-ID: <47c0cb47d14e.47d14e47c0cb@optonline.net> A status table or an additional column that notes whether the data is live/old/new? Keep in mind that the website gets about 1000 inquiries daily that hit this particular table...that's why I thought about 3 separate tables. (Having it all in one table would be about 7.5 million rows). Jeff ----- Original Message ----- From: nyphp at jimbishop.org Date: Friday, April 11, 2003 10:30 am Subject: Re: [nycphp-talk] MySQL & 2.5 million rows! > > BTW, in case you are wondering why there are three different > tables, I > > felt that this was a better way than my client's present system > which> simply wipes out the live data and then reads in the Ascii > file. If > > there is a glitch then they have to empty the table and reload the > > Ascii. Doing it this way, if they need to go back to the old > data, I > > would move it data from data_old to data_live. > > > a better system would be to store all of the data in one table and > thenhave a "status" table that kept track of what was live data, > old data, > etc. then when you want to pull the "live" data, you query the > "status" table which holds a foreign key to the data table. > > no moving data around. no duplication of data. > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From bpang at bpang.com Fri Apr 11 10:39:59 2003 From: bpang at bpang.com (Brian Pang) Date: Fri, 11 Apr 2003 10:39:59 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! Message-ID: then perhaps a read of the manual is in order... I'd start here http://www.mysql.com/doc/en/Backup.html > phpMyAdmin is GREAT tool. However, this is something that the "end user" (i.e., my client) would be doing and I don't want to allow them to use phpMyAdmin. > > I had thought of the the Insert into...select statement but, though I hadn't tried it...I was bit concerned since the select statement would pull 2.5 million rows...unless MySql is smart enough to handle this without running out of memory or temp space. > > Jeff > > ----- Original Message ----- > From: Brian Pang > Date: Friday, April 11, 2003 10:29 am > Subject: Re: [nycphp-talk] MySQL & 2.5 million rows! > > > phpMyAdmin has a nice tool to do it for you. > > > > But this is all that it's really doing. > > > > INSERT INTO dbTwo.tableName SELECT * FROM dbOne.tableName > > > > > > > > > You read the subject line correctly!!! I'm loading 2.5 million rows > > from an ASCII file into a MySQL database. So...here's a little > > background on what I've done and then a question. (Please keep in mind > > I'm a Php/MySQL newbie...though I'm learnin' fast!!) > > > > > > I created three tables - data_new, data_old, data_live. The > > Ascii file > > gets read, line by line, and inserted into data_new. When it's > > completedand there are no glitches (i.e., no problem with the > > Ascii file), I want > > to move the data from data_live to data_old and then move the new data > > from data_new to data_live. So...the question...is there a fast > > way to > > move the data from one MySQL table to another (from data_new to > > data_live) other than walking through data_new row by > > row...creating an > > Insert statement on the fly...and then inserting the row into > > data_live?> > > > BTW, in case you are wondering why there are three different > > tables, I > > felt that this was a better way than my client's present system which > > simply wipes out the live data and then reads in the Ascii file. If > > there is a glitch then they have to empty the table and reload the > > Ascii. Doing it this way, if they need to go back to the old data, I > > would move it data from data_old to data_live. > > > > > > Jeff > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From jsiegel1 at optonline.net Fri Apr 11 10:40:32 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Fri, 11 Apr 2003 10:40:32 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! Message-ID: <30754630617b.30617b307546@optonline.net> You're the second person who suggested this so...if I "design by consensus" this seems to be the way to go. Jeff ----- Original Message ----- From: Kerem Tuzemen Date: Friday, April 11, 2003 10:36 am Subject: Re: [nycphp-talk] MySQL & 2.5 million rows! > Hey Jeff > > Why don't you put all of the data into the same table and add a > smallintfield to keep the status of a particular record (i.e. > showing which group it > belongs)? If needed, you can make it 2 or 3 different fields. That way > you'll have just one table and if I'm not missing something, it > should work > pretty fast compared to your 3 table structure. > > Good luck. > > ----- Original Message ----- > From: > To: "NYPHP Talk" > Sent: Friday, April 11, 2003 10:24 AM > Subject: [nycphp-talk] MySQL & 2.5 million rows! > > > > You read the subject line correctly!!! I'm loading 2.5 million > rows from > an ASCII file into a MySQL database. So...here's a little > background on what > I've done and then a question. (Please keep in mind I'm a Php/MySQL > newbie...though I'm learnin' fast!!) > > > > I created three tables - data_new, data_old, data_live. The > Ascii file > gets read, line by line, and inserted into data_new. When it's > completed and > there are no glitches (i.e., no problem with the Ascii file), I > want to move > the data from data_live to data_old and then move the new data > from data_new > to data_live. So...the question...is there a fast way to move the > data from > one MySQL table to another (from data_new to data_live) other than > walkingthrough data_new row by row...creating an Insert statement > on the fly...and > then inserting the row into data_live? > > > > BTW, in case you are wondering why there are three different > tables, I > felt that this was a better way than my client's present system which > simply wipes out the live data and then reads in the Ascii file. > If there is > a glitch then they have to empty the table and reload the Ascii. > Doing it > this way, if they need to go back to the old data, I would move it > data from > data_old to data_live. > > > > Jeff > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From jsiegel1 at optonline.net Fri Apr 11 11:13:51 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Fri, 11 Apr 2003 11:13:51 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! Message-ID: <482e72482700.482700482e72@optonline.net> Thanks! I'll check that out to see if it will help in this situation. ----- Original Message ----- From: Brian Pang Date: Friday, April 11, 2003 10:40 am Subject: Re: [nycphp-talk] MySQL & 2.5 million rows! > then perhaps a read of the manual is in order... > > I'd start here > > http://www.mysql.com/doc/en/Backup.html > > > > phpMyAdmin is GREAT tool. However, this is something that the "end > user" (i.e., my client) would be doing and I don't want to allow > them to > use phpMyAdmin. > > > > I had thought of the the Insert into...select statement but, > though I > hadn't tried it...I was bit concerned since the select statement would > pull 2.5 million rows...unless MySql is smart enough to handle this > without running out of memory or temp space. > > > > Jeff > > > > ----- Original Message ----- > > From: Brian Pang > > Date: Friday, April 11, 2003 10:29 am > > Subject: Re: [nycphp-talk] MySQL & 2.5 million rows! > > > > > phpMyAdmin has a nice tool to do it for you. > > > > > > But this is all that it's really doing. > > > > > > INSERT INTO dbTwo.tableName SELECT * FROM dbOne.tableName > > > > > > > > > > > > > You read the subject line correctly!!! I'm loading 2.5 > million rows > > > from an ASCII file into a MySQL database. So...here's a little > > > background on what I've done and then a question. (Please keep > in mind > > > I'm a Php/MySQL newbie...though I'm learnin' fast!!) > > > > > > > > I created three tables - data_new, data_old, data_live. The > > > Ascii file > > > gets read, line by line, and inserted into data_new. When it's > > > completedand there are no glitches (i.e., no problem with the > > > Ascii file), I want > > > to move the data from data_live to data_old and then move the > new data > > > from data_new to data_live. So...the question...is there a > fast > > > way to > > > move the data from one MySQL table to another (from data_new to > > > data_live) other than walking through data_new row by > > > row...creating an > > > Insert statement on the fly...and then inserting the row into > > > data_live?> > > > > BTW, in case you are wondering why there are three different > > > tables, I > > > felt that this was a better way than my client's present > system which > > > simply wipes out the live data and then reads in the Ascii > file. If > > > there is a glitch then they have to empty the table and reload the > > > Ascii. Doing it this way, if they need to go back to the old > data, I > > > would move it data from data_old to data_live. > > > > > > > > Jeff > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From jim at bizcomputinginc.com Fri Apr 11 11:34:13 2003 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Fri, 11 Apr 2003 11:34:13 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! References: <200304111424.h3BEO9Df067435@parsec.nyphp.org> Message-ID: <004d01c3003f$ce9ad8a0$6501a8c0@Notebook> You may want to save time and not move the data around at all. The idea would be to have 3 tables all structured the same each named uniquely. Start by loading up table 1, then in the application point the data to table1. When doing the next import, detect that table 1 contains the live data so use table2 to import the data. If the data imports correctly, change the app to point to table2, table1 now becomes your old data. Next import table 3 becomes your import, then live, table 2 becomes old, table 1 gets emptied ready for next import. Next import, 1 becomes import then live, table 3 becomes old, table 2 gets emptied ready for next import. Hope you get the idea. 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: Friday, April 11, 2003 10:24 AM Subject: [nycphp-talk] MySQL & 2.5 million rows! > You read the subject line correctly!!! I'm loading 2.5 million rows from an ASCII file into a MySQL database. So...here's a little background on what I've done and then a question. (Please keep in mind I'm a Php/MySQL newbie...though I'm learnin' fast!!) > > I created three tables - data_new, data_old, data_live. The Ascii file gets read, line by line, and inserted into data_new. When it's completed and there are no glitches (i.e., no problem with the Ascii file), I want to move the data from data_live to data_old and then move the new data from data_new to data_live. So...the question...is there a fast way to move the data from one MySQL table to another (from data_new to data_live) other than walking through data_new row by row...creating an Insert statement on the fly...and then inserting the row into data_live? > > BTW, in case you are wondering why there are three different tables, I felt that this was a better way than my client's present system which simply wipes out the live data and then reads in the Ascii file. If there is a glitch then they have to empty the table and reload the Ascii. Doing it this way, if they need to go back to the old data, I would move it data from data_old to data_live. > > Jeff > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From jim at bizcomputinginc.com Fri Apr 11 11:37:57 2003 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Fri, 11 Apr 2003 11:37:57 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! References: <200304111440.h3BEePDf073565@parsec.nyphp.org> Message-ID: <006701c30040$53d571b0$6501a8c0@Notebook> With a status field approach you will have to modify all your queries to filter on the appropriate status. With staying with a 3 table design you avoid concerns about mistakenly pulling old data when you are expecting to pull live data. 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: Friday, April 11, 2003 10:40 AM Subject: Re: [nycphp-talk] MySQL & 2.5 million rows! > You're the second person who suggested this so...if I "design by consensus" this seems to be the way to go. > > Jeff > > ----- Original Message ----- > From: Kerem Tuzemen > Date: Friday, April 11, 2003 10:36 am > Subject: Re: [nycphp-talk] MySQL & 2.5 million rows! > > > Hey Jeff > > > > Why don't you put all of the data into the same table and add a > > smallintfield to keep the status of a particular record (i.e. > > showing which group it > > belongs)? If needed, you can make it 2 or 3 different fields. That way > > you'll have just one table and if I'm not missing something, it > > should work > > pretty fast compared to your 3 table structure. > > > > Good luck. > > > > ----- Original Message ----- > > From: > > To: "NYPHP Talk" > > Sent: Friday, April 11, 2003 10:24 AM > > Subject: [nycphp-talk] MySQL & 2.5 million rows! > > > > > > > You read the subject line correctly!!! I'm loading 2.5 million > > rows from > > an ASCII file into a MySQL database. So...here's a little > > background on what > > I've done and then a question. (Please keep in mind I'm a Php/MySQL > > newbie...though I'm learnin' fast!!) > > > > > > I created three tables - data_new, data_old, data_live. The > > Ascii file > > gets read, line by line, and inserted into data_new. When it's > > completed and > > there are no glitches (i.e., no problem with the Ascii file), I > > want to move > > the data from data_live to data_old and then move the new data > > from data_new > > to data_live. So...the question...is there a fast way to move the > > data from > > one MySQL table to another (from data_new to data_live) other than > > walkingthrough data_new row by row...creating an Insert statement > > on the fly...and > > then inserting the row into data_live? > > > > > > BTW, in case you are wondering why there are three different > > tables, I > > felt that this was a better way than my client's present system which > > simply wipes out the live data and then reads in the Ascii file. > > If there is > > a glitch then they have to empty the table and reload the Ascii. > > Doing it > > this way, if they need to go back to the old data, I would move it > > data from > > data_old to data_live. > > > > > > Jeff > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From andrew at digitalpulp.com Fri Apr 11 11:49:06 2003 From: andrew at digitalpulp.com (Andrew Yochum) Date: Fri, 11 Apr 2003 11:49:06 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! In-Reply-To: <200304111534.h3BFYIER077783@parsec.nyphp.org> References: <200304111534.h3BFYIER077783@parsec.nyphp.org> Message-ID: <20030411154901.GA23783@thighmaster.digitalpulp.com> A similar suggestion to the one below is to rename the tables to do the move. The table naming then can remain human readable at any given time. Andrew On Fri, Apr 11, 2003 at 11:34:18AM -0400, Jim Hendricks wrote: > You may want to save time and not move the data around at all. > > The idea would be to have 3 tables all structured the same each named > uniquely. Start by loading up table 1, then in the application point the > data to table1. When doing the next import, detect that table 1 contains > the live data so use table2 to import the data. If the data imports > correctly, change the app to point to table2, table1 now becomes your old > data. Next import table 3 becomes your import, then live, table 2 becomes > old, table 1 gets emptied ready for next import. Next import, 1 becomes > import then live, table 3 becomes old, table 2 gets emptied ready for next > import. > > Hope you get the idea. > > 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: Friday, April 11, 2003 10:24 AM > Subject: [nycphp-talk] MySQL & 2.5 million rows! > > > > You read the subject line correctly!!! I'm loading 2.5 million rows from > an ASCII file into a MySQL database. So...here's a little background on what > I've done and then a question. (Please keep in mind I'm a Php/MySQL > newbie...though I'm learnin' fast!!) > > > > I created three tables - data_new, data_old, data_live. The Ascii file > gets read, line by line, and inserted into data_new. When it's completed and > there are no glitches (i.e., no problem with the Ascii file), I want to move > the data from data_live to data_old and then move the new data from data_new > to data_live. So...the question...is there a fast way to move the data from > one MySQL table to another (from data_new to data_live) other than walking > through data_new row by row...creating an Insert statement on the fly...and > then inserting the row into data_live? > > > > BTW, in case you are wondering why there are three different tables, I > felt that this was a better way than my client's present system which > simply wipes out the live data and then reads in the Ascii file. If there is > a glitch then they have to empty the table and reload the Ascii. Doing it > this way, if they need to go back to the old data, I would move it data from > data_old to data_live. > > > > Jeff > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- Andrew Yochum Digital Pulp, Inc. 212.679.0676x255 andrew at digitalpulp.com From jsiegel1 at optonline.net Fri Apr 11 12:16:03 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Fri, 11 Apr 2003 12:16:03 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! Message-ID: <4961cf4970b5.4970b54961cf@optonline.net> I've gotten a lot of great suggestions (thanks so much for the quick response...I hope to get to one of the NYPHP meetings some day) and I definitely *LIKE* the table renaming idea. Now...of course...I've got to make a choice as to which method to use!! :) Jeff ----- Original Message ----- From: Andrew Yochum Date: Friday, April 11, 2003 11:46 am Subject: Re: [nycphp-talk] MySQL & 2.5 million rows! > A similar suggestion to the one below is to rename the tables to > do the move. > The table naming then can remain human readable at any given time. > > Andrew > > On Fri, Apr 11, 2003 at 11:34:18AM -0400, Jim Hendricks wrote: > > You may want to save time and not move the data around at all. > > > > The idea would be to have 3 tables all structured the same each > named> uniquely. Start by loading up table 1, then in the > application point the > > data to table1. When doing the next import, detect that table 1 > contains> the live data so use table2 to import the data. If the > data imports > > correctly, change the app to point to table2, table1 now becomes > your old > > data. Next import table 3 becomes your import, then live, table > 2 becomes > > old, table 1 gets emptied ready for next import. Next import, 1 > becomes> import then live, table 3 becomes old, table 2 gets > emptied ready for next > > import. > > > > Hope you get the idea. > > > > 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: Friday, April 11, 2003 10:24 AM > > Subject: [nycphp-talk] MySQL & 2.5 million rows! > > > > > > > You read the subject line correctly!!! I'm loading 2.5 million > rows from > > an ASCII file into a MySQL database. So...here's a little > background on what > > I've done and then a question. (Please keep in mind I'm a Php/MySQL > > newbie...though I'm learnin' fast!!) > > > > > > I created three tables - data_new, data_old, data_live. The > Ascii file > > gets read, line by line, and inserted into data_new. When it's > completed and > > there are no glitches (i.e., no problem with the Ascii file), I > want to move > > the data from data_live to data_old and then move the new data > from data_new > > to data_live. So...the question...is there a fast way to move > the data from > > one MySQL table to another (from data_new to data_live) other > than walking > > through data_new row by row...creating an Insert statement on > the fly...and > > then inserting the row into data_live? > > > > > > BTW, in case you are wondering why there are three different > tables, I > > felt that this was a better way than my client's present system > which> simply wipes out the live data and then reads in the Ascii > file. If there is > > a glitch then they have to empty the table and reload the Ascii. > Doing it > > this way, if they need to go back to the old data, I would move > it data from > > data_old to data_live. > > > > > > Jeff > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > Andrew Yochum > Digital Pulp, Inc. > 212.679.0676x255 > andrew at digitalpulp.com > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From jim at bizcomputinginc.com Fri Apr 11 12:19:22 2003 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Fri, 11 Apr 2003 12:19:22 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! References: <200304111616.h3BGFwDf081377@parsec.nyphp.org> Message-ID: <00a101c30046$1d36d7b0$6501a8c0@Notebook> One word of warning for the table renaming, it relies on specifics of the SQL Server in use, ie. mySQL. This would mean that If you were to change out your DB Server in the future, you are not assured that your app will still work without tweaks. If no plans are to ever change the SQL Server then the renameing is probably the simplies solution. 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: Friday, April 11, 2003 12:15 PM Subject: Re: [nycphp-talk] MySQL & 2.5 million rows! > I've gotten a lot of great suggestions (thanks so much for the quick response...I hope to get to one of the NYPHP meetings some day) and I definitely *LIKE* the table renaming idea. > > Now...of course...I've got to make a choice as to which method to use!! :) > > Jeff > > ----- Original Message ----- > From: Andrew Yochum > Date: Friday, April 11, 2003 11:46 am > Subject: Re: [nycphp-talk] MySQL & 2.5 million rows! > > > A similar suggestion to the one below is to rename the tables to > > do the move. > > The table naming then can remain human readable at any given time. > > > > Andrew > > > > On Fri, Apr 11, 2003 at 11:34:18AM -0400, Jim Hendricks wrote: > > > You may want to save time and not move the data around at all. > > > > > > The idea would be to have 3 tables all structured the same each > > named> uniquely. Start by loading up table 1, then in the > > application point the > > > data to table1. When doing the next import, detect that table 1 > > contains> the live data so use table2 to import the data. If the > > data imports > > > correctly, change the app to point to table2, table1 now becomes > > your old > > > data. Next import table 3 becomes your import, then live, table > > 2 becomes > > > old, table 1 gets emptied ready for next import. Next import, 1 > > becomes> import then live, table 3 becomes old, table 2 gets > > emptied ready for next > > > import. > > > > > > Hope you get the idea. > > > > > > 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: Friday, April 11, 2003 10:24 AM > > > Subject: [nycphp-talk] MySQL & 2.5 million rows! > > > > > > > > > > You read the subject line correctly!!! I'm loading 2.5 million > > rows from > > > an ASCII file into a MySQL database. So...here's a little > > background on what > > > I've done and then a question. (Please keep in mind I'm a Php/MySQL > > > newbie...though I'm learnin' fast!!) > > > > > > > > I created three tables - data_new, data_old, data_live. The > > Ascii file > > > gets read, line by line, and inserted into data_new. When it's > > completed and > > > there are no glitches (i.e., no problem with the Ascii file), I > > want to move > > > the data from data_live to data_old and then move the new data > > from data_new > > > to data_live. So...the question...is there a fast way to move > > the data from > > > one MySQL table to another (from data_new to data_live) other > > than walking > > > through data_new row by row...creating an Insert statement on > > the fly...and > > > then inserting the row into data_live? > > > > > > > > BTW, in case you are wondering why there are three different > > tables, I > > > felt that this was a better way than my client's present system > > which> simply wipes out the live data and then reads in the Ascii > > file. If there is > > > a glitch then they have to empty the table and reload the Ascii. > > Doing it > > > this way, if they need to go back to the old data, I would move > > it data from > > > data_old to data_live. > > > > > > > > Jeff > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > Andrew Yochum > > Digital Pulp, Inc. > > 212.679.0676x255 > > andrew at digitalpulp.com > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From jsiegel1 at optonline.net Fri Apr 11 12:21:21 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Fri, 11 Apr 2003 12:21:21 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! Message-ID: <4b830c4ba1de.4ba1de4b830c@optonline.net> Did a quick search and noticed the following concerning table renaming: "The rename is done atomically, which means that no other thread can access any of the tables while the rename is running." (from MySQL online docs.) Correct me if I'm wrong but this would mean that website visitors would not be able to query the database during this operation. Is that correct? Jeff ----- Original Message ----- From: Andrew Yochum Date: Friday, April 11, 2003 11:46 am Subject: Re: [nycphp-talk] MySQL & 2.5 million rows! > A similar suggestion to the one below is to rename the tables to > do the move. > The table naming then can remain human readable at any given time. > > Andrew > > On Fri, Apr 11, 2003 at 11:34:18AM -0400, Jim Hendricks wrote: > > You may want to save time and not move the data around at all. > > > > The idea would be to have 3 tables all structured the same each > named> uniquely. Start by loading up table 1, then in the > application point the > > data to table1. When doing the next import, detect that table 1 > contains> the live data so use table2 to import the data. If the > data imports > > correctly, change the app to point to table2, table1 now becomes > your old > > data. Next import table 3 becomes your import, then live, table > 2 becomes > > old, table 1 gets emptied ready for next import. Next import, 1 > becomes> import then live, table 3 becomes old, table 2 gets > emptied ready for next > > import. > > > > Hope you get the idea. > > > > 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: Friday, April 11, 2003 10:24 AM > > Subject: [nycphp-talk] MySQL & 2.5 million rows! > > > > > > > You read the subject line correctly!!! I'm loading 2.5 million > rows from > > an ASCII file into a MySQL database. So...here's a little > background on what > > I've done and then a question. (Please keep in mind I'm a Php/MySQL > > newbie...though I'm learnin' fast!!) > > > > > > I created three tables - data_new, data_old, data_live. The > Ascii file > > gets read, line by line, and inserted into data_new. When it's > completed and > > there are no glitches (i.e., no problem with the Ascii file), I > want to move > > the data from data_live to data_old and then move the new data > from data_new > > to data_live. So...the question...is there a fast way to move > the data from > > one MySQL table to another (from data_new to data_live) other > than walking > > through data_new row by row...creating an Insert statement on > the fly...and > > then inserting the row into data_live? > > > > > > BTW, in case you are wondering why there are three different > tables, I > > felt that this was a better way than my client's present system > which> simply wipes out the live data and then reads in the Ascii > file. If there is > > a glitch then they have to empty the table and reload the Ascii. > Doing it > > this way, if they need to go back to the old data, I would move > it data from > > data_old to data_live. > > > > > > Jeff > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > Andrew Yochum > Digital Pulp, Inc. > 212.679.0676x255 > andrew at digitalpulp.com > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From melissa at inexact.info Fri Apr 11 12:11:14 2003 From: melissa at inexact.info (Melissa Pott) Date: Fri, 11 Apr 2003 12:11:14 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! In-Reply-To: <200304111424.h3BEO9H7067435@parsec.nyphp.org> References: <200304111424.h3BEO9H7067435@parsec.nyphp.org> Message-ID: <1050078082.10708928@s5.dngr.org> How about just renaming the tables? All the references to the tables stay the same, and you just have to add the instruction to juggle the table names. On Fri, 11 Apr 2003 10:59AM -0500, jsiegel1 at optonline.net wrote: > You read the subject line correctly!!! I'm loading 2.5 million rows > from an ASCII file into a MySQL database. So...here's a little > background on what I've done and then a question. (Please keep in mind > I'm a Php/MySQL newbie...though I'm learnin' fast!!) > > I created three tables - data_new, data_old, data_live. The Ascii file > gets read, line by line, and inserted into data_new. When it's > completed and there are no glitches (i.e., no problem with the Ascii > file), I want to move the data from data_live to data_old and then move > the new data from data_new to data_live. So...the question...is there a > fast way to move the data from one MySQL table to another (from > data_new to data_live) other than walking through data_new row by > row...creating an Insert statement on the fly...and then inserting the > row into data_live? > > BTW, in case you are wondering why there are three different tables, I > felt that this was a better way than my client's present system which > simply wipes out the live data and then reads in the Ascii file. If > there is a glitch then they have to empty the table and reload the > Ascii. Doing it this way, if they need to go back to the old data, I > would move it data from data_old to data_live. > > Jeff > > > > --- Unsubscribe at http://nyphp.org/list/ --- --melissa From jmusil at villagevoice.com Fri Apr 11 13:17:56 2003 From: jmusil at villagevoice.com (Jim Musil) Date: Fri, 11 Apr 2003 13:17:56 -0400 Subject: Adding to PHP API Message-ID: What's involved with writing some of my functions in C and plugging them into the PHP API? Once they are plugged-in do I have to recompile PHP? Do I have to restart Apache every time I make a change? What kind of speed bonus can I expect? Links? Stories? Wisdom? Thanks! -- James Musil Senior Developer Village Voice Media 36 Cooper Square New York, NY 10003 (212) 475-3300 ext 14003 JMusil at villagevoice.com From alexander_chan at yahoo.com Fri Apr 11 13:42:24 2003 From: alexander_chan at yahoo.com (Alexander Chan) Date: Fri, 11 Apr 2003 10:42:24 -0700 (PDT) Subject: [nycphp-talk] PHPCon Exhibitors In-Reply-To: <200304111344.h3BDhbN7065956@parsec.nyphp.org> Message-ID: <20030411174224.35656.qmail@web11604.mail.yahoo.com> I can handle setup hours and Exhibit hours on thursday. alex --- Hans Zaunere wrote: > > Good morning, > > New York PHP is in need of one or two more > exhibitors for PHPCon 2003. The > badge would give you access to both Opening and > Closing keynote addresses, > all evening sessions (after 6 pm on Thursday), and > all social events. > > The needed times are: > > Set Up and Clean Up: > Display space set up: Wednesday, April 23, 2003 - 2 > pm to 6 pm > Display space clean up: Friday, April 25, 2003 - 5 > pm to 8 pm > > Exhibit hours: > Thursday, April 24, 2003 - 9 am to 6 pm > Friday, April 25, 2003 - 9 am to 5 pm > > Evening Sessions: > Thursday, April 24, 2003 - 6 pm to 9 pm > > > We currently have spotty coverage, so someone who > could dedicate at least one > or two full days would be great. > > Thank you, > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From Mark at enobrev.com Fri Apr 11 14:07:51 2003 From: Mark at enobrev.com (Mark Armendariz) Date: Fri, 11 Apr 2003 14:07:51 -0400 Subject: Advanced Search Techniques Message-ID: <003101c30055$4af9c950$e1951d18@enobrev> I just pulled in a gig (finally). They are building a literary reference guide. Well, while planning they hit me with something I'm not too versed in. They want to eventually have something they called "fingerprint" searching. The term alone meant nothing to me (beyond the obvious - which google agreed with). Basically it has something to do with using synonyms and misspellings and all types of other fun algorithms to find what a user is looking for. Does anyone hear have any experience with such things, or maybe know where to look? Thanks!! Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at enobrev.com Fri Apr 11 14:21:18 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 11 Apr 2003 14:21:18 -0400 Subject: Advanced Search Techniques Message-ID: <003801c30057$287b4d70$e1951d18@enobrev> I just pulled in a gig (finally). They are building a literary reference guide. Well, while planning they hit me with something I'm not too versed in. They want to eventually have something they called "fingerprint" searching. The term alone meant nothing to me (beyond the obvious - which google agreed with). Basically it has something to do with using synonyms and misspellings and all types of other fun algorithms to find what a user is looking for. Does anyone hear have any experience with such things, or maybe know where to look? Thanks!! Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiflett at php.net Fri Apr 11 14:31:56 2003 From: shiflett at php.net (Chris Shiflett) Date: Fri, 11 Apr 2003 11:31:56 -0700 (PDT) Subject: [nycphp-talk] Advanced Search Techniques In-Reply-To: <200304111822.h3BILaKV089061@parsec.nyphp.org> Message-ID: <20030411183156.28320.qmail@web14301.mail.yahoo.com> --- Mark Armendariz wrote: > They want to eventually have something they called "fingerprint" > searching. The term alone meant nothing to me (beyond the obvious - > which google agreed with). > > Basically it has something to do with using synonyms and misspellings > and all types of other fun algorithms to find what a user is looking > for. Does anyone hear have any experience with such things, or maybe > know where to look? I'm not sure about synonyms, but support for misspelled words can typically be achieved with the Levenshtein algorithm, and PHP supports that: http://www.php.net/manual/en/function.levenshtein.php Hope that helps. Chris From webapprentice at onemain.com Fri Apr 11 11:56:00 2003 From: webapprentice at onemain.com (Stephen Tang) Date: Fri, 11 Apr 2003 11:56:00 -0400 (GMT) Subject: Search Engine Message-ID: <7865569.1050087300820.JavaMail.nobody@statler.psp.pas.earthlink.net> Hi, Speaking of the search techniques, I have a small client with a static shop-like website who wants search abilities for a CD catalog. There is no database available, but PHP is operational. Is there any PHP library or tool that would allow me to search the site without a database? Some leads would be appreciated. Thanks, Stephen -------Original Message------- From: Chris Shiflett Sent: 04/11/03 02:31 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Advanced Search Techniques > > --- Mark Armendariz wrote: > They want to eventually have something they called "fingerprint" > searching. The term alone meant nothing to me (beyond the obvious - > which google agreed with). > > Basically it has something to do with using synonyms and misspellings > and all types of other fun algorithms to find what a user is looking > for. Does anyone hear have any experience with such things, or maybe > know where to look? I'm not sure about synonyms, but support for misspelled words can typically be achieved with the Levenshtein algorithm, and PHP supports that: http://www.php.net/manual/en/function.levenshtein.php Hope that helps. Chris --- Unsubscribe at http://nyphp.org/list/ --- > From joshmccormack at travelersdiary.com Fri Apr 11 15:00:25 2003 From: joshmccormack at travelersdiary.com (joshmccormack at travelersdiary.com) Date: Fri, 11 Apr 2003 14:00:25 -0500 (CDT) Subject: [nycphp-talk] Advanced Search Techniques In-Reply-To: <200304111822.h3BILaLb089061@parsec.nyphp.org> Message-ID: If your search terms are in a database you could search with LIKE. Some databases can search for things that sound like something, too. Josh On Fri, 11 Apr 2003, Mark Armendariz wrote: > I just pulled in a gig (finally). They are building a literary > reference guide. > > Well, while planning they hit me with something I'm not too versed in. > They want to eventually have something they called "fingerprint" > searching. The term alone meant nothing to me (beyond the obvious - > which google agreed with). > > Basically it has something to do with using synonyms and misspellings > and all types of other fun algorithms to find what a user is looking > for. Does anyone hear have any experience with such things, or maybe > know where to look? > > Thanks!! > > Mark > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From brent at landover.com Fri Apr 11 15:01:38 2003 From: brent at landover.com (Brent Baisley) Date: Fri, 11 Apr 2003 15:01:38 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! In-Reply-To: <200304111621.h3BGLFHb082894@parsec.nyphp.org> Message-ID: <062BD2F4-6C50-11D7-8866-0050E4C5CF70@landover.com> That is correct, but only for the duration of the rename which take only a split second. On Friday, April 11, 2003, at 12:21 PM, jsiegel1 at optonline.net wrote: > Did a quick search and noticed the following concerning table renaming: > > "The rename is done atomically, which means that no other thread can > access any of the tables while the rename is running." (from MySQL > online docs.) > > Correct me if I'm wrong but this would mean that website visitors > would not be able to query the database during this operation. Is that > correct? > > Jeff > -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 From jim at bizcomputinginc.com Fri Apr 11 15:02:04 2003 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Fri, 11 Apr 2003 15:02:04 -0400 Subject: [nycphp-talk] Advanced Search Techniques References: <200304111821.h3BILaDf089061@parsec.nyphp.org> Message-ID: <00c501c3005c$d7e535a0$6501a8c0@Notebook> Sounds to me like your looking for fuzzy logic. The misspellings etc. sound like phonetic lookups where each word is attempted to be converted into phonetic tokens then looked up by them with a nearness factor set which may mean if the phrase breaks into 20 phonetics and a nearness of 80% then if 18 phonetics match return it. 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: "Mark Armendariz" To: "NYPHP Talk" Sent: Friday, April 11, 2003 2:21 PM Subject: [nycphp-talk] Advanced Search Techniques > I just pulled in a gig (finally). They are building a literary > reference guide. > > Well, while planning they hit me with something I'm not too versed in. > They want to eventually have something they called "fingerprint" > searching. The term alone meant nothing to me (beyond the obvious - > which google agreed with). > > Basically it has something to do with using synonyms and misspellings > and all types of other fun algorithms to find what a user is looking > for. Does anyone hear have any experience with such things, or maybe > know where to look? > > Thanks!! > > Mark > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From nyphp at enobrev.com Fri Apr 11 15:06:38 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 11 Apr 2003 15:06:38 -0400 Subject: [nycphp-talk] Advanced Search Techniques In-Reply-To: <200304111832.h3BIVwFF090394@parsec.nyphp.org> Message-ID: <004d01c3005d$7e00dc50$e1951d18@enobrev> I had never heard of this. Very interesting.. muchos thanks for the link. -----Original Message----- From: Chris Shiflett [mailto:shiflett at php.net] Sent: Friday, April 11, 2003 2:32 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Advanced Search Techniques --- Mark Armendariz wrote: > They want to eventually have something they called "fingerprint" > searching. The term alone meant nothing to me (beyond the obvious - > which google agreed with). > > Basically it has something to do with using synonyms and misspellings > and all types of other fun algorithms to find what a user is looking > for. Does anyone hear have any experience with such things, or maybe > know where to look? I'm not sure about synonyms, but support for misspelled words can typically be achieved with the Levenshtein algorithm, and PHP supports that: http://www.php.net/manual/en/function.levenshtein.php Hope that helps. Chris --- Unsubscribe at http://nyphp.org/list/ --- From nyphp at enobrev.com Fri Apr 11 15:08:44 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 11 Apr 2003 15:08:44 -0400 Subject: [nycphp-talk] Advanced Search Techniques In-Reply-To: <200304111902.h3BJ29FF094754@parsec.nyphp.org> Message-ID: <004e01c3005d$c92130e0$e1951d18@enobrev> Seems about right on.. and definitely worth looking into. A google on fuzzy logic gives me a good starting point. Hopefully I can expand it all enough to moisten the client.. Thanks a lot to all of you. Mark -----Original Message----- From: Jim Hendricks [mailto:jim at bizcomputinginc.com] Sent: Friday, April 11, 2003 3:02 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Advanced Search Techniques Sounds to me like your looking for fuzzy logic. The misspellings etc. sound like phonetic lookups where each word is attempted to be converted into phonetic tokens then looked up by them with a nearness factor set which may mean if the phrase breaks into 20 phonetics and a nearness of 80% then if 18 phonetics match return it. 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: "Mark Armendariz" To: "NYPHP Talk" Sent: Friday, April 11, 2003 2:21 PM Subject: [nycphp-talk] Advanced Search Techniques > I just pulled in a gig (finally). They are building a literary > reference guide. > > Well, while planning they hit me with something I'm not too versed in. > They want to eventually have something they called "fingerprint" > searching. The term alone meant nothing to me (beyond the obvious - > which google agreed with). > > Basically it has something to do with using synonyms and misspellings > and all types of other fun algorithms to find what a user is looking > for. Does anyone hear have any experience with such things, or maybe > know where to look? > > Thanks!! > > Mark > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From patrick.fee at baesystems.com Fri Apr 11 15:20:51 2003 From: patrick.fee at baesystems.com (Fee, Patrick J) Date: Fri, 11 Apr 2003 15:20:51 -0400 Subject: [nycphp-talk] Re: Search Engine Message-ID: First, there is a free option (depending on the number of total pages) that I've used before. That would be Atomz.com's "Atomz Search" (http://www.atomz.com/search/. I've utilized their services before for small to medium sites. You set up the search pages with your CSS and/or background, tell the spider at Atomz what to catalog at your site, how often to do it, and then let it work auto-majicly. There is an Atomz ad when your results come up... but it's a great solution if you don't have a lot of time or $$ and a smaller site. Second, you might look into a Verity Search solution using PHP. Verity uses a series of flat files for it's "collection", so mySql would not be necessary. (I could give you more info on that if you'd like). Third, Check out the resources available on SearchEngineWatch.com: http://www.searchenginewatch.com/resources/article.php/2156591 This is a great resources for what you are trying to do.... Hope that helps, Patrick J. Fee Web & Database Group Manager BAE SYSTEMS 600 Maryland Ave. SW Suite 600 Washington D.C. 20024 Patrick.Fee at BAESYSTEMS.com Tel: (202) 548-3759 Fax: (202) 608-5970 -----Original Message----- From: Stephen Tang [mailto:webapprentice at onemain.com] Sent: Friday, April 11, 2003 2:55 PM To: NYPHP Talk Subject: [nycphp-talk] Re: Search Engine Hi, Speaking of the search techniques, I have a small client with a static shop-like website who wants search abilities for a CD catalog. There is no database available, but PHP is operational. Is there any PHP library or tool that would allow me to search the site without a database? Some leads would be appreciated. Thanks, Stephen -------Original Message------- From: Chris Shiflett Sent: 04/11/03 02:31 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Advanced Search Techniques > > --- Mark Armendariz wrote: > They want to eventually have something they called "fingerprint" > searching. The term alone meant nothing to me (beyond the obvious - > which google agreed with). > > Basically it has something to do with using synonyms and misspellings > and all types of other fun algorithms to find what a user is looking > for. Does anyone hear have any experience with such things, or maybe > know where to look? I'm not sure about synonyms, but support for misspelled words can typically be achieved with the Levenshtein algorithm, and PHP supports that: http://www.php. net/manual/en/function.levenshtein.php Hope that helps. Chris --- Unsubscribe at http://nyphp.org/list/ --- > --- Unsubscribe at http://nyphp.org/list/ --- From ifarfan at netzero.com Fri Apr 11 15:20:51 2003 From: ifarfan at netzero.com (ifarfan at netzero.com) Date: Fri, 11 Apr 2003 19:20:51 GMT Subject: [nycphp-talk] Advanced Search Techniques Message-ID: <20030411.152106.2222.5605@webmail17.nyc.untd.com> Hi, Not sure if this helps (this is my first post!) but you may want to look at the SOUNDEX function in MySQL (All major DB vendors provide it, too). Here's a link: http://www.mysql.com/doc/en/String_functions.html The soundex listing reads: SOUNDEX(str) Returns a soundex string from str. Two strings that sound almost the same should have identical soundex strings. A standard soundex string is 4 characters long, but the SOUNDEX() function returns an arbitrarily long string. You can use SUBSTRING() on the result to get a standard soundex string. All non-alphanumeric characters are ignored in the given string. All international alpha characters outside the A-Z range are treated as vowels: mysql> SELECT SOUNDEX('Hello'); -> 'H400' mysql> SELECT SOUNDEX('Quadratically'); -> 'Q36324' MS-SQL also has a DIFFERENCE function that compares the difference of the SOUNDEX pattern results between 2 strings. -- Using DIFFERENCE SELECT DIFFERENCE('Smithers', 'Smythers') -- The difference returned is 4 (lowest possible difference). Hope this helps... Cheers, Israel F. > I just pulled in a gig (finally). They are building a literary > reference guide. > > Well, while planning they hit me with something I'm not too versed in. > They want to eventually have something they called "fingerprint" > searching. The term alone meant nothing to me (beyond the obvious - > which google agreed with). > > Basically it has something to do with using synonyms and misspellings > and all types of other fun algorithms to find what a user is looking > for. Does anyone hear have any experience with such things, or maybe > know where to look? > > Thanks!! > > Mark From sterling at bumblebury.com Fri Apr 11 14:01:08 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 11 Apr 2003 14:01:08 -0400 Subject: [nycphp-talk] Advanced Search Techniques In-Reply-To: <200304111832.h3BIVwJp090394@parsec.nyphp.org> References: <200304111832.h3BIVwJp090394@parsec.nyphp.org> Message-ID: <1050084068.1390.5.camel@hasele> On Fri, 2003-04-11 at 14:31, Chris Shiflett wrote: > --- Mark Armendariz wrote: > > They want to eventually have something they called "fingerprint" > > searching. The term alone meant nothing to me (beyond the obvious - > > which google agreed with). > > > > Basically it has something to do with using synonyms and misspellings > > and all types of other fun algorithms to find what a user is looking > > for. Does anyone hear have any experience with such things, or maybe > > know where to look? > > I'm not sure about synonyms, but support for misspelled words can typically be > achieved with the Levenshtein algorithm, and PHP supports that: > > http://www.php.net/manual/en/function.levenshtein.php > Levenshtein is pretty useless in this case. It'll tell you what words are semantically equivalent, sure, but it doesn't do spelling correction. I suggest you take a look at using pspell for spell checking. As for synonyms, you need a pretty large dictionary for that - take a look freshmeat. -Sterling -- "Nothing is particularly hard if you divide it into small jobs." - Henry Ford From chris at psydeshow.org Fri Apr 11 15:24:28 2003 From: chris at psydeshow.org (Chris Snyder) Date: Fri, 11 Apr 2003 15:24:28 -0400 Subject: [nycphp-talk] Re: Search Engine In-Reply-To: <200304111855.h3BIt4K5092699@parsec.nyphp.org> References: <200304111855.h3BIt4K5092699@parsec.nyphp.org> Message-ID: <3E97166C.3030105@psydeshow.org> I normally help my clients implement some flavor of dedicated Google search. Even on the free version they let you brand the results pages with a logo and colors. http://www.google.com/services/index.html and specifically http://www.google.com/services/free.html If the content you want to index is already online, it's a quick, simple solution. chris. Stephen Tang wrote: >Hi, >Speaking of the search techniques, I have a small client with a static shop-like website who wants search abilities for a CD catalog. There is no database available, but PHP is operational. > >Is there any PHP library or tool that would allow me to search the site without a database? Some leads would be appreciated. > >Thanks, >Stephen > > > From shiflett at php.net Fri Apr 11 15:31:37 2003 From: shiflett at php.net (Chris Shiflett) Date: Fri, 11 Apr 2003 12:31:37 -0700 (PDT) Subject: [nycphp-talk] Re: Search Engine In-Reply-To: <200304111928.h3BJQEKV001875@parsec.nyphp.org> Message-ID: <20030411193137.52312.qmail@web14302.mail.yahoo.com> This is a another perfect example of why you should not mangle the Reply-To header. :-) Chris --- matt at reconstrukt.com wrote: > Hello, > I'll be on vacation from April 12th to the 20th, returning to the office on > Moday, April 21st. > > This email confirms I've received your message - I'll be sure to get back to > you when I return. > > Thanks - > > Matt > > *************************** > 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 zaunere at yahoo.com Fri Apr 11 15:44:53 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Fri, 11 Apr 2003 12:44:53 -0700 (PDT) Subject: [nycphp-talk] Re: Search Engine In-Reply-To: <200304111934.h3BJVhJ1007307@parsec.nyphp.org> Message-ID: <20030411194453.85718.qmail@web12808.mail.yahoo.com> Sorry folks. People really need to be aware how they write their vacation-responders. --- Chris Shiflett wrote: > This is a another perfect example of why you should not mangle the Reply-To > header. :-) That's arguable, but vacation responders should use the Return-Path anyway. H > --- matt at reconstrukt.com wrote: > > Hello, > > I'll be on vacation from April 12th to the 20th, returning to the office > on > > Moday, April 21st. > > > > This email confirms I've received your message - I'll be sure to get back > to > > you when I return. > > > > Thanks - > > > > Matt > > > > *************************** > > 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 > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From patrick.fee at baesystems.com Fri Apr 11 15:33:52 2003 From: patrick.fee at baesystems.com (Fee, Patrick J) Date: Fri, 11 Apr 2003 15:33:52 -0400 Subject: Search Engine Message-ID: Almost forgot.... Google now has a Web Services approach utilizing XML that might work for you as well... Patrick J. Fee Web & Database Group Manager BAE SYSTEMS 600 Maryland Ave. SW Suite 600 Washington D.C. 20024 Patrick.Fee at BAESYSTEMS.com Tel: (202) 548-3759 Fax: (202) 608-5970 -----Original Message----- From: Fee, Patrick J [mailto:patrick.fee at baesystems.com] Sent: Friday, April 11, 2003 3:22 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Re: Search Engine First, there is a free option (depending on the number of total pages) that I've used before. That would be Atomz.com's "Atomz Search" (http://www.atomz.com/search/. I've utilized their services before for small to medium sites. You set up the search pages with your CSS and/or background, tell the spider at Atomz what to catalog at your site, how often to do it, and then let it work auto-majicly. There is an Atomz ad when your results come up... but it's a great solution if you don't have a lot of time or $$ and a smaller site. Second, you might look into a Verity Search solution using PHP. Verity uses a series of flat files for it's "collection", so mySql would not be necessary. (I could give you more info on that if you'd like). Third, Check out the resources available on SearchEngineWatch.com: http://www.searchenginewatch.com/resources/article.php/2156591 This is a great resources for what you are trying to do.... Hope that helps, Patrick J. Fee Web & Database Group Manager BAE SYSTEMS 600 Maryland Ave. SW Suite 600 Washington D.C. 20024 Patrick.Fee at BAESYSTEMS.com Tel: (202) 548-3759 Fax: (202) 608-5970 -----Original Message----- From: Stephen Tang [mailto:webapprentice at onemain.com] Sent: Friday, April 11, 2003 2:55 PM To: NYPHP Talk Subject: [nycphp-talk] Re: Search Engine Hi, Speaking of the search techniques, I have a small client with a static shop-like website who wants search abilities for a CD catalog. There is no database available, but PHP is operational. Is there any PHP library or tool that would allow me to search the site without a database? Some leads would be appreciated. Thanks, Stephen -------Original Message------- From: Chris Shiflett Sent: 04/11/03 02:31 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Advanced Search Techniques > > --- Mark Armendariz wrote: > They want to eventually have something they called "fingerprint" > searching. The term alone meant nothing to me (beyond the obvious - > which google agreed with). > > Basically it has something to do with using synonyms and misspellings > and all types of other fun algorithms to find what a user is looking > for. Does anyone hear have any experience with such things, or maybe > know where to look? I'm not sure about synonyms, but support for misspelled words can typically be achieved with the Levenshtein algorithm, and PHP supports that: http://www.php. net/manual/en/function.levenshtein.php Hope that helps. Chris --- Unsubscribe at http://nyphp.org/list/ --- > --- Unsubscribe at http://nyphp.org/list/ --- From matt at reconstrukt.com Fri Apr 11 15:29:16 2003 From: matt at reconstrukt.com (matt at reconstrukt.com) Date: 11 Apr 2003 19:29:16 -0000 Subject: [nycphp-talk] Re: Search Engine Message-ID: <20030411192916.1169.qmail@blueboxinternet.com> Hello, I'll be on vacation from April 12th to the 20th, returning to the office on Moday, April 21st. This email confirms I've received your message - I'll be sure to get back to you when I return. Thanks - Matt *************************** 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 jsiegel1 at optonline.net Fri Apr 11 16:26:20 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Fri, 11 Apr 2003 16:26:20 -0400 Subject: [nycphp-talk] MySQL & 2.5 million rows! Message-ID: <3125873127ba.3127ba312587@optonline.net> Hmmm...sounds like a solution. Jeff ----- Original Message ----- From: Brent Baisley Date: Friday, April 11, 2003 3:01 pm Subject: Re: [nycphp-talk] MySQL & 2.5 million rows! > That is correct, but only for the duration of the rename which > take > only a split second. > > On Friday, April 11, 2003, at 12:21 PM, jsiegel1 at optonline.net wrote: > > > Did a quick search and noticed the following concerning table > renaming:> > > "The rename is done atomically, which means that no other thread > can > > access any of the tables while the rename is running." (from > MySQL > > online docs.) > > > > Correct me if I'm wrong but this would mean that website > visitors > > would not be able to query the database during this operation. > Is that > > correct? > > > > Jeff > > > -- > Brent Baisley > Systems Architect > Landover Associates, Inc. > Search & Advisory Services for Advanced Technology Environments > p: 212.759.6400/800.759.0577 > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From jsiegel1 at optonline.net Fri Apr 11 16:51:52 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Fri, 11 Apr 2003 16:51:52 -0400 Subject: Thank You! Message-ID: <4a147149ffe3.49ffe34a1471@optonline.net> I want to thank everyone for their suggestions. Jeff From webapprentice at onemain.com Fri Apr 11 18:27:06 2003 From: webapprentice at onemain.com (Webapprentice) Date: Fri, 11 Apr 2003 18:27:06 -0400 Subject: [nycphp-talk] Re: Search Engine In-Reply-To: <200304111922.h3BJLlJJ097446@parsec.nyphp.org> References: <200304111922.h3BJLlJJ097446@parsec.nyphp.org> Message-ID: <3E97413A.10501@onemain.com> Thanks to all for the suggestions. Patrick Fee, What is this Verity Search you speak of? The client has a CD catalog. The client will soon have over 300 CDs for sale, and would like customers to be able to search the site to find this catalog information. The business doesn't not have a lot of money (even $200 is a stretch right now), so I need something low-cost. I'm helping this client as a personal favor, so I'm using what PHP knowledge I've acquired to help strengthen my understanding. Thanks, Stephen Fee, Patrick J wrote: >First, there is a free option (depending on the number of total pages) that >I've used before. That would be Atomz.com's "Atomz Search" >(http://www.atomz.com/search/. > >I've utilized their services before for small to medium sites. You set up >the search pages with your CSS and/or background, tell the spider at Atomz >what to catalog at your site, how often to do it, and then let it work >auto-majicly. There is an Atomz ad when your results come up... but it's a >great solution if you don't have a lot of time or $$ and a smaller site. > >Second, you might look into a Verity Search solution using PHP. Verity uses >a series of flat files for it's "collection", so mySql would not be >necessary. >(I could give you more info on that if you'd like). > >Third, Check out the resources available on SearchEngineWatch.com: >http://www.searchenginewatch.com/resources/article.php/2156591 > >This is a great resources for what you are trying to do.... > > >Hope that helps, > > >Patrick J. Fee >Web & Database Group Manager >BAE SYSTEMS >600 Maryland Ave. SW Suite 600 >Washington D.C. 20024 >Patrick.Fee at BAESYSTEMS.com >Tel: (202) 548-3759 >Fax: (202) 608-5970 > > > >-----Original Message----- >From: Stephen Tang [mailto:webapprentice at onemain.com] >Sent: Friday, April 11, 2003 2:55 PM >To: NYPHP Talk >Subject: [nycphp-talk] Re: Search Engine > > >Hi, >Speaking of the search techniques, I have a small client with a static >shop-like website who wants search abilities for a CD catalog. There is no >database available, but PHP is operational. > >Is there any PHP library or tool that would allow me to search the site >without a database? Some leads would be appreciated. > >Thanks, >Stephen > >-------Original Message------- >From: Chris Shiflett >Sent: 04/11/03 02:31 PM >To: NYPHP Talk >Subject: Re: [nycphp-talk] Advanced Search Techniques > > > >>--- Mark Armendariz wrote: >>They want to eventually have something they called "fingerprint" >>searching. The term alone meant nothing to me (beyond the obvious - >>which google agreed with). >> >>Basically it has something to do with using synonyms and misspellings >>and all types of other fun algorithms to find what a user is looking >>for. Does anyone hear have any experience with such things, or maybe >>know where to look? >> >> > >I'm not sure about synonyms, but support for misspelled words can >typically be >achieved with the Levenshtein algorithm, and PHP supports that: > >href="http://www.php.net/manual/en/function.levenshtein.php">http://www.php. >net/manual/en/function.levenshtein.php > >Hope that helps. > >Chris > > >--- Unsubscribe at href="http://nyphp.org/list/">http://nyphp.org/list/ --- > > > > > > > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > From Gutsguth at aol.com Fri Apr 11 19:57:39 2003 From: Gutsguth at aol.com (Gutsguth at aol.com) Date: Fri, 11 Apr 2003 19:57:39 EDT Subject: no more E mail Message-ID: <12c.27cbf1c1.2bc8b073@aol.com> I have received 67 E mail messages from your org. in one day. Please do not send any more to me.. gutsguth at aol.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From webpage at ureach.com Fri Apr 11 21:20:12 2003 From: webpage at ureach.com (Web Page) Date: Fri, 11 Apr 2003 21:20:12 -0400 Subject: GNUbie // Need help with coding problem Message-ID: <200304120120.VAA32636@www20.ureach.com> Hello! I am trying to learn PHP and attended the "GNUbies" meeting on Wednesday, April 9th on the "Introduction to PHP". I am using phpNuke for a web site I am working on. It was suggested that I post a problem I am having on the NewYorkPHP mailing list. I would like to get the login boxes to change to Private Messages when a member logs in. I attempled to do this at the bottom of the header, under where, I have "Create an Account" change to "Welcome (MemberName)[Logout] after a Member logs into the site. I have not been able to get it to work. Please see the phpNuke v6.0 site located at, http://members.lycos.co.uk/testmenow/nuke/index.php The code that would control the present display and change I am trying to get is in two files. The "theme.php" and "header.php" files. I placed the working "header.php" code back (that is the code on the site presently) just so the site would look better. Because I do not know the policy of the mailing list about attachments, I am placing the code inside of this e-mail below . theme.php header.php (This is the "header.php" code on the site now) header2.php (What I tried and did not work) I have also created a login so you can see what I am talking about. UserID: sitetester Password: sitetester If you look at the block titled "User Info" on the top right of the page, you will see the login boxes have changed into a "Private Messages" area after you login. I just want to get the login boxes on the top of the page to change into the the "Private Messages" portion that you see on this block. I do not want the rest of the information on the block. Thanks in advance for any and all help you can give me. New Member, WP Webbing Along ;):) =============================================================== THEME.PHP code ----------------------------------------- "; if ($banners == 1) { include("banners.php");} $topics_list = ""); echo ("PASSWORD "); echo (""); echo (""); echo (""); echo ("$slogan"); echo ("

"); echo (""); echo ("Search "); echo ("in $topics_list"); echo (""); echo (""); echo ("
"); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo ("
"); ?> -------------------------------------------------------------------------------------- HEADER2.PHP (What I tried but did not work) ---------------------------------------------------------- "); echo (""); echo (""); echo ("
"); echo (""); echo (""); echo (""); echo (""); echo ("
"); echo (""); echo (""); echo (""); echo (""); echo ("
"); echo (""); echo (""); echo (""); echo ""); echo (""); echo ("
$theuser
:: [Home] ::  [Downloads] ::  [Your Account] ::  [Forums] ::
\ "; echo ("
"); echo (""); echo (""); echo (""); echo (""); echo ("
"); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo ("
$public_msg
"); echo (""); $content .= ""; if (is_user($user)) { $content .= "
"._BWEL.", $username.
\
\ "; $result = sql_query("select uid from $user_prefix"._users." where uname='$username'", $dbi); list($uid) = sql_fetch_row($result, $dbi); $result2 = sql_query("select to_userid from $prefix"._priv_msgs." where to_userid='$uid' and read_msg='0'", $dbi); $newpms = sql_num_rows($result2, $dbi); $result3 = sql_query("select to_userid from $prefix"._priv_msgs." where to_userid='$uid' and read_msg='1'", $dbi); $oldpms = sql_num_rows($result3, $dbi); $content .= ""._BPM."
\ "; $content .= " "._BUNREAD.": $newpms
\ "; $content .= " "._BREAD.": $oldpms
\
\ "; } else { $content .= " "._BWEL.", $anonymous\
"; $content .= ""._NICKNAME."
"; $content .= ""._PASSWORD."
"; $content .= ""; $content .= "\ ("._BREG.")
"; } $content .= ""; echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo (""); echo ("
NICKNAME "); echo ("PASSWORD "); echo (""); echo ("$slogan
"); echo ("Search "); echo ("in $topics_list"); echo (""); echo ("
"); echo ("
"); echo (""); echo (""); echo ("
"); ?> ------------------------------------------------------------------------------------- ________________________________________________ Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag From brian at preston-campbell.com Fri Apr 11 21:27:51 2003 From: brian at preston-campbell.com (Brian) Date: Fri, 11 Apr 2003 21:27:51 -0400 Subject: [nycphp-talk] Re: Search Engine In-Reply-To: <200304111930.h3BJSMJx004065@parsec.nyphp.org> References: <200304111930.h3BJSMJx004065@parsec.nyphp.org> Message-ID: <200304112127.51453.brian@preston-campbell.com> Have a nice time! I get to delete all of these d at mn messages... On Friday 11 April 2003 03:28 pm, matt at reconstrukt.com wrote: > Hello, > I'll be on vacation from April 12th to the 20th, returning to the > office on Moday, April 21st. > > This email confirms I've received your message - I'll be sure to > get back to you when I return. > > Thanks - > > Matt > > *************************** > 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 > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From brian at preston-campbell.com Fri Apr 11 21:29:07 2003 From: brian at preston-campbell.com (Brian) Date: Fri, 11 Apr 2003 21:29:07 -0400 Subject: [nycphp-talk] no more E mail In-Reply-To: <200304112358.h3BNvn0V019323@parsec.nyphp.org> References: <200304112358.h3BNvn0V019323@parsec.nyphp.org> Message-ID: <200304112129.07840.brian@preston-campbell.com> OK. On Friday 11 April 2003 07:57 pm, Gutsguth at aol.com wrote: > I have received 67 E mail messages from your org. in one day. > Please do not send any more to me.. > gutsguth at aol.com > > > > --- Unsubscribe at http://nyphp.org/list/ --- From chris at psydeshow.org Sat Apr 12 01:53:16 2003 From: chris at psydeshow.org (Chris Snyder) Date: Sat, 12 Apr 2003 01:53:16 -0400 Subject: [nycphp-talk] removing and copying files with wildcards on free bsd In-Reply-To: <200304120446.h3C4ji0b026430@parsec.nyphp.org> References: <200304120446.h3C4ji0b026430@parsec.nyphp.org> Message-ID: <3E97A9CC.50802@psydeshow.org> Peter Lehrer wrote: >Is there a way in free bsd to rename or copy a whole group of files using >wildcards. For instance, i've been trying > >mv *.htm *.php > >or > >mv sld???.htm sld???.php > Maybe a Unix guru will correct me, in which case I shall be happy to learn, but I don't think there are any standard commands that do this. There are, however, a number of shell scripts out there that do. mvgp/cpgp: http://freshmeat.net/projects/mvgpcpgp/ ren: http://freshmeat.net/projects/ren/ >but have been unable to do it in free bsd. I know it works in dos. > > Yeah, that's frustrating. I feel the same way every time I try to pipe commands together in DOS. :-) chris. -- do you have a photoblog yet? http://fotola.com (help beta-test!) From jackson at identitymap.com Sat Apr 12 10:19:54 2003 From: jackson at identitymap.com (Jackson Maio) Date: Sat, 12 Apr 2003 10:19:54 -0400 Subject: [nycphp-talk] PHPCon Exhibitors In-Reply-To: <200304111344.h3BDhbGt065956@parsec.nyphp.org> Message-ID: I can help whole day Friday 25th. Jackson on 4/11/03 9:43 AM, Hans Zaunere at hans at nyphp.org wrote: > > Good morning, > > New York PHP is in need of one or two more exhibitors for PHPCon 2003. The > badge would give you access to both Opening and Closing keynote addresses, > all evening sessions (after 6 pm on Thursday), and all social events. > > The needed times are: > > Set Up and Clean Up: > Display space set up: Wednesday, April 23, 2003 - 2 pm to 6 pm > Display space clean up: Friday, April 25, 2003 - 5 pm to 8 pm > > Exhibit hours: > Thursday, April 24, 2003 - 9 am to 6 pm > Friday, April 25, 2003 - 9 am to 5 pm > > Evening Sessions: > Thursday, April 24, 2003 - 6 pm to 9 pm > > > We currently have spotty coverage, so someone who could dedicate at least one > or two full days would be great. > > Thank you, > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From pl at eskimo.com Sun Apr 13 16:09:37 2003 From: pl at eskimo.com (Peter Lehrer) Date: Sun, 13 Apr 2003 16:09:37 -0400 Subject: [nycphp-talk] PHPCon Exhibitors References: <200304111343.h3BDhbFJ065956@parsec.nyphp.org> Message-ID: <002d01c301f8$a3bb8ac0$892c0242@default> I can help for set up on Wed, April 23 and can help man both all day thursday. --Peter Lehrer ----- Original Message ----- From: "Hans Zaunere" To: "NYPHP Talk" Sent: Friday, April 11, 2003 9:43 AM Subject: [nycphp-talk] PHPCon Exhibitors > > Good morning, > > New York PHP is in need of one or two more exhibitors for PHPCon 2003. The > badge would give you access to both Opening and Closing keynote addresses, > all evening sessions (after 6 pm on Thursday), and all social events. > > The needed times are: > > Set Up and Clean Up: > Display space set up: Wednesday, April 23, 2003 - 2 pm to 6 pm > Display space clean up: Friday, April 25, 2003 - 5 pm to 8 pm > > Exhibit hours: > Thursday, April 24, 2003 - 9 am to 6 pm > Friday, April 25, 2003 - 9 am to 5 pm > > Evening Sessions: > Thursday, April 24, 2003 - 6 pm to 9 pm > > > We currently have spotty coverage, so someone who could dedicate at least one > or two full days would be great. > > Thank you, > > > ===== > Hans Zaunere > President, New York PHP > http://nyphp.org > hans at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From gw.nyphp at gwprogramming.com Mon Apr 14 00:22:27 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Mon, 14 Apr 2003 00:22:27 -0400 (EDT) Subject: [nycphp-talk] RTML -- yahoo store tools Message-ID: <200304140422.h3E4MSae006499@gw00.com> LY et. al., I have had to work with RTML for Yahoo! store, since our company's business practically runs on Yahoo! stores (for better or for worse). I have written a bunch of PHP/cURL tools for replicating a Yahoo! store in a local MySQL database, which allows for much quicker and easier editing, as well as the ability to do a lot of global changes which would be next-to- impossible with the Y! store editors. (For example, on Friday we had to replace all of our chocolate accessories with fudge, since fudge doesn't melt in shipping during warmer months. We did this in about two minutes with a few MySQL queries, and then uploaded this data back to Yahoo! in a background process. The same process with just the Yahoo! editor would have taken several labor-intensive hours and would have been error-prone.) There is one *book* on RTML which I'm trying to get back from a former employee who "borrowed" it. It is rumored to be better than any of those unofficial and incomplete online documentations. Hopefully I'll see it in the next few days, so I could give you a better comment then. Our only other documentation was a photocopied Word (or PDF?) document which I could find out more on tomorrow as well if you want. It at least got me "up the ramp" with RTML, but then it left me there with nowhere else to go except trial, error, and a whole bunch of unanswered questions. (RTML is, oddly enough, *not* supported by Yahoo!) There is apparently no editor for RTML other than the annoying click-based HTML online editor. Each element and argument must be assembled separately, and you cannot copy, import, or export templates into, out of, or between Yahoo! storefronts. There is one company, however, which I found easily from Google, which sells a Windows-based RTML Template Editor, which allows you to do these things, in a somewhat less cumbersome manner. However, its interface with Yahoo! is the same as the human's; i.e. apparently the software must click through all of those annoying element edits... so uploading templates is not exactly an "atomic operation." Also, I believe their software is charged by the number of templates you want to ever upload... i.e. you have to keep "refilling" this software! Feel free to email me for more info on any of these sub-topics, or to chat about any other RTML stuff. I would be interested in hearing your experiences with Y! stores. Although all of the tools I've built for Yahoo! store *are* in PHP, (un?)-fortunately, RTML and other non-PHP-related Yahoo! topics are probably outside the interests of this group.... Best, George. George Webb gw.nyphp at gwprogramming.com (802) 985-1384 From bruce at mtiglobal.com Sun Apr 13 10:34:51 2003 From: bruce at mtiglobal.com (bruce at mtiglobal.com) Date: Sun, 13 Apr 2003 22:34:51 +0800 (CST) Subject: [nycphp-talk] Re: Search Engine In-Reply-To: <200304112225.h3BMOCx1017397@parsec.nyphp.org> References: <200304112225.h3BMOCx1017397@parsec.nyphp.org> Message-ID: <7304.65.112.109.66.1050244491.squirrel@postman.mtiglobal.com> How will the user be searching for the CD and what is the layout of the static pages? Do you ask the user to enter the genre (rock, jazz, rap, etc.), band name, or album name? Is the layout by genre, band name, album name, or other? For an on-search site, you really need some type of database unless you only have a few pages such that for example you have a page for rock CD's another one for jazz CD's etc., and the user is confined to this type of search. If you have a non-restricted search with 300 pages and the user can put in genre, band name, album name, all or some, etc., then you would really need to have a database where you could query by the various fields and spit out the links to the query results. Hope this helps. - Bruce > Thanks to all for the suggestions. > > Patrick Fee, > What is this Verity Search you speak of? > > The client has a CD catalog. The client will soon have over 300 CDs for > sale, and would like customers to be able to search the site to find > this catalog information. > The business doesn't not have a lot of money (even $200 is a stretch > right now), so I need something low-cost. I'm helping this client as a > personal favor, so I'm using what PHP knowledge I've acquired to help > strengthen my understanding. > > Thanks, > Stephen > > > Fee, Patrick J wrote: > >>First, there is a free option (depending on the number of total pages) >> that I've used before. That would be Atomz.com's "Atomz Search" >>(http://www.atomz.com/search/. >> >>I've utilized their services before for small to medium sites. You set >> up the search pages with your CSS and/or background, tell the spider at >> Atomz what to catalog at your site, how often to do it, and then let it >> work auto-majicly. There is an Atomz ad when your results come up... >> but it's a great solution if you don't have a lot of time or $$ and a >> smaller site. >> >>Second, you might look into a Verity Search solution using PHP. Verity >> uses a series of flat files for it's "collection", so mySql would not >> be necessary. >>(I could give you more info on that if you'd like). >> >>Third, Check out the resources available on SearchEngineWatch.com: >> http://www.searchenginewatch.com/resources/article.php/2156591 >> >>This is a great resources for what you are trying to do.... >> >> >>Hope that helps, >> >> >>Patrick J. Fee >>Web & Database Group Manager >>BAE SYSTEMS >>600 Maryland Ave. SW Suite 600 >>Washington D.C. 20024 >>Patrick.Fee at BAESYSTEMS.com >>Tel: (202) 548-3759 >>Fax: (202) 608-5970 >> >> >> >>-----Original Message----- >>From: Stephen Tang [mailto:webapprentice at onemain.com] >>Sent: Friday, April 11, 2003 2:55 PM >>To: NYPHP Talk >>Subject: [nycphp-talk] Re: Search Engine >> >> >>Hi, >>Speaking of the search techniques, I have a small client with a static >> shop-like website who wants search abilities for a CD catalog. There >> is no database available, but PHP is operational. >> >>Is there any PHP library or tool that would allow me to search the site >> without a database? Some leads would be appreciated. >> >>Thanks, >>Stephen >> >>-------Original Message------- >>From: Chris Shiflett >>Sent: 04/11/03 02:31 PM >>To: NYPHP Talk >>Subject: Re: [nycphp-talk] Advanced Search Techniques >> >> >> >>>--- Mark Armendariz wrote: >>>They want to eventually have something they called "fingerprint" >>> searching. The term alone meant nothing to me (beyond the obvious - >>> which google agreed with). >>> >>>Basically it has something to do with using synonyms and misspellings >>> and all types of other fun algorithms to find what a user is looking >>> for. Does anyone hear have any experience with such things, or maybe >>> know where to look? >>> >>> >> >>I'm not sure about synonyms, but support for misspelled words can >> typically be >>achieved with the Levenshtein algorithm, and PHP supports that: >> >>>href="http://www.php.net/manual/en/function.levenshtein.php">http://www.php. >> net/manual/en/function.levenshtein.php >> >>Hope that helps. >> >>Chris >> >> >>--- Unsubscribe at >href="http://nyphp.org/list/">http://nyphp.org/list/ --- >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From bruce at mtiglobal.com Sun Apr 13 10:37:00 2003 From: bruce at mtiglobal.com (bruce at mtiglobal.com) Date: Sun, 13 Apr 2003 22:37:00 +0800 (CST) Subject: [nycphp-talk] Re: Search Engine - reply #2 In-Reply-To: <200304112225.h3BMOCx1017397@parsec.nyphp.org> References: <200304112225.h3BMOCx1017397@parsec.nyphp.org> Message-ID: <9365.65.112.109.66.1050244620.squirrel@postman.mtiglobal.com> this is a continuation of my previous reply that is implicit in what I wrote but I want to make it more clear. Although your focus is on the actual search mechanishm, you also need to look at the user interface design. This will impact on what needs to be done on the back end to deliver the desired results. This will be important to you given the limited budget/resources your friends have. - Bruce From webapprentice at onemain.com Mon Apr 14 07:42:52 2003 From: webapprentice at onemain.com (Stephen Tang) Date: Mon, 14 Apr 2003 07:42:52 -0400 (GMT) Subject: [nycphp-talk] Re: Search Engine - reply #2 Message-ID: <4516860.1050331309232.JavaMail.nobody@dewey.psp.pas.earthlink.net> Hi Bruce, Thanks for your input. I agree with you on a need for a database-backed search engine hosted on at my client's site with searchable fields the way you describe. But, between the infancy of the business (i.e. low funds) and my lack of technical know-how at the moment (i.e. learning as I go), such an implementation would appear too costly at the moment. I think a general site search is fine. On the suggestion of Chris and Patrick here on the list, I followed a link to Search Watch and Google. It looks like my client is ok with Google's free SiteSearch. My client just wants a basic way of search the domain. I'll have to manage expectations if my client wants more. :) Thanks for your input. --Stephen -------Original Message------- From: bruce at mtiglobal.com Sent: 04/14/03 10:25 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Re: Search Engine - reply #2 > > this is a continuation of my previous reply that is implicit in what I wrote but I want to make it more clear. Although your focus is on the actual search mechanishm, you also need to look at the user interface design. This will impact on what needs to be done on the back end to deliver the desired results. This will be important to you given the limited budget/resources your friends have. - Bruce --- Unsubscribe at http://nyphp.org/list/ --- > From jsiegel1 at optonline.net Mon Apr 14 16:18:22 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Mon, 14 Apr 2003 16:18:22 -0400 Subject: A Thank You To All!! Message-ID: <4fb96650174d.50174d4fb966@optonline.net> Just wanted to say "THANK YOU" for all the suggestions that were provided when I asked about the best way to deal with 2.5 million rows of data. The solution I decided on, and which works quite nicely, was to simply rename (and drop) tables as needed. This allows me to have the latest data and a copy of the previous version of the data. In addition, I can just switch table names if I need to go back. Thanks so much for the GREAT response. Jeff From hans at nyphp.org Mon Apr 14 17:01:50 2003 From: hans at nyphp.org (Hans Zaunere) Date: Mon, 14 Apr 2003 14:01:50 -0700 (PDT) Subject: [nycphp-talk] Adding to PHP API In-Reply-To: <200304111718.h3BHICJ1085822@parsec.nyphp.org> Message-ID: <20030414210150.19547.qmail@web12801.mail.yahoo.com> Hey Jim, --- Jim Musil wrote: > > What's involved with writing some of my functions in C and plugging them > into the PHP API? Well obviously this is writing extensions (PECL) and you can generally get a good start with phpinstallpath/bin/phpize and: http://us2.php.net/manual/en/zend.php http://us2.php.net/manual/en/streams.php > Once they are plugged-in do I have to recompile PHP? Negative. You generally compile them as shared objects, then can dl() them. > Do I have to restart Apache every time I make a change? Negative (AFAIK). > What kind of speed bonus can I expect? Depending on tasks, considerable. For instance, heavy text parsing or manipulation can probably get you big boosts. > Links? Stories? Wisdom? Ahh, the hardest part. Finding a nice HOWTO on the subject is impossible AFAIK (if you find anything, please post it) and I've had the best luck with the links above, some articles strewn around the net, and probably the best is looking at other modules (dbg is nice). Of course, some on this list write extensions day in and day out (look at the ADT extension). ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From shiflett at php.net Mon Apr 14 17:22:38 2003 From: shiflett at php.net (Chris Shiflett) Date: Mon, 14 Apr 2003 14:22:38 -0700 (PDT) Subject: [nycphp-talk] Adding to PHP API In-Reply-To: <200304142102.h3EL1u15094855@parsec.nyphp.org> Message-ID: <20030414212238.81342.qmail@web14303.mail.yahoo.com> --- Hans Zaunere wrote: > Ahh, the hardest part. Finding a nice HOWTO on the subject is impossible > AFAIK (if you find anything, please post it) and I've had the best luck with > the links above, some articles strewn around the net, and probably the best > is looking at other modules (dbg is nice). I'm not sure of a good HOWTO on the Web either, but I know Rasmus's book (Programming PHP) has a pretty straightforward explanation (it implements rot13, so the extension logic itself is as simple as possible). I also seem to recall Sterling's book, PHP Developer's Cookbook, having a nice explanation as well. Maybe he can confirm/deny that. :-) Chris From mz34 at nyu.edu Mon Apr 14 18:03:32 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Mon, 14 Apr 2003 18:03:32 -0400 Subject: Installing MySQL 4.0 on Mac OS X In-Reply-To: <200205221916.g4MJG0p33508@slipdisc.virul.net> Message-ID: Hi, I am installing MySQL 4.0 on a Mac OSX 10.2.5 server and was having some trouble. Wondering if anyone else on here had any luck. I follow the instructions to installing using the Mac OSX package and when I issue the command ./bin/mysqld_safe & the daemon starts and then stops. When I check the hostname.err log these errors are listed InnoDB: Operating System error number 13 in a file operation. InnoDB: The error means mysqld does not have the access rights to the directory. InnoDB: File named ./ibdata1 InnoDB: Cannot continue operation. I tried to find the file ./ibdata1 but didn't have any luck. I was going to try to change the permissions on it. I was hoping someone on here had the same problem and new how to fix it. Matt From shiflett at php.net Mon Apr 14 18:30:48 2003 From: shiflett at php.net (Chris Shiflett) Date: Mon, 14 Apr 2003 15:30:48 -0700 (PDT) Subject: [nycphp-talk] Installing MySQL 4.0 on Mac OS X In-Reply-To: <200304142204.h3EM3b15097758@parsec.nyphp.org> Message-ID: <20030414223048.27909.qmail@web14307.mail.yahoo.com> --- Matthew Zimmerman wrote: > I am installing MySQL 4.0 on a Mac OSX 10.2.5 server and was having > some trouble. Wondering if anyone else on here had any luck. > > I follow the instructions to installing using the Mac OSX package and > when I issue the command > > /bin/mysqld_safe & > > the daemon starts and then stops. This may be a shot in the dark, but are you executing this as root? If not, that may be why you have the permission problem. If memory serves correctly, enabling root access on OS X is deliberately difficult, so you may just want to use sudo to execute that. Also, thanks for mentioning mysqld_safe. I haven't kept up with MySQL 4, so I didn't realize they switched the name around. :-) Chris From ian at plusfour.org Mon Apr 14 18:45:21 2003 From: ian at plusfour.org (Ian Forsyth) Date: Mon, 14 Apr 2003 15:45:21 -0700 Subject: [nycphp-talk] Installing MySQL 4.0 on Mac OS X In-Reply-To: <200304142231.h3EMUp0X098781@parsec.nyphp.org> Message-ID: On Monday, April 14, 2003, at 03:30 PM, Chris Shiflett wrote: > --- Matthew Zimmerman wrote: >> I am installing MySQL 4.0 on a Mac OSX 10.2.5 server and was having >> some trouble. Wondering if anyone else on here had any luck. >> >> I follow the instructions to installing using the Mac OSX package and >> when I issue the command >> >> /bin/mysqld_safe & >> >> the daemon starts and then stops. >> /bin/mysqld_safe --datadir=$datadir --pid-file=$pid_file & check out 'mysql.server' /usr/local/mysql/support-files/mysql.server make an entry in /etc/hostconfig MYSQLSERVER=-YES- put the following script in /Library/StartupItems/MySQL and name the script MySQL #!/bin/sh ## # Apache HTTP Server ## . /etc/rc.common StartService () { if [ "${MYSQLSERVER:=-NO-}" = "-YES-" ]; then ConsoleMessage "Starting MySQL Database server" mysql.server start fi } StopService () { ConsoleMessage "Stopping MySQL Database server" mysql.server stop } RestartService () { if [ "${MYSQLSERVER:=-NO-}" = "-YES-" ]; then ConsoleMessage "Restarting MySQL Database server" mysql.server restart else StopService fi } RunService "$1" From adam at trachtenberg.com Mon Apr 14 19:13:27 2003 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 14 Apr 2003 19:13:27 -0400 (EDT) Subject: [nycphp-talk] Adding to PHP API In-Reply-To: <200304142102.h3EL1u27094855@parsec.nyphp.org> Message-ID: On Mon, 14 Apr 2003, Hans Zaunere wrote: > --- Jim Musil wrote: > > > Once they are plugged-in do I have to recompile PHP? > > Negative. You generally compile them as shared objects, then can dl() them. You are better off not using dl() if possible. It's slower than using an .ini entry. http://aspn.activestate.com/ASPN/Mail/Message/php-Dev/715567 -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From sterling at bumblebury.com Mon Apr 14 18:04:31 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 14 Apr 2003 18:04:31 -0400 Subject: [nycphp-talk] Adding to PHP API In-Reply-To: <200304142314.h3ENDT0R000936@parsec.nyphp.org> References: <200304142314.h3ENDT0R000936@parsec.nyphp.org> Message-ID: <1050357871.2340.127.camel@hasele> On Mon, 2003-04-14 at 19:13, Adam Maccabee Trachtenberg wrote: > On Mon, 14 Apr 2003, Hans Zaunere wrote: > > > --- Jim Musil wrote: > > > > > Once they are plugged-in do I have to recompile PHP? > > > > Negative. You generally compile them as shared objects, then can dl() them. > > You are better off not using dl() if possible. It's slower than using > an .ini entry. > > http://aspn.activestate.com/ASPN/Mail/Message/php-Dev/715567 > Yeah - but dl is useful for development. To be honest (I and most core devs I know), just recompile php as a cli when debugging. Using dl() is an afterthought, since you rarely have to do a make clean anyway, it takes just as much time, and usually requires less futzing (all your object files are assured to reference the same symbols.) -Sterling > -adam -- "A business that makes nothing but money is a poor kind of business." - Henry Ford From jsiegel1 at optonline.net Mon Apr 14 19:31:17 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Mon, 14 Apr 2003 19:31:17 -0400 Subject: Zend studio users? Message-ID: <4d6a5b4d8666.4d86664d6a5b@optonline.net> Um...er...are there some Zend studio users out there? I've starting using it and have a few questions I'd like to post. Jeff From webpage at ureach.com Mon Apr 14 19:54:13 2003 From: webpage at ureach.com (Web Page) Date: Mon, 14 Apr 2003 19:54:13 -0400 Subject: Can anyone help me with this?? Message-ID: <200304142354.TAA07391@www23.ureach.com> Hello! I know most of you are way past me on PHP coding and that most of you are very busy. Please, if someone could be kind enough to help me with my problem at the following link, it would be greatly appreciated. http://newyorkphp.org/content/mailinglist/marchive.php?mesg=YToxOntpOjA7czo0OiI0NDAzIjt9 WP Webbing Along ;):) ________________________________________________ Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag From southwell at dneba.com Mon Apr 14 19:51:16 2003 From: southwell at dneba.com (Michael Southwell) Date: Mon, 14 Apr 2003 19:51:16 -0400 Subject: [nycphp-talk] PHPCon Exhibitors In-Reply-To: <200304111343.h3BDhbET065956@parsec.nyphp.org> Message-ID: <5.1.0.14.2.20030414195047.00b30cf0@mail.optonline.net> I would be able to work on Thursday if you still need more people. At 09:43 AM 4/11/2003, you wrote: >Good morning, > >New York PHP is in need of one or two more exhibitors for PHPCon 2003. The >badge would give you access to both Opening and Closing keynote addresses, >all evening sessions (after 6 pm on Thursday), and all social events. > >The needed times are: > >Set Up and Clean Up: >Display space set up: Wednesday, April 23, 2003 - 2 pm to 6 pm >Display space clean up: Friday, April 25, 2003 - 5 pm to 8 pm > >Exhibit hours: >Thursday, April 24, 2003 - 9 am to 6 pm >Friday, April 25, 2003 - 9 am to 5 pm > >Evening Sessions: >Thursday, April 24, 2003 - 6 pm to 9 pm > > >We currently have spotty coverage, so someone who could dedicate at least one >or two full days would be great. > >Thank you, > > >===== >Hans Zaunere >President, New York PHP >http://nyphp.org >hans at nyphp.org > > >--- 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 zaunere at yahoo.com Tue Apr 15 12:19:37 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 15 Apr 2003 09:19:37 -0700 (PDT) Subject: [nycphp-talk] Zend studio users? In-Reply-To: <200304142331.h3ENVAxd002511@parsec.nyphp.org> Message-ID: <20030415161937.61281.qmail@web12804.mail.yahoo.com> --- jsiegel1 at optonline.net wrote: > Um...er...are there some Zend studio users out there? I've starting using > it and have a few questions I'd like to post. I've used it a bit, and know quite a few others that are on the list that do. I don't see any problem with posting some questions about it. H From pinyo at nyc.rr.com Tue Apr 15 19:45:41 2003 From: pinyo at nyc.rr.com (Pinyo Bhulipongsanon) Date: Tue, 15 Apr 2003 19:45:41 -0400 Subject: Hello, intro Message-ID: <000c01c303a9$203cd5c0$10c8a8c0@hewlettlydtpep> Hi, I am a friend of Peter Saw. Just signed up for the list and wanted to introduce myself. Hopefully, I can attend one of your meeting soon. Well, at least as soon as I am done with my degree in May. Pinyo -------------- next part -------------- An HTML attachment was scrubbed... URL: From zaunere at yahoo.com Tue Apr 15 19:50:01 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 15 Apr 2003 16:50:01 -0700 (PDT) Subject: [nycphp-talk] Hello, intro In-Reply-To: <200304152346.h3FNjjxb043925@parsec.nyphp.org> Message-ID: <20030415235001.99656.qmail@web12803.mail.yahoo.com> Hi Pinyo, Pleasure meeting you on the list, and I look forward to meeting you in person sometime soon. Best, H --- Pinyo Bhulipongsanon wrote: > Hi, > > I am a friend of Peter Saw. Just signed up for the list and wanted to > introduce myself. Hopefully, I can attend one of your meeting soon. Well, > at least as soon as I am done with my degree in May. > > Pinyo > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From jsiegel1 at optonline.net Tue Apr 15 19:53:16 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Tue, 15 Apr 2003 19:53:16 -0400 Subject: Survey questions in new website Message-ID: <4f18f34efe59.4efe594f18f3@optonline.net> Some of these items may have already been addressed but...so ignore items that may have already been addressed. Jeff ================================== Survey page 1 1. "How did you first heard about PHP" Should be, "How did you first hear..... 2. "Which platform have you seen used most for PHP development" "Which platform have you seen PHP deployed to most for mission-critical applications deployment" The phrasing is a bit awkward and the "intent" of the question may not be obvious to someone completing the survey. It's not obvious why you have the phrase "have you seen" as opposed to just saying "Which platform have you used most for PHP development." 3. You may want to unpack this question a bit: "Based on your experience, has flexibility and rapid development been leveragable from PHP." I feel that "leveragable" needs further explanation or just rewording (perhaps a phrase describing "leveragable."). 4. Type: "For PHP questions/problems/support, rantk the order of where you go for help " "rank" is mispelled. Survey Page 2 1. "When working with clients, how is PHP most often brought onboard" and "When working with clients, what is the existing status of PHP in the majority of cases" could probably be combined into one question since the first question implies the "existing status" which is asked about again in the second question. 2. "Please estimate your non-HTML related PHP code base (Object Oriented % vs Prcedure %)" Just a typo...should say "Procedural." From jsiegel1 at optonline.net Tue Apr 15 19:54:42 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Tue, 15 Apr 2003 19:54:42 -0400 Subject: [nycphp-talk] Survey questions in new website Message-ID: <4f4a884efdde.4efdde4f4a88@optonline.net> Of course, I misspelled "mispelled." Jeff ----- Original Message ----- From: jsiegel1 at optonline.net Date: Tuesday, April 15, 2003 7:53 pm Subject: [nycphp-talk] Survey questions in new website > Some of these items may have already been addressed but...so > ignore items that may have already been addressed. > > Jeff > ================================== > > Survey page 1 > > 1. "How did you first heard about PHP" > > Should be, "How did you first hear..... > > 2. "Which platform have you seen used most for PHP development" > > "Which platform have you seen PHP deployed to most for mission- > critical applications deployment" > > The phrasing is a bit awkward and the "intent" of the question may > not be obvious to someone completing the survey. It's not obvious > why you have the phrase "have you seen" as opposed to just saying > "Which platform have you used most for PHP development." > > 3. You may want to unpack this question a bit: "Based on your > experience, has flexibility and rapid development been leveragable > from PHP." I feel that "leveragable" needs further explanation or > just rewording (perhaps a phrase describing "leveragable."). > > 4. Type: "For PHP questions/problems/support, rantk the order of > where you go for help " > > "rank" is mispelled. > > Survey Page 2 > > 1. "When working with clients, how is PHP most often brought > onboard" and "When working with clients, what is the existing > status of PHP in the majority of cases" could probably be combined > into one question since the first question implies the "existing > status" which is asked about again in the second question. > > 2. "Please estimate your non-HTML related PHP code base (Object > Oriented % vs Prcedure %)" > Just a typo...should say "Procedural." > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From georgenatalino at yahoo.com Wed Apr 16 09:22:10 2003 From: georgenatalino at yahoo.com (George Natalino) Date: Wed, 16 Apr 2003 09:22:10 -0400 Subject: Sun Microsystems: Free Web Services Seminar Message-ID: <3E9D5902.7060609@yahoo.com> Requires registration. ================ YOU ARE INVITED TO A SPECIAL WEB SERVICES PRESENTATION!!! "Beyond the Web Services Buzz: Service-Oriented Technology in the Real World!" Presented by Sun Microsystems and Forrester Research ************************************************************************** WHO SHOULD ATTEND: Members of IT Management, Software Development, and any other technical personnel evaluating and/or responsible for introducing Web Services technologies into a company's infrastructure. This event will help de-mystify the Web Services market, focusing on what you can do today with Web Services technologies and the benefits you can start reaping now from Web Services implementations. ************************************************************************** DATES/LOCATIONS: May 6 New York City, NY May 7 Sommerset, NJ May 8 Washington D.C. May 13 Denver, CO May 14 Detroit, MI May 15 Chicago, IL June 3 Menlo Park, CA June 5 Bellevue, WA ************************************************************************** AGENDA: 8:30 - 9:00am Registration 9:00am - 10:00am "Road to a Service-Based Architecture" Ted Schadler - Principal Analyst, Forrester Research Web services standards are lowering the barriers to business and application integration. But companies need more than just SOAP and WSDL...they must implement a service-oriented architecture to transform a simple Web service into a system for establishing and managing connections to customers, partners, and suppliers. This first presentation will introduce a roadmap for building a service-oriented architecture including best practices and technologies. 10:00 - 10:10 Break 10:10 - 10:55am "The Network is the Application - Exploiting the Service-Based Architecture" Drew Engstrom, SR. Market Strategist - Web Services, Sun Microsystems Revolutionary or evolutionary? Continuous or discontinuous? Still trying to get beyond the Web Services hype and find out what these new technologies can offer your company? This presentation will examine the impacts of a service-based architecture on network systems, software development and business strategy. In this presentation, you will learn both Sun Microsystems' vision of where current IT trends are taking the market and Sun Microsystems' roadmap for navigating the way. Critical points will be supported with customer examples and market data. 10:55am - 11:05am Break 11:05am - 11:50am "Web Services Applied - Case Studies" Sun Professional Services Would you like to see working proof of Web Services in action? In this presentation, representatives from Sun Professional Services will discuss real Web Services implementations by top companies around the world. Web Services architecture will be highlighted as well as benefits recognized via these Web Services implementations. ************************************************************************** REGISTRATION: To register for this briefing, go to http://www.sun.com/us-signup/ Event ID: webservices Passcode: sun ************************************************************************** From MAILER-DAEMON at optonline.net Wed Apr 16 09:54:35 2003 From: MAILER-DAEMON at optonline.net (Mail Delivery Subsystem) Date: Wed, 16 Apr 2003 09:54:35 -0400 (EDT) Subject: Returned mail: User unknown Message-ID: <200304161354.h3GDsZmu001534@asv1.srv.hcvlny.cv.net> The original message was received at Wed, 16 Apr 2003 09:44:05 0500 ----- The following addresses had permanent fatal errors ----- ----- Transcript of session follows ----- ... while talking to mail-hub.optonline.net: >>> RCPT To: <<< 550 ... User unknown 550 ... User unknown From jmusil at villagevoice.com Wed Apr 16 17:47:16 2003 From: jmusil at villagevoice.com (Jim Musil) Date: Wed, 16 Apr 2003 17:47:16 -0400 Subject: Utf and latin 1 Message-ID: Hi, I have two different character encodings on my page. Is there anyway to convert utf-8 characters into latin1 characters via php? -- James Musil Senior Developer Village Voice Media 36 Cooper Square New York, NY 10003 (212) 475-3300 ext 14003 JMusil at villagevoice.com From nyphp at NewAgeWeb.com Wed Apr 16 18:42:49 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Wed, 16 Apr 2003 18:42:49 -0400 Subject: vs.
request Message-ID: <004301c30469$82984400$de01a8c0@duron.lan.newageweb.com> I'm trying to figure out how I can restrict people to using an link to send a request to a script. To be more specific I don't want them to send requests by submitting a form. In case they do the script would respond with '401 Unauthorized' header or something to that effect. For a while I thought I had a solution.. by looking for an additional GET var which would reflect the presence of a 'Submit' button, but then I realized that a form may be easily submitted with JavaScript's submit() method == no additional GET vars. I know it may seem like I worry too much, but in this project security is *extremely* important. I hope someone comes up with some clever idea.. my brain needs a reboot to maintenance mode for a few hours.. cheers, Jerry -- 42.7% of all statistics are made up on the spot. -----Original Message----- From: Jim Musil To: NYPHP Talk Date: Wednesday, April 16, 2003 5:48 PM Subject: [nycphp-talk] Utf and latin 1 >Hi, > >I have two different character encodings on my page. Is there anyway to >convert utf-8 characters into latin1 characters via php? > > >-- >James Musil >Senior Developer >Village Voice Media >36 Cooper Square >New York, NY 10003 >(212) 475-3300 ext 14003 >JMusil at villagevoice.com > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > From gw.nyphp at gwprogramming.com Wed Apr 16 18:58:21 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Wed, 16 Apr 2003 18:58:21 -0400 (EDT) Subject: [nycphp-talk] vs. request Message-ID: <200304162258.h3GMwMZs009656@gw00.com> Hi Jerry. The only way I can see how to do this is something like the following PHP code: This will only work if HREFs to your PHP script don't already have query string arguments. I.e., http://yourserver.com/yourscript.php will work, but http://yourserver.com/yourscript.php?foo http://yourserver.com/yourscript.php?arg=test http://yourserver.com/yourscript.php?arg=test&arg2=test2 all will be rejected, so I hope that's okay.... Make sense? Best, George. George Webb gw.nyphp at gwprogramming.com From shiflett at php.net Wed Apr 16 19:07:10 2003 From: shiflett at php.net (Chris Shiflett) Date: Wed, 16 Apr 2003 16:07:10 -0700 (PDT) Subject: [nycphp-talk] vs. request In-Reply-To: <200304162242.h3GMg415084664@parsec.nyphp.org> Message-ID: <20030416230710.80881.qmail@web14303.mail.yahoo.com> --- Jerry Kapron wrote: > I'm trying to figure out how I can restrict people to using an link > to send a request to a script. You can't really do that. When someone clicks a link, their browser sends an HTTP GET request. If someone wanted to write their own form that used a method of "get" and submitted to the same URL, they could reproduce this exact same request. Of course, they could also just manually send their own GET request, though that is less convenient. I'm not sure what sort of security you think is lessened by this fact. If you are wanting to make sure people can only access a particular page, it is best to use sessions or something and just make sure that person has access. If you are particularly concerned that the user clicked your specific link, you can use something like a shared secret. For example, when you generate the link, attach a URL variable to it that you also keep on the server (in the session or something). You can then check to ensure that this URL variable is correct when determining whether the user can access the page. Maybe that gives you some ideas. I recommend, however, that you don't concern yourself with what happens on the client. This can lead to a false sense of security. It is best to consider each HTTP request as a request that can truly be anything. Use your own programming logic to determine the rest. Hope that helps. Chris From shiflett at php.net Wed Apr 16 19:09:35 2003 From: shiflett at php.net (Chris Shiflett) Date: Wed, 16 Apr 2003 16:09:35 -0700 (PDT) Subject: [nycphp-talk] vs. request In-Reply-To: <200304162259.h3GMwQ15085568@parsec.nyphp.org> Message-ID: <20030416230935.64962.qmail@web14306.mail.yahoo.com> --- George Webb wrote: > http://yourserver.com/yourscript.php > > will work, but > > http://yourserver.com/yourscript.php?foo > http://yourserver.com/yourscript.php?arg=test > http://yourserver.com/yourscript.php?arg=test&arg2=test2 From nyphp at NewAgeWeb.com Wed Apr 16 19:27:39 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Wed, 16 Apr 2003 19:27:39 -0400 Subject: [nycphp-talk]
vs.
request Message-ID: <004401c3046f$c57d25a0$de01a8c0@duron.lan.newageweb.com> Gorge, > The only way I can see how to do this is something >like the following PHP code: > >if ( $_SERVER['QUERY_STRING'] == '' ) > my_fail_handler(); >elseif ( $_SERVER['REQUEST_METHOD'] == 'POST ) > my_fail_handler(); > >/* Else, continue normally... */ >?> This wouldn't really help. The url will have a query string as is. When I mentioned detecting a GET var reflecting the presence of the 'Submit' button, it would be an additional GET var to the ones generated by the query string. Thanks for your help, Jerry From gw.nyphp at gwprogramming.com Wed Apr 16 19:32:48 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Wed, 16 Apr 2003 19:32:48 -0400 (EDT) Subject: [nycphp-talk] vs. request Message-ID: <200304162332.h3GNWmJG009714@gw00.com> Yeah, Chris is right. A form with no form elements would not get caught. What kind of weird situations are you trying to protect against, anyway, Jerry? I'm not sure if this would help, but if you want to kill all the incoming user params, I think you could un-set $_REQUEST, $_GET, $_POST, and all those to NULL. Of course, if you have register_globals ON, you'd have to unset all your globals individualy. We could probably suggest better ideas if you would explain what your security issues are. Best, George. George Webb gw.nyphp at gwprogramming.com From pinyo at nyc.rr.com Wed Apr 16 19:51:23 2003 From: pinyo at nyc.rr.com (Pinyo Bhulipongsanon) Date: Wed, 16 Apr 2003 19:51:23 -0400 Subject: [nycphp-talk] vs. request References: <200304162242.h3GMg4xV084664@parsec.nyphp.org> Message-ID: <005201c30474$5d388b10$10c8a8c0@hewlettlydtpep> Hi, New guy here. This may help. I use this too, so if you can point out any weaknesses, please let me know. You may have to use the long-hand variable call. Anyway, it basically say that to load this page the request must come from another page on the same host. This way people cannot create form on their site and link to your pages, nor can they type in the address directly. Any comment is appreciated. Thanks, Pinyo ----- Original Message ----- From: "Jerry Kapron" To: "NYPHP Talk" Sent: Wednesday, April 16, 2003 6:42 PM Subject: [nycphp-talk] vs. request > I'm trying to figure out how I can restrict people to using an link > to send a request to a script. > To be more specific I don't want them to send requests by submitting a form. > In case they do the script would respond with '401 Unauthorized' header or > something to that effect. For a while I thought I had a solution.. by > looking for an additional GET var which would reflect the presence of a > 'Submit' button, but then I realized that a form may be easily submitted > with JavaScript's submit() method == no additional GET vars. > I know it may seem like I worry too much, but in this project security is > *extremely* important. > I hope someone comes up with some clever idea.. my brain needs a reboot to > maintenance mode for a few hours.. > > cheers, > Jerry > > -- > 42.7% of all statistics are made up on the spot. > > -----Original Message----- > From: Jim Musil > To: NYPHP Talk > Date: Wednesday, April 16, 2003 5:48 PM > Subject: [nycphp-talk] Utf and latin 1 > > > >Hi, > > > >I have two different character encodings on my page. Is there anyway to > >convert utf-8 characters into latin1 characters via php? > > > > > >-- > >James Musil > >Senior Developer > >Village Voice Media > >36 Cooper Square > >New York, NY 10003 > >(212) 475-3300 ext 14003 > >JMusil at villagevoice.com > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From nyphp at NewAgeWeb.com Wed Apr 16 20:12:32 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Wed, 16 Apr 2003 20:12:32 -0400 Subject: [nycphp-talk] vs. request Message-ID: <004901c30476$0b6498e0$de01a8c0@duron.lan.newageweb.com> Chris, >You can't really do that. When someone clicks a link, their browser sends an >HTTP GET request. If someone wanted to write their own form that used a method >of "get" and submitted to the same URL, they could reproduce this exact same >request. Of course, they could also just manually send their own GET request, >though that is less convenient. I'm aware of all this. >I'm not sure what sort of security you think is lessened by this fact. I know this does not make much sense when you don't know what the project is. Unfortunately I can not reveal any details at this point. This is a client's project. The significant fact is that for a specific reason the users will want to link to the some scripts by submitting a form instead of clicking on an link. I know there is no difference on the back end whether the request came from a form or a link, but it's not really about the back end. The request needs to come from an link, period. I know it sounds weird but trust me there is a very good reason for that. >If you are wanting to make sure people can only access a particular page, it is best >to use sessions or something and just make sure that person has access. > >If you are particularly concerned that the user clicked your specific link, you >can use something like a shared secret. For example, when you generate the >link, attach a URL variable to it that you also keep on the server (in the >session or something). You can then check to ensure that this URL variable is >correct when determining whether the user can access the page. None of these would apply. I forgot to mention that the links will be placed on third party sites (or rather extranet sites) by other webmasters. In addition to checking the referer header against a database containing qualified referer URL's, I also need to make sure that they are not linking from a form. Again, sounds weird but you need to trust me. >Maybe that gives you some ideas. I recommend, however, that you don't concern >yourself with what happens on the client. This can lead to a false sense of >security. It is best to consider each HTTP request as a request that can truly >be anything. Use your own programming logic to determine the rest. This usually applies to all my other projects but this one is really different. Thank you much for your help .. cheers! Jerry From nyphp at NewAgeWeb.com Wed Apr 16 20:24:22 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Wed, 16 Apr 2003 20:24:22 -0400 Subject: [nycphp-talk] vs. request Message-ID: <005201c30477$b20b2500$de01a8c0@duron.lan.newageweb.com> > I'm not sure if this would help, but if you want >to kill all the incoming user params, I think you could >un-set $_REQUEST, $_GET, $_POST, and all those to NULL. >Of course, if you have register_globals ON, you'd have >to unset all your globals individualy. I can't kill them .. I need them :) > We could probably suggest better ideas if you >would explain what your security issues are. Read my reply to Chris. I explained as much as I could reveal at this time. Thanks again, Jerry From chendry at nyc.rr.com Wed Apr 16 20:39:34 2003 From: chendry at nyc.rr.com (Christopher Hendry) Date: Wed, 16 Apr 2003 20:39:34 -0400 Subject: [nycphp-talk] vs. request In-Reply-To: <200304170012.h3H0BlxP092338@parsec.nyphp.org> Message-ID: ok - dunno what I'm talking about, but could you possible append some sort of hash value to the href - which could only be generated by your script and not any third party? Make the key available only to the valid websites in order for them to generate it - and don't accept anything that does have a submit. -> -----Original Message----- -> From: Jerry Kapron [mailto:nyphp at newageweb.com] -> Sent: Wednesday, April 16, 2003 8:12 PM -> To: NYPHP Talk -> Subject: Re: [nycphp-talk] vs. request -> -> -> Chris, -> -> >You can't really do that. When someone clicks a link, their -> browser sends -> an -> >HTTP GET request. If someone wanted to write their own form that used a -> method -> >of "get" and submitted to the same URL, they could reproduce this exact -> same -> >request. Of course, they could also just manually send their own GET -> request, -> >though that is less convenient. -> -> I'm aware of all this. -> -> >I'm not sure what sort of security you think is lessened by this fact. -> -> I know this does not make much sense when you don't know what the project -> is. Unfortunately I can not reveal any details at this point. This is a -> client's project. The significant fact is that for a specific reason the -> users will want to link to the some scripts by submitting a form -> instead of -> clicking on an link. I know there is no difference on -> the back end -> whether the request came from a form or a link, but -> it's not really -> about the back end. The request needs to come from an -> link, period. -> I know it sounds weird but trust me there is a very good reason for that. -> -> >If you are wanting to make sure people can only access a -> particular page, -> it is best -> >to use sessions or something and just make sure that person has access. -> > -> >If you are particularly concerned that the user clicked your -> specific link, -> you -> >can use something like a shared secret. For example, when you -> generate the -> >link, attach a URL variable to it that you also keep on the -> server (in the -> >session or something). You can then check to ensure that this -> URL variable -> is -> >correct when determining whether the user can access the page. -> -> None of these would apply. I forgot to mention that the links -> will be placed -> on third party sites (or rather extranet sites) by other webmasters. In -> addition to checking the referer header against a database containing -> qualified referer URL's, I also need to make sure that they are -> not linking -> from a form. Again, sounds weird but you need to trust me. -> -> >Maybe that gives you some ideas. I recommend, however, that you don't -> concern -> >yourself with what happens on the client. This can lead to a -> false sense of -> >security. It is best to consider each HTTP request as a request that can -> truly -> >be anything. Use your own programming logic to determine the rest. -> -> This usually applies to all my other projects but this one is really -> different. -> -> -> Thank you much for your help .. cheers! -> -> Jerry -> -> -> -> -> --- Unsubscribe at http://nyphp.org/list/ --- -> -> -> From nasir at nasir.us Wed Apr 16 21:04:27 2003 From: nasir at nasir.us (Nasir Zubair) Date: Wed, 16 Apr 2003 21:04:27 -0400 (Eastern Daylight Time) Subject: ATTN: Hans Message-ID: <3E9DFD9B.000003.03524@nyt-main> Hi, Do you know if O'Reilly's 20% off code is still valid? It was sent out to NYPHP-Announce on February 24th. - Nasir From jkapron at NewAgeWeb.com Wed Apr 16 21:12:15 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Wed, 16 Apr 2003 21:12:15 -0400 Subject: [nycphp-talk] vs. request Message-ID: <005b01c3047e$62e6f740$de01a8c0@duron.lan.newageweb.com> Pinyo, >New guy here. This may help. I use this too, so if you can point out any >weaknesses, please let me know. > >$host = "www.yoururl.com"; >if (!isset($HTTP_REFERRER) || ($HTTP_HOST != $host)) { > # access denied message >} >?> > >You may have to use the long-hand variable call. Anyway, it basically say >that to load this page the request must come from another page on the same >host. This way people cannot create form on their site and link to your >pages, nor can they type in the address directly. The links would be placed on other websites, but only ones who register, so I do check the Referer header against a list of authorized URL's. Even though the Referer can not be trusted (that's the weakness I'd like to point out) I'm using it as one layer of security (in addition to other stuff). However I also need to make sure that the links at those sites are links and not HTML forms sending a GET request to my scripts. I usually would not matter whether it's a link or a form but in this case it does. Thanks for your help, Jerry From shiflett at php.net Wed Apr 16 21:18:43 2003 From: shiflett at php.net (Chris Shiflett) Date: Wed, 16 Apr 2003 18:18:43 -0700 (PDT) Subject: [nycphp-talk] vs. request In-Reply-To: <200304170112.h3H1BV13097783@parsec.nyphp.org> Message-ID: <20030417011843.79899.qmail@web14304.mail.yahoo.com> --- Jerry Kapron wrote: > I also need to make sure that the links at those sites are > links and not HTML forms sending a GET request to my scripts. I > usually would not matter whether it's a link or a form but in this > case it does. Seriously, you're going to need to elaborate here for us to help you. Why would it matter if these other sites have a button instead of a link? Would it also matter to you if they used an image as a link instead of text? I do not understand the security concern you speak of. Chris From zaunere at yahoo.com Wed Apr 16 21:39:24 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 16 Apr 2003 18:39:24 -0700 (PDT) Subject: [nycphp-talk] ATTN: Hans In-Reply-To: <200304170106.h3H15XxZ096985@parsec.nyphp.org> Message-ID: <20030417013924.58185.qmail@web12803.mail.yahoo.com> --- Nasir Zubair wrote: > Hi, > > Do you know if O'Reilly's 20% off code is still valid? It was sent out to > NYPHP-Announce on February 24th. Sorry, I don't know. I didn't notice any expiration date, so give it shot I suppose. H From jkapron at NewAgeWeb.com Wed Apr 16 21:42:12 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Wed, 16 Apr 2003 21:42:12 -0400 Subject: [nycphp-talk] vs. request Message-ID: <006801c30482$9189e9a0$de01a8c0@duron.lan.newageweb.com> Chris, >ok - dunno what I'm talking about, but could you possible append some sort >of hash value to the href - which could only be generated by your script and >not any third party? Make the key available only to the valid websites in >order for them to generate it - and don't accept anything that does have a >submit. I actually do a couple of things that let me reliably determine whether the request is authorized. The problem however is that there is a good reason why the authorized webmasters would want to replace the links with forms even if they are told not to. Unless there is a way to check whether they use a link or a form they will get away with "breaking the rule" and will keep doing it. The only option I have left is to build a bot that would check each authorized URL for existence of the required link. Since most of those sites are extranet sites protected by different types user authentication I'll have to use a cURL based bot for cookie/session support. I'll have to require the webmasters to provide username/password for the bot to use when checking their site. This is much more work than I expected. Jerry From chendry at nyc.rr.com Wed Apr 16 21:45:30 2003 From: chendry at nyc.rr.com (Christopher Hendry) Date: Wed, 16 Apr 2003 21:45:30 -0400 Subject: [nycphp-talk] vs. request In-Reply-To: <200304170141.h3H1fRxN000339@parsec.nyphp.org> Message-ID: so it's the webmasters you're worried about? hmmm... -> -----Original Message----- -> From: Jerry Kapron [mailto:jkapron at newageweb.com] -> Sent: Wednesday, April 16, 2003 9:41 PM -> To: NYPHP Talk -> Subject: Re: [nycphp-talk] vs. request -> -> -> Chris, -> -> >ok - dunno what I'm talking about, but could you possible -> append some sort -> >of hash value to the href - which could only be generated by your script -> and -> >not any third party? Make the key available only to the valid -> websites in -> >order for them to generate it - and don't accept anything that -> does have a -> >submit. -> -> I actually do a couple of things that let me reliably determine -> whether the -> request is authorized. The problem however is that there is a good reason -> why the authorized webmasters would want to replace the links with forms -> even if they are told not to. Unless there is a way to check -> whether they -> use a link or a form they will get away with "breaking the rule" and will -> keep doing it. The only option I have left is to build a bot that would -> check each authorized URL for existence of the required -> link. Since -> most of those sites are extranet sites protected by different types user -> authentication I'll have to use a cURL based bot for -> cookie/session support. -> I'll have to require the webmasters to provide username/password -> for the bot -> to use when checking their site. -> This is much more work than I expected. -> -> Jerry -> -> -> -> --- Unsubscribe at http://nyphp.org/list/ --- -> -> -> From shiflett at php.net Wed Apr 16 21:46:08 2003 From: shiflett at php.net (Chris Shiflett) Date: Wed, 16 Apr 2003 18:46:08 -0700 (PDT) Subject: [nycphp-talk] vs. request In-Reply-To: <200304170141.h3H1fR13000339@parsec.nyphp.org> Message-ID: <20030417014608.83363.qmail@web14304.mail.yahoo.com> --- Jerry Kapron wrote: > Chris, > > > ok - dunno what I'm talking about, but could you possible append > > some sort of hash value to the href - which could only be generated > > by your script and not any third party? Make the key available only > > to the valid websites in order for them to generate it - and don't > > accept anything that does have a submit. I assume by Chris you mean me, but I didn't write that. :-) > The problem however is that there is a good reason why the authorized > webmasters would want to replace the links with forms even if they are > told not to. Unless there is a way to check whether they use a link or > a form they will get away with "breaking the rule" and will keep doing > it. Please explain this rule they would be breaking. We need to better understand the problem before we can try to think of a solution. Chris From jkapron at NewAgeWeb.com Wed Apr 16 22:05:45 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Wed, 16 Apr 2003 22:05:45 -0400 Subject: [nycphp-talk] vs. request Message-ID: <007101c30485$dc1dae40$de01a8c0@duron.lan.newageweb.com> Chris, >Seriously, you're going to need to elaborate here for us to help you. I wish I could do that. But unfortunately I can't. I'm afraid I'm already in breach of my contract by discussing technical details of the project here. >Why would it matter if these other sites have a button instead of a link? It does not matter on the back end part of the system, but it does in general, trust me. I can't tell you more. I just wish there was a way to detect it on the back end. >Would it also matter to you if they used an image as a link instead of text? No, both are ok, text or image. >I do not understand the security concern you speak of. That's not really important. I'm stuck with one specific thing: the ability to determine whether the request came from an link or a form. Thanks for trying o help, Jerry From jkapron at NewAgeWeb.com Wed Apr 16 22:11:00 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Wed, 16 Apr 2003 22:11:00 -0400 Subject: [nycphp-talk] vs. request Message-ID: <008001c30486$97941920$de01a8c0@duron.lan.newageweb.com> >so it's the webmasters you're worried about? hmmm... Exactly. Sorry for not making it clear. I just realized I called them users, since they are my client's users. Thanks, Jerry From pinyo at nyc.rr.com Wed Apr 16 22:12:59 2003 From: pinyo at nyc.rr.com (Pinyo Bhulipongsanon) Date: Wed, 16 Apr 2003 22:12:59 -0400 Subject: Is nyphp.org linked from php.net? References: <200304170210.h3H2AFxT004064@parsec.nyphp.org> Message-ID: <00cf01c30486$de7bcd10$10c8a8c0@hewlettlydtpep> Just visited the link section of PHP.net. Did not see nyphp.org there. May be a worthwhile effort. Pinyo From shiflett at php.net Wed Apr 16 22:26:24 2003 From: shiflett at php.net (Chris Shiflett) Date: Wed, 16 Apr 2003 19:26:24 -0700 (PDT) Subject: [nycphp-talk] vs. request In-Reply-To: <200304170207.h3H26x13003321@parsec.nyphp.org> Message-ID: <20030417022624.87740.qmail@web14304.mail.yahoo.com> --- Jerry Kapron wrote: > >Why would it matter if these other sites have a button instead of a link? > > It does not matter on the back end part of the system, but it does in > general, trust me. I can't tell you more. I just wish there was a way to > detect it on the back end. Well, maybe this will help. I created the following test page, http.php:

Link

When I click the link, my Web browser sends this: GET /~chris/http.php HTTP/1.1 Host: 127.0.0.1 User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020830 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1 Accept-Language: en-us, en;q=0.50 Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66 Keep-Alive: 300 Connection: keep-alive Referer: http://127.0.0.1/~chris/http.php When I click the submit button, my Web browser sends this: GET /~chris/http.php HTTP/1.1 Host: 127.0.0.1 User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020830 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1 Accept-Language: en-us, en;q=0.50 Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66 Keep-Alive: 300 Connection: keep-alive Referer: http://127.0.0.1/~chris/http.php Of course, I can also telnet directly to the Web server and type the request in, so that's three different ways to generate the exact same request. > That's not really important. I'm stuck with one specific thing: the > ability to determine whether the request came from an link or a > form. As my example shows, this is really impossible. You cannot detect it based on the request itself, so you're going to have to think outside of the box. Since it is the authors of the Web sites you are worried about, perhaps the only viable solution is for you to check up on them with an automated script of some type, much like you were describing. Sorry I can't help more. I must admit that I am really curious why it could possibly matter. :-) Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ From shiflett at php.net Wed Apr 16 22:29:01 2003 From: shiflett at php.net (Chris Shiflett) Date: Wed, 16 Apr 2003 19:29:01 -0700 (PDT) Subject: [nycphp-talk] Is nyphp.org linked from php.net? In-Reply-To: <200304170213.h3H2D213005152@parsec.nyphp.org> Message-ID: <20030417022901.5662.qmail@web14305.mail.yahoo.com> --- Pinyo Bhulipongsanon wrote: > Just visited the link section of PHP.net. Did not see nyphp.org there. > May be a worthwhile effort. What do you want the brief blurb to say? Chris From jkapron at NewAgeWeb.com Wed Apr 16 23:07:44 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Wed, 16 Apr 2003 23:07:44 -0400 Subject: [nycphp-talk] vs.
request Message-ID: <001801c3048e$84b000a0$de01a8c0@duron.lan.newageweb.com> Chris, >As my example shows, this is really impossible. You cannot detect it based on >the request itself, so you're going to have to think outside of the box. Since >it is the authors of the Web sites you are worried about, perhaps the only >viable solution is for you to check up on them with an automated script of some >type, much like you were describing. I knew that the request seems identical in both cases. That's why I came here for suggestions. Perhaps when I get some sleep I'll start thinking out of the box :) I did not get any sleep in 41 hours. I really appreciate your effort in trying to help me. I think I'll go with the web bot solution for now. >Sorry I can't help more. I must admit that I am really curious why it could >possibly matter. :-) I wish a could tell you what it's all about. I should be able to reveal more when the project is finished. Thanks, Jerry From gw.nyphp at gwprogramming.com Thu Apr 17 00:48:42 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Thu, 17 Apr 2003 00:48:42 -0400 (EDT) Subject: [nycphp-talk] vs. request Message-ID: <200304170448.h3H4mg29010045@gw00.com> I agree with both Chris and Jerry... you should log all the referring URLs and build a nice interface to list them all. Then either a human can manually check them all periodically, or, yes, you could try to write some smart page-sniffer to parse for yourUrl as a FORM action. It sounds like your company needs to track your remote webmasters for more reasons than one... so writing a script that sniffs their pages might actually be a good investment...(?) George Webb gw.nyphp at gwprogramming.com From pinyo at nyc.rr.com Thu Apr 17 07:32:06 2003 From: pinyo at nyc.rr.com (Pinyo Bhulipongsanon) Date: Thu, 17 Apr 2003 07:32:06 -0400 Subject: [nycphp-talk] Is nyphp.org linked from php.net? References: <200304170229.h3H2T4xT006826@parsec.nyphp.org> Message-ID: <002801c304d4$f9d883c0$10c8a8c0@hewlettlydtpep> How about this? NYPHP is a nonprofit organization based in New York City. Our primary purpose is to help professionals and webmasters share and learn about amongst ourselves, particularly about AMP - Apache, MySQL, and PHP. NYPHP actively develop Open Source projects and a knowledge base of code, articles and tutorials. ----- Original Message ----- From: "Chris Shiflett" To: "NYPHP Talk" Sent: Wednesday, April 16, 2003 10:29 PM Subject: Re: [nycphp-talk] Is nyphp.org linked from php.net? > --- Pinyo Bhulipongsanon wrote: > > Just visited the link section of PHP.net. Did not see nyphp.org there. > > May be a worthwhile effort. > > What do you want the brief blurb to say? > > Chris > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From zaunere at yahoo.com Thu Apr 17 08:41:14 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 17 Apr 2003 05:41:14 -0700 (PDT) Subject: [nycphp-talk] Utf and latin 1 In-Reply-To: <200304162148.h3GLlMxb081807@parsec.nyphp.org> Message-ID: <20030417124114.18219.qmail@web12804.mail.yahoo.com> --- Jim Musil wrote: > Hi, > > I have two different character encodings on my page. Is there anyway to > convert utf-8 characters into latin1 characters via php? Not having done this myself this is only from memory: http://www.php.net/manual/en/ref.recode.php and I believe there are some other extensions that do similar things (although the name escapes me). H From nyphp at enobrev.com Thu Apr 17 09:38:47 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Thu, 17 Apr 2003 09:38:47 -0400 Subject: [nycphp-talk] vs. request In-Reply-To: <200304170226.h3H2QQtl006082@parsec.nyphp.org> Message-ID: <03e201c304e6$acb52e10$e1951d18@enobrev> Well, if you end up going the parse a page for a link route, couldn't you just parse the referrer for that link? I mean grabbing a page and using RegEx to find a link takes a second, tops. So you parse the page, find the link you're looking for and then allow the script to continue. I suppose that would require a login on some sites.. Dunno - hard to say without more specifics. Good header example, btw Chris. I was wondering if here would be a difference in the headers. -----Original Message----- From: Chris Shiflett [mailto:shiflett at php.net] Sent: Wednesday, April 16, 2003 10:26 PM To: NYPHP Talk Subject: Re: [nycphp-talk] vs. request --- Jerry Kapron wrote: > >Why would it matter if these other sites have a button instead of a link? > > It does not matter on the back end part of the system, but it does in > general, trust me. I can't tell you more. I just wish there was a way to > detect it on the back end. Well, maybe this will help. I created the following test page, http.php:

Link

When I click the link, my Web browser sends this: GET /~chris/http.php HTTP/1.1 Host: 127.0.0.1 User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020830 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai n;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q= 0.1 Accept-Language: en-us, en;q=0.50 Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66 Keep-Alive: 300 Connection: keep-alive Referer: http://127.0.0.1/~chris/http.php When I click the submit button, my Web browser sends this: GET /~chris/http.php HTTP/1.1 Host: 127.0.0.1 User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020830 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai n;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q= 0.1 Accept-Language: en-us, en;q=0.50 Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66 Keep-Alive: 300 Connection: keep-alive Referer: http://127.0.0.1/~chris/http.php Of course, I can also telnet directly to the Web server and type the request in, so that's three different ways to generate the exact same request. > That's not really important. I'm stuck with one specific thing: the > ability to determine whether the request came from an link or a > form. As my example shows, this is really impossible. You cannot detect it based on the request itself, so you're going to have to think outside of the box. Since it is the authors of the Web sites you are worried about, perhaps the only viable solution is for you to check up on them with an automated script of some type, much like you were describing. Sorry I can't help more. I must admit that I am really curious why it could possibly matter. :-) Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ --- Unsubscribe at http://nyphp.org/list/ --- From soazine at pop.mail.rcn.net Thu Apr 17 09:40:39 2003 From: soazine at pop.mail.rcn.net (soazine@pop.erols.com) Date: Thu, 17 Apr 2003 09:40:39 -0400 Subject: I need to do a search criteria in Oracle SQL inside LONG datatype field... Message-ID: <54470-220034417134039899@M2W044.mail2web.com> Would anyone here have any idea how I would do this, knowing that I cannot have a LONG datatype field in a WHERE clause? Thanx Phil -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From shiflett at php.net Thu Apr 17 10:50:18 2003 From: shiflett at php.net (Chris Shiflett) Date: Thu, 17 Apr 2003 07:50:18 -0700 (PDT) Subject: [nycphp-talk] vs.
request In-Reply-To: <200304170001.h3H00X15090542@parsec.nyphp.org> Message-ID: <20030417145018.10191.qmail@web14305.mail.yahoo.com> --- Pinyo Bhulipongsanon wrote: > New guy here. This may help. I use this too, so if you can point out any > weaknesses, please let me know. > > $host = "www.yoururl.com"; > if (!isset($HTTP_REFERRER) || ($HTTP_HOST != $host)) { > # access denied message > } > ?> Since you asked... :-) There are many ways to defeat this, and here is an example. Assume your above script is named foo.php and outputs "access granted" immediately after your conditional statement: [chris at alpha]~> telnet www.yoururl.com 80 Trying 12.34.56.78... Connected to www.yoururl.com (12.34.56.78). Escape character is '^]'. GET /foo.php HTTP/1.1 Host: www.yoururl.com Referer: http://www.youonlycheckifthisisset.org/ HTTP/1.1 200 OK Date: Thu, 17 Apr 2003 14:46:11 GMT Server: Apache Content-Type: text/html Content-length: 14 access granted Connection closed by foreign host. [chris at alpha]~> Basically, those variables that start with HTTP are just the headers sent by the client, so if you trust those for any sort of security, it's like a teacher asking the students to grade their own papers. It will work fine on honest people, but those aren't the ones to be concerned with. Hope that helps. Chris From Pinyo.Bhulipongsanon at usa.xerox.com Thu Apr 17 11:18:16 2003 From: Pinyo.Bhulipongsanon at usa.xerox.com (Bhulipongsanon, Pinyo) Date: Thu, 17 Apr 2003 11:18:16 -0400 Subject: [nycphp-talk] vs. request Message-ID: Hi Chris, Thanks. How would you tighten it up? Pinyo -----Original Message----- From: Chris Shiflett [mailto:shiflett at php.net] Sent: Thursday, April 17, 2003 10:50 AM To: NYPHP Talk Subject: Re: [nycphp-talk] vs. request --- Pinyo Bhulipongsanon wrote: > New guy here. This may help. I use this too, so if you can point out any > weaknesses, please let me know. > > $host = "www.yoururl.com"; > if (!isset($HTTP_REFERRER) || ($HTTP_HOST != $host)) { > # access denied message > } > ?> Since you asked... :-) There are many ways to defeat this, and here is an example. Assume your above script is named foo.php and outputs "access granted" immediately after your conditional statement: [chris at alpha]~> telnet www.yoururl.com 80 Trying 12.34.56.78... Connected to www.yoururl.com (12.34.56.78). Escape character is '^]'. GET /foo.php HTTP/1.1 Host: www.yoururl.com Referer: http://www.youonlycheckifthisisset.org/ HTTP/1.1 200 OK Date: Thu, 17 Apr 2003 14:46:11 GMT Server: Apache Content-Type: text/html Content-length: 14 access granted Connection closed by foreign host. [chris at alpha]~> Basically, those variables that start with HTTP are just the headers sent by the client, so if you trust those for any sort of security, it's like a teacher asking the students to grade their own papers. It will work fine on honest people, but those aren't the ones to be concerned with. Hope that helps. Chris --- Unsubscribe at http://nyphp.org/list/ --- From shiflett at php.net Thu Apr 17 11:35:46 2003 From: shiflett at php.net (Chris Shiflett) Date: Thu, 17 Apr 2003 08:35:46 -0700 (PDT) Subject: [nycphp-talk] vs. request In-Reply-To: <200304171518.h3HFIO13025164@parsec.nyphp.org> Message-ID: <20030417153546.19704.qmail@web14305.mail.yahoo.com> --- "Bhulipongsanon, Pinyo" wrote: > Hi Chris, > > Thanks. How would you tighten it up? > > Pinyo Well, I'm not sure what you're wanting to do exactly. In general, I try to focus most of my creative thinking on two things: 1. Storing everything that isn't necessary for client identification on the server (such as in a session) and trusting nothing from the client. 2. Making it very difficult for someone to impersonate another user. If you tell me your primary concern(s), I might be able to offer some suggestions. Chris From zaunere at yahoo.com Thu Apr 17 12:04:48 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 17 Apr 2003 09:04:48 -0700 (PDT) Subject: [nycphp-talk] Is nyphp.org linked from php.net? In-Reply-To: <200304171132.h3HBW7xZ017075@parsec.nyphp.org> Message-ID: <20030417160448.51290.qmail@web12802.mail.yahoo.com> --- Pinyo Bhulipongsanon wrote: > How about this? > > NYPHP is a nonprofit organization based in New York City. Our primary > purpose is to help professionals and webmasters share and learn about > amongst ourselves, particularly about AMP - Apache, MySQL, and PHP. NYPHP > actively develop Open Source projects and a knowledge base of code, > articles and tutorials. Might be a bit long. > > --- Pinyo Bhulipongsanon wrote: > > > Just visited the link section of PHP.net. Did not see nyphp.org there. > > > May be a worthwhile effort. Very good idea though. > > What do you want the brief blurb to say? How about something like: New York PHP International community supporting PHP adoption, projects and development. In the professional's association section? From max at idsociety.com Thu Apr 17 12:10:43 2003 From: max at idsociety.com (max goldberg) Date: Thu, 17 Apr 2003 12:10:43 -0400 Subject: [nycphp-talk] vs. request In-Reply-To: <200304162242.h3GMg4vV084664@parsec.nyphp.org> References: <200304162242.h3GMg4vV084664@parsec.nyphp.org> Message-ID: <3E9ED203.9040801@idsociety.com> This is a fairly vague problem, so I'll give my suggestion to what I think you are trying to do. On each non-local website do something similar to this: