From steven at sohh.com Sun Mar 2 19:45:16 2003 From: steven at sohh.com (Steven Samuel) Date: Sun, 2 Mar 2003 19:45:16 -0500 Subject: [nycphp-talk] php code cache software In-Reply-To: <200302281616.h1SGEoI1029849@parsec.nyphp.org> Message-ID: I use php-Accerator as well, but I also use phpCache v1.4 - PHP caching engine http://www.0x00.org/php/phpCache/ Basically, it's good for storing variables in your cache for X amount of time. For example, your front page might have 10 queries on it. Does the content need to be that fresh? If not, try phpcache and store that array or string. Tutorials & Testimonials http://www.vbulletin.com/forum/showthread.php?threadid=10834 http://www.vbulletin.com/forum/showthread.php?threadid=10902 http://www.sitepoint.com/article/685 Good luck -----Original Message----- From: Ophir Prusak [mailto:ophir at prusak.com] Sent: Friday, February 28, 2003 11:15 AM To: NYPHP Talk Subject: Re: [nycphp-talk] php code cache software in a nutshell, if you want free, go with phpa (http://www.php-accelerator.co.uk/) if you're willing to part with $$$ go with Zend. also, be sure to look into other places you can improve performance. ophir ----- Original Message ----- From: "Lee Semel" To: "NYPHP Talk" Sent: Thursday, February 27, 2003 3:34 PM Subject: [nycphp-talk] php code cache software > Hi, > > Can anyone point to a good comparison of PHP code caching software such as > Zend Accelerator or Ion Cube? Anyone have personal experience with this > software? > > Lee Semel > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From sterling at bumblebury.com Sun Mar 2 19:48:58 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: Sun, 2 Mar 2003 19:48:58 -0500 Subject: [nycphp-talk] php code cache software In-Reply-To: <200303030050.h230nTHD091189@parsec.nyphp.org> References: <200303030050.h230nTHD091189@parsec.nyphp.org> Message-ID: <20030303004858.GC799@bumblebury.com> Just a note that most people use PEAR's Cache module for this, its more robust and supports a variety of different methods for application level caching. -Sterling > I use php-Accerator as well, but I also use phpCache v1.4 - PHP caching > engine > http://www.0x00.org/php/phpCache/ > > Basically, it's good for storing variables in your cache for X amount of > time. For example, your front page might have 10 queries on it. Does the > content need to be that fresh? If not, try phpcache and store that array or > string. > > Tutorials & Testimonials > http://www.vbulletin.com/forum/showthread.php?threadid=10834 > http://www.vbulletin.com/forum/showthread.php?threadid=10902 > http://www.sitepoint.com/article/685 > > Good luck > > -----Original Message----- > From: Ophir Prusak [mailto:ophir at prusak.com] > Sent: Friday, February 28, 2003 11:15 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] php code cache software > > > in a nutshell, > > if you want free, go with phpa (http://www.php-accelerator.co.uk/) > if you're willing to part with $$$ go with Zend. > > also, be sure to look into other places you can improve performance. > > ophir > > ----- Original Message ----- > From: "Lee Semel" > To: "NYPHP Talk" > Sent: Thursday, February 27, 2003 3:34 PM > Subject: [nycphp-talk] php code cache software > > > > Hi, > > > > Can anyone point to a good comparison of PHP code caching software such > as > > Zend Accelerator or Ion Cube? Anyone have personal experience with this > > software? > > > > Lee Semel > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- "Reductionists like to take things apart. The rest of us are just trying to get it together." - Larry Wall, Programming Perl, 3rd Edition From zaunere at yahoo.com Mon Mar 3 09:41:36 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Mon, 3 Mar 2003 06:41:36 -0800 (PST) Subject: [nycphp-talk] Using PHP on Linux with Oracle In-Reply-To: <200302272008.h1RK7eKH008050@parsec.nyphp.org> Message-ID: <20030303144136.79184.qmail@web12808.mail.yahoo.com> --- Peter Balogh wrote: > We've had good experiences with our LAMP server but recently ran into a > snag involving Oracle. We downloaded and installed the 800-meg software > bundle from Oracle, which is supposed to allow direct communication > between a PHP script and an Oracle database. (The client libraries were > not divisible from the entire bundle--hence the massive install.) > > We recompiled Apache and PHP using the recommended flags for Oracle > installation. When we execute our Oracle-accessing PHP scripts using > the PHP command line interpreter, they work fine. When we try to > access those same scripts as web pages, they work not at all. Error > messages say that "OCI functions are not found." As mentioned by others, you may be getting your PHP versions crossed between what you've compiled and what you're running as a CLI and Apache module. > Our PHP/Apache/Linux installers came straight from the Red Hat 7.2 > package. Are we running afoul of version problems? I would say most likely. For an environment like this, I'd recommend scraping any installers and packages and compile straight from source, both Apache and PHP. Not considering compatibility and versioning issues, as you're seeing now, often times Oracle needs a couple tweaks in PHP to run correctly (enable PHP's own SIGCHLD handler maybe needed, for example). So, compile all from source so at least you can set your baseline of what features are enabled, etc. Also, be aware of the ORACLE_HOME and ORACLE_BASE environment variables. These must be set correctly, both as a shell, and within Apache (I generally set them in apachectl or envvars for Apache2). > Is there some trick to installing the Oracle client software? Patience. From zaunere at yahoo.com Mon Mar 3 09:46:00 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Mon, 3 Mar 2003 06:46:00 -0800 (PST) Subject: [nycphp-talk] zend studio debugger In-Reply-To: <200302272132.h1RLVBKH013555@parsec.nyphp.org> Message-ID: <20030303144600.80679.qmail@web12808.mail.yahoo.com> --- David Vogel wrote: > 4.3.1 is the local version that I'm using. Unfortunately I work at a > university and the server environment is not under my control, so > installing the zend debug server there is not really an option. This can put you in a difficult situation. If you're developing an application that requires special extensions compiled it, for example LDAP, running a local PHP version in Windows won't get you very far. I generally write for Oracle enabled PHP and I have no desire to set things up in Windows. So, I install the debugger remotely, or use a lot of echo statements :) That said, if this is a development server you're working on (it is, right?) they should accomodate you and install the debugger. H > > Are you out of suggestions yet? > thanks for you help. > > --- Daniel Kushner wrote: > > The local debugger doesn't use your real Web environment but a local > > version of PHP. Try to debug on the server and then > > you'll get the whole environment including your own PHP compilation > > and any prepends and such. > > > > --Daniel > > > > > -----Original Message----- > > > From: David Vogel [mailto:davevgl at yahoo.com] > > > Sent: Thursday, February 27, 2003 4:01 PM > > > To: NYPHP Talk > > > Subject: RE: [nycphp-talk] zend studio debugger > > > > > > > > > I'm debugging locally w/ php 4.3.1. Maybe that's part of the > > problem, > > > if that version is not supported by the debugger? > > > > > > Dave > > > > > > > > > > > > --- Daniel Kushner wrote: > > > > Are you debugging locally or on a remote server? > > > > > > > > --Daniel > > > > > > > > > > > > > -----Original Message----- > > > > > From: David Vogel [mailto:davevgl at yahoo.com] > > > > > Sent: Thursday, February 27, 2003 3:34 PM > > > > > To: NYPHP Talk > > > > > Subject: [nycphp-talk] zend studio debugger > > > > > > > > > > > > > > > I just started using zend studio 2.6, and I'm having some > > > > difficulty > > > > > with the debugger and ldap functions. > > > > > > > > > > For example, when I start typing ldap_connect() I get an > > > > autocomplete > > > > > dialog, suggesting that the function is built in / recognized. > > > > But, > > > > > when I debug the script I get an error saying I've made a call > > to > > > > an > > > > > undefined function (ldap_connect()). > > > > > > > > > > The script seems to run fine, and the ldap stuff is working, > > but > > > > it's > > > > > preventing me from using the debugger for anything else. > > > > > > > > > > Any suggestions would be greatly appreciated. > > > > > thanks > > > > > > > > > > __________________________________________________ > > > > > Do you Yahoo!? > > > > > Yahoo! Tax Center - forms, calculators, tips, more > > > > > http://taxes.yahoo.com/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > > > Do you Yahoo!? > > > Yahoo! Tax Center - forms, calculators, tips, more > > > http://taxes.yahoo.com/ > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From mz34 at nyu.edu Mon Mar 3 13:10:09 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Mon, 3 Mar 2003 13:10:09 -0500 Subject: Fwd: RSVP Today for your PHP Meetup Message-ID: <5EC13300-4DA3-11D7-B229-00039344DCA8@nyu.edu> Anyone going to the next meetup? Begin forwarded message: > From: PHP Meetup > Date: Thu Feb 27, 2003 8:12:20 PM US/Eastern > To: matthew.zimmerman at nyu.edu > Subject: RSVP Today for your PHP Meetup > > Hello mz34, > > You voted, we counted, and the results are in! Your > PHP Meetup in New York, NY will be > > Thursday, Mar 6 @ 7PM > V Bar (www.vbar.net) > 225 Sullivan St. > New York, NY 10012 > 212-253-5740 > > We hope you can make it to this month's Meetup. Click > on the link below to confirm that you'll be there: > http://php.meetup.com/rsvp?e=200306&v=12588 > > Can't make it this time around? That's fine, we'll be > be back in touch next month. Let us know that you're > NOT coming here: > http://php.meetup.com/rsvp?e=200306&v=-1 > > We cancel Meetups that have fewer than 4 people > confirmed as attending, so if you are indeed planning > on coming, let us know! > > For more PHP Meetup details, visit: > http://php.meetup.com/ > > > *** SIGN UP TO BE A HOST *** > > Pitch in and ensure your Meetup is a success! Being a HOST is > simple, but critical to a good Meetup - you just need to get > there on time and help people find each other. > > Sign up to be a host via your profile page: > http://php.meetup.com/profile > > -- > > Update your membership settings at: > http://my.meetup.com/ > > MZ _________________ Matthew Zimmerman Humanities Computing Group, NYU Tel: 212.998.3038 Fax: 212.995.4120 From mz34 at nyu.edu Mon Mar 3 13:11:53 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Mon, 3 Mar 2003 13:11:53 -0500 Subject: question for M. DeWitt or others about remote desktop managers Message-ID: <9CF2F3C4-4DA3-11D7-B229-00039344DCA8@nyu.edu> Mike What was the remote desktop manager you recommended for my Linux box? MZ _________________ Matthew Zimmerman Humanities Computing Group, NYU Tel: 212.998.3038 Fax: 212.995.4120 From jonbaer at jonbaer.net Mon Mar 3 16:32:44 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 3 Mar 2003 13:32:44 -0800 Subject: Cool new feature on php.net Message-ID: <002b01c2e1cc$6d6b4600$6800a8c0@laptop> I wish they had this for every language :-) So apparently you can just append the function in the request and it will use your Language-Accept header to return the manual page for the requested function ... pretty handy ... http://www.php.net/mysql_connect http://www.php.net/md5 http://www.php.net/strstr - Jon -------------- next part -------------- An HTML attachment was scrubbed... URL: From ejp at well.com Mon Mar 3 13:54:12 2003 From: ejp at well.com (Edward Potter) Date: Mon, 3 Mar 2003 13:54:12 -0500 Subject: [nycphp-talk] question for M. DeWitt or others about remote desktop managers In-Reply-To: <200303031812.h23IBvJn006729@parsec.nyphp.org> Message-ID: <86279183-4DA9-11D7-81DD-000393BF8A42@well.com> I think http://www.webmin.com/ has the market on this one.... - ed On Monday, March 3, 2003, at 01:11 PM, Matthew Zimmerman wrote: > Mike > > What was the remote desktop manager you recommended for my Linux box? > > MZ > _________________ > Matthew Zimmerman > Humanities Computing Group, NYU > Tel: 212.998.3038 > Fax: 212.995.4120 > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From fields at surgam.net Mon Mar 3 13:56:49 2003 From: fields at surgam.net (Adam Fields) Date: Mon, 3 Mar 2003 13:56:49 -0500 Subject: [nycphp-talk] Cool new feature on php.net In-Reply-To: <200303031848.h23IlQIJ007699@parsec.nyphp.org> References: <200303031848.h23IlQIJ007699@parsec.nyphp.org> Message-ID: <20030303185649.GD32763@eye.surgam.net> On Mon, Mar 03, 2003 at 01:47:26PM -0500, Jon Baer wrote: > I wish they had this for every language :-) > > So apparently you can just append the function in the request and it will use your Language-Accept header to return the manual page for the requested function ... pretty handy ... > > http://www.php.net/mysql_connect > http://www.php.net/md5 > http://www.php.net/strstr Cool, yes. Not new - they've been doing this for quite some time now. -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From fields at surgam.net Mon Mar 3 13:59:41 2003 From: fields at surgam.net (Adam Fields) Date: Mon, 3 Mar 2003 13:59:41 -0500 Subject: [nycphp-talk] Cool new feature on php.net In-Reply-To: <200303031857.h23IusIJ009166@parsec.nyphp.org> References: <200303031857.h23IusIJ009166@parsec.nyphp.org> Message-ID: <20030303185941.GE32763@eye.surgam.net> On Mon, Mar 03, 2003 at 01:56:54PM -0500, Adam Fields wrote: > Cool, yes. Not new - they've been doing this for quite some time now. Oh, also - more details (including instructions on how to set up similar things for your own Apache server) are here: http://www.php.net/urlhowto.php -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From shiflett at php.net Mon Mar 3 14:07:25 2003 From: shiflett at php.net (Chris Shiflett) Date: Mon, 3 Mar 2003 11:07:25 -0800 (PST) Subject: [nycphp-talk] Cool new feature on php.net In-Reply-To: <200303031900.h23IxkHp009872@parsec.nyphp.org> Message-ID: <20030303190725.23784.qmail@web14309.mail.yahoo.com> --- Adam Fields wrote: > Oh, also - more details (including instructions on how to set up > similar things for your own Apache server) are here: > > http://www.php.net/urlhowto.php My favorite "cool" thing similar to this is mentioned in one of Rasmus's talks: http://talks.php.net/show/oscon2002/52 Basically, you generate images on-demand using a 404 handler. But, the cool part is that once generated, future requests for that image will not generate the 404, so the image will not be regenerated. It's dynamic only as much as necessary. :-) Chris From mz34 at nyu.edu Mon Mar 3 14:07:41 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Mon, 3 Mar 2003 14:07:41 -0500 Subject: [nycphp-talk] question for M. DeWitt or others about remote desktop managers In-Reply-To: <200303031854.h23IsFGT008448@parsec.nyphp.org> Message-ID: <680E119E-4DAB-11D7-B229-00039344DCA8@nyu.edu> Yeah, I use that for my remote admin. But I was thinking of something along the lines of Timbuktu or PC Anywhere, where I can get an actual desktop. On Monday, March 3, 2003, at 01:54 PM, Edward Potter wrote: > I think http://www.webmin.com/ has the market on this one.... > > - ed > > > > > On Monday, March 3, 2003, at 01:11 PM, Matthew Zimmerman wrote: > >> Mike >> >> What was the remote desktop manager you recommended for my Linux box? >> >> MZ >> _________________ >> Matthew Zimmerman >> Humanities Computing Group, NYU >> Tel: 212.998.3038 >> Fax: 212.995.4120 >> >> >> >> >> >> > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > MZ _________________ Matthew Zimmerman Humanities Computing Group, NYU Tel: 212.998.3038 Fax: 212.995.4120 From sterling at bumblebury.com Mon Mar 3 13:58:30 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: Mon, 3 Mar 2003 13:58:30 -0500 Subject: [nycphp-talk] Cool new feature on php.net In-Reply-To: <200303031908.h23J7SHD010748@parsec.nyphp.org> References: <200303031908.h23J7SHD010748@parsec.nyphp.org> Message-ID: <20030303185830.GC1529@bumblebury.com> > --- Adam Fields wrote: > > Oh, also - more details (including instructions on how to set up > > similar things for your own Apache server) are here: > > > > http://www.php.net/urlhowto.php > > My favorite "cool" thing similar to this is mentioned in one of Rasmus's talks: > > http://talks.php.net/show/oscon2002/52 > > Basically, you generate images on-demand using a 404 handler. But, the cool > part is that once generated, future requests for that image will not generate > the 404, so the image will not be regenerated. It's dynamic only as much as > necessary. :-) > Yeah. Just a note (people often mistakenly give Rasmus attribution for this trick), this idea is from Stig Bakken at FAST Search & Transfer. -Sterling > Chris > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- "Reductionists like to take things apart. The rest of us are just trying to get it together." - Larry Wall, Programming Perl, 3rd Edition From chris at psydeshow.org Mon Mar 3 14:15:10 2003 From: chris at psydeshow.org (Chris Snyder) Date: Mon, 03 Mar 2003 14:15:10 -0500 Subject: [nycphp-talk] Cool new feature on php.net In-Reply-To: <200303031900.h23IxkHR009872@parsec.nyphp.org> References: <200303031900.h23IxkHR009872@parsec.nyphp.org> Message-ID: <3E63A9BE.7050409@psydeshow.org> Hey! This strikes me as a really great way to mix dynamic content with static. The way php.net enables this feature is to use an Apache directive to invoke a script if the requested page isn't found: ># Handle errors with local error handler script > ErrorDocument 401 /error/index.php > But another way to look at this is just the opposite: for most requests, I want the script to generate a page dynamically based on the request. But every now and then (a cache for popular pages, say, or an override) a page will actually exist at the requested URI, which will then be served. Off to experiment I go! chris. Adam Fields wrote: >On Mon, Mar 03, 2003 at 01:56:54PM -0500, Adam Fields wrote: > > >>Cool, yes. Not new - they've been doing this for quite some time now. >> >> > >Oh, also - more details (including instructions on how to set up >similar things for your own Apache server) are here: > >http://www.php.net/urlhowto.php > > > -- If US military spending was cut by 1/6th, we could spend $100 billion on the arts, with change. Imagine: culture instead of killing. From sterling at bumblebury.com Mon Mar 3 14:12:02 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: Mon, 3 Mar 2003 14:12:02 -0500 Subject: [nycphp-talk] Cool new feature on php.net In-Reply-To: <200303031915.h23JF5HD012727@parsec.nyphp.org> References: <200303031915.h23JF5HD012727@parsec.nyphp.org> Message-ID: <20030303191201.GE3241@bumblebury.com> > Hey! This strikes me as a really great way to mix dynamic content with > static. The way php.net enables this feature is to use an Apache > directive to invoke a script if the requested page isn't found: > > ># Handle errors with local error handler script > > ErrorDocument 401 /error/index.php > > > But another way to look at this is just the opposite: for most requests, > I want the script to generate a page dynamically based on the request. > But every now and then (a cache for popular pages, say, or an override) > a page will actually exist at the requested URI, which will then be served. > > Off to experiment I go! > Yep, you can do the same thing with a mod_rewrite handler btw (it will give you more control at the sake of portability.) -Sterling > chris. > > > > Adam Fields wrote: > > >On Mon, Mar 03, 2003 at 01:56:54PM -0500, Adam Fields wrote: > > > > > >>Cool, yes. Not new - they've been doing this for quite some time now. > >> > >> > > > >Oh, also - more details (including instructions on how to set up > >similar things for your own Apache server) are here: > > > >http://www.php.net/urlhowto.php > > > > > > > > > -- > If US military spending was cut by 1/6th, we could spend $100 billion on the arts, with change. > Imagine: culture instead of killing. > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- "Reductionists like to take things apart. The rest of us are just trying to get it together." - Larry Wall, Programming Perl, 3rd Edition From jonbaer at jonbaer.net Mon Mar 3 17:21:40 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 3 Mar 2003 14:21:40 -0800 Subject: [nycphp-talk] Cool new feature on php.net References: <200303031915.h23JF5Et012727@parsec.nyphp.org> Message-ID: <004901c2e1d3$43e25290$6800a8c0@laptop> I think an even cooler feature is if you mix it with the soundex, levenshtein, or similartext, something i did w/ alicebot development a while ago ... im still migrating from J2EE to PHP so i didn't realize it was available ... but brings me to another question which is if there are any packages that can automatically setup a SOAP based URI API for you? /foo/bar?param1=one Id like to wrap an API off one machine like this ... app.website.com/api/function?params=x Anything that can do XML-RPC/SOAP automatically? - Jon ----- Original Message ----- From: "Chris Snyder" To: "NYPHP Talk" Sent: Monday, March 03, 2003 11:15 AM Subject: Re: [nycphp-talk] Cool new feature on php.net > Hey! This strikes me as a really great way to mix dynamic content with > static. The way php.net enables this feature is to use an Apache > directive to invoke a script if the requested page isn't found: > > ># Handle errors with local error handler script > > ErrorDocument 401 /error/index.php > > > But another way to look at this is just the opposite: for most requests, > I want the script to generate a page dynamically based on the request. > But every now and then (a cache for popular pages, say, or an override) > a page will actually exist at the requested URI, which will then be served. > > Off to experiment I go! > > chris. > > > > Adam Fields wrote: > > >On Mon, Mar 03, 2003 at 01:56:54PM -0500, Adam Fields wrote: > > > > > >>Cool, yes. Not new - they've been doing this for quite some time now. > >> > >> > > > >Oh, also - more details (including instructions on how to set up > >similar things for your own Apache server) are here: > > > >http://www.php.net/urlhowto.php > > > > > > > > > -- > If US military spending was cut by 1/6th, we could spend $100 billion on the arts, with change. > Imagine: culture instead of killing. > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From adam at trachtenberg.com Mon Mar 3 14:54:57 2003 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 3 Mar 2003 14:54:57 -0500 (EST) Subject: [nycphp-talk] Cool new feature on php.net In-Reply-To: <200303031915.h23JF5Ip012727@parsec.nyphp.org> Message-ID: On Mon, 3 Mar 2003, Chris Snyder wrote: > But another way to look at this is just the opposite: for most requests, > I want the script to generate a page dynamically based on the request. > But every now and then (a cache for popular pages, say, or an override) > a page will actually exist at the requested URI, which will then be served. > > Off to experiment I go! Check out Dave's article on ONLamp.com on Custom Error pages with PHP & Apache, its got a few examples of exactly this in the second half of the piece. http://www.onlamp.com/pub/a/onlamp/2003/02/13/davidsklar.html -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From mjdewitt at alexcommgrp.com Mon Mar 3 15:21:42 2003 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Mon, 3 Mar 2003 15:21:42 -0500 Subject: [nycphp-talk] question for M. DeWitt or others about remote de sktop managers Message-ID: Mathew, The product I use is vnc. Here are all of the vnc projects out of freshmeat: http://freshmeat.net/search/?q=vnc§ion=projects I think you will probably be interested in the OSX version and perhaps tightvnc for intel platforms, and plain ole vnc for Macs running os 9x. The OS X version had two issues for me: lack of a proper mouse cursor and lack of support for classic apps (though it now occurs to me perhaps you need two vnc servers for a mixed mac environment). Vnc is not a secure solution, but there are ways to make it so. I am sure you will be able to dig up details on how to do this fromthe various projects. Mike > -----Original Message----- > From: Matthew Zimmerman [SMTP:mz34 at nyu.edu] > Sent: Monday, March 03, 2003 2:08 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] question for M. DeWitt or others about > remote desktop managers > > Yeah, I use that for my remote admin. But I was thinking of something > along the lines of Timbuktu or PC Anywhere, where I can get an actual > desktop. > > On Monday, March 3, 2003, at 01:54 PM, Edward Potter wrote: > > > I think http://www.webmin.com/ has the market on this one.... > > > > - ed > > > > > > > > > > On Monday, March 3, 2003, at 01:11 PM, Matthew Zimmerman wrote: > > > >> Mike > >> > >> What was the remote desktop manager you recommended for my Linux box? > >> > >> MZ > >> _________________ > >> Matthew Zimmerman > >> Humanities Computing Group, NYU > >> Tel: 212.998.3038 > >> Fax: 212.995.4120 > >> > >> > >> > >> > >> > >> > > > > > > > > > > > > > > > MZ > _________________ > Matthew Zimmerman > Humanities Computing Group, NYU > Tel: 212.998.3038 > Fax: 212.995.4120 > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From ian at plusfour.org Mon Mar 3 16:04:05 2003 From: ian at plusfour.org (Ian Forsyth) Date: Mon, 3 Mar 2003 13:04:05 -0800 Subject: [nycphp-talk] question for M. DeWitt or others about remote desktop managers In-Reply-To: <200303031908.h23J7jHJ011007@parsec.nyphp.org> Message-ID: You can try VNC http://www.realvnc.com/download.html They have a macintosh version at http://www.uk.research.att.com/vnc/download.html VNC give you the desktop. Ian On Monday, March 3, 2003, at 11:07 AM, Matthew Zimmerman wrote: > Yeah, I use that for my remote admin. But I was thinking of something > along the lines of Timbuktu or PC Anywhere, where I can get an actual > desktop. > > On Monday, March 3, 2003, at 01:54 PM, Edward Potter wrote: > >> I think http://www.webmin.com/ has the market on this one.... >> >> - ed >> >> >> >> >> On Monday, March 3, 2003, at 01:11 PM, Matthew Zimmerman wrote: >> >>> Mike >>> >>> What was the remote desktop manager you recommended for my Linux box? >>> >>> MZ >>> _________________ >>> Matthew Zimmerman >>> Humanities Computing Group, NYU >>> Tel: 212.998.3038 >>> Fax: 212.995.4120 >>> >>> >>> >>> >>> >>> >> >> >> >> >> >> >> > 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 Mar 3 16:00:43 2003 From: daniel at websapp.com (Daniel Kushner) Date: Mon, 3 Mar 2003 16:00:43 -0500 Subject: Bulletin Major Internet vulnerability discovered in e-mail protocol - Computerw Message-ID: http://www.computerworld.com/securitytopics/security/holes/story/0,10801,78991,00.html From shiflett at php.net Mon Mar 3 16:24:27 2003 From: shiflett at php.net (Chris Shiflett) Date: Mon, 3 Mar 2003 13:24:27 -0800 (PST) Subject: [nycphp-talk] Bulletin Major Internet vulnerability discovered in e-mail protocol In-Reply-To: <200303032102.h23L1IHp083516@parsec.nyphp.org> Message-ID: <20030303212427.38723.qmail@web14305.mail.yahoo.com> You have to love headlines like that: "Major Internet vulnerability discovered in e-mail protocol" So, are we to assume that a vulnerability was found in the Internet (whatever that means)? Or, are we supposed to assume the vulnerability is in IMAP, SMTP, or POP? This article is just talking about the sendmail vulnerability, if you can manage to read through the sensationalist BS. :-) It is definitely worth attention, however, and my systems are already patched. Chris From hans at nyphp.org Mon Mar 3 16:29:58 2003 From: hans at nyphp.org (Hans Zaunere) Date: Mon, 3 Mar 2003 13:29:58 -0800 (PST) Subject: Cold Fusion.. For Real Message-ID: <20030303212958.80160.qmail@web12803.mail.yahoo.com> My apologies for leaving all the fine answers to my previous post hanging over the weeks, however just as I was about to sit down and begin coding, the ColdFusion/Oracle/Win2K (COW Technology suite?) server fell to it's knees. FYI, don't put a virus scanner on Oracle log and database files - I didn't do it, some other admin did. So the AMP side of things is done and now it's a matter of tieing the two together. One problem that remains, however, is the limited reach, and unlimited liability, I have with the COW server. Chris, your idea of fingerprinting the browser's request header is great, and something I'll use in the future, as are the other techniques of generating a key of sorts and passing it around (I don't have any access to a DB on the CF side so I have no persistence aside from a GET or POST). The problem I see, as you eluded to Adam, is the lack of a MD5 function builtin to CF. Is this really the case? I may seem like I'm being pedantic, but I need to leave the slightest footprint [impression] on the CF side... no additional files, DB access, etc. I'm limited to this because the CF piece is not mine, and as I found out during the server fiasco, the ISV is *very* quick to point the finger. So I'm left with only being able to put a tiny link, minimally generated by builtin CF functionality. Hence, my thinking a MAC address would at least be enough to force most medical students into logging into the CF page first, while keeping even this ISV from placing blame. I know this seems like a brain teaser folks; but because it is :) Thanks, Hans From dkrook at hotmail.com Mon Mar 3 16:54:23 2003 From: dkrook at hotmail.com (D C Krook) Date: Mon, 03 Mar 2003 16:54:23 -0500 Subject: [nycphp-talk] question for M. DeWitt... VNC info Message-ID: This month's Linux Magazine has two decent articles on VNC: http://www.linux-mag.com/2003-03/toc.html In "Tech Support" "What is VNC?" by John R. S. Mascio In "Guru Guidance": "Simplifying Remote VNC Logins" by Roderick W. Smith >You can try VNC http://www.realvnc.com/download.html They have a >macintosh version at http://www.uk.research.att.com/vnc/download.html > >VNC give you the desktop. > >Ian > _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From shiflett at php.net Mon Mar 3 16:58:48 2003 From: shiflett at php.net (Chris Shiflett) Date: Mon, 3 Mar 2003 13:58:48 -0800 (PST) Subject: [nycphp-talk] Cold Fusion.. For Real In-Reply-To: <200303032131.h23LU1Hp016221@parsec.nyphp.org> Message-ID: <20030303215848.49158.qmail@web14309.mail.yahoo.com> --- Hans Zaunere wrote: > The problem I see, as you eluded to Adam, is the lack of a MD5 function > builtin to CF. Is this really the case? I may seem like I'm being pedantic, > but I need to leave the slightest footprint [impression] on the CF side... no > additional files, DB access, etc. I'm limited to this because the CF piece > is not mine, and as I found out during the server fiasco, the ISV is *very* > quick to point the finger. That's an unfortunate situation that is going to make things difficult for you. As I recall, CF's cryptographic functions are extremely weak. In fact, I remember there being an encrypt() and decrypt() only. I had to write CFX tags for triple DES and MD5. Since you (they) are running on Windows, you probably won't have to write your own like I did (mine were for Solaris). You can search for cfx_md5 on Google or something and find a few. This violates your idea of "slightest footprint", but I'm not sure if you'll find any better way. CF's encrypt() function is a tow-way, so it will be way too big for what you need to do. > So I'm left with only being able to put a tiny link, minimally generated by > builtin CF functionality. Hence, my thinking a MAC address would at least be > enough to force most medical students into logging into the CF page first, > while keeping even this ISV from placing blame. Is there session management on the CF side? Are they using the registry as the data store? If so, you can at least leverage that for persistent storage. Also, you can pass the cfid and cftoken yourself using PHP, so that you keep up with sessions on the PHP side, and the cfid:cftoken combination is just another unique identifier in the same way that PHPSESSID is. This will make it "work", and you can then investigate either cfx_md5 in combination with my earlier suggestion(s) or the MAC address idea you have. Chris From fields at surgam.net Mon Mar 3 17:14:12 2003 From: fields at surgam.net (Adam Fields) Date: Mon, 3 Mar 2003 17:14:12 -0500 Subject: [nycphp-talk] Cold Fusion.. For Real In-Reply-To: <200303032131.h23LU1IL016221@parsec.nyphp.org> References: <200303032131.h23LU1IL016221@parsec.nyphp.org> Message-ID: <20030303221412.GS32763@eye.surgam.net> On Mon, Mar 03, 2003 at 04:30:01PM -0500, Hans Zaunere wrote: > The problem I see, as you eluded to Adam, is the lack of a MD5 function > builtin to CF. Is this really the case? I may seem like I'm being pedantic, > but I need to leave the slightest footprint [impression] on the CF side... no > additional files, DB access, etc. I'm limited to this because the CF piece > is not mine, and as I found out during the server fiasco, the ISV is *very* > quick to point the finger. My experience with CF is very limited, and I found that code with a google search. Sorry... -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From hans at nyphp.org Mon Mar 3 18:41:54 2003 From: hans at nyphp.org (Hans Zaunere) Date: Mon, 3 Mar 2003 15:41:54 -0800 (PST) Subject: [nycphp-talk] Bulletin Major Internet vulnerability discovered in e-mail protocol In-Reply-To: <200303032127.h23LOVKL014587@parsec.nyphp.org> Message-ID: <20030303234154.91372.qmail@web12808.mail.yahoo.com> --- Chris Shiflett wrote: > You have to love headlines like that: > > "Major Internet vulnerability discovered in e-mail protocol" > > So, are we to assume that a vulnerability was found in the Internet > (whatever that means)? Or, are we supposed to assume the vulnerability is > in IMAP, SMTP, or POP? Come on! "Cyberspace is at risk once again as a horrible bug is eating it's way through the Internet fabric, threatning millions of users and costing billions of dollars." Or at least that's how Dan Rather would put it :) > This article is just talking about the sendmail vulnerability, if you can > manage to read through the sensationalist BS. :-) It is definitely worth > attention, however, and my systems are already patched. Yes, I prefer alerts that aren't like reading a tabloid (albeit still not that great): http://www.cert.org/advisories/CA-2003-07.html or better yet: ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-03:04.sendmail.asc ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From kenneth at ylayali.net Tue Mar 4 10:53:37 2003 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Tue, 04 Mar 2003 10:53:37 -0500 Subject: [nycphp-talk] Bulletin Major Internet vulnerability discovered in e-mail protocol In-Reply-To: <200303032342.h23Nfuj1073426@parsec.nyphp.org> References: <200303032342.h23Nfuj1073426@parsec.nyphp.org> Message-ID: <3E64CC01.8070407@ylayali.net> Hans Zaunere wrote: > --- Chris Shiflett wrote: > >>You have to love headlines like that: >> >>"Major Internet vulnerability discovered in e-mail protocol" >> >>So, are we to assume that a vulnerability was found in the Internet >>(whatever that means)? Or, are we supposed to assume the vulnerability is >>in IMAP, SMTP, or POP? > > > Come on! > > "Cyberspace is at risk once again as a horrible bug is eating it's way > through the Internet fabric, threatning millions of users and costing > billions of dollars." > > Or at least that's how Dan Rather would put it :) > > >>This article is just talking about the sendmail vulnerability, if you can >>manage to read through the sensationalist BS. :-) It is definitely worth >>attention, however, and my systems are already patched. > > > Yes, I prefer alerts that aren't like reading a tabloid (albeit still not > that great): > > http://www.cert.org/advisories/CA-2003-07.html > > or better yet: > > ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-03:04.sendmail.asc > No kidding. I think it's higher-profile because it's the first[1] vulnerability released under the Department of Homeland Security's newly watchful eyes. The announcement I got from SANS reads like a press kit[2]. Are all new vulnerabilities going to be released this way? I have a pdf of the final cyber defense plan around here someplace, but I've never been able to get through that either.. [1] I'm not sure it's the first. I scanned the text but didn't see an advisory number, the snort buffer overflow that this one shared an email with is 03-003, so maybe it's actually the second [2] I would think it's OK to post this... *********************************************************************** Here's the DHS/NIPC Advisory Remote Sendmail Header Processing Vulnerability SUMMARY: The Department of Homeland Security (DHS), National Infrastructure Protection Center (NIPC) is issuing this advisory to heighten awareness of the recently discovered Remote Sendmail Header Processing Vulnerability (CAN-2002-1337). NIPC has been working closely with the industry on vulnerability awareness and information dissemination. The Remote Sendmail Header Processing Vulnerability allows local and remote users to gain almost complete control of a vulnerable Sendmail server. Attackers gain the ability to execute privileged commands using super-user (root) access/control. This vulnerability can be exploited through a simple e-mail message containing malicious code. Sendmail is the most commonly used Mail Transfer Agent and processes an estimated 50 to 75 percent of all Internet e-mail traffic. System administrators should be aware that many Sendmail servers are not typically shielded by perimeter defense applications. A successful attacker could install malicious code, run destructive programs and modify or delete files. Additionally, attackers may gain access to other systems thru a compromised Sendmail server, depending on local configurations. Sendmail versions 5.2 up to 8.12.8 are known to be vulnerable at this time. DESCRIPTION: The Remote Sendmail Header Processing Vulnerability is exploited during the processing and evaluation of e-mail header fields collected during an SMTP transaction. Examples of these header fields are the "To", "From" and "CC" lines. The crackaddr() function in the Sendmail headers.c file allows Sendmail to evaluate whether a supplied address or list of addresses contained in the header fields is valid. Sendmail uses a static buffer to store processed data. It detects when the static buffer becomes full and stops adding characters. However, Sendmail continues processing data and several security checks are used to ensure that characters are parsed correctly. The vulnerability allows a remote attacker to gain access to the Sendmail server by sending an e-mail containing a specially crafted address field which triggers a buffer overflow. RECOMMENDATION: Due to the seriousness of this vulnerability, the NIPC is strongly recommending that system administrators who employ Sendmail take this opportunity to review the security of their Sendmail software and to either upgrade to Sendmail 8.12.8 or apply the appropriate patch for older versions as soon as possible. Patches for the vulnerability are available from Sendmail, from ISS who discovered the vulnerability and from vendors whose applications incorporate Sendmail code, including IBM, HP, SUN, Apple and SGI. Other vendors will release patches in the near future. The primary distribution site for Sendmail is: http://www.sendmail.org Patches and information are also available from the following sites: The ISS Download center http://www.iss.net/download IBM Corporation http://www.ibm.com/support/us/ Hewlett-Packard , Co. http://www.hp.com Silicon Graphics Inc. http://www.sgigate.sgi.com Apple Computer, Inc. http://www.apple.com/ Sun Microsystems, Inc. http://www.sun.com/service/support/ Common Vulnerabilities and Exposure (CVE) Project http://CVE.mitre.org As always, computer users are advised to keep their anti-virus and systems software current by checking their vendor's web sites frequently for new updates and to check for alerts put out by the DHS/NIPC, CERT/CC, ISS and other cognizant organizations. The DHS/NIPC encourages recipients of this advisory to report computer intrusions to their local FBI office (http://www.fbi.gov/contact/fo/fo.htm) and other appropriate authorities. Recipients may report incidents online to http://www.nipc.gov/incident/cirr.htm. The DHS/NIPC Watch and Warning Unit can be reached at (202) 323-3204/3205/3206 or nipc.watch at fbi.gov. ==== Background on government/industry cooperation to mitigate damage The Sendmail Vulnerability Announced Today, March 3, 2003 How Well Did The Cyber Defense Community Do? Today, hundreds of thousands of people learned of a vulnerability in the sendmail program which is widely used for Internet mail handling. A vulnerability in such a widely used open source software program presents difficult challenges for the cyber defense community - including the need to get more than twenty different software organizations to act quickly and silently to develop patches. Three primary actions are required to respond effectively to such a vulnerability: 1. Verify that the vulnerability exists and is important. 2. Contact the key technical personnel at each of the software companies and other groups that distribute sendmail (either alone or with other software) and ensure that they develop and test patches and make them ready for widespread distribution. 3. Plan and execute an early warning and distribution strategy that enables critical infrastructure organizations in the US and in partner countries to be prepared for rapid deployment of the patches once they are ready. This must be accomplished without leaking data about the vulnerability to the black hat community that exploits such vulnerabilities by creating worms like Code Red, Slapper, and Slammer. When possible, several other actions may be appropriate: 4. Provide military and other very sensitive organizations with early access to the patches so their systems can be protected even before public disclosure of the vulnerability. 5. Use sensor networks with smart filters to test for exploitation. 6. Develop and distribute filters that can block the offending packets to protect systems that cannot or will not install patches immediately. On Saturday, March 1, 2003, the US Department of Homeland Security became fully operational, although the elements of the new department had been working together for several weeks. In cybersecurity, the new Department brings together four highly visible cybersecurity agencies: (1) The National Infrastructure Protection Center from the FBI, (2) FedCIRC from the General Services Administration, (3) the National Communications System program from the US Department of Defense, and (4) the Critical Infrastructure Assurance Office from the Department of Commerce. Today's disclosure of a vulnerability in sendmail offers the opportunity to see how quickly and effectively the cyber defense community, led by this new Department, can respond to important threats. Sendmail's vulnerability offers a legitimate test because sendmail handles a large amount of Internet mail traffic and is installed on at least 1.5 million Internet-connected systems. More than half of the large ISPs and Fortune 500 companies use sendmail, as do tens of thousands of other organizations. A security hole in sendmail affects a lot of people and demands their immediate attention. You can draw your own conclusion on how well the problem is being handled. Here are the facts: 1. On Friday, February 14, telephone calls to the Department of Homeland Security (DHS) and the White House Office of Cyberspace Security alerted the US government to a suspected sendmail vulnerability. The source of the data was Internet Security Systems (ISS), a well-respected security firm with solid security research credentials, giving the data an initial base level of credibility. However, to be more certain, DHS technical experts reviewed the details of the vulnerability and especially the tests that ISS had run to prove the existence and severity of the vulnerability. They were convinced. 2. Almost immediately the DHS/White House team, working with ISS, contacted vendors that distribute sendmail, including Sun, IBM, HP, and SGI, as well as the Sendmail Consortium, the organization that develops the open source version of sendmail that is the core of sendmail distributed with both free and commercial operating systems. Partially because of government involvement, but primarily because the vulnerability involved the widely used sendmail package, the vendors immediately started working together on patches. 3. The DHS/White House staff contacted and shared what they knew with the US Department of Defense and the Federal CIO Council. Through the Federal CIO Council, the US FedCIRC and US Office of Management and Budget were added to the coordinating team. Together the government planners, ISS, and the vendors developing patches worked out a plan for public dissemination of the vulnerability information and patch distribution. 4. To help ensure that the open source LINUX and BSD distributions (Red Hat, SUSE, OpenBSD, etc.) developed patches, the Computer Emergency Response Team at Carnegie Mellon University (CERT/CC) was brought into the project. CERT/CC deployed its formalized process to inform the LINUX and BSD distribution developers and to assist them in getting the corrected source code and any additional knowledge needed to create the patch. CERT/CC (which is funded, in part, by two organizations being merged into DHS and by the DoD) also created an advisory to educate system administrators and the security community in general on the vulnerability, on which systems are affected, and on where to get the patches for each affected system. 5. Some of the large commercial vendors developed the patches very quickly, but the delayed notice to smaller sources of sendmail distributions and limited resources at those organizations meant that not all the patches would be ready by early in the week of February 23. The coordinating group faced a decision of whether to release data about the exploit before most patches were ready or to wait. The answer depended on whether they had reason to believe an exploit was already being used by attackers. They had two sources of information that led them to conclude waiting an extra week was acceptable. First, people who monitored the hacker discussion groups reported that this vulnerability did not seem to be one that was being discussed. Second, the organization that discovered the vulnerability, ISS, had deployed sensors for the exploit in a number of places around the world. Those sensors were showing no exploits. Based on both sets of data, the coordination group decided to schedule the announcement for Monday, March 3. A second-order reason to schedule a Monday announcement was that some members of the team believed that Monday-Tuesday announcements generate more rapid and complete patching than announcements made late in the week. 6. Since some of the patches were ready, the coordination group decided to provide what was available to the US DoD so that military sites could have the protection as early as possible. The military distributions took place on or around February 25 and 26. 7. On February 27 and 28, government groups in the US and in several other countries were given early warnings, without details about how the vulnerability could be exploited, to help them plan for rapid deployment of the patches when they were released on March 3. In addition to the Chief Information Officers of US Cabinet level departments, and the directors or deputy directors of national cyber security offices in several other countries, the officers of the critical infrastructure Information Sharing And Analysis Centers (ISACs) were also briefed so they could be ready for rapid information distribution to commercial organizations such as banks and utilities, that comprise the critical infrastructure. 8. On March 3, beginning about 10 am EST, alerts began flowing to federal agencies from FedCIRC and to the critical infrastructure companies from the ISACs. At noon, ISS released their advisory, followed by CERT/CC's general release. Once the data was public, the SANS Institute also issued a release and scheduled free web-based education programs. From hans at nyphp.org Tue Mar 4 12:08:06 2003 From: hans at nyphp.org (Hans Zaunere) Date: Tue, 4 Mar 2003 09:08:06 -0800 (PST) Subject: [nycphp-talk] Bulletin Major Internet vulnerability discovered in e-mail protocol In-Reply-To: <200303041605.h24Fsmi9084470@parsec.nyphp.org> Message-ID: <20030304170806.59970.qmail@web12808.mail.yahoo.com> --- Kenneth Dombrowski wrote: > Hans Zaunere wrote: > > --- Chris Shiflett wrote: > > > >>You have to love headlines like that: > >> > >>"Major Internet vulnerability discovered in e-mail protocol" > >> > >>So, are we to assume that a vulnerability was found in the Internet > >>(whatever that means)? Or, are we supposed to assume the vulnerability is > >>in IMAP, SMTP, or POP? > > > > > > Come on! > > > > "Cyberspace is at risk once again as a horrible bug is eating it's way > > through the Internet fabric, threatning millions of users and costing > > billions of dollars." > > > > Or at least that's how Dan Rather would put it :) > > > > > >>This article is just talking about the sendmail vulnerability, if you can > >>manage to read through the sensationalist BS. :-) It is definitely worth > >>attention, however, and my systems are already patched. > > > > > > Yes, I prefer alerts that aren't like reading a tabloid (albeit still not > > that great): > > > > http://www.cert.org/advisories/CA-2003-07.html > > > > or better yet: > > > > > ftp://ftp.freebsd.org/pub/FreeBSD/CERT/advisories/FreeBSD-SA-03:04.sendmail.asc > > > > No kidding. I think it's higher-profile because it's the first[1] > vulnerability released under the Department of Homeland Security's newly > watchful eyes. The announcement I got from SANS reads like a press kit[2]. > > Are all new vulnerabilities going to be released this way? I have a feeling, yes... at least for fairly important alerts. The DOHS certainly patted itself on the back on this one, and possibly slightly deservingly. But the media blows all security releases out of proportion. The Slammer worm came across as a threat to humanity, when in fact, if MSSQL admins would have applied a critical patch available last June, there wouldn't be any problem. On the bright side, the media makes a big deal that a worm is loose in MS land, while making a big deal when a risk is found in UNIX land; gives the UNIX admins a nice heads up :) ... > [2] I would think it's OK to post this... > *********************************************************************** > Here's the DHS/NIPC Advisory Wait... who's that knocking on your door! :) > > Remote Sendmail Header Processing Vulnerability > > SUMMARY: > > The Department of Homeland Security (DHS), National Infrastructure > Protection Center (NIPC) is issuing this advisory to heighten > awareness of the recently discovered Remote Sendmail Header Processing > Vulnerability (CAN-2002-1337). NIPC has been working closely with > the industry on vulnerability awareness and information dissemination. From zaunere at yahoo.com Tue Mar 4 12:14:51 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 4 Mar 2003 09:14:51 -0800 (PST) Subject: [nycphp-talk] Cool new feature on php.net In-Reply-To: <200303031857.h23IusKJ009166@parsec.nyphp.org> Message-ID: <20030304171451.4985.qmail@web12807.mail.yahoo.com> --- Adam Fields wrote: > On Mon, Mar 03, 2003 at 01:47:26PM -0500, Jon Baer wrote: > > I wish they had this for every language :-) > > > > So apparently you can just append the function in the request and it will > use your Language-Accept header to return the manual page for the requested > function ... pretty handy ... > > > > http://www.php.net/mysql_connect > > http://www.php.net/md5 > > http://www.php.net/strstr > > Cool, yes. Well, somewhat cool IMHO. > Not new - they've been doing this for quite some time now. Yeah, certainly not new. The reason I said somewhat cool is because when you implement this ErrorDocument bit on your own server, you get swamped with error logs (which I have been unable to turn off - please correct me otherwise). It is nice functionality for the user, however. The "right" way to implement this type of thing is with mod_rewrite or, even better, apache_hooks, which I'm anxious to get my "hooks" into. Albeit, not as portable. H From sterling at bumblebury.com Tue Mar 4 13:25:42 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: Tue, 4 Mar 2003 13:25:42 -0500 Subject: [nycphp-talk] Cool new feature on php.net In-Reply-To: <200303041715.h24HEsqG086899@parsec.nyphp.org> References: <200303041715.h24HEsqG086899@parsec.nyphp.org> Message-ID: <20030304182542.GA3482@bumblebury.com> > > --- Adam Fields wrote: > > On Mon, Mar 03, 2003 at 01:47:26PM -0500, Jon Baer wrote: > > > I wish they had this for every language :-) > > > > > > So apparently you can just append the function in the request and it will > > use your Language-Accept header to return the manual page for the requested > > function ... pretty handy ... > > > > > > http://www.php.net/mysql_connect > > > http://www.php.net/md5 > > > http://www.php.net/strstr > > > > Cool, yes. > > Well, somewhat cool IMHO. > > > Not new - they've been doing this for quite some time now. > > Yeah, certainly not new. > > The reason I said somewhat cool is because when you implement this > ErrorDocument bit on your own server, you get swamped with error logs (which > I have been unable to turn off - please correct me otherwise). It is nice > functionality for the user, however. > You can supress those error messages btw. -Sterling -- "Reductionists like to take things apart. The rest of us are just trying to get it together." - Larry Wall, Programming Perl, 3rd Edition From zaunere at yahoo.com Tue Mar 4 14:44:14 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 4 Mar 2003 11:44:14 -0800 (PST) Subject: [nycphp-talk] Cool new feature on php.net In-Reply-To: <200303041842.h24IfmtO090097@parsec.nyphp.org> Message-ID: <20030304194414.65354.qmail@web12805.mail.yahoo.com> --- Sterling Hughes wrote: > > > > --- Adam Fields wrote: > > > On Mon, Mar 03, 2003 at 01:47:26PM -0500, Jon Baer wrote: > > > > I wish they had this for every language :-) > > > > > > > > So apparently you can just append the function in the request and it > will > > > use your Language-Accept header to return the manual page for the > requested > > > function ... pretty handy ... > > > > > > > > http://www.php.net/mysql_connect > > > > http://www.php.net/md5 > > > > http://www.php.net/strstr > > > > > > Cool, yes. > > > > Well, somewhat cool IMHO. > > > > > Not new - they've been doing this for quite some time now. > > > > Yeah, certainly not new. > > > > The reason I said somewhat cool is because when you implement this > > ErrorDocument bit on your own server, you get swamped with error logs > (which > > I have been unable to turn off - please correct me otherwise). It is > nice > > functionality for the user, however. > > > > You can supress those error messages btw. How? Aside from anything like: ErrorLog /dev/null or ErrorLog |/mylogfilter.psh in httpd.conf. h From sterling at bumblebury.com Tue Mar 4 14:36:28 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: Tue, 4 Mar 2003 14:36:28 -0500 Subject: [nycphp-talk] Cool new feature on php.net In-Reply-To: <200303041944.h24JiJqG091481@parsec.nyphp.org> References: <200303041944.h24JiJqG091481@parsec.nyphp.org> Message-ID: <20030304193628.GD3482@bumblebury.com> > > > You can supress those error messages btw. > > How? Aside from anything like: > > ErrorLog /dev/null > > or > > ErrorLog |/mylogfilter.psh > > in httpd.conf. > Well, there you go. You can also build in error log handling into your 404 script, and supress the external logging :) Another, final option (which is what I do) is to strip them out before processing them with a log analysis tool. -Sterling > h > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- "Reductionists like to take things apart. The rest of us are just trying to get it together." - Larry Wall, Programming Perl, 3rd Edition From lss1 at netzero.net Tue Mar 4 16:16:57 2003 From: lss1 at netzero.net (LS) Date: Tue, 4 Mar 2003 16:16:57 -0500 Subject: how to pass the dynamic array indexes from one form to another in PHP 4.2 Message-ID: <004f01c2e293$652fda60$d0aeb8cd@user> hi; I have a problem.I don't know what to write in my program dynamic2.php. The program dynamic.php passes array to program dynamic2.php. What code should be written in dynamic2.php ? thnks Leo attached codes for both programs code for dynamic.php:

Please enter the name of child number $Offset
"; echo ""; } if ($Counter==0) echo"Press the button to move on"; ?>

--code for dynamic2.php:
$_GET['Number']";//? echo ""; } if ($Counter==0) echo"Press the button to move on"; ?>

-------------- next part -------------- An HTML attachment was scrubbed... URL: From rolan at omnistep.com Tue Mar 4 16:10:36 2003 From: rolan at omnistep.com (Rolan) Date: Tue, 04 Mar 2003 16:10:36 -0500 Subject: [nycphp-talk] Cool new feature on php.net In-Reply-To: <200303041952.h24JqTpi092247@parsec.nyphp.org> References: <200303041952.h24JqTpi092247@parsec.nyphp.org> Message-ID: <3E65164C.10304@omnistep.com> I believe you can even leave ErrorLog out of the httpd.conf file to leave errors unlogged. Sterling Hughes wrote: >>>You can supress those error messages btw. >>> >>> >>How? Aside from anything like: >> >>ErrorLog /dev/null >> >>or >> >>ErrorLog |/mylogfilter.psh >> >>in httpd.conf. >> >> >> > >Well, there you go. You can also build in error log handling into your >404 script, and supress the external logging :) > >Another, final option (which is what I do) is to strip them out before >processing them with a log analysis tool. > >-Sterling > > > >>h >> >> >> >> >> >> > > > From enunez at tiaa-cref.org Tue Mar 4 17:07:03 2003 From: enunez at tiaa-cref.org (Nunez, Eddy) Date: Tue, 4 Mar 2003 17:07:03 -0500 Subject: [nycphp-talk] how to pass the dynamic array indexes from one f orm to another in PHP 4.2 Message-ID: <7CE0EC1FC2D0D411910700508BE38D0F0A6D9C0D@msxnyusr01.msx.ops.tiaa-cref.org> Would help if you can tell us what you're trying to do in dynamic2. If you're trying to just loop through the children: "; } ?> -Ed -----Original Message----- From: LS [mailto:lss1 at netzero.net] Sent: Tuesday, March 04, 2003 4:16 PM To: NYPHP Talk Subject: [nycphp-talk] how to pass the dynamic array indexes from one form to another in PHP 4.2 hi; I have a problem.I don't know what to write in my program dynamic2.php. The program dynamic.php passes array to program dynamic2.php. What code should be written in dynamic2.php ? thnks Leo attached codes for both programs code for dynamic.php:

Please enter the name of child number $Offset
"; echo ""; } if ($Counter==0) echo"Press the button to move on"; ?>

--code for dynamic2.php:
$_GET['Number']";//? echo ""; } if ($Counter==0) echo"Press the button to move on"; ?>

--- 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 rolan at omnistep.com Tue Mar 4 17:18:56 2003 From: rolan at omnistep.com (Rolan) Date: Tue, 04 Mar 2003 17:18:56 -0500 Subject: [nycphp-talk] how to pass the dynamic array indexes from one f orm to another in PHP 4.2 In-Reply-To: <200303042207.h24M7Jpk095969@parsec.nyphp.org> References: <200303042207.h24M7Jpk095969@parsec.nyphp.org> Message-ID: <3E652650.3000402@omnistep.com> Hey, are you Eddy Nunez from NJIT? Solving the guys' problem: $Child is type Array. To see the data, here is an example to use (as dynamic2.php): "; } ?> You should really use a POST instead of a GET for dynamic.php. With lots of children, the url could get really messy. ~Rolan Nunez, Eddy wrote: >Would help if you can tell us what you're trying to do in dynamic2. >If you're trying to just loop through the children: > > > > foreach ( $Child as $c ) { > echo "Child #". $counter++ ." is $c
"; > } >?> > > >-Ed > >-----Original Message----- >From: LS [mailto:lss1 at netzero.net] >Sent: Tuesday, March 04, 2003 4:16 PM >To: NYPHP Talk >Subject: [nycphp-talk] how to pass the dynamic array indexes from one >form to another in PHP 4.2 > > >hi; >I have a problem.I don't know what to write in my program dynamic2.php. The >program dynamic.php passes array to program dynamic2.php. What code should >be written in dynamic2.php ? >thnks >Leo >attached codes for both programs > >code for dynamic.php: > > > >
>for ($Counter=0; $Counter<$_POST['Number']; $Counter++) >{ > $Offset = $Counter+1; > echo "

Please enter the name of child number $Offset
"; > echo ""; >} >if ($Counter==0) echo"Press the button to move on"; >?> >
>
> >
> > > >--code for dynamic2.php: > > > >$Count=0; >echo "yoe children names are :"; >do >; $Counter++) >{ > echo "

$_GET['Number']";//? > echo ""; >} >if ($Counter==0) echo"Press the button to move on"; >?> >
>
> > > > > > > > > > > > >********************************************************************** >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 nyphp at enobrev.com Tue Mar 4 17:37:46 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Tue, 4 Mar 2003 17:37:46 -0500 Subject: system commands and backups Message-ID: <000501c2e29e$ada05030$76941d18@enobrev> I am going through the concepts of a php based file backup system for server administrators. I have an idea of what i want to do. Allow admins to create a list of customer directories, set up frequency of backups (which will create cron jobs) and let the cron take care of the scheduling. So here's my question. Is there a way to allow a php script to run shell commands as an admin or specific user? In order to tarball these directories, the script will need access to them, which is going to require something better than "nobody" as a user. I figured maybe if it's run via command line php (not using lynx method) that it would be run as the current user (no idea if that's correct). But what if the client doesn't have php installed to be used via command line? Is is still possible to run commands as a different user? Thanks!!! Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From gw.nyphp at gwprogramming.com Tue Mar 4 19:49:31 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Tue, 4 Mar 2003 19:49:31 -0500 (EST) Subject: [nycphp-talk] system commands and backups Message-ID: <200303050049.TAA18076@gw00.com> > Is there a way to allow a php script to run > shell commands as an admin or specific user? Hi Mark. I have done this, but before anyone would want to do so, they should recognize the security risks involved. It may be a convenience versus security issue, wherein you may accidentally allow all of your web users (possibly everyone in the world?) to access anything that your user (or worse yet, your 'root' user) can. So I hope you already know all about that. Now, to answer your question, you may be able to set the "setuid" bit on your PHP CGI executable, together with changing the ownership of the executable itself. Then you can associate certain files or directories to use *this* PHP CGI handler instead of the default (apache module PHP, correct?). For example, if you want all files ending in '.uphp' to be executed by your special set-user PHP, you might do the following, which will allow *.php files to be executed normally, but *.uphp files will be executed by user 'marka' (or whatever): 1/ Add the following Apache .htaccess lines: Options +ExecCGI AddType cgi-script .cgi Action user-php /php.cgi AddHandler user-php .uphp 2/ Copy your PHP 4.3.1 or later CGI binary to your webserver root, and rename it as described above (php.cgi). 3/ Change the ownership as appropriate, and set the setuid bit: chown marka php.cgi chmod u+s php.cgi 4/ Sit back and wait to be hacked! One other nice thing is that this PHP parser can have its own php.ini file, which may be different from the one the rest of the webserver uses! Maybe some other better sysadmins can comment on how to make this setup more secure. Like these ideas: 1/ Run a separate httpd server on a special port using this special configuration. 2/ Restrict the special port using a firewall or ipchains or whathaveyou. 3/ chroot the filesystem for this special config, so that your whole machine won't get hacked. Another approach (which maybe I should have mentioned first) is to use 'sudo' to allow your 'nobody' user to do only certain special tasks. If your webserver is on a totally private network and you're not worried about system security, you can do a lot more. But if it's on the Internet, be aware!!! Best, George. George Webb gw.nyphp at gwprogramming.com From danielc at analysisandsolutions.com Tue Mar 4 20:03:52 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Tue, 4 Mar 2003 20:03:52 -0500 Subject: [nycphp-talk] system commands and backups In-Reply-To: <200303042237.h24MbqjW097710@parsec.nyphp.org> References: <200303042237.h24MbqjW097710@parsec.nyphp.org> Message-ID: <20030305010351.GA15478@panix.com> Hey Mark: On Tue, Mar 04, 2003 at 05:37:52PM -0500, Mark Armendariz wrote: > So here's my question. Is there a way to allow a php script to run > shell commands as an admin or specific user? Have a copy of PHP installed as a standalone binary. Write a PHP CGI, or better yet, PHP CLI script that does what you want. Put the script into a directory of the user you want the script to run as. Just to be clear, I mean their shell user directory, not their web directory. Now, call the script via the crontab of that same user. Enjoy, --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From nyphp at enobrev.com Tue Mar 4 20:05:43 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Tue, 4 Mar 2003 20:05:43 -0500 Subject: [nycphp-talk] system commands and backups In-Reply-To: <200303050049.h250nYli099671@parsec.nyphp.org> Message-ID: <001e01c2e2b3$58ee22a0$76941d18@enobrev> Actaully, the security concerns you're mentioning is the primary reason for my shout to the group. I really want to offer a good solution, but it seems like it leaves a pretty wide hole open. Anyone else know of ways to run special user privileged commands with half the fat? Thanks George. Mark > -----Original Message----- > From: George Webb [mailto:gw.nyphp at gwprogramming.com] > Sent: Tuesday, March 04, 2003 7:50 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] system commands and backups > > > > Is there a way to allow a php script to run > > shell commands as an admin or specific user? > > Hi Mark. I have done this, but before anyone would want > to do so, they should recognize the security risks involved. > It may be a convenience versus security issue, wherein you > may accidentally allow all of your web users (possibly > everyone in the world?) to access anything that your user > (or worse yet, your 'root' user) can. > > So I hope you already know all about that. Now, > to answer your question, you may be able to set the "setuid" > bit on your PHP CGI executable, together with changing the > ownership of the executable itself. Then you can associate > certain files or directories to use *this* PHP CGI handler > instead of the default (apache module PHP, correct?). > > For example, if you want all files ending in '.uphp' > to be executed by your special set-user PHP, you might do the > following, which will allow *.php files to be executed > normally, but *.uphp files will be executed by user 'marka' > (or whatever): > > 1/ Add the following Apache .htaccess lines: > > Options +ExecCGI > AddType cgi-script .cgi > Action user-php /php.cgi > AddHandler user-php .uphp > > 2/ Copy your PHP 4.3.1 or later CGI binary to > your webserver root, and rename it as described above (php.cgi). > > 3/ Change the ownership as appropriate, and > set the setuid bit: > > chown marka php.cgi > chmod u+s php.cgi > > 4/ Sit back and wait to be hacked! > > > One other nice thing is that this PHP parser can > have its own php.ini file, which may be different from the > one the rest of the webserver uses! > > Maybe some other better sysadmins can comment on > how to make this setup more secure. Like these ideas: > > 1/ Run a separate httpd server on a special port > using this special configuration. > > 2/ Restrict the special port using a firewall or > ipchains or whathaveyou. > > 3/ chroot the filesystem for this special config, > so that your whole machine won't get hacked. > > > Another approach (which maybe I should have mentioned > first) is to use 'sudo' to allow your 'nobody' user to do > only certain special tasks. > > If your webserver is on a totally private network and > you're not worried about system security, you can do a lot > more. But if it's on the Internet, be aware!!! > > Best, George. > > > George Webb > gw.nyphp at gwprogramming.com > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > > From ucsu at anapraxis.com Tue Mar 4 20:05:39 2003 From: ucsu at anapraxis.com (Weston Houghton) Date: Tue, 4 Mar 2003 20:05:39 -0500 Subject: [nycphp-talk] system commands and backups In-Reply-To: <200303050049.h250nYjY099671@parsec.nyphp.org> Message-ID: <9464E81C-4EA6-11D7-B67D-000393A95C72@anapraxis.com> Well, as of PHP 4.3 you have a command-line interface to PHP. As such it becomes much easier to run a php script as a specific user. The question then becomes do you need a web interface for it? Wes On Tuesday, March 4, 2003, at 07:49 PM, George Webb wrote: >> Is there a way to allow a php script to run >> shell commands as an admin or specific user? > > Hi Mark. I have done this, but before anyone would want > to do so, they should recognize the security risks involved. > It may be a convenience versus security issue, wherein you > may accidentally allow all of your web users (possibly > everyone in the world?) to access anything that your user > (or worse yet, your 'root' user) can. > > So I hope you already know all about that. Now, > to answer your question, you may be able to set the "setuid" > bit on your PHP CGI executable, together with changing the > ownership of the executable itself. Then you can associate > certain files or directories to use *this* PHP CGI handler > instead of the default (apache module PHP, correct?). > > For example, if you want all files ending in '.uphp' > to be executed by your special set-user PHP, you might do the > following, which will allow *.php files to be executed normally, > but *.uphp files will be executed by user 'marka' (or whatever): > > 1/ Add the following Apache .htaccess lines: > > Options +ExecCGI > AddType cgi-script .cgi > Action user-php /php.cgi > AddHandler user-php .uphp > > 2/ Copy your PHP 4.3.1 or later CGI binary to > your webserver root, and rename it as described above > (php.cgi). > > 3/ Change the ownership as appropriate, and > set the setuid bit: > > chown marka php.cgi > chmod u+s php.cgi > > 4/ Sit back and wait to be hacked! > > > One other nice thing is that this PHP parser can > have its own php.ini file, which may be different from the > one the rest of the webserver uses! > > Maybe some other better sysadmins can comment on > how to make this setup more secure. Like these ideas: > > 1/ Run a separate httpd server on a special port > using this special configuration. > > 2/ Restrict the special port using a firewall or > ipchains or whathaveyou. > > 3/ chroot the filesystem for this special config, > so that your whole machine won't get hacked. > > > Another approach (which maybe I should have mentioned > first) is to use 'sudo' to allow your 'nobody' user to do only > certain special tasks. > > If your webserver is on a totally private network and > you're not worried about system security, you can do a lot more. > But if it's on the Internet, be aware!!! > > Best, George. > > > George Webb > gw.nyphp at gwprogramming.com > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > ------------------------------------------------------------------------ --- The selection and placement of letters on this page was determined automatically by a computer program. Any resemblance to actual words, sentences, or paragraphs is pure coincidence, and no liability will be assumed for such coincidences. ------------------------------------------------------------------------ --- From nyphp at enobrev.com Tue Mar 4 20:08:31 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Tue, 4 Mar 2003 20:08:31 -0500 Subject: [nycphp-talk] system commands and backups In-Reply-To: <200303050106.h2515vli001528@parsec.nyphp.org> Message-ID: <001f01c2e2b3$bcaf65b0$76941d18@enobrev> They are asking for a web interface, but I suppose I could just allow for settings changes within the interface, while the script uses those settings to make things happen. OF course I'll also have to see what their upgrade schedule is. Thanks.. Mark > -----Original Message----- > From: Weston Houghton [mailto:ucsu at anapraxis.com] > Sent: Tuesday, March 04, 2003 8:06 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] system commands and backups > > > > Well, as of PHP 4.3 you have a command-line interface to PHP. > As such > it becomes much easier to run a php script as a specific user. The > question then becomes do you need a web interface for it? > > Wes > > > On Tuesday, March 4, 2003, at 07:49 PM, George Webb wrote: > > >> Is there a way to allow a php script to run > >> shell commands as an admin or specific user? > > > > Hi Mark. I have done this, but before anyone would want > > to do so, they should recognize the security risks > involved. It may be > > a convenience versus security issue, wherein you may accidentally > > allow all of your web users (possibly everyone in the world?) to > > access anything that your user (or worse yet, your 'root' user) can. > > > > So I hope you already know all about that. Now, > > to answer your question, you may be able to set the "setuid" bit on > > your PHP CGI executable, together with changing the > ownership of the > > executable itself. Then you can associate certain files or > > directories to use *this* PHP CGI handler instead of the default > > (apache module PHP, correct?). > > > > For example, if you want all files ending in '.uphp' > > to be executed by your special set-user PHP, you might do the > > following, which will allow *.php files to be executed > normally, but > > *.uphp files will be executed by user 'marka' (or whatever): > > > > 1/ Add the following Apache .htaccess lines: > > > > Options +ExecCGI > > AddType cgi-script .cgi > > Action user-php /php.cgi > > AddHandler user-php .uphp > > > > 2/ Copy your PHP 4.3.1 or later CGI binary to > > your webserver root, and rename it as described above (php.cgi). > > > > 3/ Change the ownership as appropriate, and > > set the setuid bit: > > > > chown marka php.cgi > > chmod u+s php.cgi > > > > 4/ Sit back and wait to be hacked! > > > > > > One other nice thing is that this PHP parser can > > have its own php.ini file, which may be different from the one the > > rest of the webserver uses! > > > > Maybe some other better sysadmins can comment on > > how to make this setup more secure. Like these ideas: > > > > 1/ Run a separate httpd server on a special port > > using this special configuration. > > > > 2/ Restrict the special port using a firewall or > > ipchains or whathaveyou. > > > > 3/ chroot the filesystem for this special config, > > so that your whole machine won't get hacked. > > > > > > Another approach (which maybe I should have mentioned > > first) is to use 'sudo' to allow your 'nobody' user to do > only certain > > special tasks. > > > > If your webserver is on a totally private network and > > you're not worried about system security, you can do a lot > more. But > > if it's on the Internet, be aware!!! > > > > Best, George. > > > > > > George Webb > > gw.nyphp at gwprogramming.com > > > > > > > > > > > > > > > > -------------------------------------------------------------- > ---------- > --- > The selection and placement of letters on this page was > determined automatically by a computer program. Any > resemblance to actual words, sentences, or paragraphs is pure > coincidence, and no liability will be assumed for such coincidences. > -------------------------------------------------------------- > ---------- > --- > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > > From danielc at analysisandsolutions.com Tue Mar 4 20:37:56 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Tue, 4 Mar 2003 20:37:56 -0500 Subject: [nycphp-talk] system commands and backups In-Reply-To: <200303050108.h2518cjW002825@parsec.nyphp.org> References: <200303050108.h2518cjW002825@parsec.nyphp.org> Message-ID: <20030305013756.GA18356@panix.com> On Tue, Mar 04, 2003 at 08:08:38PM -0500, Mark Armendariz wrote: > > They are asking for a web interface Web interface for server administration? OUCH!!!! --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From chun_lam at hotmail.com Tue Mar 4 22:01:26 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Tue, 04 Mar 2003 22:01:26 -0500 Subject: [nycphp-talk] Cool new feature on php.net Message-ID: Can you describe this process in detail? ----Original Message Follows---- From: Sterling Hughes Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] Cool new feature on php.net Date: Mon, 3 Mar 2003 14:27:54 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc6-f28.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 3 Mar 2003 11:28:13 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h23JRsEF013683for ; Mon, 3 Mar 2003 14:28:12 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200303031928.h23JRsEF013683 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 03 Mar 2003 19:28:14.0078 (UTC) FILETIME=[08B181E0:01C2E1BB] > Hey! This strikes me as a really great way to mix dynamic content with > static. The way php.net enables this feature is to use an Apache > directive to invoke a script if the requested page isn't found: > > ># Handle errors with local error handler script > > ErrorDocument 401 /error/index.php > > > But another way to look at this is just the opposite: for most requests, > I want the script to generate a page dynamically based on the request. > But every now and then (a cache for popular pages, say, or an override) > a page will actually exist at the requested URI, which will then be served. > > Off to experiment I go! > Yep, you can do the same thing with a mod_rewrite handler btw (it will give you more control at the sake of portability.) -Sterling > chris. > > > > Adam Fields wrote: > > >On Mon, Mar 03, 2003 at 01:56:54PM -0500, Adam Fields wrote: > > > > > >>Cool, yes. Not new - they've been doing this for quite some time now. > >> > >> > > > >Oh, also - more details (including instructions on how to set up > >similar things for your own Apache server) are here: > > > >http://www.php.net/urlhowto.php > > > > > > > > > -- > If US military spending was cut by 1/6th, we could spend $100 billion on the arts, with change. > Imagine: culture instead of killing. > > > > > > -- "Reductionists like to take things apart. The rest of us are just trying to get it together." - Larry Wall, Programming Perl, 3rd Edition --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From rolan at omnistep.com Tue Mar 4 23:32:23 2003 From: rolan at omnistep.com (Rolan) Date: Tue, 04 Mar 2003 23:32:23 -0500 Subject: [nycphp-talk] system commands and backups In-Reply-To: <200303050106.h2515opk001415@parsec.nyphp.org> References: <200303050106.h2515opk001415@parsec.nyphp.org> Message-ID: <3E657DD7.8030007@omnistep.com> 1) create some shell scripts that do specifically what you want. (tar/gzip up directories?) 2) configure sudo so that those scripts can be run as another user (authorized to be executable by "nobody") 3) call the scripts from within php. As always, your script should perform strict sanity checks before passing data to the "system call". ~Rolan Mark Armendariz wrote: >Actaully, the security concerns you're mentioning is the primary reason >for my shout to the group. I really want to offer a good solution, but >it seems like it leaves a pretty wide hole open. > >Anyone else know of ways to run special user privileged commands with >half the fat? > >Thanks George. > >Mark > > > >>-----Original Message----- >>From: George Webb [mailto:gw.nyphp at gwprogramming.com] >>Sent: Tuesday, March 04, 2003 7:50 PM >>To: NYPHP Talk >>Subject: Re: [nycphp-talk] system commands and backups >> >> >> >> >>>Is there a way to allow a php script to run >>>shell commands as an admin or specific user? >>> >>> >>Hi Mark. I have done this, but before anyone would want >>to do so, they should recognize the security risks involved. >>It may be a convenience versus security issue, wherein you >>may accidentally allow all of your web users (possibly >>everyone in the world?) to access anything that your user >>(or worse yet, your 'root' user) can. >> >> So I hope you already know all about that. Now, >>to answer your question, you may be able to set the "setuid" >>bit on your PHP CGI executable, together with changing the >>ownership of the executable itself. Then you can associate >>certain files or directories to use *this* PHP CGI handler >>instead of the default (apache module PHP, correct?). >> >> For example, if you want all files ending in '.uphp' >>to be executed by your special set-user PHP, you might do the >>following, which will allow *.php files to be executed >>normally, but *.uphp files will be executed by user 'marka' >>(or whatever): >> >> 1/ Add the following Apache .htaccess lines: >> >>Options +ExecCGI >>AddType cgi-script .cgi >>Action user-php /php.cgi >>AddHandler user-php .uphp >> >> 2/ Copy your PHP 4.3.1 or later CGI binary to >>your webserver root, and rename it as described above (php.cgi). >> >> 3/ Change the ownership as appropriate, and >>set the setuid bit: >> >>chown marka php.cgi >>chmod u+s php.cgi >> >> 4/ Sit back and wait to be hacked! >> >> >> One other nice thing is that this PHP parser can >>have its own php.ini file, which may be different from the >>one the rest of the webserver uses! >> >> Maybe some other better sysadmins can comment on >>how to make this setup more secure. Like these ideas: >> >> 1/ Run a separate httpd server on a special port >>using this special configuration. >> >> 2/ Restrict the special port using a firewall or >>ipchains or whathaveyou. >> >> 3/ chroot the filesystem for this special config, >>so that your whole machine won't get hacked. >> >> >> Another approach (which maybe I should have mentioned >>first) is to use 'sudo' to allow your 'nobody' user to do >>only certain special tasks. >> >> If your webserver is on a totally private network and >>you're not worried about system security, you can do a lot >>more. But if it's on the Internet, be aware!!! >> >>Best, George. >> >> >>George Webb >>gw.nyphp at gwprogramming.com >> >> >> >> >> >> >> >> >> >> > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > From mikeh at netxinc.com Wed Mar 5 09:08:20 2003 From: mikeh at netxinc.com (Mike Hjorleifsson) Date: Wed, 5 Mar 2003 09:08:20 -0500 Subject: [nycphp-talk] system commands and backups In-Reply-To: <200303050138.h251c7l8003741@parsec.nyphp.org> Message-ID: <003201c2e320$b0e5bd20$83fea8c0@NETXINC.NET> Why not just customize webmin ? -----Original Message----- From: Analysis & Solutions [mailto:danielc at analysisandsolutions.com] Sent: Tuesday, March 04, 2003 8:38 PM To: NYPHP Talk Subject: Re: [nycphp-talk] system commands and backups On Tue, Mar 04, 2003 at 08:08:38PM -0500, Mark Armendariz wrote: > > They are asking for a web interface Web interface for server administration? OUCH!!!! --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 --- Unsubscribe at http://nyphp.org/list/ --- From cmerlo at turing.matcmp.ncc.edu Wed Mar 5 09:12:29 2003 From: cmerlo at turing.matcmp.ncc.edu (Christopher R. Merlo) Date: Wed, 5 Mar 2003 09:12:29 -0500 Subject: [nycphp-talk] system commands and backups In-Reply-To: <200303050437.h254aOsA007044@parsec.nyphp.org>; from rolan@omnistep.com on Tue, Mar 04, 2003 at 11:36:24PM -0500 References: <200303050437.h254aOsA007044@parsec.nyphp.org> Message-ID: <20030305091229.A25884@turing.matcmp.ncc.edu> On 2003-03-04 23:36 -0500, Rolan wrote: > 1) create some shell scripts that do specifically what you want. > (tar/gzip up directories?) > 2) configure sudo so that those scripts can be run as another user > (authorized to be executable by "nobody") > 3) call the scripts from within php. I have root access to the box I need to backup, and so I don't even use sudo. As root, I made a cron job like: tar cfz stuff.tgz /all/my/stuff && scp stuff.tgz cmerlo at otherbox:~/backups Nice and neat, no PHP involved. Certainly not web configurable, but I tend to see that as a good thing. -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo Linux: Because a 486 is a terrible thing to waste. From rolan at omnistep.com Wed Mar 5 10:04:53 2003 From: rolan at omnistep.com (Rolan) Date: Wed, 05 Mar 2003 10:04:53 -0500 Subject: [nycphp-talk] system commands and backups In-Reply-To: <200303051413.h25ECXpk016421@parsec.nyphp.org> References: <200303051413.h25ECXpk016421@parsec.nyphp.org> Message-ID: <3E661215.4030604@omnistep.com> yea, I have root on the boxes I work on too, but the sudo thing is sort of an "extra layer" of protection. Actually, I was using it because I needed to create/manage files and directories under the ownership of a specific user (Postfix). ~Rolan Christopher R. Merlo wrote: >On 2003-03-04 23:36 -0500, Rolan wrote: > >I have root access to the box I need to backup, and so I don't even >use sudo. As root, I made a cron job like: >tar cfz stuff.tgz /all/my/stuff && scp stuff.tgz cmerlo at otherbox:~/backups > >Nice and neat, no PHP involved. Certainly not web configurable, but I >tend to see that as a good thing. > > > From nyphp at enobrev.com Wed Mar 5 12:24:10 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Wed, 5 Mar 2003 12:24:10 -0500 Subject: [nycphp-talk] system commands and backups In-Reply-To: <200303051516.h25FFnli018666@parsec.nyphp.org> Message-ID: <01a301c2e33c$094d29b0$76941d18@enobrev> On my own servers, I already have a couple scripts in place to take care of a ll backups, incremetally with storage on separate drives and all that fun stuff. But the client want his web configurable, and who am I to say no when the client already knows the risks at hand and my landlord is waiting for payment, :) > -----Original Message----- > From: Rolan [mailto:rolan at omnistep.com] > Sent: Wednesday, March 05, 2003 10:16 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] system commands and backups > > > yea, I have root on the boxes I work on too, but > the sudo thing is sort of an "extra layer" of protection. > > Actually, I was using it because I needed to create/manage > files and directories under the ownership of a specific user > (Postfix). > > ~Rolan > > Christopher R. Merlo wrote: > > >On 2003-03-04 23:36 -0500, Rolan wrote: > > > >I have root access to the box I need to backup, and so I > don't even use > >sudo. As root, I made a cron job like: tar cfz stuff.tgz > /all/my/stuff > >&& scp stuff.tgz cmerlo at otherbox:~/backups > > > >Nice and neat, no PHP involved. Certainly not web > configurable, but I > >tend to see that as a good thing. > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > > From tom at supertom.com Wed Mar 5 14:06:55 2003 From: tom at supertom.com (tom at supertom.com) Date: Wed, 5 Mar 2003 14:06:55 -0500 Subject: [nycphp-talk] Announcing the Long Island PHP Users Group In-Reply-To: <200303042117.h24LGNrO093942@parsec.nyphp.org> Message-ID: (Also posted on LILUG, sorry to those who received two copies!) Hello All, I would like to start a Long Island PHP users group for the folks out here that cannot travel to Manhattan for NYPHP meetings, and am looking for others who may be interested in the same. I've checked with my boss, and he is supportive of the idea, so I can provide the following for now: - Meeting space - our office (Hauppauge) will hold about 15 or so people, and we can secure other space if we need it. - Hosting space - for a website/mailing list, etc. I have a dedicated machine running Linux, the mailman software and Apache/PHP at www.liphp.org - Computers/Network - we have several computers available in the office for demos, surfing, etc. - Coffee, bottled water, etc - we have that stuff here for the employees, so ordering a little more isn't such a big deal. I figured that we could meet the last week of every month (Mon/Wed/Friday is good for me, but whatever the group decides is fine), as to not conflict with LILUG. We have registered the domain liphp.org, and the website and mailing list could operate from there (the mailing list is already operational). Newbies and experienced PHP developers are both strongly encouraged to attend. We would like the group to cater to both. Personally, I feel that promoting professional use of PHP will only give it more credibility in the corporate world, which is a good thing for all of us. But, as I said before, the group is meant for both parties, and in fact, if we can't get any volunteers, I figured I would give an overview of PHP in terms of features, use, and installation. I invite everyone interested in PHP to join the mailing list. (Of course, the member list not available to anyone except the administrators.) http://www.liphp.org/mailman/listinfo/liphp If you would to volunteer in any way, we need the following: * Speakers for our meetings * A website * System Administrator for our LIPHP server * Promotion * Someone to work on a mission/charter, and officers * Maybe a projector? and anything else that I haven't thought of (which I'm sure is plenty). I welcome your comments and questions. Since this is a new creation, I am not married to any of the ideas above (except the concept of a Long Island PHP users group - I like that idea, of course!) and encourage suggestions. Any problems with the mailing list, please let me know as well. Thanks, Tom Melendez From mz34 at nyu.edu Wed Mar 5 15:10:29 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Wed, 5 Mar 2003 15:10:29 -0500 Subject: password for PHPCON East Message-ID: <82C09AD7-4F46-11D7-A8FA-00039344DCA8@nyu.edu> 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? MZ _________________ Matthew Zimmerman Humanities Computing Group, NYU Tel: 212.998.3038 Fax: 212.995.4120 From zaunere at yahoo.com Wed Mar 5 16:07:15 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 5 Mar 2003 13:07:15 -0800 (PST) Subject: [nycphp-talk] password for PHPCON East In-Reply-To: <200303052012.h25KArfB025021@parsec.nyphp.org> Message-ID: <20030305210715.19895.qmail@web12807.mail.yahoo.com> 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 mz34 at nyu.edu Wed Mar 5 16:10:08 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Wed, 5 Mar 2003 16:10:08 -0500 Subject: [nycphp-talk] password for PHPCON East In-Reply-To: <200303052107.h25L7IbF026579@parsec.nyphp.org> Message-ID: excellent! how much is the discount? Matt From mikeh at dtev.com Thu Mar 6 00:34:24 2003 From: mikeh at dtev.com (DTEV) Date: Wed, 5 Mar 2003 21:34:24 -0800 Subject: [nycphp-talk] system commands and backups References: <200303050436.h254aOl8007044@parsec.nyphp.org> Message-ID: <007501c2e3a2$0c7f6d80$64fea8c0@laptop> Gents... I need a php expert for a few days of web work. Is it ok to post the requirements here ? From lists at ny-tech.net Thu Mar 6 00:13:54 2003 From: lists at ny-tech.net (Nasir Zubair) Date: Thu, 6 Mar 2003 00:13:54 -0500 (Eastern Standard Time) Subject: Setting up more than one version of PHP. Message-ID: <3E66D912.000003.00216@nyt-001> Is it possible to run multiple versions of PHP on windows. I was wanting to play around with PHP5 snaps, but couldn't set it up while trying to retain 4 3.1. BTW, I'm running 4.3.1 on XP Pro, as CGI with Apache 1.3.27 Regards, Nasir From tech_learner at yahoo.com Thu Mar 6 02:59:24 2003 From: tech_learner at yahoo.com (Tracy) Date: Wed, 5 Mar 2003 23:59:24 -0800 (PST) Subject: [nycphp-talk] Setting up more than one version of PHP. In-Reply-To: <200303060514.h265DYfn034928@parsec.nyphp.org> Message-ID: <20030306075924.54115.qmail@web14305.mail.yahoo.com> Yes, i have heard its possible. i remember reading about it in the read me text file in the zip of php4.3.1. if i remember right u r supposed to leave one dll in the installation dir n not move it to the windows. .. just refer BTW, i am on Windows 98, so u may need to check on that too Tracy Nasir Zubair wrote: Is it possible to run multiple versions of PHP on windows. I was wanting to play around with PHP5 snaps, but couldn't set it up while trying to retain 4 3.1. BTW, I'm running 4.3.1 on XP Pro, as CGI with Apache 1.3.27 Regards, Nasir --- Unsubscribe at http://nyphp.org/list/ --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Thu Mar 6 12:25:49 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Thu, 6 Mar 2003 12:25:49 -0500 Subject: [nycphp-talk] Setting up more than one version of PHP. In-Reply-To: <200303060513.h265DYVF034928@parsec.nyphp.org> References: <200303060513.h265DYVF034928@parsec.nyphp.org> Message-ID: <20030306172548.GA13358@panix.com> Hi Nasir: On Thu, Mar 06, 2003 at 12:13:34AM -0500, Nasir Zubair wrote: > Is it possible to run multiple versions of PHP on windows. I was wanting to > play around with PHP5 snaps, but couldn't set it up while trying to retain 4 > 3.1. Absolutely. I'm writing this away from my office, so please forgive my being vague... Setup the PHP executables and supporting files in separate directories. Then, in your httpd.conf file, duplicate your PHP handlers (you know, AddHandler, Action, etc). Have one group process, for example, .php pointing to the php5 dir and the other process .htm files pointing to the php4 directory. Make sense? If not, I can follow up with real world examples when i get back. --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From lists at ny-tech.net Thu Mar 6 15:40:12 2003 From: lists at ny-tech.net (Nasir Zubair) Date: Thu, 6 Mar 2003 15:40:12 -0500 (Eastern Standard Time) Subject: [nycphp-talk] Setting up more than one version of PHP. References: <200303061726.h26HPpav045039@parsec.nyphp.org> Message-ID: <3E67B22C.000001.01304@nyt-001> Cool, that did the trick. In the process I also figured out that Nuspehere's PHPed had added some lines into my php.ini (4.3.1) that was breaking up extensions. Thanks Dan. - Nasir -------Original Message------- From: talk at nyphp.org Date: Thursday, March 06, 2003 12:26:22 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Setting up more than one version of PHP. Hi Nasir: On Thu, Mar 06, 2003 at 12:13:34AM -0500, Nasir Zubair wrote: > Is it possible to run multiple versions of PHP on windows. I was wanting to > play around with PHP5 snaps, but couldn't set it up while trying to retain 4 > 3.1. Absolutely. I'm writing this away from my office, so please forgive my being vague... Setup the PHP executables and supporting files in separate directories. Then, in your httpd.conf file, duplicate your PHP handlers (you know, AddHandler, Action, etc). Have one group process, for example, .php pointing to the php5 dir and the other process .htm files pointing to the php4 directory. Make sense? If not, I can follow up with real world examples when i get back. --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 --- Unsubscribe at http://nyphp.org/list/ --- . -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IMSTP.gif Type: image/gif Size: 494 bytes Desc: not available URL: From lss1 at netzero.net Thu Mar 6 16:37:40 2003 From: lss1 at netzero.net (LS) Date: Thu, 6 Mar 2003 16:37:40 -0500 Subject: [nycphp-talk] how to pass the dynamic array indexes from one f orm to another in PHP 4.2 References: <200303042207.h24M7Jp6095969@parsec.nyphp.org> Message-ID: <006001c2e428$9e308580$c9a1b8cd@user> hi,ed; I tried the code you sent to me and it didn't work. I can't find anywhere the syntax for passing dynamic array from from one form to another? the problem is in the program dynamic2.php thnks Leo attached codes for both programs code for dynamic.php:

Please enter the name of child number $Offset
"; echo ""; } if ($Counter==0) echo"Press the button to move on"; ?>

--code for dynamic2.php: <

----- Original Message ----- From: "Nunez, Eddy" To: "NYPHP Talk" Sent: Tuesday, March 04, 2003 5:07 PM Subject: RE: [nycphp-talk] how to pass the dynamic array indexes from one f orm to another in PHP 4.2 > > Would help if you can tell us what you're trying to do in dynamic2. > If you're trying to just loop through the children: > > > > foreach ( $Child as $c ) { > echo "Child #". $counter++ ." is $c
"; > } > ?> > > > -Ed > > -----Original Message----- > From: LS [mailto:lss1 at netzero.net] > Sent: Tuesday, March 04, 2003 4:16 PM > To: NYPHP Talk > Subject: [nycphp-talk] how to pass the dynamic array indexes from one > form to another in PHP 4.2 > > > hi; > I have a problem.I don't know what to write in my program dynamic2.php. The > program dynamic.php passes array to program dynamic2.php. What code should > be written in dynamic2.php ? > thnks > Leo > attached codes for both programs > > code for dynamic.php: > > > >
> for ($Counter=0; $Counter<$_POST['Number']; $Counter++) > { > $Offset = $Counter+1; > echo "

Please enter the name of child number $Offset
"; > echo ""; > } > if ($Counter==0) echo"Press the button to move on"; > ?> >
>
> >
> > > > --code for dynamic2.php: > > > > $Count=0; > echo "yoe children names are :"; > do > ; $Counter++) > { > echo "

$_GET['Number']";//? > echo ""; > } > if ($Counter==0) echo"Press the button to move on"; > ?> >
>
> > > > > > > > > > > > > ********************************************************************** > 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 rolan at omnistep.com Thu Mar 6 17:03:05 2003 From: rolan at omnistep.com (Rolan) Date: Thu, 06 Mar 2003 17:03:05 -0500 Subject: [nycphp-talk] how to pass the dynamic array indexes from one f orm to another in PHP 4.2 In-Reply-To: <200303062137.h26Lb3bT049871@parsec.nyphp.org> References: <200303062137.h26Lb3bT049871@parsec.nyphp.org> Message-ID: <3E67C599.8090004@omnistep.com> This might be your problem: * <* ~Rolan LS wrote: >hi,ed; >I tried the code you sent to me and it didn't work. I can't find anywhere >the syntax for passing dynamic array from from one form to another? the >problem is in the program dynamic2.php >thnks >Leo >attached codes for both programs > >code for dynamic.php: > > > >
>for ($Counter=0; $Counter<$_POST['Number']; $Counter++) >{ > $Offset = $Counter+1; > echo "

Please enter the name of child number $Offset
"; > echo ""; >} >if ($Counter==0) echo"Press the button to move on"; >?> >
>
> >
> > > >--code for dynamic2.php: >< > > >$counter=1; > foreach ( $_GET["Child"] as $c ) { >echo "Child #". $counter++ ." is $c "; > } >?> >
>
> > >----- Original Message ----- >From: "Nunez, Eddy" >To: "NYPHP Talk" >Sent: Tuesday, March 04, 2003 5:07 PM >Subject: RE: [nycphp-talk] how to pass the dynamic array indexes from one f >orm to another in PHP 4.2 > > > > >>Would help if you can tell us what you're trying to do in dynamic2. >>If you're trying to just loop through the children: >> >> >> >>> foreach ( $Child as $c ) { >>echo "Child #". $counter++ ." is $c
"; >> } >>?> >> >> >>-Ed >> >>-----Original Message----- >>From: LS [mailto:lss1 at netzero.net] >>Sent: Tuesday, March 04, 2003 4:16 PM >>To: NYPHP Talk >>Subject: [nycphp-talk] how to pass the dynamic array indexes from one >>form to another in PHP 4.2 >> >> >>hi; >>I have a problem.I don't know what to write in my program dynamic2.php. >> >> >The > > >>program dynamic.php passes array to program dynamic2.php. What code should >>be written in dynamic2.php ? >>thnks >>Leo >>attached codes for both programs >> >>code for dynamic.php: >> >> >> >>
>>>for ($Counter=0; $Counter<$_POST['Number']; $Counter++) >>{ >> $Offset = $Counter+1; >> echo "

Please enter the name of child number $Offset
"; >> echo ""; >>} >>if ($Counter==0) echo"Press the button to move on"; >>?> >>
>>
>> >>
>> >> >> >>--code for dynamic2.php: >> >> >> >>>$Count=0; >>echo "yoe children names are :"; >>do >>; $Counter++) >>{ >> echo "

$_GET['Number']";//? >> echo ""; >>} >>if ($Counter==0) echo"Press the button to move on"; >>?> >>
>>
>> >> >> >> >> >> >> >> >> >> >> >> >>********************************************************************** >>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/ --- > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at nyphp.org Thu Mar 6 20:09:02 2003 From: hans at nyphp.org (Hans Zaunere) Date: Thu, 6 Mar 2003 17:09:02 -0800 (PST) Subject: [nycphp-talk] Announcing the Long Island PHP Users Group In-Reply-To: <200303051912.h25JBmfB023680@parsec.nyphp.org> Message-ID: <20030307010902.74169.qmail@web12806.mail.yahoo.com> Hi Tom, --- tom at supertom.com wrote: > > I would like to start a Long Island PHP users group for the folks out here This is great - I wish LIPHP the best and the support of New York PHP moving forward. I look forward to working together and please don't hesitate to contact me in the future. Also, I could probably do some system administration for you if you'd like. Best, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From zaunere at yahoo.com Thu Mar 6 20:12:03 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 6 Mar 2003 17:12:03 -0800 (PST) Subject: [nycphp-talk] system commands and backups In-Reply-To: <200303060238.h262aufB032220@parsec.nyphp.org> Message-ID: <20030307011203.71102.qmail@web12805.mail.yahoo.com> --- DTEV wrote: > Gents... I need a php expert for a few days of web work. > Is it ok to post the requirements here ? The NYPHP-Jobs list is more appropiate for this type of thing. You can subscribe at http://nyphp.org/list/ and post to jobs at nyphp.org. There's also a jobs board, http://jobs.nyphp.org and you can submit job descriptions to jobs-submit at nyphp.org H From zaunere at yahoo.com Thu Mar 6 20:28:04 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 6 Mar 2003 17:28:04 -0800 (PST) Subject: [nycphp-talk] system commands and backups In-Reply-To: <200303042238.h24MbqtQ097710@parsec.nyphp.org> Message-ID: <20030307012804.20580.qmail@web12804.mail.yahoo.com> Hi Mark, --- Mark Armendariz wrote: > I am going through the concepts of a php based file backup system for > server administrators. I have an idea of what i want to do. Allow > admins to create a list of customer directories, set up frequency of > backups (which will create cron jobs) and let the cron take care of the > scheduling. OK.. through a web interface I'm assuming. > So here's my question. Is there a way to allow a php script to run > shell commands as an admin or specific user? Well, yes... but the question could mean a couple of things. If you need the apache process that PHP runs in, if you're using mod_php then you'll need suEXEC (I think) to run as a different user than the default. This is not recommended, especially to have it run as root. If you're using the CGI version of PHP (not CLI mind you) then it'll run as the process who runs it. In Linux anyway, you can not setuid a script (it has to be a binary). Although there are ways around this, I wouldn't pursue it. > In order to tarball these directories, the script will need access to > them, which is going to require something better than "nobody" as a user. > I figured maybe if it's run via command line php (not using lynx method) > that it would be run as the current user (no idea if that's correct). But > what if the client doesn't have php installed to be used via command > line? Is is still possible to run commands as a different user? I have a system similar to this and I would take a different approach. For one, I have two distinct installs of PHP on my systems - /usr/local/php/ and /usr/local/psh/ - with each having their own php.ini. They are compiled as a Apache DSO and --disable-cgi (which defaults to CLI in 4.3.1), respectivly. I also highly recommend 4.3.1 for CLI use. Now on one tier, you would have a web interface that would let users setup jobs that they want for backup - let's say you store this in MySQL. Then, you'd have a PHP script (using /usr/local/psh/bin/php, which I link as /bin/psh for convience) that would be run by root's cron every hour. This script would pull the jobs from MySQL, do sanity checks, do the backup, set proper permissions, etc. This way you eliminate security issues, and since the script is being run as root, you'll have full access to all the user's files and can make proper backups. A fairly clean system I feel, that keeps the web away from your underlying system, eases maintenance, and it fairly straightforward. H From georgenatalino at yahoo.com Thu Mar 6 23:26:47 2003 From: georgenatalino at yahoo.com (George Natalino) Date: Thu, 06 Mar 2003 23:26:47 -0500 Subject: Article : SAX-like apps in PHP Message-ID: <3E681F87.1070602@yahoo.com> An HTML attachment was scrubbed... URL: From tech_learner at yahoo.com Fri Mar 7 01:43:46 2003 From: tech_learner at yahoo.com (Tracy) Date: Thu, 6 Mar 2003 22:43:46 -0800 (PST) Subject: [nycphp-talk] how to pass the dynamic array indexes from one f orm to another in PHP 4.2 In-Reply-To: <200303062138.h26Lb3fn049871@parsec.nyphp.org> Message-ID: <20030307064346.84924.qmail@web14303.mail.yahoo.com> Sure enough the code wont work, it didnt for me too until i made some changes to it. for startes i wasnt able to understand this line for ($Counter=0; $Counter<$_POST['Number']; $Counter++) a $_POST for wot? but then i assumed this page might be called from some other page n so did not ask for an explanation about it cos i was able to run it after some modifications. this is the code that run for me.. #code for dynamic.php
Please enter the name of child number $Offset"; echo "
"; //} if ($Counter==0) echo"Press the button to move on"; ?>

#code for dynamic2.php (suggestion 1) "; } ?> # gives output Jerry
#code u posted

# gives output Child #1 is Jerry

the other way i tried out the script was to include a number... heres wot i did #dynamic.php
Please enter the name of child number $Offset "; echo "
"; } if ($Counter==0) echo"Press the button to move on"; ?>

#dynamic2.php "; } ?>

# heres the 'view source' Child #1 is Tim
Child #2 is Tom
Child #3 is Tee


tried these ways, it sure works but the question is does it work in the way u want? for that u'd have to tell wot exactly u r expecting as outputs for what inputs. i am sorry, but ur objective isint clear to me. Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From tegaorits at weedmail.com Fri Mar 7 06:00:42 2003 From: tegaorits at weedmail.com (Tega Orits) Date: Fri, 7 Mar 2003 03:00:42 -0800 Subject: contact me now Message-ID: <200303071100.h27B0KUp064579@parsec.nyphp.org> FROM: BARRISTER TEGA ORITS OKEAYA INNEH LAW FIRM ATTORNEYS/LEGAL PRACTITIONERS. NIGERIA ATTENTION: PRESIDENT/CEO DEAR SIR, COMPLIMENTS OF THE SEASON. GRACE AND PEACE AND LOVE FROM THIS PART OF THE ATLANTIC TO YOU. I HOPE MY LETTER DOES NOT CAUSE YOU TOO MUCH EMBARRASSMENT AS I WRITE TO YOU IN GOOD FAITH BASED ON THE CONTACT ADDRESS GIVEN TO ME BY A FRIEND WHO WORKS AT THE NIGERIAN EMBASSYIN YOUR COUNTRY. PLEASE EXCUSE MY INTRUSION INTO YOUR PRIVATE LIFE. I AM BARRISTER TEGA ORITS, I REPRESENT MOHAMMED ABACHA, SON OF THE LATE GEN. SANI ABACHA, WHO WAS THE FORMER MILITARY HEAD OF STATE IN NIGERIA. HE DIED IN 1998. SINCE HIS DEATH, THE FAMILY HAS BEEN LOSING A LOT OF MONEY DUE TO VINDICTIVE GOVERNMENT OFFICIALS WHO ARE BENT ON DEALING WITH THE FAMILY. BASED ON THIS THEREFORE, THE FAMILY HAS ASKED ME TO SEEK FOR A FOREIGN PARTNER WHO CAN WORK WITH US AS TO MOVE OUT THE TOTAL SUM OF US$45,000,000.00 ( FOURTY FIVE MILLION UNITED STATES DOLLARS ), PRESENTLY IN THEIR POSSESSION. THIS MONEY WAS OF COURSE, ACQUIRED BY THE LATE PRESIDENT AND IS NOW KEPT SECRETLY BY THE FAMILY. THE SWISS GOVERNMENT HAS ALREADY FROZEN ALL THE ACCOUNTS OF THE FAMILY IN SWITZERLAND, AND SOME OTHER COUNTRIES WOULD SOON FOLLOW TO DO THE SAME. THIS BID BY SOME GOVERNMENT OFFICIALS TO DEAL WITH THIS FAMILY HAS MADE IT NECESSARY THAT WE SEEK YOUR ASSISITANCE IN RECEIVING THIS MONEY AND IN INVESTING IT ON BEHALF OF THE FAMILY. THIS MUST BE A JOINT VENTURE TRANSACTION AND WE MUST ALL WORK TOGETHER. SINCE THIS MONEY IS STILL CASH, EXTRA SECURITY MEASURES HAVE BEEN TAKEN TO PROTECT IT FROM THEFT OR SEIZURE, PENDING WHEN AGREEMENT IS REACHED ON WHEN AND HOW TO MOVE IT INTO ANY OF YOUR NOMINATED BANK ACCOUNTS. I HAVE PERSONALLY WORKED OUT ALL MODALITIES FOR THE PEACEFUL CONCLUSION OF THIS TRANSACTION MY CLIENTS ARE WILLING TO GIVE YOU A REASONABLE PERCENTAGE OF THIS MONEY AS SOON AS THE TRANSACTIONIS CONCLUDED. I WILL, HOWEVER, BASED ON THE GROUNDS THAT YOU ARE WILLING TO WORK WITH US AND ALSO ALL CONTENTIOUS ISSUES DISCUSSED BEFORE THE COMMENCEMENT OF THIS TRANSACTION. YOU MAY ALSO DISCUSS YOUR PERCENTAGE BEFORE WE START TO WORK. AS SOON AS I HEAR FROM YOU, I WILL GIVE YOU ALL NECESSARY DETAILS AS TO HOW WE INTEND TO CARRY OUT THE WHOLE TRANSACTION. PLEASE, DO NOT ENTERTAIN ANY FEARS,AS ALL NECESSARY MODALITIES ARE IN PLACE, AND I ASSURE YOU OF ALL SUCCESS AND SAFETY IN THIS TRANSACTION. PLEASE, THIS TRANSACTION REQUIRES ABSOLUTE CONFIDENTIALITY AND YOU WOULD BE EXPECTED TO TREAT IT AS SUCH UNTIL THE FUNDS ARE MOVED OUT OF THIS COUNTRY. PLEASE, YOU WILL ALSO IGNORE THIS LETTER AND RESPECT OUR TRUST IN YOU BY NOT EXPOSING THIS TRANSACTION, EVEN IF YOU ARE NOT INTERESTED. I LOOK FORWARD TO WORKING WITH YOU. THANK YOU. TRULY YOURS, BARRISTER TEGA ORITS ESQ. From nyphp at websapp.com Fri Mar 7 09:39:49 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Fri, 7 Mar 2003 09:39:49 -0500 Subject: Over 10,000,000 Message-ID: For the moral: http://www.dynamicwebpages.de/60.php-statistiken.php From dkrook at hotmail.com Fri Mar 7 14:23:27 2003 From: dkrook at hotmail.com (D C Krook) Date: Fri, 07 Mar 2003 14:23:27 -0500 Subject: [nycphp-talk] Article : SAX-like apps in PHP Message-ID: George, It seemed your message about this article was empty. Here's the info from IBM's developerWorks: http://www-106.ibm.com/developerworks/web/library/wa-php4sax/ SAX-like apps in PHP Use streaming XML data in PHP While there is no official implementation of the Simple API for XML (SAX) in PHP, PHP does provide a SAX-like method for working with both local and remote XML files. In this article, author Nicholas Chase shows you how to work with XML files in PHP by building and setting handler functions and creating a parser. He demonstrates SAX in PHP with a page-building exercise in which he crafts a page based on the result of an Amazon Web Services query. _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From jonbaer at jonbaer.net Fri Mar 7 17:15:48 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 7 Mar 2003 14:15:48 -0800 Subject: [nycphp-talk] Article : SAX-like apps in PHP References: <200303071923.h27JNUZd071374@parsec.nyphp.org> Message-ID: <001b01c2e4f7$1bd69d20$6400a8c0@laptop> Are there any convienient packages that allow you to work w/ XPath based expression (multiple in one page): $foo = "/foo/foo"; $bar = "/foo/bar"; (parsing the doc only once for results) ? (not sure if I worded that right) - Jon ----- Original Message ----- From: "D C Krook" To: "NYPHP Talk" Sent: Friday, March 07, 2003 11:23 AM Subject: Re: [nycphp-talk] Article : SAX-like apps in PHP > George, > > It seemed your message about this article was empty. > > Here's the info from IBM's developerWorks: > > > > http://www-106.ibm.com/developerworks/web/library/wa-php4sax/ > > SAX-like apps in PHP > Use streaming XML data in PHP > > While there is no official implementation of the Simple API for XML (SAX) in > PHP, PHP does provide a SAX-like method for working with both local and > remote XML files. In this article, author Nicholas Chase shows you how to > work with XML files in PHP by building and setting handler functions and > creating a parser. He demonstrates SAX in PHP with a page-building exercise > in which he crafts a page based on the result of an Amazon Web Services > query. > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From georgenatalino at yahoo.com Fri Mar 7 21:17:36 2003 From: georgenatalino at yahoo.com (George Natalino) Date: Fri, 7 Mar 2003 18:17:36 -0800 (PST) Subject: [nycphp-talk] Article : SAX-like apps in PHP In-Reply-To: <200303071924.h27JNUf7071374@parsec.nyphp.org> Message-ID: <20030308021736.38791.qmail@web11408.mail.yahoo.com> Thanks. Don't know how that happened. --- D C Krook wrote: > George, > > It seemed your message about this article was empty. > > Here's the info from IBM's developerWorks: > > > > http://www-106.ibm.com/developerworks/web/library/wa-php4sax/ > > SAX-like apps in PHP > Use streaming XML data in PHP > > While there is no official implementation of the > Simple API for XML (SAX) in > PHP, PHP does provide a SAX-like method for working > with both local and > remote XML files. In this article, author Nicholas > Chase shows you how to > work with XML files in PHP by building and setting > handler functions and > creating a parser. He demonstrates SAX in PHP with a > page-building exercise > in which he crafts a page based on the result of an > Amazon Web Services > query. > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months > FREE* > http://join.msn.com/?page=features/junkmail > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > ===== ================================================ Regards George Natalino georgenatalino at yahoo.com __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From tech_learner at yahoo.com Sun Mar 9 01:19:52 2003 From: tech_learner at yahoo.com (Tracy) Date: Sat, 8 Mar 2003 22:19:52 -0800 (PST) Subject: lost in a maze of pages... In-Reply-To: <200303070653.h276hsfn060502@parsec.nyphp.org> Message-ID: <20030309061952.20275.qmail@web14307.mail.yahoo.com> Hi, i have a script (page1.php) where i select an id. this in turn calls the following script. (page2.php) Enter files now in my getdet.php i have $rn = $_POST['RN']; and using this record number i query the mysql database for the person's credentials. my display is such that the getdet.php displays the credentials in a table followed by boxes to enter the files's location (something like the yahoo briefcase, i have scripted to upload 5 files at on time). now the problem is i need the RN value in a script called 'verifyfiles.php' (page5.php) which is called by the uploadfiles.php. i am able to get it using something like ...
in uploadfiles.php wot i want to know is if theres a better method to do this? the RN is set in the page1.php, passed to page3.php called in page2.php, and is also needed by page5.php (finally). now since page5.php is called by page4.php, at present i am including the RN in the page4.php as a hidden field. is there some way for the page5.php to get the value as page3.php does? the second, that i am unable to do is, say the user wishes to upload more that 5 files, so he clicks on the upload more? link... i have upload more? in page5.php. when i tried, i got error "query failed". thats cos, view.php (page2.php) calls page3.php n thus needs a RN. do i change the scripts to use $_REQUEST instead of $_POST i am using now? in that case it would mean ?$RN appended. but any other beter options plz? Thz Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenrbnsn at rbnsn.com Sun Mar 9 07:08:01 2003 From: kenrbnsn at rbnsn.com (Ken Robinson) Date: Sun, 09 Mar 2003 07:08:01 -0500 Subject: [nycphp-talk] lost in a maze of pages... In-Reply-To: <200303090620.h296Jt4x011935@parsec.nyphp.org> Message-ID: <5.1.0.14.2.20030309070323.07e7d3d0@mail.rbnsn.com> At 01:19 AM 3/9/2003 -0500, you wrote: >Hi, >i have a script (page1.php) where i select an id. this in turn calls the >following script. (page2.php) >(page4.php) ?> >now in my getdet.php i have $rn = $_POST['RN']; and using this record >number i query the mysql database for the person's credentials. my display >is such that the getdet.php displays the credentials in a table followed >by boxes to enter the files's location (something like the yahoo >briefcase, i have scripted to upload 5 files at on time). now the problem >is i need the RN value in a script called 'verifyfiles.php' (page5.php) >which is called by the uploadfiles.php. i am able to get it using >something like > ... >
> > > >in uploadfiles.php > >wot i want to know is if theres a better method to do this? the RN is set >in the page1.php, passed to page3.php called in page2.php, and is also >needed by page5.php (finally). now since page5.php is called by page4.php, >at present i am including the RN in the page4.php as a hidden field. is >there some way for the page5.php to get the value as page3.php does? > >the second, that i am unable to do is, say the user wishes to upload more >that 5 files, so he clicks on the upload more? link... i have href="view.php"> upload more? in page5.php. when i tried, i got error >"query failed". thats cos, view.php (page2.php) calls page3.php n thus >needs a RN. do i change the scripts to use $_REQUEST instead of $_POST i >am using now? in that case it would mean ?$RN appended. but any other >beter options plz? The easiest way to do this is to uses SESSIONS. Put a "sesssion_start()" at the start of your PHP code in each file. In the file where it is defined put "$_SESSION['xx'] = rn;". In the files that need the value, put " rn = $_SESSION['xx']". Read all about sessions in your favorite PHP reference guide or at www.php.net. Ken Robinson From chun_lam at hotmail.com Sun Mar 9 08:00:53 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Sun, 09 Mar 2003 08:00:53 -0500 Subject: [nycphp-talk] lost in a maze of pages... Message-ID: maybe putting the variable in a session might help... ----Original Message Follows---- From: Tracy Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] lost in a maze of pages... Date: Sun, 9 Mar 2003 01:19:55 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc4-f10.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sat, 8 Mar 2003 22:20:31 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h296Jt1X011935for ; Sun, 9 Mar 2003 01:20:30 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP Message-Id: <200303090620.h296Jt1X011935 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 09 Mar 2003 06:20:31.0757 (UTC) FILETIME=[FCA223D0:01C2E603] Hi, i have a script (page1.php) where i select an id. this in turn calls the following script. (page2.php) Enter files now in my getdet.php i have $rn = $_POST['RN']; and using this record number i query the mysql database for the person's credentials. my display is such that the getdet.php displays the credentials in a table followed by boxes to enter the files's location (something like the yahoo briefcase, i have scripted to upload 5 files at on time). now the problem is i need the RN value in a script called 'verifyfiles.php' (page5.php) which is called by the uploadfiles.php. i am able to get it using something like ...
in uploadfiles.php wot i want to know is if theres a better method to do this? the RN is set in the page1.php, passed to page3.php called in page2.php, and is also needed by page5.php (finally). now since page5.php is called by page4.php, at present i am including the RN in the page4.php as a hidden field. is there some way for the page5.php to get the value as page3.php does? the second, that i am unable to do is, say the user wishes to upload more that 5 files, so he clicks on the upload more? link... i have upload more? in page5.php. when i tried, i got error "query failed". thats cos, view.php (page2.php) calls page3.php n thus needs a RN. do i change the scripts to use $_REQUEST instead of $_POST i am using now? in that case it would mean ?$RN appended. but any other beter options plz? Thz Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From tech_learner at yahoo.com Mon Mar 10 02:35:14 2003 From: tech_learner at yahoo.com (Tracy) Date: Sun, 9 Mar 2003 23:35:14 -0800 (PST) Subject: [nycphp-talk] lost in a maze of pages... In-Reply-To: <200303091209.h29C888L017375@parsec.nyphp.org> Message-ID: <20030310073514.18849.qmail@web14305.mail.yahoo.com> HI, thz i got aroung temporarily by including a $_REQUEST in the page2.php. now in page5 i have a to page2 with the RN appended to the url > someting like this... the entire loop works fine but i dont want the RN to be seen now if its possible. i havent started on sessions yet. want to code the entire project and then session them as i have to give access rights to each page. any suggestions on how to pass the rn this way? do i have to include a form just with one hidden field to achieve the purpose? Tracy Ken Robinson wrote:The easiest way to do this is to uses SESSIONS. Put a "sesssion_start()" at the start of your PHP code in each file. In the file where it is defined put "$_SESSION['xx'] = rn;". In the files that need the value, put " rn = $_SESSION['xx']". Read all about sessions in your favorite PHP reference guide or at www.php.net. Ken Robinson --- Unsubscribe at http://nyphp.org/list/ --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From tech_learner at yahoo.com Mon Mar 10 08:08:46 2003 From: tech_learner at yahoo.com (Tracy) Date: Mon, 10 Mar 2003 05:08:46 -0800 (PST) Subject: experimenting CLI In-Reply-To: <200303091209.h29C888L017375@parsec.nyphp.org> Message-ID: <20030310130846.73657.qmail@web14304.mail.yahoo.com> Hi, i was trying out the examples for using php from the command line. i have register_globals off and register_argc_argv on. i tried c:\\php4win\\cli>php -r '$wel = hello; print($wel);' to get a blank line... next i tried c:\\php4win\\cli> php -r "$wel = hello; print($wel);" and the next line was hello but the manual says to use single quotes??? have i failed to understand something or is my way of trying out the example is wrong. i tried the examples given in the manual too but they didnt work either... i remember some posts that mentioned CLI. i didnt understand wot they were and got interested to find out. can someone plz tell me how to start? thz Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From pl at eskimo.com Mon Mar 10 13:01:16 2003 From: pl at eskimo.com (Peter) Date: Mon, 10 Mar 2003 13:01:16 -0500 Subject: [nycphp-talk] experimenting CLI References: <200303101309.h2AD8q09035567@parsec.nyphp.org> Message-ID: <3E6CD2EC.2BA52B67@eskimo.com> Tracy, I think that in windows you use double quotes and in a unix environment you use single quotes. --Peter Tracy wrote: > Hi, > i was trying out the examples for using php from the command line. i have register_globals off and register_argc_argv on. i tried > c:\\php4win\\cli>php -r '$wel = hello; print($wel);' > to get a blank line... > next i tried > c:\\php4win\\cli> php -r "$wel = hello; print($wel);" and the next line was > hello > > but the manual says to use single quotes??? have i failed to understand something or is my way of trying out the example is wrong. i tried the examples given in the manual too but they didnt work either... > > i remember some posts that mentioned CLI. i didnt understand wot they were and got interested to find out. can someone plz tell me how to start? > > thz > Tracy > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Coming together is a beginning... > keeping together is progress... > working together is success !!! > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > --------------------------------- > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, and more > > --- Unsubscribe at http://nyphp.org/list/ --- From lss1 at netzero.net Mon Mar 10 16:17:14 2003 From: lss1 at netzero.net (LS) Date: Mon, 10 Mar 2003 16:17:14 -0500 Subject: [nycphp-talk] how to pass the dynamic array indexes from one f orm to another in PHP 4.2 References: <200303070649.h276hsan060502@parsec.nyphp.org> Message-ID: <002a01c2e74a$6d7b79c0$60aeb8cd@user> hi;tracy: it works now fine. thanks leo ----- Original Message ----- From: "Tracy" To: "NYPHP Talk" Sent: Friday, March 07, 2003 1:43 AM Subject: Re: [nycphp-talk] how to pass the dynamic array indexes from one f orm to another in PHP 4.2 > > Sure enough the code wont work, it didnt for me too until i made some changes to it. > for startes i wasnt able to understand this line > > for ($Counter=0; $Counter<$_POST['Number']; $Counter++) > > a $_POST for wot? but then i assumed this page might be called from some other page n so did not ask for an explanation about it cos i was able to run it after some modifications. this is the code that run for me.. > > #code for dynamic.php > > > >
> //for ($Counter=0; $Counter<$_POST['Number']; $Counter++) > //{ > $Offset = $Counter+1; > //echo $Offset; > echo "
Please enter the name of child number $Offset"; > echo "
"; > //} > if ($Counter==0) echo"Press the button to move on"; > ?> >
>
> >
> > > > #code for dynamic2.php (suggestion 1) > > > foreach ($_GET['Child'] as $name) { > print "$name
"; > } > ?> > > > > # gives output > > > Jerry
> > > #code u posted > > > > $counter=1; > foreach ( $_GET["Child"] as $c ) { > echo "Child #". $counter++ ." is $c "; > } > ?> >
>
> > > > # gives output > > > Child #1 is Jerry
>
> > > > the other way i tried out the script was to include a number... heres wot i did > #dynamic.php > > > >
> $Number = 3; > for ($Counter=0; $Counter<$Number; $Counter++) > { > $Offset = $Counter+1; > //echo $Offset; > echo "
Please enter the name of child number $Offset "; > echo "
"; > } > if ($Counter==0) echo"Press the button to move on"; > ?> >
>
> >
> > > > #dynamic2.php > > > > $counter=1; > foreach ( $_GET["Child"] as $c ) { > echo "Child #". $counter++ ." is $c
"; > } > ?> >
>
> > > > # heres the 'view source' > > > > Child #1 is Tim
Child #2 is Tom
Child #3 is Tee

>
> > > > tried these ways, it sure works but the question is does it work in the way u want? for that u'd have to tell wot exactly u r expecting as outputs for what inputs. i am sorry, but ur objective isint clear to me. > > Tracy > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Coming together is a beginning... > keeping together is progress... > working together is success !!! > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > --------------------------------- > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, and more > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From bill at ilovett.com Mon Mar 10 20:41:37 2003 From: bill at ilovett.com (Bill Lovett) Date: Mon, 10 Mar 2003 20:41:37 -0500 Subject: self-expiring pages Message-ID: <20030311014137.GB6899@unicron.ilovett.com> I have an idea for an application that I'd like to get some feedback on. Let's say you need to keep track of user login information for several client servers. Security is obviously a concern. In my case, I need a way to safely provide this information to both technical and faintly technical staff. I started thinking about how some mailing list managers work, where you state what you want to do, and then get a confirmation email with a link or special reply address that must be received by the server in order for your request to be processed. With that in mind, I'm wondering how I could set up a random link generator that would issue urls that are only valid for n minutes, but with querystrings that aren't obvious. If I had that piece of the puzzle, I could add additional security by restricting the addresses who could receive such links and by storing the passwords in mysql with heavy user restrictions. So the full process would be: -send an email to a special account -email is received by a script which generates a time-sensitive link -user clicks on link and gets the info they need (over ssl) or gets a "sorry, too late" message Has anyone ever done anything like this? Better still, can anyone see a way to squeeze pgp into the picture? -bill From lists at ny-tech.net Mon Mar 10 20:42:21 2003 From: lists at ny-tech.net (Nasir Zubair) Date: Mon, 10 Mar 2003 20:42:21 -0500 (Eastern Standard Time) Subject: selecting/deleting all oldest entries in mysql. Message-ID: <3E6D3EFD.000003.00188@nyt-001> Hi all, I need to create a small logger, for our work place, that will log staff's IP addresses and host names. What I'm trying to do is to log last X accesses to an online helpdesk, 24 for example. I'm having trouble coming up with a query to select/delete the oldest entry when a X+1st entry, (25th for the above number), is inserted. Can anyone hint me on how to go about doing it? - Nasir From cmerlo at turing.matcmp.ncc.edu Mon Mar 10 23:48:36 2003 From: cmerlo at turing.matcmp.ncc.edu (Christopher R. Merlo) Date: Mon, 10 Mar 2003 23:48:36 -0500 Subject: [nycphp-talk] selecting/deleting all oldest entries in mysql. In-Reply-To: <200303110142.h2B1fxOF048069@parsec.nyphp.org>; from lists@ny-tech.net on Mon, Mar 10, 2003 at 08:41:59PM -0500 References: <200303110142.h2B1fxOF048069@parsec.nyphp.org> Message-ID: <20030310234836.B23093@turing.matcmp.ncc.edu> On 2003-03-10 20:41 -0500, Nasir Zubair wrote: > Hi all, > > I need to create a small logger, for our work place, that will log staff's > IP addresses and host names. What I'm trying to do is to log last X accesses > to an online helpdesk, 24 for example. > > I'm having trouble coming up with a query to select/delete the oldest entry > when a X+1st entry, (25th for the above number), is inserted. > > Can anyone hint me on how to go about doing it? Reliable method: Have a datetime field in the table, and update that with the current time every time somebody logs in. Then you can just do a "select * from my_table order by name_of_datetime_field" and pull off the first (last?) entry. Unreliable method: If you just do a "select *", things tend to show up in the order they were inserted. So, just take the last one. HTH. -c -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo An apple every eight hours will keep three doctors away. From jim at bizcomputinginc.com Tue Mar 11 08:17:46 2003 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Tue, 11 Mar 2003 08:17:46 -0500 Subject: [nycphp-talk] selecting/deleting all oldest entries in mysql. References: <200303110142.h2B1fxGD048069@parsec.nyphp.org> Message-ID: <083801c2e7d0$9bd33840$6601a8c0@Notebook> You could use a seq# for each person. When inserting the record do a select on max seq# to obtain the highest # used for that individual, increment that #, insert the new record, then delete where seq# <= newnumber - x and person = logged in person. 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: "Nasir Zubair" To: "NYPHP Talk" Sent: Monday, March 10, 2003 8:41 PM Subject: [nycphp-talk] selecting/deleting all oldest entries in mysql. > Hi all, > > I need to create a small logger, for our work place, that will log staff's > IP addresses and host names. What I'm trying to do is to log last X accesses > to an online helpdesk, 24 for example. > > I'm having trouble coming up with a query to select/delete the oldest entry > when a X+1st entry, (25th for the above number), is inserted. > > Can anyone hint me on how to go about doing it? > > - Nasir > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From emm at scriptdigital.com Tue Mar 11 09:08:12 2003 From: emm at scriptdigital.com (Emmanuel. M. Decarie) Date: Tue, 11 Mar 2003 09:08:12 -0500 Subject: semaphores on Windows Message-ID: Hello, How one would implement semaphores on Windows NT 5.0? Could I use COM for that? I'm not familiar with Windows. Or could it be a good idea to use files and flock? Any ideas? I'm a little bit afraid to implement semaphore by myself because it can lead to tricky situations. TIA -- ______________________________________________________________________ Emmanuel D?carie / Programmation pour le Web - Programming for the Web Radio UserLand/Frontier - Perl - PHP - Javascript Blog: - AIM: scriptdigital From emm at scriptdigital.com Tue Mar 11 09:27:35 2003 From: emm at scriptdigital.com (Emmanuel. M. Decarie) Date: Tue, 11 Mar 2003 09:27:35 -0500 Subject: semaphores on Windows In-Reply-To: References: Message-ID: >Hello, > >How one would implement semaphores on Windows NT 5.0? > >Could I use COM for that? I'm not familiar with Windows. > >Or could it be a good idea to use files and flock? > >Any ideas? I'm a little bit afraid to implement semaphore by myself >because it can lead to tricky situations. I forgot to add that I need semaphores for INSERT and DELETE sql statement for MySQL. Maybe this is not needed after all. The rows that are concerned are using a column with an AUTO_INCREMENT attribute. I don't need rollback (i.e. transaction). In its book on MySQL, Paul Dubois write: "MySQL automatically performs locking for single SQL statements to keep clients from interfering with each other." (Paul Dubois, MySQL, New Riders, 2000). Cheers -Emmanuel -- ______________________________________________________________________ Emmanuel D?carie / Programmation pour le Web - Programming for the Web Radio UserLand/Frontier - Perl - PHP - Javascript Blog: - AIM: scriptdigital From ophir at prusak.com Tue Mar 11 09:52:44 2003 From: ophir at prusak.com (Ophir Prusak) Date: Tue, 11 Mar 2003 09:52:44 -0500 Subject: [nycphp-talk] Re: semaphores on Windows References: <200303111428.h2BERlMV060018@parsec.nyphp.org> Message-ID: <036901c2e7dd$dfb90af0$bf65a8c0@tag1002> Can you describe the situation in a bit more detail ? As you said - you probably don't need semaphores, but what is it exactly that you're trying to do ... ----- Original Message ----- From: "Emmanuel. M. Decarie" To: "NYPHP Talk" Sent: Tuesday, March 11, 2003 9:27 AM Subject: [nycphp-talk] Re: semaphores on Windows > > I forgot to add that I need semaphores for INSERT and DELETE sql > statement for MySQL. Maybe this is not needed after all. The rows > that are concerned are using a column with an AUTO_INCREMENT > attribute. > > I don't need rollback (i.e. transaction). In its book on MySQL, Paul > Dubois write: "MySQL automatically performs locking for single SQL > statements to keep clients from interfering with each other." (Paul > Dubois, MySQL, New Riders, 2000). > > Cheers > -Emmanuel > -- > ______________________________________________________________________ > Emmanuel D?carie / Programmation pour le Web - Programming for the Web > Radio UserLand/Frontier - Perl - PHP - Javascript > Blog: - AIM: scriptdigital > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From ophir at prusak.com Tue Mar 11 10:04:31 2003 From: ophir at prusak.com (Ophir Prusak) Date: Tue, 11 Mar 2003 10:04:31 -0500 Subject: [nycphp-talk] self-expiring pages References: <200303110142.h2B1feMV047887@parsec.nyphp.org> Message-ID: <039e01c2e7df$852edf40$bf65a8c0@tag1002> That's easy (I do it all the time). Take the original URL (or filename, entry ID, etc) and concat a timestamp to it. Enrcypt the whole thing (no need for PGP, just a simple one way encryption will do). Then on the landing page decrypt the whole thing and simply see how old the timestamp is. If it's withing your timeframe, do a forward / passthrough of the content. Ophir ----- Original Message ----- From: "Bill Lovett" To: "NYPHP Talk" Sent: Monday, March 10, 2003 8:41 PM Subject: [nycphp-talk] self-expiring pages > > > I have an idea for an application that I'd like to get some feedback on. > Let's say you need to keep track of user login information for several > client servers. Security is obviously a concern. In my case, I need a > way to safely provide this information to both technical and faintly > technical staff. > > I started thinking about how some mailing list managers work, where you > state what you want to do, and then get a confirmation email with a link > or special reply address that must be received by the server in order > for your request to be processed. > > With that in mind, I'm wondering how I could set up a random link > generator that would issue urls that are only valid for n minutes, but > with querystrings that aren't obvious. If I had that piece of the > puzzle, I could add additional security by restricting the addresses who > could receive such links and by storing the passwords in mysql with heavy > user restrictions. So the full process would be: > > -send an email to a special account > -email is received by a script which generates a time-sensitive link > -user clicks on link and gets the info they need (over ssl) or gets a "sorry, too > late" message > > Has anyone ever done anything like this? Better still, can anyone see a > way to squeeze pgp into the picture? > > -bill > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From jonbaer at jonbaer.net Tue Mar 11 13:05:20 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 11 Mar 2003 10:05:20 -0800 Subject: [nycphp-talk] self-expiring pages References: <200303111505.h2BF5OJx061952@parsec.nyphp.org> Message-ID: <004b01c2e7f8$c8399dc0$6600a8c0@laptop> Here is a short example, not sure if it helps ...
Foo: > ----- Original Message ----- > From: "Bill Lovett" > To: "NYPHP Talk" > Sent: Monday, March 10, 2003 8:41 PM > Subject: [nycphp-talk] self-expiring pages > > > > > > > > I have an idea for an application that I'd like to get some feedback on. > > Let's say you need to keep track of user login information for several > > client servers. Security is obviously a concern. In my case, I need a > > way to safely provide this information to both technical and faintly > > technical staff. > > > > I started thinking about how some mailing list managers work, where you > > state what you want to do, and then get a confirmation email with a link > > or special reply address that must be received by the server in order > > for your request to be processed. > > > > With that in mind, I'm wondering how I could set up a random link > > generator that would issue urls that are only valid for n minutes, but > > with querystrings that aren't obvious. If I had that piece of the > > puzzle, I could add additional security by restricting the addresses who > > could receive such links and by storing the passwords in mysql with heavy > > user restrictions. So the full process would be: > > > > -send an email to a special account > > -email is received by a script which generates a time-sensitive link > > -user clicks on link and gets the info they need (over ssl) or gets a > "sorry, too > > late" message > > > > Has anyone ever done anything like this? Better still, can anyone see a > > way to squeeze pgp into the picture? > > > > -bill > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From emm at scriptdigital.com Tue Mar 11 11:08:14 2003 From: emm at scriptdigital.com (Emmanuel. M. Decarie) Date: Tue, 11 Mar 2003 11:08:14 -0500 Subject: [nycphp-talk] Re: semaphores on Windows In-Reply-To: <200303111454.h2BErbMt060993@parsec.nyphp.org> References: <200303111454.h2BErbMt060993@parsec.nyphp.org> Message-ID: Hello Ophir, thanks for the reply. Its really basic stuff. A Flash file will send via POST to a PHP script some text. I need to insert the text in MySQL in a row which have an auto_increment column. I want to keep only the last 10 text, so I will query MySQL to get all the text, and if I have more than 10 texts, I will delete the older ones. Cheers -Emmanuel ? (At) 09:53 -0500 11/03/03, Ophir Prusak ?crivait (wrote) : >Can you describe the situation in a bit more detail ? >As you said - you probably don't need semaphores, but what is it exactly >that you're trying to do ... > >----- Original Message ----- >From: "Emmanuel. M. Decarie" >To: "NYPHP Talk" >Sent: Tuesday, March 11, 2003 9:27 AM >Subject: [nycphp-talk] Re: semaphores on Windows > > >> >> I forgot to add that I need semaphores for INSERT and DELETE sql >> statement for MySQL. Maybe this is not needed after all. The rows >> that are concerned are using a column with an AUTO_INCREMENT >> attribute. >> >> I don't need rollback (i.e. transaction). In its book on MySQL, Paul >> Dubois write: "MySQL automatically performs locking for single SQL >> statements to keep clients from interfering with each other." (Paul > > Dubois, MySQL, New Riders, 2000). -- ______________________________________________________________________ Emmanuel D?carie / Programmation pour le Web - Programming for the Web Radio UserLand/Frontier - Perl - PHP - Javascript Blog: - AIM: scriptdigital From mz34 at nyu.edu Tue Mar 11 11:09:01 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Tue, 11 Mar 2003 11:09:01 -0500 Subject: What is $QUERY_STRING ? In-Reply-To: <200303111505.h2BF5OLb061952@parsec.nyphp.org> Message-ID: Ok, this may sound like a really naive question, but I will ask anyway. What is the predefined variable $QUERY_STRING ? The PHP manual says: 'QUERY_STRING' The query string, if any, via which the page was accessed. That definition is a bit tautological:) I ask because I have some code I grabed from a website and it contains the line:
"method="POST"> I am guessing this means if the form has been submitted, the key/value pairs will be contained in a variable called $QUERY_STRING, but maybe I am way off there? Just to test I made a simple form: Name Address Title
I sent that to But nothing prints out for $QUERY_STRING. I tired both POST and GET. Thanks! I am asking this question mostly out of curiosity. The code I downloaded works fine. I just want to know why it works. Matt From sklar at sklar.com Tue Mar 11 11:26:11 2003 From: sklar at sklar.com (David Sklar) Date: Tue, 11 Mar 2003 11:26:11 -0500 Subject: [nycphp-talk] What is $QUERY_STRING ? In-Reply-To: <200303111609.h2BG95N1064800@parsec.nyphp.org> Message-ID: $QUERY_STRING is the stuff after the "?" in a GET URL: http://www.example.com/cart.php?item=cereal&quantity=56 $QUERY_STRING (or $_SERVER['QUERY_STRING']) is "item=cereal&quantity=56". It doesn't have to be key/value pairs: http://www.example.com/cart.php?buy $QUERY_STRING is "buy". You didn't see it in the form you used below because the method was POST. Change it to GET and watch the query string bloom. David On Tuesday, March 11, 2003 11:09 AM, Matthew Zimmerman wrote: > Ok, this may sound like a really naive question, but I will ask > anyway. > > What is the predefined variable $QUERY_STRING ? The PHP manual says: > > 'QUERY_STRING' > The query string, if any, via which the page was accessed. > > That definition is a bit tautological:) I ask because I have some code > I grabed from a website and it contains the line: > >
$QUERY_STRING;}?>"method="POST"> > > I am guessing this means if the form has been submitted, the key/value > pairs will be contained in a variable called $QUERY_STRING, but maybe > I am way off there? > > Just to test I made a simple form: > > > > Name > Address > Title > >
> > I sent that to > > > $x= $_POST[name]; > $y= $_POST[address]; > $z= $_POST[title]; > > print ("$x "); > print ("$y "); > print ("$z "); > print ($QUERY_STRING); >> > > But nothing prints out for $QUERY_STRING. I tired both POST and GET. > > Thanks! I am asking this question mostly out of curiosity. The code I > downloaded works fine. I just want to know why it works. > > Matt From ophir at prusak.com Tue Mar 11 11:30:24 2003 From: ophir at prusak.com (Ophir Prusak) Date: Tue, 11 Mar 2003 11:30:24 -0500 Subject: [nycphp-talk] Re: semaphores on Windows References: <200303111609.h2BG8LMV064314@parsec.nyphp.org> Message-ID: <041401c2e7eb$84efbcf0$bf65a8c0@tag1002> 1. on selects, get the latest 10 from the database on selects (just in case) 2. and after an insert, find the 10th latest entry 3. delete all entries older then what u found in step 2 that's of course just one way of doing it. ----- Original Message ----- From: "Emmanuel. M. Decarie" To: "NYPHP Talk" Sent: Tuesday, March 11, 2003 11:08 AM Subject: Re: [nycphp-talk] Re: semaphores on Windows > Hello Ophir, thanks for the reply. > > Its really basic stuff. A Flash file will send via POST to a PHP > script some text. I need to insert the text in MySQL in a row which > have an auto_increment column. I want to keep only the last 10 text, > so I will query MySQL to get all the text, and if I have more than 10 > texts, I will delete the older ones. > > Cheers > -Emmanuel > > ? (At) 09:53 -0500 11/03/03, Ophir Prusak ?crivait (wrote) : > >Can you describe the situation in a bit more detail ? > >As you said - you probably don't need semaphores, but what is it exactly > >that you're trying to do ... > > > >----- Original Message ----- > >From: "Emmanuel. M. Decarie" > >To: "NYPHP Talk" > >Sent: Tuesday, March 11, 2003 9:27 AM > >Subject: [nycphp-talk] Re: semaphores on Windows > > > > > >> > >> I forgot to add that I need semaphores for INSERT and DELETE sql > >> statement for MySQL. Maybe this is not needed after all. The rows > >> that are concerned are using a column with an AUTO_INCREMENT > >> attribute. > >> > >> I don't need rollback (i.e. transaction). In its book on MySQL, Paul > >> Dubois write: "MySQL automatically performs locking for single SQL > >> statements to keep clients from interfering with each other." (Paul > > > Dubois, MySQL, New Riders, 2000). > > > -- > ______________________________________________________________________ > Emmanuel D?carie / Programmation pour le Web - Programming for the Web > Radio UserLand/Frontier - Perl - PHP - Javascript > Blog: - AIM: scriptdigital > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From emm at scriptdigital.com Tue Mar 11 11:40:08 2003 From: emm at scriptdigital.com (Emmanuel. M. Decarie) Date: Tue, 11 Mar 2003 11:40:08 -0500 Subject: [nycphp-talk] Re: semaphores on Windows In-Reply-To: <200303111631.h2BGVIMt066617@parsec.nyphp.org> References: <200303111631.h2BGVIMt066617@parsec.nyphp.org> Message-ID: >1. on selects, get the latest 10 from the database on selects (just in case) > >2. and after an insert, find the 10th latest entry >3. delete all entries older then what u found in step 2 > >that's of course just one way of doing it. Yes, this exactly what I want to do. But I was wondering what could happens if 2 clients send a text at the same time. I don't think that its a problem, but I wanted to check here first. Cheers -Emmanuel -- ______________________________________________________________________ Emmanuel D?carie / Programmation pour le Web - Programming for the Web Radio UserLand/Frontier - Perl - PHP - Javascript Blog: - AIM: scriptdigital From mz34 at nyu.edu Tue Mar 11 12:04:52 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Tue, 11 Mar 2003 12:04:52 -0500 Subject: [nycphp-talk] What is $QUERY_STRING ? In-Reply-To: <200303111625.h2BGPPLb065863@parsec.nyphp.org> Message-ID: <938B0FF4-53E3-11D7-9448-00039344DCA8@nyu.edu> Thanks David, I had tried GET, but i was only using print($QUERY_STRING) instead of print ($_SERVER['QUERY_STRING']); When I added that it did, as you say, bloom. So what purpose is it serving in this code >
$QUERY_STRING;}?>"method="POST"> if the method is POST? This is a snipet from some code I downloaded for a login page to my site. Matt From danielc at analysisandsolutions.com Tue Mar 11 12:08:47 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Tue, 11 Mar 2003 12:08:47 -0500 Subject: [nycphp-talk] Re: semaphores on Windows In-Reply-To: <200303111640.h2BGeKFX067411@parsec.nyphp.org> References: <200303111640.h2BGeKFX067411@parsec.nyphp.org> Message-ID: <20030311170846.GA13797@panix.com> On Tue, Mar 11, 2003 at 11:40:20AM -0500, Emmanuel. M. Decarie wrote: > > Yes, this exactly what I want to do. But I was wondering what could > happens if 2 clients send a text at the same time. I don't think that > its a problem, but I wanted to check here first. Lock the table. http://www.mysql.com/doc/en/LOCK_TABLES.html --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From tommyo at dolemite.org Tue Mar 11 12:16:15 2003 From: tommyo at dolemite.org (Tom O'Neill) Date: Tue, 11 Mar 2003 11:16:15 -0600 Subject: Memory Issue Message-ID: <009a01c2e7f1$ec897080$6501a8c0@tom> Hello Everyone, I have a question regarding objects and memory. I am designing an application where I will be working with alot of information related to one user. I am trying to use the tools I paid the big bucks for in college and use object orientated programming. Basically I have five objects Login, Customer, Team, Basket, and Order. Each of these objects share a relationship on the login Id. The team is a group of another object "Player". I want to store all of these objects in the session for the entire time the user is logged into the site. Do you think that this is to much overhead? Do you think that I would have memory issues? The site should see alot of traffic and we are on one redhat server 1.3 ghz and 512mb. What do you think? -Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiflett at php.net Tue Mar 11 12:20:29 2003 From: shiflett at php.net (Chris Shiflett) Date: Tue, 11 Mar 2003 09:20:29 -0800 (PST) Subject: [nycphp-talk] What is $QUERY_STRING ? In-Reply-To: <200303111705.h2BH4wMx068453@parsec.nyphp.org> Message-ID: <20030311172029.58446.qmail@web14306.mail.yahoo.com> --- Matthew Zimmerman wrote: > I had tried GET, but i was only using print($QUERY_STRING) instead of > print ($_SERVER['QUERY_STRING']); When I added that it did, as you say, > bloom. > > So what purpose is it serving in this code > > > > $QUERY_STRING;}?>"method="POST"> > > if the method is POST? It may seem confusing due to the way PHP names its variables, but a request can have both GET and POST variables. Your example above is the beginning of a form that posts the form information to the current page. In case the current page is http://nyphp.org/blah.php?foo=bar, this code makes sure that the form posts to blah.php?foo=bar instead of just blah.php. If you need to use anything in the query string, the $_GET array is populated with each of the URL variables. You probably already know that, but I thought I'd mention it. Chris From mz34 at nyu.edu Tue Mar 11 12:25:33 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Tue, 11 Mar 2003 12:25:33 -0500 Subject: [nycphp-talk] What is $QUERY_STRING ? In-Reply-To: <200303111720.h2BHKWLb071179@parsec.nyphp.org> Message-ID: <76CB671A-53E6-11D7-9448-00039344DCA8@nyu.edu> No, I didn't know that Chris. Thanks a lot!! I am still a newbie so this is really helpful. Matt On Tuesday, March 11, 2003, at 12:20 PM, Chris Shiflett wrote: > --- Matthew Zimmerman wrote: >> I had tried GET, but i was only using print($QUERY_STRING) instead of >> print ($_SERVER['QUERY_STRING']); When I added that it did, as you >> say, >> bloom. >> >> So what purpose is it serving in this code >> >>> >> $QUERY_STRING;}?>"method="POST"> >> >> if the method is POST? > > It may seem confusing due to the way PHP names its variables, but a > request can > have both GET and POST variables. Your example above is the beginning > of a form > that posts the form information to the current page. In case the > current page > is http://nyphp.org/blah.php?foo=bar, this code makes sure that the > form posts > to blah.php?foo=bar instead of just blah.php. > > If you need to use anything in the query string, the $_GET array is > populated > with each of the URL variables. You probably already know that, but I > thought > I'd mention it. > > Chris > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > MZ _________________ Matthew Zimmerman Humanities Computing Group, NYU Tel: 212.998.3038 Fax: 212.995.4120 From ophir at prusak.com Tue Mar 11 12:32:04 2003 From: ophir at prusak.com (Ophir Prusak) Date: Tue, 11 Mar 2003 12:32:04 -0500 Subject: [nycphp-talk] Re: semaphores on Windows References: <200303111709.h2BH8mMV069209@parsec.nyphp.org> Message-ID: <049001c2e7f4$22882760$bf65a8c0@tag1002> Dan - using the algorithm below, why is there a need to lock the table ? It'll work fine without table locking. 1. on selects, get the latest 10 from the database on selects (just in case) 2. and after an insert, find the 10th latest entry 3. delete all entries older then what u found in step 2 ----- Original Message ----- From: "Analysis & Solutions" To: "NYPHP Talk" Sent: Tuesday, March 11, 2003 12:08 PM Subject: Re: [nycphp-talk] Re: semaphores on Windows > On Tue, Mar 11, 2003 at 11:40:20AM -0500, Emmanuel. M. Decarie wrote: > > > > Yes, this exactly what I want to do. But I was wondering what could > > happens if 2 clients send a text at the same time. I don't think that > > its a problem, but I wanted to check here first. > > Lock the table. http://www.mysql.com/doc/en/LOCK_TABLES.html > > --Dan > > -- > PHP classes that make web design easier > SqlSolution.info | LayoutSolution.info | FormSolution.info > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From louie at zibi.co.il Tue Mar 11 18:53:46 2003 From: louie at zibi.co.il (louie) Date: Tue, 11 Mar 2003 15:53:46 -0800 Subject: [nycphp-talk] What is $QUERY_STRING ? References: <200303111626.h2BGPPQV065863@parsec.nyphp.org> Message-ID: <002801c2e829$753c8980$b35efea9@w3j5c4> greetings, first i like to say that this subject dont realy have a lot of info so many people i know including myself having problem understanding it the first time, now i want to ask for the best way to deal with calling function in a url function one(){ echo "bla bla"; } function two(){ echo "one"; } switch($_GET['$action']){ case "one": one(); break; default: two(); break ; } this would work fine if the register globals on , and even than $action you will have undefined var ($action), but when register globals off this wont work, what is the best way to fix this problem, if you have many pages like that and you want to change your php.ini setting of register globals to off without messing around with the code too much? ----- Original Message ----- From: "David Sklar" To: "NYPHP Talk" Sent: Tuesday, March 11, 2003 8:25 AM Subject: RE: [nycphp-talk] What is $QUERY_STRING ? > $QUERY_STRING is the stuff after the "?" in a GET URL: > > http://www.example.com/cart.php?item=cereal&quantity=56 > > $QUERY_STRING (or $_SERVER['QUERY_STRING']) is "item=cereal&quantity=56". > > It doesn't have to be key/value pairs: > > http://www.example.com/cart.php?buy > > $QUERY_STRING is "buy". > > You didn't see it in the form you used below because the method was POST. > Change it to GET and watch the query string bloom. > > David > > On Tuesday, March 11, 2003 11:09 AM, Matthew Zimmerman wrote: > > > Ok, this may sound like a really naive question, but I will ask > > anyway. > > > > What is the predefined variable $QUERY_STRING ? The PHP manual says: > > > > 'QUERY_STRING' > > The query string, if any, via which the page was accessed. > > > > That definition is a bit tautological:) I ask because I have some code > > I grabed from a website and it contains the line: > > > > > $QUERY_STRING;}?>"method="POST"> > > > > I am guessing this means if the form has been submitted, the key/value > > pairs will be contained in a variable called $QUERY_STRING, but maybe > > I am way off there? > > > > Just to test I made a simple form: > > > > > > > > Name > > Address > > Title > > > > > > > > I sent that to > > > > > > > $x= $_POST[name]; > > $y= $_POST[address]; > > $z= $_POST[title]; > > > > print ("$x "); > > print ("$y "); > > print ("$z "); > > print ($QUERY_STRING); > >> > > > > But nothing prints out for $QUERY_STRING. I tired both POST and GET. > > > > Thanks! I am asking this question mostly out of curiosity. The code I > > downloaded works fine. I just want to know why it works. > > > > Matt > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From ivan.nyphp at tumanov.com Tue Mar 11 16:19:45 2003 From: ivan.nyphp at tumanov.com (Ivan Tumanov) Date: Tue, 11 Mar 2003 16:19:45 -0500 Subject: [nycphp-talk] Re: semaphores on Windows In-Reply-To: <200303111428.h2BERlOD060018@parsec.nyphp.org> Message-ID: Check this page: http://www.mysql.com/doc/en/Miscellaneous_functions.html Look up the GET_LOCK, RELEASE_LOCK and IS_FREE_LOCK functions. I've had mixed luck using them w/ php because the locking is per-thread, and I have a suspicion that my trouble came out of some sort of connection-sharing issue. But this might be whate you're looking for. -Ivan -----Original Message----- From: Emmanuel. M. Decarie [mailto:emm at scriptdigital.com] Sent: Tuesday, March 11, 2003 9:28 AM To: NYPHP Talk Subject: [nycphp-talk] Re: semaphores on Windows >Hello, > >How one would implement semaphores on Windows NT 5.0? > >Could I use COM for that? I'm not familiar with Windows. > >Or could it be a good idea to use files and flock? > >Any ideas? I'm a little bit afraid to implement semaphore by myself >because it can lead to tricky situations. I forgot to add that I need semaphores for INSERT and DELETE sql statement for MySQL. Maybe this is not needed after all. The rows that are concerned are using a column with an AUTO_INCREMENT attribute. I don't need rollback (i.e. transaction). In its book on MySQL, Paul Dubois write: "MySQL automatically performs locking for single SQL statements to keep clients from interfering with each other." (Paul Dubois, MySQL, New Riders, 2000). Cheers -Emmanuel -- ______________________________________________________________________ Emmanuel D?carie / Programmation pour le Web - Programming for the Web Radio UserLand/Frontier - Perl - PHP - Javascript Blog: - AIM: scriptdigital --- Unsubscribe at http://nyphp.org/list/ --- From dkrook at hotmail.com Tue Mar 11 16:41:12 2003 From: dkrook at hotmail.com (D C Krook) Date: Tue, 11 Mar 2003 16:41:12 -0500 Subject: [nycphp-talk] What is $QUERY_STRING ? Message-ID: Louie, Your code should work with two simple changes when register globals is off: Change: $_SERVER[PHP_SELF] to $_SERVER['PHP_SELF'] // not strictly necessary $_GET['$action'] to $_GET['action'] > >first i like to say that this subject dont realy >have a lot of info so many people i know including myself having problem >understanding it the first time, > >now i want to ask for the best way to deal with calling function >in a url > >function one(){ > >echo "bla bla"; > >} > >function two(){ >echo "one"; >} > >switch($_GET['$action']){ >case "one": > one(); > break; > default: > two(); > break ; >} > _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From nyphp at NewAgeWeb.com Tue Mar 11 16:08:09 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Tue, 11 Mar 2003 16:08:09 -0500 Subject: [nycphp-talk] What is $QUERY_STRING ? Message-ID: <003801c2e812$522f92a0$de01a8c0@duron.lan.newageweb.com> replace $_GET['$action'] with $_GET['action'] Jerry -- 42.7% of all statistics are made up on the spot. -----Original Message----- From: louie To: NYPHP Talk Date: Tuesday, March 11, 2003 3:56 PM Subject: Re: [nycphp-talk] What is $QUERY_STRING ? >greetings, > >first i like to say that this subject dont realy >have a lot of info so many people i know including myself having problem >understanding it the first time, > >now i want to ask for the best way to deal with calling function >in a url > >function one(){ > >echo "bla bla"; > >} > >function two(){ >echo "one"; >} > >switch($_GET['$action']){ >case "one": > one(); > break; > default: > two(); > break ; >} > >this would work fine if the register globals on , and even than >$action you will have undefined var ($action), >but when register globals off this wont work, >what is the best way to fix this problem, if you have many pages >like that and you want to change your php.ini setting of register globals to >off >without messing around with the code too much? > > > >----- Original Message ----- >From: "David Sklar" >To: "NYPHP Talk" >Sent: Tuesday, March 11, 2003 8:25 AM >Subject: RE: [nycphp-talk] What is $QUERY_STRING ? > > >> $QUERY_STRING is the stuff after the "?" in a GET URL: >> >> http://www.example.com/cart.php?item=cereal&quantity=56 >> >> $QUERY_STRING (or $_SERVER['QUERY_STRING']) is "item=cereal&quantity=56". >> >> It doesn't have to be key/value pairs: >> >> http://www.example.com/cart.php?buy >> >> $QUERY_STRING is "buy". >> >> You didn't see it in the form you used below because the method was POST. >> Change it to GET and watch the query string bloom. >> >> David >> >> On Tuesday, March 11, 2003 11:09 AM, Matthew Zimmerman wrote: >> >> > Ok, this may sound like a really naive question, but I will ask >> > anyway. >> > >> > What is the predefined variable $QUERY_STRING ? The PHP manual says: >> > >> > 'QUERY_STRING' >> > The query string, if any, via which the page was accessed. >> > >> > That definition is a bit tautological:) I ask because I have some code >> > I grabed from a website and it contains the line: >> > >> >
> > $QUERY_STRING;}?>"method="POST"> >> > >> > I am guessing this means if the form has been submitted, the key/value >> > pairs will be contained in a variable called $QUERY_STRING, but maybe >> > I am way off there? >> > >> > Just to test I made a simple form: >> > >> > >> > >> > Name >> > Address >> > Title >> > >> >
>> > >> > I sent that to >> > >> > > > >> > $x= $_POST[name]; >> > $y= $_POST[address]; >> > $z= $_POST[title]; >> > >> > print ("$x "); >> > print ("$y "); >> > print ("$z "); >> > print ($QUERY_STRING); >> >> >> > >> > But nothing prints out for $QUERY_STRING. I tired both POST and GET. >> > >> > Thanks! I am asking this question mostly out of curiosity. The code I >> > downloaded works fine. I just want to know why it works. >> > >> > Matt >> >> >> >> >> >> >> >> >> >> > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > From ejp at well.com Tue Mar 11 21:33:40 2003 From: ejp at well.com (Edward Potter) Date: Tue, 11 Mar 2003 21:33:40 -0500 Subject: PHP coding standards Message-ID: <094A9C6E-5433-11D7-A809-000393BF8A42@well.com> This may be of interest to some... I sometimes spend more time in making sure my source code looks decent, then I spend writing the application. I have a superstition that if the source is not totally clean, then the end result may someday come back to haunt you. This looks like a pretty fresh link: http://utvikler.start.no/code/php_coding_standard.html PHP Coding Standard Last Modified: 2003-02-17 The PHP Coding Standard is with permission based on Todd Hoff's C++ Coding Standard. Rewritten for PHP by Fredrik Kristiansen / DB Medialab, Oslo 2000-2003. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 886 bytes Desc: not available URL: From JMKing at ipro.org Wed Mar 12 09:40:33 2003 From: JMKing at ipro.org (Jaz-Michael King) Date: Wed, 12 Mar 2003 09:40:33 -0500 Subject: free money Message-ID: PHP developers up for grants... http://www.internetnews.com/dev-news/article.php/2107291 ****************************** Jaz-Michael King Online Services Manager IPRO http://ipro.org ****************************** From ophir at prusak.com Wed Mar 12 10:09:10 2003 From: ophir at prusak.com (Ophir Prusak) Date: Wed, 12 Mar 2003 10:09:10 -0500 Subject: [nycphp-talk] PHP coding standards References: <200303120235.h2C2XjMT086110@parsec.nyphp.org> Message-ID: <006101c2e8a9$57328180$bf65a8c0@tag1002> Great subject, though your message was a bit lacking .... ----- Original Message ----- From: "Edward Potter" To: "NYPHP Talk" Sent: Tuesday, March 11, 2003 9:33 PM Subject: [nycphp-talk] PHP coding standards > > From dkrook at hotmail.com Wed Mar 12 10:27:25 2003 From: dkrook at hotmail.com (D C Krook) Date: Wed, 12 Mar 2003 10:27:25 -0500 Subject: NYPHP Slogan Contest Message-ID: Good morning all, NYPHP is announcing a contest of sorts to give our group a slogan. There currently are no material incentives for contributing, but if your submission wins, your work will be displayed on the website and perhaps even on other group materials such as the officially licensed thong (http://nyphp.krook.org/img/nyphp-thong.jpg). That said, what we're looking for in a slogan is something that embodies our existence as the largest PHP user's group in the New York metropolitan area, as well as our aspiration to become a resource to the national PHP community. We also want to express our commitment to being a resource for the OS independent AMP technology suite (Apache, MySQL, PHP). Please direct all submissions to slogan at nyphp.org. Thanks in advance for your help and good luck, -Dan ===== Daniel Krook Director of Communication, New York PHP http://nyphp.org krook at nyphp.org _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From JMKing at ipro.org Wed Mar 12 11:34:58 2003 From: JMKing at ipro.org (Jaz-Michael King) Date: Wed, 12 Mar 2003 11:34:58 -0500 Subject: [nycphp-talk] NYPHP Slogan Contest Message-ID: - NYPHP: Got AMP? <- jk, u can't use it - NYPHP: Turn up the AMP - NYPHP: The Big AMPle need more? j >>> dkrook at hotmail.com 03/12/03 10:27AM >>> Good morning all, NYPHP is announcing a contest of sorts to give our group a slogan. There currently are no material incentives for contributing, but if your submission wins, your work will be displayed on the website and perhaps even on other group materials such as the officially licensed thong (http://nyphp.krook.org/img/nyphp-thong.jpg). That said, what we're looking for in a slogan is something that embodies our existence as the largest PHP user's group in the New York metropolitan area, as well as our aspiration to become a resource to the national PHP community. We also want to express our commitment to being a resource for the OS independent AMP technology suite (Apache, MySQL, PHP). Please direct all submissions to slogan at nyphp.org. Thanks in advance for your help and good luck, -Dan ===== Daniel Krook Director of Communication, New York PHP http://nyphp.org krook at nyphp.org _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail --- Unsubscribe at http://nyphp.org/list/ --- From nyphp at websapp.com Wed Mar 12 12:19:02 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Wed, 12 Mar 2003 12:19:02 -0500 Subject: DevTeam meeting and PR Manager Message-ID: Hi Group, New York PHP is growing quickly thanks to great people putting in a lot of effort, time, and skill, helping NYPHP become a recognized resource for the AMP community. I would like to welcome Peter Sawczynec aboard, who will lead the Server-side development team. Peter brings many years of technology and Web experience to NYPHP and will help us greatly with development. We are in great need of a PR Manager. If any of you have past experience with PR (or would like to have experience) and would like to help NYPHP, please drop me an email. Best regards, Daniel Kushner Vice President, New York PHP http://nyphp.org/ daniel at nyphp.org From dkrook at hotmail.com Wed Mar 12 12:20:17 2003 From: dkrook at hotmail.com (D C Krook) Date: Wed, 12 Mar 2003 12:20:17 -0500 Subject: [nycphp-talk] NYPHP Slogan Contest Message-ID: Here are some more details on the contest: -> The deadline is March 21st, 2003 -> Winner gets a free NYPHP mouse pad (possibly autographed by Hans himself) :) > >There currently are no material incentives for contributing, >but if your submission wins, your work will be displayed on >the website and perhaps even on other group materials such >as the officially licensed thong >(http://nyphp.krook.org/img/nyphp-thong.jpg). > _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From mjdewitt at alexcommgrp.com Wed Mar 12 13:30:03 2003 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Wed, 12 Mar 2003 13:30:03 -0500 Subject: OT: Bestbuy and other stores giving away Barenaked ladies tickets Message-ID: Intel is doing a promotion on the Centrino processor and are giving away tickets to a show tonight, 7:00 PM, at the Hammerstein Ballroom. Bestbuy is at 23rd and 6th. Mike From chun_lam at hotmail.com Wed Mar 12 15:28:02 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Wed, 12 Mar 2003 15:28:02 -0500 Subject: [nycphp-talk] What is $QUERY_STRING ? Message-ID: Why do you need QUERY_STRING? PHP does separate the name-value pair to $_GET array. ----Original Message Follows---- From: Matthew Zimmerman Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] What is $QUERY_STRING ? Date: Tue, 11 Mar 2003 11:09:05 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc7-f2.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 11 Mar 2003 08:09:33 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h2BG95JH064800for ; Tue, 11 Mar 2003 11:09:30 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP Message-Id: <200303111609.h2BG95JH064800 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 11 Mar 2003 16:09:34.0967 (UTC) FILETIME=[9BA78070:01C2E7E8] Ok, this may sound like a really naive question, but I will ask anyway. What is the predefined variable $QUERY_STRING ? The PHP manual says: 'QUERY_STRING' The query string, if any, via which the page was accessed. That definition is a bit tautological:) I ask because I have some code I grabed from a website and it contains the line:
"method="POST"> I am guessing this means if the form has been submitted, the key/value pairs will be contained in a variable called $QUERY_STRING, but maybe I am way off there? Just to test I made a simple form: Name Address Title
I sent that to But nothing prints out for $QUERY_STRING. I tired both POST and GET. Thanks! I am asking this question mostly out of curiosity. The code I downloaded works fine. I just want to know why it works. Matt --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus From chun_lam at hotmail.com Wed Mar 12 15:32:17 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Wed, 12 Mar 2003 15:32:17 -0500 Subject: [nycphp-talk] What is $QUERY_STRING ? Message-ID: looks like it is trying to call get and post method at the same time. ----Original Message Follows---- From: Matthew Zimmerman Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] What is $QUERY_STRING ? Date: Tue, 11 Mar 2003 12:04:58 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc10-f15.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 11 Mar 2003 09:05:23 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h2BH4wJH068453for ; Tue, 11 Mar 2003 12:05:18 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP Message-Id: <200303111705.h2BH4wJH068453 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 11 Mar 2003 17:05:24.0097 (UTC) FILETIME=[67E42F10:01C2E7F0] Thanks David, I had tried GET, but i was only using print($QUERY_STRING) instead of print ($_SERVER['QUERY_STRING']); When I added that it did, as you say, bloom. So what purpose is it serving in this code >
$QUERY_STRING;}?>"method="POST"> if the method is POST? This is a snipet from some code I downloaded for a login page to my site. Matt --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From shiflett at php.net Wed Mar 12 15:36:16 2003 From: shiflett at php.net (Chris Shiflett) Date: Wed, 12 Mar 2003 12:36:16 -0800 (PST) Subject: [nycphp-talk] What is $QUERY_STRING ? In-Reply-To: <200303122028.h2CKS5Mx004004@parsec.nyphp.org> Message-ID: <20030312203616.11237.qmail@web14306.mail.yahoo.com> --- CHUN-YIU LAM wrote: > Why do you need QUERY_STRING? PHP does separate the name-value pair to > $_GET array. Not to be cute, but it is handy when you need the query string. The original poster included an example of how this might be useful. He had found some sample code that included an HTML form that posted data to itself. The query string was appended to make sure no URL variables were lost. Chris From lists at ny-tech.net Wed Mar 12 19:30:50 2003 From: lists at ny-tech.net (Nasir Zubair) Date: Wed, 12 Mar 2003 19:30:50 -0500 (Eastern Standard Time) Subject: [nycphp-talk] selecting/deleting all oldest entries in mysql. References: <200303111318.h2BDHqLJ057900@parsec.nyphp.org> Message-ID: <3E6FD13A.000003.01796@nyt-001> Thanks for the ideas Jim and Christopher Merlo. I'm trying them now. - Nasir -------Original Message------- From: talk at nyphp.org Date: Tuesday, March 11, 2003 8:18:32 AM To: NYPHP Talk Subject: Re: [nycphp-talk] selecting/deleting all oldest entries in mysql. You could use a seq# for each person. When inserting the record do a select on max seq# to obtain the highest # used for that individual, increment that #, insert the new record, then delete where seq# <= newnumber - x and person = logged in person. 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: "Nasir Zubair" To: "NYPHP Talk" Sent: Monday, March 10, 2003 8:41 PM Subject: [nycphp-talk] selecting/deleting all oldest entries in mysql. > Hi all, > > I need to create a small logger, for our work place, that will log staff's > IP addresses and host names. What I'm trying to do is to log last X accesses > to an online helpdesk, 24 for example. > > I'm having trouble coming up with a query to select/delete the oldest entry > when a X+1st entry, (25th for the above number), is inserted. > > Can anyone hint me on how to go about doing it? > > - Nasir > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- . -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IMSTP.gif Type: image/gif Size: 494 bytes Desc: not available URL: From nasir at nasir.us Wed Mar 12 19:34:45 2003 From: nasir at nasir.us (Nasir Zubair) Date: Wed, 12 Mar 2003 19:34:45 -0500 (Eastern Standard Time) Subject: What's wrong with this query. Message-ID: <3E6FD225.000008.01796@nyt-001> Hi all, Can anyone point out what is wrong with this query: DELETE FROM `nsr_staffips` WHERE `tech` LIKE 'Nasir' ORDER BY `timestamp` LIMIT 1 According to mySQL manual it should delete the oldest entry ordered by the timestamp filed. - Nasir From chendry at nyc.rr.com Wed Mar 12 19:42:49 2003 From: chendry at nyc.rr.com (Christopher Hendry) Date: Wed, 12 Mar 2003 19:42:49 -0500 Subject: [nycphp-talk] selecting/deleting all oldest entries in mysql. In-Reply-To: <200303130031.h2D0USLT008760@parsec.nyphp.org> Message-ID: did this go the way of the PHP coding standards? -> -----Original Message----- -> From: Nasir Zubair [mailto:lists at ny-tech.net] -> Sent: Wednesday, March 12, 2003 7:30 PM -> To: NYPHP Talk -> Subject: Re: [nycphp-talk] selecting/deleting all oldest entries in -> mysql. -> -> -> -> From lists at ny-tech.net Wed Mar 12 19:52:28 2003 From: lists at ny-tech.net (Nasir Zubair) Date: Wed, 12 Mar 2003 19:52:28 -0500 (Eastern Standard Time) Subject: [nycphp-talk] selecting/deleting all oldest entries in mysql. References: <200303130043.h2D0gwLJ009578@parsec.nyphp.org> Message-ID: <3E6FD64C.000001.01796@nyt-001> >From the looks of it. Hey Hans, what's up with with the list these days, it is developing a taste for certain newbie-ish messages LOL BTW, That was a thank you note to Jim and Christopher Merlo. - nasir -------Original Message------- From: talk at nyphp.org Date: Wednesday, March 12, 2003 7:43:21 PM To: NYPHP Talk Subject: RE: [nycphp-talk] selecting/deleting all oldest entries in mysql. did this go the way of the PHP coding standards? -> -----Original Message----- -> From: Nasir Zubair [mailto:lists at ny-tech.net] -> Sent: Wednesday, March 12, 2003 7:30 PM -> To: NYPHP Talk -> Subject: Re: [nycphp-talk] selecting/deleting all oldest entries in -> mysql. -> -> -> -> --- Unsubscribe at http://nyphp.org/list/ --- . From pl at eskimo.com Thu Mar 13 00:41:16 2003 From: pl at eskimo.com (Peter Lehrer) Date: Wed, 12 Mar 2003 21:41:16 -0800 (PST) Subject: [nycphp-talk] DevTeam meeting and PR Manager In-Reply-To: <200303121719.h2CHJgHl099571@parsec.nyphp.org> Message-ID: Hi Daniel, I'll do it. I have no experience but I would like to get some. I also know someone who may be able to help me. Yours, Peter On Wed, 12 Mar 2003, Daniel Kushner wrote: > Hi Group, > > New York PHP is growing quickly thanks to great people putting in a lot of > effort, time, and skill, helping NYPHP become a recognized resource for the > AMP community. > > I would like to welcome Peter Sawczynec aboard, who will lead the Server-side > development team. Peter brings many years of technology and Web experience > to NYPHP and will help us greatly with development. > > We are in great need of a PR Manager. If any of you have past experience with > PR (or would like to have experience) and would like to help NYPHP, please > drop me an email. > > > Best regards, > > Daniel Kushner > Vice President, New York PHP > http://nyphp.org/ > daniel at nyphp.org > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From shawn at shawnlawyer.com Thu Mar 13 14:28:44 2003 From: shawn at shawnlawyer.com (Shawn Lawyer) Date: Thu, 13 Mar 2003 14:28:44 -0500 Subject: sessions class Message-ID: <006501c2e996$c6a6edb0$b4cf1a44@Della> here we go, I have a class that is to be handling my sessions for me, allowing me to store sessions in a db without the ini file doing int for me.basically I check to see if the session id is available in a cookie, get ,or post variable. then if it is I check the database against the id variable if it finds the variable in the db it's a valid session. if the script doesn't find the id in the db then a new id is created. here where the problem is. for some reason the id in the cookie isn't found in the db so the script creates a new id and puts it in the db and starts a session with the new id. when I go to refresh the page the old cookie id is found and so instead of using the session that was started on the previous page the script just creates a new one. I need to unset this cookie I think but not sure. thank you, shawn. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shawn at shawnlawyer.com Thu Mar 13 14:28:49 2003 From: shawn at shawnlawyer.com (Shawn Lawyer) Date: Thu, 13 Mar 2003 14:28:49 -0500 Subject: sessions class Message-ID: <006601c2e996$ca3ee180$b4cf1a44@Della> here we go, I have a class that is to be handling my sessions for me, allowing me to store sessions in a db without the ini file doing int for me.basically I check to see if the session id is available in a cookie, get ,or post variable. then if it is I check the database against the id variable if it finds the variable in the db it's a valid session. if the script doesn't find the id in the db then a new id is created. here where the problem is. for some reason the id in the cookie isn't found in the db so the script creates a new id and puts it in the db and starts a session with the new id. when I go to refresh the page the old cookie id is found and so instead of using the session that was started on the previous page the script just creates a new one. I need to unset this cookie I think but not sure. thank you, shawn. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ophir at prusak.com Thu Mar 13 14:37:23 2003 From: ophir at prusak.com (Ophir Prusak) Date: Thu, 13 Mar 2003 14:37:23 -0500 Subject: [nycphp-talk] sessions class References: <200303131931.h2DJUFMT025607@parsec.nyphp.org> Message-ID: <03ab01c2e997$fb632ef0$bf65a8c0@tag1002> ----- Original Message ----- From: "Shawn Lawyer" To: "NYPHP Talk" Sent: Thursday, March 13, 2003 2:30 PM Subject: [nycphp-talk] sessions class > here we go, > I have a class that is to be handling my sessions for me, allowing me to store sessions in a db > without the ini file doing int for me.basically I check to see if the session id is available in a cookie, > get ,or post variable. then if it is I check the database against the id variable if it finds the variable > in the db it's a valid session. if the script doesn't find the id in the db then a new id is created. here > where the problem is. for some reason the id in the cookie isn't found in the db so the script creates > a new id and puts it in the db and starts a session with the new id. Why don't you re-write the cookie with the new ID at this point ? > when I go to refresh the page > the old cookie id is found and so instead of using the session that was started on the previous > page the script just creates a new one. I need to unset this cookie I think but not sure. > thank you, > shawn. > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From ophir at prusak.com Fri Mar 14 11:04:03 2003 From: ophir at prusak.com (Ophir Prusak) Date: Fri, 14 Mar 2003 11:04:03 -0500 Subject: Using shared data at the server level References: <200303121720.h2CHJgMT099571@parsec.nyphp.org> Message-ID: <013d01c2ea43$557b5650$bf65a8c0@tag1002> Hi All, I'm looking for the best way to store non-critical frequently updated data that needs to be shared across all php processes (on a single server). Please notice I say frequently updated. If I'm just storing something that only changes once every N requests (where N is a large number) then I'd just use the file system since the OS caches that anyways. For example, lets say I wanted to have a page counter on every page. Ideally, I'd just have a variable which is read/write by any php process on the server. Something like this: $my_super_global ++; print "this is page view $my_super_global"; One way is to use the file system. This or course is pretty simple, but since the file needs to be updated every single request, I'm thinking it would be faster to use memory. Has anyone done anything like this ? Does anyone know of any existing or built in packages can I use ? thanx ophir From sklar at sklar.com Fri Mar 14 11:17:14 2003 From: sklar at sklar.com (David Sklar) Date: Fri, 14 Mar 2003 11:17:14 -0500 Subject: [nycphp-talk] Using shared data at the server level In-Reply-To: <200303141606.h2EG5CN1042462@parsec.nyphp.org> Message-ID: PEAR Cache has support for an msession container. That might do the trick. --> http://pear.php.net/package-info.php?pacid=40 David On Friday, March 14, 2003 11:05 AM, Ophir Prusak wrote: > Hi All, > > I'm looking for the best way to store non-critical frequently updated > data that needs to be shared across all php processes (on a single > server). Please notice I say frequently updated. If I'm just storing > something that only changes once every N requests (where N is a large > number) then I'd just use the file system since the OS caches that > anyways. > > For example, lets say I wanted to have a page counter on every page. > Ideally, I'd just have a variable which is read/write by any php > process on the server. Something like this: > > $my_super_global ++; > print "this is page view $my_super_global"; > > One way is to use the file system. > This or course is pretty simple, but since the file needs to be > updated every single request, I'm thinking it would be faster to use > memory. > > Has anyone done anything like this ? > > Does anyone know of any existing or built in packages can I use ? > > thanx > ophir > From mz34 at nyu.edu Fri Mar 14 12:28:21 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Fri, 14 Mar 2003 12:28:21 -0500 Subject: installing PHP extensions Message-ID: <5A2A135C-5642-11D7-90FE-00039344DCA8@nyu.edu> Here I am again with the naive newbie questions:) When I come across a PHP extension that I would like to use do I always have to reconfigure PHP? I want to use some PHP XSLT functions on either my Red Hat Linux or MacOSX box: http://www.php.net/manual/en/ref.xslt.php and the install instructions say to run configure with such and such options. If I do this, do I have to include all the other options for other extensions and settings? Will all the configure options be reset if I only run configure with the options of installing the XSLT extension? I guess I just want to know what is the easiest way to install an extension without messing up the PHP installation I have already. Thanks a lot! MZ _________________ Matthew Zimmerman Humanities Computing Group, NYU Tel: 212.998.3038 Fax: 212.995.4120 From chris at psydeshow.org Fri Mar 14 12:41:58 2003 From: chris at psydeshow.org (Chris Snyder) Date: Fri, 14 Mar 2003 12:41:58 -0500 Subject: [nycphp-talk] installing PHP extensions In-Reply-To: <200303141729.h2EHSQMZ044817@parsec.nyphp.org> References: <200303141729.h2EHSQMZ044817@parsec.nyphp.org> Message-ID: <3E721466.7040203@psydeshow.org> Matthew Zimmerman wrote: >I guess I just want to know what is the easiest way to install an >extension without messing up the PHP installation I have already. > > > AFAIK, you need to recompile. One way to find out what options your current php was compiled with is to check the output of a phpinfo() call -- it includes the Configure Command that was used for the last compile. If you have been using RPMs, this might seem like a big step as you'll need to recompile Apache from source as well. The learning curve is well worth it, however. chris. From nyphp at jimbishop.org Fri Mar 14 13:17:03 2003 From: nyphp at jimbishop.org (nyphp at jimbishop.org) Date: Fri, 14 Mar 2003 10:17:03 -0800 (PST) Subject: Zend + OpenBSD Message-ID: Anyone heard about a new Zend Optimizer for OpenBSD? I made the mistake of upgrading my Zend Safeguard Suite and now the Optimizer I'm running is incompatible. GRRRR. From mz34 at nyu.edu Fri Mar 14 13:29:34 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Fri, 14 Mar 2003 13:29:34 -0500 Subject: [nycphp-talk] installing PHP extensions In-Reply-To: <200303141742.h2EHftLb045629@parsec.nyphp.org> Message-ID: Thanks Chris, I figured that was the case. And iIshould learn this anyway. I can just mess around with it on a development box and not worry about breaking anything. So if the install instructions for the XSLT extensions say: On UNIX, run configure with the --enable-xslt --with-xslt-sablot options I don't want to choose ONLY those options, right? I should read up in the manual and make sure I choose all the appropriate options for other extensions like MySQL etc., yes? I am guessing when I reconfigure I am starting from scratch and not just "adding" an extension. Matt On Friday, March 14, 2003, at 12:41 PM, Chris Snyder wrote: > Matthew Zimmerman wrote: > >> I guess I just want to know what is the easiest way to install an >> extension without messing up the PHP installation I have already. >> >> >> > AFAIK, you need to recompile. One way to find out what options your > current php was compiled with is to check the output of a phpinfo() > call > -- it includes the Configure Command that was used for the last > compile. > > If you have been using RPMs, this might seem like a big step as you'll > need to recompile Apache from source as well. The learning curve is > well > worth it, however. > > chris. > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > MZ _________________ Matthew Zimmerman Humanities Computing Group, NYU Tel: 212.998.3038 Fax: 212.995.4120 From chris at psydeshow.org Fri Mar 14 13:46:07 2003 From: chris at psydeshow.org (Chris Snyder) Date: Fri, 14 Mar 2003 13:46:07 -0500 Subject: [nycphp-talk] installing PHP extensions In-Reply-To: <200303141830.h2EITcMZ047661@parsec.nyphp.org> References: <200303141830.h2EITcMZ047661@parsec.nyphp.org> Message-ID: <3E72236F.7040106@psydeshow.org> Try this: create a script called test.php and call it from your web browser: From that you can get all the options that php is currently compiled with, to which you may add --enable-xslt, etc. Not that you shouldn't read up on the other options-- you might find that you are currently using some unnecessary ones. chris. Matthew Zimmerman wrote: >Thanks Chris, > >I figured that was the case. And iIshould learn this anyway. I can just >mess around with it on a development box and not worry about breaking >anything. > >So if the install instructions for the XSLT extensions say: > >On UNIX, run configure with the --enable-xslt --with-xslt-sablot options > >I don't want to choose ONLY those options, right? I should read up in >the manual and make sure I choose all the appropriate options for other >extensions like MySQL etc., yes? I am guessing when I reconfigure I am >starting from scratch and not just "adding" an extension. > >Matt > > From nyphp at NewAgeWeb.com Fri Mar 14 13:54:05 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Fri, 14 Mar 2003 13:54:05 -0500 Subject: [nycphp-talk] Using shared data at the server level Message-ID: <002701c2ea5b$214cccc0$de01a8c0@duron.lan.newageweb.com> What about semaphore/shared memory functions? http://www.php.net/manual/en/ref.sem.php Are they expensive to use? Jerry -- 42.7% of all statistics are made up on the spot. -----Original Message----- From: David Sklar To: NYPHP Talk Date: Friday, March 14, 2003 11:16 AM Subject: RE: [nycphp-talk] Using shared data at the server level >PEAR Cache has support for an msession container. That might do the trick. >--> http://pear.php.net/package-info.php?pacid=40 > >David > >On Friday, March 14, 2003 11:05 AM, Ophir Prusak wrote: > >> Hi All, >> >> I'm looking for the best way to store non-critical frequently updated >> data that needs to be shared across all php processes (on a single >> server). Please notice I say frequently updated. If I'm just storing >> something that only changes once every N requests (where N is a large >> number) then I'd just use the file system since the OS caches that >> anyways. >> >> For example, lets say I wanted to have a page counter on every page. >> Ideally, I'd just have a variable which is read/write by any php >> process on the server. Something like this: >> >> $my_super_global ++; >> print "this is page view $my_super_global"; >> >> One way is to use the file system. >> This or course is pretty simple, but since the file needs to be >> updated every single request, I'm thinking it would be faster to use >> memory. >> >> Has anyone done anything like this ? >> >> Does anyone know of any existing or built in packages can I use ? >> >> thanx >> ophir >> > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > From nnconcerts at msn.com Fri Mar 14 16:48:51 2003 From: nnconcerts at msn.com (Nicholas Noor) Date: Fri, 14 Mar 2003 16:48:51 -0500 Subject: [nycphp-talk] installing PHP extensions Message-ID: What is the cleanest way to install php, I know I do have to add a LoadModule php_module libexec/libphp4.so AddType application /x-httpd-php .php Syntax error on line 253 of /usr/local/apache/conf/httpd.conf: Can't locate API module structure `php_module' in file /usr/lib/apache/libphp4.so: /usr/local/apache/bin/httpd: undefined symbol: php_module ./apachectl start: httpd could not be started This is the message I get.. Without these lines I get the code on the webpage. I also tried module as DSO and another time I compiled with Module Static but with DSO support. These are the compiled-in modules. Please let me know what could I do next? Compiled-in modules: http_core.c mod_env.c mod_log_config.c mod_mime.c mod_negotiation.c mod_status.c mod_include.c mod_autoindex.c mod_dir.c mod_cgi.c mod_asis.c mod_imap.c mod_actions.c mod_userdir.c mod_alias.c mod_access.c mod_auth.c mod_so.c mod_setenvif.c mod_auth_cookie_file.c mod_monitor.c mod_php4.c In either case it doesn't seem to work > phpinfo(); >?> > _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From danielc at analysisandsolutions.com Fri Mar 14 20:22:36 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Fri, 14 Mar 2003 20:22:36 -0500 Subject: [nycphp-talk] Re: semaphores on Windows In-Reply-To: <200303111733.h2BHX1FX074411@parsec.nyphp.org> References: <200303111733.h2BHX1FX074411@parsec.nyphp.org> Message-ID: <20030315012235.GA19845@panix.com> Hey Ophir: On Tue, Mar 11, 2003 at 12:33:01PM -0500, Ophir Prusak wrote: > > Dan - using the algorithm below, why is there a need to lock the table ? > It'll work fine without table locking. > > 1. on selects, get the latest 10 from the database on selects (just in case) > > 2. and after an insert, find the 10th latest entry > 3. delete all entries older then what u found in step 2 Admittedly, I was moving too fast and gave a flip answer. Seemed like Emmanuel was unfamilliar with locking, so threw that lead to him. Also, from the way your suggestion was written, I initially thought you were going to do the deletes based on the initail select in step 1. I now believe that's not what you really meant. Finally, after step 2, there are more than ten records in the table. Emmanuel hasn't completely elaborated exactly what's going on here, so I don't know how sentsitive the whole thing is. Of course, this likely wouldn't be a problem if using your excellent suggestion of getting only the last ten records when doing selects, presumably via the LIMIT clause, Enjoy, --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From zaunere at yahoo.com Sat Mar 15 13:56:10 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Sat, 15 Mar 2003 10:56:10 -0800 (PST) Subject: [nycphp-talk] Zend + OpenBSD In-Reply-To: <200303141818.h2EIH8PZ046834@parsec.nyphp.org> Message-ID: <20030315185610.88651.qmail@web12807.mail.yahoo.com> --- nyphp at jimbishop.org wrote: > > Anyone heard about a new Zend Optimizer for OpenBSD? I made the mistake > of upgrading my Zend Safeguard Suite and now the Optimizer I'm running is > incompatible. GRRRR. I think only the older versions support OpenBSD. http://zend.com/store/products/product_compatibility.php#id46 H From zaunere at yahoo.com Sat Mar 15 14:13:50 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Sat, 15 Mar 2003 11:13:50 -0800 (PST) Subject: [nycphp-talk] Using shared data at the server level In-Reply-To: <200303141607.h2EG5CPZ042462@parsec.nyphp.org> Message-ID: <20030315191350.10848.qmail@web12803.mail.yahoo.com> --- Ophir Prusak wrote: > Hi All, > > I'm looking for the best way to store non-critical frequently updated data > that needs to be shared across all php processes (on a single server). > Please notice I say frequently updated. If I'm just storing something that > only changes once every N requests (where N is a large number) then I'd > just use the file system since the OS caches that anyways. Yeah, N would have to be very large IMO to beat out kernel caching. > For example, lets say I wanted to have a page counter on every page. > Ideally, I'd just have a variable which is read/write by any php process on > the server. Something like this: > > $my_super_global ++; > print "this is page view $my_super_global"; > > One way is to use the file system. > This or course is pretty simple, but since the file needs to be updated > every single request, I'm thinking it would be faster to use memory. > > Has anyone done anything like this ? Basically it looks like you need application variables. The best way to do this is probably with shared memory and semaphores if available. Although PHP's extension falls short abit in some area for this, I've written a couple classes that have worked well for me: http://parsec.nyphp.org/pVar.inc http://parsec.nyphp.org/pApp.psh pVar is the main class, with pApp being a shell script to create and manage a particular application. It's a bit rough, and you could probably just get away with pVar.inc. You're welcome to rip/hack any of that code as needed and let me know if you run into any questions. Best, H From zaunere at yahoo.com Sat Mar 15 14:19:29 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Sat, 15 Mar 2003 11:19:29 -0800 (PST) Subject: [nycphp-talk] installing PHP extensions In-Reply-To: <200303142150.h2ELmsPX052142@parsec.nyphp.org> Message-ID: <20030315191929.81569.qmail@web12805.mail.yahoo.com> --- Nicholas Noor wrote: > What is the cleanest way to install php, > > I know I do have to add a > LoadModule php_module libexec/libphp4.so > AddType application /x-httpd-php .php This should work: LoadModule php4_module libexec/libphp4.so AddType application/x-httpd-php .php > Syntax error on line 253 of /usr/local/apache/conf/httpd.conf: > Can't locate API module structure `php_module' in file > /usr/lib/apache/libphp4.so: /usr/local/apache/bin/httpd: undefined symbol: > php_module > /apachectl start: httpd could not be started > > This is the message I get.. > Without these lines I get the code on the webpage. I also tried module as > DSO and another time I compiled with Module Static but with DSO support. > > These are the compiled-in modules. Please let me know what could I do next? > > Compiled-in modules: > http_core.c > mod_env.c > mod_log_config.c > mod_mime.c > mod_negotiation.c > mod_status.c > mod_include.c > mod_autoindex.c > mod_dir.c > mod_cgi.c > mod_asis.c > mod_imap.c > mod_actions.c > mod_userdir.c > mod_alias.c > mod_access.c > mod_auth.c > mod_so.c > mod_setenvif.c > mod_auth_cookie_file.c > mod_monitor.c > mod_php4.c > > > In either case it doesn't seem to work > > > phpinfo(); > >?> > > > > > _________________________________________________________________ > STOP MORE SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From zaunere at yahoo.com Sat Mar 15 14:24:55 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Sat, 15 Mar 2003 11:24:55 -0800 (PST) Subject: [nycphp-talk] installing PHP extensions In-Reply-To: <200303141729.h2EHSQPZ044817@parsec.nyphp.org> Message-ID: <20030315192455.82410.qmail@web12805.mail.yahoo.com> --- Matthew Zimmerman wrote: > Here I am again with the naive newbie questions:) > > When I come across a PHP extension that I would like to use do I always > have to reconfigure PHP? For production systems, I would. > I want to use some PHP XSLT functions on either my Red Hat Linux or > MacOSX box: > > http://www.php.net/manual/en/ref.xslt.php > > and the install instructions say to run configure with such and such > options. > > If I do this, do I have to include all the other options for other > extensions and settings? Will all the configure options be reset if I > only run configure with the options of installing the XSLT extension? Yeah, you'll need to specify all other configure options. For some extensions, I think you could do something like: ./configure --enable-xslt --with-xslt-sablot=shared,/path/to/sablot then dl() the shared object file. However, I'm not sure how well this is supported, and I think it's generally recommended to compile PHP with the extensions you want from the start. H From chun_lam at hotmail.com Sun Mar 16 13:10:11 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Sun, 16 Mar 2003 13:10:11 -0500 Subject: [nycphp-talk] Using shared data at the server level Message-ID: maybe you can used shared memory? lookup and shm_attach and related functions. ----Original Message Follows---- From: "Ophir Prusak" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] Using shared data at the server level Date: Fri, 14 Mar 2003 11:05:12 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc6-f31.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 14 Mar 2003 08:05:49 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h2EG5CJH042462for ; Fri, 14 Mar 2003 11:05:49 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP Message-Id: <200303141605.h2EG5CJH042462 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 14 Mar 2003 16:05:50.0172 (UTC) FILETIME=[94E7C1C0:01C2EA43] Hi All, I'm looking for the best way to store non-critical frequently updated data that needs to be shared across all php processes (on a single server). Please notice I say frequently updated. If I'm just storing something that only changes once every N requests (where N is a large number) then I'd just use the file system since the OS caches that anyways. For example, lets say I wanted to have a page counter on every page. Ideally, I'd just have a variable which is read/write by any php process on the server. Something like this: $my_super_global ++; print "this is page view $my_super_global"; One way is to use the file system. This or course is pretty simple, but since the file needs to be updated every single request, I'm thinking it would be faster to use memory. Has anyone done anything like this ? Does anyone know of any existing or built in packages can I use ? thanx ophir --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From smanes at magpie.com Sun Mar 16 14:18:12 2003 From: smanes at magpie.com (Steve Manes) Date: Sun, 16 Mar 2003 14:18:12 -0500 Subject: [nycphp-talk] Using shared data at the server level In-Reply-To: <200303161810.h2GIAFKP092476@parsec.nyphp.org> Message-ID: <5.1.1.6.2.20030316135432.01e887b8@192.168.111.6> >For example, lets say I wanted to have a page counter on every page. >Ideally, I'd just have a variable which is read/write by any php process on >the server. Something like this: > >$my_super_global ++; >print "this is page view $my_super_global"; > >One way is to use the file system. >This or course is pretty simple, but since the file needs to be updated >every single request, I'm thinking it would be faster to use memory. This will bind your web application to a single physical web server though. For fluffy stuff that doesn't really matter all that much, like a page counter, I'd serve the count from a static cache, refreshing it every X hours from an asynchronous script. In fact, I might have the script do that via an access log scan rather than having the web server update the database at every page load. mod_perl has Apache::Storable for maintaining serialized, persistent data across connections. There's a freshmeat knock-off of Storable for PHP but it sounds like it uses disk storage while I believe that Apache::Storable freezes structures in memory and writes them to disk on request: http://freshmeat.net/projects/storable/?topic_id=44%2C809%2C42 From nyphp at jimbishop.org Sun Mar 16 16:56:57 2003 From: nyphp at jimbishop.org (nyphp at jimbishop.org) Date: Sun, 16 Mar 2003 13:56:57 -0800 (PST) Subject: [nycphp-talk] Zend + OpenBSD In-Reply-To: <200303151857.h2FIuDJr074358@parsec.nyphp.org> Message-ID: > > Anyone heard about a new Zend Optimizer for OpenBSD? I made the mistake > > of upgrading my Zend Safeguard Suite and now the Optimizer I'm running is > > incompatible. GRRRR. > > I think only the older versions support OpenBSD. > > http://zend.com/store/products/product_compatibility.php#id46 Yes, the older versions support OpenBSD. Unfortunately, those Optimizers do not support the newer versions of the Zend Encoder. Does anyone know anything about a new Optimizer for OpenBSD? or maybe how to hack the FreeBSD version into submission? From hans at nyphp.org Sun Mar 16 18:36:16 2003 From: hans at nyphp.org (Hans Zaunere) Date: Sun, 16 Mar 2003 15:36:16 -0800 (PST) Subject: [nycphp-talk] Zend + OpenBSD In-Reply-To: <200303162158.h2GLuxPT096785@parsec.nyphp.org> Message-ID: <20030316233616.91349.qmail@web12801.mail.yahoo.com> --- nyphp at jimbishop.org wrote: > > > Anyone heard about a new Zend Optimizer for OpenBSD? I made the > mistake > > > of upgrading my Zend Safeguard Suite and now the Optimizer I'm running > is > > > incompatible. GRRRR. > > > > I think only the older versions support OpenBSD. > > > > http://zend.com/store/products/product_compatibility.php#id46 > > > Yes, the older versions support OpenBSD. Unfortunately, those Optimizers > do not support the newer versions of the Zend Encoder. > > Does anyone know anything about a new Optimizer for OpenBSD? or maybe how > to hack the FreeBSD version into submission? Emulation may be your best bet: http://www.bsdtoday.com/resources/HOWTOs/cooley-openbsd-linux-emulation.html H From steve at soler.com Mon Mar 17 19:52:26 2003 From: steve at soler.com (Steve Soler) Date: Mon, 17 Mar 2003 19:52:26 -0500 Subject: PHP/MySQL based solution for sending bulk email? In-Reply-To: <200303121831.h2CIU8N9001866@parsec.nyphp.org> Message-ID: I have an opt-in email list of about 200,000 people. I'm wondering if anyone knows of a shareware or commercial PHP/MySQL based solution for sending out bulk email. It would have to have the following features: - Allow the creation of multiple mailing lists by duplicating existing mailing lists and also copying one mailing list to an existing. - Must be able to remove duplicates in each individual mailing list. - Force mailings to be associated with only one mailing list at a time. - Allow for optional demographics fields on the Opt-In form. - Handle Opt-Out / Opt-In requests for each individual email list. - Handle HTML email with optional plain text for non-html email clients. - Monitor statistics for every delivered email that is viewed and the link clicked through to. - Provide a way for clients to view the live statistics of their particular mailing online. This solution can run on either a Windows 2000 box or a Mac OS X box, which ever is more convenient. I know Mac OS X come with PHP and SendMail pre-installed being that it's really UNIX under the hood. I'll be using a broad band connection so I need this solution to use the sendmail program (or equivalent) to send the mailings right from the box it's installed on. This is to avoid having to rely on an ISP or Web-hosts mail server which will think I'm sending out spam and try and shut me down. I hope this is clear and I hope some one knows of a solution out there that will do the job. If there turns out to be none with these capabilities, I'm also interested in possibly hiring some one to build such a solution for me if the price is right. All feed back is appreciated. Thank you, Steve Soler From zaunere at yahoo.com Tue Mar 18 08:42:02 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 18 Mar 2003 05:42:02 -0800 (PST) Subject: [nycphp-talk] PHP/MySQL based solution for sending bulk email? In-Reply-To: <200303180054.h2I0quPT017535@parsec.nyphp.org> Message-ID: <20030318134202.56414.qmail@web12801.mail.yahoo.com> --- Steve Soler wrote: > I have an opt-in email list of about 200,000 people. I'm wondering if > anyone knows of a shareware or commercial PHP/MySQL based solution for > sending out bulk email. It would have to have the following features: > - Allow the creation of multiple mailing lists by duplicating existing > mailing lists and also copying one mailing list to an existing. > - Must be able to remove duplicates in each individual mailing list. > - Force mailings to be associated with only one mailing list at a time. > - Allow for optional demographics fields on the Opt-In form. > - Handle Opt-Out / Opt-In requests for each individual email list. > - Handle HTML email with optional plain text for non-html email clients. > - Monitor statistics for every delivered email that is viewed and the > link clicked through to. > - Provide a way for clients to view the live statistics of their > particular mailing online. If you want to do this in a professional manner, you may be better off outsourcing to a company that does just this. It's inexpensive and would probably work the best. Google for php bulking emailing or some variation and look at the ads google comes up with on the right. There are also some commercial products, but for 200,000 mails you'll need a pretty fat bit pipe. H > > This solution can run on either a Windows 2000 box or a Mac OS X box, > which ever is more convenient. I know Mac OS X come with PHP and > SendMail pre-installed being that it's really UNIX under the hood. > > I'll be using a broad band connection so I need this solution to use > the sendmail program (or equivalent) to send the mailings right from > the box it's installed on. This is to avoid having to rely on an ISP > or Web-hosts mail server which will think I'm sending out spam and try > and shut me down. > > I hope this is clear and I hope some one knows of a solution out there > that will do the job. If there turns out to be none with these > capabilities, I'm also interested in possibly hiring some one to build > such a solution for me if the price is right. All feed back is > appreciated. > > Thank you, > Steve Soler > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From steve at soler.com Tue Mar 18 08:54:23 2003 From: steve at soler.com (Steve Soler) Date: Tue, 18 Mar 2003 08:54:23 -0500 Subject: [nycphp-talk] PHP/MySQL based solution for sending bulk email? In-Reply-To: <200303181343.h2IDg7ND027026@parsec.nyphp.org> Message-ID: <202796ED-5949-11D7-970F-003065481BD8@soler.com> Thanks for the advice, but we are already outsourcing. We want to handle this in house. Can you let me know of any commercial products you may know of that are currently available. Thanks, Steve On Tuesday, March 18, 2003, at 08:42 AM, Hans Zaunere wrote: > If you want to do this in a professional manner, you may be better off > outsourcing to a company that does just this. It's inexpensive and > would > probably work the best. Google for php bulking emailing or some > variation > and look at the ads google comes up with on the right. > > There are also some commercial products, but for 200,000 mails you'll > need a > pretty fat bit pipe. > > H From ophir at prusak.com Tue Mar 18 10:03:31 2003 From: ophir at prusak.com (Ophir Prusak) Date: Tue, 18 Mar 2003 10:03:31 -0500 Subject: [nycphp-talk] PHP/MySQL based solution for sending bulk email? References: <200303181355.h2IDskMV027824@parsec.nyphp.org> Message-ID: <007701c2ed5f$8a22aec0$bf65a8c0@tag1002> Hi Steve, I'm also currently outsourcing my humble 8,000 member list (and am looking at other solutions). Before going any further, may I ask why it has to be a PHP/MySQL solution ? There are plenty of excellent free / commercial mailing list managers, but not necessarily in PHP / MySQL. Ophir ----- Original Message ----- From: "Steve Soler" To: "NYPHP Talk" Sent: Tuesday, March 18, 2003 8:54 AM Subject: Re: [nycphp-talk] PHP/MySQL based solution for sending bulk email? > Thanks for the advice, but we are already outsourcing. We want to > handle this in house. Can you let me know of any commercial products > you may know of that are currently available. > > Thanks, > Steve > > On Tuesday, March 18, 2003, at 08:42 AM, Hans Zaunere wrote: > > > If you want to do this in a professional manner, you may be better off > > outsourcing to a company that does just this. It's inexpensive and > > would > > probably work the best. Google for php bulking emailing or some > > variation > > and look at the ads google comes up with on the right. > > > > There are also some commercial products, but for 200,000 mails you'll > > need a > > pretty fat bit pipe. > > > > H > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From chendry at nyc.rr.com Tue Mar 18 10:05:20 2003 From: chendry at nyc.rr.com (Christopher Hendry) Date: Tue, 18 Mar 2003 10:05:20 -0500 Subject: [nycphp-talk] PHP/MySQL based solution for sending bulk email? In-Reply-To: <200303181355.h2IDskLT027824@parsec.nyphp.org> Message-ID: it is not PHP/mySQL but I've used: postcast/postcastserver for much of what you need done. It was only slightly buggy a couple of years ago when I used it... -> -----Original Message----- -> From: Steve Soler [mailto:steve at soler.com] -> Sent: Tuesday, March 18, 2003 8:55 AM -> To: NYPHP Talk -> Subject: Re: [nycphp-talk] PHP/MySQL based solution for sending bulk -> email? -> -> -> Thanks for the advice, but we are already outsourcing. We want to -> handle this in house. Can you let me know of any commercial products -> you may know of that are currently available. -> -> Thanks, -> Steve -> -> On Tuesday, March 18, 2003, at 08:42 AM, Hans Zaunere wrote: -> -> > If you want to do this in a professional manner, you may be better off -> > outsourcing to a company that does just this. It's inexpensive and -> > would -> > probably work the best. Google for php bulking emailing or some -> > variation -> > and look at the ads google comes up with on the right. -> > -> > There are also some commercial products, but for 200,000 mails you'll -> > need a -> > pretty fat bit pipe. -> > -> > H -> -> -> -> --- Unsubscribe at http://nyphp.org/list/ --- -> -> From steve at soler.net Tue Mar 18 12:59:17 2003 From: steve at soler.net (steve at soler.net) Date: Tue, 18 Mar 2003 09:59:17 -0800 (PST) Subject: [nycphp-talk] PHP/MySQL based solution for sending bulk email? Message-ID: <20030318095917.29029.h010.c000.wm@mail.soler.com.criticalpath.net> I guess it does not have to be PHP/MySQL, but it's just that I'm most confident with this technologies stability. Also, if it's PHP I think it may be easier to add features in the future if need be. - Steve On Tue, 18 Mar 2003 09:37:45 -0800 (PST), "Ophir Prusak" wrote: > > Hi Steve, > > I'm also currently outsourcing my humble 8,000 member list (and am looking > at other solutions). > Before going any further, may I ask why it has to be a PHP/MySQL solution ? > > There are plenty of excellent free / commercial mailing list managers, but > not necessarily in PHP / MySQL. > > Ophir > > ----- Original Message ----- > From: "Steve Soler" > To: "NYPHP Talk" > Sent: Tuesday, March 18, 2003 8:54 AM > Subject: Re: [nycphp-talk] PHP/MySQL based solution for sending bulk email? > > > > Thanks for the advice, but we are already outsourcing. We want to > > handle this in house. Can you let me know of any commercial products > > you may know of that are currently available. > > > > Thanks, > > Steve > > > > On Tuesday, March 18, 2003, at 08:42 AM, Hans Zaunere wrote: > > > > > If you want to do this in a professional manner, you may be better off > > > outsourcing to a company that does just this. It's inexpensive and > > > would > > > probably work the best. Google for php bulking emailing or some > > > variation > > > and look at the ads google comes up with on the right. > > > > > > There are also some commercial products, but for 200,000 mails you'll > > > need a > > > pretty fat bit pipe. > > > > > > H > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- Steve Soler http://SOLER.NET 877-591-5378 From ian at plusfour.org Tue Mar 18 13:49:22 2003 From: ian at plusfour.org (Ian Forsyth) Date: Tue, 18 Mar 2003 10:49:22 -0800 Subject: [nycphp-talk] PHP/MySQL based solution for sending bulk email? In-Reply-To: <200303180054.h2I0quMR017535@parsec.nyphp.org> Message-ID: <556DB786-5972-11D7-8CA0-0050E4858059@plusfour.org> Steve, to send out 5000 emails using a solution you describe below on a shared hosting server would take 1/2 hour, to an hour with noticable server lag.. If you have developers on staff.. Go for it do it in house... get a server from rackspace.com, or dialtone.com ($150 bucks a month or so) or something similar.. developers getting at least $150 dollars a day.. it would not take long to get up and running, three months at a maximum .. but if you do not have developers already on staff I'd say give the responsibilty to some one else, and if they are failing find another company to do it for you.. In doing mass mailing (SPAM) there are a lot of concerns to keep in mind, RBL database, MAPS.. network up time.. HACKERS who don't like you sending out so much email.. the more 'popular' your ip, the more you have to be concerned about security.. though the managed hosting solutions mentioned above can help you with such duties.. So maybe you can do it semi in house.. Meaning you go with a managed hosting service provider, pay the extra fees for security and backup, and extra band width, and setup but develop the php/POSTGRES or MYSQL 4 solution your selves.. thing is.. its kinda difficult to test for 200,000 emails, this is why going with some one how specializes in mass mailing would be a good idea.. maybe you could host the front end.. then send a mass mailing company the list.. and say send these people email.. but you could maintain the list of people, and sell their addresses to as many people as you want. I would not do it if you do not have developers weather contract or full time. When something breaks, it is best to not learn how to program at that time. Anyways, those are my thoughts.. Ian On Monday, March 17, 2003, at 04:52 PM, Steve Soler wrote: > I have an opt-in email list of about 200,000 people. I'm wondering if > anyone knows of a shareware or commercial PHP/MySQL based solution for > sending out bulk email. It would have to have the following features: > - Allow the creation of multiple mailing lists by duplicating existing > mailing lists and also copying one mailing list to an existing. > - Must be able to remove duplicates in each individual mailing list. > - Force mailings to be associated with only one mailing list at a time. > - Allow for optional demographics fields on the Opt-In form. > - Handle Opt-Out / Opt-In requests for each individual email list. > - Handle HTML email with optional plain text for non-html email > clients. > - Monitor statistics for every delivered email that is viewed and the > link clicked through to. > - Provide a way for clients to view the live statistics of their > particular mailing online. > > This solution can run on either a Windows 2000 box or a Mac OS X box, > which ever is more convenient. I know Mac OS X come with PHP and > SendMail pre-installed being that it's really UNIX under the hood. > > I'll be using a broad band connection so I need this solution to use > the sendmail program (or equivalent) to send the mailings right from > the box it's installed on. This is to avoid having to rely on an ISP > or Web-hosts mail server which will think I'm sending out spam and try > and shut me down. > > I hope this is clear and I hope some one knows of a solution out there > that will do the job. If there turns out to be none with these > capabilities, I'm also interested in possibly hiring some one to build > such a solution for me if the price is right. All feed back is > appreciated. > > Thank you, > Steve Soler > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From steve at soler.com Tue Mar 18 15:21:37 2003 From: steve at soler.com (Steve Soler) Date: Tue, 18 Mar 2003 12:21:37 -0800 (PST) Subject: [nycphp-talk] PHP/MySQL based solution for sending bulk email? Message-ID: <20030318122138.20967.h014.c000.wm@mail.soler.com.criticalpath.net> I guess it does not have to be PHP/MySQL, but it's just that I'm most confident with this technologies stability. Also, if it's PHP I think it may be easier to add features in the future if need be. - Steve On Tue, 18 Mar 2003 12:21:10 -0800 (PST), "Ophir Prusak" wrote: > > Hi Steve, > > I'm also currently outsourcing my humble 8,000 member list (and am looking > at other solutions). > Before going any further, may I ask why it has to be a PHP/MySQL solution ? > > There are plenty of excellent free / commercial mailing list managers, but > not necessarily in PHP / MySQL. > > Ophir > > ----- Original Message ----- > From: "Steve Soler" > To: "NYPHP Talk" > Sent: Tuesday, March 18, 2003 8:54 AM > Subject: Re: [nycphp-talk] PHP/MySQL based solution for sending bulk email? > > > > Thanks for the advice, but we are already outsourcing. We want to > > handle this in house. Can you let me know of any commercial products > > you may know of that are currently available. > > > > Thanks, > > Steve > > > > On Tuesday, March 18, 2003, at 08:42 AM, Hans Zaunere wrote: > > > > > If you want to do this in a professional manner, you may be better off > > > outsourcing to a company that does just this. It's inexpensive and > > > would > > > probably work the best. Google for php bulking emailing or some > > > variation > > > and look at the ads google comes up with on the right. > > > > > > There are also some commercial products, but for 200,000 mails you'll > > > need a > > > pretty fat bit pipe. > > > > > > H > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From ophir at prusak.com Tue Mar 18 15:48:23 2003 From: ophir at prusak.com (Ophir Prusak) Date: Tue, 18 Mar 2003 15:48:23 -0500 Subject: [nycphp-talk] PHP/MySQL based solution for sending bulk email? References: <200303182022.h2IKLmMT039537@parsec.nyphp.org> Message-ID: <002f01c2ed8f$b7c54420$bf65a8c0@tag1002> Hey Steve, With your list of required features and the need for something that is truly automated (200k addresses) I'd go with something commercial. Obviously there must be a budget for this since you're currently outsourcing it. There are still a lot of variables like how many emails per month sent, avg size of email, how people subscribe / unsubscribe, more detail about the features you need, etc. You can find a pretty good list of software at: http://directory.google.com/Top/Computers/Software/Internet/Servers/Mail/Lis t_Management/ I've used Lyris myself and only have good things to say about it. Not cheap, but you get what you pay for. As mentioned before, you might want to consider getting a managed server (like a rackshack $100 a month machine). I'd be more than happy to continue discussing this off list. ophir ophir at prusak.com ----- Original Message ----- From: "Steve Soler" To: "NYPHP Talk" Sent: Tuesday, March 18, 2003 3:21 PM Subject: Re: [nycphp-talk] PHP/MySQL based solution for sending bulk email? > I guess it does not have to be PHP/MySQL, but it's just that I'm most confident > with this technologies stability. Also, if it's PHP I think it may be easier to > add features in the future if need be. > > - Steve > > On Tue, 18 Mar 2003 12:21:10 -0800 (PST), "Ophir Prusak" wrote: > > > > > Hi Steve, > > > > I'm also currently outsourcing my humble 8,000 member list (and am looking > > at other solutions). > > Before going any further, may I ask why it has to be a PHP/MySQL solution ? > > > > There are plenty of excellent free / commercial mailing list managers, but > > not necessarily in PHP / MySQL. > > > > Ophir > > > > ----- Original Message ----- > > From: "Steve Soler" > > To: "NYPHP Talk" > > Sent: Tuesday, March 18, 2003 8:54 AM > > Subject: Re: [nycphp-talk] PHP/MySQL based solution for sending bulk email? > > > > > > > Thanks for the advice, but we are already outsourcing. We want to > > > handle this in house. Can you let me know of any commercial products > > > you may know of that are currently available. > > > > > > Thanks, > > > Steve > > > > > > On Tuesday, March 18, 2003, at 08:42 AM, Hans Zaunere wrote: > > > > > > > If you want to do this in a professional manner, you may be better off > > > > outsourcing to a company that does just this. It's inexpensive and > > > > would > > > > probably work the best. Google for php bulking emailing or some > > > > variation > > > > and look at the ads google comes up with on the right. > > > > > > > > There are also some commercial products, but for 200,000 mails you'll > > > > need a > > > > pretty fat bit pipe. > > > > > > > > H > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at href="http://mail.soler.com/jump/http://nyphp.org/list">http://nyphp.org/lis t/ --- > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From ejp at well.com Tue Mar 18 19:52:25 2003 From: ejp at well.com (Edward Potter) Date: Tue, 18 Mar 2003 19:52:25 -0500 Subject: [nycphp-talk] PHP/MySQL based solution for sending bulk email? In-Reply-To: <200303181850.h2IImuOv035657@parsec.nyphp.org> Message-ID: <0D3AC13A-59A5-11D7-A49E-000393BF8A42@well.com> One of the finest pieces of software written i think: MOJO http://mojo.skazat.com/ Does it all for us... -e On Tuesday, March 18, 2003, at 01:48 PM, Ian Forsyth wrote: > Steve, > > to send out 5000 emails using a solution you describe below on a shared > hosting server would take 1/2 hour, to an hour with noticable server > lag.. If you have developers on staff.. Go for it do it in house... get > a server from rackspace.com, or dialtone.com ($150 bucks a month or so) > or something similar.. developers getting at least $150 dollars a day.. > it would not take long to get up and running, three months at a maximum > . but if you do not have developers already on staff I'd say give the > responsibilty to some one else, and if they are failing find another > company to do it for you.. > > In doing mass mailing (SPAM) there are a lot of concerns to keep in > mind, RBL database, MAPS.. network up time.. HACKERS who don't like you > sending out so much email.. the more 'popular' your ip, the more you > have to be concerned about security.. though the managed hosting > solutions mentioned above can help you with such duties.. > > So maybe you can do it semi in house.. Meaning you go with a managed > hosting service provider, pay the extra fees for security and backup, > and extra band width, and setup but develop the php/POSTGRES or MYSQL 4 > solution your selves.. thing is.. its kinda difficult to test for > 200,000 emails, this is why going with some one how specializes in mass > mailing would be a good idea.. maybe you could host the front end.. > then send a mass mailing company the list.. and say send these people > email.. but you could maintain the list of people, and sell their > addresses to as many people as you want. > > I would not do it if you do not have developers weather contract or > full time. When something breaks, it is best to not learn how to > program at that time. > > Anyways, those are my thoughts.. > > Ian > > On Monday, March 17, 2003, at 04:52 PM, Steve Soler wrote: > >> I have an opt-in email list of about 200,000 people. I'm wondering if >> anyone knows of a shareware or commercial PHP/MySQL based solution for >> sending out bulk email. It would have to have the following features: >> - Allow the creation of multiple mailing lists by duplicating existing >> mailing lists and also copying one mailing list to an existing. >> - Must be able to remove duplicates in each individual mailing list. >> - Force mailings to be associated with only one mailing list at a >> time. >> - Allow for optional demographics fields on the Opt-In form. >> - Handle Opt-Out / Opt-In requests for each individual email list. >> - Handle HTML email with optional plain text for non-html email >> clients. >> - Monitor statistics for every delivered email that is viewed and the >> link clicked through to. >> - Provide a way for clients to view the live statistics of their >> particular mailing online. >> >> This solution can run on either a Windows 2000 box or a Mac OS X box, >> which ever is more convenient. I know Mac OS X come with PHP and >> SendMail pre-installed being that it's really UNIX under the hood. >> >> I'll be using a broad band connection so I need this solution to use >> the sendmail program (or equivalent) to send the mailings right from >> the box it's installed on. This is to avoid having to rely on an ISP >> or Web-hosts mail server which will think I'm sending out spam and try >> and shut me down. >> >> I hope this is clear and I hope some one knows of a solution out there >> that will do the job. If there turns out to be none with these >> capabilities, I'm also interested in possibly hiring some one to build >> such a solution for me if the price is right. All feed back is >> appreciated. >> >> Thank you, >> Steve Soler >> >> >> >> >> >> > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From smanes at magpie.com Tue Mar 18 20:02:14 2003 From: smanes at magpie.com (Steve Manes) Date: Tue, 18 Mar 2003 20:02:14 -0500 Subject: [nycphp-talk] PHP/MySQL based solution for sending bulk email? In-Reply-To: <200303180053.h2I0quKP017535@parsec.nyphp.org> Message-ID: <5.1.1.6.2.20030318194747.01ea0590@192.168.111.6> At 07:52 PM 3/17/2003 -0500, Steve Soler wrote: >I have an opt-in email list of about 200,000 people. I'm wondering if >anyone knows of a shareware or commercial PHP/MySQL based solution for >sending out bulk email. Opt-out functionality aside, any decent mail server and a reasonably fast connection should be able to handle 200,000 outbound mails a day easily. Stick all the addresses in a protected alias and post a message to it. The mail server will do the rest. This is essentially what I do with my topical mailing lists which, all totaled, is 8,000 20k+ boilerplate digests/day over a lowly residential DSL line. Bulk emailers are mainly useful when you have multiple outbound mail servers and/or templated email and/or huge lists to support. It's really more about your available bandwidth and tuning your mail server than need a front-end to an MTA, at least as far as message delivery is concerned. Qmail brags that a single instance can handle 1 million outbound messages/day. Postfix can probably do likewise. From nnconcerts at msn.com Wed Mar 19 09:58:13 2003 From: nnconcerts at msn.com (Nicholas Noor) Date: Wed, 19 Mar 2003 09:58:13 -0500 Subject: [nycphp-talk] PHP/MySQL based solution for sending bulk email? Message-ID: Hi Edward I have created a site at http://www.talentasia.biz and the php site is the Members Directory, if you like to check it out go to the bottom left of the page. YOu are welcome to join and leave comments, messages. Nicholas >From: Edward Potter >Reply-To: talk at nyphp.org >To: NYPHP Talk >Subject: Re: [nycphp-talk] PHP/MySQL based solution for sending bulk email? >Date: Tue, 18 Mar 2003 19:53:28 -0500 > >One of the finest pieces of software written i think: > >MOJO >http://mojo.skazat.com/ > >Does it all for us... > >-e > > >On Tuesday, March 18, 2003, at 01:48 PM, Ian Forsyth wrote: > > > Steve, > > > > to send out 5000 emails using a solution you describe below on a shared > > hosting server would take 1/2 hour, to an hour with noticable server > > lag.. If you have developers on staff.. Go for it do it in house... get > > a server from rackspace.com, or dialtone.com ($150 bucks a month or so) > > or something similar.. developers getting at least $150 dollars a day.. > > it would not take long to get up and running, three months at a maximum > > . but if you do not have developers already on staff I'd say give the > > responsibilty to some one else, and if they are failing find another > > company to do it for you.. > > > > In doing mass mailing (SPAM) there are a lot of concerns to keep in > > mind, RBL database, MAPS.. network up time.. HACKERS who don't like you > > sending out so much email.. the more 'popular' your ip, the more you > > have to be concerned about security.. though the managed hosting > > solutions mentioned above can help you with such duties.. > > > > So maybe you can do it semi in house.. Meaning you go with a managed > > hosting service provider, pay the extra fees for security and backup, > > and extra band width, and setup but develop the php/POSTGRES or MYSQL 4 > > solution your selves.. thing is.. its kinda difficult to test for > > 200,000 emails, this is why going with some one how specializes in mass > > mailing would be a good idea.. maybe you could host the front end.. > > then send a mass mailing company the list.. and say send these people > > email.. but you could maintain the list of people, and sell their > > addresses to as many people as you want. > > > > I would not do it if you do not have developers weather contract or > > full time. When something breaks, it is best to not learn how to > > program at that time. > > > > Anyways, those are my thoughts.. > > > > Ian > > > > On Monday, March 17, 2003, at 04:52 PM, Steve Soler wrote: > > > >> I have an opt-in email list of about 200,000 people. I'm wondering if > >> anyone knows of a shareware or commercial PHP/MySQL based solution for > >> sending out bulk email. It would have to have the following features: > >> - Allow the creation of multiple mailing lists by duplicating existing > >> mailing lists and also copying one mailing list to an existing. > >> - Must be able to remove duplicates in each individual mailing list. > >> - Force mailings to be associated with only one mailing list at a > >> time. > >> - Allow for optional demographics fields on the Opt-In form. > >> - Handle Opt-Out / Opt-In requests for each individual email list. > >> - Handle HTML email with optional plain text for non-html email > >> clients. > >> - Monitor statistics for every delivered email that is viewed and the > >> link clicked through to. > >> - Provide a way for clients to view the live statistics of their > >> particular mailing online. > >> > >> This solution can run on either a Windows 2000 box or a Mac OS X box, > >> which ever is more convenient. I know Mac OS X come with PHP and > >> SendMail pre-installed being that it's really UNIX under the hood. > >> > >> I'll be using a broad band connection so I need this solution to use > >> the sendmail program (or equivalent) to send the mailings right from > >> the box it's installed on. This is to avoid having to rely on an ISP > >> or Web-hosts mail server which will think I'm sending out spam and try > >> and shut me down. > >> > >> I hope this is clear and I hope some one knows of a solution out there > >> that will do the job. If there turns out to be none with these > >> capabilities, I'm also interested in possibly hiring some one to build > >> such a solution for me if the price is right. All feed back is > >> appreciated. > >> > >> Thank you, > >> Steve Soler > >> > >> > >> > >> > >> > >> > > > > > > > > > > > > > > > >--- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From nnconcerts at msn.com Wed Mar 19 10:07:42 2003 From: nnconcerts at msn.com (Nicholas Noor) Date: Wed, 19 Mar 2003 10:07:42 -0500 Subject: [nycphp-talk] PHP/MySQL based solution for sending bulk email? Message-ID: Hi Ophir I have created a site at http://www.talentasia.biz and the php site is the Members Directory, if you like to check it out go to the bottom left of the page. YOu are welcome to join and leave comments, messages. Nicholas >From: "Ophir Prusak" >Reply-To: talk at nyphp.org >To: NYPHP Talk >Subject: Re: [nycphp-talk] PHP/MySQL based solution for sending bulk email? >Date: Tue, 18 Mar 2003 15:48:50 -0500 > >Hey Steve, > >With your list of required features and the need for something that is >truly >automated (200k addresses) I'd go with something commercial. Obviously >there >must be a budget for this since you're currently outsourcing it. There are >still a lot of variables like how many emails per month sent, avg size of >email, how people subscribe / unsubscribe, more detail about the features >you need, etc. > >You can find a pretty good list of software at: >http://directory.google.com/Top/Computers/Software/Internet/Servers/Mail/Lis >t_Management/ > >I've used Lyris myself and only have good things to say about it. Not >cheap, >but you get what you pay for. > >As mentioned before, you might want to consider getting a managed server >(like a rackshack $100 a month machine). > >I'd be more than happy to continue discussing this off list. > >ophir ophir at prusak.com > >----- Original Message ----- >From: "Steve Soler" >To: "NYPHP Talk" >Sent: Tuesday, March 18, 2003 3:21 PM >Subject: Re: [nycphp-talk] PHP/MySQL based solution for sending bulk email? > > > > I guess it does not have to be PHP/MySQL, but it's just that I'm most >confident > > with this technologies stability. Also, if it's PHP I think it may be >easier to > > add features in the future if need be. > > > > - Steve > > > > On Tue, 18 Mar 2003 12:21:10 -0800 (PST), "Ophir Prusak" wrote: > > > > > > > > Hi Steve, > > > > > > I'm also currently outsourcing my humble 8,000 member list (and am >looking > > > at other solutions). > > > Before going any further, may I ask why it has to be a PHP/MySQL >solution ? > > > > > > There are plenty of excellent free / commercial mailing list managers, >but > > > not necessarily in PHP / MySQL. > > > > > > Ophir > > > > > > ----- Original Message ----- > > > From: "Steve Soler" > > > To: "NYPHP Talk" > > > Sent: Tuesday, March 18, 2003 8:54 AM > > > Subject: Re: [nycphp-talk] PHP/MySQL based solution for sending bulk >email? > > > > > > > > > > Thanks for the advice, but we are already outsourcing. We want to > > > > handle this in house. Can you let me know of any commercial >products > > > > you may know of that are currently available. > > > > > > > > Thanks, > > > > Steve > > > > > > > > On Tuesday, March 18, 2003, at 08:42 AM, Hans Zaunere wrote: > > > > > > > > > If you want to do this in a professional manner, you may be better >off > > > > > outsourcing to a company that does just this. It's inexpensive >and > > > > > would > > > > > probably work the best. Google for php bulking emailing or some > > > > > variation > > > > > and look at the ads google comes up with on the right. > > > > > > > > > > There are also some commercial products, but for 200,000 mails >you'll > > > > > need a > > > > > pretty fat bit pipe. > > > > > > > > > > H > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at > >href="http://mail.soler.com/jump/http://nyphp.org/list">http://nyphp.org/lis >t/ --- > > > > > > > > > > > > > > > > >--- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From emm at scriptdigital.com Wed Mar 19 12:03:52 2003 From: emm at scriptdigital.com (Emmanuel. M. Decarie) Date: Wed, 19 Mar 2003 12:03:52 -0500 Subject: Best wikis? Message-ID: Hello, I'm looking for a good PHP wiki, but a Perl wiki is ok too (if mod_perl is not required). What I'm looking for is a wiki that is easily hackable, so the code have to be modular and clean. Ideally, I'd like this wiki to generate a RSS feed. And if this wiki can interface to MySQL, it will even be a better choice for me. TIA -- ______________________________________________________________________ Emmanuel D?carie / Programmation pour le Web - Programming for the Web Radio UserLand/Frontier - Perl - PHP - Javascript Blog: - AIM: scriptdigital From ophir at prusak.com Wed Mar 19 12:12:15 2003 From: ophir at prusak.com (Ophir Prusak) Date: Wed, 19 Mar 2003 12:12:15 -0500 Subject: [nycphp-talk] Best wikis? References: <200303191704.h2JH44MT075705@parsec.nyphp.org> Message-ID: <018b01c2ee3a$b0a74020$bf65a8c0@tag1002> I've been using twiki for over a year (www.twiki.org). Perl based - no need for mod_perl. I'm VERY happy with it. It's loaded with features and is very extendable. I've looked at php based wiki's in the past, but nothing comes close to twiki in feature set. You should give it a spin. ophir ----- Original Message ----- From: "Emmanuel. M. Decarie" To: "NYPHP Talk" Sent: Wednesday, March 19, 2003 12:04 PM Subject: [nycphp-talk] Best wikis? > Hello, > > I'm looking for a good PHP wiki, but a Perl wiki is ok too (if > mod_perl is not required). What I'm looking for is a wiki that is > easily hackable, so the code have to be modular and clean. Ideally, > I'd like this wiki to generate a RSS feed. And if this wiki can > interface to MySQL, it will even be a better choice for me. > > TIA > > -- > ______________________________________________________________________ > Emmanuel D?carie / Programmation pour le Web - Programming for the Web > Radio UserLand/Frontier - Perl - PHP - Javascript > Blog: - AIM: scriptdigital > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From jim at bizcomputinginc.com Wed Mar 19 12:28:04 2003 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Wed, 19 Mar 2003 12:28:04 -0500 Subject: [nycphp-talk] Best wikis? References: <200303191704.h2JH44GD075705@parsec.nyphp.org> Message-ID: <03bc01c2ee3c$e66d5ad0$6601a8c0@Notebook> I've been messing around with phpwiki which is available on sourceforge. I don't know that it is the best, and I haven't had the time to work with it enough to know if it meets your other reqs, but you may want to check it out. 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: "Emmanuel. M. Decarie" To: "NYPHP Talk" Sent: Wednesday, March 19, 2003 12:04 PM Subject: [nycphp-talk] Best wikis? > Hello, > > I'm looking for a good PHP wiki, but a Perl wiki is ok too (if > mod_perl is not required). What I'm looking for is a wiki that is > easily hackable, so the code have to be modular and clean. Ideally, > I'd like this wiki to generate a RSS feed. And if this wiki can > interface to MySQL, it will even be a better choice for me. > > TIA > > -- > ______________________________________________________________________ > Emmanuel D?carie / Programmation pour le Web - Programming for the Web > Radio UserLand/Frontier - Perl - PHP - Javascript > Blog: - AIM: scriptdigital > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From LarryC at indexstock.com Wed Mar 19 12:34:12 2003 From: LarryC at indexstock.com (Larry Chuon) Date: Wed, 19 Mar 2003 12:34:12 -0500 Subject: [nycphp-talk] Best wikis? Message-ID: <86713EAB93BD5F40B94A0C8E604C7C91AEBDE7@index-exchange.indexstock.com> I've used http://sourceforge.net/projects/tikiwiki/. It's PHP based with Smarty template engine. -----Original Message----- From: Emmanuel. M. Decarie [mailto:emm at scriptdigital.com] Sent: Wednesday, March 19, 2003 12:04 PM To: NYPHP Talk Subject: [nycphp-talk] Best wikis? Hello, I'm looking for a good PHP wiki, but a Perl wiki is ok too (if mod_perl is not required). What I'm looking for is a wiki that is easily hackable, so the code have to be modular and clean. Ideally, I'd like this wiki to generate a RSS feed. And if this wiki can interface to MySQL, it will even be a better choice for me. TIA -- ______________________________________________________________________ Emmanuel D?carie / Programmation pour le Web - Programming for the Web Radio UserLand/Frontier - Perl - PHP - Javascript Blog: - AIM: scriptdigital --- Unsubscribe at http://nyphp.org/list/ --- From melissa at inexact.info Wed Mar 19 12:55:48 2003 From: melissa at inexact.info (Melissa Pott) Date: Wed, 19 Mar 2003 12:55:48 -0500 Subject: [nycphp-talk] Best wikis? In-Reply-To: <200303191704.h2JH44Jb075705@parsec.nyphp.org> References: <200303191704.h2JH44Jb075705@parsec.nyphp.org> Message-ID: <1048096548.12B5EE6E@r5.dngr.org> Tiki is very popular (look for it on SourceForge.net). I played with it a bit but decided that all its various features, templating engine, etc. were overkill for my purposes, and simply opted to write my own. > Hello, > > I'm looking for a good PHP wiki, but a Perl wiki is ok too (if > mod_perl is not required). What I'm looking for is a wiki that is > easily hackable, so the code have to be modular and clean. Ideally, > I'd like this wiki to generate a RSS feed. And if this wiki can > interface to MySQL, it will even be a better choice for me. > > TIA > > -- > ______________________________________________________________________ > Emmanuel D????carie / Programmation pour le Web - Programming for the > Web > Radio UserLand/Frontier - Perl - PHP - Javascript > > Blog: - AIM: scriptdigital > > > > --- Unsubscribe at http://nyphp.org/list/ --- --melissa From nnconcerts at msn.com Wed Mar 19 12:57:36 2003 From: nnconcerts at msn.com (Nicholas Noor) Date: Wed, 19 Mar 2003 12:57:36 -0500 Subject: [nycphp-talk] Best wikis? Message-ID: I downloaded yesterday and added that to the site at www.talentasia.biz under Members Directory link. That should work fine include Content Express. Not sure why you have problems. Wish I could help. Nicholas >From: "Melissa Pott" >Reply-To: talk at nyphp.org >To: NYPHP Talk >Subject: Re: [nycphp-talk] Best wikis? >Date: Wed, 19 Mar 2003 12:55:50 -0500 > >Tiki is very popular (look for it on SourceForge.net). I played with it >a bit but decided that all its various features, templating engine, etc. >were overkill for my purposes, and simply opted to write my own. > > > > Hello, > > > > I'm looking for a good PHP wiki, but a Perl wiki is ok too (if > > mod_perl is not required). What I'm looking for is a wiki that is > > easily hackable, so the code have to be modular and clean. Ideally, > > I'd like this wiki to generate a RSS feed. And if this wiki can > > interface to MySQL, it will even be a better choice for me. > > > > TIA > > > > -- > > ______________________________________________________________________ > > Emmanuel D????carie / Programmation pour le Web - Programming for the > > Web > > Radio UserLand/Frontier - Perl - PHP - Javascript > > > > Blog: - AIM: scriptdigital > > > > > > > > > >--melissa > > > >--- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From tech_learner at yahoo.com Thu Mar 20 01:07:04 2003 From: tech_learner at yahoo.com (Tracy) Date: Wed, 19 Mar 2003 22:07:04 -0800 (PST) Subject: convert str array to int ??? In-Reply-To: <200303121453.h2CEhTQ5094871@parsec.nyphp.org> Message-ID: <20030320060704.71091.qmail@web14306.mail.yahoo.com> Hi, i have a script which works with integers. i am taking the inputs from a form and now it defaults to string. a var_dump gives : INPUTS : array(2) { [0]=> array(2) { [0]=> string(1) "0" [1]=> string(1) "1" } [1]=> array(2) { [0]=> string(1) "1" [1]=> string(1) "1" } } but i need the values to be ints.... i tried : foreach ($pieces as $k => $v) { $$k = $v; echo $k ."=". $v ."
"; //var_dump ($v); $cast = is_array ($v); if ($cast) { foreach ($v as $key => $val) { $$key = $val; echo $key ."=". $val ."
"; $chk = is_int($val); echo "variable type : $chk
"; if (!$chk) settype ($val,"integer"); } } } but still i am not able to type juggle. i have missed something but i am unable to find out what. can someone plz identify what it is? is there a better way, i am not sure i am coding in the right way... also, i have two arrays, i want to merge them as : new[0] = array1[0], array2[0], array2[1] new[1] = array1[1], array2[1], array2[1] how to do this, i am again not getting the results like expected. Thz Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at NewAgeWeb.com Thu Mar 20 05:28:35 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Thu, 20 Mar 2003 05:28:35 -0500 Subject: [nycphp-talk] convert str array to int ??? Message-ID: <001001c2eecb$7743d0a0$de01a8c0@duron.lan.newageweb.com> Tracy, Use intval() to get the integer value of a variable: $str = '22'; // is_int($str) == false; $int = intval($str); // is_int($int) == true; Jerry -- 42.7% of all statistics are made up on the spot. -----Original Message----- From: Tracy To: NYPHP Talk Date: Thursday, March 20, 2003 1:08 AM Subject: [nycphp-talk] convert str array to int ??? > >Hi, >i have a script which works with integers. i am taking the inputs from a form and now it defaults to string. a var_dump gives : > >INPUTS : >array(2) { > [0]=> > array(2) { > [0]=> > string(1) "0" > [1]=> > string(1) "1" > } > [1]=> > array(2) { > [0]=> > string(1) "1" > [1]=> > string(1) "1" > } >} > >but i need the values to be ints.... > >i tried : > >foreach ($pieces as $k => $v) { > $$k = $v; > echo $k ."=". $v ."
"; >//var_dump ($v); > $cast = is_array ($v); > if ($cast) { > foreach ($v as $key => $val) { > $$key = $val; > echo $key ."=". $val ."
"; > > $chk = is_int($val); > echo "variable type : $chk
"; > if (!$chk) settype ($val,"integer"); > } > } >} > >but still i am not able to type juggle. i have missed something but i am unable to find out what. can someone plz identify what it is? >is there a better way, i am not sure i am coding in the right way... > >also, i have two arrays, i want to merge them as : >new[0] = array1[0], array2[0], array2[1] >new[1] = array1[1], array2[1], array2[1] > >how to do this, i am again not getting the results like expected. > >Thz >Tracy > > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Coming together is a beginning... > keeping together is progress... > working together is success !!! >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > >--------------------------------- >Do you Yahoo!? >Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > > >--- Unsubscribe at http://nyphp.org/list/ --- > > From JayeshSh at netscape.net Thu Mar 20 09:38:14 2003 From: JayeshSh at netscape.net (Jayesh Sheth) Date: Thu, 20 Mar 2003 09:38:14 -0500 Subject: [nycphp-talk] Best wikis? Message-ID: <59ED9ABD.3D341A63.00765763@netscape.net> Hello, I use Wiki Tiki Tavi at my www.moztips.com/wiki site. Tavi is available at: http://tavi.sourceforge.net/WikkiTikkiTavi . It is PHP based, and was pretty easy to install. I did not try to customize it that much, because I needed a Wiki that "just worked". It seems to have worked okay so far ... Best Regards, - Jay Sheth "Melissa Pott" wrote: >Tiki is very popular (look for it on SourceForge.net). I played with it >a bit but decided that all its various features, templating engine, etc. >were overkill for my purposes, and simply opted to write my own. > > >> Hello, >> >> I'm looking for a good PHP wiki, but a Perl wiki is ok too (if >> mod_perl is not required). What I'm looking for is a wiki that is >> easily hackable, so the code have to be modular and clean. Ideally, >> I'd like this wiki to generate a RSS feed. And if this wiki can >> interface to MySQL, it will even be a better choice for me. >> >> TIA >> >> -- >> ______________________________________________________________________ >> Emmanuel D??carie / Programmation pour le Web - Programming for the >> Web >> Radio UserLand/Frontier - Perl - PHP - Javascript >> >> Blog: - AIM: scriptdigital >> >> >> >> > >--melissa > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > __________________________________________________________________ Try AOL and get 1045 hours FREE for 45 days! http://free.aol.com/tryaolfree/index.adp?375380 Get AOL Instant Messenger 5.1 for FREE! Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promos=380455 From nestorflorez at earthlink.net Thu Mar 20 11:28:15 2003 From: nestorflorez at earthlink.net (Nestor Florez) Date: Thu, 20 Mar 2003 08:28:15 -0800 (GMT) Subject: PHP sessions on IE Mac Message-ID: <5365136.1048177702071.JavaMail.nobody@beaker.psp.pas.earthlink.net> I can make a web session expire by using some php's session_destroy() function. The purpose of this is so that if you log out and then you hit the BACK button, you will not be able to see previous data. This works great on the PC with IE, MOZILLA, NETSCAPE. When in the Mac World, MOZILLA and NETSCAPE handled this the correct way, but IE and Safari still show you the previous data. I try unset to remove session variables but still I am able to see the data on IE and Safari on the Mac. The actual php site is located on an W2K platform. The IE on Mac is IE 5.2 for the Mac Any ideas on how to stop the data from displaying on IE Mac? Thanks, Nestor :-) From shiflett at php.net Thu Mar 20 12:11:05 2003 From: shiflett at php.net (Chris Shiflett) Date: Thu, 20 Mar 2003 09:11:05 -0800 (PST) Subject: [nycphp-talk] PHP sessions on IE Mac In-Reply-To: <200303201629.h2KGSQMv001744@parsec.nyphp.org> Message-ID: <20030320171105.77070.qmail@web14302.mail.yahoo.com> --- Nestor Florez wrote: > I can make a web session expire by using some php's session_destroy() > function. The purpose of this is so that if you log out and then you hit the > BACK button, you will not be able to see previous data. This works great on > the PC with IE, MOZILLA, NETSCAPE. > > When in the Mac World, MOZILLA and NETSCAPE handled this the correct way, > but IE and Safari still show you the previous data. I can speculate as to where this discrepancy comes from, and it has little to do with what you are doing and much to do with how the HTTP specification is interpreted. If you will look at section 13.13 of RFC 2616 (http://www.ietf.org/rfc/rfc2616.txt), you will see the following statement: "In particular history mechanisms SHOULD NOT try to show a semantically transparent view of the current state of a resource. Rather, a history mechanism is meant to show exactly what the user saw at the time when the resource was retrieved." Based on this, it is my opinion that IE and Safari on Mac are handling this correctly. For any who are familiar with lynx, this has always been the case - the back button shows you what you saw on the previous page rather than the current state of that resource. Most Web sites I have used where the information is considered extremely sensitive state something like this upon logout: "You have now been successfully logged out of the system. It is recommended that you now close your browser to prevent access to any cached content." Now, there is another bit of the specification that I believe causes the discrepancy, because it seemingly conflicts with the above statement. In section 14.9.2, the no-store directive of the Cache-Control header is explained: "If sent in a request, a cache MUST NOT store any part of either this request or any response to it. If sent in a response, a cache MUST NOT store any part of either this response or the request that elicited it." You would have to check, but I would guess that this directive is used in your application. My opinion is that the history mechanism in a browser is an example of a non-shared cache and is exempt based on section 13.13. I think other people's opinions vary in this regard, and I think this is the reason for the discrepancies. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ From dsexton at ubspw.com Thu Mar 20 12:24:16 2003 From: dsexton at ubspw.com (Sexton, David) Date: Thu, 20 Mar 2003 12:24:16 -0500 Subject: [nycphp-talk] PHP sessions on IE Mac Message-ID: <18D7B8CAA5284F478470828806DB124603789D04@psle01.xchg.pwj.com> Did you try using PHP's cache control directive: session.cache_limiter = noncache ? This would set a global cache control policy, but you could be page specific and use session_cache_limiter(nocache) if you don't want to set it at the directive level. Not sure it will work, but it's worth a shot. -----Original Message----- From: Nestor Florez [mailto:nestorflorez at earthlink.net] Sent: Thursday, March 20, 2003 11:28 AM To: NYPHP Talk Subject: [nycphp-talk] PHP sessions on IE Mac I can make a web session expire by using some php's session_destroy() function. The purpose of this is so that if you log out and then you hit the BACK button, you will not be able to see previous data. This works great on the PC with IE, MOZILLA, NETSCAPE. When in the Mac World, MOZILLA and NETSCAPE handled this the correct way, but IE and Safari still show you the previous data. I try unset to remove session variables but still I am able to see the data on IE and Safari on the Mac. The actual php site is located on an W2K platform. The IE on Mac is IE 5.2 for the Mac Any ideas on how to stop the data from displaying on IE Mac? Thanks, Nestor :-) --- Unsubscribe at http://nyphp.org/list/ --- From dsexton at ubspw.com Thu Mar 20 12:28:11 2003 From: dsexton at ubspw.com (Sexton, David) Date: Thu, 20 Mar 2003 12:28:11 -0500 Subject: [nycphp-talk] PHP sessions on IE Mac Message-ID: <18D7B8CAA5284F478470828806DB124603789D05@psle01.xchg.pwj.com> It's nocache, not noncache... sorry for the typo. -----Original Message----- From: Sexton, David [mailto:dsexton at ubspw.com] Sent: Thursday, March 20, 2003 12:24 PM To: NYPHP Talk Subject: RE: [nycphp-talk] PHP sessions on IE Mac Did you try using PHP's cache control directive: session.cache_limiter = noncache ? This would set a global cache control policy, but you could be page specific and use session_cache_limiter(nocache) if you don't want to set it at the directive level. Not sure it will work, but it's worth a shot. -----Original Message----- From: Nestor Florez [mailto:nestorflorez at earthlink.net] Sent: Thursday, March 20, 2003 11:28 AM To: NYPHP Talk Subject: [nycphp-talk] PHP sessions on IE Mac I can make a web session expire by using some php's session_destroy() function. The purpose of this is so that if you log out and then you hit the BACK button, you will not be able to see previous data. This works great on the PC with IE, MOZILLA, NETSCAPE. When in the Mac World, MOZILLA and NETSCAPE handled this the correct way, but IE and Safari still show you the previous data. I try unset to remove session variables but still I am able to see the data on IE and Safari on the Mac. The actual php site is located on an W2K platform. The IE on Mac is IE 5.2 for the Mac Any ideas on how to stop the data from displaying on IE Mac? Thanks, Nestor :-) --- Unsubscribe at http://nyphp.org/list/ --- From nestorflorez at earthlink.net Thu Mar 20 13:10:35 2003 From: nestorflorez at earthlink.net (Nestor Florez) Date: Thu, 20 Mar 2003 10:10:35 -0800 (GMT) Subject: [nycphp-talk] PHP sessions on IE Mac Message-ID: <3424652.1048183858757.JavaMail.nobody@beaker.psp.pas.earthlink.net> Yes, I am using "nocache" :-) -------Original Message------- From: "Sexton, David" Sent: 03/20/03 09:28 AM To: NYPHP Talk Subject: RE: [nycphp-talk] PHP sessions on IE Mac > > It's nocache, not noncache... sorry for the typo. -----Original Message----- From: Sexton, David [mailto:dsexton at ubspw.com] Sent: Thursday, March 20, 2003 12:24 PM To: NYPHP Talk Subject: RE: [nycphp-talk] PHP sessions on IE Mac Did you try using PHP's cache control directive: session.cache_limiter = noncache ? This would set a global cache control policy, but you could be page specific and use session_cache_limiter(nocache) if you don't want to set it at the directive level. Not sure it will work, but it's worth a shot. -----Original Message----- From: Nestor Florez [mailto:nestorflorez at earthlink.net] Sent: Thursday, March 20, 2003 11:28 AM To: NYPHP Talk Subject: [nycphp-talk] PHP sessions on IE Mac I can make a web session expire by using some php's session_destroy() function. The purpose of this is so that if you log out and then you hit the BACK button, you will not be able to see previous data. This works great on the PC with IE, MOZILLA, NETSCAPE. When in the Mac World, MOZILLA and NETSCAPE handled this the correct way, but IE and Safari still show you the previous data. I try unset to remove session variables but still I am able to see the data on IE and Safari on the Mac. The actual php site is located on an W2K platform. The IE on Mac is IE 5.2 for the Mac Any ideas on how to stop the data from displaying on IE Mac? Thanks, Nestor :-) --- Unsubscribe at http://nyphp.org/list/ --- > From nestorflorez at earthlink.net Thu Mar 20 13:10:59 2003 From: nestorflorez at earthlink.net (Nestor Florez) Date: Thu, 20 Mar 2003 10:10:59 -0800 (GMT) Subject: [nycphp-talk] PHP sessions on IE Mac Message-ID: <7748268.1048183866454.JavaMail.nobody@beaker.psp.pas.earthlink.net> Yes, I am using "nocache" :-) -------Original Message------- From: "Sexton, David" Sent: 03/20/03 09:28 AM To: NYPHP Talk Subject: RE: [nycphp-talk] PHP sessions on IE Mac > > It's nocache, not noncache... sorry for the typo. -----Original Message----- From: Sexton, David [mailto:dsexton at ubspw.com] Sent: Thursday, March 20, 2003 12:24 PM To: NYPHP Talk Subject: RE: [nycphp-talk] PHP sessions on IE Mac Did you try using PHP's cache control directive: session.cache_limiter = noncache ? This would set a global cache control policy, but you could be page specific and use session_cache_limiter(nocache) if you don't want to set it at the directive level. Not sure it will work, but it's worth a shot. -----Original Message----- From: Nestor Florez [mailto:nestorflorez at earthlink.net] Sent: Thursday, March 20, 2003 11:28 AM To: NYPHP Talk Subject: [nycphp-talk] PHP sessions on IE Mac I can make a web session expire by using some php's session_destroy() function. The purpose of this is so that if you log out and then you hit the BACK button, you will not be able to see previous data. This works great on the PC with IE, MOZILLA, NETSCAPE. When in the Mac World, MOZILLA and NETSCAPE handled this the correct way, but IE and Safari still show you the previous data. I try unset to remove session variables but still I am able to see the data on IE and Safari on the Mac. The actual php site is located on an W2K platform. The IE on Mac is IE 5.2 for the Mac Any ideas on how to stop the data from displaying on IE Mac? Thanks, Nestor :-) --- Unsubscribe at http://nyphp.org/list/ --- > From danielc at analysisandsolutions.com Thu Mar 20 13:35:10 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Thu, 20 Mar 2003 13:35:10 -0500 Subject: [nycphp-talk] convert str array to int ??? In-Reply-To: <200303200607.h2K678FX090300@parsec.nyphp.org> References: <200303200607.h2K678FX090300@parsec.nyphp.org> Message-ID: <20030320183510.GA16764@panix.com> Hi Tracy: On Thu, Mar 20, 2003 at 01:07:08AM -0500, Tracy wrote: > > i have a script which works with integers. i am taking the inputs from > a form and now it defaults to string. Pardon me for yet another quick answer, but why do you need them as integers? PHP automatically converts variables' data types as needed for the purpose at hand. For example: $one = '1'; $two = '2'; echo "$one + $two = " . ($one + $two); --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From gw.nyphp at gwprogramming.com Thu Mar 20 19:32:18 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Thu, 20 Mar 2003 19:32:18 -0500 Subject: _( Operator: what is it? Message-ID: <3E7A5D92.FA8B2BEE@gwprogramming.com> Hi. Does anyone know what the _( construct (or is it an operator?) does? I see it in the Horde/IMP distribution, for example: $a = array ( 'name' => _("Web Mail") ) It doesn't appear to do anything except look suspicious. Thanks for any _('clues') about this thing. Sincerely, George. George Webb gw.nyphp at gwprogramming.com From gw.nyphp at gwprogramming.com Thu Mar 20 19:34:46 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Thu, 20 Mar 2003 19:34:46 -0500 Subject: [underscore-left-parens] Operator: what is it? Message-ID: <3E7A5E26.E0DB46EA@gwprogramming.com> Hi. Does anyone know what the _( construct (or is it an operator?) does? I see it in the Horde/IMP distribution, for example: $a = array ( 'name' => _("Web Mail") ) It doesn't appear to do anything except look suspicious. Thanks for any _('clues') about this thing. Sincerely, George. George Webb gw.nyphp at gwprogramming.com From sterling at bumblebury.com Thu Mar 20 22:47:17 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 20 Mar 2003 22:47:17 -0500 Subject: [nycphp-talk] [underscore-left-parens] Operator: what is it? In-Reply-To: <200303210035.h2L0YaMJ013996@parsec.nyphp.org> References: <200303210035.h2L0YaMJ013996@parsec.nyphp.org> Message-ID: <1048218437.7286.6.camel@hasele> On Thu, 2003-03-20 at 19:34, George Webb wrote: > Hi. > > Does anyone know what the _( construct (or is it an operator?) > does? I see it in the Horde/IMP distribution, for example: > > $a = array ( > 'name' => _("Web Mail") > ) > > > It doesn't appear to do anything except look suspicious. Thanks > for any _('clues') about this thing. > its an alias for the gettext() function. -Sterling > > Sincerely, George. > > George Webb > gw.nyphp at gwprogramming.com > > > --- Unsubscribe at http://nyphp.org/list/ --- -- "First they ignore you, then they laugh at you, then they fight you, then you win." - Gandhi From tech_learner at yahoo.com Fri Mar 21 04:25:15 2003 From: tech_learner at yahoo.com (Tracy) Date: Fri, 21 Mar 2003 01:25:15 -0800 (PST) Subject: [nycphp-talk] convert str array to int ??? In-Reply-To: <200303201835.h2KIZDQ1007879@parsec.nyphp.org> Message-ID: <20030321092515.88722.qmail@web14305.mail.yahoo.com> Thz, i kind-of was wondering how the results were calc. i completely forgot about this eature of PHP. thz for reminding me. Tracy Analysis & Solutions wrote: Pardon me for yet another quick answer, but why do you need them as integers? PHP automatically converts variables' data types as needed for the purpose at hand. For example: $one = '1'; $two = '2'; echo "$one + $two = " . ($one + $two); --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 --- Unsubscribe at http://nyphp.org/list/ --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! -------------- next part -------------- An HTML attachment was scrubbed... URL: From tech_learner at yahoo.com Fri Mar 21 04:31:29 2003 From: tech_learner at yahoo.com (Tracy) Date: Fri, 21 Mar 2003 01:31:29 -0800 (PST) Subject: stats.. In-Reply-To: <200303201835.h2KIZDQ1007879@parsec.nyphp.org> Message-ID: <20030321093129.536.qmail@web14307.mail.yahoo.com> Hi, with ur programming tips, i have almost come to the finishing stages of my project. now i have asked to consolidate the work. i need to show in graphs and plot, the stats of my project. i need to measure the execution tie of my scripts based on the qureies issued, etc... wots the best method? does anyone know of available tools for the work. dont tell me i need to add a $start = time() : : and then $end = time(); exectime= $end-$start. this is the only possible that comes to my mind at the moment. plz help Thz again Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! -------------- next part -------------- An HTML attachment was scrubbed... URL: From chun_lam at hotmail.com Fri Mar 21 08:34:32 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Fri, 21 Mar 2003 08:34:32 -0500 Subject: [nycphp-talk] convert str array to int ??? Message-ID: First, anything from a form is always a string, because there isn't anything that is past to your php script that says it is any other type. Second, you can use "array_merge. ----Original Message Follows---- From: Tracy Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] convert str array to int ??? Date: Thu, 20 Mar 2003 01:07:08 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc6-f37.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 19 Mar 2003 22:07:55 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h2K678JH090300for ; Thu, 20 Mar 2003 01:07:54 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP Message-Id: <200303200607.h2K678JH090300 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 20 Mar 2003 06:07:55.0906 (UTC) FILETIME=[0CA7AE20:01C2EEA7] Hi, i have a script which works with integers. i am taking the inputs from a form and now it defaults to string. a var_dump gives : INPUTS : array(2) { [0]=> array(2) { [0]=> string(1) "0" [1]=> string(1) "1" } [1]=> array(2) { [0]=> string(1) "1" [1]=> string(1) "1" } } but i need the values to be ints.... i tried : foreach ($pieces as $k => $v) { $$k = $v; echo $k ."=". $v ."
"; //var_dump ($v); $cast = is_array ($v); if ($cast) { foreach ($v as $key => $val) { $$key = $val; echo $key ."=". $val ."
"; $chk = is_int($val); echo "variable type : $chk
"; if (!$chk) settype ($val,"integer"); } } } but still i am not able to type juggle. i have missed something but i am unable to find out what. can someone plz identify what it is? is there a better way, i am not sure i am coding in the right way... also, i have two arrays, i want to merge them as : new[0] = array1[0], array2[0], array2[1] new[1] = array1[1], array2[1], array2[1] how to do this, i am again not getting the results like expected. Thz Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From emm at scriptdigital.com Fri Mar 21 10:26:43 2003 From: emm at scriptdigital.com (Emmanuel. M. Decarie) Date: Fri, 21 Mar 2003 10:26:43 -0500 Subject: [nycphp-talk] Best wikis? In-Reply-To: <200303201439.h2KEcIMr098895@parsec.nyphp.org> References: <200303201439.h2KEcIMr098895@parsec.nyphp.org> Message-ID: Thanks everybody for the replies. Here's another one that look good too: WakkaWiki Cheers -Emmanuel -- ______________________________________________________________________ Emmanuel D?carie / Programmation pour le Web - Programming for the Web Radio UserLand/Frontier - Perl - PHP - Javascript Blog: - AIM: scriptdigital From steven at sohh.com Fri Mar 21 10:26:28 2003 From: steven at sohh.com (Steven Samuel) Date: Fri, 21 Mar 2003 10:26:28 -0500 Subject: [nycphp-talk] convert str array to int ??? In-Reply-To: <200303211335.h2LDYaN7026109@parsec.nyphp.org> Message-ID: "anything from a form is always a string" That's not totally true... Try this out: '; foreach ($array as $key => $value) { echo '' . $key . '' . $value . ''; } echo ''; return; } if ($_POST['action'] == 'process') { displayArray($_POST); } else { ?> Untitled The variable 'name' in the form is now an array. -----Original Message----- From: CHUN-YIU LAM [mailto:chun_lam at hotmail.com] Sent: Friday, March 21, 2003 8:35 AM To: NYPHP Talk Subject: Re: [nycphp-talk] convert str array to int ??? First, anything from a form is always a string, because there isn't anything that is past to your php script that says it is any other type. Second, you can use "array_merge. ----Original Message Follows---- From: Tracy Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] convert str array to int ??? Date: Thu, 20 Mar 2003 01:07:08 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc6-f37.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 19 Mar 2003 22:07:55 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h2K678JH090300for ; Thu, 20 Mar 2003 01:07:54 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP Message-Id: <200303200607.h2K678JH090300 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 20 Mar 2003 06:07:55.0906 (UTC) FILETIME=[0CA7AE20:01C2EEA7] Hi, i have a script which works with integers. i am taking the inputs from a form and now it defaults to string. a var_dump gives : INPUTS : array(2) { [0]=> array(2) { [0]=> string(1) "0" [1]=> string(1) "1" } [1]=> array(2) { [0]=> string(1) "1" [1]=> string(1) "1" } } but i need the values to be ints.... i tried : foreach ($pieces as $k => $v) { $$k = $v; echo $k ."=". $v ."
"; //var_dump ($v); $cast = is_array ($v); if ($cast) { foreach ($v as $key => $val) { $$key = $val; echo $key ."=". $val ."
"; $chk = is_int($val); echo "variable type : $chk
"; if (!$chk) settype ($val,"integer"); } } } but still i am not able to type juggle. i have missed something but i am unable to find out what. can someone plz identify what it is? is there a better way, i am not sure i am coding in the right way... also, i have two arrays, i want to merge them as : new[0] = array1[0], array2[0], array2[1] new[1] = array1[1], array2[1], array2[1] how to do this, i am again not getting the results like expected. Thz Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail --- Unsubscribe at http://nyphp.org/list/ --- From emm at scriptdigital.com Fri Mar 21 10:52:07 2003 From: emm at scriptdigital.com (Emmanuel. M. Decarie) Date: Fri, 21 Mar 2003 10:52:07 -0500 Subject: [nycphp-talk] Best wikis? In-Reply-To: <200303211529.h2LFT9Mr028366@parsec.nyphp.org> References: <200303211529.h2LFT9Mr028366@parsec.nyphp.org> Message-ID: I published a list of wikis on my blog for anybody that is interested by this kind of web app. I don't pretend that the list is exhaustive, its what I gathered from the people here and on my blog. Cheers -Emmanuel -- ______________________________________________________________________ Emmanuel D?carie / Programmation pour le Web - Programming for the Web Radio UserLand/Frontier - Perl - PHP - Javascript Blog: - AIM: scriptdigital From sterling at bumblebury.com Fri Mar 21 11:06:11 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 21 Mar 2003 11:06:11 -0500 Subject: [nycphp-talk] stats.. In-Reply-To: <200303210932.h2L9VWMJ022812@parsec.nyphp.org> References: <200303210932.h2L9VWMJ022812@parsec.nyphp.org> Message-ID: <1048262771.7219.756.camel@hasele> On Fri, 2003-03-21 at 04:31, Tracy wrote: > Hi, > > with ur programming tips, i have almost come to the finishing stages of my project. now i have asked to consolidate the work. i need to show in graphs and plot, the stats of my project. i need to measure the execution tie of my scripts based on the qureies issued, etc... > > wots the best method? does anyone know of available tools for the work. dont tell me i need to add a > > $start = time() > > : > > : > > and then $end = time(); > > exectime= $end-$start. this is the only possible that comes to my mind at the moment. plz help > > Thz again > you'll want to use a pre-existing solution, like Benchmark_Timer, or use apd. Both are available from pear. -Sterling > Tracy > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Coming together is a beginning... > keeping together is progress... > working together is success !!! > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > --------------------------------- > Do you Yahoo!? > Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! > > > --- Unsubscribe at http://nyphp.org/list/ --- -- "Reductionists like to take things apart. The rest of us are just trying to get it together." - Larry Wall, Programming Perl, 3rd Edition From nyphp at enobrev.com Fri Mar 21 17:28:44 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 21 Mar 2003 17:28:44 -0500 Subject: RegEx vs. SAX Message-ID: <005a01c2eff9$3ecccea0$e1951d18@enobrev> Hello all, I have a php based socket / xml chat server that I'm using to serve a flash based frontend using flash's xml_sockets. All the major goods are done, and working well. My dilemma is the xml parsing on the server side. Basically, all messages and commands are sent to the server in xml form. So a new message looks like: The message Text or keypress: You get the idea. Anyways, currently, I have each command that comes into the server running through a switch, which does a preg_match like this: switch( true ) { case preg_match('/(.*)<\\/message>/', $message, $attributes) : $this->message( $client_id, $attributes[1], $attributes[2], $attributes[3] ); break; case preg_match('//', $message, $attributes) : $this->key_pressed( $client_id, $attributes[1], $attributes[2], $attributes[3] ); break; } These run the correct functions which do any database stuff required and then broadcasts the message, etc to the correct clients. Now, my question is, would it be less resource intensive to use php's inherent xml functions to parse the incoming commands or should regex be the faster of the two. I don't mind doing speed tests and such to find out, but before I jump into the testing, I had hoped someone here might have an idea. Thanks!!! Mark Armendariz -------------- next part -------------- An HTML attachment was scrubbed... URL: From soazine at pop.mail.rcn.net Fri Mar 21 18:05:23 2003 From: soazine at pop.mail.rcn.net (soazine@pop.erols.com) Date: Fri, 21 Mar 2003 18:05:23 -0500 Subject: CVS Help!!! Message-ID: <149930-22003352123523227@M2W044.mail2web.com> I'm part of the NYPHP group and I can't post there right now, but I really, REALLY need someone's help here with WinCVS. I have a file in my repository, PHIL.SQL, version 1.1 I did a view in Notepad and saved my changes to a local directory, c:\\stuff\\PHIL.SQL What I want to do is to create a new version of PHIL.SQL in my repository with the changes in c:\\stuff\\PHIL.SQL How do I do that? I'm used WinCVS. Thanx Phil -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From lists at redibishosting.com Fri Mar 21 18:09:47 2003 From: lists at redibishosting.com (Deidra McIntyre) Date: Fri, 21 Mar 2003 18:09:47 -0500 (EST) Subject: merchant account referrals? Message-ID: <1908.172.142.151.52.1048288187.squirrel@www.myhostingadmin.com> Does anyone have any merchant account referrals? Building small ecommerce site (one product) but client insists on automated real-time processing. Thanks, Deidra ******* Deidra McIntyre Red Ibis Hosting http://www.redibishosting.com From soazine at pop.mail.rcn.net Fri Mar 21 18:10:58 2003 From: soazine at pop.mail.rcn.net (soazine@pop.erols.com) Date: Fri, 21 Mar 2003 18:10:58 -0500 Subject: CVS Help! Message-ID: <410-220033521231058649@M2W064.mail2web.com> I'm part of the NYPHP group and I can't post there right now, but I really= =3D , REALLY need someone's help here with WinCVS=3D2E I have a file in my repository, PHIL=3D2ESQL, version 1=3D2E1 I did a view in Notepad and saved my changes to a local directory, c:\\stuff\\PHIL=3D2ESQL What I want to do is to create a new version of PHIL=3D2ESQL in my reposit= or=3D y with the changes in c:\\stuff\\PHIL=3D2ESQL How do I do that? I'm used WinCVS=3D2E Thanx Phil -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From mxw65 at yahoo.com Fri Mar 21 18:11:16 2003 From: mxw65 at yahoo.com (Mike West) Date: Fri, 21 Mar 2003 15:11:16 -0800 (PST) Subject: [nycphp-talk] merchant account referrals? In-Reply-To: <200303212310.h2LN9nPj040359@parsec.nyphp.org> Message-ID: <20030321231116.70380.qmail@web13506.mail.yahoo.com> We are using www.netbilling.com --- Deidra McIntyre wrote: > Does anyone have any merchant account referrals? > > Building small ecommerce site (one product) but client insists on > automated real-time processing. > > Thanks, > Deidra > > ******* > Deidra McIntyre > Red Ibis Hosting > http://www.redibishosting.com > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com From rudy at taytek.com Fri Mar 21 19:32:31 2003 From: rudy at taytek.com (Rudy) Date: Fri, 21 Mar 2003 19:32:31 -0500 Subject: register_globals = On In-Reply-To: <200303210033.h2L0W9NZ013293@parsec.nyphp.org> Message-ID: I built a web application several years ago that is still very much alive and well now. My server environment has always been Linux, Apache,MySQL, and PHP. I just recently install PHP and MySQL on a Windows 2000 server running IIS. After moving some code over I discovered the PHP.ini file and its use of the register_globals flag. I now realize that I have created considerable code that relies on this flag being on. My concern is about the security exposure with globals on. I have relied on the globals in two areas, Session variables and Post data from forms. With session variables I used session_register, and with Post data I simply expected to have PHP make the variables available to me without having to step through the $HTTP_POST_VARS array. For me to migrate the Session variables to $_SESSION['element'] would be work, but doable. To handle all the Post vars is another story. Has anyone else been faced with this issue and if so how did you address it. Thanks, Rudy --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/03 From kenrbnsn at rbnsn.com Fri Mar 21 20:02:02 2003 From: kenrbnsn at rbnsn.com (Ken Robinson) Date: Fri, 21 Mar 2003 20:02:02 -0500 Subject: [nycphp-talk] register_globals = On In-Reply-To: <200303220031.h2M0V9Mh043311@parsec.nyphp.org> Message-ID: <5.1.0.14.2.20030321200002.03826198@mail.rbnsn.com> At 07:31 PM 3/21/2003 -0500, you wrote (in part): >For me to migrate the Session variables to $_SESSION['element'] would be >work, but doable. To handle all the Post vars is another story. > >Has anyone else been faced with this issue and if so how did you address it. The easiest way to do what you want is to include the following code at the top of programs: Ken Robinson From sterling at bumblebury.com Fri Mar 21 21:25:11 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 21 Mar 2003 21:25:11 -0500 Subject: [nycphp-talk] register_globals = On In-Reply-To: <200303220102.h2M128MJ044374@parsec.nyphp.org> References: <200303220102.h2M128MJ044374@parsec.nyphp.org> Message-ID: <1048299911.847.3.camel@hasele> On Fri, 2003-03-21 at 20:02, Ken Robinson wrote: > At 07:31 PM 3/21/2003 -0500, you wrote (in part): > >For me to migrate the Session variables to $_SESSION['element'] would be > >work, but doable. To handle all the Post vars is another story. > > > >Has anyone else been faced with this issue and if so how did you address it. > > The easiest way to do what you want is to include the following code at the > top of programs: > > > Or in .htaccess: php_value register_globals On -Sterling > Ken Robinson > > > > --- Unsubscribe at http://nyphp.org/list/ --- -- "People can have the Model T in any colour -- so long as it's black." - Henry Ford From chun_lam at hotmail.com Fri Mar 21 23:11:31 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Fri, 21 Mar 2003 23:11:31 -0500 Subject: [nycphp-talk] convert str array to int ??? Message-ID: Sorry for the miss info. What I meant to say is that, there is only one elementary type. This is always text (String if you will). Since I used to do C/C++ with CGI. String is what I call it. Also the C/C++ does not have String or Array Type. We just used char type. :-) Maybe it is just a little too much detail (Maybe even useless in term of programming in PHP) Matthew ----Original Message Follows---- From: "Steven Samuel" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: RE: [nycphp-talk] convert str array to int ??? Date: Fri, 21 Mar 2003 10:32:08 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc4-f4.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 21 Mar 2003 07:32:28 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h2LFW8JH029089for ; Fri, 21 Mar 2003 10:32:28 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP Message-Id: <200303211532.h2LFW8JH029089 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 21 Mar 2003 15:32:29.0173 (UTC) FILETIME=[151BCA50:01C2EFBF] "anything from a form is always a string" That's not totally true... Try this out: '; foreach ($array as $key => $value) { echo '' . $key . '' . $value . ''; } echo ''; return; } if ($_POST['action'] == 'process') { displayArray($_POST); } else { ?> Untitled
The variable 'name' in the form is now an array. -----Original Message----- From: CHUN-YIU LAM [mailto:chun_lam at hotmail.com] Sent: Friday, March 21, 2003 8:35 AM To: NYPHP Talk Subject: Re: [nycphp-talk] convert str array to int ??? First, anything from a form is always a string, because there isn't anything that is past to your php script that says it is any other type. Second, you can use "array_merge. ----Original Message Follows---- From: Tracy Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] convert str array to int ??? Date: Thu, 20 Mar 2003 01:07:08 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc6-f37.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 19 Mar 2003 22:07:55 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h2K678JH090300for ; Thu, 20 Mar 2003 01:07:54 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP Message-Id: <200303200607.h2K678JH090300 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 20 Mar 2003 06:07:55.0906 (UTC) FILETIME=[0CA7AE20:01C2EEA7] Hi, i have a script which works with integers. i am taking the inputs from a form and now it defaults to string. a var_dump gives : INPUTS : array(2) { [0]=> array(2) { [0]=> string(1) "0" [1]=> string(1) "1" } [1]=> array(2) { [0]=> string(1) "1" [1]=> string(1) "1" } } but i need the values to be ints.... i tried : foreach ($pieces as $k => $v) { $$k = $v; echo $k ."=". $v ."
"; //var_dump ($v); $cast = is_array ($v); if ($cast) { foreach ($v as $key => $val) { $$key = $val; echo $key ."=". $val ."
"; $chk = is_int($val); echo "variable type : $chk
"; if (!$chk) settype ($val,"integer"); } } } but still i am not able to type juggle. i have missed something but i am unable to find out what. can someone plz identify what it is? is there a better way, i am not sure i am coding in the right way... also, i have two arrays, i want to merge them as : new[0] = array1[0], array2[0], array2[1] new[1] = array1[1], array2[1], array2[1] how to do this, i am again not getting the results like expected. Thz Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From nyphp at NewAgeWeb.com Fri Mar 21 23:35:57 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Fri, 21 Mar 2003 23:35:57 -0500 Subject: [nycphp-talk] merchant account referrals? Message-ID: <005401c2f02c$88921ee0$de01a8c0@duron.lan.newageweb.com> Deidra, I've used a few different solutions, but I'd recommend LinkPoint. They have a secure API and a nice PHP wrapper class. Tony Shap is a pretty technical sales rep there. Call him at 800-456-5989 ext.5042. If you decide to go with them, please mention NEW AGE WEB MEDIA (store # 580549). I should get a couple of bucks for referring you. Jerry -- 42.7% of all statistics are made up on the spot. -----Original Message----- From: Deidra McIntyre To: NYPHP Talk Date: Friday, March 21, 2003 6:10 PM Subject: [nycphp-talk] merchant account referrals? >Does anyone have any merchant account referrals? > >Building small ecommerce site (one product) but client insists on >automated real-time processing. > >Thanks, >Deidra > >******* >Deidra McIntyre >Red Ibis Hosting >http://www.redibishosting.com > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > From tech_learner at yahoo.com Sat Mar 22 05:32:42 2003 From: tech_learner at yahoo.com (Tracy) Date: Sat, 22 Mar 2003 02:32:42 -0800 (PST) Subject: [nycphp-talk] stats.. In-Reply-To: <200303211625.h2LGOwQ1031238@parsec.nyphp.org> Message-ID: <20030322103242.49834.qmail@web14303.mail.yahoo.com> Thz a lot Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! -------------- next part -------------- An HTML attachment was scrubbed... URL: From cmerlo at turing.matcmp.ncc.edu Sat Mar 22 10:10:14 2003 From: cmerlo at turing.matcmp.ncc.edu (Christopher R. Merlo) Date: Sat, 22 Mar 2003 10:10:14 -0500 Subject: convert str array to int ??? (Off-topic) In-Reply-To: <200303220412.h2M4BZO7048018@parsec.nyphp.org>; from chun_lam@hotmail.com on Fri, Mar 21, 2003 at 11:11:35PM -0500 References: <200303220412.h2M4BZO7048018@parsec.nyphp.org> Message-ID: <20030322101014.U23093@turing.matcmp.ncc.edu> On 2003-03-21 23:11 -0500, CHUN-YIU LAM wrote: > Also the C/C++ does not have String or Array Type. We just used > char type. Don't mean to be nitpicky, but C++ does have a string class. Just #include . Maybe knowing this will help you write better C++. -c -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo Linux: Because a 486 is a terrible thing to waste. From jsiegel1 at optonline.net Sat Mar 22 11:11:24 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Sat, 22 Mar 2003 11:11:24 -0500 Subject: Insert 1.8 million rows of data Message-ID: <14920f14755c.14755c14920f@optonline.net> Here's an interesting problem. Hopefully someone has a solution. I have a text file of 1.8 million rows of data. I parse each row, dynamically generate an "INSERT" statement, then execute the query. Well, it doesn't work because PHP/MySQL chokes on it. I've set the timeout limit to zero and that solved the PHP issue but then MySQL gave me error 28 (essentially insufficient temp space on the drive) yet cleaning out files didn't solve the problem. So...anyone encounter a similar problem like this? Thanks in advance for your help. Jeff From jsiegel1 at optonline.net Sat Mar 22 13:33:39 2003 From: jsiegel1 at optonline.net (jsiegel1 at optonline.net) Date: Sat, 22 Mar 2003 13:33:39 -0500 Subject: Insert 1.8 million rows of data Message-ID: <2c073a2c02fe.2c02fe2c073a@optonline.net> Here's an interesting problem. Hopefully someone has a solution. I have a text file of 1.8 million rows of data. I parse each row, dynamically generate an "INSERT" statement, then execute the query. Well, it doesn't work because PHP/MySQL chokes on it. I've set the timeout limit to zero and that solved the PHP issue but then MySQL gave me error 28 (essentially insufficient temp space on the drive) yet cleaning out files didn't solve the problem. So...anyone encounter a similar problem like this? Thanks in advance for your help. Jeff From chun_lam at hotmail.com Sat Mar 22 16:43:40 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Sat, 22 Mar 2003 16:43:40 -0500 Subject: [nycphp-talk] Re: convert str array to int ??? Message-ID: While string class is good. For high performance, this should still be avoided ;-) ----Original Message Follows---- From: "Christopher R. Merlo" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] Re: convert str array to int ??? Date: Sat, 22 Mar 2003 10:10:22 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc10-f18.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sat, 22 Mar 2003 07:10:51 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h2MFAMJH064597for ; Sat, 22 Mar 2003 10:10:51 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP Message-Id: <200303221510.h2MFAMJH064597 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 22 Mar 2003 15:10:52.0179 (UTC) FILETIME=[3A73F630:01C2F085] On 2003-03-21 23:11 -0500, CHUN-YIU LAM wrote: > Also the C/C++ does not have String or Array Type. We just used > char type. Don't mean to be nitpicky, but C++ does have a string class. Just #include . Maybe knowing this will help you write better C++. -c -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo Linux: Because a 486 is a terrible thing to waste. --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From heli_travel at yahoo.com Sat Mar 22 22:44:35 2003 From: heli_travel at yahoo.com (LY) Date: Sat, 22 Mar 2003 19:44:35 -0800 (PST) Subject: DVR Card In-Reply-To: <200302261723.h1QHLRKF059751@parsec.nyphp.org> Message-ID: <20030323034435.31688.qmail@web12207.mail.yahoo.com> Sorry about this, it is really a not PHP question. But you know NYPHP is a great source to find out some answers, a lot of great people here! I try to build a dvr system on my computer, but my boss said to buy 10 first alert DVR-800 DVR cards, so I try to find out who makes first alert dvr card, is there a first alert distributor in New York? Sorry about this again, if you don't know, just delete this Email! Thanks Again! LY __________________________________________________ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com From jonbaer at jonbaer.net Sun Mar 23 22:32:11 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Sun, 23 Mar 2003 19:32:11 -0800 Subject: phpBB session problems ... Message-ID: <001a01c2f1b5$f59bd3c0$6600a8c0@laptop> Ok, Googled for hours and came up with nothing ... if you got a nice looking message like this: phpBB : Critical Error Error creating new session What are the top 3 places you would look for this pretty error? Thanks. - Jon -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at websapp.com Sun Mar 23 22:46:42 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Sun, 23 Mar 2003 22:46:42 -0500 Subject: [nycphp-talk] phpBB session problems ... In-Reply-To: <200303240335.h2O3WNOp062533@parsec.nyphp.org> Message-ID: Hi Jon, The first thing that comes to mind is that your sessions are being saved to files, and there is no writing permission to the defined session folder! Check that out... Daniel Kushner Vice President, New York PHP http://nyphp.org daniel at nyphp.org > -----Original Message----- > From: Jon Baer [mailto:jonbaer at jonbaer.net] > Sent: Sunday, March 23, 2003 10:32 PM > To: NYPHP Talk > Subject: [nycphp-talk] phpBB session problems ... > > > Ok, Googled for hours and came up with nothing ... if you got a > nice looking message like this: > > phpBB : Critical Error > > Error creating new session > > What are the top 3 places you would look for this pretty error? > > Thanks. > > - Jon > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From jonbaer at jonbaer.net Sun Mar 23 23:02:37 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Sun, 23 Mar 2003 20:02:37 -0800 Subject: [nycphp-talk] phpBB session problems ... References: <200303240343.h2O3goJt063292@parsec.nyphp.org> Message-ID: <002401c2f1ba$35c59ef0$6600a8c0@laptop> Thanks Daniel ... Turns out it after digging it was a more common problem than I originally thought: http://www.phpbb.com/kb/article.php?article_id=42 - Jon ----- Original Message ----- From: "Daniel Kushner" To: "NYPHP Talk" Sent: Sunday, March 23, 2003 7:42 PM Subject: RE: [nycphp-talk] phpBB session problems ... > Hi Jon, > > The first thing that comes to mind is that your sessions are being saved to > files, and there is no writing permission to the defined session folder! > Check that out... > > > Daniel Kushner > Vice President, New York PHP > http://nyphp.org > daniel at nyphp.org > > > -----Original Message----- > > From: Jon Baer [mailto:jonbaer at jonbaer.net] > > Sent: Sunday, March 23, 2003 10:32 PM > > To: NYPHP Talk > > Subject: [nycphp-talk] phpBB session problems ... > > > > > > Ok, Googled for hours and came up with nothing ... if you got a > > nice looking message like this: > > > > phpBB : Critical Error > > > > Error creating new session > > > > What are the top 3 places you would look for this pretty error? > > > > Thanks. > > > > - Jon > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From lush22 at winstarmail.com Mon Mar 24 10:22:31 2003 From: lush22 at winstarmail.com (Jeff Knight) Date: Mon, 24 Mar 2003 10:22:31 -0500 Subject: [nycphp-talk] merchant account referrals? In-Reply-To: <200303212310.h2LN9nOv040359@parsec.nyphp.org> Message-ID: <6E57CD89-5E0C-11D7-AF37-000393B9FB36@winstarmail.com> I've used http://www.itransact.com/ for several clients with no problems. They used to have excellent customer services (& I only say "used" to because I haven't needed to contact them in years). One of the things I like best about them (aside from the fact they are cheap) is that you can either gather all the secure info yourself or push the customer over to their site & let them deal with it. On Friday, March 21, 2003, at 06:09 PM, Deidra McIntyre wrote: > Does anyone have any merchant account referrals? > > Building small ecommerce site (one product) but client insists on > automated real-time processing. > > Thanks, > Deidra > > ******* > Deidra McIntyre > Red Ibis Hosting > http://www.redibishosting.com > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > Jeff Knight jeff at lushmedia.com 212/213-6558 x 203 888/852-8508 LUSH media 110 W 40th St #1502 New York, NY 10018 From jkelly at sussex.cc.nj.us Mon Mar 24 12:31:21 2003 From: jkelly at sussex.cc.nj.us (jessica kelly) Date: Mon, 24 Mar 2003 12:31:21 -0500 Subject: Voting Program Message-ID: Hi All, I'm looking for a program (PHP or Perl) that could handle a student Election at the College I work at. I have a Win server running PHP, Perl, MySQL & Apache. I would like to validate a voter against the DB using a 7 number Student ID before the voting is allowed or this could also be done upon submission of the vote. Due to the fact that most students will vote while on campus I can not use IP logging to see if they have voted before. There would be 5 positions and approx. 2-5 candidates per position. Does any one know of or previously used a program out there that might fit the bill or be modified? Thank's, Jessica Kelly From sklar at sklar.com Mon Mar 24 14:16:56 2003 From: sklar at sklar.com (David Sklar) Date: Mon, 24 Mar 2003 14:16:56 -0500 Subject: [nycphp-talk] Voting Program In-Reply-To: <200303241732.h2OHViMx082488@parsec.nyphp.org> Message-ID: On Monday, March 24, 2003 12:32 PM, jessica kelly wrote: > Hi All, > > I'm looking for a program (PHP or Perl) that could handle a > student Election at the College I work at. > > I have a Win server running PHP, Perl, MySQL & Apache. > > I would like to validate a voter against the DB using a 7 number > Student ID before the voting is allowed or this could also be > done upon submission of the vote. Due to the fact that most > students will vote while on campus I can not use IP logging to > see if they have voted before. > > There would be 5 positions and approx. 2-5 candidates per position. > > Does any one know of or previously used a program out there that > might fit the bill or be modified? This might be overkill, but the SINAPSE project (http://www.sinapse.org) has an elections module and is specifically tailored towards campus elections. David From tech_learner at yahoo.com Tue Mar 25 01:08:04 2003 From: tech_learner at yahoo.com (Tracy) Date: Mon, 24 Mar 2003 22:08:04 -0800 (PST) Subject: 2D array In-Reply-To: <200303240335.h2O3WNQ1062533@parsec.nyphp.org> Message-ID: <20030325060804.11431.qmail@web14305.mail.yahoo.com> Hi, below are few lines from a PASCAL code PROCEDURE init; VAR i, n:integer; BEGIN FOR i:=1 TO numhidden DO BEGIN hiddenA[i]:=frandom(0.005, 0.2); FOR n:=1 TO numInput DO hiddenW[i, n]:=frandom(-0.1, 0.15); END; FOR i:=1 TO numOutput DO BEGIN FOR n:=1 TO numhidden DO outputW[i, n]:=frandom(-0.1, 0.15); END; END; { init } the problem is i know nothing about PASCAL and there isint an elaborate example on how to create a two-dimensional array. i am stuck at the line hiddenW[i, n]:=frandom(-0.1, 0.15); here's my version : function init() { for ($i=1; $i<=numhidden; $i++) { $hiddenA[$i]=frandom(0.005, 0.2); for ($n=1; $n<=numInput; $n++) { $hiddenW = array ($i => array ($n => frandom(-0.1, 0.15))); print("
");
   print_r($hiddenW);
   print("
"); } } print("
");
 print_r($hiddenA);
 print("
"); print_r($hiddenW); for ($i=1; $i<=$numOutput; $i++) { for ($n=1; $n<=numhidden; $n++) { //$outputW[$i, $n]=frandom(-0.1, 0.15); } } } // { init } it seems to dump values... i am unsure if its right. i need the values elsewhere... for ($i=1; $i<=numhidden; $i++) { $sum2=0; for ($j=1; $j<=numInput; $j++) { $sum2=$sum2 + $hiddenW[$i, $j] * $inputA[$j]; //at this point i am totally blank echo $sum2; $hiddenN[$i]=$sum2; $hiddenA[$i]=sigmoid($sum2); } } has someone done this sort of programming before. there sure must be a better way to code this procedure out. plz help Thz Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! -------------- next part -------------- An HTML attachment was scrubbed... URL: From georgenatalino at yahoo.com Tue Mar 25 06:09:12 2003 From: georgenatalino at yahoo.com (George Natalino) Date: Tue, 25 Mar 2003 06:09:12 -0500 Subject: PHP-Editors.com :: PHP Programming Contests - March-April 2003 Message-ID: <3E8038D8.3020208@yahoo.com> http://www.php-editors.com/contests.php -- ================================================ Regards George Natalino georgenatalino at yahoo.com From cahoyos at us.ibm.com Tue Mar 25 11:16:27 2003 From: cahoyos at us.ibm.com (Carlos Hoyos) Date: Tue, 25 Mar 2003 11:16:27 -0500 Subject: [nycphp-talk] 2D array Message-ID: Multi dimensional arrays work ok in php: instead of > $hiddenW = array ($i => array ($n => frandom(-0.1, 0.15))); you can use, $hiddenW[$i][$n] = frandom(-0.1, 0.15); The first part of code generates 2 matrices with random values. The second one calculates in $hiddenN the matrix product of hiddenW and inputA, and applies the calculates the sigmoid transform on that product (stored in hiddenA). (for anybody remembering lineal algebra, this is just a matrix multiplication) You should get a numImput-fold performance improve by rewriting this: for ($i=1; $i<=numhidden; $i++) { $sum2=0; for ($j=1; $j<=numInput; $j++) { // store in temp variable $sum2 the vector product (dot product) // of vectors $hiddenW[$i] and $inputA $sum2 += $hiddenW[$i][$j] * $inputA[$j]; } $hiddenN[$i]=$sum2; $hiddenA[$i]=sigmoid($sum2); } Carlos Tracy oo.com> cc: Subject: [nycphp-talk] 2D array 03/25/2003 01:08 AM Please respond to talk Hi, below are few lines from a PASCAL code PROCEDURE init; VAR i, n:integer; BEGIN FOR i:=1 TO numhidden DO BEGIN hiddenA[i]:=frandom(0.005, 0.2); FOR n:=1 TO numInput DO hiddenW[i, n]:=frandom(-0.1, 0.15); END; FOR i:=1 TO numOutput DO BEGIN FOR n:=1 TO numhidden DO outputW[i, n]:=frandom(-0.1, 0.15); END; END; { init } the problem is i know nothing about PASCAL and there isint an elaborate example on how to create a two-dimensional array. i am stuck at the line hiddenW[i, n]:=frandom(-0.1, 0.15); here's my version : function init() { for ($i=1; $i<=numhidden; $i++) { $hiddenA[$i]=frandom(0.005, 0.2); for ($n=1; $n<=numInput; $n++) { $hiddenW = array ($i => array ($n => frandom(-0.1, 0.15))); print("
");
   print_r($hiddenW);
   print("
"); } } print("
");
 print_r($hiddenA);
 print("
"); print_r($hiddenW); for ($i=1; $i<=$numOutput; $i++) { for ($n=1; $n<=numhidden; $n++) { //$outputW[$i, $n]=frandom(-0.1, 0.15); } } } // { init } it seems to dump values... i am unsure if its right. i need the values elsewhere... for ($i=1; $i<=numhidden; $i++) { $sum2=0; for ($j=1; $j<=numInput; $j++) { $sum2=$sum2 + $hiddenW[$i, $j] * $inputA[$j]; //at this point i am totally blank echo $sum2; $hiddenN[$i]=$sum2; $hiddenA[$i]=sigmoid($sum2); } } has someone done this sort of programming before. there sure must be a better way to code this procedure out. plz help Thz Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! --- Unsubscribe at http://nyphp.org/list/ --- From rolan at omnistep.com Tue Mar 25 15:59:31 2003 From: rolan at omnistep.com (Rolan Yang) Date: Tue, 25 Mar 2003 15:59:31 -0500 Subject: Parking situation around Digital Pulp, anyone??? Message-ID: <3E80C333.9000406@omnistep.com> How is the parking situation around Digital Pulp, Inc. 220 East 23rd Street? It's such a nice day. I'm thinking of driving into the city rather than taking the train, but if there is no parking on the street until 7pm, then I would rather take the train. ~Rolan From bruce at mtiglobal.com Mon Mar 24 16:17:26 2003 From: bruce at mtiglobal.com (bruce at mtiglobal.com) Date: Tue, 25 Mar 2003 05:17:26 +0800 (CST) Subject: Grants for Graduate Studies in Computer Science Message-ID: <4368.65.112.109.66.1048540646.squirrel@postman.mtiglobal.com> From bruce at mtiglobal.com Mon Mar 24 16:18:22 2003 From: bruce at mtiglobal.com (bruce at mtiglobal.com) Date: Tue, 25 Mar 2003 05:18:22 +0800 (CST) Subject: Grants for Graduate Study in Computer Science Message-ID: <6111.65.112.109.66.1048540702.squirrel@postman.mtiglobal.com> Is anyone aware of any grants for US citizens to pursue graduate school in computer science? Thanks. From lists at ny-tech.net Tue Mar 25 21:36:51 2003 From: lists at ny-tech.net (Nasir Zubair) Date: Tue, 25 Mar 2003 21:36:51 -0500 (Eastern Standard Time) Subject: [nycphp-talk] PHP-Editors.com :: PHP Programming Contests - March-April 2003 References: <200303251108.h2PB7bLJ002012@parsec.nyphp.org> Message-ID: <3E811243.000001.00372@nyt-main> Anyone tried the card deck contest? I was going through it and didn't exactly understand how the SHUFFLE function works, i.e. what is it supposed to do. Is it supposed to be random (somehow), or a pattern needs to be achieved? - nasir -------Original Message------- From: talk at nyphp.org Date: Tuesday, March 25, 2003 6:08:24 AM To: NYPHP Talk Subject: [nycphp-talk] PHP-Editors.com :: PHP Programming Contests - March-April 2003 http://www.php-editors.com/contests.php -- ================================================ Regards George Natalino georgenatalino at yahoo.com --- Unsubscribe at http://nyphp.org/list/ --- . -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IMSTP.gif Type: image/gif Size: 494 bytes Desc: not available URL: From tech_learner at yahoo.com Wed Mar 26 07:30:44 2003 From: tech_learner at yahoo.com (Tracy) Date: Wed, 26 Mar 2003 04:30:44 -0800 (PST) Subject: [nycphp-talk] 2D array In-Reply-To: <200303251617.h2PGGaQ3007275@parsec.nyphp.org> Message-ID: <20030326123044.21287.qmail@web14303.mail.yahoo.com> Thz. it works now but only thing is the values are "all" the same. Tracy Carlos Hoyos wrote: Multi dimensional arrays work ok in php: instead of > $hiddenW = array ($i => array ($n => frandom(-0.1, 0.15))); you can use, $hiddenW[$i][$n] = frandom(-0.1, 0.15); The first part of code generates 2 matrices with random values. The second one calculates in $hiddenN the matrix product of hiddenW and inputA, and applies the calculates the sigmoid transform on that product (stored in hiddenA). (for anybody remembering lineal algebra, this is just a matrix multiplication) You should get a numImput-fold performance improve by rewriting this: for ($i=1; $i<=numhidden; $i++) { $sum2=0; for ($j=1; $j<=numInput; $j++) { // store in temp variable $sum2 the vector product (dot product) // of vectors $hiddenW[$i] and $inputA $sum2 += $hiddenW[$i][$j] * $inputA[$j]; } $hiddenN[$i]=$sum2; $hiddenA[$i]=sigmoid($sum2); } Carlos Tracy oo.com> cc: Subject: [nycphp-talk] 2D array 03/25/2003 01:08 AM Please respond to talk Hi, below are few lines from a PASCAL code PROCEDURE init; VAR i, n:integer; BEGIN FOR i:=1 TO numhidden DO BEGIN hiddenA[i]:=frandom(0.005, 0.2); FOR n:=1 TO numInput DO hiddenW[i, n]:=frandom(-0.1, 0.15); END; FOR i:=1 TO numOutput DO BEGIN FOR n:=1 TO numhidden DO outputW[i, n]:=frandom(-0.1, 0.15); END; END; { init } the problem is i know nothing about PASCAL and there isint an elaborate example on how to create a two-dimensional array. i am stuck at the line hiddenW[i, n]:=frandom(-0.1, 0.15); here's my version : function init() { for ($i=1; $i<=numhidden; $i++) { $hiddenA[$i]=frandom(0.005, 0.2); for ($n=1; $n<=numInput; $n++) { $hiddenW = array ($i => array ($n => frandom(-0.1, 0.15))); print(" "); print_r($hiddenW); print(" "); } } print(" "); print_r($hiddenA); print(" "); print_r($hiddenW); for ($i=1; $i<=$numOutput; $i++) { for ($n=1; $n<=numhidden; $n++) { //$outputW[$i, $n]=frandom(-0.1, 0.15); } } } // { init } it seems to dump values... i am unsure if its right. i need the values elsewhere... for ($i=1; $i<=numhidden; $i++) { $sum2=0; for ($j=1; $j<=numInput; $j++) { $sum2=$sum2 + $hiddenW[$i, $j] * $inputA[$j]; //at this point i am totally blank echo $sum2; $hiddenN[$i]=$sum2; $hiddenA[$i]=sigmoid($sum2); } } has someone done this sort of programming before. there sure must be a better way to code this procedure out. plz help Thz Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! --- Unsubscribe at http://nyphp.org/list/ --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! -------------- next part -------------- An HTML attachment was scrubbed... URL: From tech_learner at yahoo.com Wed Mar 26 07:33:23 2003 From: tech_learner at yahoo.com (Tracy) Date: Wed, 26 Mar 2003 04:33:23 -0800 (PST) Subject: benchmrk probs... In-Reply-To: <200303251617.h2PGGaQ3007275@parsec.nyphp.org> Message-ID: <20030326123323.66289.qmail@web14309.mail.yahoo.com> Hi, how to u ask php not to cache inherently the scripts. while using benchmark, i am getting results that i am not content with. the first run is gud, but from the 2nd run onwards, the time falls drastically. is this because, php caches the state? how to go aroung this problem? in one of the scripts, i set: ini_set("max_execution_time", 0.00300); but i get Array ( [1] => 0.003064 [5] => 0.003456 [8] => 0.003570 [mean] => 0.003041 [iterations] => 10 ) i also tried with : set_time_limit (".0001"); but again the script doesnt time out.. Where am i wrong? Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at websapp.com Wed Mar 26 08:56:30 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Wed, 26 Mar 2003 08:56:30 -0500 Subject: MySQL AB Confirms Version 4.0.12 Ready for all Application Areas Message-ID: SEATTLE, Wash. ? (March 25, 2003) ? MySQL AB, developer of the world's most popular Open Source database, today announced that the MySQL database version 4.0 has been labeled "production," indicating that it is ready for any MySQL deployment. To reach production status, MySQL software must pass a series of rigorous tests with no fatal bugs and then undergo ?battle-testing? in live environments for a minimum of three months. Starting with the newest release, 4.0.12, MySQL version 4.0 is now the standard code base for all MySQL database downloads. http://www.mysql.com/press/release_2003_10.html Daniel Kushner Vice President, New York PHP http://nyphp.org/ daniel at nyphp.org From hans at nyphp.org Wed Mar 26 11:43:15 2003 From: hans at nyphp.org (Hans Zaunere) Date: Wed, 26 Mar 2003 08:43:15 -0800 (PST) Subject: Call For Hardware Message-ID: <20030326164315.32751.qmail@web12801.mail.yahoo.com> Good morning, First, thanks to Sterling Hughes and everyone who came out last night. We're sorry it's always so crowded, but we're looking for ways to remedy this in the future. Nevertheless, apologies to those who came and found standing-room only. New York PHP is working on putting another box online to support our community's development and rapid growth. Most aspects of putting the box online are complete, however we are accepting some hardware. If anyone has spare hardware they'd like to donate, or is aware of discounted hardware, we'd welcome any of the following: -- CD-ROM (any IDE based drive will do) -- SCSI Controller Card ( >=Ultra160 ) -- Hard drives -- Modern IDE ( >=60gb and >=Ultra DMA 100 ) -- Modern SCSI ( >=18gb ) -- Modern 10/100 Ethernet card (Intel preferred) -- 184-pin DDR DIMM If you can help out in any way, please contact me, hans at nyphp.org. And if you have any other stuff laying around that you think may be useful, feel free to contact me as well (like a RAID controller laying around :) Any help is greatly appreciated. Thank you everyone, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From tom at supertom.com Wed Mar 26 11:52:48 2003 From: tom at supertom.com (tom at supertom.com) Date: Wed, 26 Mar 2003 11:52:48 -0500 Subject: [liphp] The first Long Island PHP meeting - tonight! Message-ID: The day is upon us! The first meeting of the Long Island PHP Users Group will be tonight, in Hauppauge at 7pm! Tonight's topics (not necessarily in this order): Club business site development promotion creating a charter open source projects? other issues An overview of PHP, and an install on Linux, if anyone is interested. If people would rather hear something more technical (depending on the turnout), I can also give an overview of the ezPDF PHP library, which I've been using lately (it is pretty cool, and doesn't require any options to be compiled in.) This is the first meeting, so if you are new to PHP or would just like to hear what it is about, please come! Also, experienced PHP developers are also encouraged to attend! ** Refreshments will be served! ** The address: Desktop Solutions Software, Inc. 700 Veterans Highway Hauppauge, NY 11788 Directions: >From the Northern State (recommended from points west) Take the Northern State to the endpoint (becomes 347/454) Pass the state office buildings on your right The road forks - bear right to continue on route 454 (Veterans Highway) The next intersection after that fork is Route 111 (Sears Hardware). You can see our glass building from this intersection. Enter our office complex on the right - 'Woodlands Park' Locate Building 700, the largest building, on your right Take elevator to lower level. >From the Long Island Expressway: Take LIE to exit 57, and go north on Veterans Memorial Highway. Travel north approx. 2 miles, past schoolyard on right. Make U-Turn at the red light at the route 111 intersection Enter our office complex which will now be on your right - 'Woodlands Park' Locate Building 700, the largest building, on your right as you enter the parking lot. Take elevator to lower level. Questions, comments? Please direct them to the list at liphp at liphp.org. Please repost this message freely. We apologize for any duplicates you may receive - just trying to get the word out! Thanks, Tom From chendry at nyc.rr.com Wed Mar 26 13:12:58 2003 From: chendry at nyc.rr.com (Christopher Hendry) Date: Wed, 26 Mar 2003 13:12:58 -0500 Subject: cache frameset In-Reply-To: <200303261403.h2QDvQD7031849@parsec.nyphp.org> Message-ID: does anyone know if/how I could cache a frameset, so that when the frameset displays all of the pages inside it display at once as opposed to one page within the frameset loading up at a different pace than the other pages. I have a couple of embedded framesets (unavoidable, I'm afraid) with php inside. And the pages load in a very ugly fashion (sometimes there can even be a lag so one page doesn't load till much later than the others). I only need it to display all at once at the index page. It's in a hosted environment, so I don't have much control over the server. :( Is it possible??? Thanks, Chris From drodriguez1 at mac.com Wed Mar 26 13:18:00 2003 From: drodriguez1 at mac.com (David Rodriguez) Date: Wed, 26 Mar 2003 13:18:00 -0500 Subject: [nycphp-talk] cache frameset Message-ID: <4619611.1048702680778.JavaMail.drodriguez1@mac.com> Don't know for certain, but I think it is mostly a matter of how a particular browser handles frames, and of course the speed of the users Internet connection. Not sure if you can cache the pages for the frameset. D. On Wednesday, March 26, 2003, at 01:13PM, Christopher Hendry wrote: >does anyone know if/how I could cache a frameset, so that when the frameset >displays all of the pages inside it display at once as opposed to one page >within the frameset loading up at a different pace than the other pages. > >I have a couple of embedded framesets (unavoidable, I'm afraid) with php >inside. And the pages load in a very ugly fashion (sometimes there can even >be a lag so one page doesn't load till much later than the others). I only >need it to display all at once at the index page. > >It's in a hosted environment, so I don't have much control over the server. >:( > >Is it possible??? > >Thanks, Chris > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > From danielc at analysisandsolutions.com Wed Mar 26 13:40:44 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Wed, 26 Mar 2003 13:40:44 -0500 Subject: Tangential: BikeSummer Message-ID: <20030326184044.GA984@panix.com> Hey Folks: Pardon the slightly tangential post... Before I get into it, thanks to Sterling for the good overview of what's coming in PHP 5. It was nice hanging with folks after the meeting as well. For all the bicyclists on the list, uh, I assume there are a few others beside myself, I'm writing to let you know about BikeSummer. It's a month long festival of bike culture, such as rides, exhibits, shows, readings, conferences, etc. Each year it takes place in a different city. Okay, here are the tie ins: It's in NYC this year. The site uses PHP. I'm the webmaster. So, check it out: http://www.bikesummer.org/2003/ Enjoy, --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From brent at landover.com Wed Mar 26 14:08:18 2003 From: brent at landover.com (Brent Baisley) Date: Wed, 26 Mar 2003 14:08:18 -0500 Subject: [nycphp-talk] cache frameset In-Reply-To: <200303261813.h2QID9Bj036678@parsec.nyphp.org> Message-ID: <4DC04C47-5FBE-11D7-9E68-0050E4C5CF70@landover.com> Framesets are a function of the browser, not the server. The server just serves up pages so it doesn't know that one page is related to another. When the browser notices a frameset page, it requests other pages from the server. So aside from the standard caching mechanisms, there is not much you can do. However, you may try using iframes instead. I like the way iframes work far better than framesets. But until recently browsers handled iframes differently, so you have to know your audience. Your pages still won't load instantly, but your main page with display first. The only way I can think of displaying everything immediately is to use Javascript on the client side to build the pages. All your page code would be present in one page and you would use document.write() to build the content of your frames. On Wednesday, March 26, 2003, at 01:13 PM, Christopher Hendry wrote: > does anyone know if/how I could cache a frameset, so that when the > frameset > displays all of the pages inside it display at once as opposed to one > page > within the frameset loading up at a different pace than the other > pages. -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 From andrew at digitalpulp.com Wed Mar 26 14:09:16 2003 From: andrew at digitalpulp.com (Andrew Yochum) Date: Wed, 26 Mar 2003 14:09:16 -0500 Subject: [nycphp-talk] benchmrk probs... In-Reply-To: <200303261233.h2QCXQ8Z030457@parsec.nyphp.org> References: <200303261233.h2QCXQ8Z030457@parsec.nyphp.org> Message-ID: <20030326190911.GA32633@thighmaster.digitalpulp.com> Hi Tracy, I believe the problem lies in that the max_execution_time value is expected to be an integer, and the argument to set_time_limit is an integer. Your values are most likely becoming 0, effectively unsetting the time limit. Regards, Andrew On Wed, Mar 26, 2003 at 07:33:26AM -0500, Tracy wrote: > > Hi, > how to u ask php not to cache inherently the scripts. while using benchmark, i am getting results that i am not content with. the first run is gud, but from the 2nd run onwards, the time falls drastically. is this because, php caches the state? > how to go aroung this problem? > in one of the scripts, i set: > ini_set("max_execution_time", 0.00300); but i get > Array > ( > [1] => 0.003064 > > [5] => 0.003456 > > [8] => 0.003570 > > [mean] => 0.003041 > [iterations] => 10 > ) > > i also tried with : set_time_limit (".0001"); but again the script doesnt time out.. > Where am i wrong? > Tracy From dorgan at optonline.net Wed Mar 26 16:00:55 2003 From: dorgan at optonline.net (Donald J. Organ IV) Date: Wed, 26 Mar 2003 16:00:55 -0500 Subject: [nycphp-talk] [liphp] The first Long Island PHP meeting - tonight! References: <200303261658.h2QGvbDh035008@parsec.nyphp.org> Message-ID: <002e01c2f3da$cb89c8e0$0600020a@dorganmobile> I will not be able to make this one but would like some information on ezPDF PHP library, hope to catch everyone at the second one. ----- Original Message ----- From: To: "NYPHP Talk" Sent: Wednesday, March 26, 2003 11:57 AM Subject: [nycphp-talk] [liphp] The first Long Island PHP meeting - tonight! > The day is upon us! The first meeting of the Long Island PHP Users Group > will be tonight, in Hauppauge at 7pm! > > Tonight's topics (not necessarily in this order): > Club business > site development > promotion > creating a charter > open source projects? > other issues > > An overview of PHP, and an install on Linux, if anyone is interested. If > people would rather hear something more technical (depending on the > turnout), I can also give an overview of the ezPDF PHP library, which I've > been using lately (it is pretty cool, and doesn't require any options to be > compiled in.) > > This is the first meeting, so if you are new to PHP or would just like to > hear what it is about, please come! Also, experienced PHP developers are > also encouraged to attend! > > ** Refreshments will be served! ** > > The address: > > Desktop Solutions Software, Inc. > 700 Veterans Highway > Hauppauge, NY 11788 > > Directions: > > From the Northern State (recommended from points west) > > Take the Northern State to the endpoint (becomes 347/454) > Pass the state office buildings on your right > The road forks - bear right to continue on route 454 (Veterans Highway) > The next intersection after that fork is Route 111 (Sears Hardware). You can > see our glass building from this intersection. > Enter our office complex on the right - 'Woodlands Park' > Locate Building 700, the largest building, on your right > Take elevator to lower level. > > > From the Long Island Expressway: > > Take LIE to exit 57, and go north on Veterans Memorial Highway. > Travel north approx. 2 miles, past schoolyard on right. > Make U-Turn at the red light at the route 111 intersection > Enter our office complex which will now be on your right - 'Woodlands Park' > Locate Building 700, the largest building, on your right as you enter the > parking lot. > Take elevator to lower level. > > > Questions, comments? Please direct them to the list at liphp at liphp.org. > Please repost this message freely. We apologize for any duplicates you may > receive - just trying to get the word out! > > Thanks, > > Tom > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From chendry at nyc.rr.com Wed Mar 26 17:36:54 2003 From: chendry at nyc.rr.com (Christopher Hendry) Date: Wed, 26 Mar 2003 17:36:54 -0500 Subject: [nycphp-talk] cache frameset In-Reply-To: <200303261818.h2QII3D7037407@parsec.nyphp.org> Message-ID: Thanks yes, as I feared there is nothing I can do - but I was hoping someone brilliant out there had a solution... :( -> -----Original Message----- -> From: David Rodriguez [mailto:drodriguez1 at mac.com] -> Sent: Wednesday, March 26, 2003 1:18 PM -> To: NYPHP Talk -> Subject: Re: [nycphp-talk] cache frameset -> -> -> Don't know for certain, but I think it is mostly a matter of how -> a particular browser handles frames, and of course the speed of -> the users Internet connection. Not sure if you can cache the -> pages for the frameset. -> -> D. -> -> On Wednesday, March 26, 2003, at 01:13PM, Christopher Hendry -> wrote: -> -> >does anyone know if/how I could cache a frameset, so that when -> the frameset -> >displays all of the pages inside it display at once as opposed -> to one page -> >within the frameset loading up at a different pace than the other pages. -> > -> >I have a couple of embedded framesets (unavoidable, I'm afraid) with php -> >inside. And the pages load in a very ugly fashion (sometimes -> there can even -> >be a lag so one page doesn't load till much later than the -> others). I only -> >need it to display all at once at the index page. -> > -> >It's in a hosted environment, so I don't have much control over -> the server. -> >:( -> > -> >Is it possible??? -> > -> >Thanks, Chris -> > -> > -> > -> > -> > -> > -> > -> > -> > -> -> -> -> -> --- Unsubscribe at http://nyphp.org/list/ --- -> -> -> From chris at psydeshow.org Wed Mar 26 17:47:22 2003 From: chris at psydeshow.org (Chris Snyder) Date: Wed, 26 Mar 2003 17:47:22 -0500 Subject: [nycphp-talk] cache frameset In-Reply-To: <200303262237.h2QMb6ED043975@parsec.nyphp.org> References: <200303262237.h2QMb6ED043975@parsec.nyphp.org> Message-ID: <3E822DFA.3000507@psydeshow.org> It hurts my brain to think about implementing this, but would it be possible to put style="visibility: hidden;" attributes in the body tags of all the pages, and then call a javascript function to set them all to visible when the frames have loaded? Does anyone know if the frameset element has an onload event? Of course, then you run the risk of broken/missing javascript implementations and your content remaining invisible.... chris. Christopher Hendry wrote: >Thanks yes, as I feared there is nothing I can do - but I was hoping someone >brilliant out there had a solution... :( > >-> -----Original Message----- >-> From: David Rodriguez [mailto:drodriguez1 at mac.com] >-> Sent: Wednesday, March 26, 2003 1:18 PM >-> To: NYPHP Talk >-> Subject: Re: [nycphp-talk] cache frameset >-> >-> >-> Don't know for certain, but I think it is mostly a matter of how >-> a particular browser handles frames, and of course the speed of >-> the users Internet connection. Not sure if you can cache the >-> pages for the frameset. >-> >-> D. >-> >-> On Wednesday, March 26, 2003, at 01:13PM, Christopher Hendry >-> wrote: >-> >-> >does anyone know if/how I could cache a frameset, so that when >-> the frameset >-> >displays all of the pages inside it display at once as opposed >-> to one page >-> >within the frameset loading up at a different pace than the other pages. >-> > >-> >I have a couple of embedded framesets (unavoidable, I'm afraid) with php >-> >inside. And the pages load in a very ugly fashion (sometimes >-> there can even >-> >be a lag so one page doesn't load till much later than the >-> others). I only >-> >need it to display all at once at the index page. >-> > >-> >It's in a hosted environment, so I don't have much control over >-> the server. >-> >:( >-> > >-> >Is it possible??? >-> > >-> >Thanks, Chris >-> > >-> > >-> > >-> > >-> > >-> > >-> > >-> > >-> > >-> >-> >-> >-> >-> >-> >-> >-> > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > -- do you have a photoblog yet? http://fotola.com (help beta-test!) From dorgan at optonline.net Wed Mar 26 22:06:52 2003 From: dorgan at optonline.net (Donald J. Organ IV) Date: Wed, 26 Mar 2003 22:06:52 -0500 Subject: Need some help References: <200303262102.h2QL19Dh042004@parsec.nyphp.org> Message-ID: <004e01c2f40d$eaec1d90$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 and quotes in that field which happens when the WYSIWYG places

into the field it cuts off all the information after the first qupte because it this it the end of the From chris at psydeshow.org Thu Mar 27 12:35:55 2003 From: chris at psydeshow.org (Chris Snyder) Date: Thu, 27 Mar 2003 12:35:55 -0500 Subject: generating a post request from the command line Message-ID: <3E83367B.3040906@psydeshow.org> Does anybody know of a unix command or a perl script to generate an HTTP post request from stdin? I should do it in PHP, I know, but I don't want to make command-line PHP a requirement for my app. chris. -- do you have a photoblog yet? http://fotola.com (help beta-test!) From jellicle at inch.com Thu Mar 27 12:44:21 2003 From: jellicle at inch.com (Michael Sims) Date: Thu, 27 Mar 2003 12:44:21 -0500 Subject: [nycphp-talk] generating a post request from the command line In-Reply-To: <200303271736.h2RHZsBD066635@parsec.nyphp.org> References: <200303271736.h2RHZsBD066635@parsec.nyphp.org> Message-ID: <20030327174640.4C99A10DE36@carbine.dsl.net> On Thursday 27 March 2003 12:35 pm, Chris Snyder wrote: > Does anybody know of a unix command or a perl script to generate an > HTTP post request from stdin? > > I should do it in PHP, I know, but I don't want to make command-line > PHP a requirement for my app. The libwww-perl library should help you out. In Debian at least, it includes /usr/bin/lwp-request , a command-line interface for all your GET, HEAD, POST and PUT needs. -- Michael Sims From jonbaer at jonbaer.net Thu Mar 27 12:57:14 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 27 Mar 2003 09:57:14 -0800 Subject: [nycphp-talk] generating a post request from the command line References: <200303271736.h2RHZsBZ066635@parsec.nyphp.org> Message-ID: <002101c2f48a$4ca9b610$6400a8c0@laptop> The unix command wget (I beleive the -M flag will switch method to post or --post-data or --post-file. - Jon ----- Original Message ----- From: "Chris Snyder" To: "NYPHP Talk" Sent: Thursday, March 27, 2003 9:35 AM Subject: [nycphp-talk] generating a post request from the command line > Does anybody know of a unix command or a perl script to generate an HTTP > post request from stdin? > > I should do it in PHP, I know, but I don't want to make command-line PHP > a requirement for my app. > > chris. > > -- > do you have a photoblog yet? > http://fotola.com (help beta-test!) > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From tom at supertom.com Thu Mar 27 12:55:57 2003 From: tom at supertom.com (tom at supertom.com) Date: Thu, 27 Mar 2003 12:55:57 -0500 Subject: [nycphp-talk] generating a post request from the command line In-Reply-To: <200303271747.h2RHkiF5067442@parsec.nyphp.org> Message-ID: I haven't done it, but I have read in the past that you can do something like: cat file_with_vars.txt | lynx http://mysite/myscript.php -post_data with the vars in the file in key value pairs like: name=foobar address=123 street city=mycity etc. Can anyone confirm this? Good Luck! Tom Long Island PHP Users Group http://www.liphp.org *************************************************** What's Tom listening to right now? Find out here: http://www.supertom.com/viewcds.php -----Original Message----- From: Michael Sims [mailto:jellicle at inch.com] Sent: Thursday, March 27, 2003 12:47 PM To: NYPHP Talk Subject: Re: [nycphp-talk] generating a post request from the command line On Thursday 27 March 2003 12:35 pm, Chris Snyder wrote: > Does anybody know of a unix command or a perl script to generate an > HTTP post request from stdin? > > I should do it in PHP, I know, but I don't want to make command-line > PHP a requirement for my app. The libwww-perl library should help you out. In Debian at least, it includes /usr/bin/lwp-request , a command-line interface for all your GET, HEAD, POST and PUT needs. -- Michael Sims --- Unsubscribe at http://nyphp.org/list/ --- From chris at psydeshow.org Thu Mar 27 13:09:36 2003 From: chris at psydeshow.org (Chris Snyder) Date: Thu, 27 Mar 2003 13:09:36 -0500 Subject: [nycphp-talk] generating a post request from the command line In-Reply-To: <200303271757.h2RHvQEF068275@parsec.nyphp.org> References: <200303271757.h2RHvQEF068275@parsec.nyphp.org> Message-ID: <3E833E60.3050603@psydeshow.org> Jon Baer wrote: >The unix command wget (I beleive the -M flag will switch method to post >or --post-data or --post-file. > > Apparently not true of GNU wget. :-( There is no provision for post requests that I can find in the man page or --help listing. From jonbaer at jonbaer.net Thu Mar 27 13:16:08 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 27 Mar 2003 10:16:08 -0800 Subject: [nycphp-talk] generating a post request from the command line References: <200303271809.h2RI9ZBZ069996@parsec.nyphp.org> Message-ID: <002f01c2f48c$f0a6d7a0$6400a8c0@laptop> Yeah I just realized it was an applied patch that didn't make it into the release it seems ... http://www.geocrawler.com/archives/3/409/2001/5/0/5663784/ Just wondering why you wouldn't just use a PHP stream to do it: http://www.php.net/manual/en/ref.stream.php (See example # 2 and change ssl to http) ... - Jon ----- Original Message ----- From: "Chris Snyder" To: "NYPHP Talk" Sent: Thursday, March 27, 2003 10:09 AM Subject: Re: [nycphp-talk] generating a post request from the command line > Jon Baer wrote: > > >The unix command wget (I beleive the -M flag will switch method to post > >or --post-data or --post-file. > > > > > Apparently not true of GNU wget. :-( > > There is no provision for post requests that I can find in the man page > or --help listing. > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From chris at psydeshow.org Thu Mar 27 14:08:13 2003 From: chris at psydeshow.org (Chris Snyder) Date: Thu, 27 Mar 2003 14:08:13 -0500 Subject: [nycphp-talk] generating a post request from the command line In-Reply-To: <200303271801.h2RI0cEF069104@parsec.nyphp.org> References: <200303271801.h2RI0cEF069104@parsec.nyphp.org> Message-ID: <3E834C1D.9000800@psydeshow.org> tom at supertom.com wrote: >cat file_with_vars.txt | lynx http://mysite/myscript.php -post_data > >with the vars in the file in key value pairs like: > >name=foobar >address=123 street >city=mycity > >etc. > >Can anyone confirm this? > > > This is true, it works. Unfortunately it cuts off the request when it sees ----, which makes it unsuitable for my purpose (which is to pass a multi-part email to php for parsing). I'll look into p5-libwww as Michael Sims suggested. Maybe a more specific question to ask is how do *you* email-enable your PHP web apps? I was planning on using procmail to pass the entire message to PHP via post. Am I barking mad? I suppose I could use imap functions and a crontab to check a mailbox every few minutes and process new messages, but that sounds more complicated and storage intensive. Thanks for all your suggestions! From jonbaer at jonbaer.net Thu Mar 27 14:48:37 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 27 Mar 2003 11:48:37 -0800 Subject: Stream API + RC4 in PHP 4 ... Message-ID: <004801c2f499$dc3cf030$6400a8c0@laptop> Does anyone know of good examples showing the use of MCRYPT_MODE_STREAM in PHP4? Thanks. - Jon -------------- next part -------------- An HTML attachment was scrubbed... URL: From chun_lam at hotmail.com Thu Mar 27 23:07:00 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Thu, 27 Mar 2003 23:07:00 -0500 Subject: [nycphp-talk] cache frameset Message-ID: instead of frames, you have to do it in tables. ----Original Message Follows---- From: David Rodriguez Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] cache frameset Date: Wed, 26 Mar 2003 13:18:03 -0500 Received: from mc8-f13.law1.hotmail.com ([65.54.253.149]) by mc8-s5.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 26 Mar 2003 10:19:05 -0800 Received: from parsec.nyphp.org ([66.250.131.26]) by mc8-f13.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 26 Mar 2003 10:18:20 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h2QII3At037407for ; Wed, 26 Mar 2003 13:18:18 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP Message-Id: <200303261818.h2QII3At037407 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 26 Mar 2003 18:18:21.0338 (UTC) FILETIME=[152067A0:01C2F3C4] Don't know for certain, but I think it is mostly a matter of how a particular browser handles frames, and of course the speed of the users Internet connection. Not sure if you can cache the pages for the frameset. D. On Wednesday, March 26, 2003, at 01:13PM, Christopher Hendry wrote: >does anyone know if/how I could cache a frameset, so that when the frameset >displays all of the pages inside it display at once as opposed to one page >within the frameset loading up at a different pace than the other pages. > >I have a couple of embedded framesets (unavoidable, I'm afraid) with php >inside. And the pages load in a very ugly fashion (sometimes there can even >be a lag so one page doesn't load till much later than the others). I only >need it to display all at once at the index page. > >It's in a hosted environment, so I don't have much control over the server. >:( > >Is it possible??? > >Thanks, Chris > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From nyphp at jimbishop.org Fri Mar 28 14:34:20 2003 From: nyphp at jimbishop.org (nyphp at jimbishop.org) Date: Fri, 28 Mar 2003 11:34:20 -0800 (PST) Subject: Hi ! (fwd) Message-ID: 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? ---------- 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-980Wspp1032ntiO3-641HKl78 From dorgan at optonline.net Fri Mar 28 15:44:07 2003 From: dorgan at optonline.net (Donald J. Organ IV) Date: Fri, 28 Mar 2003 15:44:07 -0500 Subject: Need some help Message-ID: <001001c2f56a$c78d7430$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 and quotes in that field which happens when the WYSIWYG places

into the field it cuts off all the information after the first qupte because it this it the end of the . 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 From drodriguez1 at mac.com Mon Mar 31 13:01:39 2003 From: drodriguez1 at mac.com (David Rodriguez) Date: Mon, 31 Mar 2003 13:01:39 -0500 Subject: [nycphp-talk] php include file question Message-ID: <2702645.1049133699081.JavaMail.drodriguez1@mac.com> Don't know about anyone else, I'm still new to this, but I name the html files ".php" and then for the include statement I use "include 'copyright.php';" That is the only thing that worked for me. You won't have to change anything in the current .html file other than the extension. D. On Monday, March 31, 2003, at 12:52PM, Deidra McIntyre wrote: >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 > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > David "e.Dave" Rodriguez http://www.digitalsilk.com/ From dsexton at ubspw.com Mon Mar 31 13:02:21 2003 From: dsexton at ubspw.com (Sexton, David) Date: Mon, 31 Mar 2003 13:02:21 -0500 Subject: [nycphp-talk] php include file question Message-ID: <18D7B8CAA5284F478470828806DB124603789D25@psle01.xchg.pwj.com> Hi Deidra, You have to add the directory that contains the files you wish to include to the php.ini file. There is a section for paths and directories in there: ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; ; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" ; ; Windows: "\\path1;\\path2" ;include_path = ".;c:\\php\\includes;c:\\inetpub\\wwwroot\\" Once you add the path, it should work. -----Original Message----- From: Deidra McIntyre [mailto:lists at redibishosting.com] Sent: Monday, March 31, 2003 12:53 PM To: NYPHP Talk 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 --- Unsubscribe at http://nyphp.org/list/ --- From jhise at nextsource.com Mon Mar 31 13:00:50 2003 From: jhise at nextsource.com (Hise, Jeremy) Date: Mon, 31 Mar 2003 13:00:50 -0500 Subject: [nycphp-talk] php include file question Message-ID: <89C3243EE1C6D411A7C200508BDCA846D13E26@nyexch01.nextsource.com> Do your include files also have inside them? Maybe it's a dumb statement. But . 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 --- 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 jhise at nextsource.com Mon Mar 31 13:03:15 2003 From: jhise at nextsource.com (Hise, Jeremy) Date: Mon, 31 Mar 2003 13:03:15 -0500 Subject: [nycphp-talk] php include file question Message-ID: <89C3243EE1C6D411A7C200508BDCA846D13E27@nyexch01.nextsource.com> I know that you can include any kind of file in PHP and it will be parsed so long as there are inside with executable PHP code. This is not the same thing as apache dealing with the file. Because apache wont send .html files to PHP (unless you've configured your apache to work that way). -----Original Message----- From: David Rodriguez [mailto:drodriguez1 at mac.com] Sent: Monday, March 31, 2003 1:02 PM To: NYPHP Talk Subject: Re: [nycphp-talk] php include file question Don't know about anyone else, I'm still new to this, but I name the html files ".php" and then for the include statement I use "include 'copyright.php';" That is the only thing that worked for me. You won't have to change anything in the current .html file other than the extension. D. On Monday, March 31, 2003, at 12:52PM, Deidra McIntyre wrote: >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 > > > > > > > > > David "e.Dave" Rodriguez http://www.digitalsilk.com/ --- 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 jhise at nextsource.com Mon Mar 31 13:04:26 2003 From: jhise at nextsource.com (Hise, Jeremy) Date: Mon, 31 Mar 2003 13:04:26 -0500 Subject: [nycphp-talk] php include file question Message-ID: <89C3243EE1C6D411A7C200508BDCA846D13E28@nyexch01.nextsource.com> You don't _HAVE_ to. You DO have to if you have your include files in another location AND you want to be able to say include("mylib.php"); Otherwise, you have to do something along the lines of include($GLOBALS['DOCUMENT_ROOT'] . "/../include/mylib.php"); -----Original Message----- From: Sexton, David [mailto:dsexton at ubspw.com] Sent: Monday, March 31, 2003 1:03 PM To: NYPHP Talk Subject: RE: [nycphp-talk] php include file question Hi Deidra, You have to add the directory that contains the files you wish to include to the php.ini file. There is a section for paths and directories in there: ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; ; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" ; ; Windows: "\\path1;\\path2" ;include_path = ".;c:\\php\\includes;c:\\inetpub\\wwwroot\\" Once you add the path, it should work. -----Original Message----- From: Deidra McIntyre [mailto:lists at redibishosting.com] Sent: Monday, March 31, 2003 12:53 PM To: NYPHP Talk 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 --- 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 jonbaer at jonbaer.net Mon Mar 31 13:06:38 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 31 Mar 2003 10:06:38 -0800 Subject: [nycphp-talk] php include file question References: <200303311754.h2VHqwsf077066@parsec.nyphp.org> Message-ID: <001a01c2f7b0$46becf50$6400a8c0@laptop> You should turn on error reporting to see what it says (if you get a blank page) ... You might also want to put "." before the file, i.e. Or adjust your include_path in php.ini, i.e. include_path = ".;c:\\php\\includes;c:\\php\\pear" - Jon ----- 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 > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From willie at pdfsystems.com Mon Mar 31 13:11:19 2003 From: willie at pdfsystems.com (Willliam Klein) Date: Mon, 31 Mar 2003 13:11:19 -0500 Subject: [nycphp-talk] php include file question In-Reply-To: <23AA728CBA918941834ADDDFAD7FA85C080B9A@sag.pdfsystems.com> Message-ID: <23AA728CBA918941834ADDDFAD7FA85C9B15@sag.pdfsystems.com> I don't think the extentions matter. Make a info.php document with just in it and check your include path. > -----Original Message----- > From: Deidra McIntyre [mailto:lists at redibishosting.com] > Sent: Monday, March 31, 2003 12:53 PM > To: NYPHP Talk > 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 > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsexton at ubspw.com Mon Mar 31 13:36:02 2003 From: dsexton at ubspw.com (Sexton, David) Date: Mon, 31 Mar 2003 13:36:02 -0500 Subject: [nycphp-talk] php include file question Message-ID: <18D7B8CAA5284F478470828806DB124603789D26@psle01.xchg.pwj.com> I just noticed something strange. If I comment out my include directive in php.ini, files in the same directory as the calling file are still included, BUT stylesheets fail to be included. Basically, if I pull up a file that has an include statement for another file, that other file's content is included but the LINK tag is ignored for some reason. I don't understand why that would happen. I am parsing through CSS and Javascript files, but it should still work, shouldn't it? -----Original Message----- From: Hise, Jeremy [mailto:jhise at nextsource.com] Sent: Monday, March 31, 2003 1:07 PM To: NYPHP Talk Subject: RE: [nycphp-talk] php include file question You don't _HAVE_ to. You DO have to if you have your include files in another location AND you want to be able to say include("mylib.php"); Otherwise, you have to do something along the lines of include($GLOBALS['DOCUMENT_ROOT'] . "/../include/mylib.php"); -----Original Message----- From: Sexton, David [mailto:dsexton at ubspw.com] Sent: Monday, March 31, 2003 1:03 PM To: NYPHP Talk Subject: RE: [nycphp-talk] php include file question Hi Deidra, You have to add the directory that contains the files you wish to include to the php.ini file. There is a section for paths and directories in there: ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; ; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" ; ; Windows: "\\path1;\\path2" ;include_path = ".;c:\\php\\includes;c:\\inetpub\\wwwroot\\" Once you add the path, it should work. -----Original Message----- From: Deidra McIntyre [mailto:lists at redibishosting.com] Sent: Monday, March 31, 2003 12:53 PM To: NYPHP Talk 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 ****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/ --- From jhise at nextsource.com Mon Mar 31 13:45:58 2003 From: jhise at nextsource.com (Hise, Jeremy) Date: Mon, 31 Mar 2003 13:45:58 -0500 Subject: [nycphp-talk] php include file question Message-ID: <89C3243EE1C6D411A7C200508BDCA846D13E29@nyexch01.nextsource.com> That is weird, so your LINK is IN an included file? That is wierd. You would think that the LINK doesn't happen until all the PHP is done executing...so the LINK should happen the same regardless...however, if it's not happening, and your INCLUDE file is in some location that, if it was executed directly the LINK path would be wrong, then that would suggest that PHP behaves differently depending on the way in which files are included (via include() vs. php.ini). Tis strange though. -----Original Message----- From: Sexton, David [mailto:dsexton at ubspw.com] Sent: Monday, March 31, 2003 1:41 PM To: NYPHP Talk Subject: RE: [nycphp-talk] php include file question I just noticed something strange. If I comment out my include directive in php.ini, files in the same directory as the calling file are still included, BUT stylesheets fail to be included. Basically, if I pull up a file that has an include statement for another file, that other file's content is included but the LINK tag is ignored for some reason. I don't understand why that would happen. I am parsing through CSS and Javascript files, but it should still work, shouldn't it? -----Original Message----- From: Hise, Jeremy [mailto:jhise at nextsource.com] Sent: Monday, March 31, 2003 1:07 PM To: NYPHP Talk Subject: RE: [nycphp-talk] php include file question You don't _HAVE_ to. You DO have to if you have your include files in another location AND you want to be able to say include("mylib.php"); Otherwise, you have to do something along the lines of include($GLOBALS['DOCUMENT_ROOT'] . "/../include/mylib.php"); -----Original Message----- From: Sexton, David [mailto:dsexton at ubspw.com] Sent: Monday, March 31, 2003 1:03 PM To: NYPHP Talk Subject: RE: [nycphp-talk] php include file question Hi Deidra, You have to add the directory that contains the files you wish to include to the php.ini file. There is a section for paths and directories in there: ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; ; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" ; ; Windows: "\\path1;\\path2" ;include_path = ".;c:\\php\\includes;c:\\inetpub\\wwwroot\\" Once you add the path, it should work. -----Original Message----- From: Deidra McIntyre [mailto:lists at redibishosting.com] Sent: Monday, March 31, 2003 12:53 PM To: NYPHP Talk 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 ****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 danielc at analysisandsolutions.com Mon Mar 31 14:17:35 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Mon, 31 Mar 2003 14:17:35 -0500 Subject: [nycphp-talk] php include file question In-Reply-To: <200303311753.h2VHqwoB077066@parsec.nyphp.org> References: <200303311753.h2VHqwoB077066@parsec.nyphp.org> Message-ID: <20030331191734.GA19284@panix.com> On Mon, Mar 31, 2003 at 12:52:58PM -0500, Deidra McIntyre wrote: > Try: What's your OS and web server? I found that under PHP 4.3.*, Apache, NetBSD (and perhaps other combinations) there was a recent change in behavior where the directories above the included files need to be world readable and executable (meaning "chmod 705"). What error messages are you getting? You do have error messages turned on, right? This kind of stuff comes in handy, helping you figure it out for yourself, and if you cant, helps us help you. The suggestions that you need to edit your include path statement in the php.ini file are likely incorrect, since "." is in the default include path value already. Similarly, the file extension doesn't matter, nor does the included file need to have in them. --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From dsexton at ubspw.com Mon Mar 31 14:25:06 2003 From: dsexton at ubspw.com (Sexton, David) Date: Mon, 31 Mar 2003 14:25:06 -0500 Subject: [nycphp-talk] php include file question Message-ID: <18D7B8CAA5284F478470828806DB124603789D27@psle01.xchg.pwj.com> Nevermind. I just realized there is another require statement in the CSS file that I was linking to, and it is not in the same directory as the calling script. So basically, the CSS file was throwing a fatal error when the directive was commented out. Interesting error though: [31-Mar-2003 14:00:39] PHP Fatal error: Failed opening required 'environment.inc' (include_path='c:\\php4\\pear') in C:\\Inetpub\\wwwroot\\styles\\main.css on line 3 That path must be hardcoded deep in the require module somewhere because it doesn't even exist on this box. -Dave -----Original Message----- From: Hise, Jeremy [mailto:jhise at nextsource.com] Sent: Monday, March 31, 2003 1:48 PM To: NYPHP Talk Subject: RE: [nycphp-talk] php include file question That is weird, so your LINK is IN an included file? That is wierd. You would think that the LINK doesn't happen until all the PHP is done executing...so the LINK should happen the same regardless...however, if it's not happening, and your INCLUDE file is in some location that, if it was executed directly the LINK path would be wrong, then that would suggest that PHP behaves differently depending on the way in which files are included (via include() vs. php.ini). Tis strange though. -----Original Message----- From: Sexton, David [mailto:dsexton at ubspw.com] Sent: Monday, March 31, 2003 1:41 PM To: NYPHP Talk Subject: RE: [nycphp-talk] php include file question I just noticed something strange. If I comment out my include directive in php.ini, files in the same directory as the calling file are still included, BUT stylesheets fail to be included. Basically, if I pull up a file that has an include statement for another file, that other file's content is included but the LINK tag is ignored for some reason. I don't understand why that would happen. I am parsing through CSS and Javascript files, but it should still work, shouldn't it? -----Original Message----- From: Hise, Jeremy [mailto:jhise at nextsource.com] Sent: Monday, March 31, 2003 1:07 PM To: NYPHP Talk Subject: RE: [nycphp-talk] php include file question You don't _HAVE_ to. You DO have to if you have your include files in another location AND you want to be able to say include("mylib.php"); Otherwise, you have to do something along the lines of include($GLOBALS['DOCUMENT_ROOT'] . "/../include/mylib.php"); -----Original Message----- From: Sexton, David [mailto:dsexton at ubspw.com] Sent: Monday, March 31, 2003 1:03 PM To: NYPHP Talk Subject: RE: [nycphp-talk] php include file question Hi Deidra, You have to add the directory that contains the files you wish to include to the php.ini file. There is a section for paths and directories in there: ;;;;;;;;;;;;;;;;;;;;;;;;; ; Paths and Directories ; ;;;;;;;;;;;;;;;;;;;;;;;;; ; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" ; ; Windows: "\\path1;\\path2" ;include_path = ".;c:\\php\\includes;c:\\inetpub\\wwwroot\\" Once you add the path, it should work. -----Original Message----- From: Deidra McIntyre [mailto:lists at redibishosting.com] Sent: Monday, March 31, 2003 12:53 PM To: NYPHP Talk 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 ****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. ****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/ --- From jmusil at villagevoice.com Mon Mar 31 14:27:16 2003 From: jmusil at villagevoice.com (Jim Musil) Date: Mon, 31 Mar 2003 14:27:16 -0500 Subject: Experience with Zend Perfomance Suite Message-ID: Would anyone care to share their views/experiences on the Zend Performance Suite? -- James Musil Senior Developer Village Voice Media 36 Cooper Square New York, NY 10003 (212) 475-3300 ext 14003 JMusil at villagevoice.com From jhise at nextsource.com Mon Mar 31 14:26:49 2003 From: jhise at nextsource.com (Hise, Jeremy) Date: Mon, 31 Mar 2003 14:26:49 -0500 Subject: [nycphp-talk] php include file question Message-ID: <89C3243EE1C6D411A7C200508BDCA846D13E2A@nyexch01.nextsource.com> I just performed this test. 1) Created a file called inctest.php 2) Contents of inctest.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 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 -----Original Message----- From: Analysis & Solutions [mailto:danielc at analysisandsolutions.com] Sent: Monday, March 31, 2003 2:18 PM To: NYPHP Talk Subject: Re: [nycphp-talk] php include file question On Mon, Mar 31, 2003 at 12:52:58PM -0500, Deidra McIntyre wrote: > Try: What's your OS and web server? I found that under PHP 4.3.*, Apache, NetBSD (and perhaps other combinations) there was a recent change in behavior where the directories above the included files need to be world readable and executable (meaning "chmod 705"). What error messages are you getting? You do have error messages turned on, right? This kind of stuff comes in handy, helping you figure it out for yourself, and if you cant, helps us help you. The suggestions that you need to edit your include path statement in the php.ini file are likely incorrect, since "." is in the default include path value already. Similarly, the file extension doesn't matter, nor does the included file need to have in them. --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 --- Unsubscribe at http://nyphp.org/list/ --- ****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 dsexton at ubspw.com Mon Mar 31 14:33:06 2003 From: dsexton at ubspw.com (Sexton, David) Date: Mon, 31 Mar 2003 14:33:06 -0500 Subject: [nycphp-talk] php include file question Message-ID: <18D7B8CAA5284F478470828806DB124603789D28@psle01.xchg.pwj.com> > "nor does the included file need to have in them." They are required if you plan on parsing PHP code in the included file. The Zend engine switches out of PHP mode whenever include is called and it will not parse by default. It then returns to PHP mode when it reachs EOF. -----Original Message----- From: Analysis & Solutions [mailto:danielc at analysisandsolutions.com] Sent: Monday, March 31, 2003 2:18 PM To: NYPHP Talk Subject: Re: [nycphp-talk] php include file question On Mon, Mar 31, 2003 at 12:52:58PM -0500, Deidra McIntyre wrote: > Try: What's your OS and web server? I found that under PHP 4.3.*, Apache, NetBSD (and perhaps other combinations) there was a recent change in behavior where the directories above the included files need to be world readable and executable (meaning "chmod 705"). What error messages are you getting? You do have error messages turned on, right? This kind of stuff comes in handy, helping you figure it out for yourself, and if you cant, helps us help you. The suggestions that you need to edit your include path statement in the php.ini file are likely incorrect, since "." is in the default include path value already. Similarly, the file extension doesn't matter, nor does the included file need to have in them. --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 --- Unsubscribe at http://nyphp.org/list/ --- From jhise at nextsource.com Mon Mar 31 14:39:58 2003 From: jhise at nextsource.com (Hise, Jeremy) Date: Mon, 31 Mar 2003 14:39:58 -0500 Subject: [nycphp-talk] php include file question Message-ID: <89C3243EE1C6D411A7C200508BDCA846D13E2B@nyexch01.nextsource.com> Well...Deidra said "parsed" so my brain read it as PHP parsed...not HTML... so, assuming that the included file is not yielding any output... ...I have no idea :) Permissions maybe? -----Original Message----- From: Sexton, David [mailto:dsexton at ubspw.com] Sent: Monday, March 31, 2003 2:33 PM To: NYPHP Talk Subject: RE: [nycphp-talk] php include file question > "nor does the included file need to have in them." They are required if you plan on parsing PHP code in the included file. The Zend engine switches out of PHP mode whenever include is called and it will not parse by default. It then returns to PHP mode when it reachs EOF. -----Original Message----- From: Analysis & Solutions [mailto:danielc at analysisandsolutions.com] Sent: Monday, March 31, 2003 2:18 PM To: NYPHP Talk Subject: Re: [nycphp-talk] php include file question On Mon, Mar 31, 2003 at 12:52:58PM -0500, Deidra McIntyre wrote: > Try: What's your OS and web server? I found that under PHP 4.3.*, Apache, NetBSD (and perhaps other combinations) there was a recent change in behavior where the directories above the included files need to be world readable and executable (meaning "chmod 705"). What error messages are you getting? You do have error messages turned on, right? This kind of stuff comes in handy, helping you figure it out for yourself, and if you cant, helps us help you. The suggestions that you need to edit your include path statement in the php.ini file are likely incorrect, since "." is in the default include path value already. Similarly, the file extension doesn't matter, nor does the included file need to have in them. --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 --- Unsubscribe at http://nyphp.org/list/ --- ****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 ian at plusfour.org Mon Mar 31 15:38:48 2003 From: ian at plusfour.org (Ian Forsyth) Date: Mon, 31 Mar 2003 12:38:48 -0800 Subject: [nycphp-talk] php include file question In-Reply-To: <200303311755.h2VHqwvH077066@parsec.nyphp.org> Message-ID: Hi Deidra, On Monday, March 31, 2003, at 09:52 AM, Deidra McIntyre wrote: > > 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. Does the file that contains the php include end with .php or .html. what happens if you make a page with the same suffix as the files that contain the includes containing do both of them show up? > > 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.

. Most hosting providers require that a file end with .php in order for the php functions to work. Also some configurations do not allow for the 'short tag' format.. Meaning to use php you have to start your code with > Am I doing something wrong? Or does my technician need to change > something > in the server configuration (if so what)? If you have a large amount of files that you are updating with includes and the files all end with .html or .htm.. check to see if you hosting company allows for .htaccess files. If so you can tell php to parse .html files so your file list.html can contain includes and php will do what it is supposed to. this is what would be in the .htaccess file of your websites top directory AddType application/x-httpd-php .php .html .htm Otherwise you might have to rename all your .html files to .php Ian From danielc at analysisandsolutions.com Mon Mar 31 16:59:49 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Mon, 31 Mar 2003 16:59:49 -0500 Subject: [nycphp-talk] php include file question In-Reply-To: <200303311933.h2VJXIoB088728@parsec.nyphp.org> References: <200303311933.h2VJXIoB088728@parsec.nyphp.org> Message-ID: <20030331215948.GA19254@panix.com> Hi: On Mon, Mar 31, 2003 at 02:33:18PM -0500, Sexton, David wrote: > > "nor does the included file need to have in them." > > They are required if you plan on parsing PHP code in the included file. Yes. Pardon me for not clarifying. --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From zaunere at yahoo.com Mon Mar 31 17:20:40 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Mon, 31 Mar 2003 14:20:40 -0800 (PST) Subject: [nycphp-talk] Hi ! In-Reply-To: <200303281936.h2SJYRHB099694@parsec.nyphp.org> Message-ID: <20030331222040.6401.qmail@web12806.mail.yahoo.com> --- 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. Hans > > ---------- 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-980Wspp1032ntiO3-641HKl78 > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From louie at zibi.co.il Mon Mar 31 20:15:34 2003 From: louie at zibi.co.il (louie) Date: Mon, 31 Mar 2003 17:15:34 -0800 Subject: [nycphp-talk] php include file question References: <200303311756.h2VHqw1P077066@parsec.nyphp.org> Message-ID: <001d01c2f7ec$488df2c0$b35efea9@w3j5c4> 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 > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From jim at nettmedia.com Mon Mar 31 17:31:37 2003 From: jim at nettmedia.com (Jim Musil) Date: Mon, 31 Mar 2003 17:31:37 -0500 Subject: Experience with Zend Perfomance Suite Message-ID: Would anyone care to share their views/experiences on the Zend Performance Suite? -- James Musil Senior Developer Village Voice Media 36 Cooper Square New York, NY 10003 (212) 475-3300 ext 14003 JMusil at villagevoice.com From lists at redibishosting.com Mon Mar 31 17:38:36 2003 From: lists at redibishosting.com (Deidra McIntyre) Date: Mon, 31 Mar 2003 17:38:36 -0500 (EST) Subject: [nycphp-talk] php include file question In-Reply-To: <200303312223.h2VMMevf096158@parsec.nyphp.org> References: <200303312223.h2VMMevf096158@parsec.nyphp.org> Message-ID: <1824.172.149.180.48.1049150316.squirrel@www.myhostingadmin.com> 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 >> >> >> >> >> >> >> >> >> > > > > --- Unsubscribe at http://nyphp.org/list/ --- From tim at fiercefamily.com Mon Mar 31 17:50:59 2003 From: tim at fiercefamily.com (Timothy Arnold) Date: Mon, 31 Mar 2003 17:50:59 -0500 Subject: [nycphp-talk] php include file question In-Reply-To: <200303312238.h2VMcfqj097790@parsec.nyphp.org> Message-ID: 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.

src="sameimageeverywhere.gif">

). > > 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 >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >> >> >> > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > _________________ Tim Arnold tim at fiercefamily.com From louie at zibi.co.il Mon Mar 31 20:49:28 2003 From: louie at zibi.co.il (louie) Date: Mon, 31 Mar 2003 17:49:28 -0800 Subject: [nycphp-talk] php include file question References: <200303312240.h2VMcf1P097790@parsec.nyphp.org> Message-ID: <003301c2f7f0$eed8ea00$b35efea9@w3j5c4> deidra? you put the include() in the index.html? can you copy and paste the code here, and the full name of the document you calling, in your browser, make sure you file name isnt "index.php.html" ----- Original Message ----- From: "Deidra McIntyre" To: "NYPHP Talk" Sent: Monday, March 31, 2003 2:38 PM Subject: Re: [nycphp-talk] php include file question > 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.

src="sameimageeverywhere.gif">

). > > 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 > >> > >> > >> > >> > >> > >> > >> > >> > >> > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From danielc at analysisandsolutions.com Mon Mar 31 18:12:13 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Mon, 31 Mar 2003 18:12:13 -0500 Subject: [nycphp-talk] php include file question In-Reply-To: <200303312238.h2VMcfoB097790@parsec.nyphp.org> References: <200303312238.h2VMcfoB097790@parsec.nyphp.org> Message-ID: <20030331231213.GA1744@panix.com> Deidra: On Mon, Mar 31, 2003 at 05:38:41PM -0500, Deidra McIntyre wrote: > > I have basic html pages for the site. Let's take one of them, index.html. As others have mentioned, are your files with .html extensions being parsed by PHP? View the page in your web browser. Now view the source HTML code of that page using your web browser. What does it show in the areas you have the include statements? Without this information, you're sending yourself, and us, on a wild goose chase. --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From jim at nettmedia.com Mon Mar 31 18:46:42 2003 From: jim at nettmedia.com (Jim Musil) Date: Mon, 31 Mar 2003 18:46:42 -0500 Subject: Special Characters between Platforms Message-ID: Hi, I've got an intranet I've inherited in which the users are entering data into a web form from both Mac and Windows. This data is sent to php scripts and mysql DB running on a Windows Server. The data is then exported as a text file back to both Macs and PCs for importing into Quark. My question is how do I possibly deal with all the special characters that people are entering? I'm talking about letters with umlauts, accents, "smart quotes", emdashes, endashes, etc. The codes for these characters are different on each OS and they keep getting mangled. Any experience with this problem? -- James Musil Senior Developer Village Voice Media 36 Cooper Square New York, NY 10003 (212) 475-3300 ext 14003 JMusil at villagevoice.com From brian at preston-campbell.com Mon Mar 31 20:56:40 2003 From: brian at preston-campbell.com (Brian) Date: Mon, 31 Mar 2003 20:56:40 -0500 Subject: [nycphp-talk] php include file question In-Reply-To: <200303312312.h2VNCFvJ000566@parsec.nyphp.org> References: <200303312312.h2VNCFvJ000566@parsec.nyphp.org> Message-ID: <200303312056.40733.brian@preston-campbell.com> When it is necessary for me to use PHP on an existing site, I add an .htaccess file to specify that .htm and .html will be parsed as .php files. Without involving the sysadmin, and assuming that it is an Apache server, this is a pretty simple solution, with the negative loss of performance when -ever-single-html-page- page is parsed whether it contains php or not. One simple line in .htaccess: AddType application/x-httpd-php .htm .html Though I might chime in. Brian On Monday 31 March 2003 06:12 pm, Analysis & Solutions wrote: > Deidra: > > On Mon, Mar 31, 2003 at 05:38:41PM -0500, Deidra McIntyre wrote: > > I have basic html pages for the site. Let's take one of them, > > index.html. > > As others have mentioned, are your files with .html extensions > being parsed by PHP? View the page in your web browser. Now view > the source HTML code of that page using your web browser. What > does it show in the areas you have the include statements? > > Without this information, you're sending yourself, and us, on a > wild goose chase. > > --Dan From nyphp at jimbishop.org Mon Mar 31 21:07:28 2003 From: nyphp at jimbishop.org (nyphp at jimbishop.org) Date: Mon, 31 Mar 2003 18:07:28 -0800 (PST) Subject: [nycphp-talk] Hi ! In-Reply-To: <200303312221.h2VMKgsd095400@parsec.nyphp.org> Message-ID: > --- 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? 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. 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-980Wspp1032ntiO3-641HKl78 > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > ---------------------------------------------------------- jim.bishop at jimbishop.org support regime change http://www.deanforamerica.com http://www.newyorkfordean.com ---------------------------------------------------------- From delta at rochester.rr.com Mon Mar 31 22:54:52 2003 From: delta at rochester.rr.com (deedee) Date: Mon, 31 Mar 2003 22:54:52 -0500 Subject: [nycphp-talk] Hi !-stealth mail shields References: <200304010208.h3127Tvj005391@parsec.nyphp.org> Message-ID: <002501c2f802$7384a0d0$fc00fe0a@keitzxppro> i know we can trust Hans and the team to protect and uphold our privacy. "nyphp at jimbishop.org" you might consider that your email address is not complex nor is it encrypted. Individuals who write programs to spam and harm decent web surfers like yourself love to act menacing and might write programs to manipulate & compromise usernames for every combination of XXXX at jimbishop.org. I also have an email address at my domainname.org but i never use any combination of that org account for public adventures. its always kept private. my inbox i use for this group rarely displays anything but nyphp notices. I create 'rules' to manage & delete the unwanted emails. another option is try http://fantomaster.com/fantomasSuite/mailShield/famshieldsv-e.cgi or other mail shields (spamex, spamgourmet or spammotel) to minimize your concerns. here's another really good bit of advice i found at http://www.email911.com/resources/whatcanido.html NEVER, NEVER, NEVER reply or respond to a spam or any bulk unsolicited commercial email message - especially if it is to ask to be removed from their mailing list. Most spam includes a link to a "Removal Form" or a "Removal Address" within the message. When you reply to any spam message that you receive - even if it is to request to be removed - you are telling the spammer that your email address is active. Literally within minutes or hours of your reply they will put your email address on a CD Rom and sell it to other spammers for profit, increasing the amount of spam that you receive by ten-fold or more. ----- Original Message ----- From: To: "NYPHP Talk" Sent: Monday, March 31, 2003 9:07 PM Subject: Re: [nycphp-talk] Hi ! > > --- 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? 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. > > > > 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-980Wspp1032ntiO 3-641HKl78 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------- > jim.bishop at jimbishop.org > > support regime change http://www.deanforamerica.com > http://www.newyorkfordean.com > ---------------------------------------------------------- > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From zaunere at yahoo.com Mon Mar 31 23:26:31 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Mon, 31 Mar 2003 20:26:31 -0800 (PST) Subject: [nycphp-talk] Hi ! In-Reply-To: <200304010208.h3127T0N005391@parsec.nyphp.org> Message-ID: <20030401042631.45121.qmail@web12808.mail.yahoo.com> --- 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-980Wspp1032ntiO3-641HKl78 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------- > jim.bishop at jimbishop.org > > support regime change http://www.deanforamerica.com > http://www.newyorkfordean.com > ---------------------------------------------------------- > > > > --- Unsubscribe at http://nyphp.org/list/ --- > >