From kenneth at ylayali.net Mon Sep 2 14:46:48 2002 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Mon, 2 Sep 2002 13:46:48 -0500 Subject: [nycphp-talk] Paging through large result sets In-Reply-To: <200208291729.g7THTLGb001219@parsec.nyphp.org> References: <200208291729.g7THTLGb001219@parsec.nyphp.org> Message-ID: <20020902184648.GA7371@ENKIDU> On Thu, Aug 29, 2002 at 01:29:21PM -0400, Joseph Annino wrote: > So I was thinking as a way of extending your idea of passing keys through a > URL redirect, I'll put the IDs from my result set into a session variable. > This poses two problems. First users need to get a cookie (or I need to go > through hoops) to store the session id. Second, users may want to open > multiple windows with multiple searches, so there needs to be a way of > associating more than one search with a session. > > I'm thinking a way to kill two birds with one stone is to create a unique > 'search session id' and place it in hidden fields and urls of the pages that > are part of browsing a particular result. A new ID is created whenever the > user hits the search button. Sorry for the late reply, I've been a little behind on my list reading. I'm using my recent unemployment to study LAMP technologies myself, coming from a largely ASP background (& am still working on setting up a fully functional server, so haven't much PHP experience yet) I wonder why not take the hidden field idea a step further and just put the result set IDs directly into it & let the page take care of itself? It sounds like you're not using sessions for anything else as yet. $ .02 Ken From kenneth at ylayali.net Mon Sep 2 22:09:46 2002 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Mon, 2 Sep 2002 21:09:46 -0500 Subject: [nycphp-talk] Paging through large result sets In-Reply-To: <200208291729.g7THTLGb001219@parsec.nyphp.org> References: <200208291729.g7THTLGb001219@parsec.nyphp.org> Message-ID: <20020903020946.GB8646@ENKIDU> On Thu, Aug 29, 2002 at 01:29:21PM -0400, Joseph Annino wrote: > So I was thinking as a way of extending your idea of passing keys through a > URL redirect, I'll put the IDs from my result set into a session variable. > This poses two problems. First users need to get a cookie (or I need to go > through hoops) to store the session id. Second, users may want to open > multiple windows with multiple searches, so there needs to be a way of > associating more than one search with a session. > > I'm thinking a way to kill two birds with one stone is to create a unique > 'search session id' and place it in hidden fields and urls of the pages that > are part of browsing a particular result. A new ID is created whenever the > user hits the search button. Sorry for the late reply, I've been a little behind on my list reading. I'm using my recent unemployment to study LAMP technologies myself, coming from a largely ASP background (& am still working on setting up a fully functional server, so haven't much PHP experience yet) I wonder why not take the hidden field idea a step further and just put the result set IDs directly into it & let the page take care of itself? It sounds like you're not using sessions for anything else as yet. $ .02 Ken From sharpwit at hotmail.com Mon Sep 2 22:27:02 2002 From: sharpwit at hotmail.com ((kris)janis p gale) Date: Mon, 2 Sep 2002 22:27:02 -0400 Subject: [nycphp-talk] Paging through large result sets References: <200209030109.g8319EGb010871@parsec.nyphp.org> Message-ID: > > I wonder why not take the hidden field idea a step further and just put > the result set IDs directly into it & let the page take care of itself? > if i'm following correctly... you're suggesting that instead of propagating the result set id list to a GET/url variable or in a cookie or in a temporary database row... that you do a silent POST with the id's in a hidden field... this presents the problem of having to create a form on each of the result pages... so, say, the page-turning links couldn't just be variations on the result url, they'd have to be javascript links that would POST the form containing the hidden field... essentially turning every page-turn into a simulated form POST, not a simpler click on an actual href... thus, removing the possibility of the user being able to bookmark the search result. From dorgan at optonline.net Mon Sep 2 22:25:52 2002 From: dorgan at optonline.net (Donald J. Organ IV) Date: Mon, 02 Sep 2002 22:25:52 -0400 Subject: Current weeks's dates Message-ID: <001d01c252f1$3f7da4f0$3300010a@laptop> Is there any way that anyone can think of to get a set of dates sun-sat for a given date? -------------- next part -------------- An HTML attachment was scrubbed... URL: From soazine at erols.com Tue Sep 3 03:18:04 2002 From: soazine at erols.com (Phil Powell) Date: Tue, 3 Sep 2002 03:18:04 -0400 Subject: PHP Form handling with mutipart/form-data References: <200209030239.g832dBGb010985@parsec.nyphp.org> Message-ID: <024101c2531a$0d1facf0$dcbe6444@scandinawa1bo6> I know that PHP uses $HTTP_FORM_VARS associative array variable (or $FORM too I think I forget), however, can PHP use these variables if the form submitted was of type multipart/form-data? E.g.
... ...
How would PHP handle a form such as this, where you would be uploading files? Phil ----- Original Message ----- From: "Donald J. Organ IV" To: "NYPHP Talk" Sent: Monday, September 02, 2002 10:39 PM Subject: [nycphp-talk] Current weeks's dates > Is there any way that anyone can think of to get a set of dates sun-sat for a given date? > > > > From cahoyos at us.ibm.com Tue Sep 3 09:11:26 2002 From: cahoyos at us.ibm.com (Carlos A Hoyos) Date: Tue, 3 Sep 2002 09:11:26 -0400 Subject: [nycphp-talk] Current weeks's dates Message-ID: The date function is very good at formating dates. Here's a long code which exemplifies some of the date functionality: // what are the start and end days for this date? $date = "2002-02-22"; // get start's date timestamp $date_timestamp = strtotime($date); // this returns day of week numeric, i.e. "0" (Sunday) to "6" (Saturday) $dayw = date("w", $date_timestamp); // unix timestamps for start and end days of the week $start_week_u = mktime (0, 0, 0, date("m", $date_timestamp), date("d", $date_timestamp)-$dayw, date("Y", $date_timestamp)); $end_week_u = mktime (0, 0, 0, date("m", $date_timestamp), date("d", $date_timestamp)+6-$dayw, date("Y", $date_timestamp)); // convert them to the format you $Startdate = date("Y-m-d", $start_week_u); $Enddate = date("Y-m-d", $end_week_u); "Donald J. Organ IV" To: NYPHP Talk Subject: [nycphp-talk] Current weeks's dates 09/02/2002 10:39 PM Please respond to talk Is there any way that anyone can think of to get a set of dates sun-sat for a given date? From rainman at deroo.net Tue Sep 3 09:21:24 2002 From: rainman at deroo.net (The RainMan) Date: Tue, 03 Sep 2002 09:21:24 -0400 Subject: [nycphp-talk] PHP Form handling with mutipart/form-data In-Reply-To: <200209030719.g837JxGb011552@parsec.nyphp.org> Message-ID: <5.1.0.14.0.20020903091136.00a0c140@mail.deroo.net> Phil-- >I know that PHP uses $HTTP_FORM_VARS associative array variable (or $FORM >too I think I forget), Actually $HTTP_*_VARS has been deprecated, although still available. The preferred way is to use $_POST, $_GET, $_REQUEST, as necessary. >however, can PHP use these variables if the form submitted was of type >multipart/form-data? Sure, not a problem. Any time I need to deal with file uploads I use multipart/form-data, works just the same. >E.g. > >
>.. > >.. >
> >How would PHP handle a form such as this, where you would be uploading >files? Just as it does any other form. For an in depth look on dealing with file uploads check out http://www.php.net/manual/en/features.file-upload.php .r From tfreedma at ubspw.com Tue Sep 3 09:36:22 2002 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Tue, 3 Sep 2002 09:36:22 -0400 Subject: [nycphp-talk] Current weeks's dates Message-ID: You can use functions like: $sunday = date("m/d/y", strtotime("-6 days")); $saturday = date("m/d/y", strtotime("+1 days")); in a 'switch (date("w", $inputDate)){}' statement, testing for the weekday of the given date. I tried the textual parameters for date (like "last Sunday") but I found them unreliable, especially when dealing with things like looking for "next Tuesday" when the supplied date is a Tuesday. -----Original Message----- From: Donald J. Organ IV [mailto:dorgan at optonline.net] Sent: Monday, September 02, 2002 10:39 PM To: NYPHP Talk Subject: [nycphp-talk] Current weeks's dates Is there any way that anyone can think of to get a set of dates sun-sat for a given date? From kenneth at ylayali.net Tue Sep 3 10:38:12 2002 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Tue, 3 Sep 2002 09:38:12 -0500 Subject: [nycphp-talk] Paging through large result sets In-Reply-To: <200209030228.g832SFGb010970@parsec.nyphp.org> References: <200209030228.g832SFGb010970@parsec.nyphp.org> Message-ID: <20020903143812.GA11194@ENKIDU> On Mon, Sep 02, 2002 at 10:28:15PM -0400, janis p gale wrote: > if i'm following correctly... you're suggesting that instead of > propagating the result set id list to a GET/url variable or in a > cookie or in a temporary database row... that you do a silent > POST with the id's in a hidden field... > > this presents the problem of having to create a form on each > of the result pages... so, say, the page-turning links couldn't > just be variations on the result url, they'd have to be javascript > links that would POST the form containing the hidden field... > essentially turning every page-turn into a simulated form POST, > not a simpler click on an actual href... thus, removing the > possibility of the user being able to bookmark the search result. > Yes, you're following correctly, every page turn would be a POST request, though there's no need for JavaScript that I can see. 'Next'/'Last' links just need to be in the form of good old-fashioned button or image elements. Personally I consider the maintenance of a form to be no more complicated than working with the query string. But I was writing in response to Joseph Annino: "I'm thinking a way to kill two birds with one stone is to create a unique 'search session id' and place it in hidden fields and urls ... which seemed to introduce hidden fields as a means of tracking a 'search session id' for a lookup in a temporary row, which seemed redundant if the hidden form is already there. It's an approach I'm trying out recently in a project where until now I've just re-run the query on every page, and it happens to be well suited to my data. If users leave the 2 level deep result set pages they lose the results (though if cookies are accepted the search field values are remembered) If you want particular search results to be bookmarkable obviously it won't work. In that case you can't rely on temporary database rows either, but must put everything in the query string. It was just a thought, Ken From sharpwit at hotmail.com Tue Sep 3 10:22:39 2002 From: sharpwit at hotmail.com ((kris)janis p gale) Date: Tue, 3 Sep 2002 10:22:39 -0400 Subject: [nycphp-talk] Paging through large result sets References: <200209031337.g83DbjGb011926@parsec.nyphp.org> Message-ID: > Yes, you're following correctly, every page turn would be a POST > request, though there's no need for JavaScript that I can see. > 'Next'/'Last' links just need to be in the form of good old-fashioned > button or image elements. Personally I consider the maintenance of a > form to be no more complicated than working with the query string. buttons and images would be suitable, though. however, in your method you'd have to have a seperate
and seperate submit button for every page. instead of just writing a clever javascript handler change a hidden page number field and doing the form.submit() > If you want particular search results to be bookmarkable obviously it > won't work. > It was just a thought, thoughts are good! i actually wouldn't have even considered it had you not mentioned it. and in some cases (intranet apps, for example) 'hiding' the id list is definately preferable... as well as preventing bookmarking. From soazine at pop.mail.rcn.net Tue Sep 3 12:05:58 2002 From: soazine at pop.mail.rcn.net (soazine@pop.erols.com) Date: Tue, 3 Sep 2002 12:05:58 -0400 Subject: [nycphp-talk] PHP Form handling with mutipart/form-data Message-ID: <269620-2200292316558195@M2W082.mail2web.com> Well that is partially convenient. If I have how would I obtain the actual file name, file size, content-type and the file contents while simply using $_POST? Phil Original Message: ----------------- From: The RainMan rainman at deroo.net Date: Tue, 3 Sep 2002 09:29:50 -0400 To: talk at nyphp.org Subject: Re: [nycphp-talk] PHP Form handling with mutipart/form-data Phil-- >I know that PHP uses $HTTP_FORM_VARS associative array variable (or $FORM >too I think I forget), Actually $HTTP_*_VARS has been deprecated, although still available. The preferred way is to use $_POST, $_GET, $_REQUEST, as necessary. >however, can PHP use these variables if the form submitted was of type >multipart/form-data? Sure, not a problem. Any time I need to deal with file uploads I use multipart/form-data, works just the same. >E.g. > > >.. > >.. >
> >How would PHP handle a form such as this, where you would be uploading >files? Just as it does any other form. For an in depth look on dealing with file uploads check out http://www.php.net/manual/en/features.file-upload.php r -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From soazine at pop.mail.rcn.net Tue Sep 3 12:09:57 2002 From: soazine at pop.mail.rcn.net (soazine@pop.erols.com) Date: Tue, 3 Sep 2002 12:09:57 -0400 Subject: [nycphp-talk] PHP Form handling with mutipart/form-data Message-ID: <191690-2200292316957845@M2W075.mail2web.com> Well that is partially convenient. If I have how would I obtain the actual file name, file size, content-type and the file contents while simply using $_POST? Phil Original Message: ----------------- From: The RainMan rainman at deroo.net Date: Tue, 3 Sep 2002 09:29:50 -0400 To: talk at nyphp.org Subject: Re: [nycphp-talk] PHP Form handling with mutipart/form-data Phil-- >I know that PHP uses $HTTP_FORM_VARS associative array variable (or $FORM >too I think I forget), Actually $HTTP_*_VARS has been deprecated, although still available. The preferred way is to use $_POST, $_GET, $_REQUEST, as necessary. >however, can PHP use these variables if the form submitted was of type >multipart/form-data? Sure, not a problem. Any time I need to deal with file uploads I use multipart/form-data, works just the same. >E.g. > >
>.. > >.. >
> >How would PHP handle a form such as this, where you would be uploading >files? Just as it does any other form. For an in depth look on dealing with file uploads check out http://www.php.net/manual/en/features.file-upload.php r -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From zaunere at yahoo.com Tue Sep 3 13:22:47 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 3 Sep 2002 10:22:47 -0700 (PDT) Subject: Linux Meetup - Tonight Message-ID: <20020903172247.11839.qmail@web12805.mail.yahoo.com> Hello all, Tonight is the NYC Linux Meetup at 8:00pm at d.b.a (a bar on 1st Avenue). I've never been, but will attend tonight. Details are available at http://linux.meetup.com. See you there, Hans __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From mogmios at mlug.missouri.edu Tue Sep 3 13:59:15 2002 From: mogmios at mlug.missouri.edu (Michael) Date: Tue, 3 Sep 2002 12:59:15 -0500 (CDT) Subject: [nycphp-talk] Paging through large result sets In-Reply-To: <200208291405.g7TE5RE7000837@parsec.nyphp.org> Message-ID: My strategy is typically to have a HEAP table that I can dump the results in all tied to a search id (microtime hashed into a nice string) and then each time you pass in that search id, your starting point in the search, and the number of results you want and as yous ay use LIMIT to control which results you get back. This is pretty simple to implement and is fast no matter how compelx the original query. Another practice that can help is to run a nightly script (cron jobs are your friend) to unnormalize your data into a table that is much quicker to search and doesn't require joins and things like that. Again if you have the memory then consider making the table a HEAP so that it sits in memory and is quicker to search. Since this type of data is regenerated from other data it doesn't matter if you were to lose it unexpectedly. :) Don't dream it. Be it. ;):):-):):-):):-)8') Michael McGlothlin http://kavlon.org/projects/ On Thu, 29 Aug 2002, Mike Myers wrote: > > First: I am a newcomer to MySQL and PHP. So I will be asking many newbie > questions, which I hope is not a drag! > > Environ: Macintosh G4 running OSX, MySQL and PHP installations provided by > the inimitable Marc Liyanage. Webserver is Apache. > > Experience: Proficient with UserLand Frontier scripting and webserving; > moderate experience with perl and javascript. PHP looks pretty > straightforward. > > I have already built a few MySQL databases from scratch, so I have some > experience with the mysql client, mysqladmin, and mysqlimport. Lately I have > also been using the web-based frontend phpMyAdmin. > > ---- > > What are the implementation strategies for allowing a user to page through a > result set that is too large to view in its entirety? > > I see that for simple queries (eg. 1 table or 1 join), the LIMIT statement > is the easy solution, which entails re-running the SQL query as the user > browses. > > But what if the query has multiple joins? It seems inefficient to re-run the > query each time. If I want to cache the original result in a new MySQL > table, then I have to manage that on a per-user basis. This implies using > cookies or session ID to track the user. > > This also suggests I need to code a separate process that periodically drops > these temporary result tables after a defined time has passed. Thus, I need > to continually track the time of last access to each temp table. That data > could go in another MySQL table, or a file of my own convention. > > Whew! There are probably other aspects of this arrangement that require > management code. > > Am I on the right track here, or am I making it harder than it needs to be? > > -- mike myers > > > From zala007 at hotmail.com Tue Sep 3 14:08:50 2002 From: zala007 at hotmail.com (Anirudh Zala) Date: Tue, 03 Sep 2002 18:08:50 +0000 Subject: [nycphp-talk] PHP Form handling with mutipart/form-data Message-ID: Hey phil U can use that file handle same as in mulitipart for data. But for file uploading u can also get many other file varibales.. like $file_name, $file_type, $file_size which are diff atributes of your file var called "$file" And u must pass a hidden var..called to tell php that how much file size u r going to upload.. Thanks Anirudh Zala >From: "Phil Powell" >Reply-To: talk at nyphp.org >To: NYPHP Talk >Subject: [nycphp-talk] PHP Form handling with mutipart/form-data >Date: Tue, 3 Sep 2002 03:19:59 -0400 >Received: from mc4-f18.law16.hotmail.com ([65.54.237.153]) by >mc4-s18.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 3 Sep >2002 00:30:58 -0700 >Received: from parsec.nyphp.org ([66.250.54.138]) by >mc4-f18.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 3 Sep >2002 00:30:40 -0700 >Received: from nyphp.org (parsec.nyphp.org [66.250.54.138])by >parsec.nyphp.org (8.12.3/8.12.3) with ESMTP id g837JxGb011552;Tue, 3 Sep >2002 03:19:59 -0400 (EDT)(envelope-from listmaster at nyphp.org) >Message-Id: <200209030719.g837JxGb011552 at parsec.nyphp.org> >X-Paralist-Archived: > >X-List-Software: Paralist 0.6 >List-ID: >List-Owner: >List-Archive: >List-Subscribe: >List-Unsubscribe: >Organization: New York PHP >X-Mailer: Paramail 0.5 >Return-Path: listmaster at nyphp.org >X-OriginalArrivalTime: 03 Sep 2002 07:30:40.0765 (UTC) >FILETIME=[CE268AD0:01C2531B] > >I know that PHP uses $HTTP_FORM_VARS associative array variable (or $FORM >too I think I forget), however, can PHP use these variables if the form >submitted was of type multipart/form-data? > >E.g. > >
>.. > >.. >
> >How would PHP handle a form such as this, where you would be uploading >files? > >Phil >----- Original Message ----- >From: "Donald J. Organ IV" >To: "NYPHP Talk" >Sent: Monday, September 02, 2002 10:39 PM >Subject: [nycphp-talk] Current weeks's dates > > > > Is there any way that anyone can think of to get a set of dates sun-sat >for a given date? > > > > > > > > _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From ian at plusfour.org Tue Sep 3 14:34:58 2002 From: ian at plusfour.org (ian forsyth) Date: Tue, 03 Sep 2002 14:34:58 -0400 Subject: upgrading to mysql 4 Message-ID: <3D7500D2.6020501@plusfour.org> When upgrading to mysql 4 from 3.23.49.. do i have to recompile php? I have checked out this link http://www.mysql.com/doc/en/Upgrading-from-3.23.html.. I noticed some concerns on the mysql upgrade page about upgrading via rpm under redhat 7.2. Would it be better to just unistall the rpm, then compile, and install from the source? Also we are using full text searching.. to do so with 4, and use boolean searches would I have to rebuild all the tables, even if all our curent table types are MyISAM..? We figure its a good idea to install mysql max, are there any concerns going from 3.23.49 to 4.0.3 max? Regards Ian From evan.heller at alum.rpi.edu Tue Sep 3 16:13:41 2002 From: evan.heller at alum.rpi.edu (evan heller) Date: Tue, 03 Sep 2002 16:13:41 -0400 Subject: Apache 2.0 and mod_php Message-ID: <3D7517F5.68A2292B@alum.rpi.edu> Has anyone gotten the latest version of php to work with Apache 2? Or, does anyone know when PHP 4.2.3 will be out. I'm on a windows box so I can't recompile apache or php but I'd like to use the module version of php rather than the cgi since I get more features to work with. -Evan -- Evan Heller evan.heller at alum.rpi.edu From zaunere at yahoo.com Tue Sep 3 16:16:46 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 3 Sep 2002 13:16:46 -0700 (PDT) Subject: [nycphp-talk] upgrading to mysql 4 In-Reply-To: <200209031834.g83IYUGb012420@parsec.nyphp.org> Message-ID: <20020903201646.64077.qmail@web12803.mail.yahoo.com> --- ian forsyth wrote: > When upgrading to mysql 4 from 3.23.49.. do i have to recompile php? > > I have checked out this link > http://www.mysql.com/doc/en/Upgrading-from-3.23.html.. > > I noticed some concerns on the mysql upgrade page about upgrading via > > rpm under redhat 7.2. Would it be better to just unistall the rpm, > then > compile, and install from the source? There are some known problems with the compiler included in RH. (http://www.mysql.com/downloads/mysql-4.0.html). And for production level servers on Linux I always use MySQL's supplied binary (although I've compiled a 3.x server on FreeBSD and have had no problems - then again I did the same on a RH 6.2 server and had no problems, but Linux [RH 7.x] makes me nervous). > > Also we are using full text searching.. to do so with 4, and use > boolean > searches would I have to rebuild all the tables, even if all our > curent > table types are MyISAM..? As noted in the 4.0 upgrade link, new fulltext indexes are used, so you'll need to rebuild them. Unless it's a huge DB, I always feel better recreating/importing the whole tables - you never know what tiny differences there are in the new handler code. > We figure its a good idea to install mysql max, are there any > concerns going from 3.23.49 to 4.0.3 max? I've heard/seen 4 to be pretty good, but I'm always paranoid about a major version increase like that, so backup, backup and rebuild. :) Hans 'Paranoid' Z. __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From zaunere at yahoo.com Tue Sep 3 16:28:07 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 3 Sep 2002 13:28:07 -0700 (PDT) Subject: [nycphp-talk] Current weeks's dates In-Reply-To: <200209030239.g832dBGb010985@parsec.nyphp.org> Message-ID: <20020903202807.76407.qmail@web12804.mail.yahoo.com> --- "Donald J. Organ IV" wrote: > Is there any way that anyone can think of to get a set of dates > sun-sat for a given date? I wrote this ages ago and haven't checked it in just as long, but no one has complained about the libraries that use it, so it must work, right? define('_SECSINDAY', 86400); define('_SECSINWEEK', 604800); /*** returns first and last second of surrounding calendar week ***/ function time2week( $timestamp ) { $tmp = date('G:i:s:w',$timestamp); $tmp = explode(':',$tmp); $tmp = (($tmp[0]*60*60)+($tmp[1]*60)+($tmp[2]))+($tmp[3]*_SECSINDAY); return array($timestamp-$tmp,($timestamp-$tmp)+(_SECSINWEEK-1)); } Hans 'Hoping-No-One-Finds-A-Bug' Z. __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From jhise at linuxforbusiness.org Tue Sep 3 17:15:04 2002 From: jhise at linuxforbusiness.org (Jeremy Hise) Date: Tue, 3 Sep 2002 17:15:04 -0400 Subject: PHP Windows Message-ID: <20020903171504.5d67125e.jhise@linuxforbusiness.org> Hi All: I am uploading a file in PHP on Windows2k (via HTTP Uploads), and when I go to copy the file, I get the error: Warning: Unable to open C:WINNTTEMPphp1D.tmp Doesn't it seem as though the "\\"s are being taken out? Does anyone have any pointers? Thanks! jeremy From keremtuzemen at hotmail.com Tue Sep 3 17:45:25 2002 From: keremtuzemen at hotmail.com (Kerem Tuzemen) Date: Tue, 3 Sep 2002 17:45:25 -0400 Subject: [nycphp-talk] PHP Windows References: <200209032116.g83LGvGb013228@parsec.nyphp.org> Message-ID: Jeremy, Check this one out, it's working on win2k server: function uploadfile($filehandle,$filename) { global $fileuploaddir; if (is_uploaded_file($filehandle)) { $result=move_uploaded_file($filehandle, "$fileuploaddir".$filename); } return $result; } You are probably trying to use filename instead of file handle, I hope above code helps. Kerem Tuzemen ----- Original Message ----- From: "Jeremy Hise" To: "NYPHP Talk" Sent: Tuesday, September 03, 2002 5:16 PM Subject: [nycphp-talk] PHP Windows > Hi All: > > I am uploading a file in PHP on Windows2k (via HTTP Uploads), and when I go to copy the file, I get the error: > > Warning: Unable to open C:WINNTTEMPphp1D.tmp > > Doesn't it seem as though the "\\"s are being taken out? > > Does anyone have any pointers? > > Thanks! > > jeremy > From tommyo at dolemite.org Tue Sep 3 18:17:14 2002 From: tommyo at dolemite.org (Tom O'Neill) Date: Tue, 3 Sep 2002 17:17:14 -0500 Subject: Off topic... Problems with Apache... Message-ID: <005e01c25397$a82131b0$0a01010a@TOMLINUX> Hello Everyone, Sorry about the off topic question but I am having a problem with my webserver and I know that there are alot of experienced admins out there that might be able to help. I am running Redhat 7.3 with Apache compiled from source. It runs on a server that also acts as a firewall/gateway for our LAN. From within the LAN there is no problem accessing the webserver. However users outside the LAN have trouble from time to time. Their browsers will not open any urls on this server. At the times when the browser will not open the site the users are able to ping the same url's successfully. And then minutes later after trying again the browser will open the websites. Does anyone know why Apache might not be responding to requests? The primary URL in question is http://www.dolemite.org Thanks for your time! -Tom Thomas O'Neill tommyo at dolemite.org 1222 1/2 West 5th Winona, MN 55987 home: 507-454-2798 mobile: 507-303-9202 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: dolemite.gif Type: image/gif Size: 666 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Thomas Casey O'Neill.vcf Type: text/x-vcard Size: 585 bytes Desc: not available URL: From tommyo at dolemite.org Tue Sep 3 18:25:07 2002 From: tommyo at dolemite.org (Tom O'Neill) Date: Tue, 3 Sep 2002 17:25:07 -0500 Subject: Off topic... Problems with Apache Message-ID: <006e01c25398$c23e9190$0a01010a@TOMLINUX> Hello Everyone, Sorry about the off topic question but I am having a problem with my webserver and I know that there are alot of experienced admins out there that might be able to help. I am running Redhat 7.3 with Apache compiled from source. It runs on a server that also acts as a firewall/gateway for our LAN. From within the LAN there is no problem accessing the webserver. However users outside the LAN have trouble from time to time. Their browsers will not open any urls on this server. At the times when the browser will not open the site the users are able to ping the same url's successfully. And then minutes later after trying again the browser will open the websites. Does anyone know why Apache might not be responding to requests? The primary URL in question is http://www.dolemite.org Thanks for your time! -Tom Thomas O'Neill tommyo at dolemite.org 1222 1/2 West 5th Winona, MN 55987 home: 507-454-2798 mobile: 507-303-9202 -------------- next part -------------- A non-text attachment was scrubbed... Name: Thomas Casey O'Neill.vcf Type: text/x-vcard Size: 585 bytes Desc: not available URL: From danielc at analysisandsolutions.com Tue Sep 3 22:46:08 2002 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Tue, 3 Sep 2002 22:46:08 -0400 Subject: [nycphp-talk] PHP Windows In-Reply-To: <200209032116.g83LGvGb013228@parsec.nyphp.org> References: <200209032116.g83LGvGb013228@parsec.nyphp.org> Message-ID: <20020904024608.GA10461@panix.com> On Tue, Sep 03, 2002 at 05:16:57PM -0400, Jeremy Hise wrote: > > Warning: Unable to open C:WINNTTEMPphp1D.tmp > Doesn't it seem as though the "\\"s are being taken out? "\\" is an escape notation, so doesn't show up in the final string, unless you escape it. Use "/" or "\\\\" as your directory separator. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution 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 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From georgenatalino at yahoo.com Wed Sep 4 07:50:01 2002 From: georgenatalino at yahoo.com (George Natalino) Date: Wed, 04 Sep 2002 07:50:01 -0400 Subject: NYJavaSIG Meeting: Best Practices for Message-Driven Beans Message-ID: <3D75F369.E7513898@yahoo.com> An HTML attachment was scrubbed... URL: From georgenatalino at yahoo.com Wed Sep 4 09:06:55 2002 From: georgenatalino at yahoo.com (George Natalino) Date: Wed, 04 Sep 2002 09:06:55 -0400 Subject: NYJavaSIG Meeting: Best Practices for Message-Driven Beans Message-ID: <4.3.2.7.2.20020904090300.00b62c80@pop3.norton.antivirus> An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From mike at tkosys.com Wed Sep 4 13:09:36 2002 From: mike at tkosys.com (Mike FN) Date: Wed, 4 Sep 2002 10:09:36 -0700 Subject: [nycphp-talk] NYJavaSIG Meeting: Best Practices for Message-Driven Beans In-Reply-To: <200209041304.g84D4MGb014495@parsec.nyphp.org> Message-ID: <001a01c25435$dc51bf60$cb01a8c0@mike> How do I remove myself from this mailing list please? Thanks. -----Original Message----- From: George Natalino [mailto:georgenatalino at yahoo.com] Sent: Wednesday, September 04, 2002 6:04 AM To: NYPHP Talk Subject: [nycphp-talk] NYJavaSIG Meeting: Best Practices for Message-Driven Beans This message contained 1 file(s) and is available at http://nyphp.org/list/paralist_archive.php?L_mid=1049 From peter at panvox.net Wed Sep 4 11:01:34 2002 From: peter at panvox.net (Peter Simard) Date: Wed, 4 Sep 2002 11:01:34 -0400 Subject: Need ideas on implementing this feature In-Reply-To: <200209041413.g84EDlGb014570@parsec.nyphp.org> References: <200209041413.g84EDlGb014570@parsec.nyphp.org> Message-ID: <13844456093.20020904110134@panvox.net> Here's the scenario: In selecting an ingredient to include in a recipe the user makes the choice, then chooses the unit of measure ( Hamburger 3 ounce ), however, some ingredients have a custom conversion unit available to them which is a user defined unit of measure, and other ingredients don't. Problem: When loading the select boxes with ingredients, the user has yet to choose an ingredient, so determining if an ingredient has a custom conversion associated with it is unknown. My thought here is to write/load a JavaScript array with the all the custom conversions and their associated ingredients. When an ingredient is selected a function determines if that ingredient has a custom conversion associated with it, if yes, then the unit of measures available to that ingredient in the next select box are updated to reflect the fact that the selected ingredient has custom conversion munits to choose from in addition to the standard measurements. So mixing the JS and the PHP, is this a sound method, or would one recommend doing it all server-side? If the recommendation is server-side I envision lots of page updates in the process. FYI: I know my client will have JavaScript enabled. Any thoughts? Thanks, Pete From cahoyos at us.ibm.com Wed Sep 4 11:05:51 2002 From: cahoyos at us.ibm.com (Carlos A Hoyos) Date: Wed, 4 Sep 2002 11:05:51 -0400 Subject: [nycphp-talk] PHP Windows Message-ID: check your "upload_tmp_dir" variable on php.ini, and make sure you're escaping the "\\" character, that is make it "\\\\" if inside a string. Jeremy Hise siness.org> cc: Subject: [nycphp-talk] PHP Windows 09/03/2002 05:16 PM Please respond to talk Hi All: I am uploading a file in PHP on Windows2k (via HTTP Uploads), and when I go to copy the file, I get the error: Warning: Unable to open C:WINNTTEMPphp1D.tmp Doesn't it seem as though the "\\"s are being taken out? Does anyone have any pointers? Thanks! jeremy From patterson at computer.org Wed Sep 4 11:28:33 2002 From: patterson at computer.org (Bill Patterson) Date: Wed, 04 Sep 2002 11:28:33 -0400 Subject: [nycphp-talk] Need ideas on implementing this feature References: <200209041502.g84F26Gb014648@parsec.nyphp.org> Message-ID: <3D7626A0.287C8A1A@computer.org> It seems that the trade off to consider is whether the conversion information is so voluminous to download that it would cause more problems than the multiple page updates if you use PHP for the conversion information. If it is relatively simple and easily managed in JavaScript, I'd go that way. Bill Peter Simard wrote: > Here's the scenario: > > In selecting an ingredient to include in a recipe the user makes the > choice, then chooses the unit of measure ( Hamburger 3 ounce ), however, > some ingredients have a custom conversion unit available to them which is > a user defined unit of measure, and other ingredients don't. > > Problem: When loading the select boxes with ingredients, the user has > yet to choose an ingredient, so determining if an ingredient has a custom > conversion associated with it is unknown. > > My thought here is to write/load a JavaScript array with the all the > custom conversions and their associated ingredients. When an ingredient > is selected a function determines if that ingredient has a custom > conversion associated with it, if yes, then the unit of measures > available to that ingredient in the next select box are updated to > reflect the fact that the selected ingredient has custom conversion > munits to choose from in addition to the standard measurements. > > So mixing the JS and the PHP, is this a sound method, or would one > recommend doing it all server-side? If the recommendation is server-side > I envision lots of page updates in the process. > > FYI: I know my client will have JavaScript enabled. > > Any thoughts? > > Thanks, Pete From brent at landover.com Wed Sep 4 11:41:40 2002 From: brent at landover.com (Brent Baisley) Date: Wed, 4 Sep 2002 11:41:40 -0400 Subject: [nycphp-talk] Need ideas on implementing this feature In-Reply-To: <200209041502.g84F26Gb014648@parsec.nyphp.org> Message-ID: I assume you have Javascript changing a popup menu to indicate the valid measurements. For those ingredients that can have a "custom" measurement, I would add "Custom" as the last option in the popup. You can than add an OnChange handler to that popup which checks if the "Custom" option was selected. If custom was specified, you can generated a "popup" window that will allow them to enter the custom value. Using a popup window would allow you to use php to query for only the valid items, rather than downloading all of the possible options when perhaps none of them would be used. Back on the main page you can have a hidden field that gets updated from the popup window. The hidden field would contain the custom value specified. The problem here is to actually display the custom value on the main page. Perhaps DHTML or CSS could solve this problem. This scenario mixes the server-side and client-side techniques, using the whichever is best for the situation. On Wednesday, September 4, 2002, at 11:02 AM, Peter Simard wrote: > Here's the scenario: > > In selecting an ingredient to include in a recipe the user makes the > choice, then chooses the unit of measure ( Hamburger 3 ounce ), however, > some ingredients have a custom conversion unit available to them which > is > a user defined unit of measure, and other ingredients don't. > > Problem: When loading the select boxes with ingredients, the user has > yet to choose an ingredient, so determining if an ingredient has a > custom > conversion associated with it is unknown. > > My thought here is to write/load a JavaScript array with the all the > custom conversions and their associated ingredients. When an ingredient > is selected a function determines if that ingredient has a custom > conversion associated with it, if yes, then the unit of measures > available to that ingredient in the next select box are updated to > reflect the fact that the selected ingredient has custom conversion > munits to choose from in addition to the standard measurements. > > So mixing the JS and the PHP, is this a sound method, or would one > recommend doing it all server-side? If the recommendation is > server-side > I envision lots of page updates in the process. > > FYI: I know my client will have JavaScript enabled. > > Any thoughts? > > Thanks, Pete > > -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 From jim at bizcomputinginc.com Wed Sep 4 12:01:01 2002 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Wed, 4 Sep 2002 12:01:01 -0400 Subject: [nycphp-talk] Need ideas on implementing this feature References: <200209041524.g84FOfGb014680@parsec.nyphp.org> Message-ID: <047601c2542c$4a72ffe0$6401a8c0@Notebook> A method I use which minimizes the JavaScript as well as minimizes the required page loads is to use an iframe for the conversion info. When the user chooses the ingredient it refreshes the iframe with the selected ingredient. The iframe can then hold the info & choices allowable for that ingredient. You need javascript to trigger the iframe refresh, and javascript to grab user choices from the iframe and put them into your base form as part of submit. Jim ----- Original Message ----- From: "Bill Patterson" To: "NYPHP Talk" Sent: Wednesday, September 04, 2002 11:24 AM Subject: Re: [nycphp-talk] Need ideas on implementing this feature > It seems that the trade off to consider is whether the conversion information > is so voluminous to download that it would cause more problems than the > multiple page updates if you use PHP for the conversion information. If it > is relatively simple and easily managed in JavaScript, I'd go that way. > > Bill > > Peter Simard wrote: > > > Here's the scenario: > > > > In selecting an ingredient to include in a recipe the user makes the > > choice, then chooses the unit of measure ( Hamburger 3 ounce ), however, > > some ingredients have a custom conversion unit available to them which is > > a user defined unit of measure, and other ingredients don't. > > > > Problem: When loading the select boxes with ingredients, the user has > > yet to choose an ingredient, so determining if an ingredient has a custom > > conversion associated with it is unknown. > > > > My thought here is to write/load a JavaScript array with the all the > > custom conversions and their associated ingredients. When an ingredient > > is selected a function determines if that ingredient has a custom > > conversion associated with it, if yes, then the unit of measures > > available to that ingredient in the next select box are updated to > > reflect the fact that the selected ingredient has custom conversion > > munits to choose from in addition to the standard measurements. > > > > So mixing the JS and the PHP, is this a sound method, or would one > > recommend doing it all server-side? If the recommendation is server-side > > I envision lots of page updates in the process. > > > > FYI: I know my client will have JavaScript enabled. > > > > Any thoughts? > > > > Thanks, Pete > > > > > From cahoyos at us.ibm.com Wed Sep 4 12:40:34 2002 From: cahoyos at us.ibm.com (Carlos A Hoyos) Date: Wed, 4 Sep 2002 12:40:34 -0400 Subject: [nycphp-talk] Need ideas on implementing this feature Message-ID: When I first saw the chainedselectors class that builds two drop downs, with the second one repopulating based on the first choice, I was trilled. http://www.zend.com/zend/tut/drop-down.php Later, I found a couple of things that could be definitively improved in the javascript (the blank spaces at the end, and all the code is not very effective). One of my side projects (whenever corporate life gives me a break), is to rewrite this class. Check it out and see if that's what you need... maybe this will give me the incentive :) Peter Simard > cc: Subject: [nycphp-talk] Need ideas on implementing this feature 09/04/2002 11:02 AM Please respond to talk Here's the scenario: In selecting an ingredient to include in a recipe the user makes the choice, then chooses the unit of measure ( Hamburger 3 ounce ), however, some ingredients have a custom conversion unit available to them which is a user defined unit of measure, and other ingredients don't. Problem: When loading the select boxes with ingredients, the user has yet to choose an ingredient, so determining if an ingredient has a custom conversion associated with it is unknown. My thought here is to write/load a JavaScript array with the all the custom conversions and their associated ingredients. When an ingredient is selected a function determines if that ingredient has a custom conversion associated with it, if yes, then the unit of measures available to that ingredient in the next select box are updated to reflect the fact that the selected ingredient has custom conversion munits to choose from in addition to the standard measurements. So mixing the JS and the PHP, is this a sound method, or would one recommend doing it all server-side? If the recommendation is server-side I envision lots of page updates in the process. FYI: I know my client will have JavaScript enabled. Any thoughts? Thanks, Pete From myersm at optonline.net Wed Sep 4 16:13:03 2002 From: myersm at optonline.net (Mike Myers) Date: Wed, 04 Sep 2002 16:13:03 -0400 Subject: Templating and design strategies Message-ID: What are some good ways to manage hierarchical templates when using Apache/MySQL/PHP? I am accustomed to Frontier's approach, where a site and its sub-directories are contained within a hierarchical object database. This made it very natural to have layout and boilerplate items which apply selectively, depending upon where a given web page exists in the hierarchy, or what server directives are present. Conditionally grabbing something from the object database was very easy to do. The bulk of the page rendering involved replacement of placeholder strings with database values. OTOH, I felt cramped using Frontier, because I had often had to figure out how to work within the framework to achieve customized effects. Using MySQL to store such components seems like overkill. Do most php developers use a file-based strategy coupled with include, require, or fileio methods.? Another option is Dreamweaver MX, which has a template framework. It seems to have a crude system for conditional components ('optional region'). I have experimented a bit with Dreamweaver's web application framework for PHP/MySQL, and my first inclination is to NOT become overly dependent on the Dreamweaver way of doing things. Moving data from a MySQL table into a basic HTML table is easy, but doing things that break the simple mold might get cumbersome. Granted, I've only tinkered with it for a few days. Are there some "common practices" out there, or perhaps website frameworks for PHP that don't have a 6 month learning curve? Basic Example: The layout of the info flowing through the different "topics" below is roughly similar. But the specific navigation bars, jump menus, and other elements of the page margins are specific to each topic. The customized aspects could be in a database or defined within preference files located at various levels of the site. site topic_1 category_1 category_2 category_3 topic_2 category_1 category_2 Not such a great example, I hope people get my point. From zaunere at yahoo.com Wed Sep 4 16:55:00 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 4 Sep 2002 13:55:00 -0700 (PDT) Subject: PHP Meetup - Tomorrow Night! Message-ID: <20020904205500.93493.qmail@web12804.mail.yahoo.com> Tomorrow night (9/5 at 7:00pm) is the NYC PHP Meetup at The Remote Lounge (right around CBGB's on the Bowery). I've been to the bar before but never to the PHP Meetup, although last night's Linux Meetup was a great and informal get-together. Details are available at http://php.meetup.com or let me know if you need directions. See you there, Hans __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From prutwo at onebox.com Wed Sep 4 16:56:09 2002 From: prutwo at onebox.com (ophir prusak) Date: Wed, 04 Sep 2002 13:56:09 -0700 Subject: [nycphp-talk] Templating and design strategies Message-ID: <20020904205609.EVCB1160.mta08.onebox.com@onebox.com> You might want to check out http://smarty.php.net/ After doing some research on PHP temlate systems, it seems to be the best one out there. ---- Ophir Prusak Internet developer prutwo at onebox.com | http://www.prusak.com/ ---- Mike Myers wrote: > > What are some good ways to manage hierarchical templates when using > Apache/MySQL/PHP? > > I am accustomed to Frontier's approach, where a site and its sub-directories > are contained within a hierarchical object database. This made it very > natural to have layout and boilerplate items which apply selectively, > depending upon where a given web page exists in the hierarchy, or what > server directives are present. Conditionally grabbing something from > the > object database was very easy to do. The bulk of the page rendering > involved > replacement of placeholder strings with database values. > > OTOH, I felt cramped using Frontier, because I had often had to figure > out > how to work within the framework to achieve customized effects. > > Using MySQL to store such components seems like overkill. Do most php > developers use a file-based strategy coupled with include, require, > or > fileio methods.? > > Another option is Dreamweaver MX, which has a template framework. It > seems > to have a crude system for conditional components ('optional region'). > I > have experimented a bit with Dreamweaver's web application framework > for > PHP/MySQL, and my first inclination is to NOT become overly dependent > on the > Dreamweaver way of doing things. Moving data from a MySQL table into > a basic > HTML table is easy, but doing things that break the simple mold might > get > cumbersome. Granted, I've only tinkered with it for a few days. > > Are there some "common practices" out there, or perhaps website frameworks > for PHP that don't have a 6 month learning curve? > > Basic Example: > > The layout of the info flowing through the different "topics" below > is > roughly similar. But the specific navigation bars, jump menus, and > other > elements of the page margins are specific to each topic. The customized > aspects could be in a database or defined within preference files located > at > various levels of the site. > > site > topic_1 > category_1 > category_2 > category_3 > topic_2 > category_1 > category_2 > > Not such a great example, I hope people get my point. > > > > --- Unsubscribe at http://nyphp.org/list --- > > > From zaunere at yahoo.com Wed Sep 4 18:34:55 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 4 Sep 2002 15:34:55 -0700 (PDT) Subject: Virtual Directory Support? Message-ID: <20020904223455.93031.qmail@web12803.mail.yahoo.com> I looked at the output of phpinfo() for what's probably the 1000000th time in my life, and noticed a new directive (4.2.2/1.3.26). Right up at the top, I saw "Virtual Directory Support" and noticed it was disabled. I've googled left and right for what it is, but can't locate anything. I've also checked the compile time options (which is what it seems like it would be) but to no avail. My best guess so far is it's part of the suEXEC Apache module (I'm pretty sure it's an Apache thing, rather than PHP). Any clues would be great, Hans 'Clueless' Z. __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From sharpwit at hotmail.com Wed Sep 4 19:47:02 2002 From: sharpwit at hotmail.com (krisjanis gale) Date: Wed, 04 Sep 2002 23:47:02 +0000 Subject: [nycphp-talk] Virtual Directory Support? Message-ID: maybe it's a way to dynamically set and use directory/path aliases? >From: Hans Zaunere >Reply-To: talk at nyphp.org >To: NYPHP Talk >Subject: [nycphp-talk] Virtual Directory Support? >Date: Wed, 4 Sep 2002 18:34:59 -0400 > >I looked at the output of phpinfo() for what's probably the 1000000th >time in my life, and noticed a new directive (4.2.2/1.3.26). Right up >at the top, I saw "Virtual Directory Support" and noticed it was >disabled. > >I've googled left and right for what it is, but can't locate anything. >I've also checked the compile time options (which is what it seems like >it would be) but to no avail. My best guess so far is it's part of the >suEXEC Apache module (I'm pretty sure it's an Apache thing, rather than >PHP). > >Any clues would be great, > >Hans 'Clueless' Z. > > > >__________________________________________________ >Do You Yahoo!? >Yahoo! Finance - Get real-time stock quotes >http://finance.yahoo.com > > >--- Unsubscribe at http://nyphp.org/list --- (kris)janis p. gale sharpwit at hotmail.com cell:(201)637-3399 home:(201)386-5470 _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From tfreedma at ubspw.com Thu Sep 5 09:53:58 2002 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Thu, 5 Sep 2002 09:53:58 -0400 Subject: [nycphp-talk] Need ideas on implementing this feature Message-ID: I implemented a set of select lists exactly the way you described, and it seems to work very well, especially in a controlled environment. I build an array with the names and values of the second list, as well as the associated value from the primary list. Then, when the user selects something from List A, you grab the value, and create an option in List B for each element in the array where the associated value matches. Even with an array of 50+ items, it loads very quickly. -----Original Message----- From: Peter Simard [mailto:peter at panvox.net] Sent: Wednesday, September 04, 2002 11:02 AM To: NYPHP Talk Subject: [nycphp-talk] Need ideas on implementing this feature Here's the scenario: In selecting an ingredient to include in a recipe the user makes the choice, then chooses the unit of measure ( Hamburger 3 ounce ), however, some ingredients have a custom conversion unit available to them which is a user defined unit of measure, and other ingredients don't. Problem: When loading the select boxes with ingredients, the user has yet to choose an ingredient, so determining if an ingredient has a custom conversion associated with it is unknown. My thought here is to write/load a JavaScript array with the all the custom conversions and their associated ingredients. When an ingredient is selected a function determines if that ingredient has a custom conversion associated with it, if yes, then the unit of measures available to that ingredient in the next select box are updated to reflect the fact that the selected ingredient has custom conversion munits to choose from in addition to the standard measurements. So mixing the JS and the PHP, is this a sound method, or would one recommend doing it all server-side? If the recommendation is server-side I envision lots of page updates in the process. FYI: I know my client will have JavaScript enabled. Any thoughts? Thanks, Pete From peter at panvox.net Thu Sep 5 11:22:03 2002 From: peter at panvox.net (Peter Simard) Date: Thu, 5 Sep 2002 11:22:03 -0400 Subject: [nycphp-talk] Need ideas on implementing this feature In-Reply-To: <200209051354.g85DsJV8017610@parsec.nyphp.org> References: <200209051354.g85DsJV8017610@parsec.nyphp.org> Message-ID: <6110185718.20020905112203@panvox.net> Hello Tom, That's the route I'm working throuhg right now, however, the Javascript is giving me headaches. i hate the way JS does error messages! Have a peek at the function I'm writing to be called on each SELECT onChange: If you have any suggestions as to improvement please feel free Pete *************** function addToSelect(arr) { var oOption; var len = document.forms[1].elements[0].options.length; for(var t = 0; t < len; t++) { if(document.forms[1].elements[0].options[t].selected == true ) { var text = document.forms[1].elements[0].options[t].value; text = text.split(":"); alert(text[1]); alert('Option index is: ' + document.forms[1].elements[0].options[t].index ); alert('Option value is ' + document.forms[1].elements[0].options[t].value); for(var j = 0; j < arr.length; ++j) { if(text[1] == arr[j][0]) { oOption = new Option(arr[i], arr[i]); //alert(oOption); document.forms[1].elements[0].add(oOption); alert(oOption.text + ' is the text\ ' + oOption.value + ' is the value.'); } } } } } Regards. -- Peter mailto:peter at panvox.net Mail management by: The Bat! 1.61 From fb at intldef.org Thu Sep 5 12:18:05 2002 From: fb at intldef.org (FB`) Date: Thu, 5 Sep 2002 12:18:05 -0400 Subject: Articles, books, other references - content management References: <200209042234.g84MYxGb015842@parsec.nyphp.org> Message-ID: <005401c254f7$d0a4ed00$1901a8c0@ybsweb> Hi. I'm looking for some material on building fairly complex content management systems with PHP. Not looking for PHP reference specifically, much more of a nice in-depth analysis of database structures, granularity, administration features, etc. Any information would be a help. Thanks. FB` From nyphp at altunergil.com Thu Sep 5 12:35:35 2002 From: nyphp at altunergil.com (Oktay Altunergil) Date: Thu, 5 Sep 2002 12:35:35 -0400 Subject: [nycphp-talk] Articles, books, other references - content management In-Reply-To: <200209051613.g85GDgV8017781@parsec.nyphp.org> References: <200209051613.g85GDgV8017781@parsec.nyphp.org> Message-ID: <20020905123535.602b062f.nyphp@altunergil.com> Most open source CMS systems have their Specs and APIs documented. That would make a nice starting point. oktay On Thu, 05 Sep 2002 12:13:42 -0400 FB` wrote: > Hi. > > I'm looking for some material on building fairly complex content management > systems with PHP. > Not looking for PHP reference specifically, much more of a nice in-depth > analysis of database structures, granularity, administration features, etc. > > Any information would be a help. Thanks. > > FB` > > > > --- Unsubscribe at http://nyphp.org/list --- > > From sharpwit at hotmail.com Thu Sep 5 12:40:43 2002 From: sharpwit at hotmail.com ((kris)janis p gale) Date: Thu, 5 Sep 2002 12:40:43 -0400 Subject: [nycphp-talk] Need ideas on implementing this feature References: <200209051522.g85FMJV8017699@parsec.nyphp.org> Message-ID: for better debugging load the page up in netscape and then open the javascript console by typing javascript: as the location... gives far better detail about syntax and specific problems with your js then Inshmernet Exploiter ever will. ----- Original Message ----- From: Peter Simard To: NYPHP Talk Sent: Thursday, September 05, 2002 11:22 AM Subject: Re[2]: [nycphp-talk] Need ideas on implementing this feature > Hello Tom, > > That's the route I'm working throuhg right now, however, the > Javascript is giving me headaches. i hate the way JS does error > messages! > > Have a peek at the function I'm writing to be called on each SELECT > onChange: > > If you have any suggestions as to improvement please feel free > > Pete > *************** > function addToSelect(arr) > { > > var oOption; > var len = document.forms[1].elements[0].options.length; > > for(var t = 0; t < len; t++) > { > if(document.forms[1].elements[0].options[t].selected == true ) > { > var text = document.forms[1].elements[0].options[t].value; > text = text.split(":"); > alert(text[1]); > alert('Option index is: ' + document.forms[1].elements[0].options[t].index ); > alert('Option value is ' + document.forms[1].elements[0].options[t].value); > for(var j = 0; j < arr.length; ++j) > { > if(text[1] == arr[j][0]) > { > oOption = new Option(arr[i], arr[i]); > file://alert(oOption); > document.forms[1].elements[0].add(oOption); > alert(oOption.text + ' is the text\ ' + oOption.value + ' is the value.'); > } > } > } > } > } > > Regards. > > -- > > Peter > mailto:peter at panvox.net > > Mail management by: > The Bat! 1.61 > > > > > --- Unsubscribe at http://nyphp.org/list --- > > > From jannino at jannino.com Thu Sep 5 13:39:06 2002 From: jannino at jannino.com (Joseph Annino) Date: Thu, 05 Sep 2002 13:39:06 -0400 Subject: [nycphp-talk] Templating and design strategies In-Reply-To: <200209042015.g84KF1Gb015045@parsec.nyphp.org> Message-ID: I like vlibTemplate which can be found at: http://vlib.activefish.com/ It uses a template syntax very close to the Perl module HTML::Template. What I like about is that it is a very simple limited template language, keeping you from doing things in templates you really should be doing in your code, and so in doing keeps design and logic as separated as possible, making it easier for clients to change their own templates if they so choose. This doesn't make it hard to use, as data is fed into the template using simple associative arrays. You can do loops and things too by either making arrays of arrays, using some convenience methods, or just passing it a database result. It can recursively include other templates, and that works with relative pathnames, so if you set up your directories properly, you can have header information, etc change as you move files around. It also provides subclasses that can provide useful debugging information, or compile and cache the templates for speed. An added plus for me is being able to use the sample templates in Perl or PHP. I use both a lot, often in the same project, as each language has its own strengths. On 9/4/02 4:15 PM, "Mike Myers" wrote: > > What are some good ways to manage hierarchical templates when using > Apache/MySQL/PHP? > > I am accustomed to Frontier's approach, where a site and its sub-directories > are contained within a hierarchical object database. This made it very > natural to have layout and boilerplate items which apply selectively, > depending upon where a given web page exists in the hierarchy, or what > server directives are present. Conditionally grabbing something from the > object database was very easy to do. The bulk of the page rendering involved > replacement of placeholder strings with database values. > > OTOH, I felt cramped using Frontier, because I had often had to figure out > how to work within the framework to achieve customized effects. > > Using MySQL to store such components seems like overkill. Do most php > developers use a file-based strategy coupled with include, require, or > fileio methods.? > > Another option is Dreamweaver MX, which has a template framework. It seems > to have a crude system for conditional components ('optional region'). I > have experimented a bit with Dreamweaver's web application framework for > PHP/MySQL, and my first inclination is to NOT become overly dependent on the > Dreamweaver way of doing things. Moving data from a MySQL table into a basic > HTML table is easy, but doing things that break the simple mold might get > cumbersome. Granted, I've only tinkered with it for a few days. > > Are there some "common practices" out there, or perhaps website frameworks > for PHP that don't have a 6 month learning curve? > > Basic Example: > > The layout of the info flowing through the different "topics" below is > roughly similar. But the specific navigation bars, jump menus, and other > elements of the page margins are specific to each topic. The customized > aspects could be in a database or defined within preference files located at > various levels of the site. > > site > topic_1 > category_1 > category_2 > category_3 > topic_2 > category_1 > category_2 > > Not such a great example, I hope people get my point. > > > > --- Unsubscribe at http://nyphp.org/list --- > > > From patrick.fee at baesystems.com Thu Sep 5 13:54:13 2002 From: patrick.fee at baesystems.com (Fee, Patrick J) Date: Thu, 05 Sep 2002 13:54:13 -0400 Subject: [nycphp-talk] Articles, books, other references - content mana gement Message-ID: Fil Baumanis, Slightly off topic... But I might suggest you also look at the following open source portal sites. I've found some interesting material by downloading these packages and rummaging through the code and the .sql files. Perhaps that might increase your general CMS knowledge while you search for the books you mention... Check out: http://www.myphpnuke.com/ http://www.phpnuke.org http://www.postnuke.com/ You may already be very familiar with these portals... But there may be some folk out there just getting their feet wet with PHP and mySQL for Content Management, and these sites will really help. Patrick J. Fee Web & Database Manager BAE SYSTEMS 600 Maryland Ave. SW Suite 600 Washington D.C. 20024 Patrick.Fee at BAESYSTEMS.com Tel: (202) 548-3759 Fax: (202) 608-5970 -----Original Message----- From: FB` [mailto:fb at intldef.org] Sent: Thursday, September 05, 2002 12:14 PM To: NYPHP Talk Subject: [nycphp-talk] Articles, books, other references - content management Hi. I'm looking for some material on building fairly complex content management systems with PHP. Not looking for PHP reference specifically, much more of a nice in-depth analysis of database structures, granularity, administration features, etc. Any information would be a help. Thanks. FB` --- Unsubscribe at http://nyphp.org/list --- From zaunere at yahoo.com Thu Sep 5 14:21:59 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 5 Sep 2002 11:21:59 -0700 (PDT) Subject: PHP Meetup Tonight Message-ID: <20020905182159.44695.qmail@web12805.mail.yahoo.com> Hi folks, Just a reminder about tonight's PHP Meetup at 7:00pm at the Remote Lounge. (details at http://php.meetup.com). I've never been to one before, but the venue is pretty cool (especially if you have a voyeuristic fetish). I'm signed up as a host, so I'll try to get there a little early. Also, I'll try to stay by the entrance and with a sign (I'll feel cool, I'm sure). See you there, Hans __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From jeffrey.konikowski at ams.com Thu Sep 5 14:25:28 2002 From: jeffrey.konikowski at ams.com (Jeffrey Konikowski) Date: Thu, 5 Sep 2002 14:25:28 -0400 Subject: [nycphp-talk] PHP Meetup Tonight Message-ID: Does that mean that those of us not in NYC tonight can watch the meeting? Hans Zaunere .com> cc: Subject: [nycphp-talk] PHP Meetup Tonight 09/05/2002 02:22 PM Please respond to talk Hi folks, Just a reminder about tonight's PHP Meetup at 7:00pm at the Remote Lounge. (details at http://php.meetup.com). I've never been to one before, but the venue is pretty cool (especially if you have a voyeuristic fetish). I'm signed up as a host, so I'll try to get there a little early. Also, I'll try to stay by the entrance and with a sign (I'll feel cool, I'm sure). See you there, Hans __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com --- Unsubscribe at http://nyphp.org/list --- From patterson at computer.org Thu Sep 5 14:56:59 2002 From: patterson at computer.org (Bill Patterson) Date: Thu, 05 Sep 2002 14:56:59 -0400 Subject: Oracle and gif storage References: <200209051822.g85IMAV8017986@parsec.nyphp.org> Message-ID: <3D77A8FB.488640C1@computer.org> Has anyone found a practical way to store .GIF files in Oracle (8i) using PHP? If so, please get in touch. I am trying to do it and keep running into one problem or another. Thanks. Bill Patterson From danielc at analysisandsolutions.com Thu Sep 5 15:44:20 2002 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Thu, 5 Sep 2002 15:44:20 -0400 Subject: [nycphp-talk] Oracle and gif storage In-Reply-To: <200209051853.g85IrFV8018049@parsec.nyphp.org> References: <200209051853.g85IrFV8018049@parsec.nyphp.org> Message-ID: <20020905194420.GA24751@panix.com> On Thu, Sep 05, 2002 at 02:53:15PM -0400, Bill Patterson wrote: > Has anyone found a practical way to store .GIF files in Oracle (8i) using > PHP? Why store the images in the database when it's so much more efficient to store them on the hard drive and keep the file's path/name in the database? --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution 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 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From sailer at bnl.gov Thu Sep 5 15:51:53 2002 From: sailer at bnl.gov (Tim Sailer) Date: Thu, 5 Sep 2002 15:51:53 -0400 Subject: [nycphp-talk] Oracle and gif storage In-Reply-To: <200209051944.g85JiXV8018112@parsec.nyphp.org> References: <200209051944.g85JiXV8018112@parsec.nyphp.org> Message-ID: <20020905195153.GA9679@bnl.gov> On Thu, Sep 05, 2002 at 03:44:33PM -0400, Analysis & Solutions wrote: > On Thu, Sep 05, 2002 at 02:53:15PM -0400, Bill Patterson wrote: > > Has anyone found a practical way to store .GIF files in Oracle (8i) using > > PHP? > > Why store the images in the database when it's so much more efficient to > store them on the hard drive and keep the file's path/name in the > database? Ease of housekeeping? I hate trying to keep images names straight. If it's all in a single record, it's easy. www.nsiinnovations.com has a MySQL backend for most of it, including the pictures and related PDFs for download. I'm not sure what state the data is in (not my site, I just did the programming), but there should be something there to show how it works. Tim -- Tim Sailer Application Services Information Technology Division Brookhaven National Laboratory (631) 344-3001 From mz34 at nyu.edu Thu Sep 5 16:06:41 2002 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Thu, 5 Sep 2002 16:06:41 -0400 Subject: [nycphp-talk] Oracle and gif storage In-Reply-To: <200209051944.g85JiXV8018112@parsec.nyphp.org> Message-ID: we do the same thing On Thursday, September 5, 2002, at 03:44 PM, Analysis & Solutions wrote: > On Thu, Sep 05, 2002 at 02:53:15PM -0400, Bill Patterson wrote: >> Has anyone found a practical way to store .GIF files in Oracle (8i) >> using >> PHP? > > Why store the images in the database when it's so much more efficient > to > store them on the hard drive and keep the file's path/name in the > database? > > --Dan > > -- > PHP classes that make web design easier > SQL Solution | Layout Solution | Form Solution > 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 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 > > > --- Unsubscribe at http://nyphp.org/list --- > > From patterson at computer.org Thu Sep 5 16:13:28 2002 From: patterson at computer.org (Bill Patterson) Date: Thu, 05 Sep 2002 16:13:28 -0400 Subject: [nycphp-talk] Oracle and gif storage References: <200209051944.g85JiXV8018112@parsec.nyphp.org> Message-ID: <3D77BAE8.85F3B578@computer.org> Because that is the system design. For one thing, it enables a clean backup and recovery. I'm not sure of all the reasons but I do know that I am stuck with it. Analysis & Solutions wrote: > On Thu, Sep 05, 2002 at 02:53:15PM -0400, Bill Patterson wrote: > > Has anyone found a practical way to store .GIF files in Oracle (8i) using > > PHP? > > Why store the images in the database when it's so much more efficient to > store them on the hard drive and keep the file's path/name in the > database? > > --Dan > > -- > PHP classes that make web design easier > SQL Solution | Layout Solution | Form Solution > 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 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 > > --- Unsubscribe at http://nyphp.org/list --- From pat at vote.com Thu Sep 5 16:34:50 2002 From: pat at vote.com (Patrick Hunt) Date: Thu, 05 Sep 2002 16:34:50 -0400 Subject: [nycphp-talk] Oracle and gif storage In-Reply-To: <200209051853.g85IrFV8018049@parsec.nyphp.org> Message-ID: <200209052034.g85KYeV8018210@parsec.nyphp.org> Bill, You have to store images as blobs, which means you can't use a plain old SQL statement. Here's a simple example: //$image = {contents of image file}; $sql = "INSERT INTO IMAGE_TABLE (IMAGE_ID, IMAGE) VALUES ($NewImageID, EMPTY_BLOB()) returning IMAGE into :img"; $blobdesc = OCINewDescriptor($conn, OCI_D_LOB); if ($qry = OCIParse($conn, $sql)) { OCIBindByName($qry, ":img", &$blobdesc, -1, OCI_B_BLOB); if (OCIExecute($qry, OCI_DEFAULT)){ if ($image) { $blobdesc->save($image); } OCICommit($conn); } else { OCIRollback($conn); } OCIFreeStatement($qry); } The one thing I don't know how to do is trap errors in the $blobdesc->save method. Getting the image back out can be done with a normal SQL select. Just remember to tell OCIFetchInto to return LOB columns, as in: OCIFetchInto($qry, &$rslt, OCI_RETURN_LOBS) Pat --------------------------------------- On Thu, 5 Sep 2002 14:53:15 -0400, Bill Patterson wrote: >Has anyone found a practical way to store .GIF files in Oracle (8i) using >PHP? If so, please get in touch. I am trying to do it and keep running >into one problem or another. Thanks. > >Bill Patterson > > > >--- Unsubscribe at http://nyphp.org/list --- > > > From zaunere at yahoo.com Thu Sep 5 23:17:48 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 5 Sep 2002 20:17:48 -0700 (PDT) Subject: [nycphp-talk] Oracle and gif storage In-Reply-To: <200209051853.g85IrFV8018049@parsec.nyphp.org> Message-ID: <20020906031748.17623.qmail@web12802.mail.yahoo.com> --- Bill Patterson wrote: > Has anyone found a practical way to store .GIF files in Oracle (8i) > using PHP? Oracle is practical? :) > If so, please get in touch. I am trying to do it and keep running > into one problem or another. Thanks. You need the DB field to be BLOB (Binary Large OBject). You'll need to ensure that the functions you use are binary safe, but most PHP functionality in this repsect is (whether OCI/MySQL/etc). If you are using Oracle, the [bind?] functions are made for this, although there are other ways. H __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From patterson at computer.org Fri Sep 6 13:18:17 2002 From: patterson at computer.org (Bill Patterson) Date: Fri, 06 Sep 2002 13:18:17 -0400 Subject: Oracle binary data Message-ID: <3D78E358.A9B3EAEB@computer.org> Thanks to the people who kindly wrote to me about the binary data issue. We handled it by going to a work-around using base64_encode/base64_decode. This puts the binary data into text form but requires another 33% storage space. These functions were also useful in another part of the system involving binary data, so we got two with one. Bill From zaunere at yahoo.com Fri Sep 6 16:53:29 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Fri, 6 Sep 2002 13:53:29 -0700 (PDT) Subject: PHP 4.2.3 Out and Mirrored Locally Message-ID: <20020906205329.83747.qmail@web12801.mail.yahoo.com> Hello all, It looks like PHP-4.2.3 was just released. To help in distribution, the main downloads are available from http://parsec.nyphp.org/mirror/ Feel free to pass this URL on to as many as you'd like. As new releases are made, they should always be available here as well. Enjoy! Hans Z. __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From mogmios at mlug.missouri.edu Sat Sep 7 10:28:59 2002 From: mogmios at mlug.missouri.edu (Michael) Date: Sat, 7 Sep 2002 09:28:59 -0500 (CDT) Subject: [nycphp-talk] PHP 4.2.3 Out and Mirrored Locally In-Reply-To: <200209062053.g86KrYpb020423@parsec.nyphp.org> Message-ID: Anything special in this release? > Hello all, > > It looks like PHP-4.2.3 was just released. To help in distribution, > the main downloads are available from http://parsec.nyphp.org/mirror/ > > Feel free to pass this URL on to as many as you'd like. As new > releases are made, they should always be available here as well. From zaunere at yahoo.com Sat Sep 7 13:20:36 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Sat, 7 Sep 2002 10:20:36 -0700 (PDT) Subject: [nycphp-talk] PHP 4.2.3 Out and Mirrored Locally In-Reply-To: <200209071429.g87ET5Zr003731@parsec.nyphp.org> Message-ID: <20020907172036.20249.qmail@web12805.mail.yahoo.com> It's only a minor release, but remember that 4.2.2 was strictly a security release. So essentially, 4.2.3 is the fixes from 4.2.1. Lays everything out: http://www.php.net/ChangeLog-4.php Hans --- Michael wrote: > Anything special in this release? > > > > Hello all, > > > > It looks like PHP-4.2.3 was just released. To help in > distribution, > > the main downloads are available from > http://parsec.nyphp.org/mirror/ > > > > Feel free to pass this URL on to as many as you'd like. As new > > releases are made, they should always be available here as well. > > > > --- Unsubscribe at http://nyphp.org/list --- > > __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From soazine at erols.com Mon Sep 9 02:35:16 2002 From: soazine at erols.com (Phil Powell) Date: Mon, 9 Sep 2002 02:35:16 -0400 Subject: Help! Live Function Cannot Be Accessed!!!! Message-ID: <01ea01c257cb$0fba2430$dcbe6444@scandinawa1bo6> This is live and I can't figure out what is going on with it, suddenly, it stopped working!!!! Warning: Unable to access ./menubar_functions.php in /users/ppowell/web/repository.php on line 88 Fatal error: Failed opening required 'menubar_functions.php' (include_path='.:/usr/local/lib/php') in /users/ppowell/web/repository.php on line 88 Here is the code in repository.php: here is menubar_functions.php: Does anyone have any insight? I'm completely out of ideas Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From soazine at erols.com Mon Sep 9 02:52:04 2002 From: soazine at erols.com (Phil Powell) Date: Mon, 9 Sep 2002 02:52:04 -0400 Subject: Fw: Help! Live Function Cannot Be Accessed!!!! Message-ID: <021501c257cd$68618950$dcbe6444@scandinawa1bo6> ----- Original Message ----- From: Phil Powell To: talk at nyphp.org Sent: Monday, September 09, 2002 2:35 AM Subject: Help! Live Function Cannot Be Accessed!!!! This is live and I can't figure out what is going on with it, suddenly, it stopped working!!!! Warning: Unable to access ./menubar_functions.php in /users/ppowell/web/repository.php on line 88 Fatal error: Failed opening required 'menubar_functions.php' (include_path='.:/usr/local/lib/php') in /users/ppowell/web/repository.php on line 88 Here is the code in repository.php: here is menubar_functions.php: Does anyone have any insight? I'm completely out of ideas Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From soazine at erols.com Mon Sep 9 03:09:37 2002 From: soazine at erols.com (Phil Powell) Date: Mon, 9 Sep 2002 03:09:37 -0400 Subject: HELP!!! References: <200209071720.g87HKfZr003899@parsec.nyphp.org> Message-ID: <024c01c257cf$dbc4f4c0$dcbe6444@scandinawa1bo6> This will not post onto the PHP board for some reason! Thanx Phil ----- Original Message ----- From: Phil Powell To: talk at nyphp.org Sent: Monday, September 09, 2002 2:35 AM Subject: Help! Live Function Cannot Be Accessed!!!! This is live and I can't figure out what is going on with it, suddenly, it stopped working!!!! Warning: Unable to access ./menubar_functions.php in /users/ppowell/web/repository.php on line 88 Fatal error: Failed opening required 'menubar_functions.php' (include_path='.:/usr/local/lib/php') in /users/ppowell/web/repository.php on line 88 Here is the code in repository.php: here is menubar_functions.php: Does anyone have any insight? I'm completely out of ideas Thanx Phil ----- Original Message ----- From: "Hans Zaunere" To: "NYPHP Talk" Sent: Saturday, September 07, 2002 1:20 PM Subject: Re: [nycphp-talk] PHP 4.2.3 Out and Mirrored Locally > > It's only a minor release, but remember that 4.2.2 was strictly a > security release. So essentially, 4.2.3 is the fixes from 4.2.1. > > Lays everything out: > > http://www.php.net/ChangeLog-4.php > > > Hans > > > --- Michael wrote: > > Anything special in this release? > > > > > > > Hello all, > > > > > > It looks like PHP-4.2.3 was just released. To help in > > distribution, > > > the main downloads are available from > > http://parsec.nyphp.org/mirror/ > > > > > > Feel free to pass this URL on to as many as you'd like. As new > > > releases are made, they should always be available here as well. > > > > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Finance - Get real-time stock quotes > http://finance.yahoo.com > > > --- Unsubscribe at http://nyphp.org/list --- > > From ssmith at tomega.com Mon Sep 9 08:46:50 2002 From: ssmith at tomega.com (Sean Smith) Date: Mon, 09 Sep 2002 08:46:50 -0400 Subject: [nycphp-talk] HELP!!! References: <200209090711.g897BNZr007244@parsec.nyphp.org> Message-ID: <3D7C983A.6040500@tomega.com> The only things I can think of are make sure file permissions are correct. Not only the file owner and group but that the attributes (read, write, execute) are correct also. Then make sure that the permissions are correct for the include folder. I know this sounds petty but is the file in the folder? That's all I can think of off hand. From zaunere at yahoo.com Mon Sep 9 09:49:29 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Mon, 9 Sep 2002 06:49:29 -0700 (PDT) Subject: Presentations, Presentations, Presentations Message-ID: <20020909134929.72800.qmail@web12808.mail.yahoo.com> Good morning, NYPHP's monthly meeting is approaching and we are looking for interested parties to present at our September meeting (9/25). Some have contacted me in the past, and I want to be sure not to forget anyone. So, if you would like to present to NYPHP at our September meeting, please contact me offlist (zaunere at yahoo.com). Thank you, Hans Z. __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From markjia at yahoo.com Mon Sep 9 09:55:16 2002 From: markjia at yahoo.com (Mark Jia) Date: Mon, 9 Sep 2002 06:55:16 -0700 (PDT) Subject: [nycphp-talk] HELP!!! In-Reply-To: <200209090711.g897BNZr007244@parsec.nyphp.org> Message-ID: <20020909135516.18358.qmail@web20421.mail.yahoo.com> Maybe the include path made the error? You can put both files in same directory to try out. (or the file permission.) Mark Phil Powell wrote:This will not post onto the PHP board for some reason! Thanx Phil ----- Original Message ----- From: Phil Powell To: talk at nyphp.org Sent: Monday, September 09, 2002 2:35 AM Subject: Help! Live Function Cannot Be Accessed!!!! This is live and I can't figure out what is going on with it, suddenly, it stopped working!!!! Warning: Unable to access ./menubar_functions.php in /users/ppowell/web/repository.php on line 88 Fatal error: Failed opening required 'menubar_functions.php' (include_path='.:/usr/local/lib/php') in /users/ppowell/web/repository.php on line 88 Here is the code in repository.php: require("menubar_functions.php"); echo PRODUCE_MENUBAR(); ?> here is menubar_functions.php: // This function is the PHP version of the TCL proc PRODUCE_MENUBAR which // will produce the menubar for all PHP files // // Syntax: echo PRODUCE_MENUBAR() // function PRODUCE_MENUBAR() { global $HTTP_HOST; $tcl = (preg_match("/\\bdyndns\\b/i", $HTTP_HOST)) ? "tclsh83" : "tclsh"; $path = (preg_match("/\\bdyndns\\b/i", $HTTP_HOST)) ? "cgi-bin" : "cgi-bin/cgiwrap/ppowell"; $fileID = fopen("http://$HTTP_HOST/$path/menubar.cgi", "r"); $menubar = fread($fileID, 1000000); fclose($fileID); return $menubar; } ?> Does anyone have any insight? I'm completely out of ideas Thanx Phil ----- Original Message ----- From: "Hans Zaunere" To: "NYPHP Talk" Sent: Saturday, September 07, 2002 1:20 PM Subject: Re: [nycphp-talk] PHP 4.2.3 Out and Mirrored Locally > > It's only a minor release, but remember that 4.2.2 was strictly a > security release. So essentially, 4.2.3 is the fixes from 4.2.1. > > Lays everything out: > > http://www.php.net/ChangeLog-4.php > > > Hans > > > --- Michael wrote: > > Anything special in this release? > > > > > > > Hello all, > > > > > > It looks like PHP-4.2.3 was just released. To help in > > distribution, > > > the main downloads are available from > > http://parsec.nyphp.org/mirror/ > > > > > > Feel free to pass this URL on to as many as you'd like. As new > > > releases are made, they should always be available here as well. > > > > > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Finance - Get real-time stock quotes > http://finance.yahoo.com > > > > > --- Unsubscribe at http://nyphp.org/list --- --------------------------------- Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes -------------- next part -------------- An HTML attachment was scrubbed... URL: From zaunere at yahoo.com Mon Sep 9 09:58:38 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Mon, 9 Sep 2002 06:58:38 -0700 (PDT) Subject: NYPHP Presents to NYLUG Message-ID: <20020909135838.65385.qmail@web12802.mail.yahoo.com> Good morning again, NYPHP will be giving an introductory meeting to NYLUG (http://nylug.org) at their monthly meeting (9/18). I am working on an outline for the presentation, but I would like some help filling in the gaps. This means: -- I do not have a laptop. Does anyone have a laptop available? (Win2K/Linux/whatever, but network connectivity will be important). -- Like I say, I will have a presentation outline and some slides (probably webpages, actually) later this week. However, I would like some assistance in giving the presentation, preferably someone with more "presenting" skills than I, and anyone that would like to help with content creation is more than welcome as well! -- Anyone that would like to meet to prepare for the presentation, or at the meeting itself (I will get there @ 6:00pm on 9/18 at IBM in midtown - details at http://nylug.org). -- At the very least, show up at the NYLUG meeting! Please contact me offlist (zaunere at yahoo.com) with any followup. Thank you, Hans Z. __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From ian at plusfour.org Mon Sep 9 10:01:10 2002 From: ian at plusfour.org (ian forsyth) Date: Mon, 09 Sep 2002 10:01:10 -0400 Subject: [nycphp-talk] HELP!!! References: <200209090711.g897BNZr007244@parsec.nyphp.org> Message-ID: <3D7CA9A6.3090306@plusfour.org> you could add an .htaccess file in the web dir with the line php_value include_path /users/ppowell/web or in the require() put.. require("./menubar_functions.php"); Ian Phil Powell wrote: >This will not post onto the PHP board for some reason! > >Thanx >Phil >----- Original Message ----- >From: Phil Powell >To: talk at nyphp.org >Sent: Monday, September 09, 2002 2:35 AM >Subject: Help! Live Function Cannot Be Accessed!!!! > > >This is live and I can't figure out what is going on with it, suddenly, it >stopped working!!!! > >Warning: Unable to access ./menubar_functions.php in >/users/ppowell/web/repository.php on line 88 > >Fatal error: Failed opening required 'menubar_functions.php' >(include_path='.:/usr/local/lib/php') in /users/ppowell/web/repository.php >on line 88 > >Here is the code in repository.php: > > > require("menubar_functions.php"); > echo PRODUCE_MENUBAR(); > >?> > >here is menubar_functions.php: > > > // This function is the PHP version of the TCL proc PRODUCE_MENUBAR which > // will produce the menubar for all PHP files > // > // Syntax: echo PRODUCE_MENUBAR() > // > > > function PRODUCE_MENUBAR() { > global $HTTP_HOST; > $tcl = (preg_match("/\\bdyndns\\b/i", $HTTP_HOST)) ? "tclsh83" : "tclsh"; > $path = (preg_match("/\\bdyndns\\b/i", $HTTP_HOST)) ? "cgi-bin" : >"cgi-bin/cgiwrap/ppowell"; > $fileID = fopen("http://$HTTP_HOST/$path/menubar.cgi", "r"); > $menubar = fread($fileID, 1000000); > fclose($fileID); > return $menubar; > } > >?> > >Does anyone have any insight? I'm completely out of ideas > >Thanx >Phil > >----- Original Message ----- >From: "Hans Zaunere" >To: "NYPHP Talk" >Sent: Saturday, September 07, 2002 1:20 PM >Subject: Re: [nycphp-talk] PHP 4.2.3 Out and Mirrored Locally > > > > >>It's only a minor release, but remember that 4.2.2 was strictly a >>security release. So essentially, 4.2.3 is the fixes from 4.2.1. >> >>Lays everything out: >> >>http://www.php.net/ChangeLog-4.php >> >> >>Hans >> >> >>--- Michael wrote: >> >> >>>Anything special in this release? >>> >>> >>> >>> >>>>Hello all, >>>> >>>>It looks like PHP-4.2.3 was just released. To help in >>>> >>>> >>>distribution, >>> >>> >>>>the main downloads are available from >>>> >>>> >>>http://parsec.nyphp.org/mirror/ >>> >>> >>>>Feel free to pass this URL on to as many as you'd like. As new >>>>releases are made, they should always be available here as well. >>>> >>>> >>> >>> >>> >>> >>> >>> >>__________________________________________________ >>Do You Yahoo!? >>Yahoo! Finance - Get real-time stock quotes >>http://finance.yahoo.com >> >> >> >> >> >> >> > > > >--- Unsubscribe at http://nyphp.org/list --- > > > > > > From soazine at pop.mail.rcn.net Mon Sep 9 10:25:46 2002 From: soazine at pop.mail.rcn.net (soazine@pop.erols.com) Date: Mon, 9 Sep 2002 10:25:46 -0400 Subject: [nycphp-talk] HELP!!! Message-ID: <244640-22002919142546542@M2W084.mail2web.com> Sorry I tried them and the error still persists... Phil Original Message: ----------------- From: ian forsyth ian at plusfour.org Date: Mon, 9 Sep 2002 10:00:48 -0400 To: talk at nyphp.org Subject: Re: [nycphp-talk] HELP!!! you could add an .htaccess file in the web dir with the line php_value include_path /users/ppowell/web or in the require() put.. require("./menubar_functions.php"); Ian Phil Powell wrote: >This will not post onto the PHP board for some reason! > >Thanx >Phil >----- Original Message ----- >From: Phil Powell >To: talk at nyphp.org >Sent: Monday, September 09, 2002 2:35 AM >Subject: Help! Live Function Cannot Be Accessed!!!! > > >This is live and I can't figure out what is going on with it, suddenly, it >stopped working!!!! > >Warning: Unable to access ./menubar_functions.php in >/users/ppowell/web/repository.php on line 88 > >Fatal error: Failed opening required 'menubar_functions.php' >(include_path='.:/usr/local/lib/php') in /users/ppowell/web/repository.php >on line 88 > >Here is the code in repository.php: > > > require("menubar_functions.php"); > echo PRODUCE_MENUBAR(); > >?> > >here is menubar_functions.php: > > > // This function is the PHP version of the TCL proc PRODUCE_MENUBAR which > // will produce the menubar for all PHP files > // > // Syntax: echo PRODUCE_MENUBAR() > // > > > function PRODUCE_MENUBAR() { > global $HTTP_HOST; > $tcl = (preg_match("/\\bdyndns\\b/i", $HTTP_HOST)) ? "tclsh83" : "tclsh"; > $path = (preg_match("/\\bdyndns\\b/i", $HTTP_HOST)) ? "cgi-bin" : >"cgi-bin/cgiwrap/ppowell"; > $fileID = fopen("http://$HTTP_HOST/$path/menubar.cgi", "r"); > $menubar = fread($fileID, 1000000); > fclose($fileID); > return $menubar; > } > >?> > >Does anyone have any insight? I'm completely out of ideas > >Thanx >Phil > >----- Original Message ----- >From: "Hans Zaunere" >To: "NYPHP Talk" >Sent: Saturday, September 07, 2002 1:20 PM >Subject: Re: [nycphp-talk] PHP 4.2.3 Out and Mirrored Locally > > > > >>It's only a minor release, but remember that 4.2.2 was strictly a >>security release. So essentially, 4.2.3 is the fixes from 4.2.1. >> >>Lays everything out: >> >>http://www.php.net/ChangeLog-4.php >> >> >>Hans >> >> >>--- Michael wrote: >> >> >>>Anything special in this release? >>> >>> >>> >>> >>>>Hello all, >>>> >>>>It looks like PHP-4.2.3 was just released. To help in >>>> >>>> >>>distribution, >>> >>> >>>>the main downloads are available from >>>> >>>> >>>http://parsec.nyphp.org/mirror/ >>> >>> >>>>Feel free to pass this URL on to as many as you'd like. As new >>>>releases are made, they should always be available here as well. >>>> >>>> >>> >>> >>> >>> >>> >>> >>__________________________________________________ >>Do You Yahoo!? >>Yahoo! Finance - Get real-time stock quotes >>http://finance.yahoo.com >> >> >> >> >> >> >> > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list --- -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From soazine at pop.mail.rcn.net Mon Sep 9 10:26:42 2002 From: soazine at pop.mail.rcn.net (soazine@pop.erols.com) Date: Mon, 9 Sep 2002 10:26:42 -0400 Subject: [nycphp-talk] HELP!!! Message-ID: <99610-22002919142642774@M2W094.mail2web.com> Sorry I received no message.. Phil Original Message: ----------------- From: Mark Jia markjia at yahoo.com Date: Mon, 9 Sep 2002 09:55:24 -0400 To: talk at nyphp.org Subject: Re: [nycphp-talk] HELP!!! -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From markjia at yahoo.com Mon Sep 9 10:51:38 2002 From: markjia at yahoo.com (Mark Jia) Date: Mon, 9 Sep 2002 07:51:38 -0700 (PDT) Subject: [nycphp-talk] HELP!!! In-Reply-To: <99610-22002919142642774@M2W094.mail2web.com> Message-ID: <20020909145138.84630.qmail@web20413.mail.yahoo.com> Resend: Maybe you can check the file permission first, then put them into same directory to try out. I mean maybe the include path made this error. Mark "soazine at pop.erols.com" wrote:Sorry I received no message.. Phil Original Message: ----------------- From: Mark Jia markjia at yahoo.com Date: Mon, 9 Sep 2002 09:55:24 -0400 To: talk at nyphp.org Subject: Re: [nycphp-talk] HELP!!! -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . --------------------------------- Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at digitalpulp.com Mon Sep 9 11:02:01 2002 From: andrew at digitalpulp.com (Andrew M. Yochum) Date: Mon, 9 Sep 2002 11:02:01 -0400 (EDT) Subject: [nycphp-talk] Articles, books, other references - content mana gement In-Reply-To: <200209051754.g85Hs2V8017936@parsec.nyphp.org> Message-ID: I'd suggest that for something a little more advanced than the *nukes, take a look at Midgard (http://www.midgard-project.com/). It is very well documented, very well thought out and far more flexible than the *nukes. However, it is just a library of APIs with no front end. There is a well- developed front-end for it called Nadmin Studio (http://www.nadminstudio.com/) and a few others that you'll find referenced on the Midgard site. There are also a handful of books on CMS that I've seen in B&N stores, but I have done nothing more than flip through them so I can't recommend any one in particular. Andrew On Thu, 5 Sep 2002, Fee, Patrick J wrote: > Fil Baumanis, > > Slightly off topic... But I might suggest you also look at the following > open source portal sites. > I've found some interesting material by downloading these packages and > rummaging through the code and the .sql files. > > Perhaps that might increase your general CMS knowledge while you search for > the books you mention... > > Check out: > > http://www.myphpnuke.com/ > http://www.phpnuke.org > http://www.postnuke.com/ > > You may already be very familiar with these portals... But there may be some > folk out there just getting their feet wet with PHP and mySQL for Content > Management, and these sites will really help. > > Patrick J. Fee > Web & Database Manager > BAE SYSTEMS > 600 Maryland Ave. SW Suite 600 > Washington D.C. 20024 > Patrick.Fee at BAESYSTEMS.com > Tel: (202) 548-3759 > Fax: (202) 608-5970 > > > > -----Original Message----- > From: FB` [mailto:fb at intldef.org] > Sent: Thursday, September 05, 2002 12:14 PM > To: NYPHP Talk > Subject: [nycphp-talk] Articles, books, other references - content > management > > > Hi. > > I'm looking for some material on building fairly complex content management > systems with PHP. > Not looking for PHP reference specifically, much more of a nice in-depth > analysis of database structures, granularity, administration features, etc. > > Any information would be a help. Thanks. > > FB` > > > > > > > > --- Unsubscribe at http://nyphp.org/list --- > > -- Andrew Yochum Digital Pulp, Inc. 212.679.0676x255 andrew at digitalpulp.com From soazine at pop.mail.rcn.net Mon Sep 9 11:13:31 2002 From: soazine at pop.mail.rcn.net (soazine@pop.erols.com) Date: Mon, 9 Sep 2002 11:13:31 -0400 Subject: [nycphp-talk] HELP!!! Message-ID: <191690-2200291915133129@M2W053.mail2web.com> You'll have to post this onto nyphp, for I cannot right now.. the php file menubar_functions.php exists in the same directory as the other PHP files, all of which reside in the root directory and have never been changed since they were first uploaded. Unfortunately I don't know when the error first occurred but it had worked for months before. Phil Original Message: ----------------- From: Mark Jia markjia at yahoo.com Date: Mon, 9 Sep 2002 07:51:38 -0700 (PDT) To: soazine at erols.com, talk at nyphp.org Subject: Re: [nycphp-talk] HELP!!! Resend: Maybe you can check the file permission first, then put them into same directory to try out. I mean maybe the include path made this error. Mark "soazine at pop.erols.com" wrote:Sorry I received no message.. Phil Original Message: ----------------- From: Mark Jia markjia at yahoo.com Date: Mon, 9 Sep 2002 09:55:24 -0400 To: talk at nyphp.org Subject: Re: [nycphp-talk] HELP!!! -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . --------------------------------- Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From zaunere at yahoo.com Mon Sep 9 11:27:03 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Mon, 9 Sep 2002 08:27:03 -0700 (PDT) Subject: [nycphp-talk] HELP!!! In-Reply-To: <200209091355.g89DtOZr007655@parsec.nyphp.org> Message-ID: <20020909152703.17938.qmail@web12807.mail.yahoo.com> --- Mark Jia wrote: > Hello folks, There was a bug in the MIME handler, and as a result some messages got their body chopped off (as did the above message). This should now be fixed, so repost if you can. Sorry about that, Hans Z. __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From hz11 at nyu.edu Mon Sep 9 14:26:42 2002 From: hz11 at nyu.edu (Hans Zaunere) Date: Mon, 09 Sep 2002 14:26:42 -0400 Subject: [Fwd: [news] Zend Newsletter - August 2002] Message-ID: <3D7CE7E2.562CBF1A@nyu.edu> There were some interesting articles and tutorials in this month's newsletter, so I've passed it on in case people don't get it. Hans -------- Original Message -------- Subject: [news] Zend Newsletter - August 2002 Date: Thu, 05 Sep 2002 09:33:04 +0300 (IDT) From: Zend Team Reply-To: news-unsubscribe at lists.zend.com Organization: Zend Technologies Ltd (http://www.zend.com/) To: news at lists.zend.com ------------------------------------------------- You are receiving this newsletter because you signed up as a Zend.com member and selected the "Zend Newsletter" option. To discontinue this newsletter service, go to http://www.zend.com/store/my_account.php, click on "Choose your preferences", and select "No" next to the newsletter option. Feel free to forward this mail. ------------------------------------------------- Zend Newsletter August 2002 1. Zend on the Go 2. Zend in the News 3. Zend News 4. Zend Community Site 5. New Articles and Tutorials 6. We want to hear from you ++++++++++++++++++++++++++++++++++++++++++ 1. Zend on the Go ++++++++++++++++++++++++++++++++++++++++++ COME VISIT US AT THE ANNUAL PHP CONFERENCE This year Zend is a Gold Sponsor at the PHP Confernce 2002 held November 3-6, 2002. On Sunday, November 3, 2002, Zeev Suraski and Andi Gutmans are presenting a session about the future of PHP and the Zend Engine 2. Come visit our booth, see a product demonstration and get a chance to win a free Zend Studio! Zend is also planning to launch a new product at the Conference so keep your eyes peeled. http://www.php-conference.de/2002/spinfo_en.php#zend ------------------------------------------ ZEEV SURASKI SPEAKS AT APACHECON US 2002 Las Vegas, Nevada, 18-21 November 2002 Come hear Zeev Suraski speak on PHP 5 Infrastructure Preview: Zend Engine 2. http://apachecon.com/2002/US/index.html/e=MjAwMi9VUw ++++++++++++++++++++++++++++++++++++++++++ 2. Zend in the News ++++++++++++++++++++++++++++++++++++++++++ Check out the eBizQ article in which Zeev Suraski discusses the future of PHP in an artlce entitled 'PHP: The Next Evolution of Web Development?' http://e-serv.ebizq.net/dvt/suraski_1.html ++++++++++++++++++++++++++++++++++++++++++ 3. Zend News ++++++++++++++++++++++++++++++++++++++++++ ZEND LAUNCHES NEW GERMAN STORE To support the growing PHP community in Germany, Zend has launched the Zend Store in German. Check it out. http://de.zend.com/store/ ------------------------------------------ ZEND RELEASE THE ZEND ACCELERATOR 2.0.3 The latest release of the Zend Accelerator includes an improved installation process and supports PHP versions 4.2.x. http://www.zend.com/store/products/zend-accelerator.php ++++++++++++++++++++++++++++++++++++++++++ 4. Zend Community Site ++++++++++++++++++++++++++++++++++++++++++ PHP CODE GALLERY CONTEST Check out the bi-monthly Code Walkers PHP Coding Contest and we'll post your winning code in the Zend.com Code Gallery. Winner's get a free Zend Studio, free Zend 'PHP Addict' T-shirt and a PHP Book provided by Sams. This week's winner is Tim Jensen from Arizona. Check out the winning code at http://www.zend.com/codex.php?id=995&single=1 http://www.zend.com/codex.php ++++++++++++++++++++++++++++++++++++++++++ 5. New Articles and Tutorials ++++++++++++++++++++++++++++++++++++++++++ SIDE NAVIGATION WITH PHP Patrick Delin shows you how to lay out your side navigation and populate an array with the intended values. http://www.zend.com/zend/tut/tutorial-delin3.php ------------------------------------------ PHP TEMPLATING WITH SMARTY PHP Cezar Floroiu explains how to reduce site development and maintenance time by using Smarty. http://www.zend.com/zend/tut/tutorial-cezar.php ------------------------------------------ AN INTRODUCTION TO PHP-GTK Tiffany Silva helps you work though the stages of installing PHP-GTK and creating a simple GUI application. http://www.zend.com/zend/tut/tutorial-silva.php ------------------------------------------ USING MYSQL FULL-TEXT SEARCHING In this tutorial, Jim Ferrara teaches you: - How to modify your current database to accommodate Full-text searching - How to use a simple Full-text search to quickly gather relevant responses - How to execute a more complex Full-text search with Boolean capabilities - Tips on what to do, and what not to do, as well as the security implications of some of the example scripts presented. http://www.zend.com/zend/tut/tutorial-ferrara1.php ------------------------------------------ INTELLIGENT CMS: WEB FORM BEST PRACTICES Jason Gilomre talks about reusable functions that will assuredly cut time from your CMS development schedule. http://www.zend.com/zend/art/art-gilmore.php ++++++++++++++++++++++++++++++++++++++++++ 6. We want to hear from you ++++++++++++++++++++++++++++++++++++++++++ As you can see by the dynamic nature of the Zend site and products, we take your suggestions and feedback seriously. Most of our tutorials and site additions are based on specific requests from you. Please take the time to suggest news, articles, tutorials or new site sections by filling out our feedback form. We also want to know what you want out of this newsletter. Please let us know what topics you want to hear about and we will be thrilled to accommodate. Please send comments to feedback at zend.com ------------------------------------------ Thank you for registering to receive our newsletter. You are receiving this newsletter because you signed up as a Zend.com member and selected the "Zend Newsletter" option. To discontinue this newsletter service, go to http://www.zend.com/store/my_account.php, click on "Choose your preferences", and select "No" next to the newsletter option. or Send a blank e-mail to news-unsubscribe at lists.zend.com. Make sure to send the e-mail from the address you subscribed with. For additional commands, please e-mail: news-help at lists.zend.com Feel free to forward this mail. ------------------------------------------ --------------------------------------------------------------------- To unsubscribe, e-mail: news-unsubscribe at lists.zend.com For additional commands, e-mail: news-help at lists.zend.com From sailer at bnl.gov Mon Sep 9 14:35:52 2002 From: sailer at bnl.gov (Tim Sailer) Date: Mon, 9 Sep 2002 14:35:52 -0400 Subject: GD imageCreate Message-ID: <20020909183552.GA19561@bnl.gov> Is anyone using the imageCreate function to create on the fly graphics? I'm playing with my new toy, a weather station, and it's logging to a MySQL database. I'm taking the info, and creating a graphic button, which, when clicked, will go to graphs, etc. The problem is the load of the server when creating the graphic. I've run some stress tests, and the results are *not* pretty. Is there any way to cache the image for a period of time? Tim PS: http://www2.buoy.com/weather has the graphic at the top -- Tim Sailer Application Services Information Technology Division Brookhaven National Laboratory (631) 344-3001 From adam at ecamp.net Mon Sep 9 14:56:48 2002 From: adam at ecamp.net (Adam) Date: Mon, 9 Sep 2002 14:56:48 -0400 Subject: [nycphp-talk] GD imageCreate In-Reply-To: <200209091836.g89IaDZr008252@parsec.nyphp.org> Message-ID: Perhaps a cronjob that runs when the weather gets updated/changed... and just link to the static file? Creating a on the fly graphic that is the same every time for every user is overly redundant...? -----Original Message----- From: Tim Sailer [mailto:sailer at bnl.gov] Sent: Monday, September 09, 2002 2:36 PM To: NYPHP Talk Subject: [nycphp-talk] GD imageCreate Is anyone using the imageCreate function to create on the fly graphics? I'm playing with my new toy, a weather station, and it's logging to a MySQL database. I'm taking the info, and creating a graphic button, which, when clicked, will go to graphs, etc. The problem is the load of the server when creating the graphic. I've run some stress tests, and the results are *not* pretty. Is there any way to cache the image for a period of time? Tim PS: http://www2.buoy.com/weather has the graphic at the top -- Tim Sailer Application Services Information Technology Division Brookhaven National Laboratory (631) 344-3001 --- Unsubscribe at http://nyphp.org/list --- From andrew at digitalpulp.com Mon Sep 9 15:09:18 2002 From: andrew at digitalpulp.com (Andrew M. Yochum) Date: Mon, 9 Sep 2002 15:09:18 -0400 (EDT) Subject: [nycphp-talk] GD imageCreate In-Reply-To: <200209091836.g89IaDZr008252@parsec.nyphp.org> Message-ID: Tim- Fun with GD.... you're not alone in your frustration with the amount of CPU it consumes to make one simple image. Look at the imagepng() function... there is a 2nd optional argument that will take a filename to output the file to. With that you can generate the image file to disk only as often as you'd like based on the system clock, number of hits, etc. Saves your web server from being so bogged down a LOT. Andrew On Mon, 9 Sep 2002, Tim Sailer wrote: > Is anyone using the imageCreate function to create on the fly > graphics? I'm playing with my new toy, a weather station, and > it's logging to a MySQL database. I'm taking the info, and creating > a graphic button, which, when clicked, will go to graphs, etc. > The problem is the load of the server when creating the graphic. I've run > some stress tests, and the results are *not* pretty. Is there any way to > cache the image for a period of time? > > Tim > > PS: http://www2.buoy.com/weather has the graphic at the top > > -- Andrew Yochum Digital Pulp, Inc. 212.679.0676x255 andrew at digitalpulp.com From MLynn at exchange.ml.com Mon Sep 9 15:32:00 2002 From: MLynn at exchange.ml.com (Lynn, Michael (DCS)) Date: Mon, 9 Sep 2002 15:32:00 -0400 Subject: Search Engine Indexable PHP Sites Message-ID: <8FA07D8665A9D511B80E00B0D068A1510293A7A3@ehope16.hew.us.ml.com> Greetings, I've developed a LAMP based online catalog for a jewelry company and for the most part the site is great. The problem is that nobody can tell it works so well due, in large part to the fact that I can't get the site indexed by the search engines. I believe this is because it is a dynamic site and each url on the generated pages contain references to sub-pages using pagename.php?variable1=value&variable2=value I've read up on a few articles from evolt.org and searchtools regarding "clean" urls and I have embarked on a redevelopment of the site to use urls like http://www.camelotbridal.com/new/index/rings/2 (keep in mind - I'm currently working on this so don't be shocked by the debug output and random errors) Instead of http://www.camelotbridal.com/index.php?p=rings&c=3 My question is this: Are there any tools that mimic the search engines indexing behavior so that I can gauge the effectiveness of my redevelopment? I've tried weblech and it's quite nice - builds a directory tree with the results of a scan of my new layout. But is weblech doing /just/ what the spiders are? There should be a tool that mimics each search engine spider (google, altavista, etc)... If not, then I'm wondering if someone knows how to get hold of the searching behaviour of the most popular engines. For example: Does the spider stop when it finds a url with a "?" in it (second example above). aTdHvAaNnKcSe, Mike From kayraotaner at yahoo.com Mon Sep 9 15:33:55 2002 From: kayraotaner at yahoo.com (Kayra Otaner) Date: Mon, 9 Sep 2002 12:33:55 -0700 (PDT) Subject: [nycphp-talk] GD imageCreate In-Reply-To: <200209091836.g89IaDZr008252@parsec.nyphp.org> Message-ID: <20020909193355.68562.qmail@web10103.mail.yahoo.com> Hi, I'm also using gd library to createa on the fly images for my free counter site. I've observed that using fonts (any) is consuming huge amount of cpu and memory. Try to not to use different font files and or try to reduce character count in word or sentences. Also you may create a bacground image and try to load it instead of creating it also on the fly. Best Kayra Otaner --- Tim Sailer wrote: > Is anyone using the imageCreate function to create on the fly > graphics? I'm playing with my new toy, a weather station, and > it's logging to a MySQL database. I'm taking the info, and creating > a graphic button, which, when clicked, will go to graphs, etc. > The problem is the load of the server when creating the graphic. I've run > some stress tests, and the results are *not* pretty. Is there any way to > cache the image for a period of time? > > Tim > > PS: http://www2.buoy.com/weather has the graphic at the top > > -- > Tim Sailer > Application Services > Information Technology Division > Brookhaven National Laboratory (631) 344-3001 > > > --- Unsubscribe at http://nyphp.org/list --- > > __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From sailer at bnl.gov Mon Sep 9 15:43:33 2002 From: sailer at bnl.gov (Tim Sailer) Date: Mon, 9 Sep 2002 15:43:33 -0400 Subject: [nycphp-talk] GD imageCreate In-Reply-To: <200209091933.g89JXxZr008412@parsec.nyphp.org> References: <200209091933.g89JXxZr008412@parsec.nyphp.org> Message-ID: <20020909194333.GB20322@bnl.gov> On Mon, Sep 09, 2002 at 03:33:59PM -0400, Kayra Otaner wrote: > Hi, > > I'm also using gd library to createa on the fly images for my free counter site. I've observed > that using fonts (any) is consuming huge amount of cpu and memory. Try to not to use different > font files and or try to reduce character count in word or sentences. > Also you may create a bacground image and try to load it instead of creating it also on the fly. That's what I'm doing, actually. My wife created me the backgroud image, but in order to get color allocation right, you still have to make a temp image to do the allocations. It's very frustrating. Making on the fly graphics with GD seem to use 16 bytes of memory for each pixel in the inital imageCreate(), so it not only uses lots of CPU, but memory... There's got to be a better way... Tim -- Tim Sailer Application Services Information Technology Division Brookhaven National Laboratory (631) 344-3001 From adam at ecamp.net Mon Sep 9 15:55:12 2002 From: adam at ecamp.net (Adam) Date: Mon, 9 Sep 2002 15:55:12 -0400 Subject: [nycphp-talk] find php script In-Reply-To: <200209091946.g89Jk0Zr008444@parsec.nyphp.org> Message-ID: Insert a file into what? Please provide an exmple of what you want, this description doesn't make much sense?: -----Original Message----- From: lory : : [mailto:agolory at email.it] Sent: Monday, September 09, 2002 3:46 PM To: NYPHP Talk Subject: [nycphp-talk] find php script I've need of a php form that allow me to insert a FILE(zip), IMAGE, TITLE, SUBTITLE, DESCRIPTION and DATE.. and that make the webpage with all. (ok also with mysql). Where i can find a similar project? tnx lory : : -- Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f Sponsor: Fatti del male. Lascia perdere www.gratis.it. Clicca qui: http://adv2.email.it/cgi-bin/foclick.cgi?mid=725&d=9-9 --- Unsubscribe at http://nyphp.org/list --- From prutwo at onebox.com Mon Sep 9 16:19:51 2002 From: prutwo at onebox.com (ophir prusak) Date: Mon, 09 Sep 2002 13:19:51 -0700 Subject: [nycphp-talk] Search Engine Indexable PHP Sites Message-ID: <20020909201951.GNYD17999.mta06.onebox.com@onebox.com> i gave a presentation on this subject at a PHP meeting a couple of months ago. my notes are at http://www.consolemonkey.com/nyphp/ ---- "Lynn, Michael " wrote: > Greetings, > > I've developed a LAMP based online catalog for a jewelry company and > for the most part the site is great. The problem is that nobody can > tell it works so well due, in large part to the fact that I > can't get the site indexed by the search engines. I believe this is > because it is a dynamic site and each url on the generated pages contain > references to sub-pages using > pagename.php?variable1=value&variable2=value > > I've read up on a few articles from evolt.org and searchtools regarding > "clean" urls and I have embarked on a redevelopment of the site to > use urls like > > http://www.camelotbridal.com/new/index/rings/2 (keep in mind - I'm > currently working on this so don't be shocked by the debug output and > random errors) > > Instead of > > http://www.camelotbridal.com/index.php?p=rings&c=3 > > My question is this: > > Are there any tools that mimic the search engines indexing behavior > so that I can gauge the effectiveness of my redevelopment? not really. each search engine uses their own rules on what and how to index. > > I've tried weblech and it's quite nice - builds a directory tree with > the results of a scan of my new layout. But is weblech doing /just/ > what the spiders are? There should be a tool that mimics > each search engine spider (google, altavista, etc)... If not, then > I'm wondering if someone knows how to get hold of the searching behaviour > of the most popular engines. For example: Does the spider > stop when it finds a url with a "?" in it (second example above). for the most part question marks in a URL are a sure way of reducing your chance of getting into a search engine. your best bet is to read up on sites like searchenginewatch.com to understand how they work. While the "path info" solution (what you're trying to do) is much better than the previous URLs, I personally prefer using mod_rewrite. That way you can create a url like http://www.camelotbridal.com/rings_3_something.html and have apache convert it to http://www.camelotbridal.com/index.php?p=rings&c=3 Either way, I think you should add .html as a file suffix (even if u don't use it). Something like http://www.camelotbridal.com/new/index/rings/2/x.html > > aTdHvAaNnKcSe, > Mike ---- Ophir Prusak Internet developer prutwo at onebox.com | http://www.prusak.com/ > > > > > > > --- Unsubscribe at http://nyphp.org/list --- > > > From ssmith at tomega.com Mon Sep 9 16:48:15 2002 From: ssmith at tomega.com (Sean Smith) Date: Mon, 09 Sep 2002 16:48:15 -0400 Subject: [nycphp-talk] find php script References: <200209091946.g89Jk0Zr008444@parsec.nyphp.org> Message-ID: <3D7D090F.6030002@tomega.com> Adam, It makes plenty of sense. Lori wants some help inserting the following field names into a MySQL database, then Querying them and displaying results on a webpage. At least that's what I got out of it. I don't know of any similar projects but you can definitely find answers in the php docs. http://www.php.net/manual/en or for french speakers http://www.php.net/manual/fr From markjia at yahoo.com Mon Sep 9 17:44:02 2002 From: markjia at yahoo.com (Mark Jia) Date: Mon, 9 Sep 2002 14:44:02 -0700 (PDT) Subject: [nycphp-talk] GD imageCreate In-Reply-To: <200209091933.g89JXxZr008412@parsec.nyphp.org> Message-ID: <20020909214402.67807.qmail@web20420.mail.yahoo.com> some languages like Chinese have different character sets, people who want to view it have to download some langauge support softwares, but I just heared if program can create those characters to be an image on the fly, then it will skip the download, it is very convenient. but I don't know how to do, maybe this is also related to this question. Does anyone have some ideas on it? thanks! Mark Kayra Otaner wrote:Hi, I'm also using gd library to createa on the fly images for my free counter site. I've observed that using fonts (any) is consuming huge amount of cpu and memory. Try to not to use different font files and or try to reduce character count in word or sentences. Also you may create a bacground image and try to load it instead of creating it also on the fly. Best Kayra Otaner --- Tim Sailer wrote: > Is anyone using the imageCreate function to create on the fly > graphics? I'm playing with my new toy, a weather station, and > it's logging to a MySQL database. I'm taking the info, and creating > a graphic button, which, when clicked, will go to graphs, etc. > The problem is the load of the server when creating the graphic. I've run > some stress tests, and the results are *not* pretty. Is there any way to > cache the image for a period of time? > > Tim > > PS: http://www2.buoy.com/weather has the graphic at the top > > -- > Tim Sailer > Application Services > Information Technology Division > Brookhaven National Laboratory (631) 344-3001 > > > > > __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com --- Unsubscribe at http://nyphp.org/list --- --------------------------------- Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes -------------- next part -------------- An HTML attachment was scrubbed... URL: From zaunere at yahoo.com Mon Sep 9 19:07:41 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Mon, 9 Sep 2002 16:07:41 -0700 (PDT) Subject: [nycphp-talk] Search Engine Indexable PHP Sites In-Reply-To: <200209091933.g89JX3Zr008405@parsec.nyphp.org> Message-ID: <20020909230741.12326.qmail@web12804.mail.yahoo.com> Hello, --- "Lynn, Michael " wrote: > Greetings, > > I've developed a LAMP based online catalog for a jewelry company and > for the most part the site is great. The problem is that nobody can > tell it works so well due, in large part to the fact that I > can't get the site indexed by the search engines. I believe this is > because it is a dynamic site and each url on the generated pages > contain references to sub-pages using > pagename.php?variable1=value&variable2=value It certainly doesn't help, but I'm starting to see query strings show up in google (OT: there's a pretty interesting site at http://www.google-watch.org but anyway). Also, submit your site to dmoz.org and you're golden (it worked for NYPHP.org anyway :) > I've read up on a few articles from evolt.org and searchtools > regarding "clean" urls and I have embarked on a redevelopment of the > site to use urls like Speaking of google, search for: php search friendly I found the PromotionBase and Zend titled articles most helpful. There was an issue with the PATH_INFO method, however this seems to be cleared up (supposedly). > http://www.camelotbridal.com/new/index/rings/2 (keep in mind - I'm > currently working on this so don't be shocked by the debug output and > random errors) > > Instead of > > http://www.camelotbridal.com/index.php?p=rings&c=3 I just wrote something like this, and you can pass variables/values and the search engine won't even know: http://site/about/var_value/var2_value/somethingelse/var_value It'll merge the vars/values to the preceeding dirname, then maps to the real ondisk file. I'm not sure how well this will work yet but I've attached the source. It's still dirty and if you have any question don't hesitate to let me know. > My question is this: > > Are there any tools that mimic the search engines indexing behavior > so that I can gauge the effectiveness of my redevelopment? Uhh, ok. So to answer your real question, I have no idea - but I doubt it. For instance, I believe most spiders (ok, google's) are highly guarded trade secrets. While there are many public spiders out there, I don't think you'll ever really find what the "big boys" use. > There should be a tool that mimics > each search engine spider (google, altavista, etc)... If there were, google would go out of business :) but I'm sure there are some good sites dedicated to r-engineering how the spiders crawl. Hans __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: nyphpmapper.inc URL: From zaunere at yahoo.com Mon Sep 9 19:11:15 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Mon, 9 Sep 2002 16:11:15 -0700 (PDT) Subject: [nycphp-talk] find php script In-Reply-To: <200209091946.g89Jk0Zr008444@parsec.nyphp.org> Message-ID: <20020909231115.90859.qmail@web12805.mail.yahoo.com> --- "lory : :" wrote: > I've need of a php form that allow me to insert a FILE(zip), IMAGE, > TITLE, > SUBTITLE, DESCRIPTION and DATE.. > and that make the webpage with all. > (ok also with mysql). For any kind of image/zip/binary/etc file, you need to use a BLOB column type, if you want to do it on your own. > Where i can find a similar project? Photo albums? There are a lot of those: google for: php photo album Hans __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From georgenatalino at yahoo.com Mon Sep 9 21:35:28 2002 From: georgenatalino at yahoo.com (georgenatalino at yahoo.com) Date: Mon, 09 Sep 2002 21:35:28 -0400 Subject: VNC - Virtual Network Computing from AT&T Laboratories Cambridge Message-ID: <3D7D4C60.DA123DA6@yahoo.com> An HTML attachment was scrubbed... URL: From nyphp at altunergil.com Mon Sep 9 21:36:55 2002 From: nyphp at altunergil.com (Oktay Altunergil) Date: Mon, 9 Sep 2002 21:36:55 -0400 Subject: [nycphp-talk] VNC - Virtual Network Computing from AT&T Laboratories Cambridge In-Reply-To: <200209100131.g8A1VnZr008997@parsec.nyphp.org> References: <200209100131.g8A1VnZr008997@parsec.nyphp.org> Message-ID: <20020909213655.510b196b.nyphp@altunergil.com> What about VNC ? oktay On Mon, 09 Sep 2002 21:31:48 -0400 georgenatalino at yahoo.com wrote: > > > http://www.uk.research.att.com/vnc/ > > > > --- Unsubscribe at http://nyphp.org/list --- > > From myersm at optonline.net Mon Sep 9 23:46:03 2002 From: myersm at optonline.net (Mike Myers) Date: Mon, 09 Sep 2002 23:46:03 -0400 Subject: Apache configuration question Message-ID: Within our intranet, my department uses a WinNT sharevolume to store shared documents, mostly PDFs and MS Office files. I want to provide a web frontend that allows users to browse that sharevolume, and the automatic directory indexing performed by Apache is adequate. This also allows me to easily provide URLs to documents from within email messages ( I despise 4MB PowerPoint attachments ). I am running Apache on MacOSX, and the server is also running DAVE, which allows me to mount the WinNT sharevolume. Here's the rub: the files in the mounted directory are owned by my OSX user account, not the "www" or "nobody" account usually applied to the Apache instance. I confirmed that I can browse the sharevolume if I make the necessary owner and group change to the http.conf file, as well as include an Alias that points to the mounted directory. But I wonder if that is a bad security move. Is there a safer way to configure this? I could try changing the owner of the mounted sharevolume to "nobody", but I don't know if that has any impact on the WinNT side of things. I will also ask the folks at Thursby about this. Thanks, Mike M. From danielc at analysisandsolutions.com Tue Sep 10 00:21:38 2002 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Tue, 10 Sep 2002 00:21:38 -0400 Subject: [nycphp-talk] Apache configuration question In-Reply-To: <200209100348.g8A3mLZr009279@parsec.nyphp.org> References: <200209100348.g8A3mLZr009279@parsec.nyphp.org> Message-ID: <20020910042138.GA8742@panix.com> Hey Mike: On Mon, Sep 09, 2002 at 11:48:21PM -0400, Mike Myers wrote: > > Within our intranet, my department uses a WinNT sharevolume to store shared > documents, mostly PDFs and MS Office files. ... snip ... > Here's the rub: the files in the mounted directory are owned by my OSX user > account, not the "www" or "nobody" account usually applied to the Apache > instance. Give the files/directories/shares you want to share read permissions for the "nobody" account. No big deal security wise. You want them to be public. So, if some unforseen circumstance arises, the exposure is the same as if they wound up there with a web browser. I wouldn't change the ownership of the files/directories etc. Keep them owned by you. Making them owned by "nobody" would create a far greater potential for exploitation. --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution 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 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From zaunere at yahoo.com Tue Sep 10 09:31:49 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 10 Sep 2002 06:31:49 -0700 (PDT) Subject: Weekly Report and mysql_db_query() Message-ID: <20020910133149.3583.qmail@web12805.mail.yahoo.com> After reading the weekly Zend news feed, I found this might save some people a lot of pain and increase understanding of MySQL's client libs a bit: http://www.zend.com/lists/php-dev/200209/msg00335.html The whole feed is: http://www.zend.com/zend/week/week102.php Regards, H __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute From zaunere at yahoo.com Tue Sep 10 09:51:12 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 10 Sep 2002 06:51:12 -0700 (PDT) Subject: [nycphp-talk] Apache configuration question In-Reply-To: <200209100348.g8A3mLZr009279@parsec.nyphp.org> Message-ID: <20020910135112.29896.qmail@web12804.mail.yahoo.com> --- Mike Myers wrote: > > Within our intranet, my department uses a WinNT sharevolume to store > shared > documents, mostly PDFs and MS Office files. .... > I am running Apache on MacOSX, and the server is also running DAVE, > which > allows me to mount the WinNT sharevolume. Whew... > I confirmed that I can browse the sharevolume if I make the necessary > owner > and group change to the http.conf file, as well as include an Alias > that > points to the mounted directory. But I wonder if that is a bad > security > move. > > Is there a safer way to configure this? If you need to have the files readable, then they need to be, well, readable. > I could try changing the owner of the mounted sharevolume to > "nobody", but I don't know if that has any impact on the WinNT side > of things. I haven't a clue how WinNT/OS-X all sees this, but it's generally a bad idea to set the owner to an untrusted/generic user (especially nobody - remember, if nobody owns everything, then he's somebody). I generally own everything as root or a specific regular user (that I set up only for the task at hand), and then set group and world perms as needed. Also, don't forget, that the owner of a given asset has special abilities, up and above what ls -al shows as rwx permissions (which is why I'm always finekey about setting the owner - there are also some notes about primary group, etc. but I don't remember all the details). HTH, H __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute From andrew at digitalpulp.com Tue Sep 10 13:03:22 2002 From: andrew at digitalpulp.com (Andrew M. Yochum) Date: Tue, 10 Sep 2002 13:03:22 -0400 (EDT) Subject: Developer position at Digital Pulp In-Reply-To: <200209101351.g8ADpGZr010145@parsec.nyphp.org> Message-ID: Hello All, Many of you are familiar with Digital Pulp - we've been hosting the NYPHP group meetings since the 2nd official meeting. Below you'll find a job description for a developer position we're looking to fill. Thanks! Andrew Reply to: jobs at digitalpulp.com Date: Thu Sep 5th 10:53 Job Type: Project-based/Contract, part-time, potential full-time Minimum Years Experience: 5 Required Skills: Perl, PHP, SQL & RDBMS, Linux, Solaris, OO Design Desirable Skills: Python, Java, C/C++, MySQL, Oracle, XML, XSLT, CVS, HTTP, HTML, Javascript, CMS Architecture (e.g. Zope), Application development Job Description Digital Pulp is looking for a seasoned developer with experience in developing medium sized projects (~4-8 mo.). He or she should: * Have a deep understanding of areas relating to advanced web development such as MVC-style abstaction, performace, scalability, databases, reuse & modularity. * Be able to design, communicate, document, and implement plans targeted towards both technical and non-technical audiences. * Make strategic development decisions based on tradeoff between timeliness, quality, scalability, flexibility and maintainability. * Experience with using and integrating Content Management Systems (CMS) * Be flexible, self-motivating, detail-oriented. Our team is small but intensely focused and very talented - expect to be challenged. Please send your resume to jobs at digitalpulp.com No H1-Bs or 3rd party developers need apply About Digital Pulp Digital Pulp is one of the country's premier web development shops and has been successfully designing and engineering large-scale sites for more than 6 years. Our culture is young, intense and accountable, and continues to be our most attractive characteristic. -- Andrew Yochum Digital Pulp, Inc. 212.679.0676x255 andrew at digitalpulp.com From patrick.fee at baesystems.com Tue Sep 10 13:56:00 2002 From: patrick.fee at baesystems.com (Fee, Patrick J) Date: Tue, 10 Sep 2002 13:56:00 -0400 Subject: [nycphp-talk] find php script Message-ID: I've used Gallery for a number of projects... It creates it's own thumbnails. Also, you can set different levels of authority, letting one person upload pics, while another can write captions. And in fact, you can password protect certain galleries to make then invisible to all but those logged in. Further more, if you've got PHP but don't have a db backend... Gallery works with flat files. I used it for three or four clients, and am currently incorporating it in a MyPHPNuke portal. You can find it here: http://gallery.menalto.com/ Just a thought, If I can help more, touch base off-list. PJF Patrick J. Fee Web & Database Manager BAE SYSTEMS 600 Maryland Ave. SW Suite 600 Washington D.C. 20024 Patrick.Fee at BAESYSTEMS.com Tel: (202) 548-3759 Fax: (202) 608-5970 -----Original Message----- From: Hans Zaunere [mailto:zaunere at yahoo.com] Sent: Monday, September 09, 2002 7:11 PM To: NYPHP Talk Subject: Re: [nycphp-talk] find php script --- "lory : :" wrote: > I've need of a php form that allow me to insert a FILE(zip), IMAGE, > TITLE, > SUBTITLE, DESCRIPTION and DATE.. > and that make the webpage with all. > (ok also with mysql). For any kind of image/zip/binary/etc file, you need to use a BLOB column type, if you want to do it on your own. > Where i can find a similar project? Photo albums? There are a lot of those: google for: php photo album Hans __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com --- Unsubscribe at http://nyphp.org/list --- From mz34 at nyu.edu Wed Sep 11 13:25:29 2002 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Wed, 11 Sep 2002 13:25:29 -0400 Subject: Printing from arrays. In-Reply-To: <200205282150.g4SLojp52041@slipdisc.virul.net> Message-ID: <77BF6DCE-C5AB-11D6-83B3-00039344DCA8@nyu.edu> Hello, Sorry if this is a RTFM question, but this list has been such a great resource I wanted to start here. Just a question about printing from an array using PHP/MySQL My real database and code is a little more complex then this, but to illustrate my problem let me say 1. I have two tables: "images" and "format". They each have two fields "id" and "name". 2. I have a query that says $query= "SELECT images.id, format.id, format.name FROM images, format WHERE images.id=$id"; /* $id is a passed from a from*/ 3. Then I assign the results to an array using $result= mysql_query($query); while ($row=mysql_fetch_array($result) { extract($row); } 4. Then I want to print the results which I would think would go like this: echo "$images.id, $format.id, $format.name"; But it seems these are not the keys in the array, but instead there is just one $id key and the value of that is whatever "id" came last in the query. In other words, if the query read "Select format.id, images.id" then there would be a value in the array for $id equal to "images.id" and if query read "Select images.id, format.id" then there would be a value in the array for the key $id equal to "format_id". I expected there would be two keys in the array: images.id and format.id Am I wrong to expect that? Thanks for any help. I am new to PHP and databases and this code I am using I got from a book, so maybe it is the wrong technique. Matt Zimmerman NYU From mz34 at nyu.edu Wed Sep 11 13:27:36 2002 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Wed, 11 Sep 2002 13:27:36 -0400 Subject: Printing from arrays. In-Reply-To: <200205282150.g4SLojp52041@slipdisc.virul.net> Message-ID: Hello, Sorry if this is a RTFM question, but this list has been such a great resource I wanted to start here. Just a question about printing from an array using PHP/MySQL My real database and code is a little more complex then this, but to illustrate my problem let me say 1. I have two tables: "images" and "format". They each have two fields "id" and "name". 2. I have a query that says $query= "SELECT images.id, format.id, format.name FROM images, format WHERE images.id=$id"; /* $id is a passed from a from*/ 3. Then I assign the results to an array using $result= mysql_query($query); while ($row=mysql_fetch_array($result) { extract($row); } 4. Then I want to print the results which I would think would go like this: echo "$images.id, $format.id, $format.name"; But it seems these are not the keys in the array, but instead there is just one $id key and the value of that is whatever "id" came last in the query. In other words, if the query read "Select format.id, images.id" then there would be a value in the array for $id equal to "images.id" and if query read "Select images.id, format.id" then there would be a value in the array for the key $id equal to "format_id". I expected there would be two keys in the array: images.id and format.id Am I wrong to expect that? Thanks for any help. I am new to PHP and databases and this code I am using I got from a book, so maybe it is the wrong technique. Matt Zimmerman NYU From mz34 at nyu.edu Wed Sep 11 13:51:51 2002 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Wed, 11 Sep 2002 13:51:51 -0400 Subject: [nycphp-talk] Printing from arrays. In-Reply-To: <200209111725.g8BHPgZr012292@parsec.nyphp.org> Message-ID: <268A3939-C5AF-11D6-83B3-00039344DCA8@nyu.edu> Whooops... I realize there is some stuff missing from the query and from the database I illustrate here. I can give you the proper code if needed. I had just tried to dash of a scaled down example quiet quickly, but I realize the code I gave makes no sense. But maybe it doesn't affect the question in hand.. that is... how keys appear in an array if you have similar named fields in different tables. (ie. images.id, format.id) Matt On Wednesday, September 11, 2002, at 01:25 PM, Matthew Zimmerman wrote: > Hello, > > Sorry if this is a RTFM question, but this list has been such a great > resource I wanted to start here. > > Just a question about printing from an array using PHP/MySQL > > My real database and code is a little more complex then this, but to > illustrate my problem let me say > > 1. I have two tables: "images" and "format". They each have two fields > "id" and "name". > > 2. I have a query that says > > $query= "SELECT images.id, format.id, format.name > FROM images, format > WHERE images.id=$id"; /* $id is a passed from a from*/ > > 3. Then I assign the results to an array using > > $result= mysql_query($query); > > while ($row=mysql_fetch_array($result) > > { > extract($row); > > } > > 4. Then I want to print the results which I would think would go like > this: > > echo "$images.id, $format.id, $format.name"; > > But it seems these are not the keys in the array, but instead there is > just one $id key and the value of that is whatever "id" came last in > the query. In other words, if the query read "Select format.id, > images.id" then there would be a value in the array for $id equal to > "images.id" and if query read "Select images.id, format.id" then there > would be a value in the array for the key $id equal to "format_id". > > I expected there would be two keys in the array: images.id and > format.id > > Am I wrong to expect that? > > Thanks for any help. I am new to PHP and databases and this code I am > using I got from a book, so maybe it is the wrong technique. > > > Matt Zimmerman > NYU > > > > --- Unsubscribe at http://nyphp.org/list --- > > From fb at intldef.org Wed Sep 11 14:00:38 2002 From: fb at intldef.org (FB`) Date: Wed, 11 Sep 2002 14:00:38 -0400 Subject: [nycphp-talk] Printing from arrays. References: <200209111727.g8BHRiZr012297@parsec.nyphp.org> Message-ID: <007b01c259bd$23404220$1901a8c0@ybsweb> i am not sure if this is the *right* way to do it, but off the cuff, this should work: $query= "SELECT images.id as images_id, format.id as format_id, format.name as format_name FROM images, format WHERE images.id=$id"; while ($row=mysql_fetch_array($result)){ $images_id = $row["images_id"]; $format_id = $row["format_id"]; $format_name = $row["format_name"]; echo "$images_id, $format_id, $format_name"; echo "
"; } i added the "a.b as a_b" bits because this is what i generally do, and while referring back to $row["a.b"] could work, if your select has just "a.b", i'm not sure it would work in exactly that format... HTH FB` Filips Baumanis ----- Original Message ----- From: "Matthew Zimmerman" To: "NYPHP Talk" Sent: Wednesday, September 11, 2002 1:27 PM Subject: [nycphp-talk] Printing from arrays. > Hello, > > Sorry if this is a RTFM question, but this list has been such a great > resource I wanted to start here. > > Just a question about printing from an array using PHP/MySQL > > My real database and code is a little more complex then this, but to > illustrate my problem let me say > > 1. I have two tables: "images" and "format". They each have two fields > "id" and "name". > > 2. I have a query that says > > $query= "SELECT images.id, format.id, format.name > FROM images, format > WHERE images.id=$id"; /* $id is a passed from a from*/ > > 3. Then I assign the results to an array using > > $result= mysql_query($query); > > while ($row=mysql_fetch_array($result) > > { > extract($row); > > } > > 4. Then I want to print the results which I would think would go like > this: > > echo "$images.id, $format.id, $format.name"; > > But it seems these are not the keys in the array, but instead there is > just one $id key and the value of that is whatever "id" came last in > the query. In other words, if the query read "Select format.id, > images.id" then there would be a value in the array for $id equal to > "images.id" and if query read "Select images.id, format.id" then there > would be a value in the array for the key $id equal to "format_id". > > I expected there would be two keys in the array: images.id and format.id > > Am I wrong to expect that? > > Thanks for any help. I am new to PHP and databases and this code I am > using I got from a book, so maybe it is the wrong technique. > > > Matt Zimmerman > NYU > > > > --- Unsubscribe at http://nyphp.org/list --- > > > From mz34 at nyu.edu Wed Sep 11 13:57:17 2002 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Wed, 11 Sep 2002 13:57:17 -0400 Subject: proper code In-Reply-To: <200209111725.g8BHPgZr012292@parsec.nyphp.org> Message-ID: > Apologies again. Here is some proper code. Again, I am not sure if it > is needed to answer my question, but this is a better example. I have two tables named "images" and "format" Images has three fields: id, name, and format Format has two fields: id, name The "format" field in the "images" table is linked to the "id" field in the "format" database > 2. I have a query that says > > $query= "SELECT images.id, format.id, format.name > FROM images, format > WHERE images.id=$id AND images.format = format.id" > > > 3. Then I assign the results to an array using > > $result= mysql_query($query); > > while ($row=mysql_fetch_array($result) > > { > extract($row); > > } > > 4. Then I want to print the results which I would think would go like > this: > > echo "$images.id, $format.id, $format.name"; > > But it seems these are not the keys in the array, but instead there is > just one $id key and the value of that is whatever "id" came last in > the query. In other words, if the query read "Select format.id, > images.id" then there would be a value in the array for $id equal to > "images.id" and if query read "Select images.id, format.id" then there > would be a value in the array for the key $id equal to "format_id". > > I expected there would be two keys in the array: images.id and > format.id > > Am I wrong to expect that? > > Thanks for any help. I am new to PHP and databases and this code I am > using I got from a book, so maybe it is the wrong technique. > > > Matt Zimmerman > NYU > > > > --- Unsubscribe at http://nyphp.org/list --- > > From jannino at jannino.com Wed Sep 11 13:59:53 2002 From: jannino at jannino.com (Joseph Annino) Date: Wed, 11 Sep 2002 13:59:53 -0400 Subject: [nycphp-talk] Printing from arrays. In-Reply-To: <200209111725.g8BHPgZr012292@parsec.nyphp.org> Message-ID: Only the column name is used as the key for the array. The table name bit is not. So your array keys for that query would be 'id', 'id', and 'name'. Now the two 'id' keys are a problem as they will clobber each other in some unknown way. The way around them is to alias the column names in your query, i.e. $query= "SELECT images.id AS imagesid, format.id AS formatid, format.name FROM images, format WHERE images.id=$id"; /* $id is a passed from a from*/ So yes, your thinking was correct. On 9/11/02 1:25 PM, "Matthew Zimmerman" wrote: > Hello, > > Sorry if this is a RTFM question, but this list has been such a great > resource I wanted to start here. > > Just a question about printing from an array using PHP/MySQL > > My real database and code is a little more complex then this, but to > illustrate my problem let me say > > 1. I have two tables: "images" and "format". They each have two fields > "id" and "name". > > 2. I have a query that says > > $query= "SELECT images.id, format.id, format.name > FROM images, format > WHERE images.id=$id"; /* $id is a passed from a from*/ > > 3. Then I assign the results to an array using > > $result= mysql_query($query); > > while ($row=mysql_fetch_array($result) > > { > extract($row); > > } > > 4. Then I want to print the results which I would think would go like > this: > > echo "$images.id, $format.id, $format.name"; > > But it seems these are not the keys in the array, but instead there is > just one $id key and the value of that is whatever "id" came last in > the query. In other words, if the query read "Select format.id, > images.id" then there would be a value in the array for $id equal to > "images.id" and if query read "Select images.id, format.id" then there > would be a value in the array for the key $id equal to "format_id". > > I expected there would be two keys in the array: images.id and format.id > > Am I wrong to expect that? > > Thanks for any help. I am new to PHP and databases and this code I am > using I got from a book, so maybe it is the wrong technique. > > > Matt Zimmerman > NYU > > > > --- Unsubscribe at http://nyphp.org/list --- > > From ian at plusfour.org Wed Sep 11 14:03:19 2002 From: ian at plusfour.org (ian forsyth) Date: Wed, 11 Sep 2002 14:03:19 -0400 Subject: [nycphp-talk] Printing from arrays. References: <200209111727.g8BHRiZr012297@parsec.nyphp.org> Message-ID: <3D7F8567.7050305@plusfour.org> Matthew Zimmerman wrote: >Hello, > >Sorry if this is a RTFM question, but this list has been such a great >resource I wanted to start here. > >Just a question about printing from an array using PHP/MySQL > in trouble shooting arrays try print_r($row); you will be able to see the keys, and data of the array.. >2. I have a query that says > >$query= "SELECT images.id, format.id, format.name >FROM images, format >WHERE images.id=$id"; /* $id is a passed from a from*/ > > You could try aliases the field in the sql statement, meaning select fieldname as aliasname. select images.id as imageid, format.id, format.name from images, formate where images.id = $id"; /* look into $_POST['id'] or $_GET['id'] but that is beside the point */ >3. Then I assign the results to an array using > >$result= mysql_query($query); > >while ($row=mysql_fetch_array($result) > > { > extract($row); > echo $imageid . ", " . $id . ", " . $name; > } > the key to the array is the field name. never the tablename.fieldname unless of course you alias the field that way.. . regards, Ian > > > >--- Unsubscribe at http://nyphp.org/list --- > > > > > > From cahoyos at us.ibm.com Wed Sep 11 14:49:36 2002 From: cahoyos at us.ibm.com (Carlos A Hoyos) Date: Wed, 11 Sep 2002 14:49:36 -0400 Subject: [nycphp-talk] Printing from arrays. Message-ID: 1- It's a good idea to use alias in the query to make it easier to read: $query= "SELECT images.id as imageid, format.id as formatid, format.name as formatname FROM images, format WHERE images.id=$id"; /* $id is a passed from a from*/ 2- If you use extract, variables $imageid, $formatid and $formatname will have the expected values. You can also use $row["imageid"], $row["formatid"] and $row["formatname"], without having to use extract. 3- Just a side note: If you're building the query out of data received from the outside, take necessary precautions validating it, as well as handling any errors in case the resulting query is bad/empty. One backdoor to hack pages, for example, is to craft a URL to your page passing $id= "3; delete from mysql.user where 1=1" . If executed, this query could do some damage to your db. Matthew Zimmerman To: NYPHP Talk cc: 09/11/2002 01:25 Subject: [nycphp-talk] Printing from arrays. PM Please respond to talk Hello, Sorry if this is a RTFM question, but this list has been such a great resource I wanted to start here. Just a question about printing from an array using PHP/MySQL My real database and code is a little more complex then this, but to illustrate my problem let me say 1. I have two tables: "images" and "format". They each have two fields "id" and "name". 2. I have a query that says $query= "SELECT images.id, format.id, format.name FROM images, format WHERE images.id=$id"; /* $id is a passed from a from*/ 3. Then I assign the results to an array using $result= mysql_query($query); while ($row=mysql_fetch_array($result) { extract($row); } 4. Then I want to print the results which I would think would go like this: echo "$images.id, $format.id, $format.name"; But it seems these are not the keys in the array, but instead there is just one $id key and the value of that is whatever "id" came last in the query. In other words, if the query read "Select format.id, images.id" then there would be a value in the array for $id equal to "images.id" and if query read "Select images.id, format.id" then there would be a value in the array for the key $id equal to "format_id". I expected there would be two keys in the array: images.id and format.id Am I wrong to expect that? Thanks for any help. I am new to PHP and databases and this code I am using I got from a book, so maybe it is the wrong technique. Matt Zimmerman NYU --- Unsubscribe at http://nyphp.org/list --- From mz34 at nyu.edu Wed Sep 11 15:11:25 2002 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Wed, 11 Sep 2002 15:11:25 -0400 Subject: Thanks Carlos In-Reply-To: <200209111850.g8BIo8Zr012456@parsec.nyphp.org> Message-ID: <4493998B-C5BA-11D6-83B3-00039344DCA8@nyu.edu> I am quite new to all of this so this advice has been great. Matt On Wednesday, September 11, 2002, at 02:50 PM, Carlos A Hoyos wrote: > > 1- It's a good idea to use alias in the query to make it easier to > read: > > $query= "SELECT images.id as imageid, format.id as formatid, > format.name as > formatname > FROM images, format > WHERE images.id=$id"; /* $id is a passed from a from*/ > > 2- If you use extract, variables $imageid, $formatid and $formatname > will > have the expected values. You can also use > $row["imageid"], $row["formatid"] and $row["formatname"], without > having to > use extract. > > 3- Just a side note: If you're building the query out of data received > from > the outside, take necessary precautions validating it, as well as > handling > any errors in case the resulting query is bad/empty. > > One backdoor to hack pages, for example, is to craft a URL to your page > passing > $id= "3; delete from mysql.user where 1=1" . If executed, this query > could > do some damage to your db. > > > > > > > Matthew Zimmerman > To: NYPHP Talk > > cc: > 09/11/2002 01:25 Subject: [nycphp-talk] > Printing from arrays. > PM > Please respond to > talk > > > > > > Hello, > > Sorry if this is a RTFM question, but this list has been such a great > resource I wanted to start here. > > Just a question about printing from an array using PHP/MySQL > > My real database and code is a little more complex then this, but to > illustrate my problem let me say > > 1. I have two tables: "images" and "format". They each have two fields > "id" and "name". > > 2. I have a query that says > > $query= "SELECT images.id, format.id, format.name > FROM images, format > WHERE images.id=$id"; /* $id is a passed from a from*/ > > 3. Then I assign the results to an array using > > $result= mysql_query($query); > > while ($row=mysql_fetch_array($result) > > { > extract($row); > > } > > 4. Then I want to print the results which I would think would go like > this: > > echo "$images.id, $format.id, $format.name"; > > But it seems these are not the keys in the array, but instead there is > just one $id key and the value of that is whatever "id" came last in > the query. In other words, if the query read "Select format.id, > images.id" then there would be a value in the array for $id equal to > "images.id" and if query read "Select images.id, format.id" then there > would be a value in the array for the key $id equal to "format_id". > > I expected there would be two keys in the array: images.id and > format.id > > Am I wrong to expect that? > > Thanks for any help. I am new to PHP and databases and this code I am > using I got from a book, so maybe it is the wrong technique. > > > Matt Zimmerman > NYU > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list --- > > From zaunere at yahoo.com Wed Sep 11 19:08:10 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 11 Sep 2002 16:08:10 -0700 (PDT) Subject: PHP Shopping Cart Message-ID: <20020911230810.97335.qmail@web12802.mail.yahoo.com> I'm looking for a PHP shopping cart for a client, based on MySQL if possible. It should be fairly complete, with most of the bells and whistles. Recommendations? Thanks guys, Hans __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute From adam at ecamp.net Wed Sep 11 19:23:01 2002 From: adam at ecamp.net (adam) Date: Wed, 11 Sep 2002 19:23:01 -0400 Subject: [nycphp-talk] PHP Shopping Cart In-Reply-To: <200209112308.g8BN8EZr012724@parsec.nyphp.org> Message-ID: http://www.phpshop.org/ is pretty complete.. but may be overkill.. Check on freshmeat. -----Original Message----- From: Hans Zaunere [mailto:zaunere at yahoo.com] Sent: Wednesday, September 11, 2002 7:08 PM To: NYPHP Talk Subject: [nycphp-talk] PHP Shopping Cart I'm looking for a PHP shopping cart for a client, based on MySQL if possible. It should be fairly complete, with most of the bells and whistles. Recommendations? Thanks guys, Hans __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute --- Unsubscribe at http://nyphp.org/list --- From andrew at digitalpulp.com Wed Sep 11 17:36:02 2002 From: andrew at digitalpulp.com (Andrew M. Yochum) Date: Wed, 11 Sep 2002 17:36:02 -0400 (EDT) Subject: [nycphp-talk] PHP Shopping Cart In-Reply-To: <200209112308.g8BN8EZr012724@parsec.nyphp.org> Message-ID: Hans- I'd recommend osCommerce (http://www.oscommerce.com/)... it is pretty complete and has a number of well-trafficked sites running it, and most importantly, the code is very clear. I believe documentation is still in the works though... phpShop (http://phpshop.org/) was looking pretty promising for a while, but seems to have stalled almost a year ago... Andrew On Wed, 11 Sep 2002, Hans Zaunere wrote: > > I'm looking for a PHP shopping cart for a client, based on MySQL if > possible. It should be fairly complete, with most of the bells and > whistles. Recommendations? > > Thanks guys, > > Hans > > > __________________________________________________ > Yahoo! - We Remember > 9-11: A tribute to the more than 3,000 lives lost > http://dir.remember.yahoo.com/tribute > > > --- Unsubscribe at http://nyphp.org/list --- > > From markjia at yahoo.com Wed Sep 11 22:05:33 2002 From: markjia at yahoo.com (Mark Jia) Date: Wed, 11 Sep 2002 19:05:33 -0700 (PDT) Subject: [nycphp-talk] PHP Shopping Cart In-Reply-To: <200209112323.g8BNN9Zr012743@parsec.nyphp.org> Message-ID: <20020912020533.75840.qmail@web20417.mail.yahoo.com> I am modifying this one:http://www.oscommerce.com now, it was recommended by some one on this board. It is good one. Mark adam wrote:http://www.phpshop.org/ is pretty complete.. but may be overkill.. Check on freshmeat. -----Original Message----- From: Hans Zaunere [mailto:zaunere at yahoo.com] Sent: Wednesday, September 11, 2002 7:08 PM To: NYPHP Talk Subject: [nycphp-talk] PHP Shopping Cart I'm looking for a PHP shopping cart for a client, based on MySQL if possible. It should be fairly complete, with most of the bells and whistles. Recommendations? Thanks guys, Hans __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute --- Unsubscribe at http://nyphp.org/list --- --------------------------------- Do you Yahoo!? Yahoo! News - Today's headlines -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at nettmedia.com Thu Sep 12 09:26:33 2002 From: jim at nettmedia.com (Jim Musil) Date: Thu, 12 Sep 2002 09:26:33 -0400 Subject: [nycphp-talk] PHP Shopping Cart In-Reply-To: <200209112308.g8BN8EZr012724@parsec.nyphp.org> Message-ID: I used OSCommerce as well, but I had to rewrite alot of it from scratch to do what I wanted it to do -- Multiple delivery addresses, custom gift boxes, gift messaging. I will say that the code was laid out well and it all went pretty smoothly. Although I still don't understand why it stored the user's password in plain text in the cookie... Jim Musil -----Original Message----- From: Hans Zaunere [mailto:zaunere at yahoo.com] Sent: Wednesday, September 11, 2002 7:08 PM To: NYPHP Talk Subject: [nycphp-talk] PHP Shopping Cart I'm looking for a PHP shopping cart for a client, based on MySQL if possible. It should be fairly complete, with most of the bells and whistles. Recommendations? Thanks guys, Hans __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute --- Unsubscribe at http://nyphp.org/list --- From LarryC at indexstock.com Thu Sep 12 11:55:14 2002 From: LarryC at indexstock.com (Larry Chuon) Date: Thu, 12 Sep 2002 11:55:14 -0400 Subject: [nycphp-talk] PHP Shopping Cart Message-ID: <86713EAB93BD5F40B94A0C8E604C7C91AEB618@index-exchange.indexstock.com> FYI, My team at ossuite.org/lechuon.com will release a newly integrated suite of products, which include osCommerce 2.1 and Nola within the next 1.5 to 2 month. Many components are re-written to meet the new framework. We will then plan to integrate some sort of CRM/XRM module as well. If anybody interested in co-developing ossuite(tm), please email me directly. Everyone is welcomed. Experience in CRM and CMS is a big plus. PHP and MySQL experience is a must. OSSuite is purely based on LAMP. Larry -----Original Message----- From: Jim Musil [mailto:jim at nettmedia.com] Sent: Thursday, September 12, 2002 9:27 AM To: NYPHP Talk Subject: RE: [nycphp-talk] PHP Shopping Cart I used OSCommerce as well, but I had to rewrite alot of it from scratch to do what I wanted it to do -- Multiple delivery addresses, custom gift boxes, gift messaging. I will say that the code was laid out well and it all went pretty smoothly. Although I still don't understand why it stored the user's password in plain text in the cookie... Jim Musil -----Original Message----- From: Hans Zaunere [mailto:zaunere at yahoo.com] Sent: Wednesday, September 11, 2002 7:08 PM To: NYPHP Talk Subject: [nycphp-talk] PHP Shopping Cart I'm looking for a PHP shopping cart for a client, based on MySQL if possible. It should be fairly complete, with most of the bells and whistles. Recommendations? Thanks guys, Hans __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute --- Unsubscribe at http://nyphp.org/list --- From MLynn at exchange.ml.com Thu Sep 12 12:20:28 2002 From: MLynn at exchange.ml.com (Lynn, Michael (DCS)) Date: Thu, 12 Sep 2002 12:20:28 -0400 Subject: [nycphp-talk] PHP Shopping Cart Message-ID: <8FA07D8665A9D511B80E00B0D068A1510293A7B0@ehope16.hew.us.ml.com> If you're looking for something VERY simple with built-in paypal integration, I've written http://www.sourceforge.net/projects/phpaypal Mike -----Original Message----- From: Larry Chuon [mailto:LarryC at indexstock.com] Sent: Thursday, September 12, 2002 11:59 AM To: NYPHP Talk Subject: RE: [nycphp-talk] PHP Shopping Cart FYI, My team at ossuite.org/lechuon.com will release a newly integrated suite of products, which include osCommerce 2.1 and Nola within the next 1.5 to 2 month. Many components are re-written to meet the new framework. We will then plan to integrate some sort of CRM/XRM module as well. If anybody interested in co-developing ossuite(tm), please email me directly. Everyone is welcomed. Experience in CRM and CMS is a big plus. PHP and MySQL experience is a must. OSSuite is purely based on LAMP. Larry -----Original Message----- From: Jim Musil [mailto:jim at nettmedia.com] Sent: Thursday, September 12, 2002 9:27 AM To: NYPHP Talk Subject: RE: [nycphp-talk] PHP Shopping Cart I used OSCommerce as well, but I had to rewrite alot of it from scratch to do what I wanted it to do -- Multiple delivery addresses, custom gift boxes, gift messaging. I will say that the code was laid out well and it all went pretty smoothly. Although I still don't understand why it stored the user's password in plain text in the cookie... Jim Musil -----Original Message----- From: Hans Zaunere [mailto:zaunere at yahoo.com] Sent: Wednesday, September 11, 2002 7:08 PM To: NYPHP Talk Subject: [nycphp-talk] PHP Shopping Cart I'm looking for a PHP shopping cart for a client, based on MySQL if possible. It should be fairly complete, with most of the bells and whistles. Recommendations? Thanks guys, Hans __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute --- Unsubscribe at http://nyphp.org/list --- From liquidm3 at hotmail.com Thu Sep 12 13:14:10 2002 From: liquidm3 at hotmail.com (Ted Shieh) Date: Thu, 12 Sep 2002 13:14:10 -0400 Subject: phpSQLGen 0.4.0 & LiquidClassifiedsXML 0.9.0 released Message-ID: I've released phpSQLGen 0.4.0 and LiquidClassifiedsXML 0.9.0. For more information about phpSQLGen, see http://www.liquidmarkets.com/?name=bb&t=2 For more information about LiquidClassifiedsXML, see http://www.liquidmarkets.com/?name=bb&t=5 New in this release of phpSQLGen: 1) Added generate function to TableMaker which returns a string instead of sending output to the screen 2) Added XML as an output option 3) Removed PEAR HTML_Table dependency 4) Added <> format option for fields that are not displayed 5) Streamlined generation of HTML tables or XML from arrays phpSQLGen's XML generation capability is used by the LiquidClassifieds web service to produce XML for the LiquidClassifiedsXML client to parse (using expat). Also, I'm looking for partners (who would run web service clients) to provide classified ads in New York and the surrounding areas. Ted LiquidMarkets Financial data and free classifieds http://www.liquidmarkets.com _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From markjia at yahoo.com Thu Sep 12 15:14:34 2002 From: markjia at yahoo.com (Mark Jia) Date: Thu, 12 Sep 2002 12:14:34 -0700 (PDT) Subject: [nycphp-talk] PHP Shopping Cart In-Reply-To: <200209121710.g8CHAAZr016960@parsec.nyphp.org> Message-ID: <20020912191434.73051.qmail@web20420.mail.yahoo.com> Thanks, do you know other good but low cost merchant account provider? is paypal good? "Lynn, Michael " wrote:If you're looking for something VERY simple with built-in paypal integration, I've written http://www.sourceforge.net/projects/phpaypal Mike -----Original Message----- From: Larry Chuon [mailto:LarryC at indexstock.com] Sent: Thursday, September 12, 2002 11:59 AM To: NYPHP Talk Subject: RE: [nycphp-talk] PHP Shopping Cart FYI, My team at ossuite.org/lechuon.com will release a newly integrated suite of products, which include osCommerce 2.1 and Nola within the next 1.5 to 2 month. Many components are re-written to meet the new framework. We will then plan to integrate some sort of CRM/XRM module as well. If anybody interested in co-developing ossuite(tm), please email me directly. Everyone is welcomed. Experience in CRM and CMS is a big plus. PHP and MySQL experience is a must. OSSuite is purely based on LAMP. Larry -----Original Message----- From: Jim Musil [mailto:jim at nettmedia.com] Sent: Thursday, September 12, 2002 9:27 AM To: NYPHP Talk Subject: RE: [nycphp-talk] PHP Shopping Cart I used OSCommerce as well, but I had to rewrite alot of it from scratch to do what I wanted it to do -- Multiple delivery addresses, custom gift boxes, gift messaging. I will say that the code was laid out well and it all went pretty smoothly. Although I still don't understand why it stored the user's password in plain text in the cookie... Jim Musil -----Original Message----- From: Hans Zaunere [mailto:zaunere at yahoo.com] Sent: Wednesday, September 11, 2002 7:08 PM To: NYPHP Talk Subject: [nycphp-talk] PHP Shopping Cart I'm looking for a PHP shopping cart for a client, based on MySQL if possible. It should be fairly complete, with most of the bells and whistles. Recommendations? Thanks guys, Hans __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute --- Unsubscribe at http://nyphp.org/list --- --------------------------------- Do you Yahoo!? Yahoo! News - Today's headlines -------------- next part -------------- An HTML attachment was scrubbed... URL: From j_r_sanchez at yahoo.com Thu Sep 12 19:51:20 2002 From: j_r_sanchez at yahoo.com (jose sanchez) Date: Thu, 12 Sep 2002 16:51:20 -0700 (PDT) Subject: PHP and Oracle 8i Message-ID: <20020912235120.57457.qmail@web11705.mail.yahoo.com> Hello: I have looked at the faq and cant find the answer, all I seem to find is the question, everywhere and no help for stupid people like me. I already installed php on a RH7.2 system with the rpm. Everywhere I look says I have to compile php with oracle support. My question is: Since I have oracle already installed is there a way to edit any file like php.ini to enable oracle 8i support or do I HAVE to compile a php in order to get it working? Thanks in advance for your help. ===== "An ounce of gold cannot buy an ounce of time." - Anonymous www.whmicro.com __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com From zaunere at yahoo.com Thu Sep 12 20:34:25 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 12 Sep 2002 17:34:25 -0700 (PDT) Subject: [nycphp-talk] PHP and Oracle 8i In-Reply-To: <200209122351.g8CNpPZr017454@parsec.nyphp.org> Message-ID: <20020913003425.77246.qmail@web12801.mail.yahoo.com> > I already installed php on a RH7.2 system with the > rpm. Everywhere I look says I have to compile php > with oracle support. You do. > My question is: Since I have > oracle already installed is there a way to edit any > file like php.ini to enable oracle 8i support or do I > HAVE to compile a php in order to get it working? I'm almost positive the RPM of PHP doesn't include oci8 support (a phpinfo() call would confirm this). So, you'll need to compile php with something like: ./configure --with-oci8=/home/oracle/OraHome1 with the Oracle client libs installed minimally and /home/oracle/OraHome1/lib in /etc/ld.so.conf. Be sure to run ldconfig afterwards, of course, and these are only the default Oracle directories for stuff. H __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com From chalu at egenius.com Thu Sep 12 22:27:47 2002 From: chalu at egenius.com (Chalu Kim) Date: Thu, 12 Sep 2002 22:27:47 -0400 Subject: [nycphp-talk] PHP and Oracle 8i Message-ID: <200209130227.g8D2Rl33027323@flatiron.egenius.com> You can move Oracle shared library from another server. I have a oracle.so but it was compiled with 6.2. It won't work. You need a shared library in /usr/lib/php4 for Oracle access. So, the quick answer is to compile. It is straightforward. jose sanchez wrote .. > Hello: > > I have looked at the faq and cant find the answer, all > I seem to find is the question, everywhere and no help > for stupid people like me. > > I already installed php on a RH7.2 system with the > rpm. Everywhere I look says I have to compile php > with oracle support. My question is: Since I have > oracle already installed is there a way to edit any > file like php.ini to enable oracle 8i support or do I > HAVE to compile a php in order to get it working? > > Thanks in advance for your help. > > > > > ===== > "An ounce of gold cannot buy an ounce of time." > - Anonymous > > > www.whmicro.com > > __________________________________________________ > Do you Yahoo!? > Yahoo! News - Today's headlines > http://news.yahoo.com > > > --- Unsubscribe at http://nyphp.org/list --- From zaunere at yahoo.com Fri Sep 13 10:44:29 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Fri, 13 Sep 2002 07:44:29 -0700 (PDT) Subject: PHP Project Management System Message-ID: <20020913144429.59413.qmail@web12805.mail.yahoo.com> Hello again, Thanks for all the shopping cart recommendations - it's working out well. Now, can I get some recommendations for Project Management Systems? Something akin to a web-enabled MS Project (I know there is a web-enabled version of Project, but we don't have the budget for it right now), and we need something as "pre-cooked" as possible (I don't have time to develop this one at all). Free or commercial is fine (although the cheaper the better). Thanks again folks, Hans __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com From jim at alliedtours.com Fri Sep 13 11:03:29 2002 From: jim at alliedtours.com (Jim Suto) Date: Fri, 13 Sep 2002 11:03:29 -0400 Subject: [nycphp-talk] PHP Project Management System In-Reply-To: <200209131444.g8DEiYZr018823@parsec.nyphp.org> Message-ID: www.phprojekt.com Jim -----Original Message----- From: Hans Zaunere [mailto:zaunere at yahoo.com] Sent: Friday, September 13, 2002 10:45 AM To: NYPHP Talk Subject: [nycphp-talk] PHP Project Management System Hello again, Thanks for all the shopping cart recommendations - it's working out well. Now, can I get some recommendations for Project Management Systems? Something akin to a web-enabled MS Project (I know there is a web-enabled version of Project, but we don't have the budget for it right now), and we need something as "pre-cooked" as possible (I don't have time to develop this one at all). Free or commercial is fine (although the cheaper the better). Thanks again folks, Hans __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com --- Unsubscribe at http://nyphp.org/list --- From nyphp at jimbishop.org Fri Sep 13 11:11:44 2002 From: nyphp at jimbishop.org (nyphp at jimbishop.org) Date: Fri, 13 Sep 2002 08:11:44 -0700 (PDT) Subject: [nycphp-talk] PHP Project Management System In-Reply-To: <200209131444.g8DEiYZr018823@parsec.nyphp.org> Message-ID: > Now, can I get some recommendations for Project Management Systems? > Something akin to a web-enabled MS Project (I know there is a > web-enabled version of Project, but we don't have the budget for it > right now), and we need something as "pre-cooked" as possible (I don't > have time to develop this one at all). Free or commercial is fine > (although the cheaper the better). I've been playing with PHPProjekt 3.3 lately. It seems pretty good. http://www.phprojekt.com/ || jim.bishop || i heart n y || http://www.jimbishop.org/tidbytes/ From chalu at egenius.com Fri Sep 13 10:10:25 2002 From: chalu at egenius.com (Chalu Kim) Date: Fri, 13 Sep 2002 10:10:25 -0400 Subject: [nycphp-talk] PHP Project Management System Message-ID: <200209131410.g8DEAPi5000717@flatiron.egenius.com> MS Project is more like personal project schedule development tool. phpprojekt is more like schedule sharing as an intranet. It takes too much effort to get a good looking and working environments going. In other words, both packages don't quite do the job. You should be able to; 1. make schedules and share with others 2. track time 3. create discussions on event or item 4. share properties such as document and version them 5. notify others if there are changes (like by email) 6. approve and checklist (this is a hard one) Plone (aka Zope CMS) works like this except #2, and #5. Although it is not terribly difficult. Probably a day's work. There is even collector (bug tracker) I know of a commercial one well made. I will need to get back to you with the name, Hans. "Jim Suto" wrote .. > www.phprojekt.com > > > Jim > > -----Original Message----- > From: Hans Zaunere [mailto:zaunere at yahoo.com] > Sent: Friday, September 13, 2002 10:45 AM > To: NYPHP Talk > Subject: [nycphp-talk] PHP Project Management System > > > > Hello again, > > Thanks for all the shopping cart recommendations - it's working out > well. > > Now, can I get some recommendations for Project Management Systems? > Something akin to a web-enabled MS Project (I know there is a > web-enabled version of Project, but we don't have the budget for it > right now), and we need something as "pre-cooked" as possible (I don't > have time to develop this one at all). Free or commercial is fine > (although the cheaper the better). > > Thanks again folks, > > Hans > > __________________________________________________ > Do you Yahoo!? > Yahoo! News - Today's headlines > http://news.yahoo.com > > > > > > > > > --- Unsubscribe at http://nyphp.org/list --- From chalu at egenius.com Fri Sep 13 13:14:15 2002 From: chalu at egenius.com (chalu) Date: Fri, 13 Sep 2002 13:14:15 -0400 Subject: [nycphp-talk] PHP Project Management System References: <200209131514.g8DFEvZr018879@parsec.nyphp.org> Message-ID: <3D821CE7.2020509@egenius.com> Here we go. It is an ASP model. Not cheap. http://www.hotkoko.com/ It is quite complete and I have used it with another development firm. It is written in Cold fusion. It has very appealing interfaces. Chalu Kim wrote: >MS Project is more like personal project schedule development tool. phpprojekt is more like schedule sharing as an intranet. It takes too much effort to get a good looking and working environments going. > >In other words, both packages don't quite do the job. > >You should be able to; >1. make schedules and share with others >2. track time >3. create discussions on event or item >4. share properties such as document and version them >5. notify others if there are changes (like by email) >6. approve and checklist (this is a hard one) > >Plone (aka Zope CMS) works like this except #2, and #5. Although it is not terribly difficult. Probably a day's work. There is even collector (bug tracker) I know of a commercial one well made. I will need to get back to you with the name, Hans. > >"Jim Suto" wrote .. > > >>www.phprojekt.com >> >> >>Jim >> >>-----Original Message----- >>From: Hans Zaunere [mailto:zaunere at yahoo.com] >>Sent: Friday, September 13, 2002 10:45 AM >>To: NYPHP Talk >>Subject: [nycphp-talk] PHP Project Management System >> >> >> >>Hello again, >> >>Thanks for all the shopping cart recommendations - it's working out >>well. >> >>Now, can I get some recommendations for Project Management Systems? >>Something akin to a web-enabled MS Project (I know there is a >>web-enabled version of Project, but we don't have the budget for it >>right now), and we need something as "pre-cooked" as possible (I don't >>have time to develop this one at all). Free or commercial is fine >>(although the cheaper the better). >> >>Thanks again folks, >> >>Hans >> >>__________________________________________________ >>Do you Yahoo!? >>Yahoo! News - Today's headlines >>http://news.yahoo.com >> >> >> >> >> >> >> >> >> >> >> > > > > >--- Unsubscribe at http://nyphp.org/list --- > > > > > -- Chalu Kim eGENIUS 20 Jay Street, 1002 Brooklyn, New York 11201 chalu at egenius.com (718) 858-0142 (718) 858-2434 FAX www.egenius.com From georgenatalino at yahoo.com Sat Sep 14 20:10:28 2002 From: georgenatalino at yahoo.com (George Natalino) Date: Sat, 14 Sep 2002 17:10:28 -0700 (PDT) Subject: Fwd: [nylug-announce] New York Linux Users Grp. Sept. meeting, 9/18, Hans Zaunere (New York PHP) @ 6:30pm Message-ID: <20020915001028.22844.qmail@web11404.mail.yahoo.com> Note: forwarded message attached. ================================================ Regards George Natalino georgenatalino at yahoo.com VoiceMail/Fax: (212) 894-3714 x1001 --------------------------------- Do you Yahoo!? Yahoo! News - Today's headlines -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded message was scrubbed... From: Subject: [nylug-announce] New York Linux Users Grp. Sept. meeting, 9/18, Hans Zaunere (New York PHP) @ 6:30pm Date: Tue, 10 Sep 2002 22:17:54 -0400 (EDT) Size: 8222 URL: From georgenatalino at yahoo.com Sat Sep 14 21:35:54 2002 From: georgenatalino at yahoo.com (George Natalino) Date: Sat, 14 Sep 2002 18:35:54 -0700 (PDT) Subject: Fwd: XML SIG 17 September: Elliotte Rusty Harold on What's Wrong with XML APIs (and How to Fix Them) Message-ID: <20020915013554.42894.qmail@web11408.mail.yahoo.com> Note: forwarded message attached. ================================================ Regards George Natalino georgenatalino at yahoo.com VoiceMail/Fax: (212) 894-3714 x1001 --------------------------------- Do you Yahoo!? Yahoo! News - Today's headlines -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded message was scrubbed... From: Walter Perry Subject: XML SIG 17 September: Elliotte Rusty Harold on What's Wrong with XML APIs (and How to Fix Them) Date: Mon, 09 Sep 2002 08:14:08 -0400 Size: 3516 URL: From georgenatalino at yahoo.com Mon Sep 16 10:39:27 2002 From: georgenatalino at yahoo.com (georgenatalino at yahoo.com) Date: Mon, 16 Sep 2002 10:39:27 -0400 Subject: Internet World Exhibit Pass - Use priority code M64 Message-ID: <3D85ED1F.1E0D5A72@yahoo.com> An HTML attachment was scrubbed... URL: From soazine at erols.com Wed Sep 18 01:39:28 2002 From: soazine at erols.com (Phil Powell) Date: Wed, 18 Sep 2002 01:39:28 -0400 Subject: HTTP_REFERER does not work - alternatives? Message-ID: <001601c25ed5$c17b3f40$dcbe6444@scandinawa1bo6> URL: http://valsignalandet.com/my/dummy.html http://valsignalandet.com/my/layout.html Consider this: I have this URL, dummy.html, that only has a link that you click onto that takes you to layout.html, a framed HTML document with one PHP script, layout_bottom.php. This script, layout_bottom.php, attempts to capture the value of $HTTP_REFERER: 0) $refURL = $HTTP_REFERER; else $refURL = $SCRIPT_NAME; ?> However, $HTTP_REFERER is always null, even when I came from dummy.html it is still null, never receiving the previous URL value. Does anyone else out there know an alternative to $HTTP_REFERER? I've worked with it for years and it has constantly, CONSTANTLY failed me every single time, in PHP, TCL, ASP, Java, everything! What else can I use to retain the previous URL that calls layout.html? Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From sharpwit at hotmail.com Wed Sep 18 04:16:48 2002 From: sharpwit at hotmail.com ((kris)janis p gale) Date: Wed, 18 Sep 2002 04:16:48 -0400 Subject: [nycphp-talk] HTTP_REFERER does not work - alternatives? References: <200209180541.g8I5fEZr032672@parsec.nyphp.org> Message-ID: > However, $HTTP_REFERER is always null, even when I came from dummy.html > it is still null, never receiving the previous URL value. have you tried $_SERVER["HTTP_REFERER"] or $HTTP_SERVER_VARS["HTTP_REFERER"] ? chances are, http_referer is not an auto-global. From zaunere at yahoo.com Wed Sep 18 08:35:53 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 18 Sep 2002 05:35:53 -0700 (PDT) Subject: Tonight! nyphp2nylug Presentation Message-ID: <20020918123553.22747.qmail@web12803.mail.yahoo.com> Good morning, Just a quick reminder that NYPHP will be giving an introductory talk to NYLUG tonight at 6:30pm, at IBM's building at 57th and Madison (9th floor). Details available at http://nylug.org IMPORTANT: If you have not attended a NYLUG meeting recently, you MUST RSVP at http://rsvp.nylug.org - It's not too late if you do it NOW. IBM's security will not let you in if you're not on the list. Hope to see everyone there! Hans __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com From nyphp at altunergil.com Wed Sep 18 10:35:57 2002 From: nyphp at altunergil.com (Oktay Altunergil) Date: Wed, 18 Sep 2002 10:35:57 -0400 Subject: [nycphp-talk] Tonight! nyphp2nylug Presentation In-Reply-To: <200209181235.g8ICZvZr033345@parsec.nyphp.org> References: <200209181235.g8ICZvZr033345@parsec.nyphp.org> Message-ID: <20020918103557.2d47bbdc.nyphp@altunergil.com> Do you have any material in the presentation about the PHP License ? People might possibly have comments about how PHP4 is not Free Software (as described on fsf.org) :) Oktay On Wed, 18 Sep 2002 08:35:57 -0400 Hans Zaunere wrote: > > Good morning, > > Just a quick reminder that NYPHP will be giving an introductory talk to > NYLUG tonight at 6:30pm, at IBM's building at 57th and Madison (9th > floor). Details available at http://nylug.org > > IMPORTANT: If you have not attended a NYLUG meeting recently, you MUST > RSVP at http://rsvp.nylug.org - It's not too late if you do it NOW. > IBM's security will not let you in if you're not on the list. > > Hope to see everyone there! > > Hans > > > __________________________________________________ > Do you Yahoo!? > Yahoo! News - Today's headlines > http://news.yahoo.com > > > --- Unsubscribe at http://nyphp.org/list --- > > From ron at vnetworx.net Wed Sep 18 11:12:12 2002 From: ron at vnetworx.net (Ron Guerin) Date: 18 Sep 2002 11:12:12 -0400 Subject: [nycphp-talk] Tonight! nyphp2nylug Presentation In-Reply-To: <200209181235.g8ICZvZr033345@parsec.nyphp.org> References: <200209181235.g8ICZvZr033345@parsec.nyphp.org> Message-ID: <1032361933.7875.55689.camel@amory> On Wed, 2002-09-18 at 08:35, Hans Zaunere wrote: > > Good morning, > > Just a quick reminder that NYPHP will be giving an introductory talk to > NYLUG tonight at 6:30pm, at IBM's building at 57th and Madison (9th > floor). Details available at http://nylug.org > > IMPORTANT: If you have not attended a NYLUG meeting recently, you MUST > RSVP at http://rsvp.nylug.org - It's not too late if you do it NOW. The list goes out at 3:30pm sharp to IBM. After that, you can still attend the meeting, but you'll have to sign in like the pre-9/11 days. If anyone has a problem (not that anyone will), we'll come down and get you in. PS: There's some t-shirts and other swag from Caldera tonight. - Ron From peter at panvox.net Wed Sep 18 11:17:52 2002 From: peter at panvox.net (Peter Simard) Date: Wed, 18 Sep 2002 11:17:52 -0400 Subject: NJ PHP coders Message-ID: <9014632593.20020918111752@panvox.net> 11:16 AM Wednesday 9/18/2002 Hi All, Just wondering if there are any PHP coders in the Somerset or Morris County areas of NJ. If so, I could use some help in finishing up and application. Regards, -- Pete mailto:peter at panvox.net Mail management by The Bat! version - 1.61 From ian at plusfour.org Wed Sep 18 11:42:23 2002 From: ian at plusfour.org (ian forsyth) Date: Wed, 18 Sep 2002 11:42:23 -0400 Subject: [nycphp-talk] HTTP_REFERER does not work - alternatives? References: <200209180541.g8I5fEZr032672@parsec.nyphp.org> Message-ID: <3D889EDF.5080409@plusfour.org> $_SERVER['HTTP_REFERER'] should not be used.. often times user behind a proxy are configure not to submit http_referer note.. rfc2616 15.1.3 Encoding Sensitive Information in URI's Because the source of a link might be private information or might reveal an otherwise private information source, it is strongly recommended that the user be able to select whether or not the Referer field is sent. For example, a browser client could have a toggle switch for browsing openly/anonymously, which would respectively enable/disable the sending of Referer and From information. Clients SHOULD NOT include a Referer header field in a (non-secure) HTTP request if the referring page was transferred with a secure protocol. Authors of services which use the HTTP protocol SHOULD NOT use GET based forms for the submission of sensitive data, because this will cause this data to be encoded in the Request-URI. Many existing servers, proxies, and user agents will log the request URI in some place where it might be visible to third parties. Servers can use POST-based form submission instead you could store $url = $_SERVER['http_host'] . $_SERVER['request_uri']; as an array in your session var... or you could use a cookie by unserialize($cookie); push($cookie[0],$url); serialize($cookie); (or something like that.. ) either way you will have an array of visited urls.. much like the javascript history method.. Ian Phil Powell wrote: >URL: http://valsignalandet.com/my/dummy.html > http://valsignalandet.com/my/layout.html > >Consider this: > >I have this URL, dummy.html, that only has a link that you click onto that takes you to layout.html, a framed HTML document with one PHP script, layout_bottom.php. > >This script, layout_bottom.php, attempts to capture the value of $HTTP_REFERER: > > > if (strlen($HTTP_REFERER) > 0) > $refURL = $HTTP_REFERER; > else > $refURL = $SCRIPT_NAME; > >?> > >However, $HTTP_REFERER is always null, even when I came from dummy.html it is still null, never receiving the previous URL value. > >Does anyone else out there know an alternative to $HTTP_REFERER? I've worked with it for years and it has constantly, CONSTANTLY failed me every single time, in PHP, TCL, ASP, Java, everything! What else can I use to retain the previous URL that calls layout.html? > >Thanx >Phil > > > >--- Unsubscribe at http://nyphp.org/list --- > > > > > > From tfreedma at ubspw.com Thu Sep 19 11:11:35 2002 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Thu, 19 Sep 2002 11:11:35 -0400 Subject: mail() Bcc question (PHP4.2.1/WinNT) Message-ID: Hi all! I'm stumped. I'm trying to send an email to one person, make it from a departmental address, and bcc myself. I've gotten a CC working, but it seems to ignore the BCC header. The code I'm using looks like this: $to = "joe.shmoe at company.com" $subject = "Re: foo"; $msgBody = "bar"; $headers = "From: \\r\ "; $headers .= "Cc: \\r\ "; $headers .= "Bcc: \\r\ "; mail("$to", "$subject", "$msgBody", "$headers"); So, in the testing I've done, I can CC the department, and I can CC myself. But it just seems to ignore the BCC header entirely. I don't get any kinds of errors or returned mail, and I don't have access to the Exchange logs. Does anyone have any ideas? Thanks, Tom From nyphp at altunergil.com Thu Sep 19 12:20:19 2002 From: nyphp at altunergil.com (Oktay Altunergil) Date: Thu, 19 Sep 2002 12:20:19 -0400 Subject: [nycphp-talk] mail Bcc question In-Reply-To: <200209191511.g8JFBgZr047644@parsec.nyphp.org> References: <200209191511.g8JFBgZr047644@parsec.nyphp.org> Message-ID: <20020919122019.709cfb9b.nyphp@altunergil.com> While test make sure the destination mailbox for the addresses are not the same. Some mail servers only deliver one copy if multiple copies are addressed to the same box. oktay On Thu, 19 Sep 2002 11:11:42 -0400 "Freedman, Tom S." wrote: > Hi all! > > I'm stumped. I'm trying to send an email to one person, make it from a > departmental address, and bcc myself. I've gotten a CC working, but it > seems to ignore the BCC header. The code I'm using looks like this: > > $to = "joe.shmoe at company.com" > $subject = "Re: foo"; > $msgBody = "bar"; > > $headers = "From: \\r\ "; > $headers .= "Cc: \\r\ "; > $headers .= "Bcc: \\r\ "; > > mail("$to", "$subject", "$msgBody", "$headers"); > > So, in the testing I've done, I can CC the department, and I can CC myself. > But it just seems to ignore the BCC header entirely. I don't get any kinds > of errors or returned mail, and I don't have access to the Exchange logs. > Does anyone have any ideas? > > Thanks, > Tom > > > --- Unsubscribe at http://nyphp.org/list --- > > From tfreedma at ubspw.com Thu Sep 19 14:13:01 2002 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Thu, 19 Sep 2002 14:13:01 -0400 Subject: [nycphp-talk] mail Bcc question Message-ID: Yes, I realized that... I have other people creating test entries, so the only mail I should be receiving is the BCC. Unfortunately, I'm not getting anything (while the To and CC addressees are). It looks like the mailing list removes anything in parentheses from the subject, so something that should be mentioned is that I'm running PHP 4.2.1 on Windows NT with IIS 4. -----Original Message----- From: Oktay Altunergil [mailto:nyphp at altunergil.com] Sent: Thursday, September 19, 2002 12:22 PM To: NYPHP Talk Subject: Re: [nycphp-talk] mail Bcc question While test make sure the destination mailbox for the addresses are not the same. Some mail servers only deliver one copy if multiple copies are addressed to the same box. oktay On Thu, 19 Sep 2002 11:11:42 -0400 "Freedman, Tom S." wrote: > Hi all! > > I'm stumped. I'm trying to send an email to one person, make it from a > departmental address, and bcc myself. I've gotten a CC working, but it > seems to ignore the BCC header. The code I'm using looks like this: > > $to = "joe.shmoe at company.com" > $subject = "Re: foo"; > $msgBody = "bar"; > > $headers = "From: \\r\ "; > $headers .= "Cc: \\r\ "; > $headers .= "Bcc: \\r\ "; > > mail("$to", "$subject", "$msgBody", "$headers"); > > So, in the testing I've done, I can CC the department, and I can CC myself. > But it just seems to ignore the BCC header entirely. I don't get any kinds > of errors or returned mail, and I don't have access to the Exchange logs. > Does anyone have any ideas? > > Thanks, > Tom > > > > > --- Unsubscribe at http://nyphp.org/list --- From ereyes at totalcreations.com Thu Sep 19 15:47:14 2002 From: ereyes at totalcreations.com (Edgar Reyes) Date: Thu, 19 Sep 2002 15:47:14 -0400 Subject: Fw: Your Monster.com Resume Message-ID: <008301c26015$5b50d900$e659fea9@reyes1> Just though some one here might be interested in the position below. Edgar. ----- Original Message ----- From: "Larry Brazong" To: Sent: Thursday, September 19, 2002 2:46 PM Subject: Your Monster.com Resume > Hi Edgar, > > I reviewed your resume and was wondering if you might know someone available > and interested in a Northern New Jersey position that we're currently trying > to fill. It is commutable by public transportation from Manhattan. > > We are currently looking for an Assistant Webmaster with strong PHP. They > should also have good JavaScript skills in case they need to rewrite some > code. Strong backend (server side) background (uploading) is a must. > Experience with high volume data is crucial as they need to keep the system > running fast. FLASH is a real nice plus but not essential. This position > pays up to 60K. > > Thank you for your time and consideration. > > Larry > > Larry Brazong > Sr. Technical Recruiter > Caliber LLC > 212-254-8600 > > > > From ron at vnetworx.net Fri Sep 20 14:12:34 2002 From: ron at vnetworx.net (Ron Guerin) Date: 20 Sep 2002 14:12:34 -0400 Subject: [Fwd: ANNOUNCE: RATS 2.0] Message-ID: <1032545555.7875.180174.camel@amory> FYI: I just learned of this (forwarded message below), and it looks interesting. Since I'm sending this, I'm going to toss in Whisker, which can help find (among other things) spammer-exploitable scripts. Many hosting services use this now to scan nightly for customer-installed exploitable scripts. Or so I've been lead to believe. ;) http://www.wiretrip.net/rfp/p/doc.asp/i2/d21.htm - Ron -----Forwarded Message----- From: RATS Team To: bugtraq at securityfocus.com Subject: ANNOUNCE: RATS 2.0 Date: 19 Sep 2002 15:13:11 -0400 Secure Software Inc. would like to announce the release of RATS 2.0. RATS, the Rough Auditing Tool for Security, is a security auditing utility for C, C++, Python, Perl and PHP code. RATS scans source code, finding potentially dangerous function calls. The goal of this project is not to definitively find bugs. The current goal is to provide a reasonable starting point for performing manual security audits. RATS is released under version 2 of the GNU Public License (GPL). New in this version of RATS: RATS can now descend through directories recursively, analyzing any supported source code it finds. Ability to output results as HTML or XML. Result output can contain the line of code that caused each problem to be reported, along with the column number in the source file the problem was detected at. RATS will now report various statistics at the end of the reporting phase, including total time spend on the analysis, and number of source lines analyzed. Various database additions. A new database file, rats-openssl, which aids in analyzing any code that utilizes the OpenSSL C API. (Thanks to Ben Laurie for contributing this database) To download RATS, please visit http://www.securesw.com/rats/ From patterson at computer.org Sat Sep 21 14:16:06 2002 From: patterson at computer.org (Bill Patterson) Date: Sat, 21 Sep 2002 14:16:06 -0400 Subject: [nycphp-talk] Search Engine Indexable PHP Sites References: <200209092307.g89N7kZr008805@parsec.nyphp.org> Message-ID: <0c0601c2619a$f583ab20$6401a8c0@audubn01.nj.comcast.net> When I helped a client get his site onto search engines last year we found that we needed to do several things: 1. submit the site (we used a service which I think was www.digitalwork.com) 2. include keywords that are referenced in multiple pages at the site ( An HTML attachment was scrubbed... URL: From georgenatalino at yahoo.com Sat Sep 21 20:46:28 2002 From: georgenatalino at yahoo.com (georgenatalino at yahoo.com) Date: Sat, 21 Sep 2002 20:46:28 -0400 Subject: PHPCon 2002 October 24 & 25, 2002 Message-ID: <3D8D12E4.C4D43A11@yahoo.com> An HTML attachment was scrubbed... URL: From zaunere at yahoo.com Sat Sep 21 22:06:37 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Sat, 21 Sep 2002 19:06:37 -0700 (PDT) Subject: [nycphp-talk] PHPCon 2002 October 24 & 25, 2002 In-Reply-To: <200209220044.g8M0iPZr097301@parsec.nyphp.org> Message-ID: <20020922020637.26506.qmail@web12803.mail.yahoo.com> > http://www.php-con.com/ Why don't they have one of these in NY! Anyone going by chance? __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From patterson at computer.org Sun Sep 22 01:12:09 2002 From: patterson at computer.org (Bill Patterson) Date: Sun, 22 Sep 2002 01:12:09 -0400 Subject: [nycphp-talk] PHPCon 2002 October 24 & 25, 2002 References: <200209220206.g8M26fZr097480@parsec.nyphp.org> Message-ID: <002501c261f6$9ad20760$6401a8c0@audubn01.nj.comcast.net> I guess we have to make this happen here. Bill ----- Original Message ----- From: "Hans Zaunere" To: "NYPHP Talk" Sent: Saturday, September 21, 2002 10:06 PM Subject: Re: [nycphp-talk] PHPCon 2002 October 24 & 25, 2002 > > > http://www.php-con.com/ > > Why don't they have one of these in NY! > > Anyone going by chance? > > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com > > > --- Unsubscribe at http://nyphp.org/list --- > > > From donald at anzidesign.com Sun Sep 22 15:10:50 2002 From: donald at anzidesign.com (Donald Andrew Agarrat) Date: Sun, 22 Sep 2002 15:10:50 -0400 Subject: [nycphp-talk] PHPCon 2002 October 24 & 25, 2002 In-Reply-To: <200209220206.g8M26fZr097480@parsec.nyphp.org> Message-ID: <01C796F9-CE5F-11D6-AE81-0030653DA944@anzidesign.com> On Saturday, September 21, 2002, at 10:06 PM, Hans Zaunere wrote: >> http://www.php-con.com/ > > Why don't they have one of these in NY! > > Anyone going by chance? Hi, I'm Donald. I'm a web designer new to nyphp and to PHP/MySQL. I really think it's exciting to see open source projects like PHP and MySQL become so popular! The combination of the two provides access to some might powerful features to MANY people and organization who wouldn't ordinarily be able to afford the technology (of particular interest to me). I'm looking for the community and training to bolster my skills in both. I'm definitely considering going to this conference. If there was an additional discount for user groups such as our own, I would buy my tickets this week. Even if that doesn't happen, I think this is an important conference to support and attend. Donald [ http://www.anzidesign.com/mt ] From zaunere at yahoo.com Sun Sep 22 16:46:28 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Sun, 22 Sep 2002 13:46:28 -0700 (PDT) Subject: NYPHP Presents AMP Technical Overview - 9/25 - http://nyphp.org Message-ID: <20020922204628.29501.qmail@web12807.mail.yahoo.com> New York PHP Presents? "Introduction to AMP Technology - Technical Overview" If you're interested in getting started with Apache/MySQL/PHP, or just have some questions, you'll want to catch NYPHP's September meeting. To complement last week's "Architectural Overview" (http://nyphp.org/presentations/ampintro1/) presentation at NYLUG, this month?s NYPHP own meeting will be dedicated to addressing the technical issues involved with setting up and implementing these technologies. >From PHP syntax and structure, to complimentary applications and tools, NYPHP members will be covering the necessities of getting AMP Technology working for you. So network with other developers and get your questions answered! Details are available at http://nyphp.org. Hans Zaunere New York PHP http://nyphp.org __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From steven at sohh.com Mon Sep 23 17:56:49 2002 From: steven at sohh.com (Steven Samuel) Date: Mon, 23 Sep 2002 14:56:49 -0700 Subject: [nycphp-talk] Search Engine Indexable PHP Sites In-Reply-To: <200209091933.g89JX3Zr008405@parsec.nyphp.org> Message-ID: Also try reading this article on Sitepoint: http://www.promotionbase.com/article/485 Regards, Steven Samuel www.sohh.com -----Original Message----- From: Lynn, Michael [mailto:MLynn at exchange.ml.com] Sent: Monday, September 09, 2002 12:33 PM To: NYPHP Talk Subject: [nycphp-talk] Search Engine Indexable PHP Sites Greetings, I've developed a LAMP based online catalog for a jewelry company and for the most part the site is great. The problem is that nobody can tell it works so well due, in large part to the fact that I can't get the site indexed by the search engines. I believe this is because it is a dynamic site and each url on the generated pages contain references to sub-pages using pagename.php?variable1=value&variable2=value I've read up on a few articles from evolt.org and searchtools regarding "clean" urls and I have embarked on a redevelopment of the site to use urls like http://www.camelotbridal.com/new/index/rings/2 (keep in mind - I'm currently working on this so don't be shocked by the debug output and random errors) Instead of http://www.camelotbridal.com/index.php?p=rings&c=3 My question is this: Are there any tools that mimic the search engines indexing behavior so that I can gauge the effectiveness of my redevelopment? I've tried weblech and it's quite nice - builds a directory tree with the results of a scan of my new layout. But is weblech doing /just/ what the spiders are? There should be a tool that mimics each search engine spider (google, altavista, etc)... If not, then I'm wondering if someone knows how to get hold of the searching behaviour of the most popular engines. For example: Does the spider stop when it finds a url with a "?" in it (second example above). aTdHvAaNnKcSe, Mike --- Unsubscribe at http://nyphp.org/list --- From jonbaer at jonbaer.net Tue Sep 24 02:09:42 2002 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 24 Sep 2002 02:09:42 -0400 Subject: phpMyAdmin syncing with 2 dbs? References: <200209231858.g8NIw5Zr001044@parsec.nyphp.org> Message-ID: <3D9001A6.8080306@jonbaer.net> Hi, Just a quick question before I shoot off email to the authors, anyone know if it's possible to sync 2 or more databases (local, remote) using phpMyAdmin? I could not find notes for this (im assuming it is a possible feat). Thanks. - Jon From zaunere at yahoo.com Tue Sep 24 08:30:37 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 24 Sep 2002 05:30:37 -0700 (PDT) Subject: [nycphp-talk] phpMyAdmin syncing with 2 dbs? In-Reply-To: <200209240615.g8O6FlZr001784@parsec.nyphp.org> Message-ID: <20020924123037.12784.qmail@web12806.mail.yahoo.com> --- Jon Baer wrote: > Hi, > > Just a quick question before I shoot off email to the authors, anyone > > know if it's possible to sync 2 or more databases (local, remote) > using > phpMyAdmin? I could not find notes for this (im assuming it is a > possible feat). You can of course copy tables from one DB to another, however I don't remember seeing phpMyAdmin support that across servers. Depending on the size of the DBs, you could dump the structure/data from one, save to a file, then reload in another (essentially copying it). If both DBs are already populated, you'll probably need PHP to mediate the differences according to a spec, unless theres a big section of phpMyAdmin I don't know about. Hans __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From zaunere at yahoo.com Tue Sep 24 22:57:07 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 24 Sep 2002 19:57:07 -0700 (PDT) Subject: AMP Intro Part 2 Outline Message-ID: <20020925025707.7231.qmail@web12802.mail.yahoo.com> Good evening, Sorry this is so late folks, but I've attached a draft outline for the presentation tomorrow at our meeting. The last two main sections will be presented by Daniel and Bill. If you guys want me to fill anything in, send me an updated doc. Or if anyone else wants to add anything do the same or contact me. See everyone tomorrow. Thanks, Hans __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: ampintro2.doc Type: application/msword Size: 25088 bytes Desc: ampintro2.doc URL: From patterson at computer.org Fri Sep 27 06:33:24 2002 From: patterson at computer.org (Bill Patterson) Date: Fri, 27 Sep 2002 06:33:24 -0400 Subject: [nycphp-talk] AMP Intro Part 2 Outline References: <200209250257.g8P2vECN001091@parsec.nyphp.org> Message-ID: <3D9433F3.5C9DA673@computer.org> Hans, you may want to put the recursion discussion before the spider because the spider uses recursion--it is a natuarl prereq. Good work on this. Bill Hans Zaunere wrote: > This message contained 1 file(s) and is available at http://nyphp.org/list/paralist_archive.php?L_mid=1201 > > Good evening, > > Sorry this is so late folks, but I've attached a draft outline for the > presentation tomorrow at our meeting. The last two main sections will > be presented by Daniel and Bill. If you guys want me to fill anything > in, send me an updated doc. Or if anyone else wants to add anything do > the same or contact me. > > See everyone tomorrow. Thanks, > > Hans > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com > > --- Unsubscribe at http://nyphp.org/list --- From zaunere at yahoo.com Wed Sep 25 08:42:34 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 25 Sep 2002 05:42:34 -0700 (PDT) Subject: Tonight - Apache/MySQL/PHP Technical Overview -- http://nyphp.org Message-ID: <20020925124234.81686.qmail@web12806.mail.yahoo.com> Just a quick reminder that NYPHP's monthly meeting begins tonight at 6:30pm. This month's presentation, Part II of "Introduction to AMP Technology," will be a technical overview of Apache/MySQL/PHP and supporting applications, presented by NYPHP's own membership. Part I, "Architectural Overview" is available for download/view at http://nyphp.org/presentations/ There's a lot to cover and a lot of questions to answer. Details are available at http://nyphp.org. Thank you, Hans Zaunere New York PHP http://nyphp.org __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From agfische at email.smith.edu Wed Sep 25 09:30:34 2002 From: agfische at email.smith.edu (Aaron Fischer) Date: Wed, 25 Sep 2002 09:30:34 -0400 Subject: [nycphp-talk] Tonight - Apache/MySQL/PHP Technical Overview -- http://nyphp.org Message-ID: Hi all, Doesn anyone have recommendations for parking if I am driving into the city? Thanks! Aaron - - - - - - - - - - - - - - - - - - - - - - - - - - Aaron Fischer Web & Systems Specialist Office of Admission Smith College Phone: (413) 585-4899 E-mail: agfischer at smith.edu >>> zaunere at yahoo.com 09/25/02 08:42AM >>> Just a quick reminder that NYPHP's monthly meeting begins tonight at 6:30pm. This month's presentation, Part II of "Introduction to AMP Technology," will be a technical overview of Apache/MySQL/PHP and supporting applications, presented by NYPHP's own membership. Part I, "Architectural Overview" is available for download/view at http://nyphp.org/presentations/ There's a lot to cover and a lot of questions to answer. Details are available at http://nyphp.org. Thank you, Hans Zaunere New York PHP http://nyphp.org __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com --- Unsubscribe at http://nyphp.org/list --- -------------- next part -------------- An HTML attachment was scrubbed... URL: From tfreedma at ubspw.com Wed Sep 25 10:20:23 2002 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Wed, 25 Sep 2002 10:20:23 -0400 Subject: [nycphp-talk] mail Bcc question Message-ID: Apparently, I should RTFM a little closer next time... the mail() function, in Windows specifically, does not support the Bcc: header yet. Looks like I have to wait for the 4.3.0 release. -----Original Message----- From: Freedman, Tom S. Sent: Thursday, September 19, 2002 2:13 PM To: NYPHP Talk Subject: RE: [nycphp-talk] mail Bcc question Yes, I realized that... I have other people creating test entries, so the only mail I should be receiving is the BCC. Unfortunately, I'm not getting anything (while the To and CC addressees are). It looks like the mailing list removes anything in parentheses from the subject, so something that should be mentioned is that I'm running PHP 4.2.1 on Windows NT with IIS 4. -----Original Message----- From: Oktay Altunergil [mailto:nyphp at altunergil.com] Sent: Thursday, September 19, 2002 12:22 PM To: NYPHP Talk Subject: Re: [nycphp-talk] mail Bcc question While test make sure the destination mailbox for the addresses are not the same. Some mail servers only deliver one copy if multiple copies are addressed to the same box. oktay On Thu, 19 Sep 2002 11:11:42 -0400 "Freedman, Tom S." wrote: > Hi all! > > I'm stumped. I'm trying to send an email to one person, make it from a > departmental address, and bcc myself. I've gotten a CC working, but it > seems to ignore the BCC header. The code I'm using looks like this: > > $to = "joe.shmoe at company.com" > $subject = "Re: foo"; > $msgBody = "bar"; > > $headers = "From: \\r\ "; > $headers .= "Cc: \\r\ "; > $headers .= "Bcc: \\r\ "; > > mail("$to", "$subject", "$msgBody", "$headers"); > > So, in the testing I've done, I can CC the department, and I can CC myself. > But it just seems to ignore the BCC header entirely. I don't get any kinds > of errors or returned mail, and I don't have access to the Exchange logs. > Does anyone have any ideas? > > Thanks, > Tom > > > > > --- Unsubscribe at http://nyphp.org/list --- From bruce at mtiglobal.com Thu Sep 26 06:05:53 2002 From: bruce at mtiglobal.com (bruce at mtiglobal.com) Date: Thu, 26 Sep 2002 02:05:53 -0800 (CST) Subject: Internationaliz/sation - JSP vs. PHP In-Reply-To: <200209231858.g8NIw5Zr001044@parsec.nyphp.org> References: <200209231858.g8NIw5Zr001044@parsec.nyphp.org> Message-ID: <2411.38.149.126.66.1032977153.squirrel@taipei.mtiglobal.com> I'm going to work on a site for a friend's translation company. His company translates technical documents in 30+ asian/european languages. The site will be to market his company in different countries as well as have services for his translators. I've just begun to look through the tutorial on internationalization at java.sun.com as I begin thinking on the architecture of this site. Is there any similar documentation/tutorial online for php? Do any of you have experience developing multilingual web sites? If yes, have you used JSP, PHP, or any other technology for this? Would like to know the pro's and con's between using these technologies for a multilingual site. Thanks. - Bruce From zaunere at yahoo.com Thu Sep 26 10:41:56 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 26 Sep 2002 07:41:56 -0700 (PDT) Subject: [nycphp-talk] Internationaliz/sation - JSP vs. PHP In-Reply-To: <200209251806.g8PI61CN002382@parsec.nyphp.org> Message-ID: <20020926144156.14057.qmail@web12808.mail.yahoo.com> --- bruce at mtiglobal.com wrote: > I'm going to work on a site for a friend's translation company. His > company translates technical documents in 30+ asian/european > languages. > The site will be to market his company in different countries as well > as > have services for his translators. > > I've just begun to look through the tutorial on internationalization > at > java.sun.com as I begin thinking on the architecture of this site. > Is > there any similar documentation/tutorial online for php? There's a mailing list dedicated for the project: http://www.php.net/mailing-lists.php And the project itself: http://sourceforge.net/projects/php-i18n/ > Do any of you have experience developing multilingual web sites? If > yes, have you used JSP, PHP, or any other technology for this? I haven't done this sort of thing on this scale, but I have played around with the php.net/recode functions a bit and some of the different encodings. I know that there's a few people on this list that have used the internationalization before, too. H __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From zaunere at yahoo.com Thu Sep 26 16:24:48 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 26 Sep 2002 13:24:48 -0700 (PDT) Subject: Tonight - Slashdot Meetup Message-ID: <20020926202448.80720.qmail@web12808.mail.yahoo.com> Hello folks, Just dropping a note about the Slashdot meetup tonight at the Remote Lounge (where the Mozbash was several months ago). Some details below, more at http://slashdot.meetup.com See you there! Hans Thursday, Sep 26 @ 7PM -- *Don't leave other Nerds hanging - be on time!* Remote Lounge 327 Bowery between 2nd & 3rd Sts. New York, NY 10003 212-228-0228 The MEETUP spot at the venue is Entrance __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From zaunere at yahoo.com Sat Sep 28 13:02:34 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Sat, 28 Sep 2002 10:02:34 -0700 (PDT) Subject: Online Presentations Message-ID: <20020928170234.11702.qmail@web12806.mail.yahoo.com> If you missed any of the Introduction to AMP Technology presentations and would like to check them out, go to http://nyphp.org/presentations/ Both presentations are there for download and viewable on the web (and even with a expand/shrink feature!) H __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From soazine at erols.com Sat Sep 28 15:36:16 2002 From: soazine at erols.com (Phil Powell) Date: Sat, 28 Sep 2002 15:36:16 -0400 Subject: mkdir() failed (Permission denied) Message-ID: <01b001c26726$50269840$dcbe6444@scandinawa1bo6> Ok, I am stuck. I am trying to create a folder in the same directory as process.php and then use move_uploaded_file($FILES['myImage]['tmp_name']) and it constantly fails: mkdir() failed (Permission denied) Here is my code: $val) { if (strcmp($key, "isDefaultLayout") == 0) $willChangeLayout = 0; if (!empty($_POST[$key])) $isEmptyLayoutValues = 0; ${"$key"} = $val; } // SERVER-SIDE VALIDATION if ($willChangeLayout && $isEmptyLayoutValues) header("Location: " . $refURL . "?errorMsg=" . urlencode("Please fill out all required fields")); // FILE UPLOAD HANDLING $attempt = mkdir("/users/ppowell/web/my/images", 0655); if (is_uploaded_file($_FILES['myImage']['tmp_name'])) move_uploaded_file($_FILES['myImage']['tmp_name'], "/users/ppowell/web/my/images/" . $_FILES['myImage']['name']); ?> Please someone tell me what I'm doing wrong :( Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From soazine at erols.com Sat Sep 28 16:11:40 2002 From: soazine at erols.com (Phil Powell) Date: Sat, 28 Sep 2002 16:11:40 -0400 Subject: [PHP] mkdir() failed: Permission denied References: <20020928193954.10390.qmail@pb1.pair.com> <00c001c26728$bd8ef290$18ab8650@squitta> Message-ID: <01cd01c2672b$426364e0$dcbe6444@scandinawa1bo6> That's not possible! /users/ppowell/web/my has permissions set to 0755, I have full write permissions onto that folder, but I can't create subfolder /users/ppowell/web/my/images - I don't get it! Phil PS New Code $val) { if (strcmp($key, "isDefaultLayout") == 0) $willChangeLayout = 0; if (!empty($_POST[$key])) $isEmptyLayoutValues = 0; ${"$key"} = $val; } // SERVER-SIDE VALIDATION if ($willChangeLayout && $isEmptyLayoutValues) header("Location: " . $refURL . "?errorMsg=" . urlencode("Please fill out all required fields")); // FILE UPLOAD HANDLING echo ("is directory? " . is_dir("/users/ppowell/web/my/images")); if (!is_dir($path)) mkdir($path, 0755); //if (is_uploaded_file($_FILES['myImage']['tmp_name'])) // move_uploaded_file($_FILES['myImage']['tmp_name'], $path . $_FILES['myImage']['name']); ?> ----- Original Message ----- From: "Sascha Braun" To: "Phil Powell" Sent: Saturday, September 28, 2002 3:53 PM Subject: Re: [PHP] mkdir() failed: Permission denied > You have to be the owenr too and maybe set the permission to 755. > > > > Ok, I am stuck. I am trying to create a folder in the same directory as > > process.php and then use move_uploaded_file($FILES['myImage]['tmp_name']) > > and it constantly fails: > > > > mkdir() failed (Permission denied) > > > > Here is my code: > > > > > $willChangeLayout = 1; $isEmptyLayoutValues = 1; > > > > foreach ($_POST as $key => $val) { > > if (strcmp($key, "isDefaultLayout") == 0) $willChangeLayout = 0; > > if (!empty($_POST[$key])) $isEmptyLayoutValues = 0; > > ${"$key"} = $val; > > } > > > > // SERVER-SIDE VALIDATION > > if ($willChangeLayout && $isEmptyLayoutValues) > > header("Location: " . $refURL . "?errorMsg=" . urlencode("Please fill > out > > all required fields")); > > > > // FILE UPLOAD HANDLING > > > > $attempt = mkdir("/users/ppowell/web/my/images", 0655); > > > > if (is_uploaded_file($_FILES['myImage']['tmp_name'])) > > move_uploaded_file($_FILES['myImage']['tmp_name'], > > "/users/ppowell/web/my/images/" . $_FILES['myImage']['name']); > > > > > > ?> > > > > Please someone tell me what I'm doing wrong :( > > > > Thanx > > Phil > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > From zaunere at yahoo.com Sat Sep 28 16:20:18 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Sat, 28 Sep 2002 13:20:18 -0700 (PDT) Subject: [nycphp-talk] mkdir failed In-Reply-To: <200209281938.g8SJcH4M008603@parsec.nyphp.org> Message-ID: <20020928202018.60102.qmail@web12802.mail.yahoo.com> --- Phil Powell wrote: > Ok, I am stuck. I am trying to create a folder in the same directory > as process.php and then use > move_uploaded_file($FILES['myImage]['tmp_name']) and it constantly > fails: > > mkdir() failed (Permission denied) There could be a couple reasons for this. However, most likely, is that the Apache daemon doesn't have permission to write in /users/ppowell/web/my/images. I'm assuming this is a shared environment, in which case it's rare (and good) that a daemon has write permissions in a user's directory. Depending on the configuration, you'll need to chmod g+rwx /users/ppowell/web/my or chmod o+rwx /users/ppowell/web/my (hark!). But it's probably better to make the directory beforehand, and then set it aside with write permissions, ditching the mkdir() from PHP. But be weary, because anyone using the same daemon will have write permissions there as well (hopefully, however, the PHP is setup with safe mode properly to surpress any potential issues). I haven't been in a lot of shared environments so there may be a trick to this that is safe[r], but this is the only way around it AFAIK. And this is why MySQL has become popular for storing files, ahem. Hans > > Here is my code: > > $willChangeLayout = 1; $isEmptyLayoutValues = 1; > > foreach ($_POST as $key => $val) { > if (strcmp($key, "isDefaultLayout") == 0) $willChangeLayout = 0; > if (!empty($_POST[$key])) $isEmptyLayoutValues = 0; > ${"$key"} = $val; > } > > // SERVER-SIDE VALIDATION > if ($willChangeLayout && $isEmptyLayoutValues) > header("Location: " . $refURL . "?errorMsg=" . urlencode("Please > fill out all required fields")); > > // FILE UPLOAD HANDLING > > $attempt = mkdir("/users/ppowell/web/my/images", 0655); > > if (is_uploaded_file($_FILES['myImage']['tmp_name'])) > move_uploaded_file($_FILES['myImage']['tmp_name'], > "/users/ppowell/web/my/images/" . $_FILES['myImage']['name']); > > > ?> > > Please someone tell me what I'm doing wrong :( > > Thanx > Phil > > > > --- Unsubscribe at http://nyphp.org/list --- > > __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From soazine at erols.com Sat Sep 28 16:37:14 2002 From: soazine at erols.com (Phil Powell) Date: Sat, 28 Sep 2002 16:37:14 -0400 Subject: [nycphp-talk] mkdir failed References: <200209282020.g8SKKM4M008669@parsec.nyphp.org> Message-ID: <01f101c2672e$d4a4c580$dcbe6444@scandinawa1bo6> AHEM.. can't use mySQL, it's not an option on my site valsignalandet.com - sorry.. it's on a remote site and it costs much too much money for me to use, sorry! So, /users/ppowell/web/my has permissions set to 0755 and I cannot create /users/ppowell/web/my/images/ I get this error upon this line: if (!is_dir($path)) mkdir($path, 01755); Warning: Unable to access /users/ppowell/web/my/images/ in /users/ppowell/web/my/process.php on line 27 The subfolder /users/ppowell/web/my/images/ does not yet exist!!! Phil ----- Original Message ----- From: "Hans Zaunere" To: "NYPHP Talk" Sent: Saturday, September 28, 2002 4:20 PM Subject: Re: [nycphp-talk] mkdir failed > > --- Phil Powell wrote: > > Ok, I am stuck. I am trying to create a folder in the same directory > > as process.php and then use > > move_uploaded_file($FILES['myImage]['tmp_name']) and it constantly > > fails: > > > > mkdir() failed (Permission denied) > > There could be a couple reasons for this. However, most likely, is > that the Apache daemon doesn't have permission to write in > /users/ppowell/web/my/images. I'm assuming this is a shared > environment, in which case it's rare (and good) that a daemon has write > permissions in a user's directory. Depending on the configuration, > you'll need to chmod g+rwx /users/ppowell/web/my or chmod o+rwx > /users/ppowell/web/my (hark!). But it's probably better to make the > directory beforehand, and then set it aside with write permissions, > ditching the mkdir() from PHP. > > But be weary, because anyone using the same daemon will have write > permissions there as well (hopefully, however, the PHP is setup with > safe mode properly to surpress any potential issues). I haven't been > in a lot of shared environments so there may be a trick to this that is > safe[r], but this is the only way around it AFAIK. And this is why > MySQL has become popular for storing files, ahem. > > Hans > > > > > > > Here is my code: > > > > > $willChangeLayout = 1; $isEmptyLayoutValues = 1; > > > > foreach ($_POST as $key => $val) { > > if (strcmp($key, "isDefaultLayout") == 0) $willChangeLayout = 0; > > if (!empty($_POST[$key])) $isEmptyLayoutValues = 0; > > ${"$key"} = $val; > > } > > > > // SERVER-SIDE VALIDATION > > if ($willChangeLayout && $isEmptyLayoutValues) > > header("Location: " . $refURL . "?errorMsg=" . urlencode("Please > > fill out all required fields")); > > > > // FILE UPLOAD HANDLING > > > > $attempt = mkdir("/users/ppowell/web/my/images", 0655); > > > > if (is_uploaded_file($_FILES['myImage']['tmp_name'])) > > move_uploaded_file($_FILES['myImage']['tmp_name'], > > "/users/ppowell/web/my/images/" . $_FILES['myImage']['name']); > > > > > > ?> > > > > Please someone tell me what I'm doing wrong :( > > > > Thanx > > Phil > > > > > > > > > > > > > > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com > > > --- Unsubscribe at http://nyphp.org/list --- > > > From zaunere at yahoo.com Sat Sep 28 17:17:41 2002 From: zaunere at yahoo.com (Hans Zaunere) Date: Sat, 28 Sep 2002 14:17:41 -0700 (PDT) Subject: [nycphp-talk] mkdir failed In-Reply-To: <200209282039.g8SKdC4M008696@parsec.nyphp.org> Message-ID: <20020928211741.66762.qmail@web12805.mail.yahoo.com> --- Phil Powell wrote: > AHEM.. can't use mySQL, it's not an option on my site > valsignalandet.com - sorry.. it's on a remote site and it costs much > too much money for me to use, sorry! Too much? Try http://thehostingcompany.us - $9 dollar plan :) > So, /users/ppowell/web/my has permissions set to 0755 and I cannot > create /users/ppowell/web/my/images/ I get this error upon this line: > > if (!is_dir($path)) mkdir($path, 01755); > > Warning: Unable to access /users/ppowell/web/my/images/ in > /users/ppowell/web/my/process.php on line 27 0755 won't cut it for /users/ppowell/web/my - you need write set on either group or world - so /users/ppowell/web/my either needs to be 0775 or 0757, depending on whether apache is in your group or not. H __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From soazine at erols.com Sat Sep 28 18:11:16 2002 From: soazine at erols.com (Phil Powell) Date: Sat, 28 Sep 2002 18:11:16 -0400 Subject: [nycphp-talk] mkdir failed References: <200209282117.g8SLHn4M008751@parsec.nyphp.org> Message-ID: <023101c2673b$f76e7d60$dcbe6444@scandinawa1bo6> Got it but the solution is derned freaky... talking to the webserver admin I come to find out that I have to write a stub executable to php4.cgi which will interpret the PHP script bypassing the Apache mods.. that way I can keep the directories at the default 0755 and STILL be able to do file mkdir and uploading!! Phil ----- Original Message ----- From: "Hans Zaunere" To: "NYPHP Talk" Sent: Saturday, September 28, 2002 5:17 PM Subject: Re: [nycphp-talk] mkdir failed > > --- Phil Powell wrote: > > AHEM.. can't use mySQL, it's not an option on my site > > valsignalandet.com - sorry.. it's on a remote site and it costs much > > too much money for me to use, sorry! > > Too much? Try http://thehostingcompany.us - $9 dollar plan :) > > > So, /users/ppowell/web/my has permissions set to 0755 and I cannot > > create /users/ppowell/web/my/images/ I get this error upon this line: > > > > if (!is_dir($path)) mkdir($path, 01755); > > > > Warning: Unable to access /users/ppowell/web/my/images/ in > > /users/ppowell/web/my/process.php on line 27 > > 0755 won't cut it for /users/ppowell/web/my - you need write set on > either group or world - so /users/ppowell/web/my either needs to be > 0775 or 0757, depending on whether apache is in your group or not. > > H > > > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com > > > --- Unsubscribe at http://nyphp.org/list --- > > From sharpwit at hotmail.com Sat Sep 28 18:50:38 2002 From: sharpwit at hotmail.com ((kris)janis p gale) Date: Sat, 28 Sep 2002 18:50:38 -0400 Subject: [nycphp-talk] mkdir failed References: <200209282117.g8SLHn4M008751@parsec.nyphp.org> Message-ID: > Too much? Try http://thehostingcompany.us - $9 dollar plan :) or... http://www.ehostsource.com/ $5.75 monthly 500mb 50gb transfer/month mySQL php4 From soazine at erols.com Sat Sep 28 20:31:19 2002 From: soazine at erols.com (Phil Powell) Date: Sat, 28 Sep 2002 20:31:19 -0400 Subject: Need to get last element of 2-dimensional array Message-ID: <027b01c2674f$8816fb40$dcbe6444@scandinawa1bo6> The following produced a rather nasty parse error: echo ($idArray[0][sizeof($idArray[0])])); I have a 2-dimensional array $idArray that I must obtain the LAST element of that 2-dimensional array.. how do I do it? Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From rasmus at php.net Sat Sep 28 20:38:37 2002 From: rasmus at php.net (Rasmus Lerdorf) Date: Sat, 28 Sep 2002 17:38:37 -0700 (PDT) Subject: [PHP] Need to get last element of 2-dimensional array In-Reply-To: <027b01c2674f$8816fb40$dcbe6444@scandinawa1bo6> Message-ID: Well, your nasty parse error is because you have 2 opening ( and 3 closing ) on that line. A quick way to get the very last element of a 2-d array is to use: echo end(end($idArray)); -Rasmus On Sat, 28 Sep 2002, Phil Powell wrote: > The following produced a rather nasty parse error: > > echo ($idArray[0][sizeof($idArray[0])])); > > I have a 2-dimensional array $idArray that I must obtain the LAST element of that 2-dimensional array.. how do I do it? > > Thanx > Phil > From soazine at erols.com Sat Sep 28 21:03:12 2002 From: soazine at erols.com (Phil Powell) Date: Sat, 28 Sep 2002 21:03:12 -0400 Subject: Help! Can't set cookie or redirect!!! Message-ID: <028c01c26753$fc8498d0$dcbe6444@scandinawa1bo6> I am getting the following errors attempting to set a cookie and redirect: Warning: Cannot add header information - headers already sent by (output started at /users/ppowell/web/my/process.php:5) in /users/ppowell/web/my/process.php on line 76 Warning: Cannot add header information - headers already sent by (output started at /users/ppowell/web/my/process.php:5) in /users/ppowell/web/my/process.php on line 77 Lines: setcookie("valLayout", $id, time()+3600*24*30*12*100, $SERVER_NAME); // WILL EXPIRE IN 100 YEARS.. UM YEAH header("Location: " . $HTTP_POST_VARS["refURL"]); The first time I ran this script it set the cookie just fine; subsequent runnings of this script produce this error. What am I doing wrong, anyone? Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From suzerain at suzerain.com Sat Sep 28 21:07:12 2002 From: suzerain at suzerain.com (suzerain.studios) Date: Sat, 28 Sep 2002 21:07:12 -0400 Subject: [nycphp-talk] Need to get last element of 2-dimensional array In-Reply-To: <200209290033.g8T0XH4M009116@parsec.nyphp.org> References: <200209290033.g8T0XH4M009116@parsec.nyphp.org> Message-ID: hey: remember, arrays begin at zero, so you need to subtract one from the result of sizeof() or count() in this case. so, your answer is: echo $idArray[0][(count($idArray[0])-1)]; Cheers, Marc Antony Vose http://www.suzerain.com/ Why is the alphabet in that order? Is it because of that song? -- George Carlin >The following produced a rather nasty parse error: > >echo ($idArray[0][sizeof($idArray[0])])); > >I have a 2-dimensional array $idArray that I must obtain the LAST >element of that 2-dimensional array.. how do I do it? From holmes072000 at charter.net Sat Sep 28 21:09:01 2002 From: holmes072000 at charter.net (John W. Holmes) Date: Sat, 28 Sep 2002 21:09:01 -0400 Subject: [PHP] Help! Can't set cookie or redirect!!! In-Reply-To: <028c01c26753$fc8498d0$dcbe6444@scandinawa1bo6> Message-ID: <000e01c26754$cf27c8c0$7c02a8c0@coconut> You can only set a cookie before any output is send to the browser. A newline, space, or , etc, is output to the browser. Redesign your code so the cookie is set before any output or use output buffering. ---John Holmes... > -----Original Message----- > From: Phil Powell [mailto:soazine at erols.com] > Sent: Saturday, September 28, 2002 9:03 PM > To: php-general at lists.php.net; talk at nyphp.org > Subject: [PHP] Help! Can't set cookie or redirect!!! > > I am getting the following errors attempting to set a cookie and redirect: > > Warning: Cannot add header information - headers already sent by (output > started at /users/ppowell/web/my/process.php:5) in > /users/ppowell/web/my/process.php on line 76 > > Warning: Cannot add header information - headers already sent by (output > started at /users/ppowell/web/my/process.php:5) in > /users/ppowell/web/my/process.php on line 77 > > > Lines: > > setcookie("valLayout", $id, time()+3600*24*30*12*100, $SERVER_NAME); // > WILL EXPIRE IN 100 YEARS.. UM YEAH > header("Location: " . $HTTP_POST_VARS["refURL"]); > > The first time I ran this script it set the cookie just fine; subsequent > runnings of this script produce this error. What am I doing wrong, > anyone? > > Thanx > Phil From shiflett at php.net Sat Sep 28 21:16:24 2002 From: shiflett at php.net (Chris Shiflett) Date: Sat, 28 Sep 2002 20:16:24 -0500 Subject: [PHP] Help! Can't set cookie or redirect!!! References: <028c01c26753$fc8498d0$dcbe6444@scandinawa1bo6> Message-ID: <3D965468.8040402@php.net> Phil, You are sending output somewhere prior to the following line: header("Location: " . $HTTP_POST_VARS["refURL"]); Basically, as soon as you output anything, PHP has to assume you are finished manipulating headers. Output can be anything from a space, newline, or HTML. It is not your setcookie() function but something that happens prior to that. Remember that everything not in PHP mode is considered output. Chris Phil Powell wrote: >I am getting the following errors attempting to set a cookie and redirect: > >Warning: Cannot add header information - headers already sent by (output started at /users/ppowell/web/my/process.php:5) in /users/ppowell/web/my/process.php on line 76 > >Warning: Cannot add header information - headers already sent by (output started at /users/ppowell/web/my/process.php:5) in /users/ppowell/web/my/process.php on line 77 > > >Lines: > > setcookie("valLayout", $id, time()+3600*24*30*12*100, $SERVER_NAME); // WILL EXPIRE IN 100 YEARS.. UM YEAH > header("Location: " . $HTTP_POST_VARS["refURL"]); > >The first time I ran this script it set the cookie just fine; subsequent runnings of this script produce this error. What am I doing wrong, anyone? > From soazine at erols.com Sat Sep 28 21:55:46 2002 From: soazine at erols.com (Phil Powell) Date: Sat, 28 Sep 2002 21:55:46 -0400 Subject: [PHP] Help! Can't set cookie or redirect!!! References: <000e01c26754$cf27c8c0$7c02a8c0@coconut> Message-ID: <02a701c2675b$547cb8e0$dcbe6444@scandinawa1bo6> Never mind, I found it.. *sigh* I forgot about phpinfo().. Everything works now, cookies, redirection, everything.. thanx! Phil ----- Original Message ----- From: "John W. Holmes" To: "'Phil Powell'" ; ; Sent: Saturday, September 28, 2002 9:09 PM Subject: RE: [PHP] Help! Can't set cookie or redirect!!! > You can only set a cookie before any output is send to the browser. A > newline, space, or , etc, is output to the browser. Redesign your > code so the cookie is set before any output or use output buffering. > > ---John Holmes... > > > -----Original Message----- > > From: Phil Powell [mailto:soazine at erols.com] > > Sent: Saturday, September 28, 2002 9:03 PM > > To: php-general at lists.php.net; talk at nyphp.org > > Subject: [PHP] Help! Can't set cookie or redirect!!! > > > > I am getting the following errors attempting to set a cookie and > redirect: > > > > Warning: Cannot add header information - headers already sent by > (output > > started at /users/ppowell/web/my/process.php:5) in > > /users/ppowell/web/my/process.php on line 76 > > > > Warning: Cannot add header information - headers already sent by > (output > > started at /users/ppowell/web/my/process.php:5) in > > /users/ppowell/web/my/process.php on line 77 > > > > > > Lines: > > > > setcookie("valLayout", $id, time()+3600*24*30*12*100, > $SERVER_NAME); // > > WILL EXPIRE IN 100 YEARS.. UM YEAH > > header("Location: " . $HTTP_POST_VARS["refURL"]); > > > > The first time I ran this script it set the cookie just fine; > subsequent > > runnings of this script produce this error. What am I doing wrong, > > anyone? > > > > Thanx > > Phil > > From jellicle at inch.com Sun Sep 29 16:11:08 2002 From: jellicle at inch.com (Michael Sims) Date: Sun, 29 Sep 2002 16:11:08 -0400 Subject: tools for working with mp3/ogg Message-ID: <20020929201216.C356110DE17@carbine.dsl.net> Hi, I'm looking for some info on the state of the art with regard to working with mp3/ogg files with PHP. End goals: --database (preferably Postgresql) holding info about a library of mp3/ogg files (preferably ogg) --ability to dynamically create playlists, stream and stream 30-second excerpts of these files I don't really care about the front-end user interface part of this; I'll write it. I'm looking for tools to *work with* music files, both on building the library and as part of the backend of the website when it's operational - a tool to look at multiple music files and insert all of the interesting information (title, bitrate, length, and so on) into a database would be nice, for example. I've heard of the Andromeda mp3 script, except it doesn't do nearly all that I need to do, and it's commercial anyway. Some tools I'm aware of: --apache modules like mod_mp3 --perl libraries like Apache::mp3 Anything else? Hmmm, while I was writing this email I came across Netjuke: http://netjuke.sourceforge.net/ which looks very interesting, so I'll have to check that out. And reading the Netjuke page I see http://getid3.sourceforge.net/ , which looks like the perfect solution to reading in the music files. Excellent. But I might as well throw this out there anyway. :) -- Michael Sims From steve at soler.com Sun Sep 29 18:52:05 2002 From: steve at soler.com (Steve Soler) Date: Sun, 29 Sep 2002 18:52:05 -0400 Subject: integrating PHP with WML Message-ID: <13BA86A0-D3FE-11D6-823F-003065481BD8@soler.com> Hello, Can anyone direct me to a site where I can get info on integrating PHP with WML? I want to develop a site I can access on a WAP compatible cell phone and use PHP features like interacting with MySQL data, or creating member login accounts. Thanks, Steve From jkelly at sussex.cc.nj.us Mon Sep 30 10:55:04 2002 From: jkelly at sussex.cc.nj.us (jessica kelly) Date: Mon, 30 Sep 2002 10:55:04 -0400 Subject: Includes Message-ID: I'll be redesigning a website using Apache 1.3.26, PHP and MySQL on a Win Advanced Server 2K. Is there a way to do includes for a Header, Footer and Menu with out using a .inc or .php extension?? I would rather see a .htm extensions but what can I use to get Apache to parse the file? Apache is not using mod_php but if I can find a windows compiled module I could run it.... (I'm a newbe so be nice ;-) ) Thanks Guys, Jessica Kelly, SCCC Web Administrator SCCC WebCT Administrator jkelly at sussex.edu 973-300-2148 1 College Hill, Newton, NJ 07860 From dkrook at hotmail.com Mon Sep 30 11:13:24 2002 From: dkrook at hotmail.com (D C Krook) Date: Mon, 30 Sep 2002 11:13:24 -0400 Subject: [nycphp-talk] Includes Message-ID: Jessica, In your conf/httpd.conf file, find and copy the line which looks like: AddType application/x-httpd-php .php and make an entry below it with the following AddType application/x-httpd-php .htm You can do that for as many extensions as you want Apache to hand off to PHP. -Dan _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From danielc at analysisandsolutions.com Mon Sep 30 11:13:56 2002 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Mon, 30 Sep 2002 11:13:56 -0400 Subject: [nycphp-talk] Includes In-Reply-To: <200209301456.g8UEu64M012140@parsec.nyphp.org> References: <200209301456.g8UEu64M012140@parsec.nyphp.org> Message-ID: <20020930151356.GA14195@panix.com> Hi Jessica: On Mon, Sep 30, 2002 at 10:56:06AM -0400, jessica kelly wrote: > Is there a way to do includes for a Header, Footer and Menu with out > using a .inc or .php extension?? I would rather see a .htm extensions > but what can I use to get Apache to parse the file? If you're wondering about the extension on the included file, that doesn't matter. PHP scripts will include the file regardless of what it's called and take appropriate action depending on the contents of the file. If you're interested in the extension of the file doing the include, then you can change that behavior in your httpd.conf or .htaccess files with the following directive. Tweak it as desired for your needs. AddType application/x-httpd-php .htm .inc .txt .php But, do note, if your include files are in the document root (or a subdirectory thereof), you'll want to make them get parsed as PHP anyway, because you most likely don't want the source code getting revealed. So, put the extensions of your include files in the AddType directive, above. Enjoy, --Dan -- PHP classes that make web design easier SQL Solution | Layout Solution | Form Solution 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 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From jkelly at sussex.cc.nj.us Mon Sep 30 11:48:44 2002 From: jkelly at sussex.cc.nj.us (jessica kelly) Date: Mon, 30 Sep 2002 11:48:44 -0400 Subject: [nycphp-talk] Includes Message-ID: So I could do this: file called index.htm (Contents of index.htm) ... If I place this tag inside .shtml files, the results are exactly what I want.. however, I am now required to get the contents of http://valsignalandet.com/cgi-bin/cgiwrap/ppowell/php4.cgi/~ppowell/my/style.php and place inside another PHP script; to date, nothing occurs. I am able to read other CGI script inside via fopen("../mycgi.cgi", "r"); and able to read PHP via fopen("../myphp.php", "r"); with no problem. Does anyone know of a way then that I might be able to produce the contents of a uniquely-formed URL such as http://valsignalandet.com/cgi-bin/cgiwrap/ppowell/php4.cgi/~ppowell/my/style.php into another PHP script since fopen and require() both do not seem to work in this case? Thanks Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: