Re: [PHP] English Website That Can Display Some Chinese Text

2009-03-13 Thread 9el
--- Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get a Free CD of Ubuntu mailed to your door without any cost. Visit : www.ubuntu.com -- On

Re: [PHP] The PHP filter class I'm working on (securiity)

2009-03-13 Thread Michael A. Peters
Michael A. Peters wrote: I would appreciate feedback. First php class I've written myself (the little tiny ones that are just over-glorified functions don't count.) Probably has bugs. iframes and objects aren't working even for white listed where they should - I know why on the latter, I ne

[PHP] The PHP filter class I'm working on (securiity)

2009-03-13 Thread Michael A. Peters
I would appreciate feedback. First php class I've written myself (the little tiny ones that are just over-glorified functions don't count.) Probably has bugs. I have not thoroughly tested it - but I finally have a nice test sandbox to play with. http://www.clfsrpm.net/xss/dom_script_test.php

[PHP] Re: mail() is duplicating

2009-03-13 Thread Manuel Lemos
Hello, on 03/13/2009 05:37 PM Rick Pasotto said the following: > I have several forms on my site that use the same sequence of events: > The first script displays and validates the form data, the second > reformats and asks for confirmation or editing, and the third script > sends the data in an e

Re: [PHP] htmlentities is incomplete: does not cover rsquo etc

2009-03-13 Thread Heddon's Gate Hotel
Thanks Jan, it's much clearer now. My knowledge about character encodings has multiplied 100-fold in the last 24 hours' research. Would it be a good idea for the PHP Manual to address some of these issues, by explaining good practice in encoding arbitrary user input in forms (for example), fo

[PHP] English Website That Can Display Some Chinese Text

2009-03-13 Thread revDAVE
I have an English website done using PHP & mySQL. In addition I would like to be able to store in mySQL and display/edit (php) some extra fields that have some basic Chinese text. I imagine I would have to update the main site to use English & Chinese somehow... Q: Is something like this possibl

Re: [PHP] Anyone fancy getting paid to improve my PHP in London?

2009-03-13 Thread Shawn McKenzie
Tom Chubb wrote: > 2009/3/13 Robert Cummings > >> On Fri, 2009-03-13 at 17:16 +, Tom Chubb wrote: >>> Do any experienced PHP programmers in London fancy helping me improve my >>> PHP? >>> I'd like to know where my code could be improved and to be shown how an >>> experienced programmer would

[PHP] Summary Report With Details - Newbie Question

2009-03-13 Thread revDAVE
Hi Folks, I would like to make a summary report with details for a products inventory list - so it could list: A - the product & a few summaries like total count on 1 line B - --- below that: the details of a multi line sub list with inventory data like: A - PRODUCT #1 - count = 25 B ---

Re: [PHP] Anyone fancy getting paid to improve my PHP in London?

2009-03-13 Thread Tom Chubb
2009/3/13 Robert Cummings > On Fri, 2009-03-13 at 17:16 +, Tom Chubb wrote: > > Do any experienced PHP programmers in London fancy helping me improve my > > PHP? > > I'd like to know where my code could be improved and to be shown how an > > experienced programmer would approach a new site. >

Re: [PHP] RE: non-auto increment question

2009-03-13 Thread PJ
haliphax wrote: > On Fri, Mar 13, 2009 at 1:24 PM, PJ wrote: >> Jim Lucas wrote: >>> PJ wrote: am resending as this was erroneously ccd to mysql. sorry! Ashley Sheridan wrote: > On Thu, 2009-02-26 at 11:27 -0500, PJ wrote: >> Jerry Schwartz wrote: >> Being rathe

[PHP] mail() is duplicating

2009-03-13 Thread Rick Pasotto
I have several forms on my site that use the same sequence of events: The first script displays and validates the form data, the second reformats and asks for confirmation or editing, and the third script sends the data in an email to the relevent people. Two of these forms work exactly as they're

Re: [PHP] Anyone fancy getting paid to improve my PHP in London?

2009-03-13 Thread Kevin Kinsey
Robert Cummings wrote: Send me a blank cheque-- if it clears then I'll get back to you... from someplace warm... by a beach while drinking martinis... and getting a massage... from more than one lady... should we forward this to your wife now, or after the check clears? She's one of the ladie

Re: [PHP] Sanitizing Numbers

2009-03-13 Thread Robert Cummings
On Fri, 2009-03-13 at 15:45 -0400, Robert Cummings wrote: > On Fri, 2009-03-13 at 19:09 +, Richard Heyes wrote: > > > ereg > > > > [Gasps and runs off shouting "PCRE"] ... > > You know... Until somewhat recently I preferred POSIX over PCRE... > rationale being it's "POSIX" that's a standard!!

Re: [PHP] Anyone fancy getting paid to improve my PHP in London?

2009-03-13 Thread Robert Cummings
On Fri, 2009-03-13 at 20:17 +0100, Jochem Maas wrote: > Robert Cummings schreef: > > On Fri, 2009-03-13 at 17:16 +, Tom Chubb wrote: > >> Do any experienced PHP programmers in London fancy helping me improve my > >> PHP? > >> I'd like to know where my code could be improved and to be shown how

Re: [PHP] Sanitizing Numbers

2009-03-13 Thread Robert Cummings
On Fri, 2009-03-13 at 19:09 +, Richard Heyes wrote: > > ereg > > [Gasps and runs off shouting "PCRE"] ... You know... Until somewhat recently I preferred POSIX over PCRE... rationale being it's "POSIX" that's a standard!!! But recently I came across some legacy code in a site I maintain that

Re: [PHP] Anyone fancy getting paid to improve my PHP in London?

2009-03-13 Thread Jochem Maas
Robert Cummings schreef: > On Fri, 2009-03-13 at 17:16 +, Tom Chubb wrote: >> Do any experienced PHP programmers in London fancy helping me improve my >> PHP? >> I'd like to know where my code could be improved and to be shown how an >> experienced programmer would approach a new site. >> I'd r

Re: [PHP] Sanitizing Numbers

2009-03-13 Thread haliphax
On Fri, Mar 13, 2009 at 2:09 PM, Richard Heyes wrote: >> ereg > > [Gasps and runs off shouting "PCRE"] ... > > -- > Richard Heyes > > HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: > http://www.rgraph.net (Updated February 28th) > You can bet your shirt my tests were using preg_repl

Re: [PHP] Sanitizing Numbers

2009-03-13 Thread Richard Heyes
> ereg [Gasps and runs off shouting "PCRE"] ... -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated February 28th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: non-auto increment question

2009-03-13 Thread haliphax
On Fri, Mar 13, 2009 at 1:24 PM, PJ wrote: > Jim Lucas wrote: >> PJ wrote: >>> am resending as this was erroneously ccd to mysql. sorry! >>> >>> Ashley Sheridan wrote: On Thu, 2009-02-26 at 11:27 -0500, PJ wrote: > Jerry Schwartz wrote: > >>> Being rather new to all this, I unders

Re: [PHP] Sanitizing Numbers

2009-03-13 Thread haliphax
On Fri, Mar 13, 2009 at 12:34 PM, Matt Neimeyer wrote: > I'm trying to sanitize some numeric data that's coming to us from > another system which I have no control over where all fields are > character fields with no formatting from the end user so data is a > mishmash of clean and mixed types of

Re: [PHP] RE: non-auto increment question

2009-03-13 Thread PJ
Jim Lucas wrote: > PJ wrote: >> am resending as this was erroneously ccd to mysql. sorry! >> >> Ashley Sheridan wrote: >>> On Thu, 2009-02-26 at 11:27 -0500, PJ wrote: Jerry Schwartz wrote: >> Being rather new to all this, I understood from the MySql manual >> that >> the auto

Re: [PHP] Header - Redirect Command Not Working

2009-03-13 Thread Daniel Brown
On Fri, Mar 13, 2009 at 13:15, Jan G.B. wrote: > > Where's your point? Proving that you know the well known clients and > their behaviour? > Just stick to the standards. easy. no or less errors occur. Okay, I'm not going to get into a flame war with you, because it's obvious that your native

Re: [PHP] Export/Write rows from DBF to CSV

2009-03-13 Thread Rahul S. Johari
On Mar 13, 2009, at 11:44 AM, Shawn McKenzie wrote: Rahul S. Johari wrote: On Mar 13, 2009, at 10:01 AM, Bastien Koert wrote: On Fri, Mar 13, 2009 at 9:56 AM, Rahul S. Johari < sleepwal...@rahulsjohari.com> wrote: Ave, I'm trying to retrieve data from a DBF database and write it to a C

[PHP] Sanitizing Numbers

2009-03-13 Thread Matt Neimeyer
I'm trying to sanitize some numeric data that's coming to us from another system which I have no control over where all fields are character fields with no formatting from the end user so data is a mishmash of clean and mixed types of dirty. I know I can use intval and floatval to sanitize if the

Re: [PHP] htmlentities is incomplete: does not cover rsquo etc

2009-03-13 Thread Jan G.B.
2009/3/13 Heddon's Gate Hotel : > The string function htmlentities seems to have very incomplete coverage of > the HTML entities listed in the HTML 4 spec.  For example, it does not know > about rsquo, lsquo, rdquo, ldquo, etc.  This is confirmed by looking at the > output of get_html_translation_t

Re: [PHP] Anyone fancy getting paid to improve my PHP in London?

2009-03-13 Thread Robert Cummings
On Fri, 2009-03-13 at 17:16 +, Tom Chubb wrote: > Do any experienced PHP programmers in London fancy helping me improve my > PHP? > I'd like to know where my code could be improved and to be shown how an > experienced programmer would approach a new site. > I'd rather pay the right person a hig

[PHP] Anyone fancy getting paid to improve my PHP in London?

2009-03-13 Thread Tom Chubb
Do any experienced PHP programmers in London fancy helping me improve my PHP? I'd like to know where my code could be improved and to be shown how an experienced programmer would approach a new site. I'd rather pay the right person a high amount than find someone cheap! Thanks, Tom PS - May as we

Re: [PHP] Header - Redirect Command Not Working

2009-03-13 Thread Jan G.B.
2009/3/11 Daniel Brown : > On Wed, Mar 11, 2009 at 12:38, Jan G.B. wrote: >> wrong: >> "Location: file.txt" >> and this is correct >> "Location: http://www.x.x/file.txt"; >> >> Not all clients behave like yours and accept the wrong header. > >    The *protocol* does not, but the HTTP/1.1 specifica

Re: [PHP] Export/Write rows from DBF to CSV

2009-03-13 Thread Shawn McKenzie
Rahul S. Johari wrote: > > On Mar 13, 2009, at 10:01 AM, Bastien Koert wrote: > >> On Fri, Mar 13, 2009 at 9:56 AM, Rahul S. Johari < >> sleepwal...@rahulsjohari.com> wrote: >> >>> Ave, >>> >>> I'm trying to retrieve data from a DBF database and write it to a CSV >>> file >>> in a comma delimited

Re: [PHP] bad interpreter error from CLI

2009-03-13 Thread Thodoris
Thodoris wrote: Hi gang, I am trying to run a script from cli which goes like this: #!/usr/bin/php The error I get is this: /usr/bin/php^M: bad interpreter: Permission denied the php binary is indeed in this location and when I run the same script like this: php -f test.php it works

Re: [PHP] bad interpreter error from CLI

2009-03-13 Thread Thodoris
On Fri, Mar 13, 2009 at 10:23, Thodoris wrote: [snip!] Both commands return the same path. and that path, I'll presume, is the same you have set in the script, right? Please offer as much information as you can with each email to speed up the troubleshooting process. ;-P

Re: [PHP] bad interpreter error from CLI

2009-03-13 Thread Thijs Lensselink
Thodoris wrote: > Hi gang, >I am trying to run a script from cli which goes like this: > > #!/usr/bin/php > passthru("printenv"); > ?> > > The error I get is this: > /usr/bin/php^M: bad interpreter: Permission denied > > the php binary is indeed in this location and when I run the same scri

Re: [PHP] php 5.2.8 to 5.2.9 concerns

2009-03-13 Thread The Doctor
On Fri, Mar 13, 2009 at 10:30:47AM -0400, Daniel Brown wrote: > On Fri, Mar 13, 2009 at 05:01, The Doctor wrote: > [snip!] > > > > What is going on? > [snip!] > > The warnings could've indicated simply that the error reporting > configuration was different between your builds, but the failure

Re: [PHP] php 5.2.8 to 5.2.9 concerns

2009-03-13 Thread The Doctor
On Fri, Mar 13, 2009 at 10:30:47AM -0400, Daniel Brown wrote: > On Fri, Mar 13, 2009 at 05:01, The Doctor wrote: > [snip!] > > > > What is going on? > [snip!] > > The warnings could've indicated simply that the error reporting > configuration was different between your builds, but the failure

Re: [PHP] bad interpreter error from CLI

2009-03-13 Thread Daniel Brown
On Fri, Mar 13, 2009 at 10:23, Thodoris wrote: [snip!] > > Both commands return the same path. and that path, I'll presume, is the same you have set in the script, right? Please offer as much information as you can with each email to speed up the troubleshooting process. ;-P What'

Re: [PHP] php 5.2.8 to 5.2.9 concerns

2009-03-13 Thread Daniel Brown
On Fri, Mar 13, 2009 at 05:01, The Doctor wrote: [snip!] > > What is going on? [snip!] The warnings could've indicated simply that the error reporting configuration was different between your builds, but the failure - when both were built the same way for PostgreSQL. Are both on the same sys

Re: [PHP] bad interpreter error from CLI

2009-03-13 Thread Thodoris
Note the ^M --- then use dos2unix from the command line on the Linux box to fix the line endings on that file. The ^M character is a sure-fire sign of a Windows-saved file. Already tried that but I still get the same error (without the ^M of course) so I think it's not the line termi

Re: [PHP] Export/Write rows from DBF to CSV

2009-03-13 Thread Rahul S. Johari
On Mar 13, 2009, at 10:01 AM, Bastien Koert wrote: On Fri, Mar 13, 2009 at 9:56 AM, Rahul S. Johari < sleepwal...@rahulsjohari.com> wrote: Ave, I'm trying to retrieve data from a DBF database and write it to a CSV file in a comma delimited format. I'm able to get the data and write it to

Re: [PHP] bad interpreter error from CLI

2009-03-13 Thread Daniel Brown
On Fri, Mar 13, 2009 at 10:10, Thodoris wrote: > Hi gang, >   I am trying to run a script from cli which goes like this: > > #!/usr/bin/php > passthru("printenv"); > ?> > > The error I get is this: > /usr/bin/php^M: bad interpreter: Permission denied Note the ^M --- then use dos2unix from th

[PHP] bad interpreter error from CLI

2009-03-13 Thread Thodoris
Hi gang, I am trying to run a script from cli which goes like this: #!/usr/bin/php The error I get is this: /usr/bin/php^M: bad interpreter: Permission denied the php binary is indeed in this location and when I run the same script like this: php -f test.php it works properly. I will hav

Re: [PHP] PHP to create an ERD (sic) on the fly on a web page based on current DB records?

2009-03-13 Thread Bastien Koert
On Fri, Mar 13, 2009 at 9:37 AM, haliphax wrote: > On Thu, Mar 12, 2009 at 7:47 PM, scubak1w1 wrote: > > Hello, > > > > Seeking some advice on how to create an ERD (sic) graphically on the page > on > > the fly when the page is 'called'... > > > > That is, I have a backend PostgreSQL database th

Re: [PHP] Export/Write rows from DBF to CSV

2009-03-13 Thread Bastien Koert
On Fri, Mar 13, 2009 at 9:56 AM, Rahul S. Johari < sleepwal...@rahulsjohari.com> wrote: > Ave, > > I'm trying to retrieve data from a DBF database and write it to a CSV file > in a comma delimited format. I'm able to get the data and write it to CSV, > but it only writes the last row/record ... no

[PHP] Export/Write rows from DBF to CSV

2009-03-13 Thread Rahul S. Johari
Ave, I'm trying to retrieve data from a DBF database and write it to a CSV file in a comma delimited format. I'm able to get the data and write it to CSV, but it only writes the last row/record ... not all the records. I know I don't have the correct code and I'm hoping someone can help m

Re: [PHP] Re: 2 forms, same page, 1st is file upload - works in IE, 'dies' in non-IE browsers

2009-03-13 Thread haliphax
On Fri, Mar 13, 2009 at 3:18 AM, 9el wrote: >> It sounds like a script error rather than a PHP error. Use Firebug which >> will show you the HTML as it is updated by Javascript, so you can see >> where the problem is. I'm willing to bet that the Javascript code you >> are using is IE only. >> >> Y

Re: [PHP] PHP to create an ERD (sic) on the fly on a web page based on current DB records?

2009-03-13 Thread haliphax
On Thu, Mar 12, 2009 at 7:47 PM, scubak1w1 wrote: > Hello, > > Seeking some advice on how to create an ERD (sic) graphically on the page on > the fly when the page is 'called'... > > That is, I have a backend PostgreSQL database that I am getting data from > and putting data into via web page/s an

RE: [PHP] Knowledge Base software - looking for opinions

2009-03-13 Thread Bob McConnell
From: haliphax > On Thu, Mar 12, 2009 at 3:44 PM, Paul M Foster wrote: >> On Thu, Mar 12, 2009 at 12:55:54PM -0700, mike wrote: >> >>> http://puresw.com/products/lore/ - paid >>> http://www.knowledgebase-script.com/ - paid >>> http://68kb.com/ - free >>> >>> Free is good. >>> >>> Just needs to be

[PHP] php 5.2.8 to 5.2.9 concerns

2009-03-13 Thread The Doctor
In 5.2.9 I was seeing /usr/local/lib/php/includes/XBT/class/pstgrs_DB.php(70) : Warning - pg_query(): supplied argument is not a valid PostgreSQL link resource /usr/local/lib/php/includes/XBT/class/pstgrs_DB.php(70) : Warning - pg_query() [function.pg-query]: Query failed: ERROR: insert or up

Re: [PHP] Re: 2 forms, same page, 1st is file upload - works in IE, 'dies' in non-IE browsers

2009-03-13 Thread 9el
> It sounds like a script error rather than a PHP error. Use Firebug which > will show you the HTML as it is updated by Javascript, so you can see > where the problem is. I'm willing to bet that the Javascript code you > are using is IE only. > > Yeah, php is never browser specific. It is rendered

Re: [PHP] Re: 2 forms, same page, 1st is file upload - works in IE, 'dies' in non-IE browsers

2009-03-13 Thread Ashley Sheridan
On Fri, 2009-03-13 at 02:06 -0500, Micah Gersten wrote: > scubak1w1 wrote: > > Hello, > > > > Banging my head against this one... > > > > Briefly: > > - I have two forms on the same page > > - both forms are: action="" > > method="post" > > - both forms gave unique ids > > - both forms have

[PHP] Re: 2 forms, same page, 1st is file upload - works in IE, 'dies' in non-IE browsers

2009-03-13 Thread Ross McKay
On Thu, 12 Mar 2009 18:39:38 -0600, scubak1w1 wrote: >[...] >In the non-IE browsers I have tried (Firefox, Chrome, Opera), the first form >uploads the file properly, the 2nd form's submit is 'turned on' by AJAX - >BUT the submit button on the 2nd form doesn't seem to do anything - i.e., >the on

[PHP] Re: PHP to create an ERD (sic) on the fly on a web page based on current DB records?

2009-03-13 Thread Ross McKay
On Thu, 12 Mar 2009 18:47:40 -0600, scubak1w1 wrote: >Seeking some advice on how to create an ERD (sic) graphically on the page on >the fly when the page is 'called'... >[...] Maybe GraphViz? http://graphviz.org/ -- Ross McKay, Toronto, NSW Australia "Let the laddie play wi the knife - he'll l

[PHP] Re: 2 forms, same page, 1st is file upload - works in IE, 'dies' in non-IE browsers

2009-03-13 Thread Micah Gersten
scubak1w1 wrote: > Hello, > > Banging my head against this one... > > Briefly: > - I have two forms on the same page > - both forms are: action="" > method="post" > - both forms gave unique ids > - both forms have a hidden file of the type name="_add_new_module_details" value="1" /> which i