Re: [PHP] Unlink file older then 7 days

2007-07-17 Thread Paul Scott
On Wed, 2007-07-18 at 07:29 +0100, [EMAIL PROTECTED] wrote: > I need to throw in a wildcard, how would I do that.. I have this so far. > which dont work. foreach(glob("*.asc.txt") as $files) { unlink($files); } --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-17 Thread kvigor
Hello Master Coders, This is working so far but I need to add an additional search. This is what I have so far: $in_list = "'".join("','",$cen_chiefs)."'"; $query_cen_chiefs = "SELECT * FROM central WHERE CONCAT(strName,' ',strCity,' ',strState) IN({$in_list}) ORDER BY conName"; I a

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-17 Thread kvigor
This is working so far but I need to add an additional search. This is what I have so far: $in_list = "'".join("','",$cen_chiefs)."'"; $query_cen_chiefs = "SELECT * FROM central WHERE CONCAT(strName,' ',strCity,' ',strState) IN({$in_list}) ORDER BY conName"; I also need the query to return rec

Re: [PHP] Unlink file older then 7 days

2007-07-17 Thread chris
Ok thanks everyone... I need to throw in a wildcard, how would I do that.. I have this so far. which dont work. Thankyou - Original Message - From: "Richard Lynch" <[EMAIL PROTECTED]> To: "Stut" <[EMAIL PROTECTED]> Cc: "Suhas Pharkute" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;

[PHP] regular expression and forbidden words

2007-07-17 Thread Nicolas Quirin
Hi, i'm french, i'm using regular expressions in php in order to rewrite hyperlink tags in a specific way before apache output is beeing sent to client. Purpose is to replace href attribute of any A html tag by a javascript function calling an ajax loader. Currently I have wrote that: $patt

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Paul Novitski
At 7/17/2007 07:42 PM, you wrote: Really people. I find it hard to believe that the otherwise-intelligent people on this list have such a hard time with the concept that something should not be done for reasons that don't involve physical property, just as I find it hard to believe that making u

Re: [PHP] PHP-5.2.3 and "Internal Server Error"

2007-07-17 Thread Paul Scott
On Tue, 2007-07-17 at 18:06 -0500, Richard Lynch wrote: > Run the same script with php CLI and see what it outputs. > Goes through without a problem. > Open the script in various editors to be sure there's no stray > un-printable character in the source. > Checked. This is from one of our re

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread John Meyer
Richard Lynch wrote: On Mon, July 16, 2007 7:15 am, tedd wrote: I have to agree with Col on this one. Books are not shareware, freeware or open source. They are written for profit and anyone wanting to pirate the books are stealing, plain and simple. And if anyone thinks people will buy the b

Re: [PHP] Creating a text file

2007-07-17 Thread Chris
Ryan Lao wrote: i made a simple PHP form that would ask for the users complete name, a button that would browse to a file that the user wants to upload, a text area for additional comments, and a submit button. This form works just fine. what i want to achieve next is for my form to also create

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Instruct ICC
From: "Richard Lynch" <[EMAIL PROTECTED]> It's still browser-dependent, really, but now your browser isn't doing what YOU want for your form-filling-in-experience... I like this. I'll have to add it to my "operator error", "pass the buck" bag of tricks. There's still nothing you can do abo

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Larry Garfield
On Tuesday 17 July 2007, Richard Lynch wrote: > > Once I have written code or words, the time I have spent on that is > > gone. I > > will never get that time back, regardless of whether or not I get paid > > for it > > after the fact. > > Last time I checked, most day jobs have a significant lag

[PHP] Creating a text file

2007-07-17 Thread Ryan Lao
i made a simple PHP form that would ask for the users complete name, a button that would browse to a file that the user wants to upload, a text area for additional comments, and a submit button. This form works just fine. what i want to achieve next is for my form to also create a text file whe

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Instruct ICC
From: Chris Shiflett <[EMAIL PROTECTED]> This is a characteristic of the caching headers that session_start() sends. Although not directly related to your question, I think the following article articulates this in sufficient detail: http://shiflett.org/articles/how-to-avoid-page-has-expired-warn

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 9:26 am, Larry Garfield wrote: > On Tuesday 17 July 2007, tedd wrote: >> At 7:57 PM -0500 7/16/07, Larry Garfield wrote: >> >I am not going to defend copyright infringement, but theft is >> depriving >> >someone of something they used to have and no longer have. >> >> Time. >>

Re: [PHP] text field truncation with sql server

2007-07-17 Thread Richard Lynch
I lied. The URL *was* a typo. http;//php.net/<<< Sheesh. Sorry folks! On Sun, July 15, 2007 5:02 pm, Bruce Cowin wrote: > Thanks Richard for pointing me in the right direction. Yes, it is > mssql I'm using. And changing the mssql.textlimit and mssql.textsize > in the php.ini file fixed my pr

RE: [PHP] Social Networking Sites OT

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 6:31 pm, Daevid Vincent wrote: > For what it's worth, LinkedIn has been around for years -- one of the > first SNS out there, and it's well written and very useful. It's not a > "myspace whore" thing. It's for professionals. Many employers will > look > there for recommendatio

Re: [PHP] Alter an Array Key

2007-07-17 Thread Richard Lynch
On Sat, July 14, 2007 8:09 am, Stut wrote: > Craige Leeder wrote: >> 1. Don't modify $_POST > > Why not? Other portions of a web application will too easily be "confused" by what you've modified as the application grows. Far better to have your "clean" data in a different array than to go poking

Re: [PHP] Unlink file older then 7 days

2007-07-17 Thread Richard Lynch
On Mon, July 16, 2007 8:40 am, Stut wrote: > Suhas Pharkute wrote: >> http://us.php.net/manual/en/function.fileatime.php >> >> $filename = 'somefile.txt'; >> if (file_exists($filename) && fileatime($filename) < >> (time()-(7*24*60*60)) ) >> { >>unlink($filename); >> } >> >> Read docs! > > You

Re: [PHP] I am lost

2007-07-17 Thread Richard Lynch
On Sun, July 15, 2007 1:05 pm, Richard Davey wrote: > Hi Grant, > > Saturday, July 14, 2007, 8:07:43 PM, you wrote: > >> Previously I had PHP on my older computer using IIS 5.1 it worked >> fine. But >> I'm on my new computer using IIS 7 and features like include or >> completely >> normal scripts

Re: [PHP] Time formatting issues

2007-07-17 Thread Richard Lynch
The date_format function of MySQL should work for time as well... What are the errors? What did you use for the time format? On Sat, July 14, 2007 8:27 am, Melissa wrote: > I have a DB > > with a field type DATE (called TideDATE) > > and a field type TIME (one of which is called highFIRST) > > >

Re: [PHP] Re: Multiple Session Buffers

2007-07-17 Thread Richard Lynch
On Sat, July 14, 2007 1:26 pm, Al wrote: > You guys confirmed my understanding, it can't be done in a reasonable > manner. > > I'm adding a simple CAPTCHA to an existing page and don't want to > bother tracing the code that > modifies the session buffer. It's obvious that the code is resetting > t

Re: [PHP] Persistent Objects

2007-07-17 Thread Richard Lynch
On Sun, July 15, 2007 2:25 pm, Wesley Acheson wrote: > 1. Does the answer below mean no global persistant objects? > (Application scope) I guess that it does. Pretty much, yes. PHP is more Unix-like in quickly spitting out an answer, rather than MS-like in having some monolithic "answer" object h

Re: [PHP] text field truncation with sql server

2007-07-17 Thread Richard Lynch
Probably a heredoc would be easiest for what you've got. http://php.net/>>> The URL is not a typo. Though your email client may mangle it... :-) On Sun, July 15, 2007 5:02 pm, Bruce Cowin wrote: > Thanks Richard for pointing me in the right direction. Yes, it is > mssql I'm using. And changing

Re: [PHP] Pirate PHP books online?

2007-07-17 Thread Richard Lynch
On Mon, July 16, 2007 6:06 pm, David Powers wrote: > Stut wrote: > Movie companies and rock artists make > more money before breakfast than the author of a computer-related book > is likely to make in a whole year (at least from book royalties). U. No. The numbers you see in the newspaper/med

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Larry Garfield
On Tuesday 17 July 2007, tedd wrote: > >And you think that if somehow, somebody was able to magically lock > >down all copies, all of those people would pony up the money and pay > >you or buy that software? It's the assumption that the music and > >movie industry make that if only they could lock

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Larry Garfield
On Tuesday 17 July 2007, tedd wrote: > At 9:26 AM -0500 7/17/07, Larry Garfield wrote: > >On Tuesday 17 July 2007, tedd wrote: > >Once I have written code or words, the time I have spent on that is gone. > > I will never get that time back, regardless of whether or not I get paid > > for it after

Re: [PHP] Pirate PHP books online?

2007-07-17 Thread Richard Lynch
I believe the entire post may have been tongue in cheek and/or sarcasm... But I wasn't sure either... [shrug] You can be sure that a heck of a lot more important/disturbing things remain on the 'net than this, either way. :-) On Mon, July 16, 2007 7:20 am, Mark Kelly wrote: > Hi. > > On Monday

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Richard Lynch
On Mon, July 16, 2007 7:15 am, tedd wrote: > I have to agree with Col on this one. Books are not shareware, > freeware or open source. They are written for profit and anyone > wanting to pirate the books are stealing, plain and simple. And if > anyone thinks people will buy the book if it's useful

Re: [PHP] html emails and plain text dectection

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 10:41 am, brian wrote: > Ross wrote: > >> I am using the code to send an html email (phpmailer class) now I >> need to >> somehow determine if the recipient uses text only email and change >> email to >> plain. Is this possible? >> > > No. How could your script possibly detect

Re: [PHP] multiple random items

2007-07-17 Thread Richard Lynch
On Mon, July 16, 2007 9:40 am, [EMAIL PROTECTED] wrote: > Hi I have this script which pulls 1 random item from a txt file. > How would I modify it to pull 10 random items. To forestall a rather lengthy discussion on what you mean by 10 random items, I'm actually not going to answer that question.

Re: [PHP] html emails and plain text dectection

2007-07-17 Thread Richard Lynch
On Mon, July 16, 2007 8:58 am, Ross wrote: > I am using the code to send an html email (phpmailer class) now I need > to > somehow determine if the recipient uses text only email and change > email to > plain. Is this possible? Not really... I mean, you could send them an email with an HTML "enha

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Richard Lynch
On Mon, July 16, 2007 12:33 pm, Instruct ICC wrote: > I have an old PHP page without sessions. When the user submits the > form, > and then clicks the browser back button, the prior form data is > retained. This is actually almost for sure browser dependent behaviour... Some browsers will reset

Re: [PHP] Creating thumbnails

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 4:44 am, elk dolk wrote: > Stephen <[EMAIL PROTECTED]> wrote: > Subject: Re: [PHP] Creating thumbnails > > Vanessa Vega wrote: >> Good day to all! >> >> I would like to ask for some help with creating automatically >> thumbnail >> pictures using PHP.. Did you even try to Goo

Re: [PHP] Re: installing php5.2.3 on apache2.2 \w mod_fastcgi

2007-07-17 Thread Richard Lynch
You might want to try on an Apache list, since you could replace PHP with Perl, Python, or rabid squirrels and you'd be in the same boat... On Tue, July 17, 2007 10:37 am, M. Sokolewicz wrote: > M. Sokolewicz wrote: >> Good day, >> >> I've been struggling with this problem for quite a while now, I

Re: [PHP] double output from trigger_error from command line

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 12:21 pm, Olav Mørkrid wrote: > if i do a trigger_error() when running php scripts from the command > line, each error is echoed twice. this is annoying. > > does anyone know how to make each error display only once? > > c:\>php -r "trigger_error(\"hello\");" > PHP Notice: he

RE: [PHP] Social Networking Sites OT

2007-07-17 Thread Daevid Vincent
For what it's worth, LinkedIn has been around for years -- one of the first SNS out there, and it's well written and very useful. It's not a "myspace whore" thing. It's for professionals. Many employers will look there for recommendations about you and such, just as valuable as a resume, cover-lett

RE: [PHP] magic quotes

2007-07-17 Thread Richard Lynch
E. One thing you CAN do is to put something not unlike this: Your dev server will be slightly "slower" when it attempts to find the include files in a path that does not exist. Your production server will find the files where they belong and bail out before it tries to find a C drive that

Re: [PHP] magic quotes

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 5:30 am, Phil Princely wrote: > I've been having a problem with a setting on a test server and > production server. My test server has magic_quotes_gpc off, but the > production server has it turned on. I've no access to the php.ini for > the production server and don't want t

Re: [PHP] Re: no default value

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 8:11 am, Man-wai Chang wrote: > Thank you. This is horrible as a simple typing mistake ($sucess rather > than $success) would waste me some time hunting down the problem. > Foxpro > isn't like this If it's still horrible after you turn on E_NOTICE, and the errors telling

Re: [PHP] no default value

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 7:01 am, Man-wai Chang wrote: > Is there a parameter in php.ini that requires all variables to be > explicitly initialized, rather than being automatically assigned the > value of false? No. There is a parameter in php.ini that tells you when you USE an uninitialized variabl

Re: [PHP] regular expression and forbidden words

2007-07-17 Thread Arpad Ray
Nicolas Quirin wrote: Hi, i'm french, i'm using regular expressions in php in order to rewrite hyperlink tags in a specific way before apache output is beeing sent to client. Purpose is to replace href attribute of any A html tag by a javascript function calling an ajax loader. Currently I h

Re: [PHP] PHP-5.2.3 and "Internal Server Error"

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 7:20 am, Paul Scott wrote: > On one of our test boxen, we recently upgraded to PHP-5.2.3 and all of > a > sudden started getting Internal Server Errors. The Apache log file > tells > me that there is a premature end of script error on index.php, which > is > simply an entry po

Re: [PHP] Upload Tracker.

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 1:46 pm, Tom Ray [Lists] wrote: > I'm a little unsure on how to do this but basically when someone uses > a > form to upload a file I want to have a popup window come up and so the > process in percentage of the transfer. Anyone do this before? Is it > possible in PHP or do I

Re: [PHP] Displaying HTML characters in real format

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 2:03 pm, Nisse Engström wrote: > On Fri, 13 Jul 2007 01:24:09 -0500 (CDT), "Richard Lynch" wrote: >> >> htmlspecialchars ONLY escapes four characters: < > & " >> >> htmlentities escapes ALL characters that need it > > What characters other than the four (or five) > NEED escap

Re: [PHP] ldap_search(): Partial search results returned: Sizelimit exceeded

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 4:51 pm, Jay Blanchard wrote: > Perhaps mistakenly for a project that I am trying to do I want to list > all users in the Active Directory. It works pretty well with one > exception, the error ldap_search(): Partial search results returned: > Sizelimit exceeded. > > Now, I kno

Re: [PHP] Displaying HTML characters in real format

2007-07-17 Thread Satyam
Unless you have set the character encoding of the document to the same as what you have, say, in the database, you would have trouble showing, for example, your last name, with that umlaut. Anyway, I would read the comments for the function because I believe there are some issues beyond the c

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Chris Shiflett
Instruct ICC wrote: > I have an old PHP page without sessions. When the user submits the > form, and then clicks the browser back button, the prior form data > is retained. > > If I now have that PHP page require another page that uses > session_start, when the user submits the form, and then clic

[PHP] Re: Upload Tracker.

2007-07-17 Thread Manuel Lemos
Hle on 07/17/2007 03:46 PM Tom Ray [Lists] said the following: > I'm a little unsure on how to do this but basically when someone uses a > form to upload a file I want to have a popup window come up and so the > process in percentage of the transfer. Anyone do this before? Is it > possible in PHP

Re: [PHP] Pirate PHP books online?

2007-07-17 Thread Chris Shiflett
Crayon Shin Chan wrote: > What makes you think any of the authors are subscribed to this list? I'm subscribed. :-) Chris -- Chris Shiflett http://shiflett.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ldap_search(): Partial search results returned: Sizelimit exceeded

2007-07-17 Thread Jay Blanchard
Perhaps mistakenly for a project that I am trying to do I want to list all users in the Active Directory. It works pretty well with one exception, the error ldap_search(): Partial search results returned: Sizelimit exceeded. Now, I know that I can page through (I would have to figure out a clever

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Stut
tedd wrote: At 11:18 AM -0600 7/17/07, John Meyer wrote: tedd wrote: I've written software all my life and I have on numerous occasions run into individuals who ask something like "Can you get me a copy? It's not worth it for me to pay for it because reason you want>. I would just like to get

[PHP] regular expression and forbidden words

2007-07-17 Thread Nicolas Quirin
Hi, i'm french, i'm using regular expressions in php in order to rewrite hyperlink tags in a specific way before apache output is beeing sent to client. Purpose is to replace href attribute of any A html tag by a javascript function calling an ajax loader. Currently I have wrote that: $patt

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread nor0101
Instruct ICC wrote: > > I have an old PHP page without sessions. When the user submits the form, > and then clicks the browser back button, the prior form data is retained. > What method is your form using, get or post? If post, usually the browser would give some sort of warning to the use

[PHP] Upload Tracker.

2007-07-17 Thread Tom Ray [Lists]
I'm a little unsure on how to do this but basically when someone uses a form to upload a file I want to have a popup window come up and so the process in percentage of the transfer. Anyone do this before? Is it possible in PHP or do I need to do it in javascript or a mixture of both? Any sugg

[PHP] Re: Dynamic refresh dropdown list

2007-07-17 Thread Manuel Lemos
Hello, on 07/17/2007 07:57 AM C.R.Vegelin said the following: > I have a selection form with multiple dropdown lists, let's say A, B and C. > If the dropdown list B is changed, then dropdown list C should be updated. > To get this done, I use a small javascript > function reload(form) > {

Re: [PHP] Upload Tracker.

2007-07-17 Thread Paul Novitski
At 7/17/2007 11:46 AM, Tom Ray [Lists] wrote: I'm a little unsure on how to do this but basically when someone uses a form to upload a file I want to have a popup window come up and so the process in percentage of the transfer. Anyone do this before? Is it possible in PHP or do I need to do it

RE: [PHP] double output from trigger_error from command line

2007-07-17 Thread Instruct ICC
if i do a trigger_error() when running php scripts from the command line, each error is echoed twice. this is annoying. does anyone know how to make each error display only once? c:\>php -r "trigger_error(\"hello\");" PHP Notice: hello in Command line code on line 1 Notice: hello in Command li

Re: [PHP] Displaying HTML characters in real format

2007-07-17 Thread Nisse Engström
On Fri, 13 Jul 2007 01:24:09 -0500 (CDT), "Richard Lynch" wrote: > > htmlspecialchars ONLY escapes four characters: < > & " > > htmlentities escapes ALL characters that need it What characters other than the four (or five) NEED escaping, and why? /Nisse -- PHP General Mailing List (http://ww

Re: [PHP] Upload Tracker.

2007-07-17 Thread Tanner Postert
i use a program called upload progress meter, it can be downloaded here: http://pdoru.from.ro/upload-progress-meter/ I just wrote an ajax function to return the % of the download, and filled a div on each upload. It depends on how often you poll for the %, but most likely it won't be a smooth tr

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread tedd
At 11:18 AM -0600 7/17/07, John Meyer wrote: tedd wrote: I've written software all my life and I have on numerous occasions run into individuals who ask something like "Can you get me a copy? It's not worth it for me to pay for it because reason you want>. I would just like to get a copy." An

Re[2]: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Richard Davey
Hi John, Tuesday, July 17, 2007, 3:27:16 PM, you wrote: >> Citing a reference in a book to another is not the same as >> reproducing that ENTIRE book wholesale, page for page, illustration >> for illustration. > All right, supposing I do a cut copy paste on a section of a book, > not the whole t

[PHP] double output from trigger_error from command line

2007-07-17 Thread Olav Mørkrid
if i do a trigger_error() when running php scripts from the command line, each error is echoed twice. this is annoying. does anyone know how to make each error display only once? c:\>php -r "trigger_error(\"hello\");" PHP Notice: hello in Command line code on line 1 Notice: hello in Command li

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread John Meyer
tedd wrote: At 9:26 AM -0500 7/17/07, Larry Garfield wrote: On Tuesday 17 July 2007, tedd wrote: Once I have written code or words, the time I have spent on that is gone. I will never get that time back, regardless of whether or not I get paid for it after the fact. Ok, then it would be an

Re: [PHP] Pirate PHP books online?

2007-07-17 Thread Eric Butera
On 7/16/07, Dotan Cohen <[EMAIL PROTECTED]> wrote: I just found some jerk on StumbleUpon with titles like: PHP Essentials (c)2007 (Neil Smyth) PHP Cookbook (David Sklar/Adam Trachtenberg) PHP 5 Power Programming (c)2005 (Andi Gutmans/Stig Bakken/Derick Rethans ) A Programmer's Introduction to PHP

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread John Meyer
David Powers wrote: Richard Davey wrote: First off, I'd like to know where you got that 2,000 number. Closest I could find was 456 on TPB, and I'm guessing that's 456 people that have downloaded the torrent. Not necessarily 456 that have completely downloaded the book. I didn't post that fi

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread tedd
At 9:26 AM -0500 7/17/07, Larry Garfield wrote: On Tuesday 17 July 2007, tedd wrote: Once I have written code or words, the time I have spent on that is gone. I will never get that time back, regardless of whether or not I get paid for it after the fact. Ok, then it would be an acceptable excu

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread David Powers
Richard Davey wrote: First off, I'd like to know where you got that 2,000 number. Closest I could find was 456 on TPB, and I'm guessing that's 456 people that have downloaded the torrent. Not necessarily 456 that have completely downloaded the book. I didn't post that figure, but it doesn't

Re: [PHP] Sessions Lose Form Field Data When Back Button Used?

2007-07-17 Thread Instruct ICC
From: Chris <[EMAIL PROTECTED]> That has to be your code re-setting the session variables or something. PHP won't do this automatically for you. Well I suppose it's "or something". Try this code. Name it test.php: Test Field1: Field2: A) With session_start commented out as

Re: [PHP] html emails and plain text dectection

2007-07-17 Thread brian
Ross wrote: I am using the code to send an html email (phpmailer class) now I need to somehow determine if the recipient uses text only email and change email to plain. Is this possible? No. How could your script possibly detect how a person's email client is configured? In any case, you

[PHP] Re: installing php5.2.3 on apache2.2 \w mod_fastcgi

2007-07-17 Thread M. Sokolewicz
M. Sokolewicz wrote: Good day, I've been struggling with this problem for quite a while now, I've looked on google, but to no avail, documentation doesn't help me out either. Now, I know this isn't a pure php problem as such, but rather a problem in the cooperation of apache2.2, php and fastc

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Sancar Saran
I believe, we are here for solving problems. Pirating has very very long history. Even Julius Ceasar (hope I wrote correct) can't defeat them. On other way modern life style steals other species resources. Does anyone feel guilty about this ? Also you may want know, more than 4 billion of hum

Re: [PHP] magic quotes

2007-07-17 Thread Arpad Ray
Phil Princely wrote: thanks for all the help. My code was wrong in the first post, I just copied it straight from the web. This one works: if (get_magic_quotes_gpc()) { stripslashes_array($_GET); stripslashes_array($_POST); stripslashes_array($_REQUEST); stripslashes_array($_COO

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Larry Garfield
On Tuesday 17 July 2007, tedd wrote: > At 7:57 PM -0500 7/16/07, Larry Garfield wrote: > >I am not going to defend copyright infringement, but theft is depriving > >someone of something they used to have and no longer have. > > Time. > > An author spends his time writing a book, he should be paid f

Re: [PHP] Checking Post Data against DB Data

2007-07-17 Thread kvigor
I really like the re-coding it's great. I'm still new and below code is definitely more efficient. FYI: I do have date field sorry I wasn't so clear. I just didn't post all code. ""Richard Lynch"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Doing a select to get every recor

Re: [PHP] Array Question

2007-07-17 Thread kvigor
Thanks for all the input. You've all been pretty informative. Sorry of delayed response to help but was busy. You all are appreciated. "Stut" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Richard Lynch wrote: >> On Wed, July 11, 2007 4:16 pm, Robert Cummings wrote: But I

Re[2]: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Richard Davey
Hi John, Tuesday, July 17, 2007, 2:01:42 PM, you wrote: > So it isn't as black and white as you say. There apparently is a > place where you can not only copy, but redistribute, and as long as > you gave proper credit, you don't have to pay. Citing a reference in a book to another is not the sam

[PHP] Re: no default value

2007-07-17 Thread Al
A good php editor will prevent this type of error. e.g,. phpEdit does auto variable completion. Assume you've assigned $success=foo. Later you key $sup... the editor competes it for you as $success. Man-wai Chang wrote: Thank you. This is horrible as a simple typing mistake ($sucess rather

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Robert Cummings
On Tue, 2007-07-17 at 09:32 -0400, tedd wrote: > At 7:16 PM +0800 7/17/07, Man-wai Chang wrote: > >[EMAIL PROTECTED] wrote: > >> I don't see why people need to buy the books. I learned PHP buy > >> borrowing one book from the library, then using php.net for more > >> advanced functions. > > > >I

[PHP] Re: Pirate PHP books online?

2007-07-17 Thread tedd
At 7:16 PM +0800 7/17/07, Man-wai Chang wrote: [EMAIL PROTECTED] wrote: I don't see why people need to buy the books. I learned PHP buy borrowing one book from the library, then using php.net for more advanced functions. I am basically on the same route, peeking codes from experienced. But

[PHP] Re: Pirate PHP books online?

2007-07-17 Thread tedd
At 10:38 AM +0800 7/17/07, Man-wai Chang wrote: I have to agree with Col on this one. Books are not shareware, freeware or open source. They are written for profit and anyone wanting to pirate Not really. You could open a sample book in bookstores, scan the chapters to decide whether you are

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread tedd
At 8:05 PM -0700 7/16/07, [EMAIL PROTECTED] wrote: I don't see why people need to buy the books. I learned PHP buy borrowing one book from the library, then using php.net for more advanced functions. That's you -- I need hard copy to look through. I want to feel and see the book, put sticky n

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread tedd
At 7:57 PM -0500 7/16/07, Larry Garfield wrote: I am not going to defend copyright infringement, but theft is depriving someone of something they used to have and no longer have. Time. An author spends his time writing a book, he should be paid for it. Time. You spend time coding, and you sh

[PHP] Re: no default value

2007-07-17 Thread Man-wai Chang
Thank you. This is horrible as a simple typing mistake ($sucess rather than $success) would waste me some time hunting down the problem. Foxpro isn't like this -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Stut
Daniel Brown wrote: On 7/16/07, Larry Garfield <[EMAIL PROTECTED]> wrote: I am not going to defend copyright infringement, but theft is depriving someone of something they used to have and no longer have. If someone pirates a copy of your book that would have purchased it otherwise, then they

Re: [PHP] no default value

2007-07-17 Thread Stut
Man-wai Chang wrote: > Is there a parameter in php.ini that requires all variables to be > explicitly initialized, rather than being automatically assigned the > value of false? I think you'll find they get assigned the value of null, not false. There is no setting that enforces such a requiremen

Re: [PHP] no default value

2007-07-17 Thread Daniel Gerzo
On Tue, Jul 17, 2007 at 08:01:59PM +0800, Man-wai Chang wrote: > > Is there a parameter in php.ini that requires all variables to be > explicitly initialized, rather than being automatically assigned the > value of false? > Well, I am not aware of such php.ini variable, but I may recomment to in

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Daniel Brown
On 7/17/07, tedd <[EMAIL PROTECTED]> wrote: Well, anyone who makes that claim is also a liar -- so one can think of it as an admission of quilt. into the Arts and Crafts competition at the County Fair. ;-P -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread tedd
At 5:24 PM +0100 7/16/07, Richard Heyes wrote: And assumptions are nothing like opinions. While they are different words with different meanings, they *can* be similar in that both can be based upon uncertainly -- an opinion is not necessarily based on fact and neither is an assumption. I

Re: [PHP] Pirate PHP books online?

2007-07-17 Thread Daniel Brown
On 7/17/07, tedd <[EMAIL PROTECTED]> wrote: At 11:12 PM +0800 7/16/07, Crayon Shin Chan wrote: >They might be on vacation, they might be in a coma. Or both. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] #2003 - The server is not responding

2007-07-17 Thread Daniel Brown
On 7/16/07, Ryan Lao <[EMAIL PROTECTED]> wrote: I uninstalled my old versions of apache, mysql and php then installed wamp on my computer. everything seems to be working when i access localhost, except when i go to phpmyadmin. I get this error on screen "MySQL said: #2003 - The server is not resp

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread tedd
At 12:16 PM -0400 7/16/07, Tom Ray [Lists] wrote: Richard Heyes wrote: >> Every single one of us has been guilty of it at some time or another You can't make that assumption. Sure he can. Assumptions are like opinions which are like ...well you know what I'm getting at...we all have them.

Re: [PHP] Pirate PHP books online?

2007-07-17 Thread tedd
At 11:12 PM +0800 7/16/07, Crayon Shin Chan wrote: They might be on vacation, they might be in a coma. Or both. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] PHP-5.2.3 and "Internal Server Error"

2007-07-17 Thread Daniel Brown
On 7/17/07, Paul Scott <[EMAIL PROTECTED]> wrote: On one of our test boxen, we recently upgraded to PHP-5.2.3 and all of a sudden started getting Internal Server Errors. The Apache log file tells me that there is a premature end of script error on index.php, which is simply an entry point script

Re: [PHP] Dynamic refresh dropdown list

2007-07-17 Thread Daniel Brown
On 7/17/07, Sichta, Daniel <[EMAIL PROTECTED]> wrote: Look for AJAX ! DS -Original Message- From: C.R.Vegelin [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 17, 2007 12:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Dynamic refresh dropdown list I have a selection form with multiple dro

Re: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Daniel Brown
On 7/16/07, Larry Garfield <[EMAIL PROTECTED]> wrote: I am not going to defend copyright infringement, but theft is depriving someone of something they used to have and no longer have. If someone pirates a copy of your book that would have purchased it otherwise, then they have not taken anythin

[PHP] PHP-5.2.3 and "Internal Server Error"

2007-07-17 Thread Paul Scott
On one of our test boxen, we recently upgraded to PHP-5.2.3 and all of a sudden started getting Internal Server Errors. The Apache log file tells me that there is a premature end of script error on index.php, which is simply an entry point script to an MVC framework. I have checked that there is

Re: [PHP] $_POST

2007-07-17 Thread Daniel Brown
On 7/17/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-07-17 at 14:20 +1000, Nathan Wallis wrote: > Hey, > > Just wondering if anyone can help me out. I have been used to using $_POST > but from what I can tell it isn't supported in PHP 5. What do you use > instead? Could you poin

Re[2]: [PHP] Re: Pirate PHP books online?

2007-07-17 Thread Richard Davey
Hi John, Tuesday, July 17, 2007, 1:02:15 PM, you wrote: > Really? Did you cite and pay every source you used in your book? And > what about those of us who downloaded books that we've bought? Neither of these things apply to my rant, don't quote me out of context. > Seriously, I think you nee

Re: [PHP] magic quotes

2007-07-17 Thread Arpad Ray
Phil Princely wrote: What do people on this list usually do with this kind of problem. To me, the .htaccess seems the easiest solution, since I don't have to change any scripts. I would certainly turn it off in php.ini or apache config files if possible (the .htaccess line should be "php_flag

Re: [PHP] $_POST

2007-07-17 Thread Dan Shirah
I'm using PHP 5.2 and $_POST works just fine. On 7/17/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-07-17 at 14:20 +1000, Nathan Wallis wrote: > Hey, > > Just wondering if anyone can help me out. I have been used to using $_POST > but from what I can tell it isn't supported in PH

  1   2   >