[PHP] #2003 - The server is not responding

2007-07-17 Thread Ryan Lao
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 responding... so i updated the config.php file but

Re: [PHP] Creating thumbnails

2007-07-17 Thread elk dolk
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.. What about security issues ? people can look at your source code to see the path and

[PHP] rewrite hyperlink tags with a regular expression containing 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:

[PHP] Dynamic refresh dropdown list

2007-07-17 Thread C.R.Vegelin
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) { var val=form.B.options[form.B.options.selectedIndex].value;

RE: [PHP] Dynamic refresh dropdown list

2007-07-17 Thread Sichta, Daniel
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 dropdown lists, let's say A, B and C. If the dropdown

[PHP] magic quotes

2007-07-17 Thread Phil Princely
Hi all, 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 to change the setting on my test server.

[PHP] Re: Pirate PHP books online?

2007-07-17 Thread Man-wai Chang
[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 I still wanna believe that there is/was really a

Re: [PHP] magic quotes

2007-07-17 Thread Richard Heyes
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. Use a .htaccess file, or if performance is any sort of concern, put it in the server configuration files and turn off .htaccess files.

[PHP] problem with pcode function

2007-07-17 Thread Ross
I have this postcode selector working on my localhost but remotely it gives a parse error. It should only call the function when the postcode is submitted. Any ideas? The error is: Parse error: parse error, unexpected T_NEW in /homepages/3/d154908384/htdocs/legalsuk/consultants/nearest.php

[PHP] no default value

2007-07-17 Thread Man-wai Chang
Is there a parameter in php.ini that requires all variables to be explicitly initialized, rather than being automatically assigned the value of false? -- @~@ Might, Courage, Vision, SINCERITY. / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Xubuntu 7.04) Linux

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

2007-07-17 Thread John Meyer
On Monday 16 July 2007, Richard Davey wrote: As a published author I would *rather* people read a PDF of my work, than not read it at all because they couldn't afford the printed version. But that is my choice to make, not yours. I would never be so two-faced as to rant about pirates and

RE: [PHP] magic quotes

2007-07-17 Thread Steve Perkins
Talking about .htaccess, anyone know an easy way of configuring os (generally linux/windows) alternative settings in the same .htaccess ? Mainly for paths (eg: include_path), so I can just upload a whole directory at a time from my (Windows) development machine to a (Linux) production server

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 PHP 5.

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[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 need

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 point us

[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] 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 anything

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

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] 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:

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] #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

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/) To

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] 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] 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

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 requirement,

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

[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

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

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

[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

[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

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 am basically

[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

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 same

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'd have to

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 record, and

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 for it.

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);

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

[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

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,

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: ?php //session_start(); $notice = ; if($_SERVER['REQUEST_METHOD'] == POST){

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] 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

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

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
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

[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 line

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 thing,

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 you add in whatever reason you want. I would just like

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

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

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 line

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

[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) { var

[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

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 user

[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:

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 you add in whatever reason you want. I

[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] 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] 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 or

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 clicks

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

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 know

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 escaping, and why?

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] 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 point

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

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 you

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 to

RE: [PHP] magic quotes

2007-07-17 Thread Richard Lynch
E. One thing you CAN do is to put something not unlike this: ?php set_include_path(/production/server/path . PATH_SEPARATOR . C:\\dev\\path\\here); ? 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

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 variable,

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,

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: hello in

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've

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 Google PHP

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 to

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 enhanced

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 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 how a person's

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 to

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 16

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 the

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 down

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/media

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 the

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

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 the

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) How

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 that use to

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 too! The OP wanted a way

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 altered

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 recommendations

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

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. An author

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:

  1   2   >