From webapprentice at onemain.com Sat Feb 1 02:35:21 2003 From: webapprentice at onemain.com (Webapprentice) Date: Sat, 01 Feb 2003 02:35:21 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... References: <200302010027.h110RGqv067976@parsec.nyphp.org> Message-ID: <3E3B78B9.1020500@onemain.com> Thanks Jerry. Now I have to learn about sessions. *laughs* --Stephen Jerry Kapron wrote: >Re. my previous message > >Corrected function: > >function post_save() { > if(count($_POST)) { > $_SESSION['post_around'] = $_POST; > } >} > > >Jerry > >-- >42.7% of all statistics are made up on the spot. > > > >-----Original Message----- >From: Jerry Kapron >Subject: Re: [nycphp-talk] Passing some form values through to a redirected >page... > > > > >>This is a simplified version of what I do to pass POST data: >> >>These two functions are included in all my scripts: >> >>function post_save() { >> if(count($_POST)) >> >> $_SESSION['post_around'] = $_POST; >> } >>} >> >> >> > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > From fmarte at verizon.net Sat Feb 1 11:07:26 2003 From: fmarte at verizon.net (Felix Marte) Date: Sat, 1 Feb 2003 11:07:26 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... In-Reply-To: <200302010734.h117Y4lh073660@parsec.nyphp.org> Message-ID: <000b01c2ca0c$0410bfa0$3c64a8c0@riogrande> If your referring page is a form of some sort, you can also consider using hidden input fields to pass the data to the forwarded page via the POST method. Would result in $hiddenvar being available in the forwarded page with the string "Hidden Value". This is straight out of a book so I don't know if there are some practical things to avoid in doing this, nor if it is possible to use without a form being submited on the referrer page. Felix. -----Original Message----- From: Webapprentice [mailto:webapprentice at onemain.com] Sent: Saturday, February 01, 2003 2:34 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Passing some form values through to a redirected page... Thanks Jerry. Now I have to learn about sessions. *laughs* --Stephen Jerry Kapron wrote: >Re. my previous message > >Corrected function: > >function post_save() { > if(count($_POST)) { > $_SESSION['post_around'] = $_POST; > } >} > > >Jerry > >-- >42.7% of all statistics are made up on the spot. > > > >-----Original Message----- >From: Jerry Kapron >Subject: Re: [nycphp-talk] Passing some form values through to a >redirected page... > > > > >>This is a simplified version of what I do to pass POST data: >> >>These two functions are included in all my scripts: >> >>function post_save() { >> if(count($_POST)) >> >> $_SESSION['post_around'] = $_POST; >> } >>} >> >> >> > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From gw.nyphp at gwprogramming.com Sat Feb 1 12:41:48 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Sat, 1 Feb 2003 12:41:48 -0500 (EST) Subject: [nycphp-talk] Passing some form values through to a redirected page... Message-ID: <200302011741.MAA14054@gw00.com> Stephen, Sessions are OK, I guess, if you really need to keep sending the data around, but keep in mind then, that all of that POST data will get sent back-and-forth between the server and browser for each successive page-load. And if you do a "Location:" redirect, that will of course count as two page loads, so that is conceivably a waste of time and bandwidth. Depending how your server is configured, the additional HTTP transaction from the server might be costly if you do it a lot, or if your server is already busy. So you said you don't want to "embed" the 2nd script into the first one... why not just "include" it? That way, the only additional cost of the "redirect" is reading and executing that file... no extra HTTP noise (which in some cases could slow things down by more than a few seconds per page hit). Overall, it sounds like you might be moving toward building one single "library" file of your functions, and then your "scripts" would include this library and call whatever functions it needs. Also, I don't know how much data is getting POSTed, but if it's more than a few hundred characters (or has the potential to be), you might have problems doing Location: redirects with all that data. I could explain this further if it doesn't make sense. Bestest, George Webb gw.nyphp at gwprogramming.com > > > Upon a successful submission of the form on my PHP page, I use the > > header("Location: ") function to redirect to another page. I'd like > > to carry over some form values over to the redirected page to use. > > Is this possible? Or is there another way to do this? I don't think > > it's a good idea to embed the second page into the main PHP page as > > the main PHP page will be very long. > > > the easiest way is to just: > > Location: http://url.com/?name=value&name1=value1 > > then on the corresponding grab the values in the $_GET hash. > > > From joshmccormack at travelersdiary.com Sat Feb 1 15:12:15 2003 From: joshmccormack at travelersdiary.com (Josh McCormack) Date: Sat, 01 Feb 2003 15:12:15 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... References: <200302010735.h117Y4t5073660@parsec.nyphp.org> Message-ID: <3E3C2A1F.3080506@travelersdiary.com> If you find some good tutorials or examples, please pass them along. I just stuck with using a cookie for a recent password protected script. Josh Webapprentice wrote: >Thanks Jerry. > >Now I have to learn about sessions. *laughs* > > >--Stephen > > >Jerry Kapron wrote: > > > >>Re. my previous message >> >>Corrected function: >> >>function post_save() { >> if(count($_POST)) { >> $_SESSION['post_around'] = $_POST; >> } >>} >> >> >>Jerry >> >>-- >>42.7% of all statistics are made up on the spot. >> >> >> >>-----Original Message----- >>From: Jerry Kapron >>Subject: Re: [nycphp-talk] Passing some form values through to a redirected >>page... >> >> >> >> >> >> >>>This is a simplified version of what I do to pass POST data: >>> >>>These two functions are included in all my scripts: >>> >>>function post_save() { >>> if(count($_POST)) >>> >>> $_SESSION['post_around'] = $_POST; >>> } >>>} >>> >>> >>> >>> >>> >> >> >> >> >> >> >> >> >> >> > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > From jseberg at speakeasy.net Sat Feb 1 15:34:21 2003 From: jseberg at speakeasy.net (John Seberg) Date: Sat, 1 Feb 2003 12:34:21 -0800 (PST) Subject: [nycphp-talk] Passing some form values through to a redirected page... In-Reply-To: <200302012012.h11KBjoW000265@parsec.nyphp.org> Message-ID: On Sat, 1 Feb 2003, Josh McCormack wrote: > If you find some good tutorials or examples, please pass them along. I > just stuck with using a cookie for a recent password protected script. > > Josh > If you used session_start() and related functions, you have options to use server files, server memory, or a custom handler to store your session variables - rather than cookies. It might only be a matter of editing php.ini. I thought this was covered quite well in "Web Database Applications with PHP & MySQL" by Williams & Lane (O'Reilly). They even have an appendix on how to write your own handler to store your session vars in a database. The chapter covering Sessions is online: Disclaimer: I'm a total newbie. > Webapprentice wrote: > > >Thanks Jerry. > > > >Now I have to learn about sessions. *laughs* > > > > > >--Stephen > > > > > >Jerry Kapron wrote: > > > > > > > >>Re. my previous message > >> > >>Corrected function: > >> > >>function post_save() { > >> if(count($_POST)) { > >> $_SESSION['post_around'] = $_POST; > >> } > >>} > >> > >> > >>Jerry > >> > >>-- > >>42.7% of all statistics are made up on the spot. > >> > >> > >> > >>-----Original Message----- > >>From: Jerry Kapron > >>Subject: Re: [nycphp-talk] Passing some form values through to a redirected > >>page... > >> > >> > >> > >> > >> > >> > >>>This is a simplified version of what I do to pass POST data: > >>> > >>>These two functions are included in all my scripts: > >>> > >>>function post_save() { > >>> if(count($_POST)) > >>> > >>> $_SESSION['post_around'] = $_POST; > >>> } > >>>} > >>> > >>> > >>> > >>> > >>> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From joshmccormack at travelersdiary.com Sat Feb 1 15:48:27 2003 From: joshmccormack at travelersdiary.com (Josh McCormack) Date: Sat, 01 Feb 2003 15:48:27 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... References: <200302012034.h11KYNpG001094@parsec.nyphp.org> Message-ID: <3E3C329B.80705@travelersdiary.com> Thanks so much. I'll take a look at it. After this I have to study variable scope some more. Josh John Seberg wrote: >On Sat, 1 Feb 2003, Josh McCormack wrote: > > > >>If you find some good tutorials or examples, please pass them along. I >>just stuck with using a cookie for a recent password protected script. >> >>Josh >> >> >> > >If you used session_start() and related functions, you have >options to use server files, server memory, or a custom handler >to store your session variables - rather than cookies. It might >only be a matter of editing php.ini. > >I thought this was covered quite well in "Web Database >Applications with PHP & MySQL" by Williams & Lane (O'Reilly). >They even have an appendix on how to write your own handler to >store your session vars in a database. > >The chapter covering Sessions is online: > > > >Disclaimer: I'm a total newbie. > > > >>Webapprentice wrote: >> >> >> >>>Thanks Jerry. >>> >>>Now I have to learn about sessions. *laughs* >>> >>> >>>--Stephen >>> >>> >>>Jerry Kapron wrote: >>> >>> >>> >>> >>> >>>>Re. my previous message >>>> >>>>Corrected function: >>>> >>>>function post_save() { >>>> if(count($_POST)) { >>>> $_SESSION['post_around'] = $_POST; >>>> } >>>>} >>>> >>>> >>>>Jerry >>>> >>>>-- >>>>42.7% of all statistics are made up on the spot. >>>> >>>> >>>> >>>>-----Original Message----- >>>>From: Jerry Kapron >>>>Subject: Re: [nycphp-talk] Passing some form values through to a redirected >>>>page... >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>>This is a simplified version of what I do to pass POST data: >>>>> >>>>>These two functions are included in all my scripts: >>>>> >>>>>function post_save() { >>>>> if(count($_POST)) >>>>> >>>>> $_SESSION['post_around'] = $_POST; >>>>> } >>>>>} >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >> >> >> >> > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > From soazine at erols.com Sat Feb 1 16:32:39 2003 From: soazine at erols.com (Phil Powell) Date: Sat, 1 Feb 2003 16:32:39 -0500 Subject: Need an explanation as to what this line does... Message-ID: <030101c2ca39$72dce120$2aaf6244@scandinawa1bo6> $stuffArray[$i][value] = strtr($stuffArray[$i][value], array_flip(get_html_translation_table(HTML_ENTITIES))); To be bluntly honest, I don't understand hardly any of it, and the PHP Manual isn't helping this time.. maybe I'm weekend-stupid or something.. *sigh* Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From weslists at anapraxis.com Sat Feb 1 17:04:56 2003 From: weslists at anapraxis.com (Weston Houghton) Date: Sat, 1 Feb 2003 17:04:56 -0500 Subject: [nycphp-talk] Need an explanation as to what this line does... In-Reply-To: <200302012134.h11LYrhM003096@parsec.nyphp.org> Message-ID: <330E74F5-3631-11D7-BAC8-000393A95C72@anapraxis.com> Reading from inside out, here is what seems to be happening: 1. get_html_translation_table(HTML_ENTITIES) This returns an associative array of the entities used in the HTML_ENTITIES translation table. 2. array_flip This takes the associative array returned by get_html_translation_table above and swaps the values and keys of that array, so what was once a key is now a value. 3. strtr In this case you are using the newer option for strtr that allows you to pass in an initial string ($stuffArray[$i][value]), and have the character values in that string translated based on the associative array returned by the array_flip step above. So it looks to me like this line is converting translated entities into their original character counterpart. To see exactly what it is doing, try taking that same line: > $stuffArray[$i][value] = strtr($stuffArray[$i][value], > array_flip(get_html_translation_table(HTML_ENTITIES))); changing it to: $oldString = "<>"; $newString = strtr($oldString, array_flip(get_html_translation_table(HTML_ENTITIES))); And see how it comes out. I get: <> Wes Essentially this is just converting characters in the string located at $stuffArray[$i][value] and replacing the old string with the newly "cleaned" string. On Saturday, February 1, 2003, at 04:34 PM, Phil Powell wrote: > $stuffArray[$i][value] = strtr($stuffArray[$i][value], > array_flip(get_html_translation_table(HTML_ENTITIES))); > > To be bluntly honest, I don't understand hardly any of it, and the PHP > Manual isn't helping this time.. maybe I'm weekend-stupid or > something.. *sigh* > > Phil > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > ------------------------------------------------------------------------ --- The selection and placement of letters on this page was determined automatically by a computer program. Any resemblance to actual words, sentences, or paragraphs is pure coincidence, and no liability will be assumed for such coincidences. ------------------------------------------------------------------------ --- From holmes072000 at charter.net Sat Feb 1 17:13:43 2003 From: holmes072000 at charter.net (John W. Holmes) Date: Sat, 1 Feb 2003 17:13:43 -0500 Subject: [PHP] Need an explanation as to what this line does... In-Reply-To: <030101c2ca39$72dce120$2aaf6244@scandinawa1bo6> Message-ID: <001801c2ca3f$2ec0c190$7c02a8c0@coconut> > $stuffArray[$i][value] = strtr($stuffArray[$i][value], > array_flip(get_html_translation_table(HTML_ENTITIES))); > > To be bluntly honest, I don't understand hardly any of it, and the PHP > Manual isn't helping this time.. maybe I'm weekend-stupid or something.. It converts HTML entities back to their original characters. Where htmlentities() and htmlspecialchars() will take characters like <, >, and & and turn them into <, >, and &, the code you have will take those entities and turn them back into <, >, and &. It's all explained on the get_html_translation_table() manual page, if you care to read the manual. http://www.php.net/manual/en/function.get-html-translation-table.php ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ From fields at surgam.net Sat Feb 1 17:50:12 2003 From: fields at surgam.net (Adam Fields) Date: Sat, 1 Feb 2003 17:50:12 -0500 Subject: [nycphp-talk] What breaks in 4.3? In-Reply-To: <200301301657.h0UGuSsV016506@parsec.nyphp.org> References: <200301301657.h0UGuSsV016506@parsec.nyphp.org> Message-ID: <20030201225012.GB13044@eye.surgam.net> On Thu, Jan 30, 2003 at 11:56:28AM -0500, Adam Fields wrote: > I'm planning on upgrading from 4.1 to 4.3. I've heard some reports > that some things break in 4.3, but no specifics. > > What should I be on the lookout for? I posted this message a few days ago, but no response. Has anyone here upgraded to 4.3? Did it work well for you? -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From webapprentice at onemain.com Sat Feb 1 18:22:03 2003 From: webapprentice at onemain.com (Webapprentice) Date: Sat, 01 Feb 2003 18:22:03 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... References: <200302011742.h11Hfoqt081886@parsec.nyphp.org> Message-ID: <3E3C569B.7000503@onemain.com> George Webb wrote: > So you said you don't want to "embed" the 2nd script into >the first one... why not just "include" it? That way, the only >additional cost of the "redirect" is reading and executing that >file... no extra HTTP noise (which in some cases could slow things >down by more than a few seconds per page hit). > > George, If I "include"/"require" this file, can I still access $HTTP_POST_VARS[] values without a session. (I have to use $HTTP_POST_VARS[], because _POST[] isn't supported on the server I'm on). I just want to access a $HTTP_POST_VARS[] variable on the second page for use in a hidden form. > Overall, it sounds like you might be moving toward >building one single "library" file of your functions, and then your >"scripts" would include this library and call whatever functions it >needs. > > I actually have a small library of validation functions that I do "require" in my pages. > Also, I don't know how much data is getting POSTed, but if >it's more than a few hundred characters (or has the potential to be), >you might have problems doing Location: redirects with all that data. >I could explain this further if it doesn't make sense. > > Could you explain this? I thought you couldn't pass any data using header("Location: "). I'm still inexperienced with PHP, so I need an explanation. Thanks for your help. Stephen From danielc at analysisandsolutions.com Sat Feb 1 19:17:08 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Sat, 1 Feb 2003 19:17:08 -0500 Subject: [nycphp-talk] Problem with xml_parse_into_struct In-Reply-To: <200301300657.h0U6v6Sb098764@parsec.nyphp.org> References: <200301300657.h0U6v6Sb098764@parsec.nyphp.org> Message-ID: <20030202001708.GB18118@panix.com> On Thu, Jan 30, 2003 at 01:57:06AM -0500, Phil Powell wrote: > I have various XML files that might contain <> tags inside the element > body, for example: Then it's not valid XML. Data that should not be parsed needs to be in CDATA sections. See http://www.w3.org/TR/REC-xml#sec-cdata-sect for more information. Example: here is bold.]]> --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From gw.nyphp at gwprogramming.com Sat Feb 1 19:19:22 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Sat, 1 Feb 2003 19:19:22 -0500 (EST) Subject: [nycphp-talk] Passing some form values through to a redirected page... Message-ID: <200302020019.TAA14350@gw00.com> > George, > If I "include"/"require" this file, can I still access $HTTP_POST_VARS[] > values without a session. > (I have to use $HTTP_POST_VARS[], because _POST[] isn't supported on the > server I'm on). > > I just want to access a $HTTP_POST_VARS[] variable on the second page > for use in a hidden form. Sure; all global variables are still available to include()'d and/or require()'d scripts. $HTTP_XXX_VARS, however, does require the "global" declaration if you use it inside the scope of a function. In more recent versions, the $_POST, $_GET, etc. arrays are "superglobals" which means you don't have to use the "global" declaration with them; they're available everywhere. Plus, $_POST is much easier to type. > > Also, I don't know how much data is getting POSTed, but if > >it's more than a few hundred characters (or has the potential to be), > >you might have problems doing Location: redirects with all that data. > >I could explain this further if it doesn't make sense. > > > > > Could you explain this? I thought you couldn't pass any data using > header("Location: "). > I'm still inexperienced with PHP, so I need an explanation. This is actually the difference between the GET and POST method for HTTP. You know how your HTML form can have an METHOD of either "GET" or "POST". If it's GET, your browser simply (?) throws all the fields together and puts them on the end of your ACTION URL. Example:
Name:
Question:
If the user types in their name ("George") and their question ("Help!!!"), then the browser would use the regular old HTTP GET method to get the following URL: http://yourserver.com/form-handler.php?myname=George&myquestion=Help%21%21%21 As you can see the form data is simply (?) appended to the , after a question-mark, and separated by ampersands. Each element, also, is url-encoded, e.g. exclamation points become %21. You could also type this same string into a web browser to see the exact same effect. On the other hand, if you change that example to use METHOD=POST, then the browser issues a POST request instead of a GET request to the server, and the requested URL would be simply http://yourserver.com/form-handler.php. Nothing appended to the URL. Then the form data is assembled in the same simple (?) way in the body of the HTTP request, which users typically never see. So, to answer your question, the reason you should use POST requests with a large amount of data is because if you used GET, the URL would become too long for the server. In this example, if the user typed a really long question (or pasted a really long string like a RFC document), the server would probably barf after reading about 1000 characters from the URL. If you use POST, there is not such a limitation to the length of the submitted form data. There are other reasons also why you might not want to use GET method requests for forms. One is server logs typically store the entire request URL, so in a shared ownership environment where everyone can view each other's server logs, everyone can see all the other users' submitted data. Privacy issue. Another issue is caching pages when browsers navigate backwards -- browsers are more likely to silently re-submit a form request with a GET method than with a POST request. So if you had a Form Mail script, for example, if your users went back to the form page and then forward again, the data *might* be submitted again (depending on some configuration settings). With POST method, browsers tend to confirm that the user really wants to re-POST, before it just goes and sends all that data again. In Netscape, the alert is something like "Repost Form Data? [Cancel] [OK]". Another issue with redirects from a form-submit (GET or POST) is that the posted data is not actually available to the redirected script. So if you post to /scriptA.php which does nothing except redirect to /scriptB.php, scriptB.php will not actually see the submitted data, unless scriptA.php sticks it on the end of the redirected URL, like the browsers do. Either way, the redirected script will have to use the GET method, even if the browser request was a POST method. Hope that's not too verbose; I just had a Code Red. Most Bestly, George Webb gw.nyphp at gwprogramming.com From webapprentice at onemain.com Sat Feb 1 19:38:44 2003 From: webapprentice at onemain.com (Webapprentice) Date: Sat, 01 Feb 2003 19:38:44 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... References: <200302020019.h120JRn8007794@parsec.nyphp.org> Message-ID: <3E3C6894.3090008@onemain.com> > > > Sure; all global variables are still available to include()'d >and/or require()'d scripts. $HTTP_XXX_VARS, however, does require the >"global" declaration if you use it inside the scope of a function. >In more recent versions, the $_POST, $_GET, etc. arrays are "superglobals" >which means you don't have to use the "global" declaration with them; >they're available everywhere. Plus, $_POST is much easier to type. > > George, If I had a function doThis(), do you mean... function doThis() { global $HTTP_POST_VARS; } The server I'm on does not support $_POST, etc. The version of PHP is older. >> > Also, I don't know how much data is getting POSTed, but if >> >it's more than a few hundred characters (or has the potential to be), >> >you might have problems doing Location: redirects with all that data. >> >I could explain this further if it doesn't make sense. >> > >> > >> > This is actually the difference between the GET and POST method >for HTTP. You know how your HTML form can have an METHOD of either "GET" >or "POST". If it's GET, your browser simply (?) throws all the fields >together and puts them on the end of your ACTION URL. Example: > >
>Name:
>Question:
> >
> > In the past, I typically used POST to avoid long URLs and revealing data in the URL. So, I'm ok there. > Another issue with redirects from a form-submit (GET or POST) is that >the posted data is not actually available to the redirected script. So if you >post to /scriptA.php which does nothing except redirect to /scriptB.php, >scriptB.php will not actually see the submitted data, unless scriptA.php sticks >it on the end of the redirected URL, like the browsers do. Either way, the >redirected script will have to use the GET method, even if the browser request >was a POST method. > > This is good to know. So redirection would only allow a GET method if I tell scriptA.php to add information to the URL of the redirection. Like this? header("Location: scriptB.php?myname=George"); Is this what you mean? > Hope that's not too verbose; I just had a Code Red. > > Good explanations are perfectly fine by me. The more I know, the safer the coding world will be. *grins* Thanks, Stephen From soazine at erols.com Sat Feb 1 19:45:01 2003 From: soazine at erols.com (Phil Powell) Date: Sat, 1 Feb 2003 19:45:01 -0500 Subject: [nycphp-talk] Problem with xml_parse_into_struct References: <200302020017.h120HAjS007118@parsec.nyphp.org> Message-ID: <03de01c2ca54$522168a0$2aaf6244@scandinawa1bo6> Well I found a way around that problem, but changing the XML structure to be valid XML was way too problematic considering: 1) the volume of XML files to change 2) the fact that other programs (Java, TCL, ASP) use those very same XML files alongside PHP. Messy, ain't it? Phil ----- Original Message ----- From: "Analysis & Solutions" To: "NYPHP Talk" Sent: Saturday, February 01, 2003 7:17 PM Subject: Re: [nycphp-talk] Problem with xml_parse_into_struct > On Thu, Jan 30, 2003 at 01:57:06AM -0500, Phil Powell wrote: > > > I have various XML files that might contain <> tags inside the element > > body, for example: > > Then it's not valid XML. Data that should not be parsed needs to be in > CDATA sections. See http://www.w3.org/TR/REC-xml#sec-cdata-sect for more > information. Example: > > > here is bold.]]> > > > --Dan > > -- > PHP classes that make web design easier > SqlSolution.info | LayoutSolution.info | FormSolution.info > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From evan.heller at alum.rpi.edu Sat Feb 1 20:35:56 2003 From: evan.heller at alum.rpi.edu (evan heller) Date: Sat, 01 Feb 2003 20:35:56 -0500 Subject: [nycphp-talk] What breaks in 4.3? References: <200302012250.h11MoIhG005020@parsec.nyphp.org> Message-ID: <3E3C75FC.5CF5916C@alum.rpi.edu> When I upgraded I noticed on windows that the file() function no longer writes to the hard disk in windows. This worked in 4.2.3 last i checked. -Evan Adam Fields wrote: > > On Thu, Jan 30, 2003 at 11:56:28AM -0500, Adam Fields wrote: > > I'm planning on upgrading from 4.1 to 4.3. I've heard some reports > > that some things break in 4.3, but no specifics. > > > > What should I be on the lookout for? > > I posted this message a few days ago, but no response. > > Has anyone here upgraded to 4.3? Did it work well for you? > > -- > - Adam > > ----- > Adam Fields, Managing Partner, fields at surgam.net > Surgam, Inc. is a technology consulting firm with strong background in > delivering scalable and robust enterprise web and IT applications. > http://www.adamfields.com > > --- Unsubscribe at http://nyphp.org/list/ --- -- Evan Heller evan.heller at alum.rpi.edu From jkapron at NewAgeWeb.com Sat Feb 1 22:52:42 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Sat, 01 Feb 2003 22:52:42 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... Message-ID: <000f01c2ca6e$8a7482e0$de01a8c0@duron.lan.newageweb.com> -----Original Message----- From: Webapprentice >(I have to use $HTTP_POST_VARS[], because _POST[] isn't supported on the >server I'm on). > >I just want to access a $HTTP_POST_VARS[] variable on the second page >for use in a hidden form. I modified the functions to work on your server. Include them in your scripts and follow the instructions below. function post_save() { global $HTTP_POST_VARS; global $HTTP_SESSION_VARS; if(count($HTTP_POST_VARS)) { $HTTP_SESSION_VARS['post_around'] = $HTTP_POST_VARS; } } function post_read() { global $HTTP_POST_VARS; global $HTTP_SESSION_VARS; if(!count($HTTP_POST_VARS) && isset($HTTP_SESSION_VARS['post_around']) ) { $HTTP_POST_VARS = $HTTP_SESSION_VARS['post_around']; unset($HTTP_SESSION_VARS['post_around']); } } Place this code near the top of each script (after the above function definitions): session_start(); post_read(); and this right before each header( 'Location: ...') call: post_save(); That's all. Don't let anyone confuse you and make it seem more complicated than it really is :) Jerry From chun_lam at hotmail.com Sat Feb 1 22:59:31 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Sat, 01 Feb 2003 22:59:31 -0500 Subject: [nycphp-talk] What breaks in 4.3? Message-ID: I think file() was never meant to write at all. It is meant for reading a file. If it did, it would more be a bug. Matthew ----Original Message Follows---- From: evan heller Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] What breaks in 4.3? Date: Sat, 1 Feb 2003 20:38:31 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc5-f14.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sat, 1 Feb 2003 17:38:56 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h121cVkw010444for ; Sat, 1 Feb 2003 20:38:55 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200302020138.h121cVkw010444 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 02 Feb 2003 01:38:56.0703 (UTC) FILETIME=[D9F03CF0:01C2CA5B] When I upgraded I noticed on windows that the file() function no longer writes to the hard disk in windows. This worked in 4.2.3 last i checked. -Evan Adam Fields wrote: > > On Thu, Jan 30, 2003 at 11:56:28AM -0500, Adam Fields wrote: > > I'm planning on upgrading from 4.1 to 4.3. I've heard some reports > > that some things break in 4.3, but no specifics. > > > > What should I be on the lookout for? > > I posted this message a few days ago, but no response. > > Has anyone here upgraded to 4.3? Did it work well for you? > > -- > - Adam > > ----- > Adam Fields, Managing Partner, fields at surgam.net > Surgam, Inc. is a technology consulting firm with strong background in > delivering scalable and robust enterprise web and IT applications. > http://www.adamfields.com > > -- Evan Heller evan.heller at alum.rpi.edu --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus From webapprentice at onemain.com Sat Feb 1 23:06:02 2003 From: webapprentice at onemain.com (Webapprentice) Date: Sat, 01 Feb 2003 23:06:02 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... References: <200302020351.h123oln8012186@parsec.nyphp.org> Message-ID: <3E3C992A.4090504@onemain.com> Hi Jerry, Thanks. Between you and George, there is definitely more than one way to do it. Thank you. --Stephen Jerry Kapron wrote: >-----Original Message----- >From: Webapprentice > > > >>(I have to use $HTTP_POST_VARS[], because _POST[] isn't supported on the >>server I'm on). >> >>I just want to access a $HTTP_POST_VARS[] variable on the second page >>for use in a hidden form. >> >> > > >I modified the functions to work on your server. Include them in your >scripts and follow the instructions below. > >function post_save() { > global $HTTP_POST_VARS; > global $HTTP_SESSION_VARS; > if(count($HTTP_POST_VARS)) { > $HTTP_SESSION_VARS['post_around'] = $HTTP_POST_VARS; > } >} > > >function post_read() { > global $HTTP_POST_VARS; > global $HTTP_SESSION_VARS; > if(!count($HTTP_POST_VARS) && >isset($HTTP_SESSION_VARS['post_around']) ) { > $HTTP_POST_VARS = $HTTP_SESSION_VARS['post_around']; > unset($HTTP_SESSION_VARS['post_around']); > } >} > > >Place this code near the top of each script (after the above function >definitions): > >session_start(); >post_read(); > >and this right before each header( 'Location: ...') call: > >post_save(); > >That's all. Don't let anyone confuse you and make it seem more complicated >than it really is :) > >Jerry > > > > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > From jkapron at NewAgeWeb.com Sat Feb 1 23:08:40 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Sat, 01 Feb 2003 23:08:40 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... Message-ID: <001b01c2ca70$c5826440$de01a8c0@duron.lan.newageweb.com> >So if you >post to /scriptA.php which does nothing except redirect to /scriptB.php, >scriptB.php will not actually see the submitted data, unless scriptA.php sticks >it on the end of the redirected URL, like the browsers do. Either way, the >redirected script will have to use the GET method, even if the browser request >was a POST method. >... >George Webb George, That's not really true. Building a query string from POSTed data and appending it to the url in the header('Location: ..') call is not the only (and in fact ugly) 'solution'. See my previous message for details. Jerry -- 42.7% of all statistics are made up on the spot. From webapprentice at onemain.com Sat Feb 1 23:11:30 2003 From: webapprentice at onemain.com (Webapprentice) Date: Sat, 01 Feb 2003 23:11:30 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... References: <200302020407.h1246jn8014368@parsec.nyphp.org> Message-ID: <3E3C9A72.7050807@onemain.com> Jerry Kapron wrote: >>So if you >>post to /scriptA.php which does nothing except redirect to /scriptB.php, >>scriptB.php will not actually see the submitted data, unless scriptA.php >> >> >sticks > > >>it on the end of the redirected URL, like the browsers do. Either way, the >>redirected script will have to use the GET method, even if the browser >> >> >request > > >>was a POST method. >>... >>George Webb >> >> > >George, >That's not really true. Building a query string from POSTed data and >appending it to the url in the header('Location: ..') call is not the only >(and in fact ugly) 'solution'. See my previous message for details. > >Jerry > > As a matter of preference, I prefer not exposing any data to the URL. So I can either... 1) require() or include() the second page, so $HTTP_POST_VARS[] is visible on the second page (George's idea) or 2) create two utility functions and use sessioning to transfer data to the next page (Jerry's idea) --Stephen From chun_lam at hotmail.com Sat Feb 1 23:19:43 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Sat, 01 Feb 2003 23:19:43 -0500 Subject: [nycphp-talk] Passing some form values through to a redirected page... Message-ID: Or you can have the first php to generate an XML output. Then have the second PHP call the first php. Read the XML from the second php. Done. Matthew Programming is like Math. The is always more than one way to skin that cat :-P ----Original Message Follows---- From: Webapprentice Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] Passing some form values through to a redirected page... Date: Sat, 1 Feb 2003 23:10:09 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc5-f9.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sat, 1 Feb 2003 20:10:25 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h124A9kw015060for ; Sat, 1 Feb 2003 23:10:25 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200302020410.h124A9kw015060 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 02 Feb 2003 04:10:26.0147 (UTC) FILETIME=[03AB5330:01C2CA71] Jerry Kapron wrote: >>So if you >>post to /scriptA.php which does nothing except redirect to /scriptB.php, >>scriptB.php will not actually see the submitted data, unless scriptA.php >> >> >sticks > > >>it on the end of the redirected URL, like the browsers do. Either way, the >>redirected script will have to use the GET method, even if the browser >> >> >request > > >>was a POST method. >>... >>George Webb >> >> > >George, >That's not really true. Building a query string from POSTed data and >appending it to the url in the header('Location: ..') call is not the only >(and in fact ugly) 'solution'. See my previous message for details. > >Jerry > > As a matter of preference, I prefer not exposing any data to the URL. So I can either... 1) require() or include() the second page, so $HTTP_POST_VARS[] is visible on the second page (George's idea) or 2) create two utility functions and use sessioning to transfer data to the next page (Jerry's idea) --Stephen --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From mikeh at netxinc.com Sun Feb 2 00:46:11 2003 From: mikeh at netxinc.com (mikeh) Date: Sun, 2 Feb 2003 00:46:11 -0500 Subject: Collaboration App Message-ID: <000701c2ca7e$675578e0$65fea8c0@MIKEH> I am looking for a linux server application that can provide similar > features as WEB-EX can but for smaller groups / internal use. > > Anyone know of any ? > This email message is for the sole use of the intended recipient (s) and may contain confidential and privileged information. Any unauthorized review; use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Mike Hjorleifsson (mikeh at dtev.com).vcf Type: text/x-vcard Size: 513 bytes Desc: not available URL: From gw.nyphp at gwprogramming.com Sun Feb 2 03:31:01 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Sun, 2 Feb 2003 03:31:01 -0500 (EST) Subject: [nycphp-talk] What breaks in 4.3? Message-ID: <200302020831.DAA14566@gw00.com> As I posted earlier on this list, I am having problems with mysql_pconnect(). Hans et. al. pointed out that this is a known bug and has now (in cvs?) been fixed. FYI, I am on RH Linux 7.1, but this bug may be more affective than that. So you might check out bugs.php.net for version > 4.3. That was a good idea. Warmly, George. George Webb gw.nyphp at gwprogramming.com From zaunere at yahoo.com Sun Feb 2 04:06:28 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Sun, 2 Feb 2003 01:06:28 -0800 (PST) Subject: [nycphp-talk] What breaks in 4.3? In-Reply-To: <200302012251.h11MoIqg005020@parsec.nyphp.org> Message-ID: <20030202090628.23826.qmail@web12805.mail.yahoo.com> --- Adam Fields wrote: > On Thu, Jan 30, 2003 at 11:56:28AM -0500, Adam Fields wrote: > > I'm planning on upgrading from 4.1 to 4.3. I've heard some reports > > that some things break in 4.3, but no specifics. > > > > What should I be on the lookout for? > > I posted this message a few days ago, but no response. > > Has anyone here upgraded to 4.3? Did it work well for you? We in fact moved NYU's research application to 4.3 last week, and there has been no indication of error. While we don't use MySQL persistent connections, spontaneous MySQL and Oracle connections are used heavily with no problem. There's also been no indication of error with all other operations. However, a check of: http://www.php.net/ChangeLog-4.php may be useful. ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From jkapron at NewAgeWeb.com Sun Feb 2 09:55:15 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Sun, 02 Feb 2003 09:55:15 -0500 Subject: flooding + sessions Message-ID: <000a01c2cacb$18caa220$de01a8c0@duron.lan.newageweb.com> I've just realized that in case someone decides to flood my web server with HTTP requests, the session.save_path directory on the server will get filled with thousands or even millions of session files in no time. Each session_start() will create a new unique file on the disk or an entry in a session handling database table. This can drastically slow down the server even after the flood stops. I deliberately flooded my development server and noticed the number of session files kept increasing for the next several minutes after I stop the flood. I imagine it would cause a variety of other problems as well. While setting a high value (100) for session.gc_probability and reducing the value for session.gc_maxlifetime to 300 (5 minutes) will limit the number of files to as many as a flood attack can generate in 5 minutes, it will cause the server to perform the 'garbage collection' routine upon every request, which itself can be damaging to the server's performance. Besides simultaneous flood attacks from multiple sources can easily amount to hundreds of thousands of hits thus session files in just 5 minutes. Can anyone think of a solution? A code level solution would be nice but I can't think of anything. I believe this calls for a small change to the way PHP handles sessions. While a session id and a cookie are generated upon establishing a new session (session_start()), a session handling file should not be created until a session variable is initialized ( $_SESSION = or session_register()). With that in place, writing flood-proof code wouldn't be hard at all. Jerry -- 42.7% of all statistics are made up on the spot. From jkapron at NewAgeWeb.com Sun Feb 2 10:16:23 2003 From: jkapron at NewAgeWeb.com (Jerry Kapron) Date: Sun, 02 Feb 2003 10:16:23 -0500 Subject: slide show Message-ID: <000a01c2cace$0c9d3be0$de01a8c0@duron.lan.newageweb.com> Is Dan Cowgill's slide show available anywhere on the web? I could not find it on NYPHP.ORG. Jerry -- 42.7% of all statistics are made up on the spot. From sterling at bumblebury.com Sun Feb 2 18:13:10 2003 From: sterling at bumblebury.com (Sterling Hughes) Date: 02 Feb 2003 18:13:10 -0500 Subject: Mono & PHP Message-ID: <1044227590.7317.62.camel@hasele> I spent a little time this weekend implementing an extension that allows PHP to load .NET classes on the Unix environment - 100% open source, by leveraging the mono library(*). For more information, view the README file in the distribution by downloading the file http://www.edwardbear.org/php_mono_0_1.tar.gz. Its PHP5 only, as that's what I've switched to for all new development. Hi Ho. WriteLine('Hello World, PHP is .NET ready!'); ?> - Sterling "No More Extensions Needed" Hughes (*) Mono is much more than library, of course. But it links to/uses the mono library. PS: I'll be adding it into PECL in a little bit, I want to finish the type proxying code. I'd also like to add all of the object and method caching. PPS: If anyone has suggestions for a better way of doing type proxying than what's described in the README, please let me know. -- "First they ignore you, then they laugh at you, then they fight you, then you win." - Gandhi From maxim at php.net Sun Feb 2 20:02:04 2003 From: maxim at php.net (Maxim Maletsky) Date: Mon, 03 Feb 2003 02:02:04 +0100 Subject: [PHP-DEV] Mono & PHP In-Reply-To: <1044227590.7317.62.camel@hasele> References: <1044227590.7317.62.camel@hasele> Message-ID: <20030203015959.0FB5.MAXIM@php.net> I read the code, quite nice! It's been a while I was thinking to integrate Ruby into PHP, which would probably be a very very similar extension as this one. Are they going to get into the official PHP distr or PECL? -- Maxim Maletsky maxim at php.net On 02 Feb 2003 18:13:10 -0500 Sterling Hughes wrote: > I spent a little time this weekend implementing an extension that allows > PHP to load .NET classes on the Unix environment - 100% open source, by > leveraging the mono library(*). For more information, view the README > file in the distribution by downloading the file > http://www.edwardbear.org/php_mono_0_1.tar.gz. > > Its PHP5 only, as that's what I've switched to for all new development. > Hi Ho. > > $Console = new Mono('System.Console'); > $Console->WriteLine('Hello World, PHP is .NET ready!'); > ?> > > - Sterling "No More Extensions Needed" Hughes > > (*) Mono is much more than library, of course. But it links to/uses the > mono library. > > PS: I'll be adding it into PECL in a little bit, I want to finish the > type proxying code. I'd also like to add all of the object and method > caching. > > PPS: If anyone has suggestions for a better way of doing type proxying > than what's described in the README, please let me know. > > -- > "First they ignore you, then they laugh at you, > then they fight you, then you win." > - Gandhi > > > -- > PHP Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > From kenneth at ylayali.net Sun Feb 2 21:09:00 2003 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Sun, 02 Feb 2003 21:09:00 -0500 Subject: .ini config + *nix permissions Message-ID: <3E3DCF3C.8050003@ylayali.net> Hi, I've been going over my PHP configuration, and have a few questions mostly arising from my general newbieness to linux administration. My setup consists of a bunch of VirtualHosts, all with pretty much the same configuration[1] and directory structure[2]. The development machine is running PHP 4.2.3 and the server machine 4.1.2 (debian backports 4.2.3-9 & 4.1.2-6 actually); the only difference between their configurations is the error handling. I have a pretty conservative php.ini, figuring it's probably easier to never rely on register_globals etc from the start than to have to convert scripts later to run on some ISP's virtual host server. I incorporated most of the changes from php.ini-recommended (which came with the debian source package) & now I'm trying to isolate each of the vhosts as much as I can while sticking with mod_php. I plan to implement disk quotas so if one vhost goes haywire and starts a logging frenzy, it probably won't bring the whole machine down. For this I'm setting each VirtualHost's open_basedir option to its own directory, turning on safe mode, and moving PHP's error_log to a vhost-specific 'log' directory It's mostly moving to safe mode that I'm having trouble with... SAFE_MODE 1. What is the recommended permission/ownership combination for allowing uploads/disk writes under safe mode? I'm having a problem with letting scripts create directories recursively. My Apache runs as www-data:www-data, so the script itself is owned by anybody but that. (on my development box, it's me, on the "live" machine it's root). I've been playing around with some RSS/RDF stuff, and I want to cache the pages like this, http://www.theregister.co.uk/tonys/slashdot.rdf becomes $cache_root/www.theregister.co.uk/tonys/slashdot.rdf The $cache_root is the directory called 'cache' in [2], below. I've tried different combinations of ownership & permissions, and I can allow www-data to write to a directory, but not to write to a directory that he creates within that directory. For some reason, relaxing "safe_mode_gid = On" and `chown -R kenneth:www-data cache; chmod g+s cache` doesn't work... E_ALL 2. With error reporting set to E_ALL on the dev machine, I keep getting "Warning: open_basedir restriction in effect. File is in wrong directory in /var/www/kuboaa.org/dev/htdocs/portal.php on line 9" even though open_basedir is set to "/var/www/kuboaa.org/dev/" and the file i'm including lives in "/var/www/kuboaa.org/dev/lib". Since it does in fact successfully include the file, I'm guessing this is normal extra-verbosity of E_ALL? (i don't think that setting's gonna last long..) ERROR_LOG 3. Can I change who PHP logs as when log_errors is On? I'm kind of surprised that writing to error_log doesn't seem to be done by the same user as Apache's logging (root). In order to get logging to work so far, I've just manually touched the file & made it world-writable, which I guess is as safe as allowing uploads, etc, but I want to make sure that's the right way to do it before adjusting logrotate to maintain those permissions. SESSIONS/TMP I hadn't thought of this until I saw Jerry's message from today. In my case, session.save_path defaults to /tmp, which is on its own partition, so I think the machine itself is pretty much protected from being taken down(?), though I guess all the websites using sessions could be effectively stopped. I considered moving session.save_path to the (to be) vhost-quotaed directory to at least keep a DoS'ed site from effecting the others, until I read "If session.save_path's path depth is more than 2, garbage collection will not be performed." on the manual's ref.session.php page.. anyway, I too would be interested in more about this Any comments are welcome, sorry for such a long message... Kenneth [1] This is the PHP-relevent sections of my VirtualHost directive block on the development box.. ServerName local.kuboaa.org DocumentRoot /var/www/kuboaa.org/dev/htdocs php_value include_path ".:/usr/share/pear:/var/www/kuboaa.org/dev/lib" # safe_mode_include_dir = "/usr/share/pear" in httpd.conf php_admin_flag safe_mode on php_admin_flag safe_mode_gid on php_admin_value open_basedir "/var/www/kuboaa.org/dev/" php_value error_log "/var/www/kuboaa.org/dev/log/phperrors.log" php_value upload_tmp_dir "/var/www/kuboaa.org/dev/tmp" [2] sample VirtualHost directory structure on development machine... root at enlil:/var/www/kuboaa.org# ls -l dev total 24 drwxr-xr-x 2 kenneth kenneth 4096 Jan 30 11:17 CVS drwxrwxr-x 3 kenneth www-data 4096 Jan 30 14:05 cache drwxr-xr-x 5 kenneth kenneth 4096 Feb 2 14:08 htdocs drwxr-xr-x 2 kenneth kenneth 4096 Feb 2 11:48 htpasswd drwxr-xr-x 3 kenneth kenneth 4096 Jan 30 15:10 lib drwxr-xr-x 2 kenneth kenneth 4096 Feb 2 14:09 log drwx------ 2 www-data www-data 4096 Feb 2 16:34 tmp root at enlil:/var/www/kuboaa.org# ls -l dev/log total 40 -rw-r--r-- 1 root root 29903 Feb 2 14:09 access.log -rw-r--r-- 1 root root 2228 Feb 2 14:09 error.log -rw-r--r-- 1 root root 0 Feb 2 14:06 nimda.log -rw-r--rw- 1 root root 136 Feb 2 14:09 phperrors.log From tech_learner at yahoo.com Mon Feb 3 00:11:51 2003 From: tech_learner at yahoo.com (Tracy) Date: Sun, 2 Feb 2003 21:11:51 -0800 (PST) Subject: [nycphp-talk] What breaks in 4.3? In-Reply-To: <200302020139.h121cVrO010444@parsec.nyphp.org> Message-ID: <20030203051151.66422.qmail@web14304.mail.yahoo.com> HI, i upgraded to 4.3 but as i more of a beginner i cant report of any bug, but one thing i'd like help on is i wasnt able to run a test script in the background as the examples suggested. did any one try it ? Tracy evan heller wrote:When I upgraded I noticed on windows that the file() function no longer writes to the hard disk in windows. This worked in 4.2.3 last i checked. -Evan Adam Fields wrote: > > On Thu, Jan 30, 2003 at 11:56:28AM -0500, Adam Fields wrote: > > I'm planning on upgrading from 4.1 to 4.3. I've heard some reports > > that some things break in 4.3, but no specifics. > > > > What should I be on the lookout for? > > I posted this message a few days ago, but no response. > > Has anyone here upgraded to 4.3? Did it work well for you? > > -- > - Adam > > ----- > Adam Fields, Managing Partner, fields at surgam.net > Surgam, Inc. is a technology consulting firm with strong background in > delivering scalable and robust enterprise web and IT applications. > http://www.adamfields.com > > -- Evan Heller evan.heller at alum.rpi.edu --- Unsubscribe at http://nyphp.org/list/ --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezeodua at bonzo.com Mon Feb 3 06:00:26 2003 From: ezeodua at bonzo.com (ezeodua odua) Date: 3 Feb 2003 11:00:26 -0000 Subject: CONTRACT REVIEW PANEL, Message-ID: <20030203110026.32752.qmail@inbox.net> CONTRACT REVIEW PANEL, 10 ADE GEORGE STREETS, VICTORIA ISLAND, LAGOS, NIGERIA. FROM:EZE ODUA . ATTN: PRESIDENT/C.E.O First, I must solicit your strictest confidence in this transaction;this is by virtue of its nature as being utterly confidential and top secret. I am the Legal advicer of the Contract Review Panel instituted by H. E. President Olusegun Obasanjo to probe/review all Contracts execute and payments made during the regime of late General Sani Abacha. I have been mandated by my colleagues on the Panel to seek your assistance in the transfer of the sum of US$18.5 Million into your Bank Account. As you may know, the late General Abacha and members of his government embezzled billions of dollars through spurious contracts and payments to foreigners between1993 to? 1998 and this is now the subject of probe by my Panel. In the course of our review, we have discovered this sum of$18.5 Million, which the former dictator could not transfer from the dedicated account of the Central Bank of Nigeria before his sudden death in June 1998. It is this amount that my Colleagues and I have decided to acquire for us through your assistance. This assistance becomes crucial because we cannot acquire the funds in our names and as government officials we are not allowed to own or operate foreign bank accounts. We have thus develop a, fool proof, legal and totally risk free scheme through which the fund can be transferred to your nominated bank account within a very short time. The scheme is to use our position and influence on the Panel to represent you as a foreign Contractor beneficiary of the funds. We shall arrange all documentation to support this claim and get Approval for the transfer of the funds for your benefit on our behalf. The scheme is perfected to be 100% risk free and we are sure the funds can arrive your Account within 10-14 working days from when you agree to assist us. You should acknowledge the receipt of my mail through the above e-mail address so we can further discuss the modalities of your cooperation and negotiate the charge for the usage of your Account. You definitely have a lot to benefit from this transaction as we are prepared to give you between 20% of the total funds as soon as you secure it in your account. Please, endeavor to send me an e-mail indicating your interest as to enable me furnish you with my confidential telephone/fax number through which we can communicate with you in confidence (in your response) as the need for secrecy is great to this transaction. We expect your urgent response. Yours faithful EZE ODUA (ESQ). From zaunere at yahoo.com Mon Feb 3 16:10:40 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Mon, 3 Feb 2003 13:10:40 -0800 (PST) Subject: [nycphp-talk] slide show In-Reply-To: <200302021515.h12FEiqi024022@parsec.nyphp.org> Message-ID: <20030203211040.88786.qmail@web12804.mail.yahoo.com> --- Jerry Kapron wrote: > Is Dan Cowgill's slide show available anywhere on the web? I could not > find it on NYPHP.ORG. Not yet. I've contacted CC to send me the presentation but have not heard back. I'll make a posting to the list when it goes online. From betenoir at echonyc.com Mon Feb 3 17:28:48 2003 From: betenoir at echonyc.com (betenoir at echonyc.com) Date: Mon, 3 Feb 2003 17:28:48 -0500 Subject: PHP and MSIE 6.0 Message-ID: I am working on shopping cart that allows the user to review and revise her imformation. Input -> Review ->Submit or Input ->Review -> Revise <->Review -> Submit We post data to a third party credit card processor and then the 3rd party hands off to our site. This is because there is user information we need to process if and only if the user successfully completes the credit card transaction. I am using PHP to manage the session. We discovered that sometimes the user information is not preserved. I wrote a fix to explicitly save that data in a cookie rather than rely on the PHP session info by reading the $_POST data into a string and saving it as a cookie. After testing fairly thoroughly we have discovered that IE6 is remarkably inconsistent in how it passes cookies and form data from page to page. It is better at $_POST info but a long way from reliable. It is less reliable when it comes to cookies. Of course there is the possibility that I am missing something obvious. I register my session variables on all pages except the final cookie reading page. Of course it's a little difficult to fix a problem that appears intermittently *on the same machine* and without apparent rhyme or reason. Any insights into this idiosyncratic behavior? TIA, Clyde From danielc at analysisandsolutions.com Mon Feb 3 17:39:07 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Mon, 3 Feb 2003 17:39:07 -0500 Subject: [nycphp-talk] PHP and MSIE 6.0 In-Reply-To: <200302032228.h13MSukc017498@parsec.nyphp.org> References: <200302032228.h13MSukc017498@parsec.nyphp.org> Message-ID: <20030203223906.GA2855@panix.com> Hey Clyde: > I am using PHP to manage the session. We discovered that sometimes the > user information is not preserved. I wrote a fix to explicitly save that > data in a cookie rather than rely on the PHP session info by reading the > $_POST data into a string and saving it as a cookie. Server side data management is the way to go. Meaning: forget cooikes. This will make your site work regardless of the browser or what cookie settings each customer uses. So, what was the original problem where you "discovered that sometimes the user inforamtion is not preserved." See you, --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From shiflett at php.net Mon Feb 3 18:06:55 2003 From: shiflett at php.net (Chris Shiflett) Date: Mon, 3 Feb 2003 15:06:55 -0800 (PST) Subject: [nycphp-talk] PHP and MSIE 6.0 In-Reply-To: <200302032229.h13MSurS017498@parsec.nyphp.org> Message-ID: <20030203230655.4343.qmail@web14303.mail.yahoo.com> --- betenoir at echonyc.com wrote: > After testing fairly thoroughly we have discovered that > IE6 is remarkably inconsistent in how it passes cookies > and form data from page to page. I'm not sure what inconsistencies you are speaking about, but perhaps your observations are related to third-party cookies from sites that are not P3P-compliant. I believe IE requires (by default) P3P compliance from third-party sites wishing to set a cookie. Maybe that helps explain something. > It is better at $_POST info but a long way from > reliable. It is less reliable when it comes to cookies. I am not sure what inconsistency you are noting with IE and form variables, but I expect that you will ultimately identify something in your code rather than in the browser. If you can reproduce your problem in a very small script that demonstrates the problem, we can probably help more. Chris From betenoir at echonyc.com Mon Feb 3 20:51:26 2003 From: betenoir at echonyc.com (betenoir at echonyc.com) Date: Mon, 3 Feb 2003 20:51:26 -0500 Subject: [nycphp-talk] PHP and MSIE 6.0 In-Reply-To: <200302032307.h13N6vmQ019178@parsec.nyphp.org> Message-ID: >--- betenoir at echonyc.com wrote: >> After testing fairly thoroughly we have discovered that >> IE6 is remarkably inconsistent in how it passes cookies >> and form data from page to page. > >I'm not sure what inconsistencies you are speaking about, >but perhaps your observations are related to third-party >cookies from sites that are not P3P-compliant. I believe IE >requires (by default) P3P compliance from third-party sites >wishing to set a cookie. Are you referring to having a privacy policy? We've done that. But it's not the third party that's setting the cookie. The problem is retrieving the cookie that we set when we return to our domain *from* the third party. >Maybe that helps explain something. > >> It is better at $_POST info but a long way from >> reliable. It is less reliable when it comes to cookies. > >I am not sure what inconsistency you are noting with IE and >form variables, but I expect that you will ultimately >identify something in your code rather than in the browser. I am prepared to accept that possibility. However we have had a probem that when posting from form_input.php to review_form.php In the former I've registered name, address, item_number. And posted from a form to review_form.php ON the review_form.php page I register the variables as above and create the HTML as follows: "; print "$address "; print "$item_number "; ?> However the variables do not appear (print) consistently even though there is a javascript error-checking routine on the previous page. And submitting the same page 5 minutes later on the same machine under identical circumstances has produced different results. >If you can reproduce your problem in a very small script >that demonstrates the problem, we can probably help more. The BIG problem is reading the cookie(s) that I am setting on the review_form.php page. $postString = $_POST; $cC = 0; $N100D = ""; $expiry = time() + 60 * 60 * 24 * 365; foreach ($postString as $key => $value) { if ($value != "") { $cienCenas = array ($key => $value); setcookie($key,$value,$expiry); $N100D = $N100D . $key . ","; $N100D = $N100D . $value . ","; } } setcookie('$ciento',$N100D,$expiry); I have confirmed the value of $N100D by printing it on the review_form.php page. But I am NOT always able to retrieve after returning from another domain. That is the core of the problem. Previously I had used the session_register method to "retrieve" them but discovered that it did not work 100% of the time. "; print "$address "; print "$item_number "; ?> In fact in some cases it was only working 80% of the time -- which is unacceptable. Look forward to gaining the insight of the list. Clyde From shiflett at php.net Mon Feb 3 21:52:49 2003 From: shiflett at php.net (Chris Shiflett) Date: Mon, 3 Feb 2003 18:52:49 -0800 (PST) Subject: [nycphp-talk] PHP and MSIE 6.0 In-Reply-To: <200302040152.h141pWrS021795@parsec.nyphp.org> Message-ID: <20030204025249.36272.qmail@web14303.mail.yahoo.com> --- betenoir at echonyc.com wrote: > Are you referring to having a privacy policy? That's part of compliance, yes. > We've done that. But it's not the third party that's > setting the cookie. Then it doesn't matter anyway. :-) > However, the variables do not appear (print) > consistently even though there is a javascript > error-checking routine on the previous page. I would trust your code over client-side scripting. Are the inconsistencies you have observed a result of your own testing or from users? If it is not a controlled environment (you testing and documenting all conditions), perhaps the inconsistency stems from whether your users have client-side scripting enabled. > And submitting the same page 5 minutes later on the > same machine under identical circumstances has > produced different results. That does seem rather odd. Do you have any logs of the raw HTTP transactions to verify the behavior you have observed? This would be the best way to isolate whether this is a browser issue or something in the server's handling of the data (including your script's logic). > The BIG problem is reading the cookie(s) that I am > setting on the review_form.php page. > > $postString = $_POST; > $cC = 0; > $N100D = ""; > $expiry = time() + 60 * 60 * 24 * 365; > foreach ($postString as $key => $value) { > if ($value != "") { > $cienCenas = array ($key => $value); > setcookie($key,$value,$expiry); > $N100D = $N100D . $key . ","; > $N100D = $N100D . $value . ","; > } > } > setcookie('$ciento',$N100D,$expiry); I might be stating the obvious, but shouldn't you be looking for $_COOKIE["$ciento"]? Also, since your variable name is determined dynamically, you might be using the wrong key. Try something like this to see all cookies sent by the client for the current resource:

Hopefully some of this helps. Chris From betenoir at echonyc.com Mon Feb 3 22:21:09 2003 From: betenoir at echonyc.com (betenoir at echonyc.com) Date: Mon, 3 Feb 2003 22:21:09 -0500 Subject: [nycphp-talk] PHP and MSIE 6.0 In-Reply-To: <200302040253.h142qqmQ074410@parsec.nyphp.org> Message-ID: >--- betenoir at echonyc.com wrote: >> Are you referring to having a privacy policy? > >That's part of compliance, yes. > >> We've done that. But it's not the third party that's >> setting the cookie. > >Then it doesn't matter anyway. :-) That's what I figured. > Are the >inconsistencies you have observed a result of your own >testing or from users? If it is not a controlled >environment (you testing and documenting all conditions), >perhaps the inconsistency stems from whether your users >have client-side scripting enabled. I think that would explain a fraction of the failures I've experienced in the wider world but my testers all report that the javascript routines are performing as expected. >> And submitting the same page 5 minutes later on the >> same machine under identical circumstances has >> produced different results. > >That does seem rather odd. Do you have any logs of the raw >HTTP transactions to verify the behavior you have observed? I don't, and I'm not sure how to get them. But a couple of my testers are pretty savvy and I walk through the forms with them in IM. >This would be the best way to isolate whether this is a >browser issue or something in the server's handling of the >data (including your script's logic). See above. >> The BIG problem is reading the cookie(s) that I am >> setting on the review_form.php page. >> >> $postString = $_POST; >> $cC = 0; >> $N100D = ""; >> $expiry = time() + 60 * 60 * 24 * 365; >> foreach ($postString as $key => $value) { >> if ($value != "") { >> $cienCenas = array ($key => $value); >> setcookie($key,$value,$expiry); >> $N100D = $N100D . $key . ","; >> $N100D = $N100D . $value . ","; >> } >> } >> setcookie('$ciento',$N100D,$expiry); > >I might be stating the obvious, but shouldn't you be >looking for $_COOKIE["$ciento"]? Here's a portion of the read cookie script: foreach ($_COOKIE as $key => $value) { $cL++; if ($key == '$ciento') { print "$key$value"; $llaves = explode(',',$value); $llavesLength = count($llaves); foreach ($llaves as $key => $value) { // print "$key : $value
"; } } } Also, since your variable >name is determined dynamically, you might be using the >wrong key. The hack was that the $ciento cookie has as its value ALL the $_POST data . I then explode that value to and look at every other element to get key:value relationships. Try something like this to see all cookies sent >by the client for the current resource: > >
>
>
>Hopefully some of this helps. VERY HELPFUL. Thanks. Clyde From hans at nyphp.org Mon Feb 3 22:50:59 2003 From: hans at nyphp.org (Hans Zaunere) Date: Mon, 3 Feb 2003 19:50:59 -0800 (PST) Subject: [nycphp-talk] PHP and MSIE 6.0 In-Reply-To: <200302040153.h141pWu2021795@parsec.nyphp.org> Message-ID: <20030204035059.33542.qmail@web12805.mail.yahoo.com> --- betenoir at echonyc.com wrote: > >--- betenoir at echonyc.com wrote: > >> After testing fairly thoroughly we have discovered that > >> IE6 is remarkably inconsistent in how it passes cookies > >> and form data from page to page. > > > >I'm not sure what inconsistencies you are speaking about, > >but perhaps your observations are related to third-party > >cookies from sites that are not P3P-compliant. I believe IE > >requires (by default) P3P compliance from third-party sites > >wishing to set a cookie. > > Are you referring to having a privacy policy? We've done that. But it's > not the third party that's setting the cookie. The problem is retrieving > the cookie that we set when we return to our domain *from* the third party. > > >Maybe that helps explain something. > > > >> It is better at $_POST info but a long way from > >> reliable. It is less reliable when it comes to cookies. > > > >I am not sure what inconsistency you are noting with IE and > >form variables, but I expect that you will ultimately > >identify something in your code rather than in the browser. > > I am prepared to accept that possibility. However we have had a probem that > when posting from form_input.php to review_form.php > > In the former I've registered name, address, item_number. > session_register('name'); > session_register('address'); > session_register('item_number'); > ?> > > And posted from a form > > > > > to review_form.php > > ON the review_form.php page I register the variables as above and create > the HTML as follows: > > print "$name "; > print "$address "; > print "$item_number "; > ?> > > However the variables do not appear (print) consistently even though there > is a javascript error-checking routine on the previous page. > > And submitting the same page 5 minutes later on the same machine under > identical circumstances has produced different results. > > >If you can reproduce your problem in a very small script > >that demonstrates the problem, we can probably help more. > > The BIG problem is reading the cookie(s) that I am setting on the > review_form.php page. > > $postString = $_POST; > $cC = 0; > $N100D = ""; > $expiry = time() + 60 * 60 * 24 * 365; > foreach ($postString as $key => $value) { > > if ($value != "") { > $cienCenas = array ($key => $value); > setcookie($key,$value,$expiry); > $N100D = $N100D . $key . ","; > $N100D = $N100D . $value . ","; > } > } > > setcookie('$ciento',$N100D,$expiry); You really want to set a cookie named $ciento (mind the single quotes)? The only similar behaviour I've seen is with correctly forming the expire time. I've found differant behavior between Mozilla and IE, for example, although I'm sorry I can't remember exactly what it was. And since it's a time issue, this may relate to why it works "now", and not "then." I'm sorry I can't remember many details, but here is some stuff I've ripped, totally out of context, from some old code: /*** NOTES setcookie('psyn',pACK,time()+3600,'/','.nyphp.com',0); header('Refresh: 5;url='.pAUTH_URL_LOGIN); We need to be aware about DOMAIN and Location stuff. For instance, we were getting redirected to www.nyphp.com and so the cookies didn't stick on the redirect. And, although there is talk that Location: doesn't work right, it's been working, although we may run into a case where Refresh: is needed NOTE: This doesn't work right under NN 4.7 ***/ /** This begins to implement TCP style SYN/ACK seq behavior for session ids **/ define('pACK', substr(microtime(),2,8).time()); if( empty($_COOKIE['psyn']) ) define('pSYN', 0); else define('pSYN', $_COOKIE['psyn']); header('Set-Cookie: psyn='.pACK.'; domain=.'.PARASITE_DOMAIN.'; path=/'); I've also had better luck using header() and forming my Set-Cookie header manually. Hopefully I didn't confuse things, H From zaunere at yahoo.com Mon Feb 3 23:21:42 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Mon, 3 Feb 2003 20:21:42 -0800 (PST) Subject: [nycphp-talk] .ini config + *nix permissions In-Reply-To: <200302030210.h1329hu0003895@parsec.nyphp.org> Message-ID: <20030204042142.15579.qmail@web12806.mail.yahoo.com> --- Kenneth Dombrowski wrote: > > Hi, > > I've been going over my PHP configuration, and have a few questions > mostly arising from my general newbieness to linux administration. > > My setup consists of a bunch of VirtualHosts, all with pretty much the > same configuration[1] and directory structure[2]. The development > machine is running PHP 4.2.3 and the server machine 4.1.2 (debian > backports 4.2.3-9 & 4.1.2-6 actually); the only difference between their > configurations is the error handling. > > I have a pretty conservative php.ini, figuring it's probably easier to > never rely on register_globals etc from the start than to have to > convert scripts later to run on some ISP's virtual host server. I > incorporated most of the changes from php.ini-recommended (which came > with the debian source package) & now I'm trying to isolate each of the > vhosts as much as I can while sticking with mod_php. I plan to implement > disk quotas so if one vhost goes haywire and starts a logging frenzy, it > probably won't bring the whole machine down. For this I'm setting each > VirtualHost's open_basedir option to its own directory, turning on safe > mode, and moving PHP's error_log to a vhost-specific 'log' directory > > It's mostly moving to safe mode that I'm having trouble with... > > SAFE_MODE > > 1. What is the recommended permission/ownership combination for allowing > uploads/disk writes under safe mode? > > I'm having a problem with letting scripts create directories > recursively. My Apache runs as www-data:www-data, so the script itself > is owned by anybody but that. (on my development box, it's me, on the > "live" machine it's root). I'd hesitate having anything owned by root. Although there is no immeditatly apparent issues, UNIX security falls apart when it sees a UID of 0. I generally have Apache run as another user (www-data in your case) then set the scripts owned by another user and apache's group, with g+r so that apache can read them. > I've been playing around with some RSS/RDF > stuff, and I want to cache the pages like this, > > http://www.theregister.co.uk/tonys/slashdot.rdf becomes > $cache_root/www.theregister.co.uk/tonys/slashdot.rdf > > The $cache_root is the directory called 'cache' in [2], below. I've > tried different combinations of ownership & permissions, and I can allow > www-data to write to a directory, but not to write to a directory that > he creates within that directory. For some reason, relaxing > "safe_mode_gid = On" and `chown -R kenneth:www-data cache; chmod g+s > cache` doesn't work... Although I'm not 100%, safe_mode_gid may only examine the user's primary group (not the additional groups listed in id username for example). Although be careful with the +s bit as some strange behavior can occur (see man 1 chmod and man 2 chmod). > E_ALL > > 2. With error reporting set to E_ALL on the dev machine, I keep getting > "Warning: open_basedir restriction in effect. File is in wrong directory > in /var/www/kuboaa.org/dev/htdocs/portal.php on line 9" even though > open_basedir is set to "/var/www/kuboaa.org/dev/" and the file i'm > including lives in "/var/www/kuboaa.org/dev/lib". Since it does in fact > successfully include the file, I'm guessing this is normal > extra-verbosity of E_ALL? (i don't think that setting's gonna last long..) Odd behavior... be aware of what context PHP directives can be set in (system wide, directory wide, etc: http://www.php.net/manual/en/features.safe-mode.php and http://www.php.net/manual/en/configuration.changes.php). I've run into trouble with getting these all right. > ERROR_LOG > > 3. Can I change who PHP logs as when log_errors is On? I don't believe so... not without something like suEXEC for Apache. > I'm kind of surprised that writing to error_log doesn't seem to be done > by the same user as Apache's logging (root). In order to get logging to > work so far, I've just manually touched the file & made it > world-writable, which I guess is as safe as allowing uploads, etc, but I > want to make sure that's the right way to do it before adjusting > logrotate to maintain those permissions. > > > SESSIONS/TMP > > I hadn't thought of this until I saw Jerry's message from today. In my > case, session.save_path defaults to /tmp, which is on its own partition, > so I think the machine itself is pretty much protected from being taken > down(?), though I guess all the websites using sessions could be > effectively stopped. I considered moving session.save_path to the (to > be) vhost-quotaed directory to at least keep a DoS'ed site from > effecting the others, until I read "If session.save_path's path depth is > more than 2, garbage collection will not be performed." on the manual's > ref.session.php page.. anyway, I too would be interested in more about this > > > Any comments are welcome, > > sorry for such a long message... > > Kenneth > > > > [1] This is the PHP-relevent sections of my VirtualHost directive block > on the development box.. > > > ServerName local.kuboaa.org > DocumentRoot /var/www/kuboaa.org/dev/htdocs > > php_value include_path ".:/usr/share/pear:/var/www/kuboaa.org/dev/lib" > # safe_mode_include_dir = "/usr/share/pear" in httpd.conf > php_admin_flag safe_mode on > php_admin_flag safe_mode_gid on > > > php_admin_value open_basedir "/var/www/kuboaa.org/dev/" > php_value error_log "/var/www/kuboaa.org/dev/log/phperrors.log" > php_value upload_tmp_dir "/var/www/kuboaa.org/dev/tmp" > > I've found it's better to use [2] sample VirtualHost directory structure on development machine... > > root at enlil:/var/www/kuboaa.org# ls -l dev > total 24 > drwxr-xr-x 2 kenneth kenneth 4096 Jan 30 11:17 CVS > drwxrwxr-x 3 kenneth www-data 4096 Jan 30 14:05 cache > drwxr-xr-x 5 kenneth kenneth 4096 Feb 2 14:08 htdocs > drwxr-xr-x 2 kenneth kenneth 4096 Feb 2 11:48 htpasswd > drwxr-xr-x 3 kenneth kenneth 4096 Jan 30 15:10 lib > drwxr-xr-x 2 kenneth kenneth 4096 Feb 2 14:09 log > drwx------ 2 www-data www-data 4096 Feb 2 16:34 tmp > > root at enlil:/var/www/kuboaa.org# ls -l dev/log > total 40 > -rw-r--r-- 1 root root 29903 Feb 2 14:09 access.log > -rw-r--r-- 1 root root 2228 Feb 2 14:09 error.log > -rw-r--r-- 1 root root 0 Feb 2 14:06 nimda.log > -rw-r--rw- 1 root root 136 Feb 2 14:09 phperrors.log Best, H From betenoir at echonyc.com Tue Feb 4 01:18:14 2003 From: betenoir at echonyc.com (betenoir at echonyc.com) Date: Tue, 4 Feb 2003 01:18:14 -0500 Subject: Domains and cookies In-Reply-To: <200302040351.h143p1mQ009591@parsec.nyphp.org> Message-ID: a from page to page. >> > >> >I'm not sure what inconsistencies you are speaking about, >> >but perhaps your observations are related to third-party >> >cookies from sites that are not P3P-compliant. I believe IE >> >requires (by default) P3P compliance from third-party sites >> >wishing to set a cookie. >> >> Are you referring to having a privacy policy? We've done that. But it's >> not the third party that's setting the cookie. The problem is retrieving >> the cookie that we set when we return to our domain *from* the third party. >> >> >Maybe that helps explain something. > >The only similar behaviour I've seen is with correctly forming the expire >time. I've found differant behavior between Mozilla and IE, for example, >although I'm sorry I can't remember exactly what it was. And since it's a >time issue, this may relate to why it works "now", and not "then." I'm sorry >I can't remember many details, but here is some stuff I've ripped, totally >out of context, from some old code: > >/*** NOTES > setcookie('psyn',pACK,time()+3600,'/','.nyphp.com',0); > header('Refresh: 5;url='.pAUTH_URL_LOGIN); > > We need to be aware about DOMAIN and Location stuff. For instance, we >were getting redirected to www.nyphp.com and so the cookies didn't stick on >the redirect. And, although there is talk that Location: doesn't work right, >it's been working, although we may run into a case where Refresh: is needed > > NOTE: This doesn't work right under NN 4.7 >***/ > >/** This begins to implement TCP style SYN/ACK seq behavior for session ids >**/ > > define('pACK', substr(microtime(),2,8).time()); > if( empty($_COOKIE['psyn']) ) > define('pSYN', 0); > else > define('pSYN', $_COOKIE['psyn']); > > header('Set-Cookie: psyn='.pACK.'; domain=.'.PARASITE_DOMAIN.'; >path=/'); > >I've also had better luck using header() and forming my Set-Cookie header >manually. Hopefully I didn't confuse things, In further testing we discovered that the problem is related to whether the "read cookie" page is called from its own window or from within a frameset at another domain. The former works, the latter doesn't. If I understand your code correctly: pACK resolves to the cookie value and expiration? pSYN is the name of cookie? PARASITE_DOMAIN is a variable that holds the doman parameter? And you are "creating" a Set-Cookie header rather than simply writing to a cookie? Thanks again. Clyde From lists at redibishosting.com Tue Feb 4 10:14:43 2003 From: lists at redibishosting.com (Deidra McIntyre) Date: Tue, 4 Feb 2003 10:14:43 -0500 (EST) Subject: Microsoft's Open Source Fears Message-ID: <1433.172.138.137.124.1044371683.squirrel@www.myhostingadmin.com> For anyone who may have missed this link posted to the WWWAC list. Here's one of their fears: Microsoft has been increasingly concerned by moves such as that of the German government, which announced last June that it was moving to standardize on Linux and an open-source IT model at the federal, state and communal levels. The German government's move followed more than 75 other government customers. The U.S. Department of Agriculture, the Federal Aviation Administration, the U.S. Department of Energy, the U.S. Air Force and Pinellas County, Fla., are all using Linux, as are agencies in the governments of China, Singapore and Australia. Here's the Full article: http://www.eweek.com/article2/0,3959,857638,00.asp ******* Deidra McIntyre redIbis techSolid(brightFuture) http://www.redibis.com From shiflett at php.net Tue Feb 4 10:19:30 2003 From: shiflett at php.net (Chris Shiflett) Date: Tue, 4 Feb 2003 07:19:30 -0800 (PST) Subject: [nycphp-talk] Domains and cookies In-Reply-To: <200302040618.h146ILrQ013666@parsec.nyphp.org> Message-ID: <20030204151930.22023.qmail@web14304.mail.yahoo.com> --- betenoir at echonyc.com wrote: > In further testing we discovered that the problem is > related to whether the "read cookie" page is called > from its own window or from within a frameset at > another domain. The former works, the latter doesn't. The latter is exactly the type of thing I was referring to as a third-party cookie. Meaning, while the request is sent separately, and it seems like the cookie would be sent as well, the browser treats it differently if the resource being requested is not the parent resource (what shows up in your browser's Location bar at the top). It will probably work in anything but IE 6.0, and it should (as I understand the policy) work in everything as long as your "read cookie" page is P3P compliant. The W3C's site has some great resources for verifying your compliance: http://www.w3.org/P3P/ > And you are "creating" a Set-Cookie header rather than > simply writing to a cookie? There is no such thing really as writing to a cookie. When you "set" a cookie using the function, it just generates a Set-Cookie header according to the values you pass the function. Like Hans, I tend to prefer to send my own manually. Chris From zaunere at yahoo.com Tue Feb 4 11:54:46 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 4 Feb 2003 08:54:46 -0800 (PST) Subject: [nycphp-talk] Domains and cookies In-Reply-To: <200302040619.h146ILu0013666@parsec.nyphp.org> Message-ID: <20030204165446.60539.qmail@web12805.mail.yahoo.com> --- betenoir at echonyc.com wrote: > > > >/** This begins to implement TCP style SYN/ACK seq behavior for session > ids > >**/ > > > > define('pACK', substr(microtime(),2,8).time()); > > if( empty($_COOKIE['psyn']) ) > > define('pSYN', 0); > > else > > define('pSYN', $_COOKIE['psyn']); > > > > header('Set-Cookie: psyn='.pACK.'; domain=.'.PARASITE_DOMAIN.';path=/'); > > > >I've also had better luck using header() and forming my Set-Cookie header > >manually. Hopefully I didn't confuse things, > > In further testing we discovered that the problem is related to whether the > "read cookie" page is called from its own window or from within a frameset > at another domain. The former works, the latter doesn't. I had a similar issue, albeit with the domains nyphp.org vs. www.nyphp.org. By the way Chris, that's a great resource (http://www.w3.org/P3P/). > If I understand your code correctly: > > pACK resolves to the cookie value and expiration? > pSYN is the name of cookie? pACK and pSYN are just timestamps, with pACK always containing the timestamp of the request (which should always be unique). Consider the browser initializing a connection, and when it does, pSYN isn't set (a pseudo-syn packet, named psyn as a cookie). But from that point on, the server responds (ACKs) with pACK, which is stored. If the next pSYN doesn't match my stored pACK in shared memory, we have a problem (hijack or something). Basically, just one-time session IDs. > PARASITE_DOMAIN is a variable that holds the doman parameter? It's a constant I define() elsewhere, and if I remember correctly, I couldn't use anything like $_SERVER["HTTP_HOST"] because of issues with nyphp.com vs www.nyphp.com. > And you are "creating" a Set-Cookie header rather than simply writing to a > cookie? Well as Chris pointed out, you don't really write to a cookie; you just write the Set-Cookie: HTTP header and I've always had better luck manually creating it with header() than letting setcookie() do it. H From betenoir at echonyc.com Tue Feb 4 14:12:16 2003 From: betenoir at echonyc.com (betenoir at echonyc.com) Date: Tue, 4 Feb 2003 14:12:16 -0500 Subject: Headers and cookies In-Reply-To: <200302041655.h14GsnmQ025591@parsec.nyphp.org> Message-ID: >> > >> >I've also had better luck using header() and forming my Set-Cookie header >> >manually. Hopefully I didn't confuse things, >> >> In further testing we discovered that the problem is related to whether the >> "read cookie" page is called from its own window or from within a frameset >> at another domain. The former works, the latter doesn't. > >I had a similar issue, albeit with the domains nyphp.org vs. www.nyphp.org. >By the way Chris, that's a great resource (http://www.w3.org/P3P/). >> And you are "creating" a Set-Cookie header rather than simply writing to a >> cookie? > >Well as Chris pointed out, you don't really write to a cookie; you just write >the Set-Cookie: HTTP header and I've always had better luck manually creating >it with header() than letting setcookie() do it. How would I write a Set-Cookie header for $cookie_name, $cookie_value, $expiry, $specified_domain? To restate the problem: I am handing off data from my site to a secure credit-card processing site (which is in a frameset). Once the transaction has been confirmed I want to load a page from my site into a frame of the third-party site to read the cookie. My current work-around is to load an interstitial page into that frame, which launches a separate window which reads the cookie. However because of concerns about "anti-pop-up" software as well as limited user system resources i would prefer not to use this method. The ability to read this cookie is "mission critical". Clyde From chris at psydeshow.org Tue Feb 4 15:10:33 2003 From: chris at psydeshow.org (Chris Snyder) Date: Tue, 04 Feb 2003 15:10:33 -0500 Subject: P3P and MSIE6 cookies (was Headers and Cookies) In-Reply-To: <200302041912.h14JCPr2027623@parsec.nyphp.org> References: <200302041912.h14JCPr2027623@parsec.nyphp.org> Message-ID: <3E401E39.2090003@psydeshow.org> it was previously written in the list, regarding IE 6 cookies: >>I had a similar issue, albeit with the domains nyphp.org vs. www.nyphp.org. >>By the way Chris, that's a great resource (http://www.w3.org/P3P/). >> >> I've just been bitten by an IE6 cookie problem: a customer has a Privacy profile in his Internet Options that only allows cookies from sites with a "compact privacy policy" based on P3P. Well, that's just peachy, but it means they can't use my site until I create one or they change their settings. From looking at that w3.org page and the accompanying quickstart, it seems that most of the tools used to generate these are proprietary and cost from $50 on up. IBM's tool appears free, but they also have a "request license" link. I feel completely blindsided by this, and a little depressed that I need to learn yet another spec to ensure that "general folks" can use my websites without changing their settings. Has anyone else created P3Ps for their sites? Do you need a tool or can you do it by hand? And if you need a tool, are there any good open-source versions? If not, I'd be interested in developing an online, form-based tool in PHP that would be available for anyone to use and mirror (including the nyphp site). Is this a realistic undertaking? chris. -- HIP HOP CLOWN MONTH booth of the day: all day, every day http://hiphopclown.org/berylium/showcase/ From shiflett at php.net Tue Feb 4 15:23:42 2003 From: shiflett at php.net (Chris Shiflett) Date: Tue, 4 Feb 2003 12:23:42 -0800 (PST) Subject: [nycphp-talk] P3P and MSIE6 cookies In-Reply-To: <200302042011.h14KAWrQ028954@parsec.nyphp.org> Message-ID: <20030204202342.70651.qmail@web14304.mail.yahoo.com> --- Chris Snyder wrote: > it was previously written in the list, regarding IE 6 > cookies: > > > I had a similar issue, albeit with the domains > > nyphp.org vs. www.nyphp.org. By the way Chris, > > that's a great resource (http://www.w3.org/P3P/). > > I've just been bitten by an IE6 cookie problem: a > customer has a Privacy profile in his Internet Options > that only allows cookies from sites with a "compact > privacy policy" based on P3P. Well, that's just peachy, > but it means they can't use my site until I create one > or they change their settings. > > From looking at that w3.org page and the accompanying > quickstart, it seems that most of the tools used to > generate these are proprietary and cost from $50 on up. I'm not sure what you read, but that is certainly not true. Making a site P3P compliant is not too difficult, is very well-documented, and can be done with vi. :-) I should have been more specific in the URL I gave, but here are the most important places for implementation: http://www.w3.org/TR/p3pdeployment - This is a good document written by the W3C that goes through everything involved in compliance, including some useful examples. http://www.w3.org/P3P/validator.html - Like the famous HTML and CSS validators, the W3C has this P3P validator that can validate your privacy policy (for proper formatting) or an entire site. > IBM's tool appears free, but they also have a "request > license" link. There may be tools that try to make things easy for you, but they are no more necessary for writing privacy policies than FrontPage is necessary for writing HTML. > Has anyone else created P3Ps for their sites? Not yet, actually, but I researched the topic in detail for a book I wrote by using sites like http://www.w3.org/ and http://www.yahoo.com/ as examples, since they are both compliant. > And if you need a tool, are there any good open-source > versions? > > If not, I'd be interested in developing an online, > form-based tool in PHP that would be available for > anyone to use and mirror (including the nyphp site). > Is this a realistic undertaking? I think it is very realistic and would probably pretty easy to do, if it doesn't already exist. The only challenge I can see in P3P compliance is adhering to the proper formats in the associated XML documents. A PHP tool could use the latest DTD straight from the W3C Web site (I can't remember the URL for it off-hand) to create a nice little HTML form that describes each element and makes things a bit simpler. Hope that helps. Chris From danielc at analysisandsolutions.com Tue Feb 4 15:28:40 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Tue, 4 Feb 2003 15:28:40 -0500 Subject: [nycphp-talk] P3P and MSIE6 cookies In-Reply-To: <200302042010.h14KAWkc028954@parsec.nyphp.org> References: <200302042010.h14KAWkc028954@parsec.nyphp.org> Message-ID: <20030204202840.GA2518@panix.com> Hey Folks: On Tue, Feb 04, 2003 at 03:10:32PM -0500, Chris Snyder wrote: > > I've just been bitten by an IE6 cookie problem: a customer has a Privacy > profile in his Internet Options that only allows cookies from sites with > a "compact privacy policy" based on P3P. Well, that's just peachy, but > it means they can't use my site until I create one or they change their > settings. Which is exactly why it's best to design sites that don't rely on any client side programming. Your site will always work regardless of what browser or preferences are used. For more info on this, check out my diatribe at http://www.analysisandsolutions.com/code/weberror.htm --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From chris at psydeshow.org Tue Feb 4 15:44:04 2003 From: chris at psydeshow.org (Chris Snyder) Date: Tue, 04 Feb 2003 15:44:04 -0500 Subject: [nycphp-talk] P3P and MSIE6 cookies In-Reply-To: <200302042029.h14KSgr2030433@parsec.nyphp.org> References: <200302042029.h14KSgr2030433@parsec.nyphp.org> Message-ID: <3E402614.8020802@psydeshow.org> Analysis & Solutions wrote: >Hey Folks: > >On Tue, Feb 04, 2003 at 03:10:32PM -0500, Chris Snyder wrote: > > >>I've just been bitten by an IE6 cookie problem: a customer has a Privacy >>profile in his Internet Options that only allows cookies from sites with >>a "compact privacy policy" based on P3P. Well, that's just peachy, but >>it means they can't use my site until I create one or they change their >>settings. >> >> > >Which is exactly why it's best to design sites that don't rely on any >client side programming. Your site will always work regardless of what >browser or preferences are used. For more info on this, check out my >diatribe at http://www.analysisandsolutions.com/code/weberror.htm > >--Dan > > While it's true that URI query strings may be superior to cookies for passing session information, what happens when a user copy-and-pastes the URL into an email client and sends it to their friends? Even if you tied the session to an IP address, a user coming in through an AOL proxy would get dropped on their next request. Or am I being naive about this? chris. From shiflett at php.net Tue Feb 4 15:44:46 2003 From: shiflett at php.net (Chris Shiflett) Date: Tue, 4 Feb 2003 12:44:46 -0800 (PST) Subject: [nycphp-talk] P3P and MSIE6 cookies In-Reply-To: <200302042029.h14KSgrQ030433@parsec.nyphp.org> Message-ID: <20030204204446.40533.qmail@web14302.mail.yahoo.com> --- Analysis & Solutions wrote: > Which is exactly why it's best to design sites that > don't rely on any client side programming. Your site > will always work regardless of what browser or > preferences are used. His question actually had nothing to do with client-side scripting. Cookies are more of a protocol-level thing, even though the data does reside on the client. He was using PHP to send the Set-Cookie header, and the user's privacy preferences prevented the cookie from being returned on subsequent requests. Chris From shiflett at php.net Tue Feb 4 15:52:13 2003 From: shiflett at php.net (Chris Shiflett) Date: Tue, 4 Feb 2003 12:52:13 -0800 (PST) Subject: [nycphp-talk] P3P and MSIE6 cookies In-Reply-To: <200302042044.h14KhwrQ031234@parsec.nyphp.org> Message-ID: <20030204205213.24705.qmail@web14306.mail.yahoo.com> --- Chris Snyder wrote: > While it's true that URI query strings may be superior > to cookies for passing session information, what > happens when a user copy-and-pastes the URL into an > email client and sends it to their friends? I would not make such a bold claim about URL variables. To be fair, however, the copy and paste vulnerability you describe exists in cookies also, even though perhaps not as conveniently. Client data, whether form variables, URL variables, or cookies, can be easily modified. Imagine someone who telnets to port 80 of your Web site and types in their own HTTP request, as an example. Or, as a simpler example, imagine someone who edits their cookies.txt file to send you someone else's cookie. > Even if you tied the session to an IP address, a user > coming in through an AOL proxy would get dropped on > their next request. Or am I being naive about this? I don't think you're being naive at all. While the TCP/IP layer is harder to spoof than the HTTP layer, the disadvantages far outweigh any subtle security enhancement (that can be achieved in more reliable ways anyway). There are two cases that can really break your application when you rely on any data from the TCP/IP layer: 1. Many clients appear to be the same client - an HTTP proxy serves many clients. 2. A single client appears to be many different clients - a round-robin HTTP proxy serves many clients (such as AOL). Chris From soazine at erols.com Tue Feb 4 15:50:14 2003 From: soazine at erols.com (Phil Powell) Date: Tue, 4 Feb 2003 15:50:14 -0500 Subject: PHP 5.0 release date and is it Enterprise? Message-ID: <0c2f01c2cc8f$051950d0$2aaf6244@scandinawa1bo6> Some of my anti-PHP pro-"ColdFusion Rules Above All" friends want to know, and I am not sure myself. Any ideas, folks? Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris at psydeshow.org Tue Feb 4 15:56:10 2003 From: chris at psydeshow.org (Chris Snyder) Date: Tue, 04 Feb 2003 15:56:10 -0500 Subject: [nycphp-talk] P3P and MSIE6 cookies In-Reply-To: <200302042024.h14KNir2029745@parsec.nyphp.org> References: <200302042024.h14KNir2029745@parsec.nyphp.org> Message-ID: <3E4028EA.4000707@psydeshow.org> Chris Shiflett wrote: >>Has anyone else created P3Ps for their sites? >> >> > >Not yet, actually, but I researched the topic in detail for >a book I wrote by using sites like http://www.w3.org/ and >http://www.yahoo.com/ as examples, since they are both >compliant. > Thanks for the additional info, Chris-- I think I'm well on my way to creating the appropriate files and getting them uploaded and tested. I'll be happy to share the results with the list. On a completely personal, subjective level, this seems like quite a hoop for non-commercial sites to have to jump through. Do you think it would be possible for me, as a small ISP, to create a blanket P3P xml file and a compact policy header that would satisfy IE6, and then use Apache directives to serve those for all my virtual hosts? In other words, is there anything inside the policy files that ties the policy to a particular site? A quick look says no, but that's a real quick look... chris > > From chris at psydeshow.org Tue Feb 4 15:59:25 2003 From: chris at psydeshow.org (Chris Snyder) Date: Tue, 04 Feb 2003 15:59:25 -0500 Subject: [nycphp-talk] P3P and MSIE6 cookies In-Reply-To: <200302042056.h14Ku4r2034003@parsec.nyphp.org> References: <200302042056.h14Ku4r2034003@parsec.nyphp.org> Message-ID: <3E4029AD.2060007@psydeshow.org> Chris Snyder wrote: >Do you think it would >be possible for me, as a small ISP, to create a blanket P3P xml file and >a compact policy header that would satisfy IE6, and then use Apache >directives to serve those for all my virtual hosts? > > > I should point out that I already provide a blanket privacy policy that all my clients must agree to. From suzerain at suzerain.com Tue Feb 4 16:35:42 2003 From: suzerain at suzerain.com (Marc Antony Vose) Date: Tue, 4 Feb 2003 16:35:42 -0500 Subject: [nycphp-talk] PHP 5.0 release date and is it Enterprise? In-Reply-To: <200302042053.h14KqXs0032902@parsec.nyphp.org> References: <200302042053.h14KqXs0032902@parsec.nyphp.org> Message-ID: >Some of my anti-PHP pro-"ColdFusion Rules Above All" friends want to >know, and I am not sure myself. > >Any ideas, folks? I don't know the release date...I assume it'll be released "when it's done". I've been using PHP since 1998, and I haven't found that there's any sort of predictable release schedule. ;) As for the other part, I guess it depends on your definition of 'Enterprise', unless I'm misunderstanding what you mean. Cheers, -- Marc Antony Vose http://www.suzerain.com/ The surest way to corrupt a youth is to instruct him to hold in higher esteem those who think alike than those who think differently. -- Nietzsche From shiflett at php.net Tue Feb 4 17:01:17 2003 From: shiflett at php.net (Chris Shiflett) Date: Tue, 4 Feb 2003 14:01:17 -0800 (PST) Subject: [nycphp-talk] PHP 5.0 release date and is it Enterprise? In-Reply-To: <200302042145.h14LiOrQ035825@parsec.nyphp.org> Message-ID: <20030204220117.34746.qmail@web14306.mail.yahoo.com> --- Marc Antony Vose wrote: > Some of my anti-PHP pro-"ColdFusion Rules Above All" > friends want to know, and I am not sure myself. ColdFusion is fine. There is simply a slight tradeoff where ColdFusion is somewhat easier to use and PHP is somewhat more flexible. Similar problems can usually be solved with either. Of course, some of us find PHP easier to use *because* it is more flexible, feeling too restricted otherwise. So, it is all a matter of taste. I am not sure what, "is it Enterprise?" means. While Macromedia releases different versions of CF depending on how much money you spend, PHP is PHP. If they mean to ask if it is ready for the Enterprise, then they are just trolling. Tell them to ask Yahoo! or any of the companies I have consulted for in the last three years. As for release date, the other poster correctly said, "when it is ready." I have seen many people ask, and the only answer I've seen from any of the core developers was something like the end of 2003 plus or minus 9 months. :-) Chris From welsh_michael at hotmail.com Tue Feb 4 19:18:22 2003 From: welsh_michael at hotmail.com (Michael Welsh) Date: Wed, 05 Feb 2003 00:18:22 +0000 Subject: printer_list Message-ID: All, I'm trying to send output directly to a printer without the user clicking File>Print on their browser. I'm using PHP Version 4.2.2. I've looked it up online http://www.php.net/manual/en/function.printer-list.php and even 'google'd it, but didn't find much. Has anyone used this? I couldn't get it to return anything on a windows or linux server running Apache: var_dump( printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_NETWORK) ); Am I on the right track? Any feedback would be great. Michael _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From chun_lam at hotmail.com Tue Feb 4 20:48:08 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Tue, 04 Feb 2003 20:48:08 -0500 Subject: [nycphp-talk] printer_list Message-ID: The reason you can not do this is simple. PHP runs on the server side not client side. Matthew ----Original Message Follows---- From: "Michael Welsh" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] printer_list Date: Tue, 4 Feb 2003 19:18:25 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc8-f21.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 4 Feb 2003 16:18:55 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h150IPoC038684for ; Tue, 4 Feb 2003 19:18:52 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200302050018.h150IPoC038684 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 05 Feb 2003 00:18:55.0452 (UTC) FILETIME=[2B68B9C0:01C2CCAC] All, I'm trying to send output directly to a printer without the user clicking File>Print on their browser. I'm using PHP Version 4.2.2. I've looked it up online http://www.php.net/manual/en/function.printer-list.php and even 'google'd it, but didn't find much. Has anyone used this? I couldn't get it to return anything on a windows or linux server running Apache: var_dump( printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_NETWORK) ); Am I on the right track? Any feedback would be great. Michael _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From chris at psydeshow.org Tue Feb 4 20:59:47 2003 From: chris at psydeshow.org (Chris Snyder) Date: Tue, 04 Feb 2003 20:59:47 -0500 Subject: [nycphp-talk] printer_list In-Reply-To: <200302050148.h151mBr0040381@parsec.nyphp.org> References: <200302050148.h151mBr0040381@parsec.nyphp.org> Message-ID: <3E407013.4090400@psydeshow.org> CHUN-YIU LAM wrote: >The reason you can not do this is simple. PHP runs on the server side not >client side. > >Matthew > > > Oh man, and here I was hoping that this was part of get_browser()'s capabilities. (http://www.php.net/manual/en/function.get-browser.php ) Print 300 copies of my flyer at hpij932c... now. :-) Anyway, these functions appear to deal with printers known to the Windows box from which you are serving PHP, not with printers the client might know about. They don't apply at all to *nix. chris. From danielc at analysisandsolutions.com Tue Feb 4 21:09:01 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Tue, 4 Feb 2003 21:09:01 -0500 Subject: [nycphp-talk] P3P and MSIE6 cookies In-Reply-To: <200302042052.h14KqGkc032632@parsec.nyphp.org> <200302042044.h14Kinkc031904@parsec.nyphp.org> <200302042044.h14Khwkc031234@parsec.nyphp.org> References: <200302042052.h14KqGkc032632@parsec.nyphp.org> <200302042044.h14Kinkc031904@parsec.nyphp.org> <200302042044.h14Khwkc031234@parsec.nyphp.org> Message-ID: <20030205020901.GA11345@panix.com> Hi Chris and Chris: First, let me thank Chris Shiflett for posting the P3P information. I wasn't aware of this initiative. While it's not an issue for me right now, I know it will become one, as the browsers which implement this platform become more widely used and the users understand what they can do. So, I implemented it. Folks curious to see a valid setup can check out http://www.analysisandsolutions.com/w3c/ On Tue, Feb 04, 2003 at 03:43:58PM -0500, Chris Snyder wrote: > > While it's true that URI query strings may be superior to cookies for > passing session information, what happens when a user copy-and-pastes > the URL into an email client and sends it to their friends? To me, session handling is appropriate for situations where you need to keep track of what the person is doing. For example, as they're filling a shopping basket. So, in this case, is someone really going to send a friend an email link to go examine their own cart? Even if they do, sessions end due to timeout or task completion. So, the chances of that friend going to the URI in quesiton while the session in question is still active are quite low. And, heaven forbid, the friend comes for a visit too soon, the session handler might be able to distinguish them via referrers and user agents, if they differ between the two users. Bookmarks and links sent to friends generally are to pages that don't have anything to do with sessions. Implementing sessions on such pages is wasteful. On Tue, Feb 04, 2003 at 03:44:49PM -0500, Chris Shiflett wrote: > > His question actually had nothing to do with client-side > scripting. Cookies are more of a protocol-level thing, even > though the data does reside on the client. Yes, I realized that. I used the phrase "client side programming" to broadly mean all technology which relies upon the browser to do anything beyond show the text/images and follow links which are clicked on. On Tue, Feb 04, 2003 at 03:52:16PM -0500, Chris Shiflett wrote: > > Client data, whether form variables, URL variables, or > cookies, can be easily modified. Which brings up the point of how important it is to validate all incomming data. But that's a WHOLE different ball of wax... as folks who remember my first thread after joining this list recall. :) Enjoy, --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From welsh_michael at hotmail.com Tue Feb 4 22:36:07 2003 From: welsh_michael at hotmail.com (Michael Welsh) Date: Wed, 05 Feb 2003 03:36:07 +0000 Subject: [nycphp-talk] printer_list Message-ID: Thank you for the swift response Matthew, but, maybe I wasn't clear. Or perhaps you answered a little too swiftly. As described: <<< printer_list -- Return an array of printers attached to the server Description array printer_list ( int enumtype [, string name [, int level]]) The function enumerates available printers and their capabilities. level sets the level of information request.>>> I was hoping someone had some success with this and could share. Michael end of message -------------------------------- ----Original Message Follows---- From: "CHUN-YIU LAM" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] printer_list Date: Tue, 4 Feb 2003 20:48:11 -0500 The reason you can not do this is simple. PHP runs on the server side not client side. Matthew ----Original Message Follows---- From: "Michael Welsh" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] printer_list Date: Tue, 4 Feb 2003 19:18:25 -0500 All, I'm trying to send output directly to a printer without the user clicking File>Print on their browser. I'm using PHP Version 4.2.2. I've looked it up online http://www.php.net/manual/en/function.printer-list.php and even 'google'd it, but didn't find much. Has anyone used this? I couldn't get it to return anything on a windows or linux server running Apache: var_dump( printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_NETWORK) ); Am I on the right track? Any feedback would be great. Michael _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From chun_lam at hotmail.com Tue Feb 4 22:43:31 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Tue, 04 Feb 2003 22:43:31 -0500 Subject: [nycphp-talk] printer_list Message-ID: Are you doing this command-line? Matthew ----Original Message Follows---- From: "Michael Welsh" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] printer_list Date: Tue, 4 Feb 2003 22:38:35 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc3-f35.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 4 Feb 2003 19:39:00 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h153cZoC043302for ; Tue, 4 Feb 2003 22:38:59 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200302050338.h153cZoC043302 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 05 Feb 2003 03:39:00.0456 (UTC) FILETIME=[1EF2F680:01C2CCC8] Thank you for the swift response Matthew, but, maybe I wasn't clear. Or perhaps you answered a little too swiftly. As described: <<< printer_list -- Return an array of printers attached to the server Description array printer_list ( int enumtype [, string name [, int level]]) The function enumerates available printers and their capabilities. level sets the level of information request.>>> I was hoping someone had some success with this and could share. Michael end of message -------------------------------- ----Original Message Follows---- From: "CHUN-YIU LAM" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] printer_list Date: Tue, 4 Feb 2003 20:48:11 -0500 The reason you can not do this is simple. PHP runs on the server side not client side. Matthew ----Original Message Follows---- From: "Michael Welsh" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] printer_list Date: Tue, 4 Feb 2003 19:18:25 -0500 All, I'm trying to send output directly to a printer without the user clicking File>Print on their browser. I'm using PHP Version 4.2.2. I've looked it up online http://www.php.net/manual/en/function.printer-list.php and even 'google'd it, but didn't find much. Has anyone used this? I couldn't get it to return anything on a windows or linux server running Apache: var_dump( printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_NETWORK) ); Am I on the right track? Any feedback would be great. Michael _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail From welsh_michael at hotmail.com Tue Feb 4 22:57:45 2003 From: welsh_michael at hotmail.com (Michael Welsh) Date: Wed, 05 Feb 2003 03:57:45 +0000 Subject: [nycphp-talk] printer_list Message-ID: no end of message -------------------------------- ----Original Message Follows---- From: "CHUN-YIU LAM" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] printer_list Date: Tue, 4 Feb 2003 22:43:34 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc8-f11.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 4 Feb 2003 19:43:49 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h153hYo4043992for ; Tue, 4 Feb 2003 22:43:48 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200302050343.h153hYo4043992 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 05 Feb 2003 03:43:49.0574 (UTC) FILETIME=[CB46DE60:01C2CCC8] Are you doing this command-line? Matthew ----Original Message Follows---- From: "Michael Welsh" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] printer_list Date: Tue, 4 Feb 2003 22:38:35 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc3-f35.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 4 Feb 2003 19:39:00 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h153cZoC043302for ; Tue, 4 Feb 2003 22:38:59 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200302050338.h153cZoC043302 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 05 Feb 2003 03:39:00.0456 (UTC) FILETIME=[1EF2F680:01C2CCC8] Thank you for the swift response Matthew, but, maybe I wasn't clear. Or perhaps you answered a little too swiftly. As described: <<< printer_list -- Return an array of printers attached to the server Description array printer_list ( int enumtype [, string name [, int level]]) The function enumerates available printers and their capabilities. level sets the level of information request.>>> I was hoping someone had some success with this and could share. Michael end of message -------------------------------- ----Original Message Follows---- From: "CHUN-YIU LAM" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] printer_list Date: Tue, 4 Feb 2003 20:48:11 -0500 The reason you can not do this is simple. PHP runs on the server side not client side. Matthew ----Original Message Follows---- From: "Michael Welsh" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] printer_list Date: Tue, 4 Feb 2003 19:18:25 -0500 All, I'm trying to send output directly to a printer without the user clicking File>Print on their browser. I'm using PHP Version 4.2.2. I've looked it up online http://www.php.net/manual/en/function.printer-list.php and even 'google'd it, but didn't find much. Has anyone used this? I couldn't get it to return anything on a windows or linux server running Apache: var_dump( printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_NETWORK) ); Am I on the right track? Any feedback would be great. Michael _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From chun_lam at hotmail.com Tue Feb 4 22:59:40 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Tue, 04 Feb 2003 22:59:40 -0500 Subject: [nycphp-talk] printer_list Message-ID: If you are running it on a window web server, this might work. Also it ask for 2 more arguments. The string name is needed (who knows what that name is for) and also must be level 1 if Network option is used... Matthew ----Original Message Follows---- From: "Michael Welsh" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] printer_list Date: Tue, 4 Feb 2003 22:38:35 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc3-f35.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Tue, 4 Feb 2003 19:39:00 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h153cZoC043302for ; Tue, 4 Feb 2003 22:38:59 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200302050338.h153cZoC043302 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 05 Feb 2003 03:39:00.0456 (UTC) FILETIME=[1EF2F680:01C2CCC8] Thank you for the swift response Matthew, but, maybe I wasn't clear. Or perhaps you answered a little too swiftly. As described: <<< printer_list -- Return an array of printers attached to the server Description array printer_list ( int enumtype [, string name [, int level]]) The function enumerates available printers and their capabilities. level sets the level of information request.>>> I was hoping someone had some success with this and could share. Michael end of message -------------------------------- ----Original Message Follows---- From: "CHUN-YIU LAM" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] printer_list Date: Tue, 4 Feb 2003 20:48:11 -0500 The reason you can not do this is simple. PHP runs on the server side not client side. Matthew ----Original Message Follows---- From: "Michael Welsh" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] printer_list Date: Tue, 4 Feb 2003 19:18:25 -0500 All, I'm trying to send output directly to a printer without the user clicking File>Print on their browser. I'm using PHP Version 4.2.2. I've looked it up online http://www.php.net/manual/en/function.printer-list.php and even 'google'd it, but didn't find much. Has anyone used this? I couldn't get it to return anything on a windows or linux server running Apache: var_dump( printer_list(PRINTER_ENUM_LOCAL | PRINTER_ENUM_NETWORK) ); Am I on the right track? Any feedback would be great. Michael _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From chris at psydeshow.org Tue Feb 4 23:22:56 2003 From: chris at psydeshow.org (Chris Snyder) Date: Tue, 04 Feb 2003 23:22:56 -0500 Subject: [nycphp-talk] P3P and MSIE6 cookies In-Reply-To: <200302050209.h15293r0041921@parsec.nyphp.org> References: <200302050209.h15293r0041921@parsec.nyphp.org> Message-ID: <3E4091A0.7040808@psydeshow.org> Analysis & Solutions wrote: >First, let me thank Chris Shiflett for posting the P3P information. I >wasn't aware of this initiative. While it's not an issue for me right >now, I know it will become one, as the browsers which implement this >platform become more widely used and the users understand what they can >do. So, I implemented it. Folks curious to see a valid setup can check >out http://www.analysisandsolutions.com/w3c/ > > > > Thanks Dan and Chris! Your links and examples, combined with the not-so-user-friendly IBM generator mentioned here (http://www.w3.org/P3P/details.html) helped me get these up on my server: http://chxo.com/w3c/ There are three files there: the xml privacy policy (privacy.xml) created by the generator, the "policy reference" file (p3p.xml) that I had to build by hand, and a file with Apache Directives that instruct the server to use a single w3c alias server-wide and to send a P3P header. Apache needs to be compiled with mod_headers enabled in order to do this. The P3P: header could also be generated by PHP, of course. http://validator.w3.org/p3p/20020128/p3p.pl?uri=http%3A%2F%2Fchxo.com%2F Hooray, it validates. Tested this on MSIE6 with a High Privacy Setting, and it took my cookie. BTW in case you run into this down the line, you can View>Privacy Report... in Internet Explorer to get some idea of what's up P3P-wise, and there's also a Settings button in the same dialog box. chris. From soazine at erols.com Tue Feb 4 23:47:19 2003 From: soazine at erols.com (Phil Powell) Date: Tue, 4 Feb 2003 23:47:19 -0500 Subject: [nycphp-talk] PHP 5.0 release date and is it Enterprise? References: <200302042201.h14M1Kmi036795@parsec.nyphp.org> Message-ID: <0cc401c2ccd1$aa82df90$2aaf6244@scandinawa1bo6> Well that's all fine by me, to be honest.. I've always felt that each language has its own advantages in regards to the particular need at hand (except for anything M$ has to offer, YUCK!).. Phil ----- Original Message ----- From: "Chris Shiflett" To: "NYPHP Talk" Sent: Tuesday, February 04, 2003 5:01 PM Subject: Re: [nycphp-talk] PHP 5.0 release date and is it Enterprise? > --- Marc Antony Vose wrote: > > Some of my anti-PHP pro-"ColdFusion Rules Above All" > > friends want to know, and I am not sure myself. > > ColdFusion is fine. There is simply a slight tradeoff where > ColdFusion is somewhat easier to use and PHP is somewhat > more flexible. Similar problems can usually be solved with > either. Of course, some of us find PHP easier to use > *because* it is more flexible, feeling too restricted > otherwise. So, it is all a matter of taste. > > I am not sure what, "is it Enterprise?" means. While > Macromedia releases different versions of CF depending on > how much money you spend, PHP is PHP. If they mean to ask > if it is ready for the Enterprise, then they are just > trolling. Tell them to ask Yahoo! or any of the companies I > have consulted for in the last three years. > > As for release date, the other poster correctly said, "when > it is ready." I have seen many people ask, and the only > answer I've seen from any of the core developers was > something like the end of 2003 plus or minus 9 months. :-) > > Chris > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From ereyes at totalcreations.com Wed Feb 5 00:24:15 2003 From: ereyes at totalcreations.com (Edgar Reyes) Date: Wed, 5 Feb 2003 00:24:15 -0500 Subject: [nycphp-talk] printer_list References: <200302050019.h150IPsQ038684@parsec.nyphp.org> Message-ID: <010a01c2ccd6$d4010720$e659fea9@reyes1> well I don't know if this is what you are trying to achieve but why not just use JavaScript you can you is a link or when the pages loads with the!!! Print ----- Original Message ----- From: "Michael Welsh" To: "NYPHP Talk" Sent: Tuesday, February 04, 2003 7:18 PM Subject: [nycphp-talk] printer_list > All, > > I'm trying to send output directly to a printer without the user clicking > File>Print on their browser. I'm using PHP Version 4.2.2. > > I've looked it up online > http://www.php.net/manual/en/function.printer-list.php and even 'google'd > it, but didn't find much. > > Has anyone used this? I couldn't get it to return anything on a windows or > linux server running Apache: var_dump( printer_list(PRINTER_ENUM_LOCAL | > PRINTER_ENUM_NETWORK) ); > > Am I on the right track? Any feedback would be great. > > Michael > > _________________________________________________________________ > Tired of spam? Get advanced junk mail protection with MSN 8. > http://join.msn.com/?page=features/junkmail > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > > From peter at panvox.net Wed Feb 5 00:39:50 2003 From: peter at panvox.net (Peter Simard) Date: Wed, 5 Feb 2003 00:39:50 -0500 Subject: [nycphp-talk] PHP 5.0 release date and is it Enterprise? In-Reply-To: <200302050450.h154ncqk047214@parsec.nyphp.org> References: <200302050450.h154ncqk047214@parsec.nyphp.org> Message-ID: <163428780156.20030205003950@panvox.net> First let me say I'm eager to get my hands on PHP 5.0 I'm eager to see how far ZEND has taken OOP. With that in mind let me also say i've spent the last few months working exclusively with MS C#, so i just have to say to Phil: C# and the .NET platform are a kickass product. For many MS may indeed be 'Yuck', but they really did a hell of a job with .NET Just my 2 cents, PAS From pete at npgroup.net Wed Feb 5 10:24:31 2003 From: pete at npgroup.net (Pete Czech - New Possibilities Group, LLC) Date: Wed, 05 Feb 2003 10:24:31 -0500 Subject: EREG Question Message-ID: <004601c2cd2a$af851450$0900a8c0@petedell> Hello: I'm building an online lottery-type of system. I use this code to compare two arrays to see how many numbers are correct, coming from a text file: $trigger=fopen($temp."/".$file, "r"); $content=fread($trigger, 10024); $userid = explode("_", $file); $entry_numbers = explode(",", $content); $correct_amount = 0; foreach($entry_numbers as $a) { foreach($number as $n) { if ($n == $a) { $content = ereg_replace("$a", "$a", $content); //<------ PROBLEM AREA!!! $correct_amount++; } } } I want to have each correct number BOLDED in the array, so I can display the results to the user. IE, if the winning numbers were 3,6,9 and they entered 2,5,9 - 9 would be bolded. This works, but with SINGLE numbers, they appear bolded all over the place. So if the person had entered 9,39,49 - all the 9's would be bolded... BUT, this doesn't happen all over! Just in certain places with no rhyme or reason. So one persons entry would be fine, showing the single 9 bolded, while another user would have all their 9's bolded. Ugh! Any ideas??? Cheers, Pete Czech -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiflett at php.net Wed Feb 5 10:34:07 2003 From: shiflett at php.net (Chris Shiflett) Date: Wed, 5 Feb 2003 07:34:07 -0800 (PST) Subject: [nycphp-talk] EREG Question In-Reply-To: <200302051526.h15FPZrQ055102@parsec.nyphp.org> Message-ID: <20030205153407.80452.qmail@web14302.mail.yahoo.com> --- "Pete Czech - New Possibilities Group, LLC" > foreach($number as $n) { Add an echo statement right here that displays the current value of $n. I think you will find that your problem comes sooner than you think. > if ($n == $a) { > $content = ereg_replace("$a", "$a", > $content); //<------ PROBLEM AREA!!! > $correct_amount++; > } > } Chris From pete at npgroup.net Wed Feb 5 10:41:16 2003 From: pete at npgroup.net (Pete Czech - New Possibilities Group, LLC) Date: Wed, 05 Feb 2003 10:41:16 -0500 Subject: [nycphp-talk] EREG Question References: <200302051534.h15FYAps055852@parsec.nyphp.org> Message-ID: <005601c2cd2d$0864ee90$0900a8c0@petedell> What I think I need to do is make the expression do this, but I'm pretty bad with Reg Expressions... if ^ or , occur before the number and , or ? occur after - then replace - since the numbers come in 1,2,3,4 form. Anyone know how I can create an expression that does that??? Thanks for the help! PJC ----- Original Message ----- From: "Chris Shiflett" To: "NYPHP Talk" Sent: Wednesday, February 05, 2003 10:34 AM Subject: Re: [nycphp-talk] EREG Question > --- "Pete Czech - New Possibilities Group, LLC" > > foreach($number as $n) { > > Add an echo statement right here that displays the current > value of $n. I think you will find that your problem comes > sooner than you think. > > > if ($n == $a) { > > $content = ereg_replace("$a", "$a", > > $content); //<------ PROBLEM AREA!!! > > $correct_amount++; > > } > > } > > Chris > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From shiflett at php.net Wed Feb 5 10:52:51 2003 From: shiflett at php.net (Chris Shiflett) Date: Wed, 5 Feb 2003 07:52:51 -0800 (PST) Subject: [nycphp-talk] EREG Question In-Reply-To: <200302051542.h15FgJrQ056574@parsec.nyphp.org> Message-ID: <20030205155251.20943.qmail@web14303.mail.yahoo.com> --- "Pete Czech - New Possibilities Group, LLC" wrote: > if ^ or , occur before the number and , or ? occur after > - then replace - since the numbers come in 1,2,3,4 form. Can you give an example? If you just have a comma-delimited list of numbers, all you need is explode() to give yourself a nice array of those numbers to work with. If it is not a simple comma-delimited list, give us an example of what you are parsing. Chris From mjdewitt at alexcommgrp.com Wed Feb 5 10:56:41 2003 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Wed, 5 Feb 2003 10:56:41 -0500 Subject: [nycphp-talk] printer_list Message-ID: We have a need to print documents (TIFF files) that reside on a linux server via a browser. Since you didn't say what kind of server, nor what kind of document, my suggestions may not apply. An approach that might be suitable is to write out the html to a file and use a script like html2ps to render the page in postcript so that it can be printed from the server. If it's not an html page that you need printed, there are lots of conversion utilities out there such as tiff2ps, gif2ps and so on. Many document types can be handled automagicially by ghostscript. Where things get hairy is in setting printer options (under Linux anyway) where you may need to pull paper from tray 3, output to bin 2, duplexed, landscape. Perhaps printer handling has improved a bit in later distros, but for RH 6.2, it was build your own. Mike > -----Original Message----- > From: Edgar Reyes [SMTP:ereyes at totalcreations.com] > Sent: Wednesday, February 05, 2003 12:26 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] printer_list > > well I don't know if this is what you are trying to achieve but why not > just > use JavaScript you can you is a link or when the pages loads with the!!! > > Print > ----- Original Message ----- > From: "Michael Welsh" > To: "NYPHP Talk" > Sent: Tuesday, February 04, 2003 7:18 PM > Subject: [nycphp-talk] printer_list > > > > All, > > > > I'm trying to send output directly to a printer without the user > clicking > > File>Print on their browser. I'm using PHP Version 4.2.2. > > > > I've looked it up online > > http://www.php.net/manual/en/function.printer-list.php and even > 'google'd > > it, but didn't find much. > > > > Has anyone used this? I couldn't get it to return anything on a windows > or > > linux server running Apache: var_dump( printer_list(PRINTER_ENUM_LOCAL > | > > PRINTER_ENUM_NETWORK) ); > > > > Am I on the right track? Any feedback would be great. > > > > Michael > > > > _________________________________________________________________ > > Tired of spam? Get advanced junk mail protection with MSN 8. > > http://join.msn.com/?page=features/junkmail > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From chris at psydeshow.org Wed Feb 5 10:57:28 2003 From: chris at psydeshow.org (Chris Snyder) Date: Wed, 05 Feb 2003 10:57:28 -0500 Subject: [nycphp-talk] EREG Question In-Reply-To: <200302051534.h15FYAr2055852@parsec.nyphp.org> References: <200302051534.h15FYAr2055852@parsec.nyphp.org> Message-ID: <3E413468.2080907@psydeshow.org> Chris Shiflett wrote: >--- "Pete Czech - New Possibilities Group, LLC" > > >> foreach($number as $n) { >> >> > >Add an echo statement right here that displays the current >value of $n. I think you will find that your problem comes >sooner than you think. > > > >> if ($n == $a) { >> $content = ereg_replace("$a", "$a", >>$content); //<------ PROBLEM AREA!!! >> $correct_amount++; >> } >> } >> >> And also, why not just use the simpler str_replace()? http://www.php.net/manual/en/function.str-replace.php Then you don't have to worry about the regex failing. I think it's quicker, too? chris. -- HIP HOP CLOWN MONTH booth of the day: all day, every day http://hiphopclown.org/berylium/showcase/ From keremtuzemen at hotmail.com Wed Feb 5 11:13:09 2003 From: keremtuzemen at hotmail.com (Kerem Tuzemen) Date: Wed, 5 Feb 2003 11:13:09 -0500 Subject: COM event catching... Message-ID: Hi Folks, I need someone with experience in COM to point me to the right direction on COM call-back and event catching issues. I'm not a COM expert, what I do is to use them with my php scripts and only once written a simple one using VB (which I really prefer not to use as long as I'm not supposed to). So here's my problem: I'm using a COM module which does call-back some functions that should be defined as methods of another object which is passed to the COM object as a parameter. Lately, thanks to all PHP developers, COM event catching is implemented, there's only one example and not much documentation about it ( please see http://dev.nexen.net/docs/php/annotee/faq.com.q12.php for the only example which catches an event generated by IE and let me underline that in this example IE is using the method that is called "Event Sinking" for generating events for the software to catch its events). As far as I understand there are more than one way for implementing that kind of call-back functions in a COM module and the module that I'm trying to use uses one of those methods other than the "event sinking". And I don't know any other way to catch such call-backs in PHP. I've already tried to implement the class which will be passed to that COM module as a parameter (btw, it's working fine when I create that object under VB or Delphi) but I think PHP is currently lacking that ability to pass an object to a COM module as a variable or simply catching those events returned from COM module which should trigger a method defined in the class that the object is derived. So I think I need to be directed to the right way regarding the issue stated above, or maybe someone with enough experience in these issues can tell me if it's possible to make it happen via PHP or not. Any clues and/or comments are much appreciated. Thanks in advance... Kerem Tuzemen -------------- next part -------------- An HTML attachment was scrubbed... URL: From cmerlo at turing.matcmp.ncc.edu Wed Feb 5 12:35:04 2003 From: cmerlo at turing.matcmp.ncc.edu (Christopher R. Merlo) Date: Wed, 5 Feb 2003 12:35:04 -0500 Subject: [nycphp-talk] EREG Question In-Reply-To: <200302051526.h15FPZsg055102@parsec.nyphp.org>; from pete@npgroup.net on Wed, Feb 05, 2003 at 10:25:35AM -0500 References: <200302051526.h15FPZsg055102@parsec.nyphp.org> Message-ID: <20030205123504.B31376@turing.matcmp.ncc.edu> On 2003-02-05 10:25 -0500, Pete Czech - New Possibilities Group, LLC wrote: > This works, but with SINGLE numbers, they appear bolded all over the > place. So if the person had entered 9,39,49 - all the 9's would be > bolded... BUT, this doesn't happen all over! Just in certain > places with no rhyme or reason. So one persons entry would be fine, > showing the single 9 bolded, while another user would have all their > 9's bolded. Ugh! (Hi. I'm a new subscriber to the list. Blah, blah, blah.) You probably want to add some delimiters to your expression, like testing for " $a " (or whatever your delimiter is), instead of testing for "$a". It seems that your regex is picking up every occurrence of the digit, because you're not telling it that the digit should be by itself. -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo Windows: You'll wish we were kidding. From mz34 at nyu.edu Wed Feb 5 13:05:51 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Wed, 5 Feb 2003 13:05:51 -0500 Subject: installing mysql extension for php In-Reply-To: <200302050450.h154ncqC047214@parsec.nyphp.org> Message-ID: <760AD34A-3934-11D7-A9E6-00039344DCA8@nyu.edu> Hey guys, I recently set up a Linux Sever running Redhat 8.0 I have MySQL 3.23.54, Apache 2.0.40, and PHP 4.2.2 running. Today was the first today I tried to make them talk to each other (using phpMyAdmin) and I received this error in my web browser: cannot load MySQL extension, please check PHP Configuration. The phpMyAmdin documentation says: [1.20] I receive the error "cannot load MySQL extension, please check PHP Configuration" To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP server (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or mysql.dll. phpMyAdmin tried to load the extension but failed. When I type :php -m" from the command line I received [PHP Modules] yp xml wddx sysvshm sysvsem standard sockets shmop session pspell posix pcre openssl ncurses iconv gmp gettext gd ftp exif domxml dio dbx dba curl ctype calendar bz2 bcmath zlib imap ldap [Zend Modules] So, how do I install the MySQL extension. Do I need to recompile PHP? I looked around the PHP.net site a bit but couldn't find a clear answer. Matt From andrew at digitalpulp.com Wed Feb 5 13:31:16 2003 From: andrew at digitalpulp.com (Andrew M. Yochum) Date: Wed, 5 Feb 2003 13:31:16 -0500 (EST) Subject: [nycphp-talk] installing mysql extension for php In-Reply-To: <200302051806.h15I5rm0062096@parsec.nyphp.org> Message-ID: RedHat has an RPM for the MySQL extension. You should find it on one of the RH 8.0 cds, rpmfind.net or a RH mirror. The latest one from RH is: php-mysql-4.2.2-8.0.7.rpm Via rpmfind: http://speakeasy.rpmfind.net//linux/RPM/redhat/updates/8.0/i386/php-mysql-4.2.2-8.0.7.i386.html Install that RPM, and you're all set. Andrew On Wed, 5 Feb 2003, Matthew Zimmerman wrote: > Hey guys, > > I recently set up a Linux Sever running Redhat 8.0 > > I have MySQL 3.23.54, Apache 2.0.40, and PHP 4.2.2 running. > > Today was the first today I tried to make them talk to each other > (using phpMyAdmin) and I received this error in my web browser: > > cannot load MySQL extension, > please check PHP Configuration. > > The phpMyAmdin documentation says: > > [1.20] I receive the error "cannot load MySQL extension, please check > PHP Configuration" > > To connect to a MySQL server, PHP needs a set of MySQL functions called > "MySQL extension". This extension may be part of the PHP server > (compiled-in), otherwise it needs to be loaded dynamically. Its name is > probably mysql.so or mysql.dll. phpMyAdmin tried to load the extension > but failed. > > When I type :php -m" from the command line I received > > [PHP Modules] > yp > xml > wddx > sysvshm > sysvsem > standard > sockets > shmop > session > pspell > posix > pcre > openssl > ncurses > iconv > gmp > gettext > gd > ftp > exif > domxml > dio > dbx > dba > curl > ctype > calendar > bz2 > bcmath > zlib > imap > ldap > > [Zend Modules] > > > So, how do I install the MySQL extension. Do I need to recompile PHP? I > looked around the PHP.net site a bit but couldn't find a clear answer. > > Matt > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > -- Andrew Yochum Digital Pulp, Inc. 212.679.0676x255 andrew at digitalpulp.com From tom at supertom.com Wed Feb 5 13:30:38 2003 From: tom at supertom.com (tom at supertom.com) Date: Wed, 5 Feb 2003 13:30:38 -0500 Subject: ODBC connection crashes mysqld In-Reply-To: <200302051806.h15I5rru062096@parsec.nyphp.org> Message-ID: I'm having a problem establishing an ODBC connection to a mysql server. The database will be up and running, and then as soon as I try to establish the connection, the database crashes. In the mysql log, it appears that mysql may be trying to restart itself, but cannot remove the mysql.sock file. Why would it be restarting itself? Here are the specs: Server OS: Redhat 8.0 MySQL server: 3.23.52 Client OS: win2k APP: Access 2000 I verified that the permissions for this are set up correctly (I've also done this before, without issue), and the privileges have been flushed. Anyone have any ideas or suggestions? (Solutions would also be nice!) Thanks, Tom From mz34 at nyu.edu Wed Feb 5 14:01:10 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Wed, 5 Feb 2003 14:01:10 -0500 Subject: [nycphp-talk] installing mysql extension for php In-Reply-To: <200302051829.h15ISmqG062968@parsec.nyphp.org> Message-ID: <30BE5E82-393C-11D7-9345-00039344DCA8@nyu.edu> thanks Andrew! On Wednesday, February 5, 2003, at 01:28 PM, Andrew M. Yochum wrote: > RedHat has an RPM for the MySQL extension. You should find it on one > of the RH > 8.0 cds, rpmfind.net or a RH mirror. The latest one from RH is: > php-mysql-4.2.2-8.0.7.rpm > Via rpmfind: > > http://speakeasy.rpmfind.net//linux/RPM/redhat/updates/8.0/i386/php- > mysql-4.2.2-8.0.7.i386.html > > Install that RPM, and you're all set. > > Andrew > > On Wed, 5 Feb 2003, Matthew Zimmerman wrote: > >> Hey guys, >> >> I recently set up a Linux Sever running Redhat 8.0 >> >> I have MySQL 3.23.54, Apache 2.0.40, and PHP 4.2.2 running. >> >> Today was the first today I tried to make them talk to each other >> (using phpMyAdmin) and I received this error in my web browser: >> >> cannot load MySQL extension, >> please check PHP Configuration. >> >> The phpMyAmdin documentation says: >> >> [1.20] I receive the error "cannot load MySQL extension, please check >> PHP Configuration" >> >> To connect to a MySQL server, PHP needs a set of MySQL functions >> called >> "MySQL extension". This extension may be part of the PHP server >> (compiled-in), otherwise it needs to be loaded dynamically. Its name >> is >> probably mysql.so or mysql.dll. phpMyAdmin tried to load the extension >> but failed. >> >> When I type :php -m" from the command line I received >> >> [PHP Modules] >> yp >> xml >> wddx >> sysvshm >> sysvsem >> standard >> sockets >> shmop >> session >> pspell >> posix >> pcre >> openssl >> ncurses >> iconv >> gmp >> gettext >> gd >> ftp >> exif >> domxml >> dio >> dbx >> dba >> curl >> ctype >> calendar >> bz2 >> bcmath >> zlib >> imap >> ldap >> >> [Zend Modules] >> >> >> So, how do I install the MySQL extension. Do I need to recompile PHP? >> I >> looked around the PHP.net site a bit but couldn't find a clear answer. >> >> Matt >> >> >> >> >> >> > > -- > Andrew Yochum > Digital Pulp, Inc. > 212.679.0676x255 > andrew at digitalpulp.com > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > MZ _________________ Matthew Zimmerman Humanities Computing Group, NYU Tel: 212.998.3038 Fax: 212.995.4120 From palexanderbalogh at yahoo.com Wed Feb 5 14:17:07 2003 From: palexanderbalogh at yahoo.com (Peter Balogh) Date: Wed, 5 Feb 2003 11:17:07 -0800 (PST) Subject: Using HTMLDOC with PHP Message-ID: <20030205191707.468.qmail@web40311.mail.yahoo.com> We've had great luck using HTMLDOC with PHP on our server, by setting up a master script that first pipes a .php page to a flat HTML file and then passes that HTML file's name as a command-line argument to HTMLDOC. The HTML page gets parsed fairly well by HTMLDOC, which creates a PDF that recreates the layout and appearance of the original PHP page quite nicely. However, for some reason, our install of HTMLDOC is failing to place the graphic images in the PDF files. We've tried using .gifs and .jpgs, all to no avail. What's more, I went to PDF-o-matic (http://www.easysw.com/htmldoc/pdf-o-matic.php) and gave one of our HTML pages' addresses as a command-line argument. Their version of HTMLDOC compiled a PDF that *did* use the graphic images correctly. Has anyone experienced this? If so, what's the solution? ----------- Peter Balogh http://www.drunkencop.com __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From wefisher at open-world.com Wed Feb 5 14:53:22 2003 From: wefisher at open-world.com (William E. Fisher) Date: Wed, 5 Feb 2003 14:53:22 -0500 Subject: Form Action Help Message-ID: <006001c2cd50$3dc7d7a0$0801000a@DELL4100> Greetings. I am using a service (paypal) to process credit card payments. The paypal procedure calls for including a form with hidden fields and values that is then posted via a form action to a cgi script on the paypal server. For security, I would prefer not to reveal all of the hidden field values in the html source code. Here is the paypal code
...etc....(20 hidden fields)
My question: Is there a way to have a form with no hidden fields and a submit button, "Pay Here," that has as its action a php script on my server that would create and post the data to paypal in the manner expected by paypal without needing to reveal the values in the html source? For example, Is it possible to have a first form with no hidden fields and a form action that calls a php script on my server that then creates a second "form" that then posts itself to paypal without ever being written out to html? or Is it possible to have the form with no hidden fields that has as its action a php script that simply creates the expected form variables and values and then simulates a post / form action to the paypal script on the paypal server? I hope that my question is clear. Apologies if it seems as confused as I am. Thanks. Bill -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiflett at php.net Wed Feb 5 14:50:52 2003 From: shiflett at php.net (Chris Shiflett) Date: Wed, 5 Feb 2003 11:50:52 -0800 (PST) Subject: [nycphp-talk] Form Action Help In-Reply-To: <200302051945.h15Jj8rS066360@parsec.nyphp.org> Message-ID: <20030205195052.54091.qmail@web14304.mail.yahoo.com> --- "William E. Fisher" wrote: > I am using a service (paypal) to process credit card > payments. The paypal procedure calls for including a form > with hidden fields and values that is then posted via a > form action to a cgi script on the paypal server. For > security, I would prefer not to reveal all of the hidden > field values in the html source code. Look into cURL or even the PEAR class Net_Curl (http://pear.php.net/package-info.php?pacid=30). What you are wanting to do is perform a POST to Paypal via HTTPS. Chris From gw.nyphp at gwprogramming.com Wed Feb 5 15:25:05 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Wed, 5 Feb 2003 15:25:05 -0500 (EST) Subject: [nycphp-talk] Form Action Help Message-ID: <200302052025.PAA21221@gw00.com> Bill, Just to clarify what Chris said, since maybe the overall procedure is not obvious: The https/POST that goes to the PayPal server gets submitted by your PHP script, not by the end-user. So your script can keep private whatever data it wants to. So the form action will go like this: 1/ User fills out your form and submits it to your server 2/ Your PHP script reads the form input and validates it or whatever 3/ Your PHP script submits a https/POST request to PayPal (or wherever) 4/ Your PHP script gets a response from PayPal 5/ Your PHP script parses the response and does appropriate action 6/ Your PHP script sends the resulting message back to the user. So the user will have no idea that steps 3-5 are going on, even if they read the HTML source. Hope that wasn't obvious! Best, George. George Webb gw.nyphp at gwprogramming.com From jim at nettmedia.com Wed Feb 5 15:56:31 2003 From: jim at nettmedia.com (Jim Musil) Date: Wed, 05 Feb 2003 15:56:31 -0500 Subject: Chat help Message-ID: Hi All, Can anyone personally recommend an open source chat solution that could be embedded into a page on a LAMP system. This is not necessarily a PHP question, but it could be... Jim Musil Nettmedia, Senior Developer 345 Seventh Ave., 24th Floor. New York, NY 10001 Tel. 212.629.0004 x 131 From wefisher at open-world.com Wed Feb 5 19:04:00 2003 From: wefisher at open-world.com (William E. Fisher) Date: Wed, 5 Feb 2003 19:04:00 -0500 Subject: [nycphp-talk] Form Action Help References: <200302052025.h15KPCqU068100@parsec.nyphp.org> Message-ID: <000b01c2cd73$40dccae0$0801000a@DELL4100> Thanks Chris and George for your replies. If I can refer to George's response, I think my confusion lies in step #3: "Your PHP script submits a https/POST request to PayPal (or wherever)." How do I write the command to submit that https/POST request to PayPal? I'm sure this is pretty obvious, but I am completely blind to it. Thanks, Bill ----- Original Message ----- From: "George Webb" To: "NYPHP Talk" Sent: Wednesday, February 05, 2003 3:25 PM Subject: Re: [nycphp-talk] Form Action Help > Bill, > > Just to clarify what Chris said, since maybe the overall procedure > is not obvious: > > The https/POST that goes to the PayPal server gets submitted by > your PHP script, not by the end-user. So your script can keep private > whatever data it wants to. > > So the form action will go like this: > > 1/ User fills out your form and submits it to your server > > 2/ Your PHP script reads the form input and validates > it or whatever > > 3/ Your PHP script submits a https/POST request to PayPal > (or wherever) > > 4/ Your PHP script gets a response from PayPal > > 5/ Your PHP script parses the response and does appropriate > action > > 6/ Your PHP script sends the resulting message back to the > user. > > So the user will have no idea that steps 3-5 are going on, > even if they read the HTML source. > > Hope that wasn't obvious! > > > Best, George. > > George Webb > gw.nyphp at gwprogramming.com > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From gw.nyphp at gwprogramming.com Wed Feb 5 20:13:12 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Wed, 5 Feb 2003 20:13:12 -0500 (EST) Subject: Anyone know of a decent HTML parser class? Message-ID: <200302060113.UAA21439@gw00.com> Hi. Has anyone seen or heard of a PHP class that will parse an HTML document and return some sort of structured list of elements? I don't know much about the expat library, but perhaps it might be helpful? Or does that only work with XML? Thanks! George Webb gw.nyphp at gwprogramming.com From gw.nyphp at gwprogramming.com Wed Feb 5 20:27:38 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Wed, 5 Feb 2003 20:27:38 -0500 (EST) Subject: [nycphp-talk] Form Action Help Message-ID: <200302060127.UAA21469@gw00.com> > > If I can refer to George's response, I think my confusion lies in step #3: > "Your PHP script submits a https/POST request to PayPal (or wherever)." > > How do I write the command to submit that https/POST request to PayPal? Bill, Below is some code I wrote recently to do a similar thing -- basically to re-post incoming $_POST data to "instantservice.com". It uses cURL, which seems to be a cool thing to do, except some PHP installations don't have it by default. I hope that's not you. Anyway, I could explain this further, but I got another crisis right now, so I must be brief. The response from the foreign server (InstantService) is simply a 3-digit result code, e.g. 100. If the transmission is successful, the global var $ISStatus is set to this value, and my PHP function returns true. If the foreign server couldn't be reached, $ISStatus is left unset, and the PHP function returns false. Basic stuff. Using PayPal instead of InstantService, you may have to do more elaborate parsing of the result. But that's another topic! Let me know how it goes. Best, George. George Webb gw.nyphp at gwprogramming.com $val ) { $postfields_string .= urlencode($key) . '=' . urlencode( $val ) . '&'; } /* Try to connect to InstantService */ $retries = 0; while (true) { /* Build the request */ $ch = curl_init ( INSTANTSERVICE_POST_URL ); curl_setopt ( $ch, CURLOPT_POST, 1); curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ( $ch, CURLOPT_TIMEOUT, 30 ); // tem suggested curl_setopt ( $ch, CURLOPT_POSTFIELDS, $postfields_string ); /* Make the HTTP(s) transaction */ $ISStatus = curl_exec ($ch); curl_close ( $ch ); /* Check status */ if ( $ISStatus == INSTANTSERVICE_STATUS_OK ) { return true; } /* Else sleep and maybe retry */ if ( $retries++ >= INSTANTSERVICE_RETRIES ) return false; // transmit() failed else sleep ( INSTANTSERVICE_SLEEP ); // retry } } From gw.nyphp at gwprogramming.com Wed Feb 5 20:34:13 2003 From: gw.nyphp at gwprogramming.com (George Webb) Date: Wed, 5 Feb 2003 20:34:13 -0500 (EST) Subject: [nycphp-talk] Form Action Help Message-ID: <200302060134.UAA21489@gw00.com> To anyone who was paying attention to my last explanation, My transmit() function returns true only if the HTTP transaction was successful *and* the "OK" status was received. False otherwise. ;) Best, George. George Webb gw.nyphp at gwprogramming.com From mbiamonte at affinitysolutions.com Wed Feb 5 20:50:21 2003 From: mbiamonte at affinitysolutions.com (Michael Biamonte) Date: Wed, 5 Feb 2003 20:50:21 -0500 Subject: [nycphp-talk] Form Action Help In-Reply-To: <200302060127.h161Rels083002@parsec.nyphp.org> Message-ID: <000201c2cd82$1c761b20$340110ac@AFSNYCNT1.affinitysolutions.com> Here is generically-usable PostToHost function that can do both ssl and non ssl posts... It's up to you to parse the result - there's an echo statement below that you can uncomment to make sense of the response. To so an ssl post, you need php 4.3 compiled with openssl... =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= //FUNCTION USE $data_to_send="x=1&y=2&z=what ever"; $responseFromHost=PostToHost('10.10.10.10', '/path/to/receivepost.pl', $data_to_send, 1) //FUNCTION DEFINTION function PostToHost($host, $path, $data_to_send, $ssl=0) { if ($ssl) { $host='ssl://'.$host; $port='443'; } else { $port='80'; } $fp=fsockopen($host,$port,$errno,$errstr); if (!$fp) { echo "PostToHost couldn't connect to $host $path with ssl=$ssl"; return false; } else { $count=0; $returnvalue=''; $data_to_send="POST $path HTTP/1.1\ Host: $host\ Content-Type: application/x-www-form-urlencoded\ Content-Length: ".strlen($data_to_send)."\ Connection: close\ \ ".$data_to_send; //echo "
";
		//echo $data_to_send;
		//echo "

"; fputs($fp, $data_to_send); while(!feof($fp)) { $temp=@fgetss($fp,5000); // echo "Line ".$count++." (".strlen($temp)."): ".$temp."
"; $returnvalue.=$temp; } $fp=fclose($fp); return $returnvalue; } From mxw65 at yahoo.com Wed Feb 5 21:54:24 2003 From: mxw65 at yahoo.com (Mike West) Date: Wed, 5 Feb 2003 18:54:24 -0800 (PST) Subject: MySQL 4 & php any luck? Message-ID: <20030206025424.67642.qmail@web13508.mail.yahoo.com> I hope I didn't miss it if someone's posted previously, but I can't get MySQL 4 and php to play nicely yet. Is there a known issue somewhere? MySQL 4's libmysqlclient is at 12 where php wants 10. Anyone else trying to get this going? Thanks, Mike West __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com From zaunere at yahoo.com Thu Feb 6 08:40:24 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 6 Feb 2003 05:40:24 -0800 (PST) Subject: [nycphp-talk] Anyone know of a decent HTML parser class? In-Reply-To: <200302060114.h161DFu6082219@parsec.nyphp.org> Message-ID: <20030206134024.40859.qmail@web12807.mail.yahoo.com> Hi George, --- George Webb wrote: > Hi. > > Has anyone seen or heard of a PHP class that will parse an HTML > document and return some sort of structured list of elements? This is something that the community could probably use, since I haven't found a good solution and it's a topic that comes up frequently. So far, I've only found: http://www.zend.com/codex.php?id=367&single=1 http://sourceforge.net/projects/html-parser > I don't know much about the expat library, but perhaps it might be > helpful? Or does that only work with XML? I don't believe it supports HTML either. Hans From zaunere at yahoo.com Thu Feb 6 09:09:24 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 6 Feb 2003 06:09:24 -0800 (PST) Subject: [nycphp-talk] MySQL 4 & php any luck? In-Reply-To: <200302060255.h162sRu8085102@parsec.nyphp.org> Message-ID: <20030206140924.19496.qmail@web12806.mail.yahoo.com> --- Mike West wrote: > I hope I didn't miss it if someone's posted previously, but I can't get > MySQL 4 and php to play nicely yet. Is there a known issue somewhere? MySQL > 4's libmysqlclient is at 12 where php wants 10. Anyone else trying to get > this going? I just did a compile of 4.3.0 on RH 7.3 against MySQL-Max 4.0.5a without any issues. If you're compiling from source, be sure to use --with-mysql=/usr/local/mysql (or wherever you installed MySQL) as you may run into problems using PHP's supplied libmysqlcient, most noteably with new versions of MySQL. H From hans at nyphp.org Thu Feb 6 09:15:29 2003 From: hans at nyphp.org (Hans Zaunere) Date: Thu, 6 Feb 2003 06:15:29 -0800 (PST) Subject: PHP Meetup Tonight Message-ID: <20030206141529.32292.qmail@web12808.mail.yahoo.com> Hi all, Just a quick reminder about the PHP Meetup tonight. We should have a pretty good crowd, since this meetup is also going to double as a NYPHP development meeting, allowing us to meet, discuss and get the ball rolling with the new members. The event is taking place at: Bean 473 Amsterdam Ave New York, NY 10024 917-441-4141 Other PHP Developers will be gathering at the venue here: Entrance More details at http://php.meetup.com I'll be there between 6:30-7:00pm and I'm looking forward to meeting everyone. Thank you, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From max at idsociety.com Thu Feb 6 09:51:33 2003 From: max at idsociety.com (max goldberg) Date: Thu, 06 Feb 2003 09:51:33 -0500 Subject: System V Msgs Message-ID: <3E427675.9080908@idsociety.com> I have been playing with the sysvmesg functions recently but I can't seem to get them to work correctly, I do get_queue and it returns a valid resource identifier, but when I try to do a msg_send I receive the following: msg_send(): msgsnd failed: Resource temporarily unavailable Has anyone had any experience with these set of functions, or had a similar problem? -max From zaunere at yahoo.com Thu Feb 6 11:37:07 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 6 Feb 2003 08:37:07 -0800 (PST) Subject: [nycphp-talk] What breaks in 4.3? In-Reply-To: <200302030513.h135Btu2006667@parsec.nyphp.org> Message-ID: <20030206163707.9925.qmail@web12801.mail.yahoo.com> I just came across this on an apache list as well: > There exist instructions that describe how to install Apache 2 and PHP: > http://dan.drydog.com/apache2php.html > > Of course, you will need to check out known issues, for instance this bug: > http://bugs.php.net/bug.php?id=21634 Hope it's of use, H --- Tracy wrote: > > HI, > i upgraded to 4.3 but as i more of a beginner i cant report of any bug, but > one thing i'd like help on is i wasnt able to run a test script in the > background as the examples suggested. did any one try it ? > Tracy --- evan heller wrote: > When I upgraded I noticed on > windows that the > file() function no longer writes to the hard disk > in windows. This worked in 4.2.3 last i checked. > > -Evan > > Adam Fields wrote: > > > > On Thu, Jan 30, 2003 at 11:56:28AM -0500, Adam Fields wrote: > > > I'm planning on upgrading from 4.1 to 4.3. I've heard some reports > > > that some things break in 4.3, but no specifics. > > > > > > What should I be on the lookout for? > > > > I posted this message a few days ago, but no response. > > > > Has anyone here upgraded to 4.3? Did it work well for you? > > > > -- > > - Adam > > From zaunere at yahoo.com Thu Feb 6 11:55:14 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 6 Feb 2003 08:55:14 -0800 (PST) Subject: [nycphp-talk] System V Msgs In-Reply-To: <200302061452.h16EpMu8094371@parsec.nyphp.org> Message-ID: <20030206165514.41854.qmail@web12803.mail.yahoo.com> --- max goldberg wrote: > I have been playing with the sysvmesg functions recently but I can't > seem to get them to work correctly, I do get_queue and it returns a > valid resource identifier, but when I try to do a msg_send I receive > the following: > > msg_send(): msgsnd failed: Resource temporarily unavailable Is this FreeBSD? From man msgsnd that error translates to EAGAIN, which is explained as: "There was no space for this message either on the queue, or in the whole system, and IPC_NOWAIT was set in msgflg." So, I'm guessing somehow the queue isn't getting initialized properly, or any number of things, maybe: system doesn't support sysV? PHP doesn't have proper permissions? Do SHM/SEM work ok? Have you tried sleep(5); then trying again? H From ophir at prusak.com Thu Feb 6 12:10:33 2003 From: ophir at prusak.com (Ophir Prusak) Date: Thu, 6 Feb 2003 12:10:33 -0500 Subject: [nycphp-talk] What breaks in 4.3? References: <200302061638.h16GbBr6029784@parsec.nyphp.org> Message-ID: <05cf01c2ce02$a8d14a60$bf65a8c0@tag1002> I was thinking of installing apache2.0 + php on a heavily loaded machine because of apache 2.0's multi-threaded option. Specifically, it's running out of memory. The info at http://dan.drydog.com/apache2php.html specifically says ONLY to use the prefork MPM with PHP. Anyone know where I can find more info on this ? . Multi-Processing Module (MPM) This handles multiple web server requests. Apache 2 has various MPM flavors, including multi-threading. For now, on Linux (and even UNIX), only use the (default) prefork module. This is done at compile time. Other MPM modules break PHP and other modules. Also Linux 2.4 doesn't handle threads efficiently (wait until Linux 2.6). ----- Original Message ----- From: "Hans Zaunere" To: "NYPHP Talk" Sent: Thursday, February 06, 2003 11:37 AM Subject: Re: [nycphp-talk] What breaks in 4.3? > > I just came across this on an apache list as well: > > > There exist instructions that describe how to install Apache 2 and PHP: > > http://dan.drydog.com/apache2php.html > > > > Of course, you will need to check out known issues, for instance this bug: > > http://bugs.php.net/bug.php?id=21634 > > Hope it's of use, > > H > > > --- Tracy wrote: > > > > HI, > > i upgraded to 4.3 but as i more of a beginner i cant report of any bug, but > > one thing i'd like help on is i wasnt able to run a test script in the > > background as the examples suggested. did any one try it ? > > Tracy > > --- evan heller wrote: > > When I upgraded I noticed on > > windows that the > > file() function no longer writes to the hard disk > > in windows. This worked in 4.2.3 last i checked. > > > > -Evan > > > > Adam Fields wrote: > > > > > > On Thu, Jan 30, 2003 at 11:56:28AM -0500, Adam Fields wrote: > > > > I'm planning on upgrading from 4.1 to 4.3. I've heard some reports > > > > that some things break in 4.3, but no specifics. > > > > > > > > What should I be on the lookout for? > > > > > > I posted this message a few days ago, but no response. > > > > > > Has anyone here upgraded to 4.3? Did it work well for you? > > > > > > -- > > > - Adam > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From sklar at sklar.com Thu Feb 6 12:44:32 2003 From: sklar at sklar.com (David Sklar) Date: Thu, 6 Feb 2003 12:44:32 -0500 Subject: [nycphp-talk] What breaks in 4.3? In-Reply-To: <200302061711.h16HASrY078797@parsec.nyphp.org> Message-ID: http://www.php.net/manual/en/install.apache2.php says that you can use multithreaded MPMs with PHP. PHP's core is thread-safe, but I think you may run into extensions that are not thread-safe. -dave > -----Original Message----- > From: Ophir Prusak [mailto:ophir at prusak.com] > Sent: Thursday, February 06, 2003 12:10 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] What breaks in 4.3? > > > I was thinking of installing apache2.0 + php on a heavily loaded machine > because of apache 2.0's multi-threaded option. > Specifically, it's running out of memory. > > The info at http://dan.drydog.com/apache2php.html specifically > says ONLY to > use the prefork MPM with PHP. > Anyone know where I can find more info on this ? > > Multi-Processing Module (MPM) > This handles multiple web server requests. Apache 2 has various > MPM flavors, > including multi-threading. For now, on Linux (and even UNIX), only use the > (default) prefork module. This is done at compile time. Other MPM modules > break PHP and other modules. Also Linux 2.4 doesn't handle threads > efficiently (wait until Linux 2.6). > > > ----- Original Message ----- > From: "Hans Zaunere" > To: "NYPHP Talk" > Sent: Thursday, February 06, 2003 11:37 AM > Subject: Re: [nycphp-talk] What breaks in 4.3? > > > > > > I just came across this on an apache list as well: > > > > > There exist instructions that describe how to install Apache > 2 and PHP: > > > http://dan.drydog.com/apache2php.html > > > > > > Of course, you will need to check out known issues, for instance this > bug: > > > http://bugs.php.net/bug.php?id=21634 > > > > Hope it's of use, > > > > H > > > > > > --- Tracy wrote: > > > > > > HI, > > > i upgraded to 4.3 but as i more of a beginner i cant report > of any bug, > but > > > one thing i'd like help on is i wasnt able to run a test script in the > > > background as the examples suggested. did any one try it ? > > > Tracy > > > > --- evan heller wrote: > > > When I upgraded I noticed on > > > windows that the > > > file() function no longer writes to the hard disk > > > in windows. This worked in 4.2.3 last i checked. > > > > > > -Evan > > > > > > Adam Fields wrote: > > > > > > > > On Thu, Jan 30, 2003 at 11:56:28AM -0500, Adam Fields wrote: > > > > > I'm planning on upgrading from 4.1 to 4.3. I've heard some reports > > > > > that some things break in 4.3, but no specifics. > > > > > > > > > > What should I be on the lookout for? > > > > > > > > I posted this message a few days ago, but no response. > > > > > > > > Has anyone here upgraded to 4.3? Did it work well for you? > > > > > > > > -- > > > > - Adam > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From danielc at analysisandsolutions.com Thu Feb 6 12:50:50 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Thu, 6 Feb 2003 12:50:50 -0500 Subject: [nycphp-talk] Apache/PHP Authentication - Again In-Reply-To: <200301311348.h0VDm4l7043051@parsec.nyphp.org> References: <200301311348.h0VDm4l7043051@parsec.nyphp.org> Message-ID: <20030206175050.GA29435@panix.com> Hi Griffith: Along with what other people suggested, you could try doing this... In the authentication script, after they've been approved, put in this code: $File = 'jtwforms.wb3'; header('Content-type: application/octet-stream'); header("Content-Disposition: attachment; filename=\\"$File\\""); $File = "./$File"; $In = fopen($File, 'rb'); echo fread( $In, filesize($File) ); Of course, since it sends headers, make sure to not send any output before this part. Enjoy, --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From zaunere at yahoo.com Thu Feb 6 13:40:06 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 6 Feb 2003 10:40:06 -0800 (PST) Subject: [nycphp-talk] What breaks in 4.3? In-Reply-To: <200302061711.h16HASu8078797@parsec.nyphp.org> Message-ID: <20030206184006.67279.qmail@web12802.mail.yahoo.com> --- Ophir Prusak wrote: > I was thinking of installing apache2.0 + php on a heavily loaded machine > because of apache 2.0's multi-threaded option. > Specifically, it's running out of memory. You may end up with memory corruption if you go threads (and if you're on FreeBSD 4.x you'll be lucky to get Apache stable for more than a few hours). > The info at http://dan.drydog.com/apache2php.html specifically says ONLY to > use the prefork MPM with PHP. > Anyone know where I can find more info on this ? There's an excellent thread continuing on Apache-Dev in regards to these types of issues with PHP/Apache2 and other interesting topics on the workings, design and direction of Apache in general. http://marc.theaimsgroup.com/?t=104441219000007&r=1&w=2 > Multi-Processing Module (MPM) > This handles multiple web server requests. Apache 2 has various MPM > flavors, including multi-threading. For now, on Linux (and even UNIX), only > use the (default) prefork module. For "stability," maybe, but I think some would argue that the worker MPM (threaded) is fine with the right thread lib and extensions, if any. > This is done at compile time. Other MPM modules break PHP and other > modules. The issue isn't really PHP itself, but extensions that get compiled in. I've been running Apache 2/MySQL 4.x/PHP 4.2.x and just recently 4.3.0 in production without issue. But granted, all it does is use MySQL and Oracle extensions, both of which are highly thread aware. > Also Linux 2.4 doesn't handle threads efficiently (wait until > Linux 2.6). True, although MySQL, for example, runs fine on Linux (in fact its the best platform for it, IMO and http://jeremy.zawodny.com/blog/archives/cat_mysql.html) 2.6 should offer much improvement. FreeBSD 4.x is what you should stay away from (although addressed in 5.x) for threading (but again, I run MySQL happily on FreeBSD, too). In all, I don't you'd gain much from Apache2/PHP in the threading model without considerable work and/or carefuly picking your extensions. Although it'd be interesting to really spend some time on, especially in a heavily loaded environment. ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From jonbaer at jonbaer.net Thu Feb 6 11:30:21 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 6 Feb 2003 11:30:21 -0500 Subject: It is so much cleaner but I get the feeling it's not really acceptable ... (this is coming from someone with JSP exp), in fact is it possible to write parsing for a custom tag? > >It is so much cleaner but I get the feeling it's not really acceptable ... >(this is coming from someone with JSP exp), in fact is it possible to write >parsing for a custom tag? > > foo.php would return something like this when called with $format==js : document.writeln('Hello. Arg equals bar.'); It would be fun to see this work the way you imply, though, with PHP outputting HTML as a client-side include. Never tried it. chris. From jim at nettmedia.com Thu Feb 6 14:13:42 2003 From: jim at nettmedia.com (Jim Musil) Date: Thu, 06 Feb 2003 14:13:42 -0500 Subject: [nycphp-talk] >> >> It is so much cleaner but I get the feeling it's not really acceptable ... >> (this is coming from someone with JSP exp), in fact is it possible to write >> parsing for a custom tag? >> >> > > foo.php would return something like this when called with $format==js : > > document.writeln('Hello. Arg equals bar.'); > > It would be fun to see this work the way you imply, though, with PHP > outputting HTML as a client-side include. Never tried it. > > chris. > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From shiflett at php.net Thu Feb 6 14:17:15 2003 From: shiflett at php.net (Chris Shiflett) Date: Thu, 6 Feb 2003 11:17:15 -0800 (PST) Subject: [nycphp-talk] ... > Wow, does this work? ... > It would be fun to see this work the way you imply, > though, with PHP outputting HTML as a client-side > include. Though I have never used it, I don't think that is client-side. I believe PHP still parses it before sending it to the Web client. See Rasmus's talk: http://talks.php.net/show/oscon2002/9 Chris From jkonikowski at nyc.rr.com Thu Feb 6 15:05:45 2003 From: jkonikowski at nyc.rr.com (Jeffrey Konikowski) Date: Thu, 6 Feb 2003 12:05:45 -0800 (PST) Subject: [nycphp-talk] > >It is so much cleaner but I get the feeling it's not really acceptable ... >(this is coming from someone with JSP exp), in fact is it possible to write >parsing for a custom tag? > > foo.php would return something like this when called with $format==js : document.writeln('Hello. Arg equals bar.'); It would be fun to see this work the way you imply, though, with PHP outputting HTML as a client-side include. Never tried it. chris. --- Unsubscribe at http://nyphp.org/list/ --- From jkonikowski at nyc.rr.com Thu Feb 6 15:05:45 2003 From: jkonikowski at nyc.rr.com (Jeffrey Konikowski) Date: Thu, 6 Feb 2003 12:05:45 -0800 (PST) Subject: [nycphp-talk] > >It is so much cleaner but I get the feeling it's not really acceptable ... >(this is coming from someone with JSP exp), in fact is it possible to write >parsing for a custom tag? > > foo.php would return something like this when called with $format==js : document.writeln('Hello. Arg equals bar.'); It would be fun to see this work the way you imply, though, with PHP outputting HTML as a client-side include. Never tried it. chris. --- Unsubscribe at http://nyphp.org/list/ --- From jkonikowski at nyc.rr.com Thu Feb 6 15:05:45 2003 From: jkonikowski at nyc.rr.com (Jeffrey Konikowski) Date: Thu, 6 Feb 2003 12:05:45 -0800 (PST) Subject: [nycphp-talk] > >It is so much cleaner but I get the feeling it's not really acceptable ... >(this is coming from someone with JSP exp), in fact is it possible to write >parsing for a custom tag? > > foo.php would return something like this when called with $format==js : document.writeln('Hello. Arg equals bar.'); It would be fun to see this work the way you imply, though, with PHP outputting HTML as a client-side include. Never tried it. chris. --- Unsubscribe at http://nyphp.org/list/ --- From jonbaer at jonbaer.net Thu Feb 6 17:06:59 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 6 Feb 2003 17:06:59 -0500 Subject: [nycphp-talk] > See ... for my part (and opinion) Id find this kinda sloppy although it works fine ... the main issue I have is that I have taken on some small projects and its loaded with slop and // examine all GET, POST, SQL, fill arrays, etc // // rest of the page It should be a written rule/law somewhere to do all your PHP/JSP work @ the top of the page :-) What would be extremely nice is to be able to object off segments of the page using the same technique. - Jon From brian at preston-campbell.com Thu Feb 6 19:46:50 2003 From: brian at preston-campbell.com (Brian) Date: Thu, 6 Feb 2003 19:46:50 -0500 Subject: [nycphp-talk] > > > See ... for my part (and opinion) Id find this kinda sloppy although it > works fine ... the main issue I have is that I have taken on some small > projects and its loaded with slop and meanwhile a (albeit complicated SQL statement) would have really helped, Id > also find a template approach extremely better. So far most of my stuff > is: > > > > > // rest of the page > > It should be a written rule/law somewhere to do all your PHP/JSP work @ the > top of the page :-) > > What would be extremely nice is to be able to object off segments of the > page using the same technique. > > - Jon > > > > --- Unsubscribe at http://nyphp.org/list/ --- From ssmith at tomega.com Thu Feb 6 21:58:54 2003 From: ssmith at tomega.com (Sean Smith) Date: Thu, 06 Feb 2003 21:58:54 -0500 Subject: [nycphp-talk] Test Network $v) { $$k = $v; echo $k."=". $v; }// echoes fine, flag = 1 on first run and flag = 2 on the second... so i guess the switch below isint being processed... switch ($_POST[flag]) { case 1 : @header("Location: user_run.php"); break; case 2: @header("Location: xor_run.php"); break; } ?>
How many test cases do u want to have ? ENTER THE TEST CASES BELOW:'."
\ "; for ($i=1; $i<=$_POST[tstcnt]; $i++) { echo '

TEST CASE '.$i.' : '; echo ''."
\ "; } echo '

'; echo '

'; } ?>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbaer at jonbaer.net Thu Feb 6 22:04:54 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 6 Feb 2003 22:04:54 -0500 Subject: [nycphp-talk] > Test Network > > > > > foreach ($_POST as $k => $v) { > $$k = $v; > echo $k."=". $v; > }// echoes fine, flag = 1 on first run and flag = 2 on the second... so > i guess the switch below isint being processed... > > switch ($_POST[flag]) { > case 1 : @header("Location: user_run.php"); > break; > case 2: @header("Location: xor_run.php"); > break; > } > ?> > >
> if(!$_POST[tstcnt]) { > ?> > How many test cases do u want to have ? > > > > } > > else { > echo 'ENTER THE TEST CASES BELOW:'."
\ "; > for ($i=1; $i<=$_POST[tstcnt]; $i++) { > echo '

TEST CASE '.$i.' : '; > echo ''."
\ "; > } > echo '

'; > echo '

'; > } > ?> >

> > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Coming together is a beginning... > keeping together is progress... > working together is success !!! > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now From keremtuzemen at hotmail.com Fri Feb 7 09:35:03 2003 From: keremtuzemen at hotmail.com (Kerem Tuzemen) Date: Fri, 7 Feb 2003 09:35:03 -0500 Subject: Reposted thinking that it wasn't distributed, If received please ignore: Fw: COM event catching... Message-ID: ----- Original Message ----- From: Kerem Tuzemen To: talk at nyphp.org Sent: Wednesday, February 05, 2003 11:13 AM Subject: COM event catching... Hi Folks, I need someone with experience in COM to point me to the right direction on COM call-back and event catching issues. I'm not a COM expert, what I do is to use them with my php scripts and only once written a simple one using VB (which I really prefer not to use as long as I'm not supposed to). So here's my problem: I'm using a COM module which does call-back some functions that should be defined as methods of another object which is passed to the COM object as a parameter. Lately, thanks to all PHP developers, COM event catching is implemented, there's only one example and not much documentation about it ( please see http://dev.nexen.net/docs/php/annotee/faq.com.q12.php for the only example which catches an event generated by IE and let me underline that in this example IE is using the method that is called "Event Sinking" for generating events for the software to catch its events). As far as I understand there are more than one way for implementing that kind of call-back functions in a COM module and the module that I'm trying to use uses one of those methods other than the "event sinking". And I don't know any other way to catch such call-backs in PHP. I've already tried to implement the class which will be passed to that COM module as a parameter (btw, it's working fine when I create that object under VB or Delphi) but I think PHP is currently lacking that ability to pass an object to a COM module as a variable or simply catching those events returned from COM module which should trigger a method defined in the class that the object is derived. So I think I need to be directed to the right way regarding the issue stated above, or maybe someone with enough experience in these issues can tell me if it's possible to make it happen via PHP or not. Any clues and/or comments are much appreciated. Thanks in advance... Kerem Tuzemen -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Fri Feb 7 11:08:42 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Fri, 7 Feb 2003 11:08:42 -0500 Subject: [nycphp-talk] How to proceed? In-Reply-To: <200302070451.h174ppUk011214@parsec.nyphp.org> References: <200302070451.h174ppUk011214@parsec.nyphp.org> Message-ID: <20030207160842.GA813@panix.com> Hi Tracy: On Thu, Feb 06, 2003 at 11:51:51PM -0500, Tracy wrote: > How to set the action of the script to address the issue? Directly in the action attribute of the form element. While you're right that the location header is used for forwarding, that's not what you want to do in this case. Some other things to watch out for... beside avoiding slashdot talk like "thankz" wich makes you seem immature... > switch ($_POST[flag]) { Similarly, put in quotes around key names $_POST['flag']. >
Put the name of the script up ^ here. Enjoy, --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From ian at plusfour.org Fri Feb 7 12:13:52 2003 From: ian at plusfour.org (Ian Forsyth) Date: Fri, 7 Feb 2003 09:13:52 -0800 Subject: [nycphp-talk] Test Network $v) { $$k = $v; echo $k."=". $v; }// echoes fine, flag = 1 on first run and flag = 2 on the second... so i guess the switch below isint being processed... switch ($_POST[flag]) { case 1 : @header("Location: user_run.php"); break; case 2: @header("Location: xor_run.php"); break; } ?>
Put here the post form code process ... How many test cases do u want to have ? ENTER THE TEST CASES BELOW:"

TEST CASE :

Quoting Tracy : > > Hi, > the script below first presents a textbox for the user to enter a number. > then it echoes itself and presents that many textboxes for the user to enter > info. > > after entering this info, i want the script to call another script where the > processing is done which i am not able to get it happen. the same > "user_run.php" seems to be toggling the entry fields. > > How to set the action of the script to address the issue? > > thankz > Tracy > > ####### user_run.php ######### > > > > Test Network > > > > > foreach ($_POST as $k => $v) { > $$k = $v; > echo $k."=". $v; > }// echoes fine, flag = 1 on first run and flag = 2 on the second... so i > guess the switch below isint being processed... > > switch ($_POST[flag]) { > case 1 : @header("Location: user_run.php"); > break; > case 2: @header("Location: xor_run.php"); > break; > } > ?> > >
> if(!$_POST[tstcnt]) { > ?> > How many test cases do u want to have ? > > > > } > > else { > echo 'ENTER THE TEST CASES BELOW:'."
\ "; > for ($i=1; $i<=$_POST[tstcnt]; $i++) { > echo '

TEST CASE '.$i.' : '; > echo ''."
\ "; > } > echo '

'; > echo '

'; > } > ?> >

> > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Coming together is a beginning... > keeping together is progress... > working together is success !!! > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now From danielc at analysisandsolutions.com Fri Feb 7 20:18:17 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Fri, 7 Feb 2003 20:18:17 -0500 Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200301311737.h0VHbVl7049918@parsec.nyphp.org> References: <200301311737.h0VHbVl7049918@parsec.nyphp.org> Message-ID: <20030208011817.GA7535@panix.com> Hi: On Fri, Jan 31, 2003 at 12:37:31PM -0500, Jim Musil wrote: > > It seems like it would be helpful if there were a way to grab the name > assigned to a variable and output it. Is there already a function like > this? While I understand what you want to do, I don't quite understand what you're getting at. In order to find the name of the variable in question, you need to know the name of the variable in the first place in order to ask the question about it. Kind of an existential situation, no? :) For example, in order to perform the action of unsetting a variable via unset(), you need to know the name of the variable: say unset($foo). Similarly, if you wanted to do a function like whats_my_name(), you'd similarly have to put the name of the variable in there. So, you already know the name. What am I missing here? Are you using varibable variables and trying to find the name of the initial variable? See you, --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From emm at scriptdigital.com Fri Feb 7 21:00:15 2003 From: emm at scriptdigital.com (Emmanuel. M. Decarie) Date: Fri, 07 Feb 2003 21:00:15 -0500 Subject: [nycphp-talk] > > >// rest of the page > >It should be a written rule/law somewhere to do all your PHP/JSP work @ the >top of the page :-) I rather put the code at the bottom of the page and was wondering if in PHP you could simulate an HTML::Mason <%init> block. In HTML::Mason, you can embed your code at the bottom of the page between <%init>code and when the page is called, the first thing that is going to be executed its this <%init> block. Cheers -Emmanuel -- ______________________________________________________________________ Emmanuel D?carie / Programmation pour le Web - Programming for the Web Frontier - Perl - PHP - Javascript - XML Blog: From nyphp at enobrev.com Fri Feb 7 22:15:47 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 7 Feb 2003 22:15:47 -0500 Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200302080118.h181IKWq053684@parsec.nyphp.org> Message-ID: <001d01c2cf20$6084e360$96721d18@enobrev> I think the idea was to be able to output all current variables at any time in the script. Which hcan be very helpful in debugging. A print_r($_Post) can be helpful. At least that's what I had gathered for the question. Mark -----Original Message----- From: Analysis & Solutions [mailto:danielc at analysisandsolutions.com] Sent: Friday, February 07, 2003 8:18 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Output name of Variable Hi: On Fri, Jan 31, 2003 at 12:37:31PM -0500, Jim Musil wrote: > > It seems like it would be helpful if there were a way to grab the name > assigned to a variable and output it. Is there already a function like > this? While I understand what you want to do, I don't quite understand what you're getting at. In order to find the name of the variable in question, you need to know the name of the variable in the first place in order to ask the question about it. Kind of an existential situation, no? :) For example, in order to perform the action of unsetting a variable via unset(), you need to know the name of the variable: say unset($foo). Similarly, if you wanted to do a function like whats_my_name(), you'd similarly have to put the name of the variable in there. So, you already know the name. What am I missing here? Are you using varibable variables and trying to find the name of the initial variable? See you, --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 --- Unsubscribe at http://nyphp.org/list/ --- From ernesto at guerrieri.us Mon Feb 10 11:15:45 2003 From: ernesto at guerrieri.us (Ernesto Guerrieri) Date: Mon, 10 Feb 2003 11:15:45 -0500 Subject: [nycphp-talk] How to proceed? References: <200302070452.h174ppYc011214@parsec.nyphp.org> Message-ID: <3E47D031.21DE6188@guerrieri.us> Tracy, I don't think the redirect will work until you comment out the echo statement - You can't have any output in order to re-direct. Ernesto --- Tracy wrote: > > Hi, > the script below first presents a textbox for the user to enter a number. then it echoes itself and presents that many textboxes for the user to enter info. > > after entering this info, i want the script to call another script where the processing is done which i am not able to get it happen. the same "user_run.php" seems to be toggling the entry fields. > > How to set the action of the script to address the issue? > > thankz > Tracy > > ####### user_run.php ######### > > > > Test Network > > > > > foreach ($_POST as $k => $v) { > $$k = $v; > echo $k."=". $v; > }// echoes fine, flag = 1 on first run and flag = 2 on the second... so i guess the switch below isint being processed... > > switch ($_POST[flag]) { > case 1 : @header("Location: user_run.php"); > break; > case 2: @header("Location: xor_run.php"); > break; > } > ?> > >
> if(!$_POST[tstcnt]) { > ?> > How many test cases do u want to have ? > > > > } > > else { > echo 'ENTER THE TEST CASES BELOW:'."
\ "; > for ($i=1; $i<=$_POST[tstcnt]; $i++) { > echo '

TEST CASE '.$i.' : '; > echo ''."
\ "; > } > echo '

'; > echo '

'; > } > ?> >

> > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Coming together is a beginning... > keeping together is progress... > working together is success !!! > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > --- Unsubscribe at http://nyphp.org/list/ --- From jim at nettmedia.com Mon Feb 10 12:24:37 2003 From: jim at nettmedia.com (Jim Musil) Date: Mon, 10 Feb 2003 12:24:37 -0500 Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200302080118.h181IKa6053684@parsec.nyphp.org> Message-ID: Yes, you are right, I would already know the name, but I thought it was silly that I had to enter it twice. For instance, I have a function similar to this ... function bug($var,$label) { echo " $label
";
        print_r($var);
        echo "
"; } ... And I use it liberally to trace variables and debug: As in if($DEBUG) bug($foo,"THIS IS FOO AND IT SHOULD EQUAL ONE"); But, I thought it was silly that I had to write the name twice, because sometimes it's obvious what the variable is... bug($number_of_rows); And I wanted to have my output be $number_of_rows: 5 The closest solution is to send the variable name without the $. function bug($var) { global $$var; echo "$".$var; echo "
";
        print_r($$var);
        echo "
"; } bug("foo"); To me, this is kind of silly, too. It just seems like there should be a simple function to do this. It should be part of print_r(), which already will say what type of object it is and will spell out the names of the object variables and associative array keys. How hard would it have been for them to print out the name of the variable? Jim Musil Nettmedia, Senior Developer 345 Seventh Ave., 24th Floor. New York, NY 10001 Tel. 212.629.0004 x 131 On 2/7/03 8:18 PM, "Analysis & Solutions" wrote: > Hi: > > On Fri, Jan 31, 2003 at 12:37:31PM -0500, Jim Musil wrote: >> >> It seems like it would be helpful if there were a way to grab the name >> assigned to a variable and output it. Is there already a function like >> this? > > While I understand what you want to do, I don't quite understand what > you're getting at. > > In order to find the name of the variable in question, you need to know > the name of the variable in the first place in order to ask the question > about it. > > Kind of an existential situation, no? :) > > For example, in order to perform the action of unsetting a variable via > unset(), you need to know the name of the variable: say unset($foo). > > Similarly, if you wanted to do a function like whats_my_name(), you'd > similarly have to put the name of the variable in there. So, you already > know the name. > > What am I missing here? > > Are you using varibable variables and trying to find the name of the > initial variable? > > See you, > > --Dan From shiflett at php.net Mon Feb 10 13:44:48 2003 From: shiflett at php.net (Chris Shiflett) Date: Mon, 10 Feb 2003 10:44:48 -0800 (PST) Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200302101726.h1AHOeB2002801@parsec.nyphp.org> Message-ID: <20030210184448.36549.qmail@web14304.mail.yahoo.com> --- Jim Musil wrote: > bug($number_of_rows); > > And I wanted to have my output be > > $number_of_rows: 5 function bug($var_name) { echo '$' . $var_name . ': '; echo '
';
   print_r($$var_name);
   echo '
'; } bug('number_of_rows'); Chris From jim at nettmedia.com Mon Feb 10 13:56:22 2003 From: jim at nettmedia.com (Jim Musil) Date: Mon, 10 Feb 2003 13:56:22 -0500 Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200302101845.h1AIip9M004645@parsec.nyphp.org> Message-ID: First off, this won't work because $number_of_rows is not declared inside the function, but that's easily fixed. Secondly, it seems like a silly way to do it. Why doesn't print_r() just print the name of the variable? If it's sole purpose as a function is to print out information about a variable, why not just print the name, too? Obviously, I can and have worked around it for a long time. It just seems like it should have been added over the years. Jim Musil Nettmedia, Senior Developer 345 Seventh Ave., 24th Floor. New York, NY 10001 Tel. 212.629.0004 x 131 On 2/10/03 1:44 PM, "Chris Shiflett" wrote: > --- Jim Musil wrote: >> bug($number_of_rows); >> >> And I wanted to have my output be >> >> $number_of_rows: 5 > > > function bug($var_name) > { > echo '$' . $var_name . ': '; > echo '
';
>  print_r($$var_name);
>  echo '
'; > } > > bug('number_of_rows'); > > Chris > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From shiflett at php.net Mon Feb 10 14:14:38 2003 From: shiflett at php.net (Chris Shiflett) Date: Mon, 10 Feb 2003 11:14:38 -0800 (PST) Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200302101857.h1AIuPB2005424@parsec.nyphp.org> Message-ID: <20030210191438.63483.qmail@web14307.mail.yahoo.com> --- Jim Musil wrote: > Why doesn't print_r() just print the name of the > variable? For the same reason echo $foo only outputs the value of $foo. It would be a dangerous assumption to make that people only use print_r() for debugging and would not mind the extra output. Plus, as you say, it is trivial to output the name also, so there is no real advantage and only disadvantages to such a change. Chris From southwell at dneba.com Mon Feb 10 14:36:01 2003 From: southwell at dneba.com (Michael Southwell) Date: Mon, 10 Feb 2003 14:36:01 -0500 Subject: need java help; sorry this is ot Message-ID: <5.1.0.14.2.20030210142958.00b21b68@mail.optonline.net> I know this is ot but it must be easy and I am feeling my way in the dark. If this is inappropriate, just let me know, and I apologize. This code opens and resizes a popup image window perfectly in IE; in Mozilla it opens a window but doesn't resize it; in Opera it doesn't even open a window. I expect I have to change a little detail somewhere, or maybe sniff the browser and write different code (aha, there's the php connection): ========================== function bigUrl(fn){ url='images/photos/'+fn+'.jpg'; return url; } function image_open(url){ HTML ="Photo of Laura" HTML+="" HTML+=" [View photo of Laura.] ============================= TIA Michael G. Southwell ================================= DNEBA Enterprises 81 South Road Bloomingdale, NJ 07403-1419 973/492-7873 (voice and fax) southwell at dneba.com http://www.dneba.com ====================================================== From jim at nettmedia.com Mon Feb 10 14:42:13 2003 From: jim at nettmedia.com (Jim Musil) Date: Mon, 10 Feb 2003 14:42:13 -0500 Subject: [nycphp-talk] Output name of Variable In-Reply-To: <200302101915.h1AJEe9M006337@parsec.nyphp.org> Message-ID: Yes, but print_r() already prints out a lot of information. It prints out the object type and whether it's an array and also all the key names and object variable names. What other use for print_r() is there other than to debug? Jim Musil Nettmedia, Senior Developer 345 Seventh Ave., 24th Floor. New York, NY 10001 Tel. 212.629.0004 x 131 On 2/10/03 2:14 PM, "Chris Shiflett" wrote: > --- Jim Musil wrote: >> Why doesn't print_r() just print the name of the >> variable? > > For the same reason echo $foo only outputs the value of > $foo. It would be a dangerous assumption to make that > people only use print_r() for debugging and would not mind > the extra output. Plus, as you say, it is trivial to output > the name also, so there is no real advantage and only > disadvantages to such a change. > > Chris > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From dkrook at hotmail.com Mon Feb 10 15:30:56 2003 From: dkrook at hotmail.com (D C Krook) Date: Mon, 10 Feb 2003 15:30:56 -0500 Subject: [nycphp-talk] need java help; sorry this is ot Message-ID: Michael, I ran into a similar problem about a year ago involving a popup window and resizeTo(). It seems to still be up and functioning cross browser (including Opera 7) if you want to try some new code: http://rd.com/common/nav/index.jhtml?articleId=9525144&channelId=1&subChannelId=9 [click the goofy little "Memory Master" icon to the right of the content] Good luck, -Dan > >I know this is ot but it must be easy and I am feeling my way in the >dark. If this is inappropriate, just let me know, and I apologize. > >This code opens and resizes a popup image window perfectly in IE; in >Mozilla it opens a window but doesn't resize it; in Opera it doesn't even >open a window. I expect I have to change a little detail somewhere, or >maybe sniff the browser and write different code (aha, there's the php >connection): >========================== >function bigUrl(fn){ > url='images/photos/'+fn+'.jpg'; > return url; > } > >function image_open(url){ > HTML ="Photo of >Laura" > HTML+="" > HTML+=" >HTML+="onLoad='window.resizeTo(document.load_image.width+10,document.load_image.height+20)'>"; > popupImage = window.open('','_blank','toolbar=no,scrollbars=no'); > popupImage.document.open(); > popupImage.document.write(HTML); > popupImage.document.close(); > } > >...... > > onMouseOver="onit('i7947t')" onMouseOut="offit('i7947t')"> > src="images/photos/7947toff.jpg" > alt="[View photo of Laura.]" title="View photo of Laura." /> >============================= >TIA > >Michael G. Southwell ================================= >DNEBA Enterprises >81 South Road >Bloomingdale, NJ 07403-1419 >973/492-7873 (voice and fax) >southwell at dneba.com >http://www.dneba.com >====================================================== > > _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From dorgan at optonline.net Mon Feb 10 16:43:14 2003 From: dorgan at optonline.net (Donald J. Organ IV) Date: Mon, 10 Feb 2003 16:43:14 -0500 Subject: Dynamic Flash Calendar Message-ID: <001a01c2d14d$6a7e1510$0600020a@111weeks> Does anyone know of any good free flash calendar systems that have support for mySQL & php as well?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From welsh_michael at hotmail.com Mon Feb 10 18:57:34 2003 From: welsh_michael at hotmail.com (Michael Welsh) Date: Mon, 10 Feb 2003 23:57:34 +0000 Subject: nested objects Message-ID: Can I create an object that, in turn, creates another object within one of its functions? I have a db_class that accepts an SQL statement. It creates a connection thru ODBC and returns a recordset. I have a foo_class that (tries to) call the db_class to fill itself up. The main PHP page creates a new foo then does something like new_foo->get_data. Procedurally, it works. I did that to test the syntax and the ODBC call. But, when I nest the objects the db_class fails saying Unknown fucntion: odbc_exec. It *appears* that it does not have a valid conn_id. I probably didn't explain this well, but, I wanted to make sure I wasn't breaking any obvious rules before I posted examples. Am I on the right track? Thanks for any help. Michael _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From jkonikowski at nyc.rr.com Tue Feb 11 08:15:56 2003 From: jkonikowski at nyc.rr.com (Jeffrey Konikowski) Date: Tue, 11 Feb 2003 05:15:56 -0800 (PST) Subject: [nycphp-talk] nested objects Message-ID: <7016071.1044969356084.JavaMail.www-data@four.oddpost.com> In general, you can use classes within classes. Can you give some more details how and where you instantiate the class? Something like: function get_data() { $db = new db_class(); ... } Or: $db = new db_class(); new_foo->get_data($db); -----Original Message----- Can I create an object that, in turn, creates another object within one of its functions? I have a db_class that accepts an SQL statement. It creates a connection thru ODBC and returns a recordset. I have a foo_class that (tries to) call the db_class to fill itself up. The main PHP page creates a new foo then does something like new_foo->get_data. Procedurally, it works. I did that to test the syntax and the ODBC call. But, when I nest the objects the db_class fails saying Unknown fucntion: odbc_exec. It *appears* that it does not have a valid conn_id. I probably didn't explain this well, but, I wanted to make sure I wasn't breaking any obvious rules before I posted examples. Am I on the right track? Thanks for any help. Michael _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail --- Unsubscribe at http://nyphp.org/list/ --- From hans at nyphp.org Tue Feb 11 09:23:16 2003 From: hans at nyphp.org (Hans Zaunere) Date: Tue, 11 Feb 2003 06:23:16 -0800 (PST) Subject: [nycphp-talk] nested objects In-Reply-To: <200302102358.h1ANvbDa012829@parsec.nyphp.org> Message-ID: <20030211142316.2235.qmail@web12807.mail.yahoo.com> Hey Michael, --- Michael Welsh wrote: > Can I create an object that, in turn, creates another object within one of > its functions? Yes, although technically these are nested objects. Nested classes (if I understand correctly) will only be available starting in PHP 5 (http://www.php.net/ZEND_CHANGES.txt). > I have a db_class that accepts an SQL statement. It creates a connection > thru ODBC and returns a recordset. I have a foo_class that (tries to) call > the db_class to fill itself up. The main PHP page creates a new foo then > does something like new_foo->get_data. A trivial example perhaps: class db_class { var $SQLStmt = NULL; function setSQL( $stmt ) { if( is_string($sql) ) $this->SQLStmt= do_escaping($stmt); } function runData() { if( !$this->SQLStmt) return NULL; $recordset = do_odbc($this->SQLStmt); if( is_array($recordset) ) return $recordset; return NULL; } } class foo_class { var $DB = NULL; var $Name = NULL; var $PhoneNumber = NULL; var $Email = NULL; function getData( $id ) { if( !is_numeric($id) ) return FALSE; $this->DB = &new db_class; $this->DB->setSQL("SELECT name,phone,email FROM table WHERE id='$id'"); $tmp = $this->DB->runData(); if( !$tmp ) { trigger_error('runData() Failed'); return FALSE; } list($this->Name,$this->PhoneNumber,$this->Email) = $tmp; return TRUE; } } $afoo = &new foo_class; if( $afoo->getData(1234) ) echo 'Looks Good'; else echo 'Looks Bad'; Hopefully that doesn't confuse things, is along the lines of what you're doing, and would actually work in a real implementation. > Procedurally, it works. I did that to test the syntax and the ODBC call. > But, when I nest the objects the db_class fails saying Unknown fucntion: > odbc_exec. It *appears* that it does not have a valid conn_id. Although there's no reason I can think that a PHP-space function would work procedurally and not within objects, be careful about using constructors. Because of the way references work, you can end up with some funny objects. Hans From zaunere at yahoo.com Tue Feb 11 09:29:29 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 11 Feb 2003 06:29:29 -0800 (PST) Subject: [nycphp-talk] nested objects In-Reply-To: <200302111424.h1BENIDa022323@parsec.nyphp.org> Message-ID: <20030211142929.3565.qmail@web12807.mail.yahoo.com> --- Hans Zaunere wrote: > Hey Michael, > > --- Michael Welsh wrote: > > Can I create an object that, in turn, creates another object within one > of > > its functions? > > Yes, although technically these are nested objects. Nested classes (if I > understand correctly) will only be available starting in PHP 5 > (http://www.php.net/ZEND_CHANGES.txt). Although you only mentioned nested objects, so I should learn not to read other articles while reading mail. H From palexanderbalogh at yahoo.com Tue Feb 11 10:51:26 2003 From: palexanderbalogh at yahoo.com (Peter Balogh) Date: Tue, 11 Feb 2003 07:51:26 -0800 (PST) Subject: [nycphp-talk] Dynamic Flash Calendar In-Reply-To: <200302102144.h1ALhKE6010438@parsec.nyphp.org> Message-ID: <20030211155126.52432.qmail@web40304.mail.yahoo.com> Don't know how helpful this is, but Flash MX has extensions called UI Components available on its website (under Support -> Developer & Designer, I believe). In UI Component set #2 there's a calendar widget. With minimal PHP scripting, you can pass date information into the Flash movie--but you shouldn't even have to, since the Flash plugin can determine the time on the local user's machine and display it in the calendar. Flash movies can easily talk to PHP scripts via "LoadVariables" commands or the new MX-only "LoadVars" object. (Your PHP script will have to do the MySQL work, alas.) There are many books that can point you to the write code, including "Advanced PHP for Flash" by Friends of ed. HTH, ------------------ Peter Balogh http://www.drunkencop.com --- "Donald J. Organ IV" wrote: > Does anyone know of any good free flash calendar systems that have > support for mySQL & php as well?? > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com From kuku_johnson1 at phantomemail.com Tue Feb 11 20:48:19 2003 From: kuku_johnson1 at phantomemail.com (Col Kuku Johnson) Date: Tue, 11 Feb 2003 17:48:19 -0800 Subject: HELLO!!! Message-ID: <200302111646.h1BGjw3Y026559@parsec.nyphp.org> FROM: COL KUKU JOHNSON DEMOCRATIC REPUBLIC OF CONGO. EMAIL:jkuku at caramail.com Dear Friend, SEEKING YOUR IMMEDIATE ASSISTANCE. Please Permit me to make your acquaintance in so informal a manner. This is necessitated by my urgent need to reach a dependable and trust wordy foreign partner. This request may seem strange and unsolicited but I will crave your indulgence and pray that you view it seriously. My name is COL KUKU JOHNSON of the Democratic Republic of Congo and One of the close aides to the former President of the Democratic Republic of Congo LAURENT KABILA of blessed memory, may his soul rest in peace. Due to the military campaign of LAURENT KABILA to force out the rebels in my country, I and some of my colleagues were instructed by Late President Kabila to go abroad to purchase arms and ammunition worth of Twenty Million, Five Hundred Thousand United States Dollars only (US$20,500,000.00) to fight the rebel group. But when President Kabila was killed in a bloody shoot-out by one of his aide a day before we were schedule to travel out of Congo, We immediately decided to divert the fund into a private security company here in Congo for safe keeping. The security of the said amount is presently being threatened here following the arrest and seizure of properties of Col.Rasheidi Karesava (One of the aides to Laurent Kabila) a tribesman, and some other Military Personnel from our same tribe, by the new President of the Democratic Republic of Congo, the son of late President Laurent Kabila, Joseph Kabila. In view of this, we need a reliable and trustworthy foreign partner who can assist us to move this money out of my country as the beneficiary. WE have sufficient ''CONTACTS'' to move the fund under Diplomatic Cover to a security company in the europe in your name. This is to ensure that the Diplomatic Baggage is marked ''CONFIDENTIAL'' and it will not pass through normal custom/airport screening and clearance. Our inability to move this money out of Congo all This while lies on our lack of trust on our supposed good friends (western countries) who suddenly became hostile to those of us who worked with the late President Kabila, immediately after his son took office. Though we have neither seen nor met each other, the information We gathered from an associate who has worked in your country has encouraged and convinced us that with your sincere assistance, this transaction will be properly handled with modesty and honesty to a huge success within two weeks. The said money is a state fund and therefore requires a total confidentiality. Thus, if you are willing to assist us move this fund out of Congo, you can contact me through my email address above with your telephone, fax number and personal information to enable us discuss the modalities and what will be your share (percentage) for assisting us. I must use this opportunity and medium to implore You to exercise the utmost indulgence to keep this Matter extraordinarily confidential, Whatever your Decision, while I await your prompt response. Thank you and GodBless. Best Regards COL KUKU JOHNSON. From welsh_michael at hotmail.com Tue Feb 11 15:50:44 2003 From: welsh_michael at hotmail.com (Michael Welsh) Date: Tue, 11 Feb 2003 20:50:44 +0000 Subject: [nycphp-talk] nested objects Message-ID: Thanks for your replies on nested objects. I was hoping to find out if what I was doing was, well, do-able. I hammered away at it last night until I got it to work. I am still not completely convinced that objects in PHP are the way to go. It takes A LOT of code and adds layers of complexity. I'll give it more time to grow on me. Besides, I've heard knowing when to choose procedures or objects is half the battle. I know php-talk is everything 'AMP' and I have had great fun and success with that combination. But, many of my applications hit a MSSQL datamart. I'd like to dump that mart and use MySQL but I'm really hooked on stored procedures and DTS for aggregation of disparate data sources and preparation of data. I know I could use Perl or Python to do that. The tricky part is when a user of my PHP app makes a call to a stored proc with parameter. So... I've been consumed lately with getting SAPDB http://www.sapdb.org/ working on a sample application. I was thinking of moving some production PHP apps to that database. I have found SAPDB to be a powerful database. I see it as a cross between MySQL and MSSQL/Oracle. The setup was a little difficult for me (the windows version was much easier than the Linux) and the tuning is fine grained like Oracle, but it is free and cross platform like MySQL. The feature set more closely resembles MSSQL/Oracle with triggers, stored proc, and other gaps in MySQL. The tools available are pretty good too. Once I got it up and running everything goes smoothly. Oh, and subjectively, I have found it to be quick. I am calling the SAPDB ODBC driver and not 'Unified' ODBC. Has anyone else checked out SAPDB? The development box running SAPDB is: NT 4.0 sp6a Apache 1.3.26 PHP 4.2.3 SAP DB 7.4 _________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From zaunere at yahoo.com Tue Feb 11 16:47:05 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Tue, 11 Feb 2003 13:47:05 -0800 (PST) Subject: [nycphp-talk] nested objects In-Reply-To: <200302112053.h1BKomDa029663@parsec.nyphp.org> Message-ID: <20030211214705.57737.qmail@web12805.mail.yahoo.com> --- Michael Welsh wrote: > Thanks for your replies on nested objects. I was hoping to find out if > what I was doing was, well, do-able. I hammered away at it last night > until I got it to work. I am still not completely convinced that objects > in PHP are the way to go. It takes A LOT of code and adds layers of > complexity. I'll give it more time to grow on me. Besides, I've heard > knowing when to choose procedures or objects is half the battle. That certainly is half the battle; probably more IMO. From initially doing 95% of my code OO, I've leveled off at about 20%, if even that, and have discovered better mantainability, performance and overall design. > I know php-talk is everything 'AMP' and I have had great fun and success > with that combination. But, many of my applications hit a MSSQL datamart. > I'd like to dump that mart and use MySQL but I'm really hooked on stored > procedures and DTS for aggregation of disparate data sources and > preparation of data. I know I could use Perl or Python to do that. The > tricky part is when a user of my PHP app makes a call to a stored proc with > parameter. With some work, there are ways to emulate stored procedures as far as middle and front-end work is concerned. But you're right, stored procs can be hard to beat. > So... I've been consumed lately with getting SAPDB http://www.sapdb.org/ > working on a sample application. I was thinking of moving some production > PHP apps to that database. I have found SAPDB to be a powerful database. > I see it as a cross between MySQL and MSSQL/Oracle. The setup was a little > difficult for me (the windows version was much easier than the Linux) and > the tuning is fine grained like Oracle, but it is free and cross platform > like MySQL. The feature set more closely resembles MSSQL/Oracle with > triggers, stored proc, and other gaps in MySQL. The tools available are > pretty good too. Once I got it up and running everything goes smoothly. There's quite a buzz about SAPDB. I'm anxious to get some time and play with it, and I've heard many good things so far. SAP themselves are renowed business DB designers and it's good to see this kind of activity from them. > Oh, and subjectively, I have found it to be quick. I am calling the SAPDB > ODBC driver and not 'Unified' ODBC. This has been my only hesitation to aggressively pursue SAPDB. ODBC has scared me in the past and I alway prefer to use native APIs where possible. I'll be curious to hear if you run into any issues with ODBC->SAPDB. And oh, there's always PostgreSQL... pooooor ol' PostgreSQL :) H From emm at scriptdigital.com Tue Feb 11 16:57:29 2003 From: emm at scriptdigital.com (Emmanuel. M. Decarie) Date: Tue, 11 Feb 2003 16:57:29 -0500 Subject: PHP class or PHP application for threading messages Message-ID: Hello, I'm looking either for a class or a PHP application for threading message like what you see on a bulletin board. What I'm looking for is something basic and lightweight and portable (Unix, Windows) and run on MySQL. I don't need an interface for access control or a lot of bells and whistles. But if it come with access control, that's ok too if it still lightweight. Ideally, it should autogenerate an RSS for new messages posted. When I say something basic, I'm thinking of a really bare interface, like the one you see on the site generated by Manila from UserLand. Here's a good example: TIA Cheers -Emmanuel -- ______________________________________________________________________ Emmanuel D?carie / Programmation pour le Web - Programming for the Web Radio UserLand/Frontier - Perl - PHP - Javascript Blog: From ophir at prusak.com Tue Feb 11 17:36:56 2003 From: ophir at prusak.com (Ophir Prusak) Date: Tue, 11 Feb 2003 17:36:56 -0500 Subject: [nycphp-talk] nested objects References: <200302112147.h1BLlAAa030881@parsec.nyphp.org> Message-ID: <01ca01c2d21e$1555c6b0$bf65a8c0@tag1002> Until now I have used very little OO PHP. I'm about to start a new project and was thinking of heavy usage of objects, but your quote now makes me think twice. I'd very much like to know why you've dropped from 95% to about 20%. When is OO the best solution and when not. thanx ophir > > That certainly is half the battle; probably more IMO. From initially doing > 95% of my code OO, I've leveled off at about 20%, if even that, and have > discovered better mantainability, performance and overall design. > From patterson at computer.org Wed Feb 12 09:57:41 2003 From: patterson at computer.org (Bill Patterson) Date: Wed, 12 Feb 2003 09:57:41 -0500 Subject: [nycphp-talk] PHP class or PHP application for threading messages References: <200302112158.h1BLw554031644@parsec.nyphp.org> Message-ID: <3E4A60E5.9B87109F@computer.org> Try http://phorum.org/ . This package uses PHP and MySQL and seems relatively lightweight. Bill "Emmanuel. M. Decarie" wrote: > > Hello, > > I'm looking either for a class or a PHP application for threading > message like what you see on a bulletin board. > From kirill at kptek.com Wed Feb 12 12:02:20 2003 From: kirill at kptek.com (kirill at kptek.com) Date: Wed, 12 Feb 2003 12:02:20 -0500 Subject: Kirill Poliakov is out of the office. Message-ID: I will be out of the office starting 02/12/2003 and will not return until 02/17/2003. I will respond to your message when I return. From kenneth at ylayali.net Wed Feb 12 12:47:19 2003 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Wed, 12 Feb 2003 12:47:19 -0500 Subject: [nycphp-talk] nested objects In-Reply-To: <200302112237.h1BMauEO032768@parsec.nyphp.org> References: <200302112237.h1BMauEO032768@parsec.nyphp.org> Message-ID: <3E4A88A7.3060403@ylayali.net> I'm curious about that statement too. I'm using objects very heavily, I guess about 95%, with good results on small sites with low traffic. Already maintenance seems to have improved over my old VBScript/ASP code, which I had honed down to a pretty efficient set of subroutines in #include files over the years, because of my personal preference for the object design probably But I have been wondering how it's going to scale performance-wise Ophir Prusak wrote: > Until now I have used very little OO PHP. > I'm about to start a new project and was thinking of heavy usage of objects, > but your quote > now makes me think twice. > > I'd very much like to know why you've dropped from 95% to about 20%. > When is OO the best solution and when not. > > thanx > ophir > > >>That certainly is half the battle; probably more IMO. From initially > > doing > >>95% of my code OO, I've leveled off at about 20%, if even that, and have >>discovered better mantainability, performance and overall design. >> > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From jhise at nextsource.com Wed Feb 12 13:00:33 2003 From: jhise at nextsource.com (Jeremy Hise) Date: Wed, 12 Feb 2003 13:00:33 -0500 Subject: Disappearing data or I've gone mad Message-ID: <20030212130033.0b372678.jhise@nextsource.com> Hi: I have a very strange situation that may be difficult for me to convey...but either PHP is having problems, or I'm just a jackass. Here is the weirdo code with some of my attempt to debug. $this->data contains an array of "keys" that need to be replaced with values. This is kind of a ghetto template parser. Everything is fine until I get inside the for loop (which used to be a foreach...but I'm trying everything. Inside that loop, I cannot get $this->data[$key] to print out anything! I'm just basically looking for someone to see if I'm overlooking something. Thanks a billion! hise function parse() { // Get an array of items such as 'first_name', 'last_name', etc $kws = $this->get_tags(); // If we do have an array of keywords if(is_array($kws)) { // For each keyword foreach($kws as $kw) { // Get the value from this object's data hasa $value = $this->data["$kw"]; // <-- this has no data in it inside this loop // Replace the smac tagged keyword with the value $this->body = ereg_replace("".$kw."", $value, $this->body); } } return($this->body); } -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ From brian at preston-campbell.com Wed Feb 12 13:24:04 2003 From: brian at preston-campbell.com (Brian) Date: Wed, 12 Feb 2003 13:24:04 -0500 Subject: [nycphp-talk] Disappearing data or I've gone mad In-Reply-To: <200302121758.h1CHw2Aa054007@parsec.nyphp.org> References: <200302121758.h1CHw2Aa054007@parsec.nyphp.org> Message-ID: <200302121324.04449.brian@preston-campbell.com> OT -- dude, Mozilla 1.2 == Netscape 6 or higher. http://www.nextsource.com/BrowserNotSupported.htm Not sure if you have any influence over the company's site, but I hope it is worth looking into. Brian On Wednesday 12 February 2003 12:58 pm, Jeremy Hise wrote: > Hi: > > I have a very strange situation that may be difficult for me to > convey...but either PHP is having problems, or I'm just a jackass. > > Here is the weirdo code with some of my attempt to debug. $this->data > contains an array of "keys" that need to be replaced with values. This is > kind of a ghetto template parser. Everything is fine until I get inside the > for loop (which used to be a foreach...but I'm trying everything. Inside > that loop, I cannot get $this->data[$key] to print out anything! > > I'm just basically looking for someone to see if I'm overlooking something. > > Thanks a billion! > > hise > > function parse() { > // Get an array of items such as 'first_name', 'last_name', etc > $kws = $this->get_tags(); > > // If we do have an array of keywords > if(is_array($kws)) { > // For each keyword > foreach($kws as $kw) { > // Get the value from this object's data hasa > $value = $this->data["$kw"]; // <-- this has no data in it > inside this loop // Replace the smac tagged keyword with the value > $this->body = ereg_replace("".$kw."", $value, > $this->body); } > } > return($this->body); > } From jonbaer at jonbaer.net Wed Feb 12 11:36:15 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 12 Feb 2003 11:36:15 -0500 Subject: [nycphp-talk] Disappearing data or I've gone mad References: <200302121758.h1CHw28K054007@parsec.nyphp.org> Message-ID: <001b01c2d2b4$dcd22120$0200a8c0@laptop> I don't get where you declare data[] array to begin with. Can you post more code? Id try it without the "quotes" since you don't need to interpret any string w/ it. - Jon ----- Original Message ----- From: "Jeremy Hise" To: "NYPHP Talk" Sent: Wednesday, February 12, 2003 12:58 PM Subject: [nycphp-talk] Disappearing data or I've gone mad > Hi: > > I have a very strange situation that may be difficult for me to convey...but either PHP is having problems, or I'm just a jackass. > > Here is the weirdo code with some of my attempt to debug. $this->data contains an array of "keys" that need to be replaced with values. This is kind of a ghetto template parser. Everything is fine until I get inside the for loop (which used to be a foreach...but I'm trying everything. Inside that loop, I cannot get $this->data[$key] to print out anything! > > I'm just basically looking for someone to see if I'm overlooking something. > > Thanks a billion! > > hise > > function parse() { > // Get an array of items such as 'first_name', 'last_name', etc > $kws = $this->get_tags(); > > // If we do have an array of keywords > if(is_array($kws)) { > // For each keyword > foreach($kws as $kw) { > // Get the value from this object's data hasa > $value = $this->data["$kw"]; // <-- this has no data in it inside this loop > // Replace the smac tagged keyword with the value > $this->body = ereg_replace("".$kw."", $value, $this->body); > } > } > return($this->body); > } > > > > -- > > -+----------------------+ > | jhise at nextsource.com | > | developer | > | nextSource, Inc. | > | x334 | > +----------------------+ > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From jhise at nextsource.com Wed Feb 12 13:57:06 2003 From: jhise at nextsource.com (Jeremy Hise) Date: Wed, 12 Feb 2003 13:57:06 -0500 Subject: [nycphp-talk] Disappearing data or I've gone mad In-Reply-To: <200302121825.h1CIOx9S054983@parsec.nyphp.org> References: <200302121825.h1CIOx9S054983@parsec.nyphp.org> Message-ID: <20030212135706.5b8db09d.jhise@nextsource.com> *hangs head in shame* I know....I know...can say it was a seperate group of developers... On Wed, 12 Feb 2003 13:24:59 -0500 Brian wrote: > OT -- dude, Mozilla 1.2 == Netscape 6 or higher. > > http://www.nextsource.com/BrowserNotSupported.htm > > Not sure if you have any influence over the company's site, but I hope it is > worth looking into. > > Brian > > > On Wednesday 12 February 2003 12:58 pm, Jeremy Hise wrote: > > Hi: > > > > I have a very strange situation that may be difficult for me to > > convey...but either PHP is having problems, or I'm just a jackass. > > > > Here is the weirdo code with some of my attempt to debug. $this->data > > contains an array of "keys" that need to be replaced with values. This is > > kind of a ghetto template parser. Everything is fine until I get inside the > > for loop (which used to be a foreach...but I'm trying everything. Inside > > that loop, I cannot get $this->data[$key] to print out anything! > > > > I'm just basically looking for someone to see if I'm overlooking something. > > > > Thanks a billion! > > > > hise > > > > function parse() { > > // Get an array of items such as 'first_name', 'last_name', etc > > $kws = $this->get_tags(); > > > > // If we do have an array of keywords > > if(is_array($kws)) { > > // For each keyword > > foreach($kws as $kw) { > > // Get the value from this object's data hasa > > $value = $this->data["$kw"]; // <-- this has no data in it > > inside this loop // Replace the smac tagged keyword with the value > > $this->body = ereg_replace("".$kw."", $value, > > $this->body); } > > } > > return($this->body); > > } > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ From jhise at nextsource.com Wed Feb 12 14:11:42 2003 From: jhise at nextsource.com (Jeremy Hise) Date: Wed, 12 Feb 2003 14:11:42 -0500 Subject: [nycphp-talk] Disappearing data or I've gone mad In-Reply-To: <200302121847.h1CIl09S055834@parsec.nyphp.org> References: <200302121847.h1CIl09S055834@parsec.nyphp.org> Message-ID: <20030212141142.3d75927a.jhise@nextsource.com> I know it's not the this->data.... But, data is being passed to the object and created as: [calling page] $data[first_name] = "Jeremy"; $data[last_name] = "Hise"; ... $tmpl = new template("user_profile", $data); ... [in constructor] $this->data = $data; ... function parse() { ... get_tags() basically opens the template file, and, using a regex, compiles an array of keywords found between and . That array is then returned to parse(). In that function I had: while(list($key,$value) = each($this->data)) { print($key . " = " . $value . "
"); } Above the is_array() check And I got what I expected: first_name = Jeremy last_name = Hise email = jhise at nextsource.com etc... I've tried with quotes, without quotes, if tried a for($i = 0; $i < sizeof($kws); $i++), I've tried every single possible thing that I can think of... In the meanwhile I've reversed the method and the loop is based on the this->data...but my templates will eventually need to have value-less keys (like "CURRENT_DATE" which will evaluate to the current time). It's driv'n me nuts The regex, btw, is "/([^<>]*)<\\/smac>/i" used with preg_match_all(). Thanks for everyone's input. On Wed, 12 Feb 2003 13:47:00 -0500 "Jon Baer" wrote: > I don't get where you declare data[] array to begin with. Can you post more > code? Id try it without the "quotes" since you don't need to interpret any > string w/ it. > > - Jon > > ----- Original Message ----- > From: "Jeremy Hise" > To: "NYPHP Talk" > Sent: Wednesday, February 12, 2003 12:58 PM > Subject: [nycphp-talk] Disappearing data or I've gone mad > > > > Hi: > > > > I have a very strange situation that may be difficult for me to > convey...but either PHP is having problems, or I'm just a jackass. > > > > Here is the weirdo code with some of my attempt to debug. $this->data > contains an array of "keys" that need to be replaced with values. This is > kind of a ghetto template parser. Everything is fine until I get inside the > for loop (which used to be a foreach...but I'm trying everything. Inside > that loop, I cannot get $this->data[$key] to print out anything! > > > > I'm just basically looking for someone to see if I'm overlooking > something. > > > > Thanks a billion! > > > > hise > > > > function parse() { > > // Get an array of items such as 'first_name', 'last_name', etc > > $kws = $this->get_tags(); > > > > // If we do have an array of keywords > > if(is_array($kws)) { > > // For each keyword > > foreach($kws as $kw) { > > // Get the value from this object's data hasa > > $value = $this->data["$kw"]; // <-- this has no data in > it inside this loop > > // Replace the smac tagged keyword with the value > > $this->body = ereg_replace("".$kw."", $value, > $this->body); > > } > > } > > return($this->body); > > } > > > > > > > > -- > > > > -+----------------------+ > > | jhise at nextsource.com | > > | developer | > > | nextSource, Inc. | > > | x334 | > > +----------------------+ > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ From lists at redibishosting.com Wed Feb 12 14:35:42 2003 From: lists at redibishosting.com (Deidra McIntyre) Date: Wed, 12 Feb 2003 14:35:42 -0500 (EST) Subject: [nycphp-talk] PHP class or PHP application for threading messages In-Reply-To: <200302121420.h1CEJBAq049100@parsec.nyphp.org> References: <200302121420.h1CEJBAq049100@parsec.nyphp.org> Message-ID: <1730.172.167.246.250.1045078542.squirrel@www.myhostingadmin.com> There's also: Vbulletin (there is a license fee with this one) http://www.vbulletin.com PHP BB http://www.phpbb.com --> Deidra > Try http://phorum.org/ . This package uses PHP and MySQL and seems > relatively lightweight. > > Bill > > "Emmanuel. M. Decarie" wrote: >> >> Hello, >> >> I'm looking either for a class or a PHP application for threading >> message like what you see on a bulletin board. >> > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From chris at psydeshow.org Wed Feb 12 17:13:03 2003 From: chris at psydeshow.org (Chris Snyder) Date: Wed, 12 Feb 2003 17:13:03 -0500 Subject: [nycphp-talk] Disappearing data or I've gone mad In-Reply-To: <200302121758.h1CHw2Ae054007@parsec.nyphp.org> References: <200302121758.h1CHw2Ae054007@parsec.nyphp.org> Message-ID: <3E4AC6EF.6090601@psydeshow.org> Jeremy Hise wrote: > function parse() { > // Get an array of items such as 'first_name', 'last_name', etc > $kws = $this->get_tags(); > > // If we do have an array of keywords > if(is_array($kws)) { > // For each keyword > foreach($kws as $kw) { > // Get the value from this object's data hasa > $value = $this->data["$kw"]; // <-- this has no data in it inside this loop > // Replace the smac tagged keyword with the value > $this->body = ereg_replace("".$kw."", $value, $this->body); > } > } > return($this->body); > } > > > I'd focus on the array ($kws) actually returned by $this->get_tags(). It seems like your code would only work if the $kws array had keys named after your keywords, and not values named after them. In other words, make sure foreach( $kws as $key=>$value ) { print "$key=>$value"; } isn't saying something like: 0=>first_name 1=>email etc. chris. -- HIP HOP CLOWN MONTH booth of the day: all day, every day http://hiphopclown.org/berylium/showcase/ From jhise at nextsource.com Wed Feb 12 18:04:53 2003 From: jhise at nextsource.com (Jeremy Hise) Date: Wed, 12 Feb 2003 18:04:53 -0500 Subject: [nycphp-talk] Disappearing data or I've gone mad In-Reply-To: <200302122213.h1CMCu9Q062347@parsec.nyphp.org> References: <200302122213.h1CMCu9Q062347@parsec.nyphp.org> Message-ID: <20030212180453.0263d34f.jhise@nextsource.com> Hmmmm..ok cool. I'll try it from that angle. Thanks Chris. On Wed, 12 Feb 2003 17:12:56 -0500 Chris Snyder wrote: > Jeremy Hise wrote: > > > function parse() { > > // Get an array of items such as 'first_name', 'last_name', etc > > $kws = $this->get_tags(); > > > > // If we do have an array of keywords > > if(is_array($kws)) { > > // For each keyword > > foreach($kws as $kw) { > > // Get the value from this object's data hasa > > $value = $this->data["$kw"]; // <-- this has no data in it inside this loop > > // Replace the smac tagged keyword with the value > > $this->body = ereg_replace("".$kw."", $value, $this->body); > > } > > } > > return($this->body); > > } > > > > > > > I'd focus on the array ($kws) actually returned by $this->get_tags(). > It seems like your code would only work if the $kws array had keys named > after your keywords, and not values named after them. In other words, > make sure > > foreach( $kws as $key=>$value ) { > print "$key=>$value"; > } > > isn't saying something like: > > 0=>first_name > 1=>email > > etc. > > chris. > > -- > HIP HOP CLOWN MONTH > booth of the day: all day, every day > http://hiphopclown.org/berylium/showcase/ > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ From james.byrne2 at ntlworld.com Wed Feb 12 18:44:46 2003 From: james.byrne2 at ntlworld.com (James Byrne) Date: Wed, 12 Feb 2003 23:44:46 +0000 Subject: Newbie question: extract categories and display once Message-ID: Hi, I am creating a MSQL database of articles, all labelled by categories - i.e. marketing, copywriting, ecommerce and so on. I want to display the links to these articles on a web page, sorted by category. I only want to display the category name on the web page once - and underneath that, all the articles that fall into that category, then the next category name and all the articles under that that fall into that category, and so on. I can extract and display the links to the articles easy enough, but can't think how to make sure that the category name prints only once - at the top of category list. Any ideas would be appreciated. Thanks, Jim From cahoyos at us.ibm.com Wed Feb 12 20:13:10 2003 From: cahoyos at us.ibm.com (Carlos Hoyos) Date: Wed, 12 Feb 2003 20:13:10 -0500 Subject: [nycphp-talk] nested objects Message-ID: I'm in charge of a fairly large intranet web-tool, and I must say it was a blessing to have done a 95% "very relaxed" OO. Again, it's just IMHO and probably biased coming from a heavy OO C++ / Java school, but now that the team is growing, maintenance and scalability have been very manageable. Anyway, traffic on my tool is not the main concern --scalability and robustness are-- so I'm not really that worried about the overhead that objects add to execution time. I guess you could try to write your code to avoid some of this overhead, but you also achieve good results through an optimizer, profiling, etc... and still don't sacrifice your code. I can't really say how folks who handle massive traffic (e.g. Community Connect) work, but for application development, I'd recommend an OO approach and including the objects you need on your pages. Carlos Kenneth Dombrowski To: NYPHP Talk Subject: Re: [nycphp-talk] nested objects 02/12/2003 12:47 PM Please respond to talk I'm curious about that statement too. I'm using objects very heavily, I guess about 95%, with good results on small sites with low traffic. Already maintenance seems to have improved over my old VBScript/ASP code, which I had honed down to a pretty efficient set of subroutines in #include files over the years, because of my personal preference for the object design probably But I have been wondering how it's going to scale performance-wise Ophir Prusak wrote: > Until now I have used very little OO PHP. > I'm about to start a new project and was thinking of heavy usage of objects, > but your quote > now makes me think twice. > > I'd very much like to know why you've dropped from 95% to about 20%. > When is OO the best solution and when not. > > thanx > ophir > > >>That certainly is half the battle; probably more IMO. From initially > > doing > >>95% of my code OO, I've leveled off at about 20%, if even that, and have >>discovered better mantainability, performance and overall design. >> > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From nyphp at enobrev.com Wed Feb 12 20:47:39 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Wed, 12 Feb 2003 20:47:39 -0500 Subject: Experience in templating... Message-ID: <007701c2d301$e45048d0$96721d18@enobrev> I'm working on a php class that communicates with an external api. Basically it takes form data (my forms), posts it to the api, and shows the data returned, be it within another form or a plain display page. I want to distribute my set of files (mostly html forms with php generated values) which uses this class. I use my dropdown class as well for creating dropdowns in the forms. It's a small set. I've never worked with the larger template systems like Smarty, although I've heard good things. In my opinion, Smarty is probably too big for this little job. What methods have you guys and gals used in order to keep forms easily editable by Joe HTML? Do you build your own template systems? Do you know of smaller ones available? Can you recommend anything? I prefer to write my own stuff when possible, but i'm not entirely opposed to using solid and well formed open source code. It's still too early to supply links, but I hope this may be general enough to get some help. Thanks!! Mark (my apologies for posting to the wrong list earlier) -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at nyphp.org Wed Feb 12 21:07:24 2003 From: hans at nyphp.org (Hans Zaunere) Date: Wed, 12 Feb 2003 18:07:24 -0800 (PST) Subject: [nycphp-talk] nested objects In-Reply-To: <200302121748.h1CHluDc053261@parsec.nyphp.org> Message-ID: <20030213020724.456.qmail@web12807.mail.yahoo.com> > > That certainly is half the battle; probably more IMO. From initially > > doing 95% of my code OO, I've leveled off at about 20%, if even that, and > > have discovered better maintainability, performance and overall design. --- Kenneth Dombrowski wrote: > I'm curious about that statement too. > > I'm using objects very heavily, I guess about 95%, with good results on > small sites with low traffic. > > Already maintenance seems to have improved over my old VBScript/ASP > code, which I had honed down to a pretty efficient set of subroutines in > #include files over the years, because of my personal preference for the > object design probably > > But I have been wondering how it's going to scale performance-wise > --- Ophir Prusak wrote: > Until now I have used very little OO PHP. > I'm about to start a new project and was thinking of heavy usage of > objects, but your quote now makes me think twice. > > I'd very much like to know why you've dropped from 95% to about 20%. > When is OO the best solution and when not. Well as I'm sure many realize, these types of talks can turn religious very quickly. So, I'll try to keep it short and unbiased (ok, maybe not :) IMHO, Object Orientated design is exactly that... orientated towards objects. Some things fit nicely into objects and some things don't; for example I find physical world entities can be represented nicely by objects in the digital realm, as well as certain, well-defined process flows. While there has been a great progression in OOP to accommodate things that, in my opinion, don't fit very well, PHP4 can still be considered limited when it comes to these advanced OO techniques. Overcoming these limitations incur overhead, both computer related and human related.. Add that most environments are very dynamic (especially intranets, where I spend most of my time) and the encapsulation that OOD provides becomes more of a hindrance than an asset. Right now my general technique is to code the project out, procedurally, and get all the requirements met with working and potentially production quality software. Then, as I start to see commonality and the potential for encapsulation, either within the same project or across several, I'll fold things together into classes. Again, this often ends up being physical world entities (i.e. patients, appointments, clinics, medical data, etc) and well-defined processes (i.e. a patient has an appointment at a clinic, appointments are cancelled, a patient is diagnosed, etc). Generally I then operate on the objects with functions and well-placed methods for enduring operations of a particular entity. It's a fine line, certainly. IMHO, OOD, especially that available in PHP4, lends itself best to static situations. Dynamic jobs, such as reporting, data-mining, etc. I find best accomplished with procedural design. With PHP5 I'm expecting to increase OOD in certain regards. Would well-defined processes such as shopping carts, catalogs, etc. deserve larger OOD percentages? Sure. But with the heterogeneous, "here today, gone tomorrow" and "it's never finished" environments I'm mostly involved with, I've found libraries are suited best, with procedural design giving the most flexibility, and often performance. Performance. While I don't believe OOD is inherently slow, there is a penalty... especially when you begin dealing with arrays of objects, nested objects, and complex structures. My primary sites are not high volume, but they do incur fairly "heavy" volume. So a single page hit could easily pull 5000 records from a 10 table Oracle join, pull 10000 from MySQL, mix them, filter them, mash them, and then finally make the presentation. I have done these types of jobs with both OOD and procedurally, and notice that PHP loses the "snappiness" it's renowned for with the former. Lastly, Carlos makes an excellent point. A lot is what you're comfortable with, and what design logic your used too. For me it's primarily procedure, while for someone else it may be OO. Above all, if it works well, it's good. Best, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From nyphp at websapp.com Wed Feb 12 22:10:49 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Wed, 12 Feb 2003 22:10:49 -0500 Subject: Order the #1 PHP Development Platform and help NYPHP earn $30! Message-ID: Zend Studio (http://www.zend.com/store/products/zend-studio.php) is the standard in PHP development tools and offers a complete IDE environment. The just released version 2.6 offers loads of new features, including debugging enhancements and CVS integration. Zend and New York PHP have teamed up to offer you a remarkable opportunity. Order by March 15, 2003 using the special offer code NYPHP26 and get a FREE upgrade to Zend Studio Plus -- a savings of over $50! See pricing (http://www.zend.com/store/products/studio-pricing.php) for details. Plus, thanks to Zend's generosity and commitment to the PHP community, $30 for every copy purchased using our special offer code is donated to NYPHP! Get the best in PHP development software and support your local community at the same time. Order today! http://zend.com/store/products/zend-studio.php Regards, Daniel Kushner Vice President, New York PHP http://nyphp.org daniel at nyphp.org From jonbaer at jonbaer.net Wed Feb 12 19:57:42 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 12 Feb 2003 19:57:42 -0500 Subject: [nycphp-talk] Experience in templating... References: <200302130148.h1D1ll8I069507@parsec.nyphp.org> Message-ID: <000f01c2d2fa$e9a11460$0200a8c0@laptop> > things. In my opinion, Smarty is probably too big for this little job. > I dunno ... I took about an hour the other day to look around @ it and it's not really big @ all ... it's actually pretty nice, if you look @ the two indexes (index.php and index.tpl) its pretty trivial to figure out. Id recommend it, in fact probably going to rewrite a previous project w/ it. - Jon From jonbaer at jonbaer.net Wed Feb 12 20:13:54 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 12 Feb 2003 20:13:54 -0500 Subject: [nycphp-talk] Order the #1 PHP Development Platform and help NYPHP earn $30! References: <200302130307.h1D3768I072106@parsec.nyphp.org> Message-ID: <000b01c2d2fd$2db83140$0200a8c0@laptop> Hey Daniel ... How about making a DVD on using the IDE + ur PHP class :-) - Jon ----- Original Message ----- From: "Daniel Kushner" To: "NYPHP Talk" Sent: Wednesday, February 12, 2003 10:07 PM Subject: [nycphp-talk] Order the #1 PHP Development Platform and help NYPHP earn $30! > Zend Studio (http://www.zend.com/store/products/zend-studio.php) is the > standard in PHP development tools and offers a complete IDE environment. The > just released version 2.6 offers loads of new features, including debugging > enhancements and CVS integration. > > Zend and New York PHP have teamed up to offer you a remarkable opportunity. > > Order by March 15, 2003 using the special offer code NYPHP26 and get a FREE > upgrade to Zend Studio Plus -- a savings of over $50! See pricing > (http://www.zend.com/store/products/studio-pricing.php) for details. > > Plus, thanks to Zend's generosity and commitment to the PHP community, $30 > for every copy purchased using our special offer code is donated to NYPHP! > Get the best in PHP development software and support your local community at > the same time. Order today! > > http://zend.com/store/products/zend-studio.php > > Regards, > Daniel Kushner > Vice President, New York PHP > http://nyphp.org > daniel at nyphp.org > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From chun_lam at hotmail.com Wed Feb 12 23:53:47 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Wed, 12 Feb 2003 23:53:47 -0500 Subject: [nycphp-talk] nested objects Message-ID: If you put everything in oo design. The answer is (not well). ----Original Message Follows---- From: Kenneth Dombrowski Reply-To: talk at nyphp.org To: NYPHP Talk Subject: Re: [nycphp-talk] nested objects Date: Wed, 12 Feb 2003 12:47:56 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc3-f22.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 12 Feb 2003 09:48:20 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h1CHlu7g053261for ; Wed, 12 Feb 2003 12:48:20 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200302121748.h1CHlu7g053261 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 12 Feb 2003 17:48:20.0953 (UTC) FILETIME=[EEA9F490:01C2D2BE] I'm curious about that statement too. I'm using objects very heavily, I guess about 95%, with good results on small sites with low traffic. Already maintenance seems to have improved over my old VBScript/ASP code, which I had honed down to a pretty efficient set of subroutines in #include files over the years, because of my personal preference for the object design probably But I have been wondering how it's going to scale performance-wise Ophir Prusak wrote: > Until now I have used very little OO PHP. > I'm about to start a new project and was thinking of heavy usage of objects, > but your quote > now makes me think twice. > > I'd very much like to know why you've dropped from 95% to about 20%. > When is OO the best solution and when not. > > thanx > ophir > > >>That certainly is half the battle; probably more IMO. From initially > > doing > >>95% of my code OO, I've leveled off at about 20%, if even that, and have >>discovered better mantainability, performance and overall design. >> > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From chun_lam at hotmail.com Wed Feb 12 23:59:00 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Wed, 12 Feb 2003 23:59:00 -0500 Subject: [nycphp-talk] Disappearing data or I've gone mad Message-ID: can you get $kw? because this foreach does not look right... foreach($kws as $kw) Don't know much about this syntax. But I think this is missing the values like this foreach($kws as $kw => $value) ----Original Message Follows---- From: Jeremy Hise Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] Disappearing data or I've gone mad Date: Wed, 12 Feb 2003 12:58:02 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc10-f19.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 12 Feb 2003 09:58:21 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h1CHw27g054007for ; Wed, 12 Feb 2003 12:58:20 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200302121758.h1CHw27g054007 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 12 Feb 2003 17:58:21.0783 (UTC) FILETIME=[54C95670:01C2D2C0] Hi: I have a very strange situation that may be difficult for me to convey...but either PHP is having problems, or I'm just a jackass. Here is the weirdo code with some of my attempt to debug. $this->data contains an array of "keys" that need to be replaced with values. This is kind of a ghetto template parser. Everything is fine until I get inside the for loop (which used to be a foreach...but I'm trying everything. Inside that loop, I cannot get $this->data[$key] to print out anything! I'm just basically looking for someone to see if I'm overlooking something. Thanks a billion! hise function parse() { // Get an array of items such as 'first_name', 'last_name', etc $kws = $this->get_tags(); // If we do have an array of keywords if(is_array($kws)) { // For each keyword foreach($kws as $kw) { // Get the value from this object's data hasa $value = $this->data["$kw"]; // <-- this has no data in it inside this loop // Replace the smac tagged keyword with the value $this->body = ereg_replace("".$kw."", $value, $this->body); } } return($this->body); } -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From jim at quickneasyimage.com Thu Feb 13 03:06:03 2003 From: jim at quickneasyimage.com (QuicknEasyImage) Date: Thu, 13 Feb 2003 08:06:03 +0000 Subject: Newbie question: extract categories and display once Message-ID: Hi, I am creating a MSQL database of articles, all labeled by categories - i.e. marketing, copywriting, ecommerce and so on. I want to display the links to these articles on a web page, sorted by category. I only want to display the category name on the web page once - and underneath that, all the articles that fall into that category, then the next category name and all the articles under that that fall into that category, and so on. I can extract and display the links to the articles easy enough, but can't think how to make sure that the category name prints only once - at the top of category list. Any ideas would be appreciated. Thanks, Jim From jim at bizcomputinginc.com Thu Feb 13 08:12:46 2003 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Thu, 13 Feb 2003 08:12:46 -0500 Subject: [nycphp-talk] Newbie question: extract categories and display once References: <200302130806.h1D8664c078397@parsec.nyphp.org> Message-ID: <00fa01c2d361$9a6a2050$6601a8c0@Notebook> A down and dirty way would be to define a variable which is initially blank or null. At the top of your loop which you use to iterate through the articles check to see if the category associated with the article is the same as that stored in the variable. If it is different, pump out the category info and set the variable to the category you just output. If it is the same, skip outputting the category info. This assumes that your query which obtains the data brings it back in category order. Jim ----- Original Message ----- From: "QuicknEasyImage" To: "NYPHP Talk" Sent: Thursday, February 13, 2003 3:06 AM Subject: [nycphp-talk] Newbie question: extract categories and display once > Hi, > > I am creating a MSQL database of articles, all labeled by categories - i.e. > marketing, copywriting, ecommerce and so on. I want to display the links to > these articles on a web page, sorted by category. I only want to display > the category name on the web page once - and underneath that, all the > articles that fall into that category, then the next category name and all > the articles under that that fall into that category, and so on. > > I can extract and display the links to the articles easy enough, but can't > think how to make sure that the category name prints only once - at the top > of category list. Any ideas would be appreciated. > > Thanks, > Jim > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From welsh_michael at hotmail.com Thu Feb 13 08:42:15 2003 From: welsh_michael at hotmail.com (Michael Welsh) Date: Thu, 13 Feb 2003 13:42:15 +0000 Subject: Zend offer Message-ID: The Zend Studio offer looks inviting. I usually do my work in a simple text editor - metapad (http://www.liquidninja.com/metapad/) in windows or Kate and Quanta (http://quanta.sourceforge.net/) in Linux. Do I really need this IDE? I am comfortable in a text editor, but, I'm not a zealot for *the purity* of it. Obviously it is a matter of personal choice. I'm open to opinion/suggestion and would like to hear from others. Then again, who could resist "support your local community at the same time."? Let me reach for my wallet. Michael _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus From jhise at nextsource.com Thu Feb 13 09:31:51 2003 From: jhise at nextsource.com (Jeremy Hise) Date: Thu, 13 Feb 2003 09:31:51 -0500 Subject: [nycphp-talk] Disappearing data or I've gone mad In-Reply-To: <200302130459.h1D4x39Q075654@parsec.nyphp.org> References: <200302130459.h1D4x39Q075654@parsec.nyphp.org> Message-ID: <20030213093151.72e58282.jhise@nextsource.com> I've never had problems with this syntax. On Wed, 12 Feb 2003 23:59:03 -0500 "CHUN-YIU LAM" wrote: > can you get $kw? because this foreach does not look right... > > foreach($kws as $kw) > > Don't know much about this syntax. But I think this is missing the values > like this > > foreach($kws as $kw => $value) > > > ----Original Message Follows---- > From: Jeremy Hise > Reply-To: talk at nyphp.org > To: NYPHP Talk > Subject: [nycphp-talk] Disappearing data or I've gone mad > Date: Wed, 12 Feb 2003 12:58:02 -0500 > Received: from parsec.nyphp.org ([66.250.131.26]) by > mc10-f19.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 12 Feb > 2003 09:58:21 -0800 > Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by > parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h1CHw27g054007for > ; Wed, 12 Feb 2003 12:58:20 -0500 (EST)(envelope-from > null at nyphp.org) > X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== > Message-Id: <200302121758.h1CHw27g054007 at parsec.nyphp.org> > X-Paralist-Archived: > X-List-Software: Paralist 0.6 > List-ID: > List-Owner: > List-Archive: > List-Subscribe: > List-Unsubscribe: > Organization: New York PHP > X-Mailer: Paramail 0.5 > Return-Path: null at nyphp.org > X-OriginalArrivalTime: 12 Feb 2003 17:58:21.0783 (UTC) > FILETIME=[54C95670:01C2D2C0] > > Hi: > > I have a very strange situation that may be difficult for me to convey...but > either PHP is having problems, or I'm just a jackass. > > Here is the weirdo code with some of my attempt to debug. $this->data > contains an array of "keys" that need to be replaced with values. This is > kind of a ghetto template parser. Everything is fine until I get inside the > for loop (which used to be a foreach...but I'm trying everything. Inside > that loop, I cannot get $this->data[$key] to print out anything! > > I'm just basically looking for someone to see if I'm overlooking something. > > Thanks a billion! > > hise > > function parse() { > // Get an array of items such as 'first_name', 'last_name', etc > $kws = $this->get_tags(); > > // If we do have an array of keywords > if(is_array($kws)) { > // For each keyword > foreach($kws as $kw) { > // Get the value from this object's data hasa > $value = $this->data["$kw"]; // <-- this has no data in it > inside this loop > // Replace the smac tagged keyword with the value > $this->body = ereg_replace("".$kw."", $value, > $this->body); > } > } > return($this->body); > } > > > > -- > > -+----------------------+ > | jhise at nextsource.com | > | developer | > | nextSource, Inc. | > | x334 | > +----------------------+ > > > > > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > http://join.msn.com/?page=features/featuredemail > > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ From nyphp at websapp.com Thu Feb 13 09:29:30 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 13 Feb 2003 09:29:30 -0500 Subject: [nycphp-talk] Disappearing data or I've gone mad In-Reply-To: <200302131430.h1DETICu083795@parsec.nyphp.org> Message-ID: foreach($kws as $kw): $kw will get the values of the array foreach($kws as $kw => $value): $kw will get the index values of the array and $value the actual values (as $kw did in the first example). --Daniel > -----Original Message----- > From: Jeremy Hise [mailto:jhise at nextsource.com] > Sent: Thursday, February 13, 2003 9:29 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Disappearing data or I've gone mad > > > I've never had problems with this syntax. > > > > On Wed, 12 Feb 2003 23:59:03 -0500 > "CHUN-YIU LAM" wrote: > > > can you get $kw? because this foreach does not look right... > > > > foreach($kws as $kw) > > > > Don't know much about this syntax. But I think this is missing the values > > like this > > > > foreach($kws as $kw => $value) > > > > > > ----Original Message Follows---- > > From: Jeremy Hise > > Reply-To: talk at nyphp.org > > To: NYPHP Talk > > Subject: [nycphp-talk] Disappearing data or I've gone mad > > Date: Wed, 12 Feb 2003 12:58:02 -0500 > > Received: from parsec.nyphp.org ([66.250.131.26]) by > > mc10-f19.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 12 Feb > > 2003 09:58:21 -0800 > > Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by > > parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h1CHw27g054007for > > ; Wed, 12 Feb 2003 12:58:20 -0500 (EST)(envelope-from > > null at nyphp.org) > > X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== > > Message-Id: <200302121758.h1CHw27g054007 at parsec.nyphp.org> > > X-Paralist-Archived: > > X-List-Software: Paralist 0.6 > > List-ID: > > List-Owner: > > List-Archive: > > List-Subscribe: > > List-Unsubscribe: > > Organization: New York PHP > > X-Mailer: Paramail 0.5 > > Return-Path: null at nyphp.org > > X-OriginalArrivalTime: 12 Feb 2003 17:58:21.0783 (UTC) > > FILETIME=[54C95670:01C2D2C0] > > > > Hi: > > > > I have a very strange situation that may be difficult for me to convey...but > > either PHP is having problems, or I'm just a jackass. > > > > Here is the weirdo code with some of my attempt to debug. $this->data > > contains an array of "keys" that need to be replaced with values. This is > > kind of a ghetto template parser. Everything is fine until I get inside the > > for loop (which used to be a foreach...but I'm trying everything. Inside > > that loop, I cannot get $this->data[$key] to print out anything! > > > > I'm just basically looking for someone to see if I'm overlooking something. > > > > Thanks a billion! > > > > hise > > > > function parse() { > > // Get an array of items such as 'first_name', 'last_name', etc > > $kws = $this->get_tags(); > > > > // If we do have an array of keywords > > if(is_array($kws)) { > > // For each keyword > > foreach($kws as $kw) { > > // Get the value from this object's data hasa > > $value = $this->data["$kw"]; // <-- this has no data in it > > inside this loop > > // Replace the smac tagged keyword with the value > > $this->body = ereg_replace("".$kw."", $value, > > $this->body); > > } > > } > > return($this->body); > > } > > > > > > > > -- > > > > -+----------------------+ > > | jhise at nextsource.com | > > | developer | > > | nextSource, Inc. | > > | x334 | > > +----------------------+ > > > > > > > > > > > > _________________________________________________________________ > > Add photos to your e-mail with MSN 8. Get 2 months FREE*. > > http://join.msn.com/?page=features/featuredemail > > > > > > > > > > > > > -- > > -+----------------------+ > | jhise at nextsource.com | > | developer | > | nextSource, Inc. | > | x334 | > +----------------------+ > > > --- Unsubscribe at http://nyphp.org/list/ --- > From james.byrne2 at ntlworld.com Thu Feb 13 09:53:47 2003 From: james.byrne2 at ntlworld.com (Glasgow West End) Date: Thu, 13 Feb 2003 14:53:47 +0000 Subject: [nycphp-talk] Newbie question: extract categories and display once Message-ID: <20030213145347.PPTP14341.mta03-svc.ntlworld.com@[10.137.100.63]> Hmm, nice and simple. Thanks Jim. > > From: "Jim Hendricks" > Date: 2003/02/13 Thu PM 01:12:53 GMT > To: NYPHP Talk > Subject: Re: [nycphp-talk] Newbie question: extract categories and display once > > A down and dirty way would be to define a variable which is initially blank > or null. > > At the top of your loop which you use to iterate through the articles check > to see if the category associated with the article is the same as that > stored in the variable. If it is different, pump out the category info and > set the variable to the category you just output. If it is the same, skip > outputting the category info. > > This assumes that your query which obtains the data brings it back in > category order. > > Jim > > ----- Original Message ----- > From: "QuicknEasyImage" > To: "NYPHP Talk" > Sent: Thursday, February 13, 2003 3:06 AM > Subject: [nycphp-talk] Newbie question: extract categories and display once > > > > Hi, > > > > I am creating a MSQL database of articles, all labeled by categories - > i.e. > > marketing, copywriting, ecommerce and so on. I want to display the links > to > > these articles on a web page, sorted by category. I only want to display > > the category name on the web page once - and underneath that, all the > > articles that fall into that category, then the next category name and all > > the articles under that that fall into that category, and so on. > > > > I can extract and display the links to the articles easy enough, but can't > > think how to make sure that the category name prints only once - at the > top > > of category list. Any ideas would be appreciated. > > > > Thanks, > > Jim > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From rinaudomatteo at msn.com Thu Feb 13 10:37:47 2003 From: rinaudomatteo at msn.com (Matteo Rinaudo) Date: Thu, 13 Feb 2003 16:37:47 +0100 Subject: PANAMASUITE Portal Builder (SourceForge Project: http://panamasuite.sourceforge.net/) Message-ID: <000701c2d375$dbf3af50$6f00a8c0@osiris> Hi, folks, this is Matteo Rinaudo. I want to present my open source framework, PanamaSuite. Only localization is featured right now, in version 0.5.0: Portal AdvaNced Administration and Maintenance Application Suite is a package of PHP OOP components such as classes, modular and ready-to-use web applications like locales support, connection to databases, forum, newsletter, poll, faq, administrative control panel and other portal features). It simply uses PHP4 and MySQL. Interbase and other datasources will be easily implemented in the future, thanks to the modular vision of the implementation method: the secondary classes inherit from the main one the methods of database connections and query, and therefore it will be enough to change the main class in order to approach to one various data source. The next step will be Oracle support and some improvements. All feedbacks are welcome. PANAMASUITE URL: http://panamasuite.sourceforge.net/ Best regards, Matteo Rinaudo -------------- next part -------------- An HTML attachment was scrubbed... URL: From cahoyos at us.ibm.com Thu Feb 13 13:26:04 2003 From: cahoyos at us.ibm.com (Carlos Hoyos) Date: Thu, 13 Feb 2003 13:26:04 -0500 Subject: flush usage Message-ID: Hi, (sorry if this gets posted twice, I had sent it on Monday but never saw it on the list.) I have a page that deals with a lengthy process, so I'm using flush to "push" the content as it's processed and give the user a feeling of page "in process": Something like this #start initialization(); foreach($urlList as $url){ // execute a lengthy process... doLengthyProcess(); printResults(); // flush to get the "partial" results displayed. print str_repeat(" ", 3000) . "\ "; flush(); } restOfScript(); But it's not working... blank page until the end of execution. I believe it's more of a server / client issue (rather than php), and have to do some homework on this; but I thought it would be nice to see if anybody wants to share ideas or suggestions on how you've worked with this situations in the past. I'm running php4.3.0, IBMHTTPServer (ibm's apache build), no mod_gzip, over Linux... testing on IE 5.0, Netscape 4.7 and Opera 6.0... all failed. The 3000 in the str_repeat is just any number... just trying to fill any buffers that might be preventing this from working properly. txs, Carlos From soazine at erols.com Thu Feb 13 13:33:34 2003 From: soazine at erols.com (Phil Powell) Date: Thu, 13 Feb 2003 13:33:34 -0500 Subject: Does PHP have an equivalent to synchronized()? Message-ID: <036201c2d38e$6aed7980$2aaf6244@scandinawa1bo6> If anyone here is familiar with Java's "synchronized()" block, where a block of code will run as a separate thread and be forced to wait if another instance of that block is running? If so, does PHP have its own version of that? Just wondering thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From enunez at tiaa-cref.org Thu Feb 13 13:45:03 2003 From: enunez at tiaa-cref.org (Nunez, Eddy) Date: Thu, 13 Feb 2003 13:45:03 -0500 Subject: [nycphp-talk] Does PHP have an equivalent to synchronized? Message-ID: <7CE0EC1FC2D0D411910700508BE38D0F0A6D9BF9@msxnyusr01.msx.ops.tiaa-cref.org> I do not believe PHP supports threading at the script level, at least not PHP4. Eddy Nunez TIAA-CREF Tech. Specialist -----Original Message----- From: Phil Powell [mailto:soazine at erols.com] Sent: Thursday, February 13, 2003 1:36 PM To: NYPHP Talk Subject: [nycphp-talk] Does PHP have an equivalent to synchronized? If anyone here is familiar with Java's "synchronized()" block, where a block of code will run as a separate thread and be forced to wait if another instance of that block is running? If so, does PHP have its own version of that? Just wondering thanx Phil --- Unsubscribe at http://nyphp.org/list/ --- ********************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ********************************************************************** From gquimpo at sni-inc.com Thu Feb 13 13:49:20 2003 From: gquimpo at sni-inc.com (Gerald Timothy Quimpo) Date: Fri, 14 Feb 2003 02:49:20 +0800 Subject: [nycphp-talk] Does PHP have an equivalent to synchronized? In-Reply-To: <200302131836.h1DIaABA091865@parsec.nyphp.org> References: <200302131836.h1DIaABA091865@parsec.nyphp.org> Message-ID: <200302140249.20559.gquimpo@sni-inc.com> On Friday 14 February 2003 02:36 am, Phil Powell wrote: > If anyone here is familiar with Java's "synchronized()" block, where a > block of code will run as a separate thread and be forced to wait if > another instance of that block is running? If so, does PHP have its own > version of that? php isn't multithreaded (unless there's a lot of new syntax that i'm unaware of in the latest version :). so you don't need synchronized. tiger -- Gerald Timothy Quimpo tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78" Absence diminishes small loves and increases great ones, as the wind blows out the candle and fans the bonfire. La Rochefoucauld From jhise at nextsource.com Thu Feb 13 13:53:40 2003 From: jhise at nextsource.com (Jeremy Hise) Date: Thu, 13 Feb 2003 13:53:40 -0500 Subject: [nycphp-talk] flush usage In-Reply-To: <200302131826.h1DIQB9S091109@parsec.nyphp.org> References: <200302131826.h1DIQB9S091109@parsec.nyphp.org> Message-ID: <20030213135340.6a505759.jhise@nextsource.com> I think ultimately it's up to the client end (browser) even though once I realized that breaking up my one giant table into smaller tables would cause the browser to render each table as it was sent. But that was unpredictable based on browser and browser version and I hated it because it affected the way I coded. hise On Thu, 13 Feb 2003 13:26:11 -0500 Carlos Hoyos wrote: > > > > > > Hi, > (sorry if this gets posted twice, I had sent it on Monday but never saw it > on the list.) > > > I have a page that deals with a lengthy process, so I'm using flush to > "push" the content as it's processed and give the user a feeling of page > "in process": > Something like this > > > #start > > initialization(); > > foreach($urlList as $url){ > > > // execute a lengthy process... > doLengthyProcess(); > printResults(); > > // flush to get the "partial" results displayed. > print str_repeat(" ", 3000) . "\ "; > flush(); > > } > > restOfScript(); > > > But it's not working... blank page until the end of execution. I believe > it's more of a server / client issue (rather than php), and have to do some > homework on this; but I thought it would be nice to see if anybody wants to > share ideas or suggestions on how you've worked with this situations in the > past. > > I'm running php4.3.0, IBMHTTPServer (ibm's apache build), no mod_gzip, > over Linux... testing on IE 5.0, Netscape 4.7 and Opera 6.0... all failed. > The 3000 in the str_repeat is just any number... just trying to fill any > buffers that might be preventing this from working properly. > > txs, > > > Carlos > > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ From andrew at digitalpulp.com Thu Feb 13 14:00:28 2003 From: andrew at digitalpulp.com (Andrew M. Yochum) Date: Thu, 13 Feb 2003 14:00:28 -0500 (EST) Subject: [nycphp-talk] Does PHP have an equivalent to synchronized? In-Reply-To: <200302131836.h1DIaA5K091865@parsec.nyphp.org> Message-ID: You can use the sem_* functions for this behaviour to synchronize PHP scripts executing across multiple apache processes. They are wrappers around the Sys V IPC functions, and are typically used to control access to shared memory or resources that can suffer from concurrency issues. See: http://www.php.net/manual/en/ref.sem.php Andrew On Thu, 13 Feb 2003, Phil Powell wrote: > If anyone here is familiar with Java's "synchronized()" block, where a block of code will run as a separate thread and be forced to wait if another instance of that block is running? If so, does PHP have its own version of that? > > Just wondering > thanx > Phil > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > -- Andrew Yochum Digital Pulp, Inc. 212.679.0676x255 andrew at digitalpulp.com From brent at landover.com Thu Feb 13 14:09:48 2003 From: brent at landover.com (Brent Baisley) Date: Thu, 13 Feb 2003 14:09:48 -0500 Subject: [nycphp-talk] flush usage In-Reply-To: <200302131826.h1DIQB8S091109@parsec.nyphp.org> Message-ID: I've tried "flush"ing with other products as well as PHP. It actually depends on the browser supporting a certain feature and I haven't found it to work right (meaning reliably) in any browser. I've basically given up on trying to use it. On Thursday, February 13, 2003, at 01:26 PM, Carlos Hoyos wrote: > I have a page that deals with a lengthy process, so I'm using flush to > "push" the content as it's processed and give the user a feeling of page > "in process": > -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 From shiflett at php.net Thu Feb 13 14:10:47 2003 From: shiflett at php.net (Chris Shiflett) Date: Thu, 13 Feb 2003 11:10:47 -0800 (PST) Subject: [nycphp-talk] flush usage In-Reply-To: <200302131827.h1DIQBB2091109@parsec.nyphp.org> Message-ID: <20030213191047.32188.qmail@web14303.mail.yahoo.com> --- Carlos Hoyos wrote: > I have a page that deals with a lengthy process, so I'm using flush to > "push" the content as it's processed and give the user a feeling of page > "in process" There are many different reasons why this might not be working, and most involve buffering somewhere (you mention mod_gzip, so I assume you are aware of some of these issues). I wrote this simple script a good while ago to play around with flush: ------------------------------

Here is an example of a time-delayed list:

    List item one"; flush(); sleep(1); echo "
  • List item two
  • "; flush(); sleep(1); echo "
  • List item three
  • "; flush(); sleep(1); echo "
  • List item four
  • "; flush(); sleep(1); echo "
  • List item five
  • "; flush(); sleep(1); ?>
------------------------------ You can try that simple test first and see if it helps. I have also heard that IE won't display content as it is received unless the first chunk is greater than ? bytes. Of course, testing with multiple browsers as you are should eliminate these types of anomalies. To really verify that your server is sending the proper HTTP message to allow for the effect you seek, you can view the HTTP response by telnetting to your Web server and issuing a request manually. Something like this: GET /path/to/script.php HTTP/1.1 Host: example.org You should see a Transfer-Encoding: chunked header in the response, and there should be no Content-Length header. Hope that helps. Chris From nsr81 at ny-tech.net Thu Feb 13 14:27:04 2003 From: nsr81 at ny-tech.net (Nasir Zubair) Date: Thu, 13 Feb 2003 14:27:04 -0500 Subject: [nycphp-talk] flush usage In-Reply-To: <200302131911.h1DJAo9W096540@parsec.nyphp.org> Message-ID: <000001c2d395$e44a7d30$6401a8c0@nyt001> It seems that for IE family of browsers, "the first chunk" needs to be of a certain size. In your example, if I place the following comment after or before the PHP block, it shows everything as it comes in, if this is not there, it waits for the whole output and then display it at once. http://www.ny-tech.net/test.php - nasir zubair -----Original Message----- From: Chris Shiflett [mailto:shiflett at php.net] Sent: Thursday, February 13, 2003 2:11 PM To: NYPHP Talk Subject: Re: [nycphp-talk] flush usage --- Carlos Hoyos wrote: > I have a page that deals with a lengthy process, so I'm using flush to > "push" the content as it's processed and give the user a feeling of > page "in process" There are many different reasons why this might not be working, and most involve buffering somewhere (you mention mod_gzip, so I assume you are aware of some of these issues). I wrote this simple script a good while ago to play around with flush: ------------------------------

Here is an example of a time-delayed list:

    List item one"; flush(); sleep(1); echo "
  • List item two
  • "; flush(); sleep(1); echo "
  • List item three
  • "; flush(); sleep(1); echo "
  • List item four
  • "; flush(); sleep(1); echo "
  • List item five
  • "; flush(); sleep(1); ?>
------------------------------ You can try that simple test first and see if it helps. I have also heard that IE won't display content as it is received unless the first chunk is greater than ? bytes. Of course, testing with multiple browsers as you are should eliminate these types of anomalies. To really verify that your server is sending the proper HTTP message to allow for the effect you seek, you can view the HTTP response by telnetting to your Web server and issuing a request manually. Something like this: GET /path/to/script.php HTTP/1.1 Host: example.org You should see a Transfer-Encoding: chunked header in the response, and there should be no Content-Length header. Hope that helps. Chris --- Unsubscribe at http://nyphp.org/list/ --- From nsr81 at ny-tech.net Thu Feb 13 14:29:21 2003 From: nsr81 at ny-tech.net (Nasir Zubair) Date: Thu, 13 Feb 2003 14:29:21 -0500 Subject: [nycphp-talk] flush usage In-Reply-To: <200302131927.h1DJQq9W097516@parsec.nyphp.org> Message-ID: <000101c2d396$3615aae0$6401a8c0@nyt001> I meant to say "place the following comment BEFORE the PHP block". Sorry about that. :) -----Original Message----- From: Nasir Zubair [mailto:nsr81 at ny-tech.net] Sent: Thursday, February 13, 2003 2:27 PM To: NYPHP Talk Subject: RE: [nycphp-talk] flush usage It seems that for IE family of browsers, "the first chunk" needs to be of a certain size. In your example, if I place the following comment after or before the PHP block, it shows everything as it comes in, if this is not there, it waits for the whole output and then display it at once. http://www.ny-tech.net/test.php - nasir zubair From soazine at erols.com Thu Feb 13 14:55:28 2003 From: soazine at erols.com (Phil Powell) Date: Thu, 13 Feb 2003 14:55:28 -0500 Subject: [nycphp-talk] Does PHP have an equivalent to synchronized? References: <200302131849.h1DInV66093367@parsec.nyphp.org> Message-ID: <03bf01c2d399$dbb7d470$2aaf6244@scandinawa1bo6> cool, thanx! ----- Original Message ----- From: "Gerald Timothy Quimpo" To: "NYPHP Talk" Sent: Thursday, February 13, 2003 1:49 PM Subject: Re: [nycphp-talk] Does PHP have an equivalent to synchronized? > On Friday 14 February 2003 02:36 am, Phil Powell wrote: > > If anyone here is familiar with Java's "synchronized()" block, where a > > block of code will run as a separate thread and be forced to wait if > > another instance of that block is running? If so, does PHP have its own > > version of that? > > php isn't multithreaded (unless there's a lot of new syntax that i'm > unaware of in the latest version :). so you don't need synchronized. > > tiger > > -- > Gerald Timothy Quimpo tiger*quimpo*org gquimpo*sni-inc.com tiger*sni*ph > Public Key: "gpg --keyserver pgp.mit.edu --recv-keys 672F4C78" > Absence diminishes small loves and increases great ones, as > the wind blows out the candle and fans the bonfire. > La Rochefoucauld > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From j_r_sanchez at yahoo.com Thu Feb 13 20:10:58 2003 From: j_r_sanchez at yahoo.com (jose sanchez) Date: Thu, 13 Feb 2003 17:10:58 -0800 (PST) Subject: Project Guideline/Questionnaire Message-ID: <20030214011058.64183.qmail@web40812.mail.yahoo.com> Hello: I was looking on the web for a guideline or even a questionnaire that I can give a client or someone who would like to hire me to do a website for them. Can someone please guide me or help me find a questionnaire that I can give a potential client to fill out so, I can get a better idea of what they want done. Thanks in advance for your help. __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com From chendry at nyc.rr.com Thu Feb 13 20:18:34 2003 From: chendry at nyc.rr.com (Christopher Hendry) Date: Thu, 13 Feb 2003 20:18:34 -0500 Subject: [nycphp-talk] Project Guideline/Questionnaire In-Reply-To: <200302140112.h1E1B19g003258@parsec.nyphp.org> Message-ID: I find The Graphic Artists Guild Handbook - Pricing & Ethical Guidelines to be of great use in this area. It's really not just for graphic designers, great for costs too... This is probably not the immediate answer you wanted, but if you have time, pick it up and check on page 219. I got mine from Amazon. -> -----Original Message----- -> From: jose sanchez [mailto:j_r_sanchez at yahoo.com] -> Sent: Thursday, February 13, 2003 8:11 PM -> To: NYPHP Talk -> Subject: [nycphp-talk] Project Guideline/Questionnaire -> -> -> Hello: -> -> I was looking on the web for a guideline or even a -> questionnaire that I can give a client or someone who -> would like to hire me to do a website for them. Can -> someone please guide me or help me find a -> questionnaire that I can give a potential client to -> fill out so, I can get a better idea of what they want -> done. -> -> Thanks in advance for your help. -> -> __________________________________________________ -> Do you Yahoo!? -> Yahoo! Shopping - Send Flowers for Valentine's Day -> http://shopping.yahoo.com -> -> -> --- Unsubscribe at http://nyphp.org/list/ --- -> -> -> From rudy at taytek.com Thu Feb 13 21:23:45 2003 From: rudy at taytek.com (Rudy) Date: Thu, 13 Feb 2003 21:23:45 -0500 Subject: [nycphp-talk] Zend offer In-Reply-To: <200302131342.h1DDgIBe082626@parsec.nyphp.org> Message-ID: I've been using EditPlus http://www.editplus.com/, a simple text editor with auto-complete and elementary syntax help. It does not offer any debugging capability. Has anyone used the Zend Studio debugging and if so what does it offer? Rudy -----Original Message----- From: Michael Welsh [mailto:welsh_michael at hotmail.com] Sent: Thursday, February 13, 2003 8:42 AM To: NYPHP Talk Subject: [nycphp-talk] Zend offer The Zend Studio offer looks inviting. I usually do my work in a simple text editor - metapad (http://www.liquidninja.com/metapad/) in windows or Kate and Quanta (http://quanta.sourceforge.net/) in Linux. Do I really need this IDE? I am comfortable in a text editor, but, I'm not a zealot for *the purity* of it. Obviously it is a matter of personal choice. I'm open to opinion/suggestion and would like to hear from others. Then again, who could resist "support your local community at the same time."? Let me reach for my wallet. Michael _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus --- Unsubscribe at http://nyphp.org/list/ --- --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 From nsr81 at ny-tech.net Thu Feb 13 22:44:25 2003 From: nsr81 at ny-tech.net (Nasir Zubair) Date: Thu, 13 Feb 2003 22:44:25 -0500 Subject: "No input file specified." In-Reply-To: <200302131958.h1DJw49W099126@parsec.nyphp.org> Message-ID: <000001c2d3db$5f10a4a0$6401a8c0@nyt001> Hi All, I just installed PHP 4.3.0 on my Win XP system. I'm using CGI flavor with Apache. Ever since I installed it, instead of getting an apache 404 page for non-existing php files, I get "No input file specified." from PHP. Has anyone encoutered it before, if so how to fix it? Thanks. - nasir From rinaudomatteo at msn.com Fri Feb 14 03:34:40 2003 From: rinaudomatteo at msn.com (Matteo Rinaudo) Date: Fri, 14 Feb 2003 09:34:40 +0100 Subject: XEmacs as PHP Editor Message-ID: <000201c2d403$ea8e2610$6f00a8c0@osiris> I think Zend is the best platform for PHP development, but sometimes I use XEmacs with PHP mode, which is good too. Matteo Rinaudo -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhise at nextsource.com Fri Feb 14 08:41:42 2003 From: jhise at nextsource.com (Jeremy Hise) Date: Fri, 14 Feb 2003 08:41:42 -0500 Subject: [nycphp-talk] XEmacs as PHP Editor In-Reply-To: <200302140835.h1E8Yi9S009824@parsec.nyphp.org> References: <200302140835.h1E8Yi9S009824@parsec.nyphp.org> Message-ID: <20030214084142.6f805c11.jhise@nextsource.com> You mean, XEmacs will parse up your PHP code? On Fri, 14 Feb 2003 03:34:44 -0500 "Matteo Rinaudo" wrote: > I think Zend is the best platform for PHP development, but sometimes I > use XEmacs with PHP mode, which is good too. > Matteo Rinaudo > > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ From frankaltea at yahoo.com Fri Feb 14 09:36:12 2003 From: frankaltea at yahoo.com (Francisco Altea) Date: Fri, 14 Feb 2003 06:36:12 -0800 (PST) Subject: [nycphp-talk] Project Guideline/Questionnaire In-Reply-To: <200302140119.h1E1IbEK003981@parsec.nyphp.org> Message-ID: <20030214143612.17951.qmail@web13306.mail.yahoo.com> I've always looked at creating a web site as primarily a graphic arts job. Those sites that were approached this way have the user requrements in focus. Of course, adding the different features as functionalities of the site is a programmer's job. 'Content first, before function.' --- Christopher Hendry wrote: > I find The Graphic Artists Guild Handbook - Pricing > & Ethical Guidelines to > be of great use in this area. It's really not just > for graphic designers, > great for costs too... > > This is probably not the immediate answer you > wanted, but if you have time, > pick it up and check on page 219. I got mine from > Amazon. > > -> -----Original Message----- > -> From: jose sanchez [mailto:j_r_sanchez at yahoo.com] > -> Sent: Thursday, February 13, 2003 8:11 PM > -> To: NYPHP Talk > -> Subject: [nycphp-talk] Project > Guideline/Questionnaire > -> > -> > -> Hello: > -> > -> I was looking on the web for a guideline or even > a > -> questionnaire that I can give a client or someone > who > -> would like to hire me to do a website for them. > Can > -> someone please guide me or help me find a > -> questionnaire that I can give a potential client > to > -> fill out so, I can get a better idea of what they > want > -> done. > -> > -> Thanks in advance for your help. > -> > -> > __________________________________________________ > -> Do you Yahoo!? > -> Yahoo! Shopping - Send Flowers for Valentine's > Day > -> http://shopping.yahoo.com > -> > -> > -> > -> > -> > -> > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com From shiflett at php.net Fri Feb 14 10:23:53 2003 From: shiflett at php.net (Chris Shiflett) Date: Fri, 14 Feb 2003 07:23:53 -0800 (PST) Subject: [nycphp-talk] XEmacs as PHP Editor In-Reply-To: <200302141339.h1EDd1B4013390@parsec.nyphp.org> Message-ID: <20030214152353.85669.qmail@web14311.mail.yahoo.com> --- Jeremy Hise wrote: > You mean, XEmacs will parse up your PHP code? I think he meant editor when he said platform, and by Zend he meant the studio. Chris > On Fri, 14 Feb 2003 03:34:44 -0500 > "Matteo Rinaudo" wrote: > > > I think Zend is the best platform for PHP development, but sometimes I > > use XEmacs with PHP mode, which is good too. > > Matteo Rinaudo From jhise at nextsource.com Fri Feb 14 10:38:50 2003 From: jhise at nextsource.com (Jeremy Hise) Date: Fri, 14 Feb 2003 10:38:50 -0500 Subject: [nycphp-talk] XEmacs as PHP Editor In-Reply-To: <200302141524.h1EFNu9S015817@parsec.nyphp.org> References: <200302141524.h1EFNu9S015817@parsec.nyphp.org> Message-ID: <20030214103850.49920318.jhise@nextsource.com> Ah. That would be cool though. On Fri, 14 Feb 2003 10:23:56 -0500 Chris Shiflett wrote: > --- Jeremy Hise wrote: > > You mean, XEmacs will parse up your PHP code? > > I think he meant editor when he said platform, and by Zend he meant the studio. > > Chris > > > On Fri, 14 Feb 2003 03:34:44 -0500 > > "Matteo Rinaudo" wrote: > > > > > I think Zend is the best platform for PHP development, but sometimes I > > > use XEmacs with PHP mode, which is good too. > > > Matteo Rinaudo > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ From MLynn at exchange.ml.com Fri Feb 14 10:44:59 2003 From: MLynn at exchange.ml.com (Lynn, Michael (DCS)) Date: Fri, 14 Feb 2003 10:44:59 -0500 Subject: Replacing a string within many tables, unknown columns Message-ID: <8FA07D8665A9D511B80E00B0D068A15105D2107F@ehope16.hew.us.ml.com> Wondering if anyones come across a similar problem... Probably more of a mysql question - but I'm trying to solve the problem using php. I need to be able to replace every occurance of a string in many tables, many columns. The string appears in tables in various places and usually embedded in a string type or var type column... The string will not be the entire contents of the column so a replace won't work. Eg: my development database contains url links to the development web site. When I copy the tables to production, I want to search and replace every occurance of the development urls with production urls throughout the entire database. Thanks in advance. Regards, Mike From chris at psydeshow.org Fri Feb 14 11:03:46 2003 From: chris at psydeshow.org (Chris Snyder) Date: Fri, 14 Feb 2003 11:03:46 -0500 Subject: [nycphp-talk] Replacing a string within many tables, unknown columns In-Reply-To: <200302141545.h1EFjFAe017343@parsec.nyphp.org> References: <200302141545.h1EFjFAe017343@parsec.nyphp.org> Message-ID: <3E4D1362.5000202@psydeshow.org> Lynn, Michael wrote: >I need to be able to replace every occurance of a string in many tables, many columns. The string appears in tables in various places and usually embedded in a string type or var type column... The >string will not be the entire contents of the column so a replace won't work. > >Eg: my development database contains url links to the development web site. When I copy the tables to production, I want to search and replace every occurance of the development urls with production >urls throughout the entire database. > > > Many columns, many tables? Ouch. It seems like the best way to do this, since you're migrating the data anyway, is to take the contents of the mysqldump you do to get the data out of your development database, and run a search-and-replace operation on it before feeding it into the production database. See mysqldump in the "Backing up your database" section of the MySQL documentation-- the sql file you get is plain text, and the data therein is processable in a myriad of ways as long as you don't distrub the SQL itself. chris. -- HIP HOP CLOWN MONTH booth of the day: all day, every day http://hiphopclown.org/berylium/showcase/ From andrew at digitalpulp.com Fri Feb 14 11:12:30 2003 From: andrew at digitalpulp.com (Andrew M. Yochum) Date: Fri, 14 Feb 2003 11:12:30 -0500 (EST) Subject: [nycphp-talk] Replacing a string within many tables, unknown columns In-Reply-To: <200302141545.h1EFjF5I017343@parsec.nyphp.org> Message-ID: Here's one way of accomplishing this... 1. Use mysql_list_tables to grab a list of tables. 2. Use mysql_list_fields + mysql_num_fields to grab a list of fields per table. 3. Use mysql_field_type to find the fields of the type you want to manipulate (char, varchar, text, etc.) 3. Compile an update statement using the mysql "replace" function to perform the search an replace. Something like: update thetable set data = replace(data,'old_string','new_string'); Another way might be to do a mysqldump of the DB, replace strings in that file, and load the edited file into the production DB. Hope that helps. Andrew On Fri, 14 Feb 2003, Lynn, Michael wrote: > Wondering if anyones come across a similar problem... Probably more of a mysql question - but I'm trying to solve the problem using php. > > I need to be able to replace every occurance of a string in many tables, many columns. The string appears in tables in various places and usually embedded in a string type or var type column... The > string will not be the entire contents of the column so a replace won't work. > > Eg: my development database contains url links to the development web site. When I copy the tables to production, I want to search and replace every occurance of the development urls with production > urls throughout the entire database. > > Thanks in advance. > > Regards, > Mike > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > -- Andrew Yochum Digital Pulp, Inc. 212.679.0676x255 andrew at digitalpulp.com From rinaudomatteo at msn.com Fri Feb 14 11:17:34 2003 From: rinaudomatteo at msn.com (Matteo Rinaudo) Date: Fri, 14 Feb 2003 17:17:34 +0100 Subject: XEMACS as PHP Editor Message-ID: <000801c2d444$94f983c0$6f00a8c0@osiris> Read the comments in php-mode-102.el (attached to this message) to install it into Xemacs. Best, Matteo Rinaudo -------------- next part -------------- A non-text attachment was scrubbed... Name: php-mode-102.el Type: application/octet-stream Size: 40007 bytes Desc: not available URL: From MLynn at exchange.ml.com Fri Feb 14 11:22:54 2003 From: MLynn at exchange.ml.com (Lynn, Michael (DCS)) Date: Fri, 14 Feb 2003 11:22:54 -0500 Subject: [nycphp-talk] Replacing a string within many tables, unknown c olumns Message-ID: <8FA07D8665A9D511B80E00B0D068A15105D21080@ehope16.hew.us.ml.com> Thanks for the quick response... I think I found a non-php way to do this: Mysqldump PROD_DBNAME > PROD_DBNAME.sql; # backup Mysqadmin drop PROD_DBNAME Mysqladmin create PROD_DBNAME Mysqldump DEV_DBNAME | sed 's/OLD_STRING/NEW_STRING/g' | mysql PROD_DBNAME Or something close to that. I'm also working on a php way to do it and would appreciate any input from someone who's done something similar... I'll forward my code when it's working. Thanks again. Regards, Mike -----Original Message----- From: Chris Snyder [mailto:chris at psydeshow.org] Sent: Friday, February 14, 2003 11:04 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Replacing a string within many tables, unknown columns Lynn, Michael wrote: >I need to be able to replace every occurance of a string in many >tables, many columns. The string appears in tables in various places >and usually embedded in a string type or var type column... The string >will not be the entire contents of the column so a replace won't work. > >Eg: my development database contains url links to the development web >site. When I copy the tables to production, I want to search and >replace every occurance of the development urls with production urls >throughout the entire database. > > > Many columns, many tables? Ouch. It seems like the best way to do this, since you're migrating the data anyway, is to take the contents of the mysqldump you do to get the data out of your development database, and run a search-and-replace operation on it before feeding it into the production database. See mysqldump in the "Backing up your database" section of the MySQL documentation-- the sql file you get is plain text, and the data therein is processable in a myriad of ways as long as you don't distrub the SQL itself. chris. -- HIP HOP CLOWN MONTH booth of the day: all day, every day http://hiphopclown.org/berylium/showcase/ --- Unsubscribe at http://nyphp.org/list/ --- From cahoyos at us.ibm.com Fri Feb 14 12:42:24 2003 From: cahoyos at us.ibm.com (Carlos Hoyos) Date: Fri, 14 Feb 2003 12:42:24 -0500 Subject: [nycphp-talk] Zend offer Message-ID: This is actually leading to an interesting question (think it was already posted a few months ago) What editor / development platform are you guys using? I use Eclipse for other languages, but the php plugin is still too pre-alpha. Editplus I really like: lightweight, but still very beefy (regular expression, user definable syntax & auto complete...), but missing cvs, so good only for smaller one-man projects. Now the big challenge: I got an enterprise project (here comes the magic word again -- let's not get religious ;). Big team, close deadlines, parallel development, and I'm very convinced about using PHP for this one. Suggestions on how to build the ultimate development platform? What else besides Zend should I be consider? Anybody used other software development products with PHP (Rational Rose and ClearQuest are on my mind...) Carlos Rudy To: NYPHP Talk cc: 02/13/2003 09:23 Subject: RE: [nycphp-talk] Zend offer PM Please respond to talk I've been using EditPlus http://www.editplus.com/, a simple text editor with auto-complete and elementary syntax help. It does not offer any debugging capability. Has anyone used the Zend Studio debugging and if so what does it offer? Rudy -----Original Message----- From: Michael Welsh [mailto:welsh_michael at hotmail.com] Sent: Thursday, February 13, 2003 8:42 AM To: NYPHP Talk Subject: [nycphp-talk] Zend offer The Zend Studio offer looks inviting. I usually do my work in a simple text editor - metapad (http://www.liquidninja.com/metapad/) in windows or Kate and Quanta (http://quanta.sourceforge.net/) in Linux. Do I really need this IDE? I am comfortable in a text editor, but, I'm not a zealot for *the purity* of it. Obviously it is a matter of personal choice. I'm open to opinion/suggestion and would like to hear from others. Then again, who could resist "support your local community at the same time."? Let me reach for my wallet. Michael _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 --- Unsubscribe at http://nyphp.org/list/ --- From webapprentice at onemain.com Fri Feb 14 12:50:46 2003 From: webapprentice at onemain.com (Webapprentice) Date: Fri, 14 Feb 2003 12:50:46 -0500 Subject: [nycphp-talk] Zend offer References: <200302141743.h1EHgYA0023317@parsec.nyphp.org> Message-ID: <3E4D2C76.2070101@onemain.com> I use Homesite as my all-purpose editor. Carlos Hoyos wrote: >This is actually leading to an interesting question (think it was already >posted a few months ago) > >What editor / development platform are you guys using? > >I use Eclipse for other languages, but the php plugin is still too >pre-alpha. >Editplus I really like: lightweight, but still very beefy (regular >expression, user definable syntax & auto complete...), but missing cvs, so >good only for smaller one-man projects. > >Now the big challenge: I got an enterprise project (here comes the magic >word again -- let's not get religious ;). Big team, close deadlines, >parallel development, and I'm very convinced about using PHP for this one. > >Suggestions on how to build the ultimate development platform? What else >besides Zend should I be consider? Anybody used other software development >products with PHP (Rational Rose and ClearQuest are on my mind...) > > >Carlos > > > > Rudy > To: NYPHP Talk > cc: > 02/13/2003 09:23 Subject: RE: [nycphp-talk] Zend offer > PM > Please respond to > talk > > > > > >I've been using EditPlus http://www.editplus.com/, a simple text editor >with >auto-complete and elementary syntax help. It does not offer any debugging >capability. Has anyone used the Zend Studio debugging and if so what does >it offer? > >Rudy > > >-----Original Message----- >From: Michael Welsh [mailto:welsh_michael at hotmail.com] >Sent: Thursday, February 13, 2003 8:42 AM >To: NYPHP Talk >Subject: [nycphp-talk] Zend offer > > >The Zend Studio offer looks inviting. > >I usually do my work in a simple text editor - metapad >(http://www.liquidninja.com/metapad/) in windows or Kate and Quanta >(http://quanta.sourceforge.net/) in Linux. > >Do I really need this IDE? I am comfortable in a text editor, but, I'm not >a zealot for *the purity* of it. Obviously it is a matter of personal >choice. I'm open to opinion/suggestion and would like to hear from others. > >Then again, who could resist "support your local community at the same >time."? Let me reach for my wallet. > >Michael > >_________________________________________________________________ >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. >http://join.msn.com/?page=features/virus > > > > > > > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 > > > > > > > > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > From nsr81 at ny-tech.net Fri Feb 14 12:54:19 2003 From: nsr81 at ny-tech.net (Nasir Zubair) Date: Fri, 14 Feb 2003 12:54:19 -0500 Subject: [nycphp-talk] Zend offer In-Reply-To: <200302141749.h1EHnA9U024035@parsec.nyphp.org> Message-ID: <000001c2d452$19ce1c20$6401a8c0@nyt001> I use EditPlus for almost all my PHP stuff. I also use Dreamweaver MX because of its site management features, that is if the script/project is more than a few pages. -----Original Message----- From: Webapprentice [mailto:webapprentice at onemain.com] Sent: Friday, February 14, 2003 12:49 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Zend offer I use Homesite as my all-purpose editor. Carlos Hoyos wrote: >This is actually leading to an interesting question (think it was >already posted a few months ago) > >What editor / development platform are you guys using? > >I use Eclipse for other languages, but the php plugin is still too >pre-alpha. Editplus I really like: lightweight, but still very beefy >(regular expression, user definable syntax & auto complete...), but >missing cvs, so good only for smaller one-man projects. > >Now the big challenge: I got an enterprise project (here comes the >magic word again -- let's not get religious ;). Big team, close >deadlines, parallel development, and I'm very convinced about using >PHP for this one. > >Suggestions on how to build the ultimate development platform? What >else besides Zend should I be consider? Anybody used other software >development products with PHP (Rational Rose and ClearQuest are on my >mind...) > > >Carlos > > > > Rudy > To: NYPHP Talk > cc: > 02/13/2003 09:23 Subject: RE: [nycphp-talk] Zend offer > PM > Please respond to > talk > > > > > >I've been using EditPlus http://www.editplus.com/, a simple text editor >with auto-complete and elementary syntax help. It does not offer any >debugging capability. Has anyone used the Zend Studio debugging and if >so what does it offer? > >Rudy > > >-----Original Message----- >From: Michael Welsh [mailto:welsh_michael at hotmail.com] >Sent: Thursday, February 13, 2003 8:42 AM >To: NYPHP Talk >Subject: [nycphp-talk] Zend offer > > >The Zend Studio offer looks inviting. > >I usually do my work in a simple text editor - metapad >(http://www.liquidninja.com/metapad/) in windows or Kate and Quanta >(http://quanta.sourceforge.net/) in Linux. > >Do I really need this IDE? I am comfortable in a text editor, but, I'm >not a zealot for *the purity* of it. Obviously it is a matter of >personal choice. I'm open to opinion/suggestion and would like to hear >from others. > >Then again, who could resist "support your local community at the same >time."? Let me reach for my wallet. > >Michael > >_________________________________________________________________ >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. >http://join.msn.com/?page=features/virus > > > > > > > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From webapprentice at onemain.com Fri Feb 14 13:01:27 2003 From: webapprentice at onemain.com (Webapprentice) Date: Fri, 14 Feb 2003 13:01:27 -0500 Subject: OT: EditPlus References: <200302141754.h1EHs6A0025140@parsec.nyphp.org> Message-ID: <3E4D2EF7.6080803@onemain.com> Does EditPlus offer global search and replace in multiple files, like Homesite? Nasir Zubair wrote: >I use EditPlus for almost all my PHP stuff. I also use Dreamweaver MX >because of its site management features, that is if the script/project >is more than a few pages. > > > >-----Original Message----- >From: Webapprentice [mailto:webapprentice at onemain.com] >Sent: Friday, February 14, 2003 12:49 PM >To: NYPHP Talk >Subject: Re: [nycphp-talk] Zend offer > > >I use Homesite as my all-purpose editor. > > >Carlos Hoyos wrote: > > > >>This is actually leading to an interesting question (think it was >>already posted a few months ago) >> >>What editor / development platform are you guys using? >> >>I use Eclipse for other languages, but the php plugin is still too >>pre-alpha. Editplus I really like: lightweight, but still very beefy >>(regular expression, user definable syntax & auto complete...), but >>missing cvs, so good only for smaller one-man projects. >> >>Now the big challenge: I got an enterprise project (here comes the >>magic word again -- let's not get religious ;). Big team, close >>deadlines, parallel development, and I'm very convinced about using >>PHP for this one. >> >>Suggestions on how to build the ultimate development platform? What >>else besides Zend should I be consider? Anybody used other software >>development products with PHP (Rational Rose and ClearQuest are on my >>mind...) >> >> >>Carlos >> >> >> >> >> > > > >> Rudy >> >> > > > >> To: NYPHP Talk >> >> > > > >> cc: >> >> > > > >> 02/13/2003 09:23 Subject: RE: >> >> >[nycphp-talk] Zend offer > > > >> PM >> >> > > > >> Please respond to >> >> > > > >> talk >> >> > > > > > > > > > >> >>I've been using EditPlus http://www.editplus.com/, a simple text editor >> >> > > > >>with auto-complete and elementary syntax help. It does not offer any >>debugging capability. Has anyone used the Zend Studio debugging and if >> >> > > > >>so what does it offer? >> >>Rudy >> >> >>-----Original Message----- >>From: Michael Welsh [mailto:welsh_michael at hotmail.com] >>Sent: Thursday, February 13, 2003 8:42 AM >>To: NYPHP Talk >>Subject: [nycphp-talk] Zend offer >> >> >>The Zend Studio offer looks inviting. >> >>I usually do my work in a simple text editor - metapad >>(http://www.liquidninja.com/metapad/) in windows or Kate and Quanta >>(http://quanta.sourceforge.net/) in Linux. >> >>Do I really need this IDE? I am comfortable in a text editor, but, I'm >> >> > > > >>not a zealot for *the purity* of it. Obviously it is a matter of >>personal choice. I'm open to opinion/suggestion and would like to hear >> >> > >>from others. > > >>Then again, who could resist "support your local community at the same >>time."? Let me reach for my wallet. >> >>Michael >> >>_________________________________________________________________ >>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. >>http://join.msn.com/?page=features/virus >> >> >> >> >> >> >> >> >>--- >>Incoming mail is certified Virus Free. >>Checked by AVG anti-virus system (http://www.grisoft.com). >>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 >> >>--- >>Outgoing mail is certified Virus Free. >>Checked by AVG anti-virus system (http://www.grisoft.com). >>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > > > > > > > > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > From tfreedma at ubspw.com Fri Feb 14 13:10:40 2003 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Fri, 14 Feb 2003 13:10:40 -0500 Subject: [nycphp-talk] OT: EditPlus Message-ID: I can't say enough good things about UltraEdit, which sounds like a competitor for EditPlus (which I've never used). It's definitely a winner, though. -----Original Message----- From: Webapprentice [mailto:webapprentice at onemain.com] Sent: Friday, February 14, 2003 1:00 PM To: NYPHP Talk Subject: [nycphp-talk] OT: EditPlus Does EditPlus offer global search and replace in multiple files, like Homesite? Nasir Zubair wrote: >I use EditPlus for almost all my PHP stuff. I also use Dreamweaver MX >because of its site management features, that is if the script/project >is more than a few pages. > > > >-----Original Message----- >From: Webapprentice [mailto:webapprentice at onemain.com] >Sent: Friday, February 14, 2003 12:49 PM >To: NYPHP Talk >Subject: Re: [nycphp-talk] Zend offer > > >I use Homesite as my all-purpose editor. > > >Carlos Hoyos wrote: > > > >>This is actually leading to an interesting question (think it was >>already posted a few months ago) >> >>What editor / development platform are you guys using? >> >>I use Eclipse for other languages, but the php plugin is still too >>pre-alpha. Editplus I really like: lightweight, but still very beefy >>(regular expression, user definable syntax & auto complete...), but >>missing cvs, so good only for smaller one-man projects. >> >>Now the big challenge: I got an enterprise project (here comes the >>magic word again -- let's not get religious ;). Big team, close >>deadlines, parallel development, and I'm very convinced about using >>PHP for this one. >> >>Suggestions on how to build the ultimate development platform? What >>else besides Zend should I be consider? Anybody used other software >>development products with PHP (Rational Rose and ClearQuest are on my >>mind...) >> >> >>Carlos >> >> >> >> >> > > > >> Rudy >> >> > > > >> To: NYPHP Talk >> >> > > > >> cc: >> >> > > > >> 02/13/2003 09:23 Subject: RE: >> >> >[nycphp-talk] Zend offer > > > >> PM >> >> > > > >> Please respond to >> >> > > > >> talk >> >> > > > > > > > > > >> >>I've been using EditPlus http://www.editplus.com/, a simple text editor >> >> > > > >>with auto-complete and elementary syntax help. It does not offer any >>debugging capability. Has anyone used the Zend Studio debugging and if >> >> > > > >>so what does it offer? >> >>Rudy >> >> >>-----Original Message----- >>From: Michael Welsh [mailto:welsh_michael at hotmail.com] >>Sent: Thursday, February 13, 2003 8:42 AM >>To: NYPHP Talk >>Subject: [nycphp-talk] Zend offer >> >> >>The Zend Studio offer looks inviting. >> >>I usually do my work in a simple text editor - metapad >>(http://www.liquidninja.com/metapad/) in windows or Kate and Quanta >>(http://quanta.sourceforge.net/) in Linux. >> >>Do I really need this IDE? I am comfortable in a text editor, but, I'm >> >> > > > >>not a zealot for *the purity* of it. Obviously it is a matter of >>personal choice. I'm open to opinion/suggestion and would like to hear >> >> > >>from others. > > >>Then again, who could resist "support your local community at the same >>time."? Let me reach for my wallet. >> >>Michael >> >>_________________________________________________________________ >>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. >>http://join.msn.com/?page=features/virus >> >> >> >> >> >> >> >> >>--- >>Incoming mail is certified Virus Free. >>Checked by AVG anti-virus system (http://www.grisoft.com). >>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 >> >>--- >>Outgoing mail is certified Virus Free. >>Checked by AVG anti-virus system (http://www.grisoft.com). >>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From rudy at taytek.com Fri Feb 14 13:17:56 2003 From: rudy at taytek.com (Rudy) Date: Fri, 14 Feb 2003 13:17:56 -0500 Subject: [nycphp-talk] Zend offer In-Reply-To: <200302141743.h1EHgYBi023317@parsec.nyphp.org> Message-ID: Hi Carlos, I work at a large development organization and while we don't use PHP we are a major Microsoft house. For configuration management we use one of two tools, Visual SourceSafe, or ClearCase. VSS does not support code merging therefore only one person can work on the a specific module at a time. ClearCase,while it does support code merging, I have no experience using it. A third configuration management tool that I have yet to use but looks very promising is Perforce (www.perforce.com). I believe they allow up to two users for free so you can try the tool out. I know Perforce does a nice job integrating into the development environment but that is dependent on your tool set. Rational Rose is a modeling tool. If you are a strong Object Oriented Analysis and Design shop and are strong with UML (Unified Modeling Language) Rose could help (you will need very deep pockets to buy this tool). While Rose supports forward and reverse engineering (code generation/model generation) I am not sure it supports PHP. If you are simply looking for a nice modeling tool I would recommend Enterprise Architect (http://www.sparxsystems.com.au/). It is about 1/20 the cost of Rose and does a nice job with the visual models. If your company considers EA to be too low cost and wants a company with a bigger balance sheet check out Embarcadero's Describe (http://www.embarcadero.com/products/). ClearQuest is Rational's workflow tool. Unless you are well up on software process and are looking to automate your information flow, ClearQuest is probably not for you. Rudy -----Original Message----- From: Carlos Hoyos [mailto:cahoyos at us.ibm.com] Sent: Friday, February 14, 2003 12:43 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Zend offer This is actually leading to an interesting question (think it was already posted a few months ago) What editor / development platform are you guys using? I use Eclipse for other languages, but the php plugin is still too pre-alpha. Editplus I really like: lightweight, but still very beefy (regular expression, user definable syntax & auto complete...), but missing cvs, so good only for smaller one-man projects. Now the big challenge: I got an enterprise project (here comes the magic word again -- let's not get religious ;). Big team, close deadlines, parallel development, and I'm very convinced about using PHP for this one. Suggestions on how to build the ultimate development platform? What else besides Zend should I be consider? Anybody used other software development products with PHP (Rational Rose and ClearQuest are on my mind...) Carlos Rudy To: NYPHP Talk cc: 02/13/2003 09:23 Subject: RE: [nycphp-talk] Zend offer PM Please respond to talk I've been using EditPlus http://www.editplus.com/, a simple text editor with auto-complete and elementary syntax help. It does not offer any debugging capability. Has anyone used the Zend Studio debugging and if so what does it offer? Rudy -----Original Message----- From: Michael Welsh [mailto:welsh_michael at hotmail.com] Sent: Thursday, February 13, 2003 8:42 AM To: NYPHP Talk Subject: [nycphp-talk] Zend offer The Zend Studio offer looks inviting. I usually do my work in a simple text editor - metapad (http://www.liquidninja.com/metapad/) in windows or Kate and Quanta (http://quanta.sourceforge.net/) in Linux. Do I really need this IDE? I am comfortable in a text editor, but, I'm not a zealot for *the purity* of it. Obviously it is a matter of personal choice. I'm open to opinion/suggestion and would like to hear from others. Then again, who could resist "support your local community at the same time."? Let me reach for my wallet. Michael _________________________________________________________________ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 --- Unsubscribe at http://nyphp.org/list/ --- --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 From keremtuzemen at hotmail.com Fri Feb 14 13:20:52 2003 From: keremtuzemen at hotmail.com (Kerem Tuzemen) Date: Fri, 14 Feb 2003 13:20:52 -0500 Subject: [nycphp-talk] OT: EditPlus References: <200302141811.h1EIAl7G026713@parsec.nyphp.org> Message-ID: Hi all, I'm using EditPlus and think it's a great tool. Yes it doesn't support CVS but you can always install http://www.tortoisecvs.org/ and use it with an extra explorer window open. EditPlus supports almost every know programming languages. You can also create your own support files (autocomp, highlighting, etc.) for any file type. It can do cumulative search and replace (in a dir, in open files, in only the current file, etc.) and when doing that you can also use regex which I think is simply great. Especially If you are working with a template system, you really don't need anything else. Other than EditPlus, there is php edit at http://ozu.arecom-sa.com/~marms/phpedit.net/ which looks promising in the long run but it still needs a LOT of development. Kerem Tuzemen ----- Original Message ----- From: "Freedman, Tom S." To: "NYPHP Talk" Sent: Friday, February 14, 2003 1:10 PM Subject: RE: [nycphp-talk] OT: EditPlus > I can't say enough good things about UltraEdit, which sounds like a > competitor for EditPlus (which I've never used). It's definitely a winner, > though. > > -----Original Message----- > From: Webapprentice [mailto:webapprentice at onemain.com] > Sent: Friday, February 14, 2003 1:00 PM > To: NYPHP Talk > Subject: [nycphp-talk] OT: EditPlus > > > Does EditPlus offer global search and replace in multiple files, like > Homesite? > > > Nasir Zubair wrote: > > >I use EditPlus for almost all my PHP stuff. I also use Dreamweaver MX > >because of its site management features, that is if the script/project > >is more than a few pages. > > > > > > > >-----Original Message----- > >From: Webapprentice [mailto:webapprentice at onemain.com] > >Sent: Friday, February 14, 2003 12:49 PM > >To: NYPHP Talk > >Subject: Re: [nycphp-talk] Zend offer > > > > > >I use Homesite as my all-purpose editor. > > > > > >Carlos Hoyos wrote: > > > > > > > >>This is actually leading to an interesting question (think it was > >>already posted a few months ago) > >> > >>What editor / development platform are you guys using? > >> > >>I use Eclipse for other languages, but the php plugin is still too > >>pre-alpha. Editplus I really like: lightweight, but still very beefy > >>(regular expression, user definable syntax & auto complete...), but > >>missing cvs, so good only for smaller one-man projects. > >> > >>Now the big challenge: I got an enterprise project (here comes the > >>magic word again -- let's not get religious ;). Big team, close > >>deadlines, parallel development, and I'm very convinced about using > >>PHP for this one. > >> > >>Suggestions on how to build the ultimate development platform? What > >>else besides Zend should I be consider? Anybody used other software > >>development products with PHP (Rational Rose and ClearQuest are on my > >>mind...) > >> > >> > >>Carlos > >> > >> > >> > >> > >> > > > > > > > >> Rudy > >> > >> > > > > > > > >> To: NYPHP Talk > >> > >> > > > > > > > >> cc: > >> > >> > > > > > > > >> 02/13/2003 09:23 Subject: RE: > >> > >> > >[nycphp-talk] Zend offer > > > > > > > >> PM > >> > >> > > > > > > > >> Please respond to > >> > >> > > > > > > > >> talk > >> > >> > > > > > > > > > > > > > > > > > > > >> > >>I've been using EditPlus http://www.editplus.com/, a simple text editor > >> > >> > > > > > > > >>with auto-complete and elementary syntax help. It does not offer any > >>debugging capability. Has anyone used the Zend Studio debugging and if > >> > >> > > > > > > > >>so what does it offer? > >> > >>Rudy > >> > >> > >>-----Original Message----- > >>From: Michael Welsh [mailto:welsh_michael at hotmail.com] > >>Sent: Thursday, February 13, 2003 8:42 AM > >>To: NYPHP Talk > >>Subject: [nycphp-talk] Zend offer > >> > >> > >>The Zend Studio offer looks inviting. > >> > >>I usually do my work in a simple text editor - metapad > >>(http://www.liquidninja.com/metapad/) in windows or Kate and Quanta > >>(http://quanta.sourceforge.net/) in Linux. > >> > >>Do I really need this IDE? I am comfortable in a text editor, but, I'm > >> > >> > > > > > > > >>not a zealot for *the purity* of it. Obviously it is a matter of > >>personal choice. I'm open to opinion/suggestion and would like to hear > >> > >> > > > >>from others. > > > > > >>Then again, who could resist "support your local community at the same > >>time."? Let me reach for my wallet. > >> > >>Michael > >> > >>_________________________________________________________________ > >>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. > >>http://join.msn.com/?page=features/virus > >> > >> > >> > >> > >> > >> > >> > >> > >>--- > >>Incoming mail is certified Virus Free. > >>Checked by AVG anti-virus system (http://www.grisoft.com). > >>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 > >> > >>--- > >>Outgoing mail is certified Virus Free. > >>Checked by AVG anti-virus system (http://www.grisoft.com). > >>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From keremtuzemen at hotmail.com Fri Feb 14 14:04:35 2003 From: keremtuzemen at hotmail.com (Kerem Tuzemen) Date: Fri, 14 Feb 2003 14:04:35 -0500 Subject: RIP problem on Linux Box... References: <200302141817.h1EIHP7G027829@parsec.nyphp.org> Message-ID: Hi all, I don't know if it's OK to post this message here but I've the feeling that some of the Linux gurus in this list might help me. Personally, I'm not a brilliant system admin but I can read and learn. My problem is that a linux box which stays behind our firewall doesn't seem to catch RIP announcements from a VPN Server (win2k) upon client connections whereas all other win boxes do. I've googled the RIP protocol and found that I need to run gated or routed to catch RIP announcements on the network. Is there any other simple way to make a linux box catch those (which doesn't necessitate gated or routed, since I'm not going to use it as a router or gateway, I only want it to update it's routing table) or is it necessary to run a routing deamon? Any docs, urls, suggestions are highly appreciated. Thanks in advance, Kerem Tuzemen From shiflett at php.net Fri Feb 14 14:16:09 2003 From: shiflett at php.net (Chris Shiflett) Date: Fri, 14 Feb 2003 11:16:09 -0800 (PST) Subject: [nycphp-talk] OT: EditPlus In-Reply-To: <200302141811.h1EIAlB2026713@parsec.nyphp.org> Message-ID: <20030214191609.23039.qmail@web14303.mail.yahoo.com> --- "Freedman, Tom S." wrote: > I can't say enough good things about UltraEdit, which sounds like a > competitor for EditPlus (which I've never used). It's definitely a > winner, though. I've used both, and EditPlus doesn't come close to UltraEdit. EditPlus is probably superior to Macromedia stuff, FrontPage, and other editors with more fluff than features. If you're wanting a "Windows-friendly" editor, you'll be hard-pressed to find an equal to UltraEdit. He's also working on a Linux version, so the large number of programmers who keep a Windows box around just to run UltraEdit can get rid of it. :-) Chris From chris at psydeshow.org Fri Feb 14 14:28:39 2003 From: chris at psydeshow.org (Chris Snyder) Date: Fri, 14 Feb 2003 14:28:39 -0500 Subject: [nycphp-talk] OT: EditPlus In-Reply-To: <200302141923.h1EJMsv6000275@parsec.nyphp.org> References: <200302141923.h1EJMsv6000275@parsec.nyphp.org> Message-ID: <3E4D4367.5030806@psydeshow.org> Chris Shiflett wrote, re UltraEdit: >He's also working on a Linux version, so the large number of programmers who >keep a Windows box around just to run UltraEdit can get rid of it. :-) > > > Huzzah! I've been using Quanta Plus on Linux, and I like it but it's a few versions short of perfect. I'm just building the latest version now, though, so maybe it's already there? ;-) chris. -- HIP HOP CLOWN MONTH booth of the day: all day, every day http://hiphopclown.org/berylium/showcase/ From tfreedma at ubspw.com Fri Feb 14 14:55:34 2003 From: tfreedma at ubspw.com (Freedman, Tom S.) Date: Fri, 14 Feb 2003 14:55:34 -0500 Subject: [nycphp-talk] OT: EditPlus Message-ID: Excellent! I just recently installed Linux on my laptop (yes, up till now I've been programming PHP on Windows (with SQL Server for the DB)... so now I'm going LAMP for experimentation purposes and I was trying to figure out what editor to use. I've been using Quanta just 'cause it came with the distro. -----Original Message----- From: Chris Shiflett [mailto:shiflett at php.net] Sent: Friday, February 14, 2003 2:23 PM To: NYPHP Talk Subject: RE: [nycphp-talk] OT: EditPlus --- "Freedman, Tom S." wrote: > I can't say enough good things about UltraEdit, which sounds like a > competitor for EditPlus (which I've never used). It's definitely a > winner, though. I've used both, and EditPlus doesn't come close to UltraEdit. EditPlus is probably superior to Macromedia stuff, FrontPage, and other editors with more fluff than features. If you're wanting a "Windows-friendly" editor, you'll be hard-pressed to find an equal to UltraEdit. He's also working on a Linux version, so the large number of programmers who keep a Windows box around just to run UltraEdit can get rid of it. :-) Chris --- Unsubscribe at http://nyphp.org/list/ --- From nsr81 at ny-tech.net Fri Feb 14 15:31:04 2003 From: nsr81 at ny-tech.net (Nasir Zubair) Date: Fri, 14 Feb 2003 15:31:04 -0500 Subject: [nycphp-talk] OT: EditPlus In-Reply-To: <200302141800.h1EHxp9U025863@parsec.nyphp.org> Message-ID: <000c01c2d467$ff79af40$6401a8c0@nyt001> It sure does. Here is a screen shot. http://area51.ny-tech.net/searchreplace.gif -----Original Message----- From: Webapprentice [mailto:webapprentice at onemain.com] Sent: Friday, February 14, 2003 1:00 PM To: NYPHP Talk Subject: [nycphp-talk] OT: EditPlus Does EditPlus offer global search and replace in multiple files, like Homesite? Nasir Zubair wrote: >I use EditPlus for almost all my PHP stuff. I also use Dreamweaver MX >because of its site management features, that is if the script/project >is more than a few pages. > > > >-----Original Message----- >From: Webapprentice [mailto:webapprentice at onemain.com] >Sent: Friday, February 14, 2003 12:49 PM >To: NYPHP Talk >Subject: Re: [nycphp-talk] Zend offer > > >I use Homesite as my all-purpose editor. > > >Carlos Hoyos wrote: > > > >>This is actually leading to an interesting question (think it was >>already posted a few months ago) >> >>What editor / development platform are you guys using? >> >>I use Eclipse for other languages, but the php plugin is still too >>pre-alpha. Editplus I really like: lightweight, but still very beefy >>(regular expression, user definable syntax & auto complete...), but >>missing cvs, so good only for smaller one-man projects. >> >>Now the big challenge: I got an enterprise project (here comes the >>magic word again -- let's not get religious ;). Big team, close >>deadlines, parallel development, and I'm very convinced about using >>PHP for this one. >> >>Suggestions on how to build the ultimate development platform? What >>else besides Zend should I be consider? Anybody used other software >>development products with PHP (Rational Rose and ClearQuest are on my >>mind...) >> >> >>Carlos >> >> >> >> >> > > > >> Rudy >> >> > > > >> To: NYPHP Talk >> >> > > > >> cc: >> >> > > > >> 02/13/2003 09:23 Subject: RE: >> >> >[nycphp-talk] Zend offer > > > >> PM >> >> > > > >> Please respond to >> >> > > > >> talk >> >> > > > > > > > > > >> >>I've been using EditPlus http://www.editplus.com/, a simple text >>editor >> >> > > > >>with auto-complete and elementary syntax help. It does not offer any >>debugging capability. Has anyone used the Zend Studio debugging and if >> >> > > > >>so what does it offer? >> >>Rudy >> >> >>-----Original Message----- >>From: Michael Welsh [mailto:welsh_michael at hotmail.com] >>Sent: Thursday, February 13, 2003 8:42 AM >>To: NYPHP Talk >>Subject: [nycphp-talk] Zend offer >> >> >>The Zend Studio offer looks inviting. >> >>I usually do my work in a simple text editor - metapad >>(http://www.liquidninja.com/metapad/) in windows or Kate and Quanta >>(http://quanta.sourceforge.net/) in Linux. >> >>Do I really need this IDE? I am comfortable in a text editor, but, >>I'm >> >> > > > >>not a zealot for *the purity* of it. Obviously it is a matter of >>personal choice. I'm open to opinion/suggestion and would like to hear >> >> > >>from others. > > >>Then again, who could resist "support your local community at the same >>time."? Let me reach for my wallet. >> >>Michael >> >>_________________________________________________________________ >>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. >>http://join.msn.com/?page=features/virus >> >> >> >> >> >> >> >> >>--- >>Incoming mail is certified Virus Free. >>Checked by AVG anti-virus system (http://www.grisoft.com). >>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 >> >>--- >>Outgoing mail is certified Virus Free. >>Checked by AVG anti-virus system (http://www.grisoft.com). >>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From nyphp at enobrev.com Fri Feb 14 14:16:56 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 14 Feb 2003 14:16:56 -0500 Subject: [nycphp-talk] Zend offer In-Reply-To: <200302141749.h1EHnA62024035@parsec.nyphp.org> Message-ID: <03d801c2d45d$a6eecc70$96721d18@enobrev> I use HomeSite / CF Studio (basically the same thing) for just about everything. I've tried Zend Studio recently, and although it has a great be it goodies or php, I'm still getting used to the interface. There's something about the display, and I get strange scan lines with it as if it's too much for my system to handle or something. Also, since I've been working with more and more designers lately, I've begun trying DWMX out. They've added quite a bit, and I was fairly impressed. The fact that it requires you to have a site set up blows. It would have been easier if it brought over all my Macromedia FTP and (that other one.. Pre-coffee email) and made sites out of those. But it does have built in CVS and some pretty decent other goodies... All in all it's really a more resource intensive HomeSite. Which is why I go back to HS. I've also tried out NuSphere's PHPEd, which seems very similar, IMO to Zend Studio. The default settings made my scripts look like crap because I use actual tabs. I know it's a no - no, but I like the quickness of it. It's supposed to have some kind of port to their soap class, which I thought was interesting, but I haven't had a chance to dive in that far yet. I need coffee :) Mark -----Original Message----- From: Webapprentice [mailto:webapprentice at onemain.com] Sent: Friday, February 14, 2003 12:49 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Zend offer I use Homesite as my all-purpose editor. Carlos Hoyos wrote: >This is actually leading to an interesting question (think it was >already posted a few months ago) > >What editor / development platform are you guys using? > >I use Eclipse for other languages, but the php plugin is still too >pre-alpha. Editplus I really like: lightweight, but still very beefy >(regular expression, user definable syntax & auto complete...), but >missing cvs, so good only for smaller one-man projects. > >Now the big challenge: I got an enterprise project (here comes the >magic word again -- let's not get religious ;). Big team, close >deadlines, parallel development, and I'm very convinced about using >PHP for this one. > >Suggestions on how to build the ultimate development platform? What >else besides Zend should I be consider? Anybody used other software >development products with PHP (Rational Rose and ClearQuest are on my >mind...) > > >Carlos > > > > Rudy > To: NYPHP Talk > cc: > 02/13/2003 09:23 Subject: RE: [nycphp-talk] Zend offer > PM > Please respond to > talk > > > > > >I've been using EditPlus http://www.editplus.com/, a simple text editor >with auto-complete and elementary syntax help. It does not offer any >debugging capability. Has anyone used the Zend Studio debugging and if >so what does it offer? > >Rudy > > >-----Original Message----- >From: Michael Welsh [mailto:welsh_michael at hotmail.com] >Sent: Thursday, February 13, 2003 8:42 AM >To: NYPHP Talk >Subject: [nycphp-talk] Zend offer > > >The Zend Studio offer looks inviting. > >I usually do my work in a simple text editor - metapad >(http://www.liquidninja.com/metapad/) in windows or Kate and Quanta >(http://quanta.sourceforge.net/) in Linux. > >Do I really need this IDE? I am comfortable in a text editor, but, I'm >not a zealot for *the purity* of it. Obviously it is a matter of >personal choice. I'm open to opinion/suggestion and would like to hear >from others. > >Then again, who could resist "support your local community at the same >time."? Let me reach for my wallet. > >Michael > >_________________________________________________________________ >MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. >http://join.msn.com/?page=features/virus > > > > > > > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From frankaltea at yahoo.com Fri Feb 14 15:45:52 2003 From: frankaltea at yahoo.com (Francisco Altea) Date: Fri, 14 Feb 2003 12:45:52 -0800 (PST) Subject: [nycphp-talk] Zend offer In-Reply-To: <200302141743.h1EHgYEK023317@parsec.nyphp.org> Message-ID: <20030214204552.3006.qmail@web13309.mail.yahoo.com> i use notepad for general web stuff and activestate's komodo for php coz of its function tool tip. --- Carlos Hoyos wrote: > > > This is actually leading to an interesting question > (think it was already > posted a few months ago) > > What editor / development platform are you guys > using? > > I use Eclipse for other languages, but the php > plugin is still too > pre-alpha. > Editplus I really like: lightweight, but still very > beefy (regular > expression, user definable syntax & auto __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com From agfische at email.smith.edu Fri Feb 14 15:45:44 2003 From: agfische at email.smith.edu (Aaron Fischer) Date: Fri, 14 Feb 2003 15:45:44 -0500 Subject: [nycphp-talk] Zend offer In-Reply-To: <200302142046.h1EKjthu005171@parsec.nyphp.org> Message-ID: <498AC3CE-405D-11D7-A66C-0003930D07F2@email.smith.edu> I use HTML-Kit for coding php, html and javascript. Fast and simple. http://www.chami.com/html-kit/ Aaron On Friday, February 14, 2003, at 03:45 PM, Francisco Altea wrote: > i use notepad for general web stuff and activestate's > komodo for php coz of its function tool tip. > > --- Carlos Hoyos wrote: >> >> >> This is actually leading to an interesting question >> (think it was already >> posted a few months ago) >> >> What editor / development platform are you guys >> using? >> >> I use Eclipse for other languages, but the php >> plugin is still too >> pre-alpha. >> Editplus I really like: lightweight, but still very >> beefy (regular >> expression, user definable syntax & auto > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Shopping - Send Flowers for Valentine's Day > http://shopping.yahoo.com > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From mjdewitt at alexcommgrp.com Fri Feb 14 15:58:56 2003 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Fri, 14 Feb 2003 15:58:56 -0500 Subject: [nycphp-talk] RIP problem on Linux Box... Message-ID: Kerem, Perhaps you could just set the linux box's gateway to be a machine/router that does keep up to date with network changes? This begs the question, why doesn't the linux box's current gateway know about these changes? Isn't this typical? Ask one question and get three in return ;) Mike > -----Original Message----- > From: Kerem Tuzemen [SMTP:keremtuzemen at hotmail.com] > Sent: Friday, February 14, 2003 2:05 PM > To: NYPHP Talk > Subject: [nycphp-talk] RIP problem on Linux Box... > > Hi all, > > I don't know if it's OK to post this message here but I've the feeling > that > some of the Linux gurus in this list might help me. > Personally, I'm not a brilliant system admin but I can read and learn. My > problem is that a linux box which stays behind our firewall doesn't seem > to > catch RIP announcements from a VPN Server (win2k) upon client connections > whereas all other win boxes do. > I've googled the RIP protocol and found that I need to run gated or routed > to catch RIP announcements on the network. Is there any other simple way > to > make a linux box catch those (which doesn't necessitate gated or routed, > since I'm not going to use it as a router or gateway, I only want it to > update it's routing table) or is it necessary to run a routing deamon? > > Any docs, urls, suggestions are highly appreciated. > > Thanks in advance, > > Kerem Tuzemen > > > --- Unsubscribe at http://nyphp.org/list/ --- > From webapprentice at onemain.com Fri Feb 14 20:02:49 2003 From: webapprentice at onemain.com (Webapprentice) Date: Fri, 14 Feb 2003 20:02:49 -0500 Subject: [nycphp-talk] OT: EditPlus References: <200302142031.h1EKUolw003237@parsec.nyphp.org> Message-ID: <3E4D91B9.4010402@onemain.com> Does it go into a directory and search and replace files in there? The screenshot does not indicate that. Nasir Zubair wrote: >It sure does. Here is a screen shot. > >http://area51.ny-tech.net/searchreplace.gif > > >-----Original Message----- >From: Webapprentice [mailto:webapprentice at onemain.com] >Sent: Friday, February 14, 2003 1:00 PM >To: NYPHP Talk >Subject: [nycphp-talk] OT: EditPlus > > >Does EditPlus offer global search and replace in multiple files, like >Homesite? > > >Nasir Zubair wrote: > > > >>I use EditPlus for almost all my PHP stuff. I also use Dreamweaver MX >>because of its site management features, that is if the script/project >>is more than a few pages. >> >> >> >>-----Original Message----- >>From: Webapprentice [mailto:webapprentice at onemain.com] >>Sent: Friday, February 14, 2003 12:49 PM >>To: NYPHP Talk >>Subject: Re: [nycphp-talk] Zend offer >> >> >>I use Homesite as my all-purpose editor. >> >> >>Carlos Hoyos wrote: >> >> >> >> >> >>>This is actually leading to an interesting question (think it was >>>already posted a few months ago) >>> >>>What editor / development platform are you guys using? >>> >>>I use Eclipse for other languages, but the php plugin is still too >>>pre-alpha. Editplus I really like: lightweight, but still very beefy >>>(regular expression, user definable syntax & auto complete...), but >>>missing cvs, so good only for smaller one-man projects. >>> >>>Now the big challenge: I got an enterprise project (here comes the >>>magic word again -- let's not get religious ;). Big team, close >>>deadlines, parallel development, and I'm very convinced about using >>>PHP for this one. >>> >>>Suggestions on how to build the ultimate development platform? What >>>else besides Zend should I be consider? Anybody used other software >>>development products with PHP (Rational Rose and ClearQuest are on my >>>mind...) >>> >>> >>>Carlos >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >>> Rudy >>> >>> >>> >>> >> >> >> >> >>> To: NYPHP Talk >>> >>> >>> >>> >> >> >> >> >> >>> cc: >>> >>> >>> >>> >> >> >> >> >>> 02/13/2003 09:23 Subject: RE: >>> >>> >>> >>> >>[nycphp-talk] Zend offer >> >> >> >> >> >>> PM >>> >>> >>> >>> >> >> >> >> >>> Please respond to >>> >>> >>> >>> >> >> >> >> >>> talk >>> >>> >>> >>> >> >> >> >> >> >> >> >> >> >> >>>I've been using EditPlus http://www.editplus.com/, a simple text >>>editor >>> >>> >>> >>> >> >> >> >> >>>with auto-complete and elementary syntax help. It does not offer any >>>debugging capability. Has anyone used the Zend Studio debugging and >>> >>> >if > > >>> >>> >>> >>> >> >> >> >> >>>so what does it offer? >>> >>>Rudy >>> >>> >>>-----Original Message----- >>>From: Michael Welsh [mailto:welsh_michael at hotmail.com] >>>Sent: Thursday, February 13, 2003 8:42 AM >>>To: NYPHP Talk >>>Subject: [nycphp-talk] Zend offer >>> >>> >>>The Zend Studio offer looks inviting. >>> >>>I usually do my work in a simple text editor - metapad >>>(http://www.liquidninja.com/metapad/) in windows or Kate and Quanta >>>(http://quanta.sourceforge.net/) in Linux. >>> >>>Do I really need this IDE? I am comfortable in a text editor, but, >>>I'm >>> >>> >>> >>> >> >> >> >> >>>not a zealot for *the purity* of it. Obviously it is a matter of >>>personal choice. I'm open to opinion/suggestion and would like to >>> >>> >hear > > >>> >>> >>> >>> >>>from others. >> >> >> >> >>>Then again, who could resist "support your local community at the same >>>time."? Let me reach for my wallet. >>> >>>Michael >>> >>>_________________________________________________________________ >>>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. >>>http://join.msn.com/?page=features/virus >>> >>> >>> >>> >>> >>> >>> >>> >>>--- >>>Incoming mail is certified Virus Free. >>>Checked by AVG anti-virus system (http://www.grisoft.com). >>>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 >>> >>>--- >>>Outgoing mail is certified Virus Free. >>>Checked by AVG anti-virus system (http://www.grisoft.com). >>>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > > > > > > > > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > From nsr81 at ny-tech.net Fri Feb 14 20:07:52 2003 From: nsr81 at ny-tech.net (Nasir Zubair) Date: Fri, 14 Feb 2003 20:07:52 -0500 Subject: [nycphp-talk] OT: EditPlus In-Reply-To: <200302150102.h1F11ElU010052@parsec.nyphp.org> Message-ID: <000001c2d48e$aa6697d0$6401a8c0@nyt001> Nope, only opened files. The only editor that I use which has similar functionality is DW MX, you can do a site wide search and replace, but that won't go into a directory either. -----Original Message----- From: Webapprentice [mailto:webapprentice at onemain.com] Sent: Friday, February 14, 2003 8:01 PM To: NYPHP Talk Subject: Re: [nycphp-talk] OT: EditPlus Does it go into a directory and search and replace files in there? The screenshot does not indicate that. Nasir Zubair wrote: >It sure does. Here is a screen shot. > >http://area51.ny-tech.net/searchreplace.gif > > >-----Original Message----- >From: Webapprentice [mailto:webapprentice at onemain.com] >Sent: Friday, February 14, 2003 1:00 PM >To: NYPHP Talk >Subject: [nycphp-talk] OT: EditPlus > > >Does EditPlus offer global search and replace in multiple files, like >Homesite? > > >Nasir Zubair wrote: > > > >>I use EditPlus for almost all my PHP stuff. I also use Dreamweaver MX >>because of its site management features, that is if the script/project >>is more than a few pages. >> >> >> >>-----Original Message----- >>From: Webapprentice [mailto:webapprentice at onemain.com] >>Sent: Friday, February 14, 2003 12:49 PM >>To: NYPHP Talk >>Subject: Re: [nycphp-talk] Zend offer >> >> >>I use Homesite as my all-purpose editor. >> >> >>Carlos Hoyos wrote: >> >> >> >> >> >>>This is actually leading to an interesting question (think it was >>>already posted a few months ago) >>> >>>What editor / development platform are you guys using? >>> >>>I use Eclipse for other languages, but the php plugin is still too >>>pre-alpha. Editplus I really like: lightweight, but still very beefy >>>(regular expression, user definable syntax & auto complete...), but >>>missing cvs, so good only for smaller one-man projects. >>> >>>Now the big challenge: I got an enterprise project (here comes the >>>magic word again -- let's not get religious ;). Big team, close >>>deadlines, parallel development, and I'm very convinced about using >>>PHP for this one. >>> >>>Suggestions on how to build the ultimate development platform? What >>>else besides Zend should I be consider? Anybody used other software >>>development products with PHP (Rational Rose and ClearQuest are on my >>>mind...) >>> >>> >>>Carlos >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >>> Rudy >>> >>> >>> >>> >> >> >> >> >>> To: NYPHP Talk >>> >>> >>> >>> >> >> >> >> >> >>> cc: >>> >>> >>> >>> >> >> >> >> >>> 02/13/2003 09:23 Subject: RE: >>> >>> >>> >>> >>[nycphp-talk] Zend offer >> >> >> >> >> >>> PM >>> >>> >>> >>> >> >> >> >> >>> Please respond to >>> >>> >>> >>> >> >> >> >> >>> talk >>> >>> >>> >>> >> >> >> >> >> >> >> >> >> >> >>>I've been using EditPlus http://www.editplus.com/, a simple text >>>editor >>> >>> >>> >>> >> >> >> >> >>>with auto-complete and elementary syntax help. It does not offer any >>>debugging capability. Has anyone used the Zend Studio debugging and >>> >>> >if > > >>> >>> >>> >>> >> >> >> >> >>>so what does it offer? >>> >>>Rudy >>> >>> >>>-----Original Message----- >>>From: Michael Welsh [mailto:welsh_michael at hotmail.com] >>>Sent: Thursday, February 13, 2003 8:42 AM >>>To: NYPHP Talk >>>Subject: [nycphp-talk] Zend offer >>> >>> >>>The Zend Studio offer looks inviting. >>> >>>I usually do my work in a simple text editor - metapad >>>(http://www.liquidninja.com/metapad/) in windows or Kate and Quanta >>>(http://quanta.sourceforge.net/) in Linux. >>> >>>Do I really need this IDE? I am comfortable in a text editor, but, >>>I'm >>> >>> >>> >>> >> >> >> >> >>>not a zealot for *the purity* of it. Obviously it is a matter of >>>personal choice. I'm open to opinion/suggestion and would like to >>> >>> >hear > > >>> >>> >>> >>> >>>from others. >> >> >> >> >>>Then again, who could resist "support your local community at the >>>same time."? Let me reach for my wallet. >>> >>>Michael >>> >>>_________________________________________________________________ >>>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. >>>http://join.msn.com/?page=features/virus >>> >>> >>> >>> >>> >>> >>> >>> >>>--- >>>Incoming mail is certified Virus Free. >>>Checked by AVG anti-virus system (http://www.grisoft.com). >>>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 >>> >>>--- >>>Outgoing mail is certified Virus Free. >>>Checked by AVG anti-virus system (http://www.grisoft.com). >>>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From webapprentice at onemain.com Fri Feb 14 20:14:40 2003 From: webapprentice at onemain.com (Webapprentice) Date: Fri, 14 Feb 2003 20:14:40 -0500 Subject: [nycphp-talk] OT: EditPlus References: <200302150108.h1F17cm0010792@parsec.nyphp.org> Message-ID: <3E4D9480.6000409@onemain.com> I'll have to stick with Homesite then. :) I just hope Macromedia doesn't discontinue it, given the rise of Dreamweaver MX. Homesite doesn't require a site to be set up. I can make it go into any directory to find the target string. --Stephen Nasir Zubair wrote: >Nope, only opened files. The only editor that I use which has similar >functionality is DW MX, you can do a site wide search and replace, but >that won't go into a directory either. > >-----Original Message----- >From: Webapprentice [mailto:webapprentice at onemain.com] >Sent: Friday, February 14, 2003 8:01 PM >To: NYPHP Talk >Subject: Re: [nycphp-talk] OT: EditPlus > > >Does it go into a directory and search and replace files in there? The >screenshot does not indicate that. > >Nasir Zubair wrote: > > > >>It sure does. Here is a screen shot. >> >>http://area51.ny-tech.net/searchreplace.gif >> >> >>-----Original Message----- >>From: Webapprentice [mailto:webapprentice at onemain.com] >>Sent: Friday, February 14, 2003 1:00 PM >>To: NYPHP Talk >>Subject: [nycphp-talk] OT: EditPlus >> >> >>Does EditPlus offer global search and replace in multiple files, like >>Homesite? >> >> >>Nasir Zubair wrote: >> >> >> >> >> >>>I use EditPlus for almost all my PHP stuff. I also use Dreamweaver MX >>>because of its site management features, that is if the script/project >>> >>> > > > >>>is more than a few pages. >>> >>> >>> >>>-----Original Message----- >>>From: Webapprentice [mailto:webapprentice at onemain.com] >>>Sent: Friday, February 14, 2003 12:49 PM >>>To: NYPHP Talk >>>Subject: Re: [nycphp-talk] Zend offer >>> >>> >>>I use Homesite as my all-purpose editor. >>> >>> >>>Carlos Hoyos wrote: >>> >>> >>> >>> >>> >>> >>> >>>>This is actually leading to an interesting question (think it was >>>>already posted a few months ago) >>>> >>>>What editor / development platform are you guys using? >>>> >>>>I use Eclipse for other languages, but the php plugin is still too >>>>pre-alpha. Editplus I really like: lightweight, but still very beefy >>>>(regular expression, user definable syntax & auto complete...), but >>>>missing cvs, so good only for smaller one-man projects. >>>> >>>>Now the big challenge: I got an enterprise project (here comes the >>>>magic word again -- let's not get religious ;). Big team, close >>>>deadlines, parallel development, and I'm very convinced about using >>>>PHP for this one. >>>> >>>>Suggestions on how to build the ultimate development platform? What >>>>else besides Zend should I be consider? Anybody used other software >>>>development products with PHP (Rational Rose and ClearQuest are on my >>>>mind...) >>>> >>>> >>>>Carlos >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>> Rudy >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>> To: NYPHP Talk >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>>> cc: >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>> 02/13/2003 09:23 Subject: RE: >>>> >>>> >>>> >>>> >>>> >>>> >>>[nycphp-talk] Zend offer >>> >>> >>> >>> >>> >>> >>> >>>> PM >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>> Please respond to >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>> talk >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>>I've been using EditPlus http://www.editplus.com/, a simple text >>>>editor >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>>with auto-complete and elementary syntax help. It does not offer any >>>> >>>> > > > >>>>debugging capability. Has anyone used the Zend Studio debugging and >>>> >>>> >>>> >>>> >>if >> >> >> >> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>>so what does it offer? >>>> >>>>Rudy >>>> >>>> >>>>-----Original Message----- >>>>From: Michael Welsh [mailto:welsh_michael at hotmail.com] >>>>Sent: Thursday, February 13, 2003 8:42 AM >>>>To: NYPHP Talk >>>>Subject: [nycphp-talk] Zend offer >>>> >>>> >>>>The Zend Studio offer looks inviting. >>>> >>>>I usually do my work in a simple text editor - metapad >>>>(http://www.liquidninja.com/metapad/) in windows or Kate and Quanta >>>>(http://quanta.sourceforge.net/) in Linux. >>>> >>>>Do I really need this IDE? I am comfortable in a text editor, but, >>>>I'm >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>>not a zealot for *the purity* of it. Obviously it is a matter of >>>>personal choice. I'm open to opinion/suggestion and would like to >>>> >>>> >>>> >>>> >>hear >> >> >> >> >>>> >>>> >>>> >>>> >>>> >>>> >>>>from others. >>> >>> >>> >>> >>> >>> >>>>Then again, who could resist "support your local community at the >>>>same time."? Let me reach for my wallet. >>>> >>>>Michael >>>> >>>>_________________________________________________________________ >>>>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. >>>>http://join.msn.com/?page=features/virus >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>--- >>>>Incoming mail is certified Virus Free. >>>>Checked by AVG anti-virus system (http://www.grisoft.com). >>>>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 >>>> >>>>--- >>>>Outgoing mail is certified Virus Free. >>>>Checked by AVG anti-virus system (http://www.grisoft.com). >>>>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > > > > > > > > > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > > > > From mike at mike-clark.org Fri Feb 14 20:12:19 2003 From: mike at mike-clark.org (Mike Clark) Date: 14 Feb 2003 20:12:19 -0500 Subject: [nycphp-talk] OT: EditPlus In-Reply-To: <200302141956.h1EJtetM001918@parsec.nyphp.org> References: <200302141956.h1EJtetM001918@parsec.nyphp.org> Message-ID: <1045271538.1148.13.camel@dhcppc1> Ive tried em all, editplus, ultraedit, synedit plus bluefish and quanta plus for linux and until recently I didn't find an editor I really liked - they all seemed to lack something. And then I found Jedit - http://www.jedit.org/ and I haven't looked back since. It offers everything I ever wanted, very fast and available for windows and linux. A really nice feature it offers is folding of functions and classes - really slick. Another editor worth mentioning is phpedit - currently only for windows. http://www.phpedit.net/ well thats my too cents On Fri, 2003-02-14 at 14:55, Freedman, Tom S. wrote: > Excellent! I just recently installed Linux on my laptop (yes, up till now > I've been programming PHP on Windows (with SQL Server for the DB)... so now > I'm going LAMP for experimentation purposes and I was trying to figure out > what editor to use. I've been using Quanta just 'cause it came with the > distro. > > -----Original Message----- > From: Chris Shiflett [mailto:shiflett at php.net] > Sent: Friday, February 14, 2003 2:23 PM > To: NYPHP Talk > Subject: RE: [nycphp-talk] OT: EditPlus > > > --- "Freedman, Tom S." wrote: > > I can't say enough good things about UltraEdit, which sounds like a > > competitor for EditPlus (which I've never used). It's definitely a > > winner, though. > > I've used both, and EditPlus doesn't come close to UltraEdit. EditPlus is > probably superior to Macromedia stuff, FrontPage, and other editors with > more > fluff than features. If you're wanting a "Windows-friendly" editor, you'll > be > hard-pressed to find an equal to UltraEdit. > > He's also working on a Linux version, so the large number of programmers who > keep a Windows box around just to run UltraEdit can get rid of it. :-) > > Chris > > From nyphp at enobrev.com Fri Feb 14 20:26:49 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 14 Feb 2003 20:26:49 -0500 Subject: [nycphp-talk] OT: EditPlus In-Reply-To: <200302150113.h1F1D3i0011503@parsec.nyphp.org> Message-ID: <040f01c2d491$5274adc0$96721d18@enobrev> Yeah, I'm hoping they don't discontinue HomeSite as well.. I live by it (literally). The regex or even plain search and replace via directory, project, etc is incredible.. It seems like Macro stopped putting much attention towards it.. -Mark -----Original Message----- From: Webapprentice [mailto:webapprentice at onemain.com] Sent: Friday, February 14, 2003 8:13 PM To: NYPHP Talk Subject: Re: [nycphp-talk] OT: EditPlus I'll have to stick with Homesite then. :) I just hope Macromedia doesn't discontinue it, given the rise of Dreamweaver MX. Homesite doesn't require a site to be set up. I can make it go into any directory to find the target string. --Stephen Nasir Zubair wrote: >Nope, only opened files. The only editor that I use which has similar >functionality is DW MX, you can do a site wide search and replace, but >that won't go into a directory either. > >-----Original Message----- >From: Webapprentice [mailto:webapprentice at onemain.com] >Sent: Friday, February 14, 2003 8:01 PM >To: NYPHP Talk >Subject: Re: [nycphp-talk] OT: EditPlus > > >Does it go into a directory and search and replace files in there? The >screenshot does not indicate that. > >Nasir Zubair wrote: > > > >>It sure does. Here is a screen shot. >> >>http://area51.ny-tech.net/searchreplace.gif >> >> >>-----Original Message----- >>From: Webapprentice [mailto:webapprentice at onemain.com] >>Sent: Friday, February 14, 2003 1:00 PM >>To: NYPHP Talk >>Subject: [nycphp-talk] OT: EditPlus >> >> >>Does EditPlus offer global search and replace in multiple files, like >>Homesite? >> >> >>Nasir Zubair wrote: >> >> >> >> >> >>>I use EditPlus for almost all my PHP stuff. I also use Dreamweaver MX >>>because of its site management features, that is if the >>>script/project >>> >>> > > > >>>is more than a few pages. >>> >>> >>> >>>-----Original Message----- >>>From: Webapprentice [mailto:webapprentice at onemain.com] >>>Sent: Friday, February 14, 2003 12:49 PM >>>To: NYPHP Talk >>>Subject: Re: [nycphp-talk] Zend offer >>> >>> >>>I use Homesite as my all-purpose editor. >>> >>> >>>Carlos Hoyos wrote: >>> >>> >>> >>> >>> >>> >>> >>>>This is actually leading to an interesting question (think it was >>>>already posted a few months ago) >>>> >>>>What editor / development platform are you guys using? >>>> >>>>I use Eclipse for other languages, but the php plugin is still too >>>>pre-alpha. Editplus I really like: lightweight, but still very beefy >>>>(regular expression, user definable syntax & auto complete...), but >>>>missing cvs, so good only for smaller one-man projects. >>>> >>>>Now the big challenge: I got an enterprise project (here comes the >>>>magic word again -- let's not get religious ;). Big team, close >>>>deadlines, parallel development, and I'm very convinced about using >>>>PHP for this one. >>>> >>>>Suggestions on how to build the ultimate development platform? What >>>>else besides Zend should I be consider? Anybody used other software >>>>development products with PHP (Rational Rose and ClearQuest are on my >>>>mind...) >>>> >>>> >>>>Carlos >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>> Rudy >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>> To: NYPHP Talk >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>>> cc: >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>> 02/13/2003 09:23 Subject: RE: >>>> >>>> >>>> >>>> >>>> >>>> >>>[nycphp-talk] Zend offer >>> >>> >>> >>> >>> >>> >>> >>>> PM >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>> Please respond to >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>> talk >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>>>I've been using EditPlus http://www.editplus.com/, a simple text >>>>editor >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>>with auto-complete and elementary syntax help. It does not offer >>>>any >>>> >>>> > > > >>>>debugging capability. Has anyone used the Zend Studio debugging and >>>> >>>> >>>> >>>> >>if >> >> >> >> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>>so what does it offer? >>>> >>>>Rudy >>>> >>>> >>>>-----Original Message----- >>>>From: Michael Welsh [mailto:welsh_michael at hotmail.com] >>>>Sent: Thursday, February 13, 2003 8:42 AM >>>>To: NYPHP Talk >>>>Subject: [nycphp-talk] Zend offer >>>> >>>> >>>>The Zend Studio offer looks inviting. >>>> >>>>I usually do my work in a simple text editor - metapad >>>>(http://www.liquidninja.com/metapad/) in windows or Kate and Quanta >>>>(http://quanta.sourceforge.net/) in Linux. >>>> >>>>Do I really need this IDE? I am comfortable in a text editor, but, >>>>I'm >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>>>not a zealot for *the purity* of it. Obviously it is a matter of >>>>personal choice. I'm open to opinion/suggestion and would like to >>>> >>>> >>>> >>>> >>hear >> >> >> >> >>>> >>>> >>>> >>>> >>>> >>>> >>>>from others. >>> >>> >>> >>> >>> >>> >>>>Then again, who could resist "support your local community at the >>>>same time."? Let me reach for my wallet. >>>> >>>>Michael >>>> >>>>_________________________________________________________________ >>>>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. >>>>http://join.msn.com/?page=features/virus >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>--- >>>>Incoming mail is certified Virus Free. >>>>Checked by AVG anti-virus system (http://www.grisoft.com). >>>>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 >>>> >>>>--- >>>>Outgoing mail is certified Virus Free. >>>>Checked by AVG anti-virus system (http://www.grisoft.com). >>>>Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/03 >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From chun_lam at hotmail.com Sat Feb 15 03:53:02 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Sat, 15 Feb 2003 03:53:02 -0500 Subject: [nycphp-talk] flush usage Message-ID: try setting "WriteBufSize" to 2500. This is the number of byte buffer in Apache before sending... in the httpd.conf ----Original Message Follows---- From: Carlos Hoyos Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] flush usage Date: Thu, 13 Feb 2003 13:26:11 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc8-f3.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 13 Feb 2003 10:26:34 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h1DIQB7e091109for ; Thu, 13 Feb 2003 13:26:33 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200302131826.h1DIQB7e091109 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 13 Feb 2003 18:26:35.0113 (UTC) FILETIME=[7080BD90:01C2D38D] Hi, (sorry if this gets posted twice, I had sent it on Monday but never saw it on the list.) I have a page that deals with a lengthy process, so I'm using flush to "push" the content as it's processed and give the user a feeling of page "in process": Something like this #start initialization(); foreach($urlList as $url){ // execute a lengthy process... doLengthyProcess(); printResults(); // flush to get the "partial" results displayed. print str_repeat(" ", 3000) . "\ "; flush(); } restOfScript(); But it's not working... blank page until the end of execution. I believe it's more of a server / client issue (rather than php), and have to do some homework on this; but I thought it would be nice to see if anybody wants to share ideas or suggestions on how you've worked with this situations in the past. I'm running php4.3.0, IBMHTTPServer (ibm's apache build), no mod_gzip, over Linux... testing on IE 5.0, Netscape 4.7 and Opera 6.0... all failed. The 3000 in the str_repeat is just any number... just trying to fill any buffers that might be preventing this from working properly. txs, Carlos --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From MLynn at exchange.ml.com Sat Feb 15 11:05:34 2003 From: MLynn at exchange.ml.com (Lynn, Michael (DCS)) Date: Sat, 15 Feb 2003 11:05:34 -0500 Subject: [nycphp-talk] Replacing a string within many tables, unknown c olumns Message-ID: <8FA07D8665A9D511B80E00B0D068A15105D21084@ehope16.hew.us.ml.com> Here's the finished code - I've edited to remove some of my site specific stuff... But basically you need to assign: $_DB_host $_DB_user $_DB_name $old_str $new_str And away you go... Thanks for the great suggestions. As always, suggestions for improved efficiency greatly appreciated. An obvious change is checking for field_type and only searching fields that are char, varchar, string, (and possible blob). ---8<--- $dbLink = mysql_pconnect("$_DB_host","$_DB_user",""); $tables = mysql_list_tables("$_DB_name",$dbLink); // Get a list of tables while ($row = mysql_fetch_row($tables)) { $table_name = $row[0]; // Get the current table name $fields = mysql_list_fields("$_DB_name","$table_name",$dbLink); // Get a list of all columns in table for($i = 0; $i < mysql_num_fields($fields); $i++) { $column=mysql_field_name($fields,$i); // Get current column name $sql="select * from $table_name where $column like '%$old_str%'"; $result=mysql_query($sql); while($a=mysql_fetch_array($result)) { $old_text = $a["$column"]; // Get the current text value from the column $new_text=str_replace($old_str,$new_str,$old_text); // Assign new_text using replacement $sql = "update $table_name set $column='$new_text' where $column='$old_text'"; // Update the database with new $r=mysql_query($sql); // do it. } } } ---8<--- -----Original Message----- From: Andrew M. Yochum [mailto:andrew at digitalpulp.com] Sent: Friday, February 14, 2003 11:09 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Replacing a string within many tables, unknown columns Here's one way of accomplishing this... 1. Use mysql_list_tables to grab a list of tables. 2. Use mysql_list_fields + mysql_num_fields to grab a list of fields per table. 3. Use mysql_field_type to find the fields of the type you want to manipulate (char, varchar, text, etc.) 3. Compile an update statement using the mysql "replace" function to perform the search an replace. Something like: update thetable set data = replace(data,'old_string','new_string'); Another way might be to do a mysqldump of the DB, replace strings in that file, and load the edited file into the production DB. Hope that helps. Andrew On Fri, 14 Feb 2003, Lynn, Michael wrote: > Wondering if anyones come across a similar problem... Probably more of > a mysql question - but I'm trying to solve the problem using php. > > I need to be able to replace every occurance of a string in many > tables, many columns. The string appears in tables in various places > and usually embedded in a string type or var type column... The string > will not be the entire contents of the column so a replace won't work. > > Eg: my development database contains url links to the development web > site. When I copy the tables to production, I want to search and > replace every occurance of the development urls with production urls > throughout the entire database. > > Thanks in advance. > > Regards, > Mike > > > > > > -- Andrew Yochum Digital Pulp, Inc. 212.679.0676x255 andrew at digitalpulp.com --- Unsubscribe at http://nyphp.org/list/ --- From andrew at digitalpulp.com Sat Feb 15 11:31:35 2003 From: andrew at digitalpulp.com (Andrew M. Yochum) Date: Sat, 15 Feb 2003 11:31:35 -0500 (EST) Subject: [nycphp-talk] Replacing a string within many tables, unknown c olumns In-Reply-To: <200302151605.h1FG5chG024084@parsec.nyphp.org> Message-ID: Any reason not use the mysql replace function? You should get a considerable speed increase when dealing with a lot of rows, and should give you the same behaviour. The idea is to replace the select statement you have and the two sql statements in the two inner-loops with a single update statement, leaving the grunt work to the DB server. I have done it below without a where clause on the update, but that might also be something to add. This is basically what I had in mind (haven't tested it, just reworked your code): $dbLink = mysql_pconnect("$_DB_host","$_DB_user",""); $tables = mysql_list_tables("$_DB_name",$dbLink); // Get a list of tables while ($row = mysql_fetch_row($tables)) { $table_name = $row[0]; // Get the current table name $fields = mysql_list_fields("$_DB_name","$table_name",$dbLink); // Get a list of all columns in table $set_clause = array(); for($i = 0; $i < mysql_num_fields($fields); $i++) { $column=mysql_field_name($fields,$i); // Get current column name $set_clause[] = "$column = replace($column," . mysql_escape_string($old_str) . ", " . mysql_escape_string($new_str). ")"; } $sql = "update $table_name set " . join(', ', $set_clause); $result=mysql_query($sql); if (! $result) print "Query failed: $sql\ "; } Andrew On Sat, 15 Feb 2003, Lynn, Michael wrote: > Here's the finished code - I've edited to remove some of my site specific stuff... But basically you need to assign: > > $_DB_host > $_DB_user > $_DB_name > $old_str > $new_str > > And away you go... Thanks for the great suggestions. As always, suggestions for improved efficiency greatly appreciated. > > An obvious change is checking for field_type and only searching fields that are char, varchar, string, (and possible blob). > > ---8<--- > $dbLink = mysql_pconnect("$_DB_host","$_DB_user",""); > $tables = mysql_list_tables("$_DB_name",$dbLink); // Get a list of tables > while ($row = mysql_fetch_row($tables)) { > $table_name = $row[0]; // Get the current table name > $fields = mysql_list_fields("$_DB_name","$table_name",$dbLink); // Get a list of all columns in table > for($i = 0; $i < mysql_num_fields($fields); $i++) { > $column=mysql_field_name($fields,$i); // Get current column name > $sql="select * from $table_name where $column like '%$old_str%'"; > $result=mysql_query($sql); > while($a=mysql_fetch_array($result)) { > $old_text = $a["$column"]; // Get the current text value from the column > $new_text=str_replace($old_str,$new_str,$old_text); // Assign new_text using replacement > $sql = "update $table_name set $column='$new_text' where $column='$old_text'"; // Update the database with new > $r=mysql_query($sql); // do it. > } > } > } > > ---8<--- > -----Original Message----- > From: Andrew M. Yochum [mailto:andrew at digitalpulp.com] > Sent: Friday, February 14, 2003 11:09 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Replacing a string within many tables, unknown columns > > > Here's one way of accomplishing this... > > 1. Use mysql_list_tables to grab a list of tables. > > 2. Use mysql_list_fields + mysql_num_fields to grab a list of fields per table. > > 3. Use mysql_field_type to find the fields of the type you want to manipulate (char, varchar, text, etc.) > > 3. Compile an update statement using the mysql "replace" function to perform the search an replace. Something like: > update thetable set data = replace(data,'old_string','new_string'); > > Another way might be to do a mysqldump of the DB, replace strings in that file, and load the edited file into the production DB. > > Hope that helps. > > Andrew > > On Fri, 14 Feb 2003, Lynn, Michael wrote: > > > Wondering if anyones come across a similar problem... Probably more of > > a mysql question - but I'm trying to solve the problem using php. > > > > I need to be able to replace every occurance of a string in many > > tables, many columns. The string appears in tables in various places > > and usually embedded in a string type or var type column... The string > > will not be the entire contents of the column so a replace won't work. > > > > Eg: my development database contains url links to the development web > > site. When I copy the tables to production, I want to search and > > replace every occurance of the development urls with production urls > > throughout the entire database. > > > > Thanks in advance. > > > > Regards, > > Mike > > > > > > > > > > > > > > From daniel at websapp.com Sat Feb 15 16:05:29 2003 From: daniel at websapp.com (Daniel Kushner) Date: Sat, 15 Feb 2003 16:05:29 -0500 Subject: Where is the MSDN? Message-ID: We have just received an update from Microsoft. Who has the MSDN DVD's? Daniel Kushner Vice President, New York PHP http://nyphp.org daniel at nyphp.org From zaunere at yahoo.com Sun Feb 16 16:55:32 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Sun, 16 Feb 2003 13:55:32 -0800 (PST) Subject: [nycphp-talk] OT: EditPlus In-Reply-To: <200302141811.h1EIAlDa026713@parsec.nyphp.org> Message-ID: <20030216215532.96426.qmail@web12807.mail.yahoo.com> --- "Freedman, Tom S." wrote: > I can't say enough good things about UltraEdit, which sounds like a > competitor for EditPlus (which I've never used). It's definitely a winner, > though. Same here. UltraEdit is my editor of choice, and with SFTP support and great PHP highlighting/completion in the new version it pretty much covers all angles for an editor. Zend Studio, IMHO, is a differant animal, as it's an IDE. I don't like the editing interface as much as UltraEdit (which I even use for binary files at times), but for all things debugging and PHP, Studio is unparalleled as a PHP IDE. It's saved me a lot of pain debugging some nasty loops and the like. H From zaunere at yahoo.com Sun Feb 16 17:03:44 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Sun, 16 Feb 2003 14:03:44 -0800 (PST) Subject: [nycphp-talk] RIP problem on Linux Box... In-Reply-To: <200302141905.h1EJ4cDa030082@parsec.nyphp.org> Message-ID: <20030216220344.74531.qmail@web12806.mail.yahoo.com> --- Kerem Tuzemen wrote: > Hi all, > > I don't know if it's OK to post this message here but I've the feeling that > some of the Linux gurus in this list might help me. > Personally, I'm not a brilliant system admin but I can read and learn. My > problem is that a linux box which stays behind our firewall doesn't seem to > catch RIP announcements from a VPN Server (win2k) upon client connections > whereas all other win boxes do. > I've googled the RIP protocol and found that I need to run gated or routed > to catch RIP announcements on the network. Is there any other simple way to > make a linux box catch those (which doesn't necessitate gated or routed, > since I'm not going to use it as a router or gateway, I only want it to > update it's routing table) or is it necessary to run a routing deamon? I haven't done routing in ages, but IIRC you'll need a route daemon to respond to RIP broadcasts, and if I'm not mistaken routed is favored over gated. > Any docs, urls, suggestions are highly appreciated. http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/index.html http://www.linux-mag.com/2001-05/routing_04.html http://lartc.org/ and I know a lot of the guys at http://nylug.org do this type of work and have a very helpful mailing list. H From tech_learner at yahoo.com Mon Feb 17 03:30:14 2003 From: tech_learner at yahoo.com (Tracy) Date: Mon, 17 Feb 2003 00:30:14 -0800 (PST) Subject: [nycphp-talk] "No input file specified." In-Reply-To: <200302140346.h1E3iDEI006514@parsec.nyphp.org> Message-ID: <20030217083014.16915.qmail@web14301.mail.yahoo.com> Hi, i have encountered the same problem. but since i had moved the file from the place, i entered the new url. i too would like to know how to handle errors. so in cse u find the solution first, let me know too. n r u using CGI from the command line or u r following the typical CGI method, have a web page do the CGI? i have posted twice on this isue, but havent come across the soultion. can i ask u about it? Thz Tracy Nasir Zubair wrote:Hi All, I just installed PHP 4.3.0 on my Win XP system. I'm using CGI flavor with Apache. Ever since I installed it, instead of getting an apache 404 page for non-existing php files, I get "No input file specified." from PHP. Has anyone encoutered it before, if so how to fix it? Thanks. - nasir --- Unsubscribe at http://nyphp.org/list/ --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at nyphp.org Mon Feb 17 13:19:17 2003 From: hans at nyphp.org (Hans Zaunere) Date: Mon, 17 Feb 2003 10:19:17 -0800 (PST) Subject: Fwd: [PHP-DEV] PHP Security Advisory: CGI vulnerability in PHP version 4.3.0 Message-ID: <20030217181917.66427.qmail@web12804.mail.yahoo.com> --- Jani Taskinen wrote: > Date: Mon, 17 Feb 2003 20:01:14 +0200 (EET) > From: Jani Taskinen > To: php-announce at lists.php.net, , > > Subject: [PHP-DEV] PHP Security Advisory: CGI vulnerability in PHP version > 4.3.0 > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > PHP Security Advisory: CGI vulnerability in PHP version 4.3.0 > > Issued on: February 17, 2003 > Software: PHP/CGI version 4.3.0 > Platforms: All > > > The PHP Group has learned of a serious security vulnerability in > the CGI SAPI of PHP version 4.3.0. > > > Description > > PHP contains code for preventing direct access to the CGI binary with > configure option "--enable-force-cgi-redirect" and php.ini option > "cgi.force_redirect". In PHP 4.3.0 there is a bug which renders these > options useless. > > NOTE: This bug does NOT affect any of the other SAPI modules. > (such as the Apache or ISAPI modules, etc.) > > > Impact > > Anyone with access to websites hosted on a web server which employs > the CGI module may exploit this vulnerability to gain access to any file > readable by the user under which the webserver runs. > > A remote attacker could also trick PHP into executing arbitrary PHP code > > if attacker is able to inject the code into files accessible by the CGI. > > This could be for example the web server access-logs. > > > Solution > > The PHP Group has released a new PHP version, 4.3.1, which incorporates > a fix for the vulnerability. All users of affected PHP versions are > encouraged to upgrade to this latest version. The downloads web site at > > http://www.php.net/downloads.php > > has the new 4.3.1 source tarballs, Windows binaries and source patch > from 4.3.0 available for download. You will only need to upgrade if > you're using the CGI module of PHP 4.3.0. There are no other bugfixes > contained in this release. > > > Workaround > > None. > > > Credits > > The PHP Group would like to thank Kosmas Skiadopoulos for discovering > this vulnerability. > > > Copyright (c) 2003 The PHP Group. > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE+USOr/HlsOzK2WlERAtLKAJ9GPbPt6Vg77zIcPTGKh78WofmmeACgneDV > tUERfwp/RXtcH13vdv0CGGY= > =rYm5 > -----END PGP SIGNATURE----- > > > > -- > PHP Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From brian at preston-campbell.com Tue Feb 18 10:02:32 2003 From: brian at preston-campbell.com (Brian) Date: Tue, 18 Feb 2003 10:02:32 -0500 Subject: uploads In-Reply-To: <200302131927.h1DJQqAY097516@parsec.nyphp.org> References: <200302131927.h1DJQqAY097516@parsec.nyphp.org> Message-ID: <200302181002.32207.brian@preston-campbell.com> Anyone know what would have changed in 4.3.0 that would hinder my attempts to upload files with scripts that worked in previous versions? I had already replaced $_FILES with $HTTP_POST_FILES so that is not causing the problems. I have about 6 sites with the same host that utilize the same script so it is a bit urgent. It appears that the sysadmin performed a standard installation. Safe mode is off, register globals is on. AFAIK these did not change since succesful use of the code. Brian From chris at psydeshow.org Tue Feb 18 12:18:36 2003 From: chris at psydeshow.org (Chris Snyder) Date: Tue, 18 Feb 2003 12:18:36 -0500 Subject: fopen() wrappers and timeouts Message-ID: <3E526AEC.4050204@psydeshow.org> Hi folks, does anyone know of a way to cause something like fopen("http://example.com/") to time out after, say 5 seconds? chris. From hans at nyphp.org Wed Feb 19 10:26:07 2003 From: hans at nyphp.org (Hans Zaunere) Date: Wed, 19 Feb 2003 07:26:07 -0800 (PST) Subject: Fwd: [nylug-announce] TODAY! NY Linux Users Grp. Feb. Meeting 2/19 Mozilla, Mozdev Collaborative Software Development Message-ID: <20030219152607.2671.qmail@web12808.mail.yahoo.com> --- Ron Guerin wrote: > From: Ron Guerin > To: NYLUG Announcements > Subject: [nylug-announce] TODAY! NY Linux Users Grp. Feb. Meeting 2/19 > Mozilla, Mozdev Collaborative Software Development > Date: 19 Feb 2003 14:45:00 -0000 > > The New York Linux Users Group presents > > Pete Collins & Joshua Lerner > -on- > Mozilla, Mozdev Collaborative Software Development > > > February 19, 2003 > Wednesday > 6:30pm-8:00pm > IBM Headquarters Building > 590 Madison Avenue at 57th Street > 9th Floor, home to the IBM Linux Center of Competency > > ** RSVP Instructions** > Unless you have already rsvp'ed for a prior meeting, everyone > should RSVP to attend. http://rsvp.nylug.org > Check in with photo ID at the lobby for badge and room number. > > Mozilla: > Mozilla! Mozilla!...let me count the ways...to develop my > application in the next few days...Will visit the Mozdev and > contemplate ideas...and break for a low-calorie meal of tortillas... > > How inspired are you to develop Mozilla applications? Are you as > inpired as Pete and Josh the founding partners of Mozdev.org? Don't > know much about developing cross platform applications with Mozilla? > Then, please, join us as Pete and Josh speak about several topics > that are sure to inspire the Mozilla developer in you. > > Here's a topic breakdown: > > * Mozilla (Pete Collins) > + Overview of the Mozilla architecure > + Web technologies in cross platform application development > + Sample Hello World Mozilla application > > * Mozdev (Pete Collins, Joshua Lerner) > + Overview of the Mozdev.org > + A little history > + Current status of Mozdev > + The future of Mozdev > > * Hovercraft (Pete Collins, Joshua Lerner) > + An Easy-to-install open source collaboration server > + Overview > + Demo (Get Your Hovercraft Demo CD!!!) > > About Pete Collins: > Pete Collins got involved with the Mozilla project in April 99 as a > contributor to the editor module. He was also the first external > developer to start documenting XUL. His initial efforts were a > remote, web enabled script editor and a community driven rewrite of > the existing Mozilla UI. A project later named Aphrodite. > > He is the co-founder of mozdev.org a site dedicated to Mozilla based > projects. He is a regular Mozilla committer and owner of various > Mozdev projects including jslib, zptk and Chameleon. > > Currently Pete is a co-founder of Mozdev Group Inc. which focuses on > Mozilla development and the development of Hovercraft. > > About Joshua Lerner: > Joshua Lerner has been online since his undergraduate physics days, > circa 1991. Since then, he's worked as a system administrator, > programmer, and entrepreneur. > > In 1998, Josh co-founded a web consultancy called Alphanumerica, > where open source software was used almost exclusively and suggested > to clients at every available opportunity. Alphanumerica sponsored a > number of early Mozilla projects as well as the first Mozilla > Developer Merting, which was held at Netscape's offices in > California. The company was sold to San Francisco-based CollabNet in > August 2000. > > Josh is the other co-founder of Mozdev Group. > > For more information, visit: > http://aprhodite.mozdev.org/ > http://www.mozdev.org > http://hovercraft.mozdev.org > http://www.oreilly.com/catalog/mozilla/index.html > > About Mordy Ovits: > Mordy spent three years as a cryptographic engineer, before moving > into security consulting with Internet Security Systems.? He is > currently employed at a major financial firm as a Network and > Information Security Engineer. > > Free Stuff! > Swag of undetermined value and quantity may be distributed on a > first-come, first-served basis. Arrive early for the best selection > > Keysignings > Immediately after the presentation and continuing at the Pig 'n' > Whistle, we will be gathering for a keysigning. So for those who > > have keys already, please remember to bring hard-copy printouts of > your 40-character key fingerprint. If you haven't created a key yet, > > our howto docs are posted here: http://www.nylug.org/keys > > Stammtisch > And then after the meeting... Join us around 8:15pm or so at the > Pig 'n' Whistle, 922 3rd Ave. between 55th & 56th Streets. > Next to the Old Stand (closed). > > http://www.pignwhistleon3.com/ > > Please see our home page at http://www.nylug.org for the HTMLized > version of this announcement, our archives, and a lot of other > good stuff. > > Monthly Reminder! > Please read the NYLUG-Talk Posting Guidelines at: > http://www.nylug.org/mlistguide/ > > ________________________________________________________________________ > February 2003 - The New York Linux Users Group, NYLUG.org > > Special thanks to Monjay Settro for preparing this announcement! ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From danielc at analysisandsolutions.com Wed Feb 19 11:44:42 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Wed, 19 Feb 2003 11:44:42 -0500 Subject: [nycphp-talk] uploads In-Reply-To: <200302181702.h1IH2BJR001228@parsec.nyphp.org> References: <200302181702.h1IH2BJR001228@parsec.nyphp.org> Message-ID: <20030219164442.GA28380@panix.com> Hi Brian: On Tue, Feb 18, 2003 at 12:02:11PM -0500, Brian wrote: > Anyone know what would have changed in 4.3.0 that would hinder my > attempts to > upload files with scripts that worked in previous versions? > > I had already replaced $_FILES with $HTTP_POST_FILES That should be the other way around. $_FILES is the thing to use. Anyway, if you're using the Apache Module version, the required permissions on directories has changed. They need to be world readable and executable (chmod 705). Perhaps this is is your difficulty? Enjoy, --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From brian at preston-campbell.com Wed Feb 19 11:59:41 2003 From: brian at preston-campbell.com (Brian) Date: Wed, 19 Feb 2003 11:59:41 -0500 Subject: [nycphp-talk] uploads In-Reply-To: <200302191645.h1JGiir2012541@parsec.nyphp.org> References: <200302191645.h1JGiir2012541@parsec.nyphp.org> Message-ID: <200302191159.41553.brian@preston-campbell.com> I left them as $_FILES but meant to say I tried $HTTP_POST_FILES to see if that had any effect. The odd thing is that I am not getting any errors when I upload a file. In the upload script I am checking that a file was uploaded, the type of file uploaded, the size, etc and if a file in the destination directory already has the same name as the file being uploaded. The only time I get any type of error is when I am trying to upload a file with the same name as one in the directory. According to PHP, the file upload is taking place. The database info reflects that as well, as nothing is written to it until the uploaded file is verified. Odd. I have contacted the sysadmin and am awaiting a response. I am hoping to resolve the issue myself but this may not be possible. Also, I have not been able to reproduce the situation on my local machine (LAMP with PHP 4.3.0, same as the host server). Brian On Wednesday 19 February 2003 11:44 am, Analysis & Solutions wrote: > Hi Brian: > > On Tue, Feb 18, 2003 at 12:02:11PM -0500, Brian wrote: > > Anyone know what would have changed in 4.3.0 that would hinder my > > attempts to > > upload files with scripts that worked in previous versions? > > > > I had already replaced $_FILES with $HTTP_POST_FILES > > That should be the other way around. $_FILES is the thing to use. > > Anyway, if you're using the Apache Module version, the required > permissions on directories has changed. They need to be world readable > and executable (chmod 705). Perhaps this is is your difficulty? > > Enjoy, > > --Dan From hans at nyphp.org Wed Feb 19 13:54:16 2003 From: hans at nyphp.org (Hans Zaunere) Date: Wed, 19 Feb 2003 10:54:16 -0800 (PST) Subject: Mailing List Changes at NYPHP Message-ID: <20030219185416.77185.qmail@web12802.mail.yahoo.com> Hello everyone, This is basically just an FYI, but I wanted to notify everyone that there's some changes with the mailing lists at NYPHP. All announcements (meetings,events,offers,technical and community news,etc) will be sent ONLY to the NYPHP Announce list for now on. They will no longer be sent to NYPHP Talk. Also, software release announcements, as we've seen several of, should be sent to me (hans at nyphp.org), and I'll forward them on. NYPHP Talk will be kept strictly for informal discussion, technical support, community/scene discussion, and the like. I've taken the liberty of subscribing everyone to NYPHP Announce since it's a very low-traffic and moderated list. If NYPHP Talk gets too busy for your Inbox, be sure to stay subscribed to Announce and you'll be able to keep up with all the major news. If there are any questions, comments or errors found in your subscription or account at NYPHP.org please contact me offlist (hans at nyphp.org). Best regards, ===== Hans Zaunere President, New York PHP http://nyphp.org hans at nyphp.org From zaunere at yahoo.com Wed Feb 19 14:16:28 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 19 Feb 2003 11:16:28 -0800 (PST) Subject: [nycphp-talk] uploads In-Reply-To: <200302191701.h1JH0ju0013491@parsec.nyphp.org> Message-ID: <20030219191628.82157.qmail@web12802.mail.yahoo.com> --- Brian wrote: > I left them as $_FILES but meant to say I tried $HTTP_POST_FILES to see if > that had any effect. > > The odd thing is that I am not getting any errors when I upload a file. In > the upload script I am checking that a file was uploaded, the type of file > uploaded, the size, etc and if a file in the destination directory already > has the same name as the file being uploaded. The only time I get any type > of error is when I am trying to upload a file with the same name as one in > the directory. That's a good sign... at least the file is getting there... somehow. > According to PHP, the file upload is taking place. The database info > reflects that as well, as nothing is written to it until the uploaded file > is verified. Odd. Smells like uploaded... tastes like uploaded... it must be uploaded! So basically, everything happens as expected, except the file isn't in the expected directory? Maybe the admin has changed upload directories or paths? What event exactly causes the upload to be realized as unsuccessful? > I have contacted the sysadmin and am awaiting a response. I am hoping to > resolve the issue myself but this may not be possible. Also, I have not > been able to reproduce the situation on my local machine (LAMP with PHP > 4.3.0, same as the host server). It must be a sysadmin problem. http://us2.php.net/ChangeLog-4.php might be handy to realize any differances between your previous version and 4.3.0, but none come to mind off the bat. H > > Brian > > On Wednesday 19 February 2003 11:44 am, Analysis & Solutions wrote: > > Hi Brian: > > > > On Tue, Feb 18, 2003 at 12:02:11PM -0500, Brian wrote: > > > Anyone know what would have changed in 4.3.0 that would hinder my > > > attempts to > > > upload files with scripts that worked in previous versions? > > > > > > I had already replaced $_FILES with $HTTP_POST_FILES > > > > That should be the other way around. $_FILES is the thing to use. > > > > Anyway, if you're using the Apache Module version, the required > > permissions on directories has changed. They need to be world readable > > and executable (chmod 705). Perhaps this is is your difficulty? > > > > Enjoy, > > > > --Dan > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From zaunere at yahoo.com Wed Feb 19 14:27:30 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Wed, 19 Feb 2003 11:27:30 -0800 (PST) Subject: [nycphp-talk] fopen wrappers and timeouts In-Reply-To: <200302181719.h1IHIZT1003285@parsec.nyphp.org> Message-ID: <20030219192730.2448.qmail@web12806.mail.yahoo.com> --- Chris Snyder wrote: > Hi folks, does anyone know of a way to cause something like > fopen("http://example.com/") to time out after, say 5 seconds? Best use fsockopen(): $fp = fsockopen('example.com',80,$errno,$errstr,5); Which would try to connect to example.com on port 80 with a timeout of 5 seconds, writing any error code or string to $errno or $errstr, respectively. http://us2.php.net/manual/en/function.fsockopen.php H From brian at preston-campbell.com Wed Feb 19 14:31:50 2003 From: brian at preston-campbell.com (Brian) Date: Wed, 19 Feb 2003 14:31:50 -0500 Subject: [nycphp-talk] uploads In-Reply-To: <200302191917.h1JJGV11016824@parsec.nyphp.org> References: <200302191917.h1JJGV11016824@parsec.nyphp.org> Message-ID: <200302191431.50592.brian@preston-campbell.com> Just like that it works now. I guess it was an admin thang. Thanks for the help, I can get back to real work now. Brian On Wednesday 19 February 2003 02:16 pm, Hans Zaunere wrote: > --- Brian wrote: > > I left them as $_FILES but meant to say I tried $HTTP_POST_FILES to see > > if that had any effect. > > > > The odd thing is that I am not getting any errors when I upload a file. > > In the upload script I am checking that a file was uploaded, the type of > > file uploaded, the size, etc and if a file in the destination directory > > already has the same name as the file being uploaded. The only time I > > get any type of error is when I am trying to upload a file with the same > > name as one in the directory. > > That's a good sign... at least the file is getting there... somehow. > > > According to PHP, the file upload is taking place. The database info > > reflects that as well, as nothing is written to it until the uploaded > > file is verified. Odd. > > Smells like uploaded... tastes like uploaded... it must be uploaded! So > basically, everything happens as expected, except the file isn't in the > expected directory? Maybe the admin has changed upload directories or > paths? What event exactly causes the upload to be realized as unsuccessful? > > > I have contacted the sysadmin and am awaiting a response. I am hoping to > > resolve the issue myself but this may not be possible. Also, I have not > > been able to reproduce the situation on my local machine (LAMP with PHP > > 4.3.0, same as the host server). > > It must be a sysadmin problem. http://us2.php.net/ChangeLog-4.php might be > handy to realize any differances between your previous version and 4.3.0, > but none come to mind off the bat. > > H > > > Brian > > > > On Wednesday 19 February 2003 11:44 am, Analysis & Solutions wrote: > > > Hi Brian: > > > > > > On Tue, Feb 18, 2003 at 12:02:11PM -0500, Brian wrote: > > > > Anyone know what would have changed in 4.3.0 that would hinder my > > > > attempts to > > > > upload files with scripts that worked in previous versions? > > > > > > > > I had already replaced $_FILES with $HTTP_POST_FILES > > > > > > That should be the other way around. $_FILES is the thing to use. > > > > > > Anyway, if you're using the Apache Module version, the required > > > permissions on directories has changed. They need to be world readable > > > and executable (chmod 705). Perhaps this is is your difficulty? > > > > > > Enjoy, > > > > > > --Dan > > --- Unsubscribe at http://nyphp.org/list/ --- From jhise at nextsource.com Wed Feb 19 14:38:01 2003 From: jhise at nextsource.com (Jeremy Hise) Date: Wed, 19 Feb 2003 14:38:01 -0500 Subject: [nycphp-talk] uploads In-Reply-To: <200302191917.h1JJGVxr016824@parsec.nyphp.org> References: <200302191917.h1JJGVxr016824@parsec.nyphp.org> Message-ID: <20030219143801.48826201.jhise@nextsource.com> Please forgive me if I'm not adding anything to do the discussion, but on your page that handles the uploaded file are you doing something like: copy($uploadedfile, "~/uploaded_files/$uploadedfile_name"); unlink($uploadedfile); ? If you are, is the copy command complaining at all? Keep in mind that when you do an upload, it's placed in a temporary location until you copy it somewhere else and delete the original (unlink()). Can you put up the source code that handles the uploaded file? Thanks! hise On Wed, 19 Feb 2003 14:16:31 -0500 Hans Zaunere wrote: > > --- Brian wrote: > > I left them as $_FILES but meant to say I tried $HTTP_POST_FILES to see if > > that had any effect. > > > > The odd thing is that I am not getting any errors when I upload a file. In > > the upload script I am checking that a file was uploaded, the type of file > > uploaded, the size, etc and if a file in the destination directory already > > has the same name as the file being uploaded. The only time I get any type > > of error is when I am trying to upload a file with the same name as one in > > the directory. > > That's a good sign... at least the file is getting there... somehow. > > > According to PHP, the file upload is taking place. The database info > > reflects that as well, as nothing is written to it until the uploaded file > > is verified. Odd. > > Smells like uploaded... tastes like uploaded... it must be uploaded! So > basically, everything happens as expected, except the file isn't in the > expected directory? Maybe the admin has changed upload directories or paths? > What event exactly causes the upload to be realized as unsuccessful? > > > I have contacted the sysadmin and am awaiting a response. I am hoping to > > resolve the issue myself but this may not be possible. Also, I have not > > been able to reproduce the situation on my local machine (LAMP with PHP > > 4.3.0, same as the host server). > > It must be a sysadmin problem. http://us2.php.net/ChangeLog-4.php might be > handy to realize any differances between your previous version and 4.3.0, but > none come to mind off the bat. > > H > > > > > > Brian > > > > On Wednesday 19 February 2003 11:44 am, Analysis & Solutions wrote: > > > Hi Brian: > > > > > > On Tue, Feb 18, 2003 at 12:02:11PM -0500, Brian wrote: > > > > Anyone know what would have changed in 4.3.0 that would hinder my > > > > attempts to > > > > upload files with scripts that worked in previous versions? > > > > > > > > I had already replaced $_FILES with $HTTP_POST_FILES > > > > > > That should be the other way around. $_FILES is the thing to use. > > > > > > Anyway, if you're using the Apache Module version, the required > > > permissions on directories has changed. They need to be world readable > > > and executable (chmod 705). Perhaps this is is your difficulty? > > > > > > Enjoy, > > > > > > --Dan > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ From chris at psydeshow.org Wed Feb 19 14:45:15 2003 From: chris at psydeshow.org (Chris Snyder) Date: Wed, 19 Feb 2003 14:45:15 -0500 Subject: [nycphp-talk] fopen wrappers and timeouts In-Reply-To: <200302191928.h1JJRY15017594@parsec.nyphp.org> References: <200302191928.h1JJRY15017594@parsec.nyphp.org> Message-ID: <3E53DECB.6080407@psydeshow.org> Hans Zaunere wrote: >--- Chris Snyder wrote: > > >>Hi folks, does anyone know of a way to cause something like >>fopen("http://example.com/") to time out after, say 5 seconds? >> >> > >Best use fsockopen(): > >$fp = fsockopen('example.com',80,$errno,$errstr,5); > >Which would try to connect to example.com on port 80 with a timeout of 5 >seconds, writing any error code or string to $errno or $errstr, respectively. > >http://us2.php.net/manual/en/function.fsockopen.php > >H > > > Oh drat, I knew it was something simple. Thanks, Hans. For any PHP developers lurking on this thread, it would be really great to have a settable timeout in the wrappers-- I hate watching my pages hang because some other site is down. :-( Cheers! From dorgan at optonline.net Wed Feb 19 22:53:08 2003 From: dorgan at optonline.net (Donald J. Organ IV) Date: Wed, 19 Feb 2003 22:53:08 -0500 Subject: IIS 6 and PHP References: <200302191935.h1JJYu0b019034@parsec.nyphp.org> Message-ID: <005e01c2d893$95307c10$0600020a@111weeks> Has anyone else had a problem getting PHP to work with IIS 6 on Windows .NET Server 2003 RC2 or RC1, any PHP file that i try to access that i know is there i get an error saying the page cannot be found, but if i access a html document it runs without a problem?? Any suggestions! From seth at ghiek.com Thu Feb 20 08:17:05 2003 From: seth at ghiek.com (Seth [Ghiek]) Date: Thu, 20 Feb 2003 08:17:05 -0500 Subject: [nycphp-talk] IIS 6 and PHP In-Reply-To: <200302200354.h1K3rgur033008@parsec.nyphp.org> Message-ID: I had similar probs installing PHP with IIS 5 -- and this article helped out bunches; in fact, it got everything to work; ignorethe stuff on mysql: http://www.webmasterbase.com/article.php?pid=30&aid=525 also, do u need to escape any backslashes in your pathnames? hth/spirits, seth j hersh -----Original Message----- From: Donald J. Organ IV [mailto:dorgan at optonline.net] Sent: Wednesday, February 19, 2003 10:54 PM To: NYPHP Talk Subject: [nycphp-talk] IIS 6 and PHP Has anyone else had a problem getting PHP to work with IIS 6 on Windows .NET Server 2003 RC2 or RC1, any PHP file that i try to access that i know is there i get an error saying the page cannot be found, but if i access a html document it runs without a problem?? Any suggestions! --- Unsubscribe at http://nyphp.org/list/ --- From hans at nyphp.org Thu Feb 20 09:22:24 2003 From: hans at nyphp.org (Hans Zaunere) Date: Thu, 20 Feb 2003 06:22:24 -0800 (PST) Subject: ColdFusion Question Message-ID: <20030220142224.12716.qmail@web12805.mail.yahoo.com> OK, no comments please :) I'm now incharge of CF development, and while things have been moving "well" there's one issue I can't seem to get past easily. Basically there is a CF app on IIS under Windows 2000 with a login process that I have no control over, nor access to. My only ability is to place a link on the protected CF page that will bring the user to a PHP app on a Linux server across campus, which also needs to know who the user is. The most obvious way to do this is to create the link in the CF app to contain a GET variable with the username in it. OK fine, this would work, albeit weak. Of course, we're dealing with computer illiterate medical students, so 9 times out of 10 this would suffice. Yet, it scares me, so I want to add a couple additional checks. Basically my question is, how could I get a MAC address, CPU ID, or some other identifying tag (not IP) from the IIS server, which I would then pass in the URL to my application. Additionally, to keep the pesky students in check, I'd like to encode the information so it becomes less obvious to them what we're doing. Ideally, I'd like PHP's base64_encode() functionality. Also, does ColdFusion have anything like PHP's serialize() ? Security through obscurity, gotta love it. Other ideas are welcome, but we are dealing with a considerably limited environment. And CF code examples would be greatly appreciated :) Thank you, H From brian at preston-campbell.com Thu Feb 20 09:32:03 2003 From: brian at preston-campbell.com (Brian) Date: Thu, 20 Feb 2003 09:32:03 -0500 Subject: [nycphp-talk] ColdFusion Question In-Reply-To: <200302201423.h1KEMR11041937@parsec.nyphp.org> References: <200302201423.h1KEMR11041937@parsec.nyphp.org> Message-ID: <200302200932.03648.brian@preston-campbell.com> I have been working on an SNMP project in VB (also, no comments please...) and a lot of usable data is passed by an SNMP agent. You can get a Win32 agent from a Win2K disk and of course there are free agents for Linux servers as well. I have not looked for SNMP projects in PHP but I bet you could find something on Sourceforge that would suite your purposes. (Look into BER decoding as a start). With the right code, you could easily obtain the MAC address of the originating server and check that against your MAC address on record. Although encryption might be difficult to handle in this case, what med student would be sniffing packets on port 161? Just a thought since SNMP is new to me, but someone may have a better idea that would be easier to implement. Brian On Thursday 20 February 2003 09:22 am, Hans Zaunere wrote: > OK, no comments please :) > > I'm now incharge of CF development, and while things have been moving > "well" there's one issue I can't seem to get past easily. > > Basically there is a CF app on IIS under Windows 2000 with a login process > that I have no control over, nor access to. My only ability is to place a > link on the protected CF page that will bring the user to a PHP app on a > Linux server across campus, which also needs to know who the user is. > > The most obvious way to do this is to create the link in the CF app to > contain a GET variable with the username in it. OK fine, this would work, > albeit weak. Of course, we're dealing with computer illiterate medical > students, so 9 times out of 10 this would suffice. > > Yet, it scares me, so I want to add a couple additional checks. Basically > my question is, how could I get a MAC address, CPU ID, or some other > identifying tag (not IP) from the IIS server, which I would then pass in > the URL to my application. > > Additionally, to keep the pesky students in check, I'd like to encode the > information so it becomes less obvious to them what we're doing. Ideally, > I'd like PHP's base64_encode() functionality. Also, does ColdFusion have > anything like PHP's serialize() ? > > Security through obscurity, gotta love it. Other ideas are welcome, but we > are dealing with a considerably limited environment. And CF code examples > would be greatly appreciated :) > > Thank you, > > H > > > --- Unsubscribe at http://nyphp.org/list/ --- From nyphp at websapp.com Thu Feb 20 09:33:32 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Thu, 20 Feb 2003 09:33:32 -0500 Subject: [nycphp-talk] ColdFusion Question In-Reply-To: <200302201423.h1KEMR3N041937@parsec.nyphp.org> Message-ID: Hans, I didn't get to my second cup of coffee yet, so please excuse me if I'm off track. If you want to make sure that GET variables are not tampered with on their journey across the network, you can MD5 them with a magic key and then the keys integrity on the receiving side. For example, if you want to pass ?name=hans do something like $key = md5('this_is_a_magic_key'.'hans') and then pass: ?name=hans&key=$key Remember, that the name/key pair will always match! Using a time based key would be even more secure, or a pseudo random key that each key in the set can only be used once, even better!! Okay, where's my coffee? --Daniel > -----Original Message----- > From: Hans Zaunere [mailto:hans at nyphp.org] > Sent: Thursday, February 20, 2003 9:22 AM > To: NYPHP Talk > Subject: [nycphp-talk] ColdFusion Question > > > > OK, no comments please :) > > I'm now incharge of CF development, and while things have been moving "well" > there's one issue I can't seem to get past easily. > > Basically there is a CF app on IIS under Windows 2000 with a login process > that I have no control over, nor access to. My only ability is to place a > link on the protected CF page that will bring the user to a PHP app on a > Linux server across campus, which also needs to know who the user is. > > The most obvious way to do this is to create the link in the CF app to > contain a GET variable with the username in it. OK fine, this would work, > albeit weak. Of course, we're dealing with computer illiterate medical > students, so 9 times out of 10 this would suffice. > > Yet, it scares me, so I want to add a couple additional checks. Basically my > question is, how could I get a MAC address, CPU ID, or some other identifying > tag (not IP) from the IIS server, which I would then pass in the URL to my > application. > > Additionally, to keep the pesky students in check, I'd like to encode the > information so it becomes less obvious to them what we're doing. Ideally, > I'd like PHP's base64_encode() functionality. Also, does ColdFusion have > anything like PHP's serialize() ? > > Security through obscurity, gotta love it. Other ideas are welcome, but we > are dealing with a considerably limited environment. And CF code examples > would be greatly appreciated :) > > Thank you, > > H > > > --- Unsubscribe at http://nyphp.org/list/ --- > From fields at surgam.net Thu Feb 20 09:41:59 2003 From: fields at surgam.net (Adam Fields) Date: Thu, 20 Feb 2003 09:41:59 -0500 Subject: [nycphp-talk] ColdFusion Question In-Reply-To: <200302201434.h1KEY01x043378@parsec.nyphp.org> References: <200302201434.h1KEY01x043378@parsec.nyphp.org> Message-ID: <20030220144159.GC4574@eye.surgam.net> On Thu, Feb 20, 2003 at 09:34:00AM -0500, Daniel Kushner wrote: > Hans, > > I didn't get to my second cup of coffee yet, so please excuse me if I'm off track. > > If you want to make sure that GET variables are not tampered with on their journey across the network, you can MD5 them > with a magic key and then the keys integrity on the receiving side. > > For example, if you want to pass ?name=hans > do something like $key = md5('this_is_a_magic_key'.'hans') > and then pass: ?name=hans&key=$key Of course, you'll need to md5 the query string on the coldfusion side, so this will probably come in handy: http://cflib.org/udf.cfm?ID=35&dl=1 -- - Adam ----- Adam Fields, Managing Partner, fields at surgam.net Surgam, Inc. is a technology consulting firm with strong background in delivering scalable and robust enterprise web and IT applications. http://www.adamfields.com From mjdewitt at alexcommgrp.com Thu Feb 20 09:54:54 2003 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Thu, 20 Feb 2003 09:54:54 -0500 Subject: [nycphp-talk] ColdFusion Question Message-ID: Hans, It looks like you have gotten some info already on encrypting the data. Here are my two bits: The remote address in cold fusion seems to be cgi.remote_addr from (http://www.evolt.org/article/Session_Hijacking_Cold_Fusion_Dynamic_Proxies/ 20/3516/?format=print ) and for more encryption dlls (free) for IIS check http://www.developersdex.com/asp/default.asp?p=828 Mike > -----Original Message----- > From: Hans Zaunere [SMTP:hans at nyphp.org] > Sent: Thursday, February 20, 2003 9:22 AM > To: NYPHP Talk > Subject: [nycphp-talk] ColdFusion Question > > > OK, no comments please :) > > I'm now incharge of CF development, and while things have been moving > "well" > there's one issue I can't seem to get past easily. > > Basically there is a CF app on IIS under Windows 2000 with a login process > that I have no control over, nor access to. My only ability is to place a > link on the protected CF page that will bring the user to a PHP app on a > Linux server across campus, which also needs to know who the user is. > > The most obvious way to do this is to create the link in the CF app to > contain a GET variable with the username in it. OK fine, this would work, > albeit weak. Of course, we're dealing with computer illiterate medical > students, so 9 times out of 10 this would suffice. > > Yet, it scares me, so I want to add a couple additional checks. Basically > my > question is, how could I get a MAC address, CPU ID, or some other > identifying > tag (not IP) from the IIS server, which I would then pass in the URL to my > application. > > Additionally, to keep the pesky students in check, I'd like to encode the > information so it becomes less obvious to them what we're doing. Ideally, > I'd like PHP's base64_encode() functionality. Also, does ColdFusion have > anything like PHP's serialize() ? > > Security through obscurity, gotta love it. Other ideas are welcome, but > we > are dealing with a considerably limited environment. And CF code examples > would be greatly appreciated :) > > Thank you, > > H > > > --- Unsubscribe at http://nyphp.org/list/ --- > From shiflett at php.net Thu Feb 20 10:22:57 2003 From: shiflett at php.net (Chris Shiflett) Date: Thu, 20 Feb 2003 07:22:57 -0800 (PST) Subject: [nycphp-talk] ColdFusion Question In-Reply-To: <200302201423.h1KEMR1V041937@parsec.nyphp.org> Message-ID: <20030220152257.9774.qmail@web14309.mail.yahoo.com> --- Hans Zaunere wrote: > > OK, no comments please :) Developing in ColdFusion can be fun. I lead a team of ColdFusion developers for about three years and enjoyed it very much. My only complaint was that it felt more like writing HTML than it did programming. :-) > I'm now incharge of CF development, and while things have been moving "well" > there's one issue I can't seem to get past easily. I actually wrote a specification for something called Cross-Domain Session Management (CDSM) once upon a time, and there are some major Web sites that are using it. It is basically a method of doing exactly what you are trying to do that is: 1. More secure than passing a single session ID on the URL. 2. Completely reliable - no legitimate user will be impacted negatively. First, I would like to suggest that you do not try to determine a MAC address or do anything below the HTTP protocol layer. It can offer more security to dig into TCP/IP or deeper, but point 2 above will be lost (so ignore this advice if that is not a concern). Consider an HTTP request that looks like this: GET /land.cfm?cdsm_token=XXX Host: www.otherdomain.com Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1 User-Agent: Mozilla/5.0 Galeon/1.2.6 (X11; Linux i686; U;) Gecko/20020830 Accept-Encoding: gzip, deflate, compress;q=0.9 Accept-Language: en-us, en;q=0.50 Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66 Connection: keep-alive There are a bunch of HTTP headers available as $_SERVER['foo']. You can use these combined with an extremely small window of time (I recommend no more than 60 seconds, preferably more like 30 or less) to make impersonation (session hijacking) extremely difficult. Using a random collection of the HTTP headers, create a fingerprint (while the user is on your site, of course) of the user agent. If you md5 the User-Agent and Accept headers, this will suffice. However, to add some integrity protection, you should include the timestamp you create (next step) in your MD5 calculation. Now create a Unix timestamp of the current time in GMT. Create a string like this: ts=1045732163&ua=e87189e54561ae899fb016c42177b96e The ua is the md5 of the timestamp appended to the User-Agent header appended to the Accept header. Encrypt this string using a symmetric algorithm. I built a triple DES CFX tag for ours, so we also added the initialization vector to the above string. The receiving site just needs to be able to decrypt the string to get the ua and ts. In order to only allow for a tony window of opportunity, you must create a launch page (I'll just use XXX for the CDSM token): (forgive me if my CF syntax is wrong; it's been a while) So, all links to the external site will be links to your launch.cfm page, and you will pass the external domain on the URL: www.otherdomain.com Alternatively, you can of course modify this example to allow the other site to redirect the user to somewhere else in their site after CDSM authentication, so that you can add the final destination to your token and allow for links to anywhere on that other site. Some FAQ: 1. What if someone is using a browser that doesn't have a User-Agent header, Accept header, etc? It won't matter, as long as both you and the receiving site use NULL or the empty string when a header is absent. If you're programming in the same language, don't worry about it, because this will be consistent. 2. Can I use the Referer header to make sure the user is coming from the right place? Yes, you can even add what the Referer should be in the ua variable. However, if you deny access to those who fail to pass the correct Referer header, you can negatively impact legitimate users. 3. Is this 100% secure? No, but it does not negatively impact the legitimate users and makes it damn hard for the bad guys. :-) Hope that helps at least give you some thoughts. Chris From nyphp at NewAgeWeb.com Thu Feb 20 11:40:41 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Thu, 20 Feb 2003 11:40:41 -0500 Subject: [nycphp-talk] ColdFusion Question Message-ID: <001d01c2d8fe$cededcc0$de01a8c0@duron.lan.newageweb.com> Hans, I may be paranoid, but I'd use a different approach (IMO more secure). When a user logs on to the ColdFusion server generate a unique ID - session id or something to that effect. Store it in a database with the username, User-Agent string, and the IP address of the client. Of course that row should be deleted when the user logs out or expired after X minutes of inactivity. Next write a small CF script (check.cfm) that will respond only to requests sent from the IP address matching your Linux/PHP server. This script would take the said unique ID as a GET var and echo the associated username, User-Agent string, and the IP address from the database. Now when you redirect the user from the CF app to your PHP add it would be done with a link like this one: http://linux.server/verify.php?id=737b8a3cfa90cda3bc Your verify.php would issue a request including the ID as a GET var (using fopen) to check.cfm on your IIS/CF server. check.cfm would query the database for the username, User-Agent string, and the IP address associated with the ID and echo the results. The output would be captured and parsed by verify.php. If the returned User-Agent and IP address match $_SERVER['HTTP_USER_AGENT'] and $_SERVER['REMOTE_ADDR'], a PHP session is established and the returned username is stored as a session var .. and life is good. Of course you may apply encoding/encryption on top of that. Jerry -- 42.7% of all statistics are made up on the spot. -----Original Message----- From: Hans Zaunere To: NYPHP Talk Date: Thursday, February 20, 2003 9:22 AM Subject: [nycphp-talk] ColdFusion Question > >OK, no comments please :) > >I'm now incharge of CF development, and while things have been moving "well" >there's one issue I can't seem to get past easily. > >Basically there is a CF app on IIS under Windows 2000 with a login process >that I have no control over, nor access to. My only ability is to place a >link on the protected CF page that will bring the user to a PHP app on a >Linux server across campus, which also needs to know who the user is. > >The most obvious way to do this is to create the link in the CF app to >contain a GET variable with the username in it. OK fine, this would work, >albeit weak. Of course, we're dealing with computer illiterate medical >students, so 9 times out of 10 this would suffice. > >Yet, it scares me, so I want to add a couple additional checks. Basically my >question is, how could I get a MAC address, CPU ID, or some other identifying >tag (not IP) from the IIS server, which I would then pass in the URL to my >application. > >Additionally, to keep the pesky students in check, I'd like to encode the >information so it becomes less obvious to them what we're doing. Ideally, >I'd like PHP's base64_encode() functionality. Also, does ColdFusion have >anything like PHP's serialize() ? > >Security through obscurity, gotta love it. Other ideas are welcome, but we >are dealing with a considerably limited environment. And CF code examples >would be greatly appreciated :) > >Thank you, > >H > > >--- Unsubscribe at http://nyphp.org/list/ --- > > From nyphp at NewAgeWeb.com Thu Feb 20 12:02:57 2003 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Thu, 20 Feb 2003 12:02:57 -0500 Subject: [nycphp-talk] ColdFusion Question Message-ID: <002701c2d901$eb196560$de01a8c0@duron.lan.newageweb.com> I meant to say "PHP app" not "PHP add" :) Jerry -- 42.7% of all statistics are made up on the spot. -----Original Message----- From: Jerry Kapron To: NYPHP Talk Date: Thursday, February 20, 2003 11:40 AM Subject: Re: [nycphp-talk] ColdFusion Question >Hans, >I may be paranoid, but I'd use a different approach (IMO more secure). >When a user logs on to the ColdFusion server generate a unique ID - session >id or something to that effect. Store it in a database with the username, >User-Agent string, and the IP address of the client. Of course that row >should be deleted when the user logs out or expired after X minutes of >inactivity. Next write a small CF script (check.cfm) that will respond only >to requests sent from the IP address matching your Linux/PHP server. This >script would take the said unique ID as a GET var and echo the associated >username, User-Agent string, and the IP address from the database. >Now when you redirect the user from the CF app to your PHP add it would be >done with a link like this one: >http://linux.server/verify.php?id=737b8a3cfa90cda3bc > >Your verify.php would issue a request including the ID as a GET var (using >fopen) to check.cfm on your IIS/CF server. check.cfm would query the >database for the username, User-Agent string, and the IP address associated >with the ID and echo the results. The output would be captured and parsed by >verify.php. If the returned User-Agent and IP address match >$_SERVER['HTTP_USER_AGENT'] and $_SERVER['REMOTE_ADDR'], a PHP session is >established and the returned username is stored as a session var .. and life >is good. >Of course you may apply encoding/encryption on top of that. > >Jerry > > >-- >42.7% of all statistics are made up on the spot. > >-----Original Message----- >From: Hans Zaunere >To: NYPHP Talk >Date: Thursday, February 20, 2003 9:22 AM >Subject: [nycphp-talk] ColdFusion Question > > >> >>OK, no comments please :) >> >>I'm now incharge of CF development, and while things have been moving >"well" >>there's one issue I can't seem to get past easily. >> >>Basically there is a CF app on IIS under Windows 2000 with a login process >>that I have no control over, nor access to. My only ability is to place a >>link on the protected CF page that will bring the user to a PHP app on a >>Linux server across campus, which also needs to know who the user is. >> >>The most obvious way to do this is to create the link in the CF app to >>contain a GET variable with the username in it. OK fine, this would work, >>albeit weak. Of course, we're dealing with computer illiterate medical >>students, so 9 times out of 10 this would suffice. >> >>Yet, it scares me, so I want to add a couple additional checks. Basically >my >>question is, how could I get a MAC address, CPU ID, or some other >identifying >>tag (not IP) from the IIS server, which I would then pass in the URL to my >>application. >> >>Additionally, to keep the pesky students in check, I'd like to encode the >>information so it becomes less obvious to them what we're doing. Ideally, >>I'd like PHP's base64_encode() functionality. Also, does ColdFusion have >>anything like PHP's serialize() ? >> >>Security through obscurity, gotta love it. Other ideas are welcome, but we >>are dealing with a considerably limited environment. And CF code examples >>would be greatly appreciated :) >> >>Thank you, >> >>H >> >> >> >> >> > > > >--- Unsubscribe at http://nyphp.org/list/ --- > > From dorgan at optonline.net Thu Feb 20 16:07:50 2003 From: dorgan at optonline.net (Donald J. Organ IV) Date: Thu, 20 Feb 2003 16:07:50 -0500 Subject: [nycphp-talk] IIS 6 and PHP References: <200302201316.h1KDG50b040520@parsec.nyphp.org> Message-ID: <001301c2d924$2101a080$0600020a@111weeks> ok now that i have done that I am getting the error cannot find service whenever i try to view any pages whether it be php or html. From kaangunay at superonline.com Thu Feb 20 21:07:08 2003 From: kaangunay at superonline.com (Kaan Gunay) Date: Thu, 20 Feb 2003 21:07:08 -0500 Subject: POS Project with PHP In-Reply-To: <200302201640.h1KGdW1t047496@parsec.nyphp.org> Message-ID: Hi, Anyone know about a Point-Of-Sale project with php? Kaan From rainman at deroo.net Fri Feb 21 11:08:43 2003 From: rainman at deroo.net (The Rain Maker) Date: Fri, 21 Feb 2003 11:08:43 -0500 Subject: [nycphp-talk] POS Project with PHP In-Reply-To: <200302210209.h1L284td062965@parsec.nyphp.org> Message-ID: Kaan-- > Anyone know about a Point-Of-Sale project with php? I started working on one about a year go. But there wasn't enough "community interest" and the backing client folded so it was shelved. Other than that, I don't know of any PHP based POS systems, but that doesn't mean they don't exist. .r --- Raymond DeRoo -- Senior Partner Support Services -- (203) 952-3900 www.supserv.com -- rderoo at supserv.com From ophir at prusak.com Fri Feb 21 15:04:40 2003 From: ophir at prusak.com (Ophir Prusak) Date: Fri, 21 Feb 2003 15:04:40 -0500 Subject: Single forum userbase for multiple sites ? References: <200302171820.h1HIJKfJ018334@parsec.nyphp.org> Message-ID: <0a5501c2d9e4$78168d70$bf65a8c0@tag1002> Hi All, I'm trying to setup some forums on multiple sites such that you'll only need to sign-up once and will have access to the forums on all the sites. Each site needs to have full control of it's forums, so having them all share the same forums installation won't really work for me. Does anyone have any suggestions or ideas on the best way to go about doing this ? It can be using any "standard" forums package (like phpBB, inovision, etc). thanks ophir From jkonikowski at nyc.rr.com Fri Feb 21 15:17:50 2003 From: jkonikowski at nyc.rr.com (Jeffrey Konikowski) Date: Fri, 21 Feb 2003 12:17:50 -0800 (PST) Subject: [nycphp-talk] Single forum userbase for multiple sites ? Message-ID: <27631177.1045858670192.JavaMail.www-data@four.oddpost.com> I think Drupal has something like this. http://drupal.org -----Original Message----- Hi All, I'm trying to setup some forums on multiple sites such that you'll only need to sign-up once and will have access to the forums on all the sites. Each site needs to have full control of it's forums, so having them all share the same forums installation won't really work for me. Does anyone have any suggestions or ideas on the best way to go about doing this ? It can be using any "standard" forums package (like phpBB, inovision, etc). thanks ophir --- Unsubscribe at http://nyphp.org/list/ --- From chris at psydeshow.org Fri Feb 21 15:23:02 2003 From: chris at psydeshow.org (Chris Snyder) Date: Fri, 21 Feb 2003 15:23:02 -0500 Subject: [nycphp-talk] Single forum userbase for multiple sites ? In-Reply-To: <200302212006.h1LK5CkB081187@parsec.nyphp.org> References: <200302212006.h1LK5CkB081187@parsec.nyphp.org> Message-ID: <3E568AA6.6040702@psydeshow.org> Ophir Prusak wrote: >Hi All, > >I'm trying to setup some forums on multiple sites such that you'll only need >to sign-up once and will have access to the forums on all the sites. >Each site needs to have full control of it's forums, so having them all >share the same forums installation won't really work for me. > >Does anyone have any suggestions or ideas on the best way to go about doing >this ? >It can be using any "standard" forums package (like phpBB, inovision, etc). > >thanks >ophir > I was going to do this for sites that I manage, but decided not to due to privacy concerns. I can see how it would be very convenient, however. I'm sure some folks have already done it. If you wanted to roll your own you could do it by redirecting the user to a central authority that would check the user's credentials and then redirect them back to the remote site with an encoded login key in the request. Probably better ways? chris. From LarryC at indexstock.com Fri Feb 21 17:50:22 2003 From: LarryC at indexstock.com (Larry Chuon) Date: Fri, 21 Feb 2003 17:50:22 -0500 Subject: [nycphp-talk] POS Project with PHP Message-ID: <86713EAB93BD5F40B94A0C8E604C7C91AEBCAC@index-exchange.indexstock.com> Hi, One of our contributors for OSSuite is building a POS module. If you're interested, please come to http://ossuite.org/phpbb and ask about the progress. Larry -----Original Message----- From: The Rain Maker [mailto:rainman at deroo.net] Sent: Friday, February 21, 2003 11:08 AM To: NYPHP Talk Subject: Re: [nycphp-talk] POS Project with PHP Kaan-- > Anyone know about a Point-Of-Sale project with php? I started working on one about a year go. But there wasn't enough "community interest" and the backing client folded so it was shelved. Other than that, I don't know of any PHP based POS systems, but that doesn't mean they don't exist. r --- Raymond DeRoo -- Senior Partner Support Services -- (203) 952-3900 www.supserv.com -- rderoo at supserv.com --- Unsubscribe at http://nyphp.org/list/ --- From danielc at analysisandsolutions.com Sat Feb 22 02:07:50 2003 From: danielc at analysisandsolutions.com (Analysis & Solutions) Date: Sat, 22 Feb 2003 02:07:50 -0500 Subject: [nycphp-talk] Single forum userbase for multiple sites ? In-Reply-To: <200302212005.h1LK5CdN081187@parsec.nyphp.org> References: <200302212005.h1LK5CdN081187@parsec.nyphp.org> Message-ID: <20030222070750.GA20495@panix.com> On Fri, Feb 21, 2003 at 03:05:12PM -0500, Ophir Prusak wrote: > > I'm trying to setup some forums on multiple sites such that you'll only need > to sign-up once and will have access to the forums on all the sites. Are the sites on the same server or not? If not, are they with the same ISP? --Dan -- PHP classes that make web design easier SqlSolution.info | LayoutSolution.info | FormSolution.info T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 From smanes at magpie.com Sat Feb 22 08:18:48 2003 From: smanes at magpie.com (Steve Manes) Date: Sat, 22 Feb 2003 08:18:48 -0500 Subject: [nycphp-talk] Single forum userbase for multiple sites ? In-Reply-To: <200302212005.h1LK5Ci9081187@parsec.nyphp.org> Message-ID: <5.1.1.6.2.20030222080200.01db5198@192.168.111.6> At 03:05 PM 2/21/2003 -0500, Ophir Prusak wrote: >I'm trying to setup some forums on multiple sites such that you'll only need >to sign-up once and will have access to the forums on all the sites. >Each site needs to have full control of it's forums, so having them all >share the same forums installation won't really work for me. > >Does anyone have any suggestions or ideas on the best way to go about doing >this ? I think you would have to set up a registration authority. Each forum would have its own nonpersistent cookie. When you enter a forum, you would enter your global username/password, which you've set up on the registration server. A background process would run verification against the registration server (protected HTTP/Curl, SOAP/XML or maybe something akin to a DNS query like the RBLs use) and return a go/no go. If go, the forum sets a cookie. If no go, you're thrown to the registration server to create an account after X numbers of tries. From ophir at prusak.com Sun Feb 23 11:44:40 2003 From: ophir at prusak.com (Ophir Prusak) Date: Sun, 23 Feb 2003 11:44:40 -0500 Subject: [nycphp-talk] Single forum userbase for multiple sites ? References: <200302220708.h1M77rHJ001193@parsec.nyphp.org> Message-ID: <014801c2db5a$dc3bee90$0300a8c0@866w2k> Same server - no. Same ISP - yes. The sites are actually be hosted on different dedicated servers. ----- Original Message ----- From: "Analysis & Solutions" To: "NYPHP Talk" Sent: Saturday, February 22, 2003 2:07 AM Subject: Re: [nycphp-talk] Single forum userbase for multiple sites ? > On Fri, Feb 21, 2003 at 03:05:12PM -0500, Ophir Prusak wrote: > > > > I'm trying to setup some forums on multiple sites such that you'll only need > > to sign-up once and will have access to the forums on all the sites. > > Are the sites on the same server or not? If not, are they with the same > ISP? > > --Dan > > -- > PHP classes that make web design easier > SqlSolution.info | LayoutSolution.info | FormSolution.info > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > 4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409 > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From tech_learner at yahoo.com Mon Feb 24 00:52:01 2003 From: tech_learner at yahoo.com (Tracy) Date: Sun, 23 Feb 2003 21:52:01 -0800 (PST) Subject: cache setup In-Reply-To: <200302221317.h1MDGqKp012995@parsec.nyphp.org> Message-ID: <20030224055201.71974.qmail@web14311.mail.yahoo.com> Hi all, Sorry for posting a not so related question to the list, but can anyone tell me how to set up a local cache for testing? i tried to follow on an article that uses apache as a proxy with cache, but neither the instructions speified there nor the others i found were helpful. i even tried the apache manual, but i guess i am not very gud at searching for a needle in a haystack... but as far as i undertood the instructions in there, my proxy folder remains empty still... PLZ someone help Thz Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From ny_elena at yahoo.com Mon Feb 24 12:11:49 2003 From: ny_elena at yahoo.com (Elena Zagrai) Date: Mon, 24 Feb 2003 09:11:49 -0800 (PST) Subject: How to add lines or other drawings on top of jpeg image? Message-ID: <20030224171149.42087.qmail@web20703.mail.yahoo.com> Hi everybody, I've got a jpeg file and I need to add some drawings and text on top of it. I can put the text on (with a regular html div box ), but I'm still struggling with drawings. I have GD libraries installed. I would appreciate your help, guys... Thanks, Elena __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From jhise at nextsource.com Mon Feb 24 12:56:14 2003 From: jhise at nextsource.com (Jeremy Hise) Date: Mon, 24 Feb 2003 12:56:14 -0500 Subject: [nycphp-talk] How to add lines or other drawings on top of jpeg image? In-Reply-To: <200302241712.h1OHBqGB046531@parsec.nyphp.org> References: <200302241712.h1OHBqGB046531@parsec.nyphp.org> Message-ID: <20030224125614.1fa2f098.jhise@nextsource.com> http://www.php.net/manual/en/function.imagecreatefromjpeg.php Be sure to read the comments as well. After you open your jpeg, you can use all the image functions to create your lines and text. hise On Mon, 24 Feb 2003 12:11:51 -0500 Elena Zagrai wrote: > Hi everybody, > > I've got a jpeg file and I need to add some drawings > and text on top of it. I can put the text on (with a > regular html div box ), but I'm still struggling with > drawings. I have GD libraries installed. I would > appreciate your help, guys... > > Thanks, > > Elena > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ From nyphp at enobrev.com Mon Feb 24 13:10:21 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Mon, 24 Feb 2003 13:10:21 -0500 Subject: [nycphp-talk] How to add lines or other drawings on top of jpeg image? In-Reply-To: <200302241752.h1OHqZCj047600@parsec.nyphp.org> Message-ID: <01c701c2dc2f$fed7bbc0$96721d18@enobrev> GD is a great tool, but I found it to be pretty resource intensive en masse. If you're doing a lot of images, like watermarking for uploads on a members site, I would recommend ImageMagick if you have it available. I'm not sure if it comes with regular server setups but it's been at most LAMP hosts I've worked with. http://www.imagemagick.org Mark -----Original Message----- From: Jeremy Hise [mailto:jhise at nextsource.com] Sent: Monday, February 24, 2003 12:53 PM To: NYPHP Talk Subject: Re: [nycphp-talk] How to add lines or other drawings on top of jpeg image? http://www.php.net/manual/en/function.imagecreatefromjpeg.php Be sure to read the comments as well. After you open your jpeg, you can use all the image functions to create your lines and text. hise On Mon, 24 Feb 2003 12:11:51 -0500 Elena Zagrai wrote: > Hi everybody, > > I've got a jpeg file and I need to add some drawings > and text on top of it. I can put the text on (with a > regular html div box ), but I'm still struggling with drawings. I have > GD libraries installed. I would appreciate your help, guys... > > Thanks, > > Elena > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > > > -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ --- Unsubscribe at http://nyphp.org/list/ --- From ny_elena at yahoo.com Mon Feb 24 13:16:53 2003 From: ny_elena at yahoo.com (Elena Zagrai) Date: Mon, 24 Feb 2003 10:16:53 -0800 (PST) Subject: [nycphp-talk] How to add lines or other drawings on top of jpeg image? In-Reply-To: <200302241753.h1OHqZL3047600@parsec.nyphp.org> Message-ID: <20030224181653.60101.qmail@web20705.mail.yahoo.com> Thanks, Jeremy. That's what I was looking for :) --- Jeremy Hise wrote: > http://www.php.net/manual/en/function.imagecreatefromjpeg.php > > Be sure to read the comments as well. > > After you open your jpeg, you can use all the image > functions to create your lines and text. > > hise > > On Mon, 24 Feb 2003 12:11:51 -0500 > Elena Zagrai wrote: > > > Hi everybody, > > > > I've got a jpeg file and I need to add some > drawings > > and text on top of it. I can put the text on (with > a > > regular html div box ), but I'm still struggling > with > > drawings. I have GD libraries installed. I would > > appreciate your help, guys... > > > > Thanks, > > > > Elena > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Tax Center - forms, calculators, tips, more > > http://taxes.yahoo.com/ > > > > > > > > > > > -- > > -+----------------------+ > | jhise at nextsource.com | > | developer | > | nextSource, Inc. | > | x334 | > +----------------------+ > > > --- Unsubscribe at http://nyphp.org/list/ --- > > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From jhise at nextsource.com Mon Feb 24 13:23:41 2003 From: jhise at nextsource.com (Jeremy Hise) Date: Mon, 24 Feb 2003 13:23:41 -0500 Subject: [nycphp-talk] How to add lines or other drawings on top of jpeg image? In-Reply-To: <200302241817.h1OIGuGB049331@parsec.nyphp.org> References: <200302241817.h1OIGuGB049331@parsec.nyphp.org> Message-ID: <20030224132341.2d2a15b0.jhise@nextsource.com> No problem. Mark is right though. Depending on what you are doing, you'll probably notice it's not the fastest thing in the world. I used it once for resizing images to thumb-nails on the fly...bad move. It takes way too long for any kind of production use...unless you have a blazing machine. On Mon, 24 Feb 2003 13:16:56 -0500 Elena Zagrai wrote: > Thanks, Jeremy. That's what I was looking for :) > > --- Jeremy Hise wrote: > > > http://www.php.net/manual/en/function.imagecreatefromjpeg.php > > > > Be sure to read the comments as well. > > > > After you open your jpeg, you can use all the image > > functions to create your lines and text. > > > > hise > > > > On Mon, 24 Feb 2003 12:11:51 -0500 > > Elena Zagrai wrote: > > > > > Hi everybody, > > > > > > I've got a jpeg file and I need to add some > > drawings > > > and text on top of it. I can put the text on (with > > a > > > regular html div box ), but I'm still struggling > > with > > > drawings. I have GD libraries installed. I would > > > appreciate your help, guys... > > > > > > Thanks, > > > > > > Elena > > > > > > __________________________________________________ > > > Do you Yahoo!? > > > Yahoo! Tax Center - forms, calculators, tips, more > > > http://taxes.yahoo.com/ > > > > > > > > > > > > > > > > > > -- > > > > -+----------------------+ > > | jhise at nextsource.com | > > | developer | > > | nextSource, Inc. | > > | x334 | > > +----------------------+ > > > > > > > > > > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ From ny_elena at yahoo.com Mon Feb 24 13:29:34 2003 From: ny_elena at yahoo.com (Elena Zagrai) Date: Mon, 24 Feb 2003 10:29:34 -0800 (PST) Subject: [nycphp-talk] How to add lines or other drawings on top of jpeg image? In-Reply-To: <200302241820.h1OIK2L3050053@parsec.nyphp.org> Message-ID: <20030224182934.84261.qmail@web20709.mail.yahoo.com> Well, I don't have a blazing machine, but I hope it's not going to be that slow if I just draw several lines and add couple of numbers. But if it will, I'll use Mark's advice. Thank you, guys. Elena --- Jeremy Hise wrote: > No problem. Mark is right though. Depending on what > you are doing, you'll probably notice it's not the > fastest thing in the world. I used it once for > resizing images to thumb-nails on the fly...bad > move. It takes way too long for any kind of > production use...unless you have a blazing machine. > > On Mon, 24 Feb 2003 13:16:56 -0500 > Elena Zagrai wrote: > > > Thanks, Jeremy. That's what I was looking for :) > > > > --- Jeremy Hise wrote: > > > > > > http://www.php.net/manual/en/function.imagecreatefromjpeg.php > > > > > > Be sure to read the comments as well. > > > > > > After you open your jpeg, you can use all the > image > > > functions to create your lines and text. > > > > > > hise > > > > > > On Mon, 24 Feb 2003 12:11:51 -0500 > > > Elena Zagrai wrote: > > > > > > > Hi everybody, > > > > > > > > I've got a jpeg file and I need to add some > > > drawings > > > > and text on top of it. I can put the text on > (with > > > a > > > > regular html div box ), but I'm still > struggling > > > with > > > > drawings. I have GD libraries installed. I > would > > > > appreciate your help, guys... > > > > > > > > Thanks, > > > > > > > > Elena > > > > > > > > > __________________________________________________ > > > > Do you Yahoo!? > > > > Yahoo! Tax Center - forms, calculators, tips, > more > > > > http://taxes.yahoo.com/ > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > -+----------------------+ > > > | jhise at nextsource.com | > > > | developer | > > > | nextSource, Inc. | > > > | x334 | > > > +----------------------+ > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Tax Center - forms, calculators, tips, more > > http://taxes.yahoo.com/ > > > > > > > > > > > -- > > -+----------------------+ > | jhise at nextsource.com | > | developer | > | nextSource, Inc. | > | x334 | > +----------------------+ > > > --- Unsubscribe at http://nyphp.org/list/ --- > > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From mjdewitt at alexcommgrp.com Mon Feb 24 13:45:16 2003 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Mon, 24 Feb 2003 13:45:16 -0500 Subject: Looking for ideas on how to allow spiders to crawl authenticated pages Message-ID: For some of our sites, many of the pages require registration and login in order to view the page. I would like to open up those pages to spiders in an effort to improve our web rankings. I have some ideas, but I am curious what others have done to allow spiders to crawl a page which normally would not be available to them (since they would have been redirected to a login page for access). TIA Mike From shiflett at php.net Mon Feb 24 14:01:00 2003 From: shiflett at php.net (Chris Shiflett) Date: Mon, 24 Feb 2003 11:01:00 -0800 (PST) Subject: [nycphp-talk] Looking for ideas on how to allow spiders to crawl authenticated pages In-Reply-To: <200302241846.h1OIjNHp051640@parsec.nyphp.org> Message-ID: <20030224190100.97104.qmail@web14302.mail.yahoo.com> --- "DeWitt, Michael" wrote: > For some of our sites, many of the pages require registration and login in > order to view the page. I would like to open up those pages to spiders in > an effort to improve our web rankings. You can either restrict access or not. A spider is basically an anonymous user, so anything you do to let a spider view restricted resources removes the restriction. Sure, you can check the User-Agent header to see if it matches a known spider, but your authentication is effectively reduced to someone sending this header, and if you can find User-Agent strings for known spiders, so can an attacker. Chris From JMKing at ipro.org Mon Feb 24 14:01:55 2003 From: JMKing at ipro.org (Jaz-Michael King) Date: Mon, 24 Feb 2003 14:01:55 -0500 Subject: [nycphp-talk] Looking for ideas on how to allow spiders to crawl authenticated pages Message-ID: This is an awful suggestion, and I do not recommend doing it, but one way would be to set up a google user/pass, submit the url http://user:pass at www.domain.com/protected to google. That way google would get in, get a cache and an index. Then you'd have to refuse access for that user/pass pair based on user-agent. Messy, and bad practice, but there for informational purposes only. Please don't do it. Jaz ****************************** Jaz-Michael King Online Services Manager IPRO http://ipro.org ****************************** >>> mjdewitt at alexcommgrp.com 02/24/03 01:45PM >>> For some of our sites, many of the pages require registration and login in order to view the page. I would like to open up those pages to spiders in an effort to improve our web rankings. I have some ideas, but I am curious what others have done to allow spiders to crawl a page which normally would not be available to them (since they would have been redirected to a login page for access). TIA Mike --- Unsubscribe at http://nyphp.org/list/ --- From ophir at prusak.com Mon Feb 24 15:47:11 2003 From: ophir at prusak.com (Ophir Prusak) Date: Mon, 24 Feb 2003 15:47:11 -0500 Subject: [nycphp-talk] Looking for ideas on how to allow spiders to crawl authenticated pages References: <200302241845.h1OIjNHN051640@parsec.nyphp.org> Message-ID: <023201c2dc45$e7c1ff20$bf65a8c0@tag1002> Hi Michael, On the non-technical side of this, I think it's a bad idea. Lets say technically you could allow the google spider to visit certain pages without registration. 1. A user does a search on google and one of the results is a "restricted" page google indexed. 2. The user clicks on the link 3. The user gets redirected or a note saying that in order to view the page, they need to register. (4. I'd then go back and look for the Cached link to view the page, but lets say you used the noarchive meta header so google won't cache the page.) At this point, I'd be very frustrated, feel like you tricked me and never visit your site again. IMHO you should re-think how to improve your ranking without giving the google spider special privileges. Many sites do this by showing just a teaser of the information to non-regged users. http://safari.oreilly.com is a good example of this. You could then still use all the meta tags you want and hopefully get most of the benefit without deceiving people who get to the site via google. Ophir ----- Original Message ----- From: "DeWitt, Michael" To: "NYPHP Talk" Sent: Monday, February 24, 2003 1:45 PM Subject: [nycphp-talk] Looking for ideas on how to allow spiders to crawl authenticated pages > For some of our sites, many of the pages require registration and login in > order to view the page. I would like to open up those pages to spiders in > an effort to improve our web rankings. > > I have some ideas, but I am curious what others have done to allow spiders > to crawl a page which normally would not be available to them (since they > would have been redirected to a login page for access). > > TIA > > Mike > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From mjdewitt at alexcommgrp.com Mon Feb 24 21:46:50 2003 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Mon, 24 Feb 2003 21:46:50 -0500 Subject: [nycphp-talk] Looking for ideas on how to allow spiders to cra wl authenticated pages Message-ID: Chris, This was along the lines of what I was thinking and possibly using the remote_address in conjunction to further limit the access. I don't know if this is feasible since from what I have heard of Google, their bots can come from anywhere. Mike > Sure, you can check the User-Agent header to see if it matches a known > spider, > but your authentication is effectively reduced to someone sending this > header, > and if you can find User-Agent strings for known spiders, so can an > attacker. > > Chris > > > --- Unsubscribe at http://nyphp.org/list/ --- > From mjdewitt at alexcommgrp.com Mon Feb 24 21:56:05 2003 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Mon, 24 Feb 2003 21:56:05 -0500 Subject: [nycphp-talk] Looking for ideas on how to allow spiders to cra wl authenticated pages Message-ID: Ophir, We have tried a number of ways to raise the ranking of one site, but nothing seems to make much of a difference. Our thinking is that the site appears small since so much is hidden behind free registration and that we are up against tough competition (the US government) who offers alot of pages under several domains and incestuous links between related sites. I was thinking that if we opened up the free content to spiders, more people would be aware of us, and even if they were faced with free registration, that we offer a unique service in the field and that it would be ultimately worthwhile. The noarchive meta header is a great suggestion and one that I will investigate further. Thanks for your input. Mike > -----Original Message----- > From: Ophir Prusak [SMTP:ophir at prusak.com] > Sent: Monday, February 24, 2003 3:48 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Looking for ideas on how to allow spiders > to crawl authenticated pages > > > Hi Michael, > > On the non-technical side of this, I think it's a bad idea. > Lets say technically you could allow the google spider to visit certain > pages without registration. > > 1. A user does a search on google and one of the results is a "restricted" > page google indexed. > 2. The user clicks on the link > 3. The user gets redirected or a note saying that in order to view the > page, > they need to register. > (4. I'd then go back and look for the Cached link to view the page, but > lets > say you used the noarchive meta header so google won't cache the page.) > > At this point, I'd be very frustrated, feel like you tricked me and never > visit your site again. > > IMHO you should re-think how to improve your ranking without giving the > google spider special privileges. > Many sites do this by showing just a teaser of the information to > non-regged > users. http://safari.oreilly.com is a good example of this. You could > then > still use all the meta tags you want and hopefully get most of the benefit > without deceiving people who get to the site via google. > > Ophir > > ----- Original Message ----- > From: "DeWitt, Michael" > To: "NYPHP Talk" > Sent: Monday, February 24, 2003 1:45 PM > Subject: [nycphp-talk] Looking for ideas on how to allow spiders to crawl > authenticated pages > > > > For some of our sites, many of the pages require registration and login > in > > order to view the page. I would like to open up those pages to spiders > in > > an effort to improve our web rankings. > > > > I have some ideas, but I am curious what others have done to allow > spiders > > to crawl a page which normally would not be available to them (since > they > > would have been redirected to a login page for access). > > > > TIA > > > > Mike > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From steven at sohh.com Mon Feb 24 22:19:06 2003 From: steven at sohh.com (Steven Samuel) Date: Mon, 24 Feb 2003 22:19:06 -0500 Subject: [nycphp-talk] Looking for ideas on how to allow spiders to cra wl authenticated pages In-Reply-To: <200302250247.h1P2kvI1062226@parsec.nyphp.org> Message-ID: Here's what I did to improve my site in the rankings. I made an invisible link on my opening page. (TOP LEFT, right below the WIRE image) and that image links to: http://www.sohh.com/meta_crawl.html This file contains all the links to my site that I want indexed by spiders. And when I submit to search engines, I submit: http://www.sohh.com/meta_crawl.html I'm usually in the top 5 when people search for Hip-Hop. Steven Samuel SOHH.com -----Original Message----- From: DeWitt, Michael [mailto:mjdewitt at alexcommgrp.com] Sent: Monday, February 24, 2003 9:47 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Looking for ideas on how to allow spiders to cra wl authenticated pages Chris, This was along the lines of what I was thinking and possibly using the remote_address in conjunction to further limit the access. I don't know if this is feasible since from what I have heard of Google, their bots can come from anywhere. Mike > Sure, you can check the User-Agent header to see if it matches a known > spider, > but your authentication is effectively reduced to someone sending this > header, > and if you can find User-Agent strings for known spiders, so can an > attacker. > > Chris > > > > --- Unsubscribe at http://nyphp.org/list/ --- From tech_learner at yahoo.com Tue Feb 25 01:31:04 2003 From: tech_learner at yahoo.com (Tracy) Date: Mon, 24 Feb 2003 22:31:04 -0800 (PST) Subject: Fwd: Fw:_PHP_Québec_Conférence_2003 Message-ID: <20030225063104.36407.qmail@web14308.mail.yahoo.com> Note: forwarded message attached. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded message was scrubbed... From: "Mayuri" Subject: =?iso-8859-1?Q?Fw:_PHP_Qu=E9bec_Conf=E9rence_2003?= Date: Tue, 25 Feb 2003 11:53:59 +0530 Size: 3023 URL: From tech_learner at yahoo.com Tue Feb 25 07:47:34 2003 From: tech_learner at yahoo.com (Tracy) Date: Tue, 25 Feb 2003 04:47:34 -0800 (PST) Subject: PEAR related In-Reply-To: <200302250323.h1P3MpKr064002@parsec.nyphp.org> Message-ID: <20030225124734.34167.qmail@web14302.mail.yahoo.com> Hi, has/is some one work(ed/ing) with pear? i managed to install pear but since i didnt know i had to change the include_path in php.ini, the pear installation has installed pear in the c:\\php4win\\ where i have the rest of the stuff from the php4.3.1.zip. but it has created a new c:\\php4 and has a 'pear.ini' in it, nothing else. since the installation after completion adviced me to add c:\\php4win\\pear to the include_dir and the c:\\php4win\\ to the PATH, i changed the php.ini settings. now a displays include_path as .;c:\\php4win\\;c:\\php4win\\pear. do i need to move the pear.ini to somewhere other than c:\\php4? i am asking this cos a 'pear help' on the commandline spitted out bad command of file name, command not found.... wots to be done, someone tell me plz and wot does this mean?
i dont understand the values given to the option. the script isint working anyway :-( ... Thz Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From nestorflorez at earthlink.net Tue Feb 25 08:45:55 2003 From: nestorflorez at earthlink.net (Nestor) Date: Tue, 25 Feb 2003 05:45:55 -0800 Subject: [nycphp-talk] PEAR related In-Reply-To: <200302251247.h1PClbCN072031@parsec.nyphp.org> Message-ID: I think the values given to the options just means that $rdf_source contains the values 1 thru 4. if 1 == $rdf_source same as if $rdf_source == 1 Do not know anyting about PEAR. I thought that PEAR was include in the latest PHP release of 4.3.1 :-) -----Original Message----- From: Tracy [mailto:tech_learner at yahoo.com] Sent: Tuesday, February 25, 2003 4:48 AM To: NYPHP Talk Subject: [nycphp-talk] PEAR related Hi, has/is some one work(ed/ing) with pear? i managed to install pear but since i didnt know i had to change the include_path in php.ini, the pear installation has installed pear in the c:\\php4win\\ where i have the rest of the stuff from the php4.3.1.zip. but it has created a new c:\\php4 and has a 'pear.ini' in it, nothing else. since the installation after completion adviced me to add c:\\php4win\\pear to the include_dir and the c:\\php4win\\ to the PATH, i changed the php.ini settings. now a displays include_path as .;c:\\php4win\\;c:\\php4win\\pear. do i need to move the pear.ini to somewhere other than c:\\php4? i am asking this cos a 'pear help' on the commandline spitted out bad command of file name, command not found.... wots to be done, someone tell me plz and wot does this mean?
i dont understand the values given to the option. the script isint working anyway :-( ... Thz Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more --- Unsubscribe at http://nyphp.org/list/ --- --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003 From jonbaer at jonbaer.net Tue Feb 25 12:05:14 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 25 Feb 2003 09:05:14 -0800 Subject: [nycphp-talk] PEAR related References: <200302251339.h1PDdZEv073224@parsec.nyphp.org> Message-ID: <002c01c2dcf0$10fd9070$6400a8c0@laptop> > Do not know anyting about PEAR. > I thought that PEAR was include in the latest PHP > release of 4.3.1 > Only for *nix not Windoze. http://pear.php.net - Jon From nsr81 at ny-tech.net Tue Feb 25 17:43:08 2003 From: nsr81 at ny-tech.net (Nasir Zubair) Date: Tue, 25 Feb 2003 17:43:08 -0500 Subject: test In-Reply-To: <200302201523.h1KFN0xv045997@parsec.nyphp.org> Message-ID: <000001c2dd1f$45243280$6401a8c0@nyt001> Just testing, please ignore :) From mjdewitt at alexcommgrp.com Wed Feb 26 09:17:47 2003 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Wed, 26 Feb 2003 09:17:47 -0500 Subject: Last night's meeting was another good one Message-ID: Even with the bagels arriving late (perhaps we were the last delivery on Hans' route last night?), it was a great meeting. Many thanks to Adam Trachtenberg and David Sklar for their fun and interesting presentations and of course the books which we jealously gave away. I think that we had about 50 attendees which were all comfortably accommodated through Digital Pulp's busting out of every chair and couch in the place. Thank you very much Andrew for getting this coordinated. For those who could not make the meeting, I hope to post some pictures and links to audio streams (realmedia) of the meeting by Friday. Keep your eye on http://nyphp.org/presentations/ for my update. Mike From mz34 at nyu.edu Wed Feb 26 10:19:40 2003 From: mz34 at nyu.edu (Matthew Zimmerman) Date: Wed, 26 Feb 2003 10:19:40 -0500 Subject: [nycphp-talk] Last night's meeting was another good one In-Reply-To: <200302261418.h1QEHtGR011989@parsec.nyphp.org> Message-ID: I thought it was a great meeting. This is my second one and both have been great. I am new to programming and PHP and I have enjoyed how the presentations are a good combination of practical information for newbies like me (caching, data filtering) and then some more detailed stuff (like web services, code optimization) that I hope to be able to use when I get to that level. Great job to Hans and the rest of the team that puts together the meetings. Matt On Wednesday, February 26, 2003, at 09:17 AM, DeWitt, Michael wrote: > Even with the bagels arriving late (perhaps we were the last delivery > on > Hans' route last night?), it was a great meeting. Many thanks to Adam > Trachtenberg and David Sklar for their fun and interesting > presentations and > of course the books which we jealously gave away. > I think that we had about 50 attendees which were all comfortably > accommodated through Digital Pulp's busting out of every chair and > couch in > the place. Thank you very much Andrew for getting this coordinated. > For those who could not make the meeting, I hope to post some pictures > and > links to audio streams (realmedia) of the meeting by Friday. Keep your > eye > on http://nyphp.org/presentations/ for my update. > Mike > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > MZ _________________ Matthew Zimmerman Humanities Computing Group, NYU Tel: 212.998.3038 Fax: 212.995.4120 From heli_travel at yahoo.com Wed Feb 26 10:45:53 2003 From: heli_travel at yahoo.com (LY) Date: Wed, 26 Feb 2003 07:45:53 -0800 (PST) Subject: CRM Software In-Reply-To: <200210230254.g9N2s4qn003095@parsec.nyphp.org> Message-ID: <20030226154553.93622.qmail@web12208.mail.yahoo.com> Hi, Could some one refer me a free CRM software programmed in PHP has Chinese, Korea, Japanese and English languages version? Also your team can do the support. We are a marketing company, try to do this kind of business like www.salesforce.com. We can do a revenue share program. Thanks LY __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From LarryC at indexstock.com Wed Feb 26 10:49:40 2003 From: LarryC at indexstock.com (Larry Chuon) Date: Wed, 26 Feb 2003 10:49:40 -0500 Subject: [nycphp-talk] CRM Software Message-ID: <86713EAB93BD5F40B94A0C8E604C7C91AEBCD5@index-exchange.indexstock.com> Hi Ly, OSSuite is in the process of building a php application similarly to Salesforce. We just completed the specs and will proceed with coding soon. If you're interested, you can collaborate with us. Otherwise, you can find feature lacking CRM apps such as Tutos, Relatas, phpCollab, and openCRM on Sourceforge. Larry -----Original Message----- From: LY [mailto:heli_travel at yahoo.com] Sent: Wednesday, February 26, 2003 10:46 AM To: NYPHP Talk Subject: [nycphp-talk] CRM Software Hi, Could some one refer me a free CRM software programmed in PHP has Chinese, Korea, Japanese and English languages version? Also your team can do the support. We are a marketing company, try to do this kind of business like www.salesforce.com. We can do a revenue share program. Thanks LY __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ --- Unsubscribe at http://nyphp.org/list/ --- From jonbaer at jonbaer.net Wed Feb 26 13:56:37 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 26 Feb 2003 10:56:37 -0800 Subject: [nycphp-talk] Last night's meeting was another good one References: <200302261519.h1QFJZEr013194@parsec.nyphp.org> Message-ID: <002d01c2ddc8$ca192b40$6600a8c0@laptop> Last night was my first meeting and I enjoyed it, was a nice job. The only few things that I wished were discussed were SOAP services from the server side via PEAR::SOAP (vs. client discussion), easier defining of public functions, etc (.php -> .wsdl, etc). The other question I had about intelligently handling WSDL in an IDE was something I thought Id find an answer to :-) Looking forward to more good discussions @ future meetings ... - Jon From sklar at sklar.com Wed Feb 26 11:12:44 2003 From: sklar at sklar.com (David Sklar) Date: Wed, 26 Feb 2003 11:12:44 -0500 Subject: [nycphp-talk] Last night's meeting was another good one In-Reply-To: <200302261558.h1QFvgHl015572@parsec.nyphp.org> Message-ID: Jon Baer wrote: > The other > question I had about intelligently handling WSDL in an IDE was > something I thought Id find an answer to :-) I haven't actually used any of this, but Eclipse (http://www.eclipse.org/) has a PHP plugin (http://phpeclipse.sourceforge.net/) and a WSDL viewer (http://www.improve-technologies.com/alpha/wsdl-viewer/) so you may be able to do what you want with that. David From jonbaer at jonbaer.net Wed Feb 26 14:22:00 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 26 Feb 2003 11:22:00 -0800 Subject: [nycphp-talk] Last night's meeting was another good one References: <200302261612.h1QGC2Er016497@parsec.nyphp.org> Message-ID: <004001c2ddcc$5640cf30$6600a8c0@laptop> Close ... What that gives you is a more graphical view and representation of the WSDL ... http://www.improve-technologies.com/alpha/wsdl-viewer/images/amazon1.jpg I had been hoping for some more associated with inline programming (like a smart complete function) where you could code or associate an array to strictly adhere to what was in the WSDL file ... like: $wsdl_function => [tab] -> list of available functions via the API A while ago when the spec was just released I had attempted to build one using JPadPro from Modelworks (www.modelworks.com), I just wanted to see what other IDEs might have such a function before going back. - Jon ----- Original Message ----- From: "David Sklar" To: "NYPHP Talk" Sent: Wednesday, February 26, 2003 8:12 AM Subject: RE: [nycphp-talk] Last night's meeting was another good one > Jon Baer wrote: > > The other > > question I had about intelligently handling WSDL in an IDE was > > something I thought Id find an answer to :-) > > I haven't actually used any of this, but Eclipse (http://www.eclipse.org/) > has a PHP plugin (http://phpeclipse.sourceforge.net/) and a WSDL viewer > (http://www.improve-technologies.com/alpha/wsdl-viewer/) so you may be able > to do what you want with that. > > David > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From heli_travel at yahoo.com Wed Feb 26 11:23:16 2003 From: heli_travel at yahoo.com (LY) Date: Wed, 26 Feb 2003 08:23:16 -0800 (PST) Subject: [nycphp-talk] CRM Software In-Reply-To: <200302261550.h1QFngKF014821@parsec.nyphp.org> Message-ID: <20030226162316.47943.qmail@web12205.mail.yahoo.com> Dear Larry, Thanks for the quick reply. I will talk this with my partners, hope we can meet soon! Best Regards! LY --- Larry Chuon wrote: > Hi Ly, > > OSSuite is in the process of building a php application > similarly to > Salesforce. We just completed the specs and will proceed with > coding soon. > If you're interested, you can collaborate with us. Otherwise, > you can find > feature lacking CRM apps such as Tutos, Relatas, phpCollab, > and openCRM on > Sourceforge. > > Larry > > -----Original Message----- > From: LY [mailto:heli_travel at yahoo.com] > Sent: Wednesday, February 26, 2003 10:46 AM > To: NYPHP Talk > Subject: [nycphp-talk] CRM Software > > Hi, > > Could some one refer me a free CRM software programmed in PHP > has Chinese, Korea, Japanese and English languages version? > Also > your team can do the support. > We are a marketing company, try to do this kind of business > like > www.salesforce.com. We can do a revenue share program. > > Thanks > > LY > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From ny_elena at yahoo.com Wed Feb 26 11:52:58 2003 From: ny_elena at yahoo.com (Elena Zagrai) Date: Wed, 26 Feb 2003 08:52:58 -0800 (PST) Subject: Limited Jpeg Colors Message-ID: <20030226165259.59584.qmail@web20707.mail.yahoo.com> Hi everybody, I've got a problem here which bothers me a lot. I have a jpeg picture which I insert with createimagefromjpeg. After that I try to draw lines of different colors on top of it, but the colors are completely different from those I define with ImageColorAllocate. It looks like there is some kind of limitation of colors in my jpeg. Any idea? Thanks, Elena __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From adam at trachtenberg.com Wed Feb 26 12:02:51 2003 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 26 Feb 2003 12:02:51 -0500 (EST) Subject: [nycphp-talk] Last night's meeting was another good one In-Reply-To: <200302261624.h1QGN7Ih050616@parsec.nyphp.org> Message-ID: It looks like Sun's Forte IDE and maybe Metrowerks's CodeWarrior both claim to support features like this. -adam On Wed, 26 Feb 2003, Jon Baer wrote: > Close ... > > What that gives you is a more graphical view and representation of the WSDL > .. > > http://www.improve-technologies.com/alpha/wsdl-viewer/images/amazon1.jpg > > I had been hoping for some more associated with inline programming (like a > smart complete function) where you could code or associate an array to > strictly adhere to what was in the WSDL file ... like: > > $wsdl_function => [tab] -> list of available functions via the API > > A while ago when the spec was just released I had attempted to build one > using JPadPro from Modelworks (www.modelworks.com), I just wanted to see > what other IDEs might have such a function before going back. > > - Jon > > ----- Original Message ----- > From: "David Sklar" > To: "NYPHP Talk" > Sent: Wednesday, February 26, 2003 8:12 AM > Subject: RE: [nycphp-talk] Last night's meeting was another good one > > > > Jon Baer wrote: > > > The other > > > question I had about intelligently handling WSDL in an IDE was > > > something I thought Id find an answer to :-) > > > > I haven't actually used any of this, but Eclipse (http://www.eclipse.org/) > > has a PHP plugin (http://phpeclipse.sourceforge.net/) and a WSDL viewer > > (http://www.improve-technologies.com/alpha/wsdl-viewer/) so you may be > able > > to do what you want with that. > > > > David > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From adam at trachtenberg.com Wed Feb 26 12:08:42 2003 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 26 Feb 2003 12:08:42 -0500 (EST) Subject: [nycphp-talk] Last night's meeting was another good one In-Reply-To: <200302261703.h1QH2sIh055366@parsec.nyphp.org> Message-ID: On Wed, 26 Feb 2003, Adam Maccabee Trachtenberg wrote: > It looks like Sun's Forte IDE and maybe Metrowerks's CodeWarrior both claim > to support features like this. And, after some additional poking around, I think NuSphere's PHPEd will do this too. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From brent at landover.com Wed Feb 26 12:21:21 2003 From: brent at landover.com (Brent Baisley) Date: Wed, 26 Feb 2003 12:21:21 -0500 Subject: [nycphp-talk] CRM Software In-Reply-To: <200302261546.h1QFjtF3014120@parsec.nyphp.org> Message-ID: You can try taking a look at moregrouware, available on sourceforge.net. It's not precisely CRM, but has a lot of features (Contacts, Calendar, To Do, Email, News, etc). I'm not sure what languages it's available in, but I'm pretty sure it's no natively English. Although it is available in English. On Wednesday, February 26, 2003, at 10:45 AM, LY wrote: > Hi, > > Could some one refer me a free CRM software programmed in PHP > has Chinese, Korea, Japanese and English languages version? Also > your team can do the support. > We are a marketing company, try to do this kind of business like > www.salesforce.com. We can do a revenue share program. > > Thanks > > LY > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 From ophir at prusak.com Wed Feb 26 13:23:30 2003 From: ophir at prusak.com (Ophir Prusak) Date: Wed, 26 Feb 2003 13:23:30 -0500 Subject: Denying multiple logins to restricted pages References: <200302261418.h1QEHtHH011989@parsec.nyphp.org> Message-ID: <072601c2ddc4$2a13bba0$bf65a8c0@tag1002> Hi All, I'm creating a site that requires people to register and login for access to certain pages. I want to stop users from giving out their username/password to other people by denying access to more than one person using the same username at the same time. I have a few ideas in my head, but would really like to hear from others that may have already tackled this problem and what solution they came up with. Also, I'm still debating what to do when I find out that indeed two (or more) people are trying to use the same username. Do I deny the latest attempt ? Do I accept the latest attempt and then reject requests from all other people using the same username ? etc. Ophir From jonbaer at jonbaer.net Wed Feb 26 16:34:39 2003 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 26 Feb 2003 13:34:39 -0800 Subject: [nycphp-talk] Denying multiple logins to restricted pages References: <200302261824.h1QIOPEr082196@parsec.nyphp.org> Message-ID: <000701c2ddde$de7ce340$6600a8c0@laptop> Your best bet is to use session handling with a database to create an AAA type of system and have the session handler modify the log in and out flags of a user ... For more info ... http://www.php.net/manual/en/function.session-set-save-handler.php When the 2nd user attempts to write a session check to make sure they are not already logged in w/ other credentials. - Jon ----- Original Message ----- From: "Ophir Prusak" To: "NYPHP Talk" Sent: Wednesday, February 26, 2003 10:24 AM Subject: [nycphp-talk] Denying multiple logins to restricted pages > Hi All, > > I'm creating a site that requires people to register and login for access to > certain pages. > I want to stop users from giving out their username/password to other people > by denying access to more than one person using the same username at the > same time. > > I have a few ideas in my head, but would really like to hear from others > that may have already tackled this problem and what solution they came up > with. > > Also, I'm still debating what to do when I find out that indeed two (or > more) people are trying to use the same username. > Do I deny the latest attempt ? > Do I accept the latest attempt and then reject requests from all other > people using the same username ? > etc. > > Ophir > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From nyphp at websapp.com Wed Feb 26 13:35:37 2003 From: nyphp at websapp.com (Daniel Kushner) Date: Wed, 26 Feb 2003 13:35:37 -0500 Subject: [nycphp-talk] Last night's meeting was another good one In-Reply-To: <200302261419.h1QEHtJZ011989@parsec.nyphp.org> Message-ID: Hi, I would like to follow up on Mike's email and thank the following for sponsoring last night's meeting: -- Digital Pulp (http://www.digitalpulp.com) for the space -- O'Reilly (http://www.oreilly.com) for the books -- Oddcast (http://www.oddcast.com) for the bagels and drinks Also, could those who had come to me about volunteering please send directors at nyphp.org an email and include a brief description of what you'd like to help with. Thank you, Daniel Kushner Vice President, New York PHP http://nyphp.org/ daniel at nyphp.org > -----Original Message----- > From: DeWitt, Michael [mailto:mjdewitt at alexcommgrp.com] > Sent: Wednesday, February 26, 2003 9:18 AM > To: NYPHP Talk > Subject: [nycphp-talk] Last night's meeting was another good one > > > Even with the bagels arriving late (perhaps we were the last delivery on > Hans' route last night?), it was a great meeting. Many thanks to Adam > Trachtenberg and David Sklar for their fun and interesting presentations and > of course the books which we jealously gave away. > I think that we had about 50 attendees which were all comfortably > accommodated through Digital Pulp's busting out of every chair and couch in > the place. Thank you very much Andrew for getting this coordinated. > For those who could not make the meeting, I hope to post some pictures and > links to audio streams (realmedia) of the meeting by Friday. Keep your eye > on http://nyphp.org/presentations/ for my update. > Mike > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From nyphp at enobrev.com Wed Feb 26 13:42:05 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Wed, 26 Feb 2003 13:42:05 -0500 Subject: [nycphp-talk] Denying multiple logins to restricted pages In-Reply-To: <200302261824.h1QIOPCh082196@parsec.nyphp.org> Message-ID: <000e01c2ddc6$c5b9b3a0$96721d18@enobrev> Well, the 2 methods I've used to solve the problem involve either cron jobs or running a mini script in my config file which is called by every script (depending on availability of cron job control). For starters, Using session handling hasn't always been reliable in my experience. It's easy to figure you can catch session closes (close browser or open different page) that you should just log them off, but unfortunately you can't always catch a session close and run the proper script. Browser crashes and different browser set ups don't always allow for it. Basically, I create a last_hit column (date/time) and logged_in (char(1)) in my login database. The script checks all logged_in = 1 and if their time is greater than set time (usually 10 minutes) it set's logged_in to 0. And in order to access any page on the member the site, logged_in must be one and their last_hit time is updated. Also, in the login check script, make sure the user's "logged_in" is not already set to 1. If it is, they have to wait 0 minutes or someone else is using their login. Depending on your hardware setup, this could actually be faster with a text file. You could also do this with ip's and such, but with dynamic IP's being changes without notice from ISP's this isn't always reliable. Regardless of methods, Good Luck!! Mark -----Original Message----- From: Ophir Prusak [mailto:ophir at prusak.com] Sent: Wednesday, February 26, 2003 1:24 PM To: NYPHP Talk Subject: [nycphp-talk] Denying multiple logins to restricted pages Hi All, I'm creating a site that requires people to register and login for access to certain pages. I want to stop users from giving out their username/password to other people by denying access to more than one person using the same username at the same time. I have a few ideas in my head, but would really like to hear from others that may have already tackled this problem and what solution they came up with. Also, I'm still debating what to do when I find out that indeed two (or more) people are trying to use the same username. Do I deny the latest attempt ? Do I accept the latest attempt and then reject requests from all other people using the same username ? etc. Ophir --- Unsubscribe at http://nyphp.org/list/ --- From mjdewitt at alexcommgrp.com Wed Feb 26 13:55:27 2003 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Wed, 26 Feb 2003 13:55:27 -0500 Subject: [nycphp-talk] Denying multiple logins to restricted pages Message-ID: Ophir, I have never done anything like this yet, but it is a concern on my list of things to do some day. one policy issue which may or may not affect you is whether to allow multiple logins from the same IP. With corprations behind a nating router, its hard to know if this one user with two sessions or two users. Another example of how things can look abusive: a corporate joe fires up your site and logs in via the corporate network and then launches AOL and surfs to your site again via the AOL network. He will appear to be coming from two IP addresses with logins perhaps minutes apart. I currently log userid/ipaddress/pageinfo to a table and eye ball it for abuse by running counts by user. So far I haven't seen anything abusive, but I would love to be able to fully automate this. Mike > -----Original Message----- > From: Ophir Prusak [SMTP:ophir at prusak.com] > Sent: Wednesday, February 26, 2003 1:24 PM > To: NYPHP Talk > Subject: [nycphp-talk] Denying multiple logins to restricted pages > > Hi All, > > I'm creating a site that requires people to register and login for access > to > certain pages. > I want to stop users from giving out their username/password to other > people > by denying access to more than one person using the same username at the > same time. > > I have a few ideas in my head, but would really like to hear from others > that may have already tackled this problem and what solution they came up > with. > > Also, I'm still debating what to do when I find out that indeed two (or > more) people are trying to use the same username. > Do I deny the latest attempt ? > Do I accept the latest attempt and then reject requests from all other > people using the same username ? > etc. > > Ophir > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From mjdewitt at alexcommgrp.com Wed Feb 26 14:15:20 2003 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Wed, 26 Feb 2003 14:15:20 -0500 Subject: [nycphp-talk] Denying multiple logins to restricted pages Message-ID: Mark, It's interesting that you focus on the end of session as an issue just as I do. I thought there might be a way to validate a previous/other session by checking for the corresponding file stored by the session handler. The issue here is that the session may have timed out but hasn't been cleaned yet by the garbage collection process. Perhaps there is a way to glean the time value out of the session string? I would be surprised if the timestamp was not embedded in it. Mike > For starters, Using session handling hasn't always been reliable in my > experience. It's easy to figure you can catch session closes (close > browser > or open different page) that you should just log them off, but > unfortunately > you can't always catch a session close and run the proper script. Browser > crashes and different browser set ups don't always allow for it. > > > -----Original Message----- > From: Ophir Prusak [mailto:ophir at prusak.com] > Sent: Wednesday, February 26, 2003 1:24 PM > To: NYPHP Talk > Subject: [nycphp-talk] Denying multiple logins to restricted pages > > > Hi All, > > I'm creating a site that requires people to register and login for access > to > certain pages. I want to stop users from giving out their > username/password > to other people by denying access to more than one person using the same > username at the same time. > > I have a few ideas in my head, but would really like to hear from others > that may have already tackled this problem and what solution they came up > with. > > Also, I'm still debating what to do when I find out that indeed two (or > more) people are trying to use the same username. > Do I deny the latest attempt ? > Do I accept the latest attempt and then reject requests from all other > people using the same username ? etc. > > Ophir > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > From soazine at erols.com Wed Feb 26 16:32:41 2003 From: soazine at erols.com (Phil Powell) Date: Wed, 26 Feb 2003 16:32:41 -0500 Subject: Need FREE PHP site with mySQL Message-ID: <01af01c2ddde$97e17a90$2aaf6244@scandinawa1bo6> OK, this might be a bizarre challenge, but I am in need of a free hosting site that allows for PHP and mySQL (or Access or whatever). I have been using www.brinkster.com for my free DB needs for 3 years and I absolutely HATE the site! It is extremely poorly developed as far as a hosting service for the free people is concerned (unless you want to pay like the obligatory $35/mo), and I honestly do not have the budget (as in, no budget) to afford anything that costs. What would you suggest I do at this point? Thanx Phil -------------- next part -------------- An HTML attachment was scrubbed... URL: From cmerlo at turing.matcmp.ncc.edu Wed Feb 26 16:49:26 2003 From: cmerlo at turing.matcmp.ncc.edu (Christopher R. Merlo) Date: Wed, 26 Feb 2003 16:49:26 -0500 Subject: [nycphp-talk] Need FREE PHP site with mySQL In-Reply-To: <200302262136.h1QLZiIv051306@parsec.nyphp.org>; from soazine@erols.com on Wed, Feb 26, 2003 at 04:35:44PM -0500 References: <200302262136.h1QLZiIv051306@parsec.nyphp.org> Message-ID: <20030226164926.B12934@turing.matcmp.ncc.edu> On 2003-02-26 16:35 -0500, Phil Powell wrote: > OK, this might be a bizarre challenge, but I am in need of a free > hosting site that allows for PHP and mySQL (or Access or whatever). > I have been using www.brinkster.com for my free DB needs for 3 years > and I absolutely HATE the site! It is extremely poorly developed as > far as a hosting service for the free people is concerned (unless > you want to pay like the obligatory $35/mo), and I honestly do not > have the budget (as in, no budget) to afford anything that costs. > What would you suggest I do at this point? Out here on LI, Cablevision blocks incoming requests on port 80. But if your [cable|dsl] provider doesn't, you can always roll your own at home, which is what I did for a long time until Code Red prompted Cablevision to shut it down. -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo A certain amount of opposition is a help, not a hindrance. Kites rise against the wind, not with it. From jhise at nextsource.com Wed Feb 26 17:02:03 2003 From: jhise at nextsource.com (Jeremy Hise) Date: Wed, 26 Feb 2003 17:02:03 -0500 Subject: [nycphp-talk] Need FREE PHP site with mySQL In-Reply-To: <200302262149.h1QLnUG7079070@parsec.nyphp.org> References: <200302262149.h1QLnUG7079070@parsec.nyphp.org> Message-ID: <20030226170204.308adc60.jhise@nextsource.com> Since you bring up hosting your own, if you can go with Cloud9 I suggest it. After coming from Verizon DSL, I was blown away by their help. I currently have my own PHP/mySQL box running outta the old appartment. Certainly not for production use. Their techies will work with you. I was one of the first to receive their new dsl modem and had problems cause I think both their modem and my router where both trying to do NAT. They totally hooked me up. They walked me through disabling the NAT on their modem and everything was great. They don't block port 80. They really don't seem to care what you do with yer line. Anyway. If you don't have the budget for jtlnet.com (php/mysql/10Mb @$7.95) then I'm assuming you don't have the budget for DSL. On Wed, 26 Feb 2003 16:49:30 -0500 "Christopher R. Merlo" wrote: > On 2003-02-26 16:35 -0500, Phil Powell wrote: > > > OK, this might be a bizarre challenge, but I am in need of a free > > hosting site that allows for PHP and mySQL (or Access or whatever). > > I have been using www.brinkster.com for my free DB needs for 3 years > > and I absolutely HATE the site! It is extremely poorly developed as > > far as a hosting service for the free people is concerned (unless > > you want to pay like the obligatory $35/mo), and I honestly do not > > have the budget (as in, no budget) to afford anything that costs. > > What would you suggest I do at this point? > > Out here on LI, Cablevision blocks incoming requests on port 80. But > if your [cable|dsl] provider doesn't, you can always roll your own at > home, which is what I did for a long time until Code Red prompted > Cablevision to shut it down. > > -- > cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo > > A certain amount of opposition is a help, not a hindrance. Kites rise > against the wind, not with it. > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ From soazine at erols.com Wed Feb 26 16:59:05 2003 From: soazine at erols.com (Phil Powell) Date: Wed, 26 Feb 2003 16:59:05 -0500 Subject: [nycphp-talk] Need FREE PHP site with mySQL References: <200302262149.h1QLnUCj079070@parsec.nyphp.org> Message-ID: <01d801c2dde2$48290370$2aaf6244@scandinawa1bo6> Wish I could.. Cox here blocks port 80 and monitors rogue ports as well. Though I probably could get away with it if need be; problem is my home system is so freakin' unstable it's not worth trying :( Phil ----- Original Message ----- From: "Christopher R. Merlo" To: "NYPHP Talk" Sent: Wednesday, February 26, 2003 4:49 PM Subject: Re: [nycphp-talk] Need FREE PHP site with mySQL > On 2003-02-26 16:35 -0500, Phil Powell wrote: > > > OK, this might be a bizarre challenge, but I am in need of a free > > hosting site that allows for PHP and mySQL (or Access or whatever). > > I have been using www.brinkster.com for my free DB needs for 3 years > > and I absolutely HATE the site! It is extremely poorly developed as > > far as a hosting service for the free people is concerned (unless > > you want to pay like the obligatory $35/mo), and I honestly do not > > have the budget (as in, no budget) to afford anything that costs. > > What would you suggest I do at this point? > > Out here on LI, Cablevision blocks incoming requests on port 80. But > if your [cable|dsl] provider doesn't, you can always roll your own at > home, which is what I did for a long time until Code Red prompted > Cablevision to shut it down. > > -- > cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo > > A certain amount of opposition is a help, not a hindrance. Kites rise > against the wind, not with it. > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From soazine at erols.com Wed Feb 26 16:59:25 2003 From: soazine at erols.com (Phil Powell) Date: Wed, 26 Feb 2003 16:59:25 -0500 Subject: [nycphp-talk] Need FREE PHP site with mySQL References: <200302262158.h1QLwMCj079825@parsec.nyphp.org> Message-ID: <01de01c2dde2$53dc0230$2aaf6244@scandinawa1bo6> Yeah, DSL is out of my budget, and out of reality; I can't get DSL where I live :( Phil ----- Original Message ----- From: "Jeremy Hise" To: "NYPHP Talk" Sent: Wednesday, February 26, 2003 4:58 PM Subject: Re: [nycphp-talk] Need FREE PHP site with mySQL > Since you bring up hosting your own, if you can go with Cloud9 I suggest it. After coming from Verizon DSL, I was blown away by their help. I currently have my own PHP/mySQL box running outta the old appartment. Certainly not for production use. Their techies will work with you. I was one of the first to receive their new dsl modem and had problems cause I think both their modem and my router where both trying to do NAT. They totally hooked me up. They walked me through disabling the NAT on their modem and everything was great. They don't block port 80. They really don't seem to care what you do with yer line. > > Anyway. If you don't have the budget for jtlnet.com (php/mysql/10Mb @$7.95) then I'm assuming you don't have the budget for DSL. > > > > > On Wed, 26 Feb 2003 16:49:30 -0500 > "Christopher R. Merlo" wrote: > > > On 2003-02-26 16:35 -0500, Phil Powell wrote: > > > > > OK, this might be a bizarre challenge, but I am in need of a free > > > hosting site that allows for PHP and mySQL (or Access or whatever). > > > I have been using www.brinkster.com for my free DB needs for 3 years > > > and I absolutely HATE the site! It is extremely poorly developed as > > > far as a hosting service for the free people is concerned (unless > > > you want to pay like the obligatory $35/mo), and I honestly do not > > > have the budget (as in, no budget) to afford anything that costs. > > > What would you suggest I do at this point? > > > > Out here on LI, Cablevision blocks incoming requests on port 80. But > > if your [cable|dsl] provider doesn't, you can always roll your own at > > home, which is what I did for a long time until Code Red prompted > > Cablevision to shut it down. > > > > -- > > cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo > > > > A certain amount of opposition is a help, not a hindrance. Kites rise > > against the wind, not with it. > > > > > > > > > > > -- > > -+----------------------+ > | jhise at nextsource.com | > | developer | > | nextSource, Inc. | > | x334 | > +----------------------+ > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From lists at ny-tech.net Wed Feb 26 17:37:21 2003 From: lists at ny-tech.net (Nasir Zubair) Date: Wed, 26 Feb 2003 17:37:21 -0500 (Eastern Standard Time) Subject: [nycphp-talk] Need FREE PHP site with mySQL References: <200302262203.h1QM2RGB080752@parsec.nyphp.org> Message-ID: <3E5D41A1.000001.00256@nyt-001> If this is gonna be a low traffic site, I might be able to offer you a subdomain at my site, php4, mysql, etc. You can email me at nsr81 at ny-tech net if interested. - Nasir Zubair -------Original Message------- From: talk at nyphp.org Date: Wednesday, February 26, 2003 5:02:54 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Need FREE PHP site with mySQL Yeah, DSL is out of my budget, and out of reality; I can't get DSL where I live :( Phil ----- Original Message ----- From: "Jeremy Hise" To: "NYPHP Talk" Sent: Wednesday, February 26, 2003 4:58 PM Subject: Re: [nycphp-talk] Need FREE PHP site with mySQL > Since you bring up hosting your own, if you can go with Cloud9 I suggest it. After coming from Verizon DSL, I was blown away by their help. I currently have my own PHP/mySQL box running outta the old appartment. Certainly not for production use. Their techies will work with you. I was one of the first to receive their new dsl modem and had problems cause I think both their modem and my router where both trying to do NAT. They totally hooked me up. They walked me through disabling the NAT on their modem and everything was great. They don't block port 80. They really don't seem to care what you do with yer line. > > Anyway. If you don't have the budget for jtlnet.com (php/mysql/10Mb @$7.95) then I'm assuming you don't have the budget for DSL. > > > > > On Wed, 26 Feb 2003 16:49:30 -0500 > "Christopher R. Merlo" wrote: > > > On 2003-02-26 16:35 -0500, Phil Powell wrote: > > > > > OK, this might be a bizarre challenge, but I am in need of a free > > > hosting site that allows for PHP and mySQL (or Access or whatever). > > > I have been using www.brinkster.com for my free DB needs for 3 years > > > and I absolutely HATE the site! It is extremely poorly developed as > > > far as a hosting service for the free people is concerned (unless > > > you want to pay like the obligatory $35/mo), and I honestly do not > > > have the budget (as in, no budget) to afford anything that costs. > > > What would you suggest I do at this point? > > > > Out here on LI, Cablevision blocks incoming requests on port 80. But > > if your [cable|dsl] provider doesn't, you can always roll your own at > > home, which is what I did for a long time until Code Red prompted > > Cablevision to shut it down. > > > > -- > > cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo > > > > A certain amount of opposition is a help, not a hindrance. Kites rise > > against the wind, not with it. > > > > > > > > > > > -- > > -+----------------------+ > | jhise at nextsource.com | > | developer | > | nextSource, Inc. | > | x334 | > +----------------------+ > > > > > --- Unsubscribe at http://nyphp.org/list/ --- . -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IMSTP.gif Type: image/gif Size: 494 bytes Desc: not available URL: From ian at plusfour.org Wed Feb 26 19:29:43 2003 From: ian at plusfour.org (Ian Forsyth) Date: Wed, 26 Feb 2003 16:29:43 -0800 Subject: OT:ftp EPSV error.. Message-ID: <9138BC3B-49EA-11D7-A5BE-0050E4858059@plusfour.org> Hello from the wild west. Wondering if anyone has run into this error.. here is the debug output from my ftp client, command line Mac OS X ftp client (aka freebsd 4.4 i think).. 215 UNIX Type: L8 Remote system type is UNIX. Using binary mode to transfer files. ---> FEAT 500 'FEAT': command not understood. features[0] = 0 features[1] = -1 features[2] = -1 features[3] = -1 features[4] = -1 features[5] = -1 ---> PWD 257 "/u/ftpsecure" is current directory. got remotepwd as `/u/ftpsecure' ftp> ls ---> EPSV 500 'EPSV': command not understood. disabling epsv4 for this connection ---> PASV 227 Entering Passive Mode (192,168,0,75,203,86) connection times out.. I am behind a router that is doing NAT, no real firewall.. the remote ftp server is behind NAT/Firewall.. the remote server's internal ip address is 192.168.0.75. There is one ip address assigned to the remote location, depending on the port request made to the remote router.. the appropriate internal ip is requested.. Via mac os x command line ftp I cannot see the results of the ls command behind the NAT router on a 192.168.x.x ip, but on an outside on a world reachable ip i can view the results of ls. On a windows machine using ws ftp LE and behind the NAT having a 192.168.X.X ip a LS command times out as well.. Though when the windows machine is on the external network, with a 207.33.X.X ip the ws ftp client functions normaly.. I can connect to hundreds of machines behind the NAT router, it is just this one server i cannot connect to.... and it happens to be a server that needs to be reachable from this office (of course) on a daily basis for uploading source, and beta builds.. The router that is doing nat locally is a netopia cayman, firewall is set to 'Clear Sailing' on the router, meaning i assume not blocking anything.. What can be done? on my side or on the server side? In news groups this seems to be a BSD ftp client issue.. and a ws ftp client issue, I have tried several clients, none of them can connect. I have no idea on how to solve this.. we will be loosing the 207.33.X.X network in a few weeks (too expensive for T1 access).. how can I trace this? Is there anyway possible that it is the remote ftp server issue? this is the debug from the 'not behind the nat ip' ---> SYST 215 UNIX Type: L8 Remote system type is UNIX. Using binary mode to transfer files. ---> FEAT 500 'FEAT': command not understood. features[0] = 0 features[1] = -1 features[2] = -1 features[3] = -1 features[4] = -1 features[5] = -1 ---> PWD 257 "/u/ftpsecure" is current directory. got remotepwd as `/u/ftpsecure' ftp> ls ---> EPSV 500 'EPSV': command not understood. disabling epsv4 for this connection ---> PASV 227 Entering Passive Mode (192,168,0,75,203,102) ---> PORT 207,33,X,X,194,220 200 PORT command successful. ---> LIST 150 Opening ASCII mode data connection for /usr/bin/ls. total 18 Any help would be great. How is everybody doing in nyc? I am san francisco these days.. Sorry for the off topic post, again any help would be super.. thanks Ian Forsyth From smanes at magpie.com Wed Feb 26 19:57:18 2003 From: smanes at magpie.com (Steve Manes) Date: Wed, 26 Feb 2003 19:57:18 -0500 Subject: [nycphp-talk] Denying multiple logins to restricted pages In-Reply-To: <200302261825.h1QIOPFJ082196@parsec.nyphp.org> Message-ID: <5.1.1.6.2.20030226194208.022b78e8@192.168.111.6> At 01:24 PM 2/26/2003 -0500, Ophir Prusak wrote: >Also, I'm still debating what to do when I find out that indeed two (or >more) people are trying to use the same username. >Do I deny the latest attempt ? >Do I accept the latest attempt and then reject requests from all other >people using the same username ? The downside to #1: The client logs in, starts filling out a long form, gets called away for a phone call, returns to finish the form, hits Submit only to find that he'd been kicked off by someone else logging in to that account five minutes earlier. The downside to #2: The client logs in, works for a while then takes off on a long weekend without logging out. #2 is probably the lesser of two evils if you combine it with an inactivity timer in the session handler. But neither really addresses the problem of multiple people sharing a login, just multiple people using that login at the same time. If you can solve this problem, university SAs everywhere will build a statue in your honor. From chun_lam at hotmail.com Wed Feb 26 23:52:47 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Wed, 26 Feb 2003 23:52:47 -0500 Subject: [nycphp-talk] Denying multiple logins to restricted pages Message-ID: what happens when something wrong with a session, how do he/she login in again? ----Original Message Follows---- From: "Ophir Prusak" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] Denying multiple logins to restricted pages Date: Wed, 26 Feb 2003 13:24:25 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc10-f6.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 26 Feb 2003 10:24:55 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h1QIOPEF082196for ; Wed, 26 Feb 2003 13:24:52 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200302261824.h1QIOPEF082196 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 26 Feb 2003 18:24:55.0907 (UTC) FILETIME=[5CBDDB30:01C2DDC4] Hi All, I'm creating a site that requires people to register and login for access to certain pages. I want to stop users from giving out their username/password to other people by denying access to more than one person using the same username at the same time. I have a few ideas in my head, but would really like to hear from others that may have already tackled this problem and what solution they came up with. Also, I'm still debating what to do when I find out that indeed two (or more) people are trying to use the same username. Do I deny the latest attempt ? Do I accept the latest attempt and then reject requests from all other people using the same username ? etc. Ophir --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From chun_lam at hotmail.com Wed Feb 26 23:56:08 2003 From: chun_lam at hotmail.com (CHUN-YIU LAM) Date: Wed, 26 Feb 2003 23:56:08 -0500 Subject: [nycphp-talk] Denying multiple logins to restricted pages Message-ID: How about this? Everytime you login, you expire all other session. This will get them really annoy. :-P I am a devil.... ----Original Message Follows---- From: "Mark Armendariz" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: RE: [nycphp-talk] Denying multiple logins to restricted pages Date: Wed, 26 Feb 2003 13:42:16 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc7-f9.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 26 Feb 2003 10:42:47 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h1QIgGEF020102for ; Wed, 26 Feb 2003 13:42:46 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200302261842.h1QIgGEF020102 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 26 Feb 2003 18:42:47.0271 (UTC) FILETIME=[DB530770:01C2DDC6] Well, the 2 methods I've used to solve the problem involve either cron jobs or running a mini script in my config file which is called by every script (depending on availability of cron job control). For starters, Using session handling hasn't always been reliable in my experience. It's easy to figure you can catch session closes (close browser or open different page) that you should just log them off, but unfortunately you can't always catch a session close and run the proper script. Browser crashes and different browser set ups don't always allow for it. Basically, I create a last_hit column (date/time) and logged_in (char(1)) in my login database. The script checks all logged_in = 1 and if their time is greater than set time (usually 10 minutes) it set's logged_in to 0. And in order to access any page on the member the site, logged_in must be one and their last_hit time is updated. Also, in the login check script, make sure the user's "logged_in" is not already set to 1. If it is, they have to wait 0 minutes or someone else is using their login. Depending on your hardware setup, this could actually be faster with a text file. You could also do this with ip's and such, but with dynamic IP's being changes without notice from ISP's this isn't always reliable. Regardless of methods, Good Luck!! Mark -----Original Message----- From: Ophir Prusak [mailto:ophir at prusak.com] Sent: Wednesday, February 26, 2003 1:24 PM To: NYPHP Talk Subject: [nycphp-talk] Denying multiple logins to restricted pages Hi All, I'm creating a site that requires people to register and login for access to certain pages. I want to stop users from giving out their username/password to other people by denying access to more than one person using the same username at the same time. I have a few ideas in my head, but would really like to hear from others that may have already tackled this problem and what solution they came up with. Also, I'm still debating what to do when I find out that indeed two (or more) people are trying to use the same username. Do I deny the latest attempt ? Do I accept the latest attempt and then reject requests from all other people using the same username ? etc. Ophir --- Unsubscribe at http://nyphp.org/list/ --- _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From tech_learner at yahoo.com Thu Feb 27 00:54:35 2003 From: tech_learner at yahoo.com (Tracy) Date: Wed, 26 Feb 2003 21:54:35 -0800 (PST) Subject: [nycphp-talk] Denying multiple logins to restricted pages In-Reply-To: <200302261825.h1QIOPKn082196@parsec.nyphp.org> Message-ID: <20030227055435.11055.qmail@web14305.mail.yahoo.com> i dont know if this would help, but if the users are required to sign up, then u can set the field in which u save the user's name to 'unique', this way, even while signing up, it would simplify the cross checking. coming to denying the same user name accessing at the same time, im not sure how that can happen. one thing that comes to me at present is that r u looging the sign in time? if thats the case, rnt u checking in regular intervals if s/he is currently logged in? one thing i experienced some time back was this: cos of some server mistake, mu mail account provided by my ISP was overridden ,and when ever i tried to log in, i kept getting an error message "u r already logged in. the inbox is currently in use". i am not sure if this is session related, but if this triggers some brilliant thinking, i'd be happy to have shared it with u all Tracy Ophir Prusak wrote:Hi All, I'm creating a site that requires people to register and login for access to certain pages. I want to stop users from giving out their username/password to other people by denying access to more than one person using the same username at the same time. I have a few ideas in my head, but would really like to hear from others that may have already tackled this problem and what solution they came up with. Also, I'm still debating what to do when I find out that indeed two (or more) people are trying to use the same username. Do I deny the latest attempt ? Do I accept the latest attempt and then reject requests from all other people using the same username ? etc. Ophir --- Unsubscribe at http://nyphp.org/list/ --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From tech_learner at yahoo.com Thu Feb 27 01:06:24 2003 From: tech_learner at yahoo.com (Tracy) Date: Wed, 26 Feb 2003 22:06:24 -0800 (PST) Subject: [nycphp-talk] Last night's meeting was another good one In-Reply-To: <200302261520.h1QFJZKn013194@parsec.nyphp.org> Message-ID: <20030227060624.69003.qmail@web14307.mail.yahoo.com> is the presentation on cacing available for download? Tracy Matthew Zimmerman wrote:I thought it was a great meeting. This is my second one and both have been great. I am new to programming and PHP and I have enjoyed how the presentations are a good combination of practical information for newbies like me (caching, data filtering) and then some more detailed stuff (like web services, code optimization) that I hope to be able to use when I get to that level. Great job to Hans and the rest of the team that puts together the meetings. Matt On Wednesday, February 26, 2003, at 09:17 AM, DeWitt, Michael wrote: > Even with the bagels arriving late (perhaps we were the last delivery > on > Hans' route last night?), it was a great meeting. Many thanks to Adam > Trachtenberg and David Sklar for their fun and interesting > presentations and > of course the books which we jealously gave away. > I think that we had about 50 attendees which were all comfortably > accommodated through Digital Pulp's busting out of every chair and > couch in > the place. Thank you very much Andrew for getting this coordinated. > For those who could not make the meeting, I hope to post some pictures > and > links to audio streams (realmedia) of the meeting by Friday. Keep your > eye > on http://nyphp.org/presentations/ for my update. > Mike > > > > > > > > > > MZ _________________ Matthew Zimmerman Humanities Computing Group, NYU Tel: 212.998.3038 Fax: 212.995.4120 --- Unsubscribe at http://nyphp.org/list/ --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From tech_learner at yahoo.com Thu Feb 27 01:14:30 2003 From: tech_learner at yahoo.com (Tracy) Date: Wed, 26 Feb 2003 22:14:30 -0800 (PST) Subject: [nycphp-talk] PEAR related In-Reply-To: <200302251340.h1PDdZKr073224@parsec.nyphp.org> Message-ID: <20030227061430.97103.qmail@web14302.mail.yahoo.com> thz, yes, $rdf_sourec is to take any one the values, but the problem is it isint taking any. i treid out an echo with /out $_POST,$_GET and all that i could think. wots it that i am missing? Tracy Nestor wrote:I think the values given to the options just means that $rdf_source contains the values 1 thru 4. if 1 == $rdf_source same as if $rdf_source == 1 Do not know anyting about PEAR. I thought that PEAR was include in the latest PHP release of 4.3.1 :-) -----Original Message----- From: Tracy [mailto:tech_learner at yahoo.com] Sent: Tuesday, February 25, 2003 4:48 AM To: NYPHP Talk Subject: [nycphp-talk] PEAR related Hi, has/is some one work(ed/ing) with pear? i managed to install pear but since i didnt know i had to change the include_path in php.ini, the pear installation has installed pear in the c:\\php4win\\ where i have the rest of the stuff from the php4.3.1.zip. but it has created a new c:\\php4 and has a 'pear.ini' in it, nothing else. since the installation after completion adviced me to add c:\\php4win\\pear to the include_dir and the c:\\php4win\\ to the PATH, i changed the php.ini settings. now a displays include_path as .;c:\\php4win\\;c:\\php4win\\pear. do i need to move the pear.ini to somewhere other than c:\\php4? i am asking this cos a 'pear help' on the commandline spitted out bad command of file name, command not found.... wots to be done, someone tell me plz and wot does this mean? " method=post> ?>>Slashdot ?>>Freshmeat ?>>Linux.com >SwellMob i dont understand the values given to the option. the script isint working anyway :-( ... Thz Tracy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.458 / Virus Database: 257 - Release Date: 2/24/2003 --- Unsubscribe at http://nyphp.org/list/ --- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Coming together is a beginning... keeping together is progress... working together is success !!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --------------------------------- Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at enobrev.com Thu Feb 27 01:37:43 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Thu, 27 Feb 2003 01:37:43 -0500 Subject: [nycphp-talk] Denying multiple logins to restricted pages In-Reply-To: <200302270453.h1R4qoCh088331@parsec.nyphp.org> Message-ID: <00a401c2de2a$bbe70f30$96721d18@enobrev> Well that's why there's a script that resets the expired sessions after a given amount of time. Unfortunately the user has to wait the time or contact the admin to reset their profile. When I did this for a client's intranet (it was cf based, but same concept) I had a "reset user" section (with a dropdown of users) in the super user account and manager accounts. Fortunately out of the 75 users who used the system regularly, I only got the reset a session request about twice a week or less. On another system, IP addresses had to be registered, but all those users only logged in from their desks, and it was directly tied to the network admin's dhcp list (that was a fun one). It's very hard to control crashed sessions, unfortunately, which I feel is a serious downfall of browsers as they should allow for application plugs, imo. I'm dying to hear of better solutions though :) Mark -----Original Message----- From: CHUN-YIU LAM [mailto:chun_lam at hotmail.com] Sent: Wednesday, February 26, 2003 11:53 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Denying multiple logins to restricted pages what happens when something wrong with a session, how do he/she login in again? ----Original Message Follows---- From: "Ophir Prusak" Reply-To: talk at nyphp.org To: NYPHP Talk Subject: [nycphp-talk] Denying multiple logins to restricted pages Date: Wed, 26 Feb 2003 13:24:25 -0500 Received: from parsec.nyphp.org ([66.250.131.26]) by mc10-f6.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 26 Feb 2003 10:24:55 -0800 Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h1QIOPEF082196for ; Wed, 26 Feb 2003 13:24:52 -0500 (EST)(envelope-from null at nyphp.org) X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== Message-Id: <200302261824.h1QIOPEF082196 at parsec.nyphp.org> X-Paralist-Archived: X-List-Software: Paralist 0.6 List-ID: List-Owner: List-Archive: List-Subscribe: List-Unsubscribe: Organization: New York PHP X-Mailer: Paramail 0.5 Return-Path: null at nyphp.org X-OriginalArrivalTime: 26 Feb 2003 18:24:55.0907 (UTC) FILETIME=[5CBDDB30:01C2DDC4] Hi All, I'm creating a site that requires people to register and login for access to certain pages. I want to stop users from giving out their username/password to other people by denying access to more than one person using the same username at the same time. I have a few ideas in my head, but would really like to hear from others that may have already tackled this problem and what solution they came up with. Also, I'm still debating what to do when I find out that indeed two (or more) people are trying to use the same username. Do I deny the latest attempt ? Do I accept the latest attempt and then reject requests from all other people using the same username ? etc. Ophir _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail --- Unsubscribe at http://nyphp.org/list/ --- From jim at bizcomputinginc.com Thu Feb 27 08:09:02 2003 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Thu, 27 Feb 2003 08:09:02 -0500 Subject: [nycphp-talk] Denying multiple logins to restricted pages References: <200302270637.h1R6boBD092666@parsec.nyphp.org> Message-ID: <024301c2de61$66778ca0$6601a8c0@Notebook> I had to deal with this whole situation a couple years ago with an ASP app, but the principle should work with PHP. At login the users loginID, SessionKey, and login time were added to a login table. The Session timeout was set to 3 minutes. Each page in the system contained a hidden frame with a page in it which was set to refresh at 2 minutes. The refresh would update the login table for this user and session to the current time and redeliver the same page, but this activity acts as a heartbeat keeping the session alive. Since it's in a hidden frame, it does not affect the active page. This also has the affect of allowing a user to stay on a page as long as necessary and not get arbitrarily timed out ( they had one form in the system which took over a half hour to fill out ). When a login attempt is made and an entry is found for that loginID the current time is compared to the last activity time. If the difference is more than 4 minutes, the connection is assumed dead, the log entry is archived, and a new entry created for this login. If the login entry is still considered active( user shut down the browser without using our logout feature & right away attempts to log back in ) the user is provided a message indicating that there is a current session for that userID also with a message explaining that if that session was an improperly logged out session from the same user than the login would be unlocked within 5 minutes. Hope I recalled enough of the details to be useful, it has been a while since I've needed this type of functionality. Jim ______________________________________________________________ Jim Hendricks, President, Biz Computing, Inc Phone: (201) 599-9380 Email: jim at bizcomputinginc.com Web: www.bizcomputinginc.com Snail: Jim Hendricks, Biz Computing, Inc., 255 McKinley Ave, New Milford, NJ 07646 ______________________________________________________________ ----- Original Message ----- From: "Mark Armendariz" To: "NYPHP Talk" Sent: Thursday, February 27, 2003 1:37 AM Subject: RE: [nycphp-talk] Denying multiple logins to restricted pages > Well that's why there's a script that resets the expired sessions after a > given amount of time. Unfortunately the user has to wait the time or > contact the admin to reset their profile. When I did this for a client's > intranet (it was cf based, but same concept) I had a "reset user" section > (with a dropdown of users) in the super user account and manager accounts. > > Fortunately out of the 75 users who used the system regularly, I only got > the reset a session request about twice a week or less. On another system, > IP addresses had to be registered, but all those users only logged in from > their desks, and it was directly tied to the network admin's dhcp list (that > was a fun one). > > It's very hard to control crashed sessions, unfortunately, which I feel is a > serious downfall of browsers as they should allow for application plugs, > imo. I'm dying to hear of better solutions though :) > > Mark > > -----Original Message----- > From: CHUN-YIU LAM [mailto:chun_lam at hotmail.com] > Sent: Wednesday, February 26, 2003 11:53 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Denying multiple logins to restricted pages > > > what happens when something wrong with a session, how do he/she login in > again? > > > > > > > ----Original Message Follows---- > From: "Ophir Prusak" > Reply-To: talk at nyphp.org > To: NYPHP Talk > Subject: [nycphp-talk] Denying multiple logins to restricted pages > Date: Wed, 26 Feb 2003 13:24:25 -0500 > Received: from parsec.nyphp.org ([66.250.131.26]) by > mc10-f6.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, 26 Feb > 2003 10:24:55 -0800 > Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by > parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h1QIOPEF082196for > ; Wed, 26 Feb 2003 13:24:52 -0500 (EST)(envelope-from > null at nyphp.org) > X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== > Message-Id: <200302261824.h1QIOPEF082196 at parsec.nyphp.org> > X-Paralist-Archived: > X-List-Software: Paralist 0.6 > List-ID: > List-Owner: > List-Archive: > List-Subscribe: > List-Unsubscribe: > Organization: New York PHP > X-Mailer: Paramail 0.5 > Return-Path: null at nyphp.org > X-OriginalArrivalTime: 26 Feb 2003 18:24:55.0907 (UTC) > FILETIME=[5CBDDB30:01C2DDC4] > > Hi All, > > I'm creating a site that requires people to register and login for access to > certain pages. I want to stop users from giving out their username/password > to other people by denying access to more than one person using the same > username at the same time. > > I have a few ideas in my head, but would really like to hear from others > that may have already tackled this problem and what solution they came up > with. > > Also, I'm still debating what to do when I find out that indeed two (or > more) people are trying to use the same username. > Do I deny the latest attempt ? > Do I accept the latest attempt and then reject requests from all other > people using the same username ? etc. > > Ophir > > > > > > > > > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From zaunere at yahoo.com Thu Feb 27 09:29:33 2003 From: zaunere at yahoo.com (Hans Zaunere) Date: Thu, 27 Feb 2003 06:29:33 -0800 (PST) Subject: [nycphp-talk] OT:ftp EPSV error.. In-Reply-To: <200302270027.h1R0PcKD084289@parsec.nyphp.org> Message-ID: <20030227142933.5912.qmail@web12805.mail.yahoo.com> --- Ian Forsyth wrote: > > On a windows machine using ws ftp LE and behind the NAT having a > 192.168.X.X ip a LS command times out as well.. Though when the > windows machine is on the external network, with a 207.33.X.X ip the ws > ftp client functions normaly.. > > I can connect to hundreds of machines behind the NAT router, it is just > this one server i cannot connect to.... and it happens to be a server > that needs to be reachable from this office (of course) on a daily > basis for uploading source, and beta builds.. NAT and FTP are two dirty acronyms that never go together. My initial take on this is that the PASV requests are getting confused because both the remote and local internal networks are 192.168.x.x. If possible, try using different subnets on the local and remote internal networks (like one 192.168.0.0/16 and the another 10.0.0.0/8). This might help. Other than that, it could be one of many, many, many subleties when working with NAT and FTP. Some possibly useful resources (although not specific to your firewall, the same concepts apply): http://home.earthlink.net/~jaymzh666/ipf/index.html http://www.obfuscation.org/ipf/ http://livenudefrogs.com/~anubis/ipf/nats.html http://www.netfilter.org/security/2001-04-16-ftp.html http://www.experts-exchange.com/Operating_Systems/Linux/Q_20331453.html Best of luck, Hans From nyphp at enobrev.com Thu Feb 27 12:15:38 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Thu, 27 Feb 2003 12:15:38 -0500 Subject: [nycphp-talk] Denying multiple logins to restricted pages In-Reply-To: <200302271309.h1RD98Ch097564@parsec.nyphp.org> Message-ID: <00f701c2de83$d9cf9fe0$96721d18@enobrev> I had actually done the same thing on the fore-mentioned intranet. The hidden refresh is Definitely an effective way to maintain a short session, although it does give a slight hit to bandwidth, and also the users with the nice speakers hated ie's "clicking" on every refresh. But in reading this I also remembered another solution that came to mind, which I had never actually tried, but thought might work well. On one of my side projects, I had created a socket based chat. The backend is php (I started it with perl, but i'm more comfortable with php). It basically runs in the bg on my server waiting for socket connections to a specific port. The chat client is using flashmx' socket goodies (using xml_sockets for those keeping score). Now, I know this sounds a bit in depth for user tracking, but the best part of it is, no matter how flash closes, be it refresh, browser crash, etc, the socket connection always closes. So if the connection doesn't reopen within say 30 - 60 seconds, it can be expected that the user logged off or is having connection issues and that their session can be closed off. If you're interested in trying it, I've seen a few socket server scripts out there. I have a class I written, but I still have some debugging to do on it. Here's some info on it: http://www.devshed.com/Client_Side/Flash/XMLSockets/page1.html I guess I may give it a shot eventually.. Once I find a decent gig to keep my landlord happy. Mark -----Original Message----- From: Jim Hendricks [mailto:jim at bizcomputinginc.com] Sent: Thursday, February 27, 2003 8:09 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Denying multiple logins to restricted pages I had to deal with this whole situation a couple years ago with an ASP app, but the principle should work with PHP. At login the users loginID, SessionKey, and login time were added to a login table. The Session timeout was set to 3 minutes. Each page in the system contained a hidden frame with a page in it which was set to refresh at 2 minutes. The refresh would update the login table for this user and session to the current time and redeliver the same page, but this activity acts as a heartbeat keeping the session alive. Since it's in a hidden frame, it does not affect the active page. This also has the affect of allowing a user to stay on a page as long as necessary and not get arbitrarily timed out ( they had one form in the system which took over a half hour to fill out ). When a login attempt is made and an entry is found for that loginID the current time is compared to the last activity time. If the difference is more than 4 minutes, the connection is assumed dead, the log entry is archived, and a new entry created for this login. If the login entry is still considered active( user shut down the browser without using our logout feature & right away attempts to log back in ) the user is provided a message indicating that there is a current session for that userID also with a message explaining that if that session was an improperly logged out session from the same user than the login would be unlocked within 5 minutes. Hope I recalled enough of the details to be useful, it has been a while since I've needed this type of functionality. Jim ______________________________________________________________ Jim Hendricks, President, Biz Computing, Inc Phone: (201) 599-9380 Email: jim at bizcomputinginc.com Web: www.bizcomputinginc.com Snail: Jim Hendricks, Biz Computing, Inc., 255 McKinley Ave, New Milford, NJ 07646 ______________________________________________________________ ----- Original Message ----- From: "Mark Armendariz" To: "NYPHP Talk" Sent: Thursday, February 27, 2003 1:37 AM Subject: RE: [nycphp-talk] Denying multiple logins to restricted pages > Well that's why there's a script that resets the expired sessions > after a given amount of time. Unfortunately the user has to wait the > time or contact the admin to reset their profile. When I did this for > a client's intranet (it was cf based, but same concept) I had a "reset > user" section (with a dropdown of users) in the super user account and > manager accounts. > > Fortunately out of the 75 users who used the system regularly, I only > got the reset a session request about twice a week or less. On > another system, > IP addresses had to be registered, but all those users only logged in > from their desks, and it was directly tied to the network admin's dhcp > list (that > was a fun one). > > It's very hard to control crashed sessions, unfortunately, which I > feel is a > serious downfall of browsers as they should allow for application > plugs, imo. I'm dying to hear of better solutions though :) > > Mark > > -----Original Message----- > From: CHUN-YIU LAM [mailto:chun_lam at hotmail.com] > Sent: Wednesday, February 26, 2003 11:53 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Denying multiple logins to restricted pages > > > what happens when something wrong with a session, how do he/she login > in again? > > > > > > > ----Original Message Follows---- > From: "Ophir Prusak" > Reply-To: talk at nyphp.org > To: NYPHP Talk > Subject: [nycphp-talk] Denying multiple logins to restricted pages > Date: Wed, 26 Feb 2003 13:24:25 -0500 > Received: from parsec.nyphp.org ([66.250.131.26]) by > mc10-f6.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, > 26 Feb > 2003 10:24:55 -0800 > Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by > parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h1QIOPEF082196for > ; Wed, 26 Feb 2003 13:24:52 -0500 (EST)(envelope-from > null at nyphp.org) > X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== > Message-Id: <200302261824.h1QIOPEF082196 at parsec.nyphp.org> > X-Paralist-Archived: > X-List-Software: Paralist 0.6 > List-ID: > List-Owner: > List-Archive: > List-Subscribe: > List-Unsubscribe: > Organization: New York PHP > X-Mailer: Paramail 0.5 > Return-Path: null at nyphp.org > X-OriginalArrivalTime: 26 Feb 2003 18:24:55.0907 (UTC) > FILETIME=[5CBDDB30:01C2DDC4] > > Hi All, > > I'm creating a site that requires people to register and login for > access to > certain pages. I want to stop users from giving out their username/password > to other people by denying access to more than one person using the > same username at the same time. > > I have a few ideas in my head, but would really like to hear from > others that may have already tackled this problem and what solution > they came up with. > > Also, I'm still debating what to do when I find out that indeed two > (or > more) people are trying to use the same username. > Do I deny the latest attempt ? > Do I accept the latest attempt and then reject requests from all other > people using the same username ? etc. > > Ophir > > > > > > > > > > _________________________________________________________________ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- From cmerlo at turing.matcmp.ncc.edu Thu Feb 27 12:21:39 2003 From: cmerlo at turing.matcmp.ncc.edu (Christopher R. Merlo) Date: Thu, 27 Feb 2003 12:21:39 -0500 Subject: [nycphp-talk] Denying multiple logins to restricted pages In-Reply-To: <200302271716.h1RHFmIx002869@parsec.nyphp.org>; from nyphp@enobrev.com on Thu, Feb 27, 2003 at 12:15:48PM -0500 References: <200302271716.h1RHFmIx002869@parsec.nyphp.org> Message-ID: <20030227122139.B2238@turing.matcmp.ncc.edu> On 2003-02-27 12:15 -0500, Mark Armendariz wrote: > But in reading this I also remembered another solution that came to mind, > which I had never actually tried, but thought might work well. On one of my > side projects, I had created a socket based chat. The backend is php (I > started it with perl, but i'm more comfortable with php). It basically runs > in the bg on my server waiting for socket connections to a specific port. > The chat client is using flashmx' socket goodies (using xml_sockets for > those keeping score). Mark: Pardon my limited understanding, but doesn't socket use open the door to potential security risks? What kind of stuff did you put in place to make sure that only the code you want gains access on that socket? -Chris -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo Windows: When it absolutely, positively has to crash overnight. From nyphp at enobrev.com Thu Feb 27 12:40:49 2003 From: nyphp at enobrev.com (Mark Armendariz) Date: Thu, 27 Feb 2003 12:40:49 -0500 Subject: [nycphp-talk] Denying multiple logins to restricted pages In-Reply-To: <200302271721.h1RHLlCh003592@parsec.nyphp.org> Message-ID: <00fd01c2de87$5ee173e0$96721d18@enobrev> Nothing yet.. As I said the script I've created still requires some debugging. Covering the code end is simple as it's running regex on all incoming text and only using what it understands, which are xml formatted instructions, such as and . On the hardware end, I haven't gotten that far yet. So basically, any code can get in, but only the correct code is used. -----Original Message----- From: Christopher R. Merlo [mailto:cmerlo at turing.matcmp.ncc.edu] Sent: Thursday, February 27, 2003 12:22 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Denying multiple logins to restricted pages On 2003-02-27 12:15 -0500, Mark Armendariz wrote: > But in reading this I also remembered another solution that came to > mind, which I had never actually tried, but thought might work well. > On one of my side projects, I had created a socket based chat. The > backend is php (I started it with perl, but i'm more comfortable with > php). It basically runs in the bg on my server waiting for socket > connections to a specific port. The chat client is using flashmx' > socket goodies (using xml_sockets for those keeping score). Mark: Pardon my limited understanding, but doesn't socket use open the door to potential security risks? What kind of stuff did you put in place to make sure that only the code you want gains access on that socket? -Chris -- cmerlo at turing.matcmp.ncc.edu http://turing.matcmp.ncc.edu/~cmerlo Windows: When it absolutely, positively has to crash overnight. --- Unsubscribe at http://nyphp.org/list/ --- From jim at bizcomputinginc.com Thu Feb 27 13:42:34 2003 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Thu, 27 Feb 2003 13:42:34 -0500 Subject: [nycphp-talk] Denying multiple logins to restricted pages References: <200302271715.h1RHFmBD002869@parsec.nyphp.org> Message-ID: <029401c2de8f$fe9b10a0$6601a8c0@Notebook> This sounds just like a method we were going to use before we developed the "heartbeat" idea. That was to use a java applet to establish a socket back to the server to maintain the connection. The idea with the java applet was that the applet would open a socket to a small socket server running on the webserver. It's purpose was to generate the same "heartbeat" we eventually created with the hidden frame. Rather than use ASP sessions, the ASP app would use a table for storing all it's server state. For security, you had to have a login to generate a token which was passed back to the client and added to the login table and used as a session identifier for the state table. The heart beat did nothing more than send this token over the socket. The only message the server socket understood was open, heartbeat token, and close. This method was not acceptable to the customer because they were afraid there would be users who would not have the ability to run java applets in their browser. For the hidden frame "heartbeat", the additional bandwidth was negligible, it was a simple request generated every 2 minutes and the response was a minimum html page with a refresh in the header. The "tick" was annoying, but the customer was willing to live with it considering the ability it gave them to not worry about a timeout but also allowed a short ( max 4 minute ) lockout of an improperly logged out session and the ability to ban concurrent use of a login. Jim ______________________________________________________________ Jim Hendricks, President, Biz Computing, Inc Phone: (201) 599-9380 Email: jim at bizcomputinginc.com Web: www.bizcomputinginc.com Snail: Jim Hendricks, Biz Computing, Inc., 255 McKinley Ave, New Milford, NJ 07646 ______________________________________________________________ ----- Original Message ----- From: "Mark Armendariz" To: "NYPHP Talk" Sent: Thursday, February 27, 2003 12:15 PM Subject: RE: [nycphp-talk] Denying multiple logins to restricted pages > I had actually done the same thing on the fore-mentioned intranet. The > hidden refresh is Definitely an effective way to maintain a short session, > although it does give a slight hit to bandwidth, and also the users with the > nice speakers hated ie's "clicking" on every refresh. > > But in reading this I also remembered another solution that came to mind, > which I had never actually tried, but thought might work well. On one of my > side projects, I had created a socket based chat. The backend is php (I > started it with perl, but i'm more comfortable with php). It basically runs > in the bg on my server waiting for socket connections to a specific port. > The chat client is using flashmx' socket goodies (using xml_sockets for > those keeping score). > > Now, I know this sounds a bit in depth for user tracking, but the best part > of it is, no matter how flash closes, be it refresh, browser crash, etc, the > socket connection always closes. So if the connection doesn't reopen within > say 30 - 60 seconds, it can be expected that the user logged off or is > having connection issues and that their session can be closed off. > > If you're interested in trying it, I've seen a few socket server scripts out > there. I have a class I written, but I still have some debugging to do on > it. > Here's some info on it: > http://www.devshed.com/Client_Side/Flash/XMLSockets/page1.html > > I guess I may give it a shot eventually.. Once I find a decent gig to keep > my landlord happy. > > Mark > > -----Original Message----- > From: Jim Hendricks [mailto:jim at bizcomputinginc.com] > Sent: Thursday, February 27, 2003 8:09 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Denying multiple logins to restricted pages > > > I had to deal with this whole situation a couple years ago with an ASP app, > but the principle should work with PHP. > > At login the users loginID, SessionKey, and login time were added to a login > table. The Session timeout was set to 3 minutes. Each page in the system > contained a hidden frame with a page in it which was set to refresh at 2 > minutes. The refresh would update the login table for this user and session > to the current time and redeliver the same page, but this activity acts as a > heartbeat keeping the session alive. Since it's in a hidden frame, it does > not affect the active page. This also has the affect of allowing a user to > stay on a page as long as necessary and not get arbitrarily timed out ( they > had one form in the system which took over a half hour to fill out ). > > When a login attempt is made and an entry is found for that loginID the > current time is compared to the last activity time. If the difference is > more than 4 minutes, the connection is assumed dead, the log entry is > archived, and a new entry created for this login. If the login entry is > still considered active( user shut down the browser without using our logout > feature & right away attempts to log back in ) the user is provided a > message indicating that there is a current session for that userID also with > a message explaining that if that session was an improperly logged out > session from the same user than the login would be unlocked within 5 > minutes. > > Hope I recalled enough of the details to be useful, it has been a while > since I've needed this type of functionality. > > Jim > > ______________________________________________________________ > Jim Hendricks, President, Biz Computing, Inc > Phone: (201) 599-9380 Email: jim at bizcomputinginc.com > Web: www.bizcomputinginc.com > Snail: Jim Hendricks, Biz Computing, Inc., 255 McKinley Ave, New Milford, > NJ 07646 ______________________________________________________________ > > > > ----- Original Message ----- > From: "Mark Armendariz" > To: "NYPHP Talk" > Sent: Thursday, February 27, 2003 1:37 AM > Subject: RE: [nycphp-talk] Denying multiple logins to restricted pages > > > > Well that's why there's a script that resets the expired sessions > > after a given amount of time. Unfortunately the user has to wait the > > time or contact the admin to reset their profile. When I did this for > > a client's intranet (it was cf based, but same concept) I had a "reset > > user" section (with a dropdown of users) in the super user account and > > manager accounts. > > > > Fortunately out of the 75 users who used the system regularly, I only > > got the reset a session request about twice a week or less. On > > another > system, > > IP addresses had to be registered, but all those users only logged in > > from their desks, and it was directly tied to the network admin's dhcp > > list > (that > > was a fun one). > > > > It's very hard to control crashed sessions, unfortunately, which I > > feel is > a > > serious downfall of browsers as they should allow for application > > plugs, imo. I'm dying to hear of better solutions though :) > > > > Mark > > > > -----Original Message----- > > From: CHUN-YIU LAM [mailto:chun_lam at hotmail.com] > > Sent: Wednesday, February 26, 2003 11:53 PM > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] Denying multiple logins to restricted pages > > > > > > what happens when something wrong with a session, how do he/she login > > in again? > > > > > > > > > > > > > > ----Original Message Follows---- > > From: "Ophir Prusak" > > Reply-To: talk at nyphp.org > > To: NYPHP Talk > > Subject: [nycphp-talk] Denying multiple logins to restricted pages > > Date: Wed, 26 Feb 2003 13:24:25 -0500 > > Received: from parsec.nyphp.org ([66.250.131.26]) by > > mc10-f6.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Wed, > > 26 > Feb > > 2003 10:24:55 -0800 > > Received: from nyphp.org (parsec.nyphp.org [66.250.131.26])by > > parsec.nyphp.org (8.12.6/8.12.6) with ESMTP id h1QIOPEF082196for > > ; Wed, 26 Feb 2003 13:24:52 -0500 > (EST)(envelope-from > > null at nyphp.org) > > X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== > > Message-Id: <200302261824.h1QIOPEF082196 at parsec.nyphp.org> > > X-Paralist-Archived: > > > X-List-Software: Paralist 0.6 > > List-ID: > > List-Owner: > > List-Archive: > > List-Subscribe: > > List-Unsubscribe: > > Organization: New York PHP > > X-Mailer: Paramail 0.5 > > Return-Path: null at nyphp.org > > X-OriginalArrivalTime: 26 Feb 2003 18:24:55.0907 (UTC) > > FILETIME=[5CBDDB30:01C2DDC4] > > > > Hi All, > > > > I'm creating a site that requires people to register and login for > > access > to > > certain pages. I want to stop users from giving out their > username/password > > to other people by denying access to more than one person using the > > same username at the same time. > > > > I have a few ideas in my head, but would really like to hear from > > others that may have already tackled this problem and what solution > > they came up with. > > > > Also, I'm still debating what to do when I find out that indeed two > > (or > > more) people are trying to use the same username. > > Do I deny the latest attempt ? > > Do I accept the latest attempt and then reject requests from all other > > people using the same username ? etc. > > > > Ophir > > > > > > > > > > > > > > > > > > > > _________________________________________________________________ > > The new MSN 8: smart spam protection and 2 months FREE* > > http://join.msn.com/?page=features/junkmail > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From palexanderbalogh at yahoo.com Thu Feb 27 15:07:38 2003 From: palexanderbalogh at yahoo.com (Peter Balogh) Date: Thu, 27 Feb 2003 12:07:38 -0800 (PST) Subject: Using PHP on Linux with Oracle Message-ID: <20030227200738.16633.qmail@web40309.mail.yahoo.com> We've had good experiences with our LAMP server but recently ran into a snag involving Oracle. We downloaded and installed the 800-meg software bundle from Oracle, which is supposed to allow direct communication between a PHP script and an Oracle database. (The client libraries were not divisible from the entire bundle--hence the massive install.) We recompiled Apache and PHP using the recommended flags for Oracle installation. When we execute our Oracle-accessing PHP scripts using the PHP command line interpreter, they work fine. When we try to access those same scripts as web pages, they work not at all. Error messages say that "OCI functions are not found." Our PHP/Apache/Linux installers came straight from the Red Hat 7.2 package. Are we running afoul of version problems? Is there some trick to installing the Oracle client software? Please share your experiences... --Peter __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From davevgl at yahoo.com Thu Feb 27 15:34:04 2003 From: davevgl at yahoo.com (David Vogel) Date: Thu, 27 Feb 2003 12:34:04 -0800 (PST) Subject: zend studio debugger In-Reply-To: <200302272008.h1RK7eL5008050@parsec.nyphp.org> Message-ID: <20030227203404.5501.qmail@web14301.mail.yahoo.com> I just started using zend studio 2.6, and I'm having some difficulty with the debugger and ldap functions. For example, when I start typing ldap_connect() I get an autocomplete dialog, suggesting that the function is built in / recognized. But, when I debug the script I get an error saying I've made a call to an undefined function (ldap_connect()). The script seems to run fine, and the ldap stuff is working, but it's preventing me from using the debugger for anything else. Any suggestions would be greatly appreciated. thanks __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From lsemel at innofinity.com Thu Feb 27 15:33:47 2003 From: lsemel at innofinity.com (Lee Semel) Date: Thu, 27 Feb 2003 15:33:47 -0500 Subject: php code cache software Message-ID: <5.2.0.9.0.20030227153134.01ddc180@mail.semel.net> Hi, Can anyone point to a good comparison of PHP code caching software such as Zend Accelerator or Ion Cube? Anyone have personal experience with this software? Lee Semel From jhise at nextsource.com Thu Feb 27 15:46:32 2003 From: jhise at nextsource.com (Jeremy Hise) Date: Thu, 27 Feb 2003 15:46:32 -0500 Subject: [nycphp-talk] Using PHP on Linux with Oracle In-Reply-To: <200302272008.h1RK7eG7008050@parsec.nyphp.org> References: <200302272008.h1RK7eG7008050@parsec.nyphp.org> Message-ID: <20030227154632.23d3c602.jhise@nextsource.com> We run Apache/PHP with Oracle here. We never install apache/php using the RH Installer. Instead we install everything from source. Maybe you have two different PHP's installed? Maybe when you reinstalled PHP, you got yourself another one. THat's what it sounds like. Personally, if I where you, I would uninstall the apache and php rpms and then go and reinstall from source...but that's because that is my experience. the php INSTALL instructions are really good...basically you do: apache -> configure php -> configure with-apache with-oci8 php -> make php -> make install apache -> configure activate-module libphp4 apache -> make apache -> make install See the PHP INSTALL for exact details. Anyway, after doing that, we had to set up our TNSNAMES file for Oracle because the actual oracle database is on another server. Secondly, the oracle installer sucks becuase it seems you need to be able to run X11 for their Java installer..and it is a million megs...totally uncalled for. If you are running the database locally, you may not need to set up your TNSNAMES files. Good luck.. (around here, we call it whoracle) On Thu, 27 Feb 2003 15:07:40 -0500 Peter Balogh wrote: > We've had good experiences with our LAMP server but recently ran into a > snag involving Oracle. We downloaded and installed the 800-meg software > bundle from Oracle, which is supposed to allow direct communication > between a PHP script and an Oracle database. (The client libraries were > not divisible from the entire bundle--hence the massive install.) > > We recompiled Apache and PHP using the recommended flags for Oracle > installation. When we execute our Oracle-accessing PHP scripts using > the PHP command line interpreter, they work fine. When we try to > access those same scripts as web pages, they work not at all. Error > messages say that "OCI functions are not found." > > Our PHP/Apache/Linux installers came straight from the Red Hat 7.2 > package. Are we running afoul of version problems? Is there some > trick to installing the Oracle client software? > > Please share your experiences... > > --Peter > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > > --- Unsubscribe at http://nyphp.org/list/ --- > -- -+----------------------+ | jhise at nextsource.com | | developer | | nextSource, Inc. | | x334 | +----------------------+ From daniel at websapp.com Thu Feb 27 15:52:06 2003 From: daniel at websapp.com (Daniel Kushner) Date: Thu, 27 Feb 2003 15:52:06 -0500 Subject: [nycphp-talk] zend studio debugger In-Reply-To: <200302272035.h1RKY7Jf008913@parsec.nyphp.org> Message-ID: Are you debugging locally or on a remote server? --Daniel > -----Original Message----- > From: David Vogel [mailto:davevgl at yahoo.com] > Sent: Thursday, February 27, 2003 3:34 PM > To: NYPHP Talk > Subject: [nycphp-talk] zend studio debugger > > > I just started using zend studio 2.6, and I'm having some difficulty > with the debugger and ldap functions. > > For example, when I start typing ldap_connect() I get an autocomplete > dialog, suggesting that the function is built in / recognized. But, > when I debug the script I get an error saying I've made a call to an > undefined function (ldap_connect()). > > The script seems to run fine, and the ldap stuff is working, but it's > preventing me from using the debugger for anything else. > > Any suggestions would be greatly appreciated. > thanks > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > > --- Unsubscribe at http://nyphp.org/list/ --- > From davevgl at yahoo.com Thu Feb 27 16:00:57 2003 From: davevgl at yahoo.com (David Vogel) Date: Thu, 27 Feb 2003 13:00:57 -0800 (PST) Subject: [nycphp-talk] zend studio debugger In-Reply-To: <200302272053.h1RKqcL5011105@parsec.nyphp.org> Message-ID: <20030227210057.9667.qmail@web14301.mail.yahoo.com> I'm debugging locally w/ php 4.3.1. Maybe that's part of the problem, if that version is not supported by the debugger? Dave --- Daniel Kushner wrote: > Are you debugging locally or on a remote server? > > --Daniel > > > > -----Original Message----- > > From: David Vogel [mailto:davevgl at yahoo.com] > > Sent: Thursday, February 27, 2003 3:34 PM > > To: NYPHP Talk > > Subject: [nycphp-talk] zend studio debugger > > > > > > I just started using zend studio 2.6, and I'm having some > difficulty > > with the debugger and ldap functions. > > > > For example, when I start typing ldap_connect() I get an > autocomplete > > dialog, suggesting that the function is built in / recognized. > But, > > when I debug the script I get an error saying I've made a call to > an > > undefined function (ldap_connect()). > > > > The script seems to run fine, and the ldap stuff is working, but > it's > > preventing me from using the debugger for anything else. > > > > Any suggestions would be greatly appreciated. > > thanks > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Tax Center - forms, calculators, tips, more > > http://taxes.yahoo.com/ > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From daniel at websapp.com Thu Feb 27 16:07:03 2003 From: daniel at websapp.com (Daniel Kushner) Date: Thu, 27 Feb 2003 16:07:03 -0500 Subject: [nycphp-talk] zend studio debugger In-Reply-To: <200302272101.h1RL0xJf011969@parsec.nyphp.org> Message-ID: The local debugger doesn't use your real Web environment but a local version of PHP. Try to debug on the server and then you'll get the whole environment including your own PHP compilation and any prepends and such. --Daniel > -----Original Message----- > From: David Vogel [mailto:davevgl at yahoo.com] > Sent: Thursday, February 27, 2003 4:01 PM > To: NYPHP Talk > Subject: RE: [nycphp-talk] zend studio debugger > > > I'm debugging locally w/ php 4.3.1. Maybe that's part of the problem, > if that version is not supported by the debugger? > > Dave > > > > --- Daniel Kushner wrote: > > Are you debugging locally or on a remote server? > > > > --Daniel > > > > > > > -----Original Message----- > > > From: David Vogel [mailto:davevgl at yahoo.com] > > > Sent: Thursday, February 27, 2003 3:34 PM > > > To: NYPHP Talk > > > Subject: [nycphp-talk] zend studio debugger > > > > > > > > > I just started using zend studio 2.6, and I'm having some > > difficulty > > > with the debugger and ldap functions. > > > > > > For example, when I start typing ldap_connect() I get an > > autocomplete > > > dialog, suggesting that the function is built in / recognized. > > But, > > > when I debug the script I get an error saying I've made a call to > > an > > > undefined function (ldap_connect()). > > > > > > The script seems to run fine, and the ldap stuff is working, but > > it's > > > preventing me from using the debugger for anything else. > > > > > > Any suggestions would be greatly appreciated. > > > thanks > > > > > > __________________________________________________ > > > Do you Yahoo!? > > > Yahoo! Tax Center - forms, calculators, tips, more > > > http://taxes.yahoo.com/ > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - forms, calculators, tips, more > http://taxes.yahoo.com/ > > > --- Unsubscribe at http://nyphp.org/list/ --- > From davevgl at yahoo.com Thu Feb 27 16:31:08 2003 From: davevgl at yahoo.com (David Vogel) Date: Thu, 27 Feb 2003 13:31:08 -0800 (PST) Subject: [nycphp-talk] zend studio debugger In-Reply-To: <200302272108.h1RL7YL5012693@parsec.nyphp.org> Message-ID: <20030227213108.56688.qmail@web14305.mail.yahoo.com> 4.3.1 is the local version that I'm using. Unfortunately I work at a university and the server environment is not under my control, so installing the zend debug server there is not really an option. Are you out of suggestions yet? thanks for you help. --- Daniel Kushner wrote: > The local debugger doesn't use your real Web environment but a local > version of PHP. Try to debug on the server and then > you'll get the whole environment including your own PHP compilation > and any prepends and such. > > --Daniel > > > -----Original Message----- > > From: David Vogel [mailto:davevgl at yahoo.com] > > Sent: Thursday, February 27, 2003 4:01 PM > > To: NYPHP Talk > > Subject: RE: [nycphp-talk] zend studio debugger > > > > > > I'm debugging locally w/ php 4.3.1. Maybe that's part of the > problem, > > if that version is not supported by the debugger? > > > > Dave > > > > > > > > --- Daniel Kushner wrote: > > > Are you debugging locally or on a remote server? > > > > > > --Daniel > > > > > > > > > > -----Original Message----- > > > > From: David Vogel [mailto:davevgl at yahoo.com] > > > > Sent: Thursday, February 27, 2003 3:34 PM > > > > To: NYPHP Talk > > > > Subject: [nycphp-talk] zend studio debugger > > > > > > > > > > > > I just started using zend studio 2.6, and I'm having some > > > difficulty > > > > with the debugger and ldap functions. > > > > > > > > For example, when I start typing ldap_connect() I get an > > > autocomplete > > > > dialog, suggesting that the function is built in / recognized. > > > But, > > > > when I debug the script I get an error saying I've made a call > to > > > an > > > > undefined function (ldap_connect()). > > > > > > > > The script seems to run fine, and the ldap stuff is working, > but > > > it's > > > > preventing me from using the debugger for anything else. > > > > > > > > Any suggestions would be greatly appreciated. > > > > thanks > > > > > > > > __________________________________________________ > > > > Do you Yahoo!? > > > > Yahoo! Tax Center - forms, calculators, tips, more > > > > http://taxes.yahoo.com/ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Tax Center - forms, calculators, tips, more > > http://taxes.yahoo.com/ > > > > > > > > > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ From ian at plusfour.org Thu Feb 27 17:30:48 2003 From: ian at plusfour.org (Ian Forsyth) Date: Thu, 27 Feb 2003 14:30:48 -0800 Subject: [nycphp-talk] Using PHP on Linux with Oracle In-Reply-To: <200302272008.h1RK7eHF008050@parsec.nyphp.org> Message-ID: <1EB2637E-4AA3-11D7-B372-0050E4858059@plusfour.org> Hi, I use php as a dynamic module in apache, in version previous to 4.3 to compile the apache module in the configure command.. you needed to include --with-apxs=/usr/sbin/apxs if you did not include that, i believe just the binary would be compiled.. meaning your newly compiled php with the oracle library might only be in /usr/local/bin/php and not in /usr/local/apache (or where ever the module ends up.. ) I only have experience with dynamically loading the php module, not compiling the php module into apache.. But if you can run the oracle extension from the command line, and not with apache.. it might have something to do with not compiling a new apache module only the binary.. Regards, Ian On Thursday, February 27, 2003, at 12:07 PM, Peter Balogh wrote: > > We recompiled Apache and PHP using the recommended flags for Oracle > installation. When we execute our Oracle-accessing PHP scripts using > the PHP command line interpreter, they work fine. When we try to > access those same scripts as web pages, they work not at all. Error > messages say that "OCI functions are not found." > From steve at soler.com Thu Feb 27 21:47:52 2003 From: steve at soler.com (Steve Soler) Date: Thu, 27 Feb 2003 21:47:52 -0500 Subject: MYSQL SELECT Error Question In-Reply-To: <200302272227.h1RMQcI1014747@parsec.nyphp.org> Message-ID: <08204386-4AC7-11D7-9185-003065481BD8@soler.com> Can anyone help me decipher this error I'm getting in MYSQL? I'm certain there are rows in my database that contain the word "Service" in the "Business_Type" column. Below is the Select command and the error I'm getting. It's copied right of my Telnet program. mysql> select * from Members where Business_Type = Service; ERROR 2000: Unknown column 'Service' in 'where clause' Thanks in advance, - Steve From jim at bizcomputinginc.com Thu Feb 27 21:51:07 2003 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Thu, 27 Feb 2003 21:51:07 -0500 Subject: [nycphp-talk] MYSQL SELECT Error Question References: <200302280247.h1S2ljBD017840@parsec.nyphp.org> Message-ID: <02ed01c2ded4$3eebd0b0$6601a8c0@Notebook> You need to delimite Service since it is a constant and not a data column. ie. mysql> select * from Members where Business_Type = 'Service'; Jim ______________________________________________________________ Jim Hendricks, President, Biz Computing, Inc Phone: (201) 599-9380 Email: jim at bizcomputinginc.com Web: www.bizcomputinginc.com Snail: Jim Hendricks, Biz Computing, Inc., 255 McKinley Ave, New Milford, NJ 07646 ______________________________________________________________ ----- Original Message ----- From: "Steve Soler" To: "NYPHP Talk" Sent: Thursday, February 27, 2003 9:47 PM Subject: [nycphp-talk] MYSQL SELECT Error Question > Can anyone help me decipher this error I'm getting in MYSQL? > I'm certain there are rows in my database that contain the word > "Service" in the "Business_Type" column. > > Below is the Select command and the error I'm getting. It's copied > right of my Telnet program. > > mysql> select * from Members where Business_Type = Service; > ERROR 2000: Unknown column 'Service' in 'where clause' > > > Thanks in advance, > - Steve > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > > From chendry at nyc.rr.com Thu Feb 27 21:52:13 2003 From: chendry at nyc.rr.com (Christopher Hendry) Date: Thu, 27 Feb 2003 21:52:13 -0500 Subject: [nycphp-talk] MYSQL SELECT Error Question In-Reply-To: <200302280248.h1S2ljGL017840@parsec.nyphp.org> Message-ID: try: select * from Members where Business_Type = 'Service'; Probably the quotes around 'Service'. -> -----Original Message----- -> From: Steve Soler [mailto:steve at soler.com] -> Sent: Thursday, February 27, 2003 9:48 PM -> To: NYPHP Talk -> Subject: [nycphp-talk] MYSQL SELECT Error Question -> -> -> Can anyone help me decipher this error I'm getting in MYSQL? -> I'm certain there are rows in my database that contain the word -> "Service" in the "Business_Type" column. -> -> Below is the Select command and the error I'm getting. It's copied -> right of my Telnet program. -> -> mysql> select * from Members where Business_Type = Service; -> ERROR 2000: Unknown column 'Service' in 'where clause' -> -> -> Thanks in advance, -> - Steve -> -> -> -> --- Unsubscribe at http://nyphp.org/list/ --- -> -> -> From melissa at inexact.info Thu Feb 27 21:52:50 2003 From: melissa at inexact.info (Melissa) Date: Thu, 27 Feb 2003 21:52:50 -0500 Subject: [nycphp-talk] MYSQL SELECT Error Question In-Reply-To: <200302280248.h1S2ljEZ017840@parsec.nyphp.org> Message-ID: do you have quotes around the word service? > -----Original Message----- > From: Steve Soler [mailto:steve at soler.com] > Sent: Thursday, February 27, 2003 9:48 PM > To: NYPHP Talk > Subject: [nycphp-talk] MYSQL SELECT Error Question > > > Can anyone help me decipher this error I'm getting in MYSQL? > I'm certain there are rows in my database that contain the word > "Service" in the "Business_Type" column. > > Below is the Select command and the error I'm getting. It's copied > right of my Telnet program. > > mysql> select * from Members where Business_Type = Service; > ERROR 2000: Unknown column 'Service' in 'where clause' > > > Thanks in advance, > - Steve > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From steve at soler.com Thu Feb 27 22:19:52 2003 From: steve at soler.com (Steve Soler) Date: Thu, 27 Feb 2003 22:19:52 -0500 Subject: [nycphp-talk] MYSQL SELECT Error Question In-Reply-To: <200302280251.h1S2pGI1018568@parsec.nyphp.org> Message-ID: <80A68956-4ACB-11D7-9185-003065481BD8@soler.com> Yes! This was exactly it! I admit I'm still learning (right out of a book I might add.) But it's amazing how some books leave out the simplest details, which cause the biggest headaches (when you are just learning). Thank goodness for this forum! You guys rock! ;-) Thanks all! - Steve On Thursday, February 27, 2003, at 09:51 PM, Jim Hendricks wrote: > You need to delimite Service since it is a constant and not a data > column. > > ie. mysql> select * from Members where Business_Type = 'Service'; > > Jim > ______________________________________________________________ > Jim Hendricks, President, Biz Computing, Inc > Phone: (201) 599-9380 Email: jim at bizcomputinginc.com > Web: www.bizcomputinginc.com > Snail: Jim Hendricks, Biz Computing, Inc., 255 McKinley Ave, New > Milford, > NJ 07646 > ______________________________________________________________ > > > ----- Original Message ----- > From: "Steve Soler" > To: "NYPHP Talk" > Sent: Thursday, February 27, 2003 9:47 PM > Subject: [nycphp-talk] MYSQL SELECT Error Question > > >> Can anyone help me decipher this error I'm getting in MYSQL? >> I'm certain there are rows in my database that contain the word >> "Service" in the "Business_Type" column. >> >> Below is the Select command and the error I'm getting. It's copied >> right of my Telnet program. >> >> mysql> select * from Members where Business_Type = Service; >> ERROR 2000: Unknown column 'Service' in 'where clause' >> >> >> Thanks in advance, >> - Steve >> >> >> >> >> >> >> >> > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > From ophir at prusak.com Fri Feb 28 11:13:48 2003 From: ophir at prusak.com (Ophir Prusak) Date: Fri, 28 Feb 2003 11:13:48 -0500 Subject: [nycphp-talk] php code cache software References: <200302272034.h1RKYBHJ008971@parsec.nyphp.org> Message-ID: <044101c2df44$60b17d10$bf65a8c0@tag1002> in a nutshell, if you want free, go with phpa (http://www.php-accelerator.co.uk/) if you're willing to part with $$$ go with Zend. also, be sure to look into other places you can improve performance. ophir ----- Original Message ----- From: "Lee Semel" To: "NYPHP Talk" Sent: Thursday, February 27, 2003 3:34 PM Subject: [nycphp-talk] php code cache software > Hi, > > Can anyone point to a good comparison of PHP code caching software such as > Zend Accelerator or Ion Cube? Anyone have personal experience with this > software? > > Lee Semel > > > > --- Unsubscribe at http://nyphp.org/list/ --- > > > From drydell at worldnet.att.net Fri Feb 28 14:41:39 2003 From: drydell at worldnet.att.net (David Rydell) Date: Fri, 28 Feb 2003 14:41:39 -0500 Subject: [nycphp-talk] MYSQL SELECT Error Question In-Reply-To: <200302280248.h1S2ljJp017840@parsec.nyphp.org> Message-ID: as the other posters have pointed out, Service needs to be in quotes... but that's only half the problem. To get the results you really want (rows which contain the word Service in Business_Type), use LIKE with wildcards: mysql> select * from Members where Business_Type like '%Service%'; -----Original Message----- From: Steve Soler [mailto:steve at soler.com] Sent: Thursday, February 27, 2003 9:48 PM To: NYPHP Talk Subject: [nycphp-talk] MYSQL SELECT Error Question Can anyone help me decipher this error I'm getting in MYSQL? I'm certain there are rows in my database that contain the word "Service" in the "Business_Type" column. Below is the Select command and the error I'm getting. It's copied right of my Telnet program. mysql> select * from Members where Business_Type = Service; ERROR 2000: Unknown column 'Service' in 'where clause' Thanks in advance, - Steve --- Unsubscribe at http://nyphp.org/list/ --- --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.456 / Virus Database: 256 - Release Date: 2/18/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.456 / Virus Database: 256 - Release Date: 2/18/2003