[PHP] Re: php script can't self reference

2012-06-20 Thread Maciek Sokolewicz
On 20-06-2012 15:55, Tim Dunphy wrote: Hello list, I just wanted to bounce a slight issue that I'm having off you regarding self referencing a php script. Moving from the 'sendemail.htm' page where a form is used to the 'sendemail.php' page that is in the form action works fine! But if you

[PHP] Re: define()

2012-06-16 Thread Maciek Sokolewicz
On 16-06-2012 08:36, Karl DeSaulniers wrote: Quick question phprz. Is it ok to put a token inside a define() statement? IE: define('TOKEN', $sometoken); I guess what I am really after is if this can be read by a hacker? I may be misguided as to what define()'s parameters are. Once you define

[PHP] Re: define()

2012-06-16 Thread Karl DeSaulniers
On Jun 16, 2012, at 6:39 AM, Maciek Sokolewicz wrote: On 16-06-2012 08:36, Karl DeSaulniers wrote: Quick question phprz. Is it ok to put a token inside a define() statement? IE: define('TOKEN', $sometoken); I guess what I am really after is if this can be read by a hacker? I may be

Re: [PHP] Re: define()

2012-06-16 Thread Ashley Sheridan
On Sat, 2012-06-16 at 07:09 -0500, Karl DeSaulniers wrote: On Jun 16, 2012, at 6:39 AM, Maciek Sokolewicz wrote: On 16-06-2012 08:36, Karl DeSaulniers wrote: Quick question phprz. Is it ok to put a token inside a define() statement? IE: define('TOKEN', $sometoken); I guess

Re: [PHP] Re: define()

2012-06-16 Thread tamouse mailing lists
On Sat, Jun 16, 2012 at 7:17 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sat, 2012-06-16 at 07:09 -0500, Karl DeSaulniers wrote: On Jun 16, 2012, at 6:39 AM, Maciek Sokolewicz wrote: On 16-06-2012 08:36, Karl DeSaulniers wrote: Quick question phprz. Is it ok to put a token

[PHP] Re: php form action breaks script

2012-06-15 Thread Al
On 6/14/2012 7:28 PM, Tim Dunphy wrote: Hello list, I was just wondering if I could get some opinions on a snippet of code which breaks a php web page. First the working code which is basically an html form being echoed by php: if ($output_form) { echo 'br /br /form

Re: [PHP] Re: php form action breaks script

2012-06-15 Thread ma...@behnke.biz
Al n...@ridersite.org hat am 15. Juni 2012 um 14:29 geschrieben: On 6/14/2012 7:28 PM, Tim Dunphy wrote: However if I change the form action to this, it breaks the page resulting in a white screen of death: error_reporting(E_ALL); ini_set('display_errors', 'On'); And what is the error

[PHP] Re: php form action breaks script

2012-06-15 Thread Jim Giner
Hear, Hear for heredocs. The only way to code up your html. Took me a few months to discover it and haven't looked back since. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php form action breaks script

2012-06-15 Thread Jim Lucas
On 06/15/2012 06:35 AM, Jim Giner wrote: Hear, Hear for heredocs. The only way to code up your html. Took me a few months to discover it and haven't looked back since. The only problem I have with HEREDOC is I cannot use constants within them. -- Jim Lucas http://www.cmsws.com/

Re: [PHP] Re: php form action breaks script

2012-06-15 Thread ma...@behnke.biz
Jim Lucas li...@cmsws.com hat am 15. Juni 2012 um 18:39 geschrieben: On 06/15/2012 06:35 AM, Jim Giner wrote: Hear, Hear for heredocs. The only way to code up your html. Took me a few months to discover it and haven't looked back since. The only problem I have with HEREDOC is I

Re: [PHP] Re: php form action breaks script

2012-06-15 Thread Al
It is a small price to pay for large block, especially if the text has any quotes. Personally, I can't keep them straight and delimit them, etc. Heredoc saves all that such stuff. $insert= MY_DEFINED; echo hdc This is my $insert hdc; On 6/15/2012 12:39 PM, Jim Lucas wrote: On 06/15/2012

[PHP] Re: how to walk async recursively over an object, doing work (in right order) per leaf

2012-06-14 Thread rene7705
I think I've got it figured out now.. My solution is to async build up a flat list of items (from the recursive object) to process first, then do another async loop (which I'll build soon) to do the work per item, and when that's done, replace the placeholder with the result. This code works on

[PHP] Re: how to walk async recursively over an object, doing work (in right order) per leaf

2012-06-14 Thread rene7705
oops; printNextLevel : function (pvCmd) { if ( typeof pvCmd.val == 'object' typeof pvCmd.val.hmStats == 'object' typeof pvCmd.val.hmData == 'object' ) { //if (pvCmd.keyValueName pvCmd.keyValueName!='')

[PHP] Re: php form action breaks script

2012-06-14 Thread David Robley
Tim Dunphy wrote: Hello list, I was just wondering if I could get some opinions on a snippet of code which breaks a php web page. First the working code which is basically an html form being echoed by php: if ($output_form) { echo 'br /br /form action=sendemail.php method=post

Re: [PHP] Re: php form action breaks script

2012-06-14 Thread Paul Halliday
On Thu, Jun 14, 2012 at 10:17 PM, David Robley robl...@aapt.net.au wrote: Tim Dunphy wrote: Hello list,  I was just wondering if I could get some opinions on a snippet of code which breaks a php web page.  First the working code which is basically an html form being echoed by  php: if

Re: [PHP] Re: show info from mysql db

2012-06-11 Thread Jim Lucas
On 06/10/2012 09:50 AM, Tim Dunphy wrote: You had been keeping the password secret, but it looks like you accidentally leaked it, so a replacement might be in order :) oh wow.. gotta hate when you do that!!! on it! Glad you got it fixed. Typos can be little buggers to find sometimes. me

[PHP] Re: show info from mysql db

2012-06-10 Thread Tim Dunphy
wow! this fixed it.. $dbc = mysqli_connect('127.0.0.1','admin',secret','trek_db') or die ('Could not connect to database'); used to be... $dbc = mysqli_conect('127.0.0.1','admin','Duk30fZh0u','trek_db') or die ('Could not connect to database'); d'oh!! spelling counts!!! :) On Sun,

Re: [PHP] Re: show info from mysql db

2012-06-10 Thread Adam Richardson
On Sun, Jun 10, 2012 at 8:25 AM, Tim Dunphy bluethu...@gmail.com wrote: $dbc = mysqli_connect('127.0.0.1','admin',secret','trek_db')     or die ('Could not connect to database'); used to be... $dbc = mysqli_conect('127.0.0.1','admin','Duk30fZh0u','trek_db')     or die ('Could not connect to

Re: [PHP] Re: show info from mysql db

2012-06-10 Thread Tim Dunphy
You had been keeping the password secret, but it looks like you accidentally leaked it, so a replacement might be in order :) oh wow.. gotta hate when you do that!!! on it! Glad you got it fixed. Typos can be little buggers to find sometimes. me too.. fell back to the old 'echo hello' test

Re: [PHP] Re: show info from mysql db

2012-06-10 Thread Mihamina Rakotomandimby
On 06/10/2012 07:50 PM, Tim Dunphy wrote: Glad you got it fixed. Typos can be little buggers to find sometimes. me too.. fell back to the old 'echo hello' test strategy .. have to try to remember that strategy before i go running for help..:) I dont agree: If you used exceptions (with real

[PHP] Re: A Question of SESSION

2012-06-07 Thread Daniel P. Brown
On Thu, Jun 7, 2012 at 11:15 AM, Tedd Sperling t...@sperling.com wrote: 3. Looking for an explanation, I came across Daniel's post to the PHP manual, which follows: http://www.webbytedd.com/b/sessions3 Now I am totally bonkers. What am I not getting? Anything. Because that page

[PHP] Re: A Question of SESSION

2012-06-07 Thread Daniel P. Brown
On Thu, Jun 7, 2012 at 11:20 AM, Daniel P. Brown daniel.br...@parasane.net wrote: On Thu, Jun 7, 2012 at 11:15 AM, Tedd Sperling t...@sperling.com wrote: 3. Looking for an explanation, I came across Daniel's post to the PHP manual, which follows: http://www.webbytedd.com/b/sessions3 I

[PHP] Re:

2012-06-04 Thread Al
On 6/3/2012 8:26 PM, Chris Purves wrote: Hello, I am trying to use preg_match to match something from an html file. Within the html file is some text that looks like: spanSomething, something end/span I know that the text ends 'end', but I don't know what the Something, something is. I am

[PHP] Re: Hungarian Notation interest with PHP

2012-06-04 Thread Tony Marston
Mihamina Rakotomandimby wrote in message news:4fccc97a.1060...@rktmb.org... Hi all, I have a colleague stuck with this thing named Hungarian Notation http://goo.gl/xYv8O We try to define our internal coding standards, which is very close to the Symfony ones http://goo.gl/f2rcO But we're

Re: [PHP] Re: Function size

2012-06-03 Thread Tony Marston
tamouse mailing lists wrote in message news:cahuc_t__sw-_yhrw4n4uqr-fa46+cebunzgehboaatrafla...@mail.gmail.com... On Tue, May 29, 2012 at 2:52 AM, Tony Marston t...@marston-home.demon.co.uk wrote: On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: A rule of thumb is no more than 50

Re: [PHP] Re: Function size

2012-06-03 Thread Tim Streater
On 03 Jun 2012 at 10:02, Tony Marston tonymars...@hotmail.com wrote: tamouse mailing lists wrote in message news:cahuc_t__sw-_yhrw4n4uqr-fa46+cebunzgehboaatrafla...@mail.gmail.com... There is a point: if you are unfamiliar with code, wading through screens and screens of a function to find

Re: [PHP] Re: Function size

2012-06-03 Thread Tony Marston
Tim Streater wrote in message news:d0.7c.45755.25a3b...@pb1.pair.com... On 03 Jun 2012 at 10:02, Tony Marston tonymars...@hotmail.com wrote: tamouse mailing lists wrote in message news:cahuc_t__sw-_yhrw4n4uqr-fa46+cebunzgehboaatrafla...@mail.gmail.com... There is a point: if you are

[PHP] Re: is there a way to stop HTMLPurifier/CSStidy from forcing input CSS into all lowercase?

2012-06-02 Thread Govinda
anyone here using HTMLpurifier and CSStidy together? (like e.g. to allow users to create their own external style sheets via form input) [snip] I found how to set CSStidy's config options if I was running CSStidy from the command line, or on its _own_ from PHP runtime, but I do not know how

Re: [PHP] Re: Function size

2012-05-31 Thread tamouse mailing lists
On Tue, May 29, 2012 at 2:52 AM, Tony Marston t...@marston-home.demon.co.uk wrote: On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote:  A rule of thumb is no more than 50 lines per function, most much less. Back in the day when we didn't have nifty gui screens and an 24 line terminals

[PHP] Re: cyberweaponry

2012-05-31 Thread Ross McKay
On Thu, 31 May 2012 13:21:07 -0400, Tedd Sperling wrote: [...] I watched a interview today where an security expert claimed that the Flame Virus was written in a scripted language named lua (http://www.lua.org/). That's surprising... I'm intrigued, can you supply a link? He said that this was

Re: [PHP] Re: Function size

2012-05-30 Thread Tony Marston
Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1338326229.2616.31.camel@localhost.localdomain... On Tue, 2012-05-29 at 17:06 -0400, Paul M Foster wrote: On Tue, May 29, 2012 at 08:52:46AM +0100, Tony Marston wrote: On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote:

Re: [PHP] Re: Function size

2012-05-30 Thread Sebastian Krebs
Hi, Just want to throw my 2 cent in :) 2012/5/30 Tony Marston t...@marston-home.demon.co.uk Ashley Sheridan a...@ashleysheridan.co.uk wrote in message news:1338326229.2616.31.camel@localhost.localdomain... On Tue, 2012-05-29 at 17:06 -0400, Paul M Foster wrote: On Tue, May 29, 2012 at

Re: [PHP] Re: Function size

2012-05-30 Thread Paul M Foster
On Tue, May 29, 2012 at 11:40:25PM +0200, Matijn Woudt wrote: [snip] On Tue, May 29, 2012 at 11:06 PM, Paul M Foster pa...@quillandmouse.com wrote: [snip] I think a lot of coders try to be kewler than the next 18 guys who are gonna have to look at the code, so they use a lot of

RE: [PHP] Re: Function size

2012-05-30 Thread Steven Staples
Paul, Are you stating here that compression is a bad thing? That means you consider this nice: if ( action == A ) { doA(); } else if (action == B ) { doB(); } else { doC(); } Or perhaps flooded with comments that merely say the same as the code does? I'd go

Re: [PHP] Re: Function size

2012-05-30 Thread Paul M Foster
On Wed, May 30, 2012 at 04:31:12PM +0200, Sebastian Krebs wrote: [snip] If the functions were named properly you don't have to follow every execution path to the deepest deep. Or do you reading PHPs C-source, just because a wild substr() appeared? When you see a method loadFromFile() and

RE: [PHP] Re: Function size

2012-05-30 Thread admin
-Original Message- From: Paul M Foster [mailto:pa...@quillandmouse.com] Sent: Wednesday, May 30, 2012 10:54 AM To: php-general@lists.php.net Subject: Re: [PHP] Re: Function size On Wed, May 30, 2012 at 04:31:12PM +0200, Sebastian Krebs wrote: [snip] If the functions were named

[PHP] Re: Function size

2012-05-29 Thread Tony Marston
On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: A rule of thumb is no more than 50 lines per function, most much less. Back in the day when we didn't have nifty gui screens and an 24 line terminals (yay green on black!), if a function exceeded one printed page, it was deemed too

Re: [PHP] Re: Function size

2012-05-29 Thread Paul M Foster
On Tue, May 29, 2012 at 08:52:46AM +0100, Tony Marston wrote: On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: A rule of thumb is no more than 50 lines per function, most much less. Back in the day when we didn't have nifty gui screens and an 24 line terminals (yay green on

Re: [PHP] Re: Function size

2012-05-29 Thread Ashley Sheridan
On Tue, 2012-05-29 at 17:06 -0400, Paul M Foster wrote: On Tue, May 29, 2012 at 08:52:46AM +0100, Tony Marston wrote: On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: A rule of thumb is no more than 50 lines per function, most much less. Back in the day when we didn't have

Re: [PHP] Re: Function size

2012-05-29 Thread Matijn Woudt
On Tue, May 29, 2012 at 11:06 PM, Paul M Foster pa...@quillandmouse.com wrote: OMG in alpha order?! At best, I might group them together by function type, with some comment notation in the file. But not alpha order. I prefer not to have forward declares in my files, so I generally arrange

[PHP] Re: Function size

2012-05-25 Thread Tedd Sperling
On May 24, 2012, at 4:48 PM, tamouse mailing lists wrote: Yes, I think that is *exactly* the criterion-- not a mystery or an emergent thing, really, was a pretty expicit reasoning--being able to see/scan the entire function on one page (or now in one screenful) makes it much easier to see

[PHP] Re: Crudin - CRUD INterface Generator - Open Source Project

2012-05-25 Thread Maciek Sokolewicz
On 25-05-2012 23:09, Rodrigo de Almeida Rodriguez wrote: Hi, I am the creator of a open source project called Crudin (http://crudin.smarc.com.br/en) Crudin is a system for generation of fron-ends in the MySQL, writted in PHP Without needing to program nothing you get a complete platform with

Re: [PHP] Re: Crudin - CRUD INterface Generator - Open Source Project

2012-05-25 Thread Tommy Pham
On Fri, May 25, 2012 at 3:53 PM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 25-05-2012 23:09, Rodrigo de Almeida Rodriguez wrote: Hi, I am the creator of a open source project called Crudin (http://crudin.smarc.com.br/en) Crudin is a system for generation of fron-ends in the

[PHP] Re: Function size

2012-05-24 Thread tamouse mailing lists
On May 23, 2012 9:14 AM, Tedd Sperling t...@sperling.com wrote: Hi gang: On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: A rule of thumb is no more than 50 lines per function, most much less. Back in the day when we didn't have nifty gui screens and an 24 line terminals (yay

Re: [PHP] Re: Function size

2012-05-24 Thread Ashley Sheridan
On Thu, 2012-05-24 at 15:48 -0500, tamouse mailing lists wrote: On May 23, 2012 9:14 AM, Tedd Sperling t...@sperling.com wrote: Hi gang: On May 21, 2012, at 8:32 PM, tamouse mailing lists wrote: A rule of thumb is no more than 50 lines per function, most much less. Back in the day

[PHP] Re: w.r.t. mail() function

2012-05-23 Thread Maciek Sokolewicz
On 23-05-2012 06:12, Ashwani Kesharwani wrote: Hi , I have a query w.r.t. mail() function in php. I have hosted my site and i have created an email account as well. when i am sending mail to different recipient from my php script using above function it is getting delivered to respective

[PHP] Re: w.r.t. mail() function

2012-05-23 Thread Ashwani Kesharwani
Hi Maciek, admin, Thanks for your responses. Its really helpful. Regards Ashwani On Wed, May 23, 2012 at 3:37 PM, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 23-05-2012 06:12, Ashwani Kesharwani wrote: Hi , I have a query w.r.t. mail() function in php. I have hosted my

[PHP] Re: w.r.t. mail() function

2012-05-23 Thread Jonesy
On Wed, 23 May 2012 00:24:25 -0400, admin wrote: -Original Message- From: Ashwani Kesharwani [mailto:ashwani.kesharw...@gmail.com] Sent: Wednesday, May 23, 2012 12:13 AM To: php-general@lists.php.net Subject: [PHP] w.r.t. mail() function Hi , I have a query w.r.t. mail() function

Re: [PHP] Re: w.r.t. mail() function

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 3:50 PM, Jonesy gm...@jonz.net wrote: On Wed, 23 May 2012 00:24:25 -0400, admin wrote: -Original Message- From: Ashwani Kesharwani [mailto:ashwani.kesharw...@gmail.com] Sent: Wednesday, May 23, 2012 12:13 AM To: php-general@lists.php.net Subject: [PHP] w.r.t.

Re: [PHP] Re: w.r.t. mail() function

2012-05-23 Thread Ashley Sheridan
On Wed, 2012-05-23 at 20:36 +0200, Matijn Woudt wrote: On Wed, May 23, 2012 at 3:50 PM, Jonesy gm...@jonz.net wrote: On Wed, 23 May 2012 00:24:25 -0400, admin wrote: -Original Message- From: Ashwani Kesharwani [mailto:ashwani.kesharw...@gmail.com] Sent: Wednesday, May 23, 2012

Re: [PHP] Re: w.r.t. mail() function

2012-05-23 Thread Matijn Woudt
On Wed, May 23, 2012 at 9:33 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: ** On Wed, 2012-05-23 at 20:36 +0200, Matijn Woudt wrote: On Wed, May 23, 2012 at 3:50 PM, Jonesy gm...@jonz.net wrote: On Wed, 23 May 2012 00:24:25 -0400, admin wrote: -Original Message- From:

[PHP] Re: yaf modules and plugins

2012-05-22 Thread Eduárd Moldovan
Hey Laruence, I have another question about YaF. Does it have any automated input cleaning? Like getting rid of XSS tricks, cleaning $_POST, $_GET? Thx, -- *Moldován Eduárd* boxed.hu e...@boxed.hu +36 30 691 2 691 skype: edimoldovan

[PHP] Re: regexp novice

2012-05-17 Thread Jim Giner
OOPS FORGOT to mention that I modify the string to add a colon if it is entered without one, so my regexp always expects a : to be in the middle. So in actuality - my regexp is 'passing' a value of 13:00 as legitimate, when it should not be. -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: Variables via url

2012-05-12 Thread Jim Giner
Ashley M. Kirchner ash...@pcraft.com wrote in message news:4fad9d8b.4020...@pcraft.com... Can someone point me at examples or directions on how I can pass a variable via a URL in the following way: http://server.domain.com//script///variable/ I will only be passing one single

Re: [PHP] Re: Variables via url

2012-05-12 Thread Ashley Sheridan
On Sat, 2012-05-12 at 09:21 -0400, Jim Giner wrote: Ashley M. Kirchner ash...@pcraft.com wrote in message news:4fad9d8b.4020...@pcraft.com... Can someone point me at examples or directions on how I can pass a variable via a URL in the following way:

Re: [PHP] Re: Variables via url

2012-05-12 Thread TR Shaw
On May 12, 2012, at 9:47 AM, Ashley Sheridan wrote: On Sat, 2012-05-12 at 09:21 -0400, Jim Giner wrote: Ashley M. Kirchner ash...@pcraft.com wrote in message news:4fad9d8b.4020...@pcraft.com... Can someone point me at examples or directions on how I can pass a variable via a URL in

Re: [PHP] Re: Variables via url

2012-05-12 Thread Ashley M. Kirchner
On 5/12/2012 7:21 AM, Jim Giner wrote: Of course, someone here with much more knowledge than I could very soon make me look stupid :) Meh, I don't call that looking stupid. I call it a different way of skinning the cat. :) We're all here to learn from one another, right? Thanks

Re: [PHP] Re: How to send XML requests from PHP?

2012-05-09 Thread ma...@behnke.biz
Michelle Konzack linux4miche...@tamay-dogan.net hat am 8. Mai 2012 um 20:25 geschrieben: Hello Jim Lucas, Am 2012-05-08 11:08:13, hacktest Du folgendes herunter: Look into cURL http://php.net/curl I know curl but I do not know, HOW to send the XML stuff. $ch = curl_init ();

[PHP] Re: How to send XML requests from PHP?

2012-05-08 Thread Michelle Konzack
Hello Jim Lucas, Am 2012-05-08 11:08:13, hacktest Du folgendes herunter: Look into cURL http://php.net/curl I know curl but I do not know, HOW to send the XML stuff. The XML code is generated using a temp file for logging, which mean, I can see any changes on the system... Thanks, Greetings

Re: [PHP] Re: How to send XML requests from PHP?

2012-05-08 Thread Jim Lucas
On 05/08/2012 11:25 AM, Michelle Konzack wrote: Hello Jim Lucas, Am 2012-05-08 11:08:13, hacktest Du folgendes herunter: Look into cURL http://php.net/curl I know curl but I do not know, HOW to send the XML stuff. The XML code is generated using a temp file for logging, which mean, I can

[PHP] Re: PHP Subroutine Call Blowing UP with Strings

2012-05-06 Thread Maciek Sokolewicz
On 06-05-2012 14:54, George R Smith wrote: root@dellT710:/var/www# php qm_get_clients.php *** glibc detected *** php: free(): invalid next size (fast): 0x0a2c3998 *** Sounds like a segfault to me, which is fully the fault of the extension, and not something you're doing in PHP. Try asking the

[PHP] Re: function

2012-05-04 Thread Jim Giner
Ron Piggott ron.pigg...@actsministries.org wrote in message news:499A66F0FB394E1DB44F7E0C011CF11C@RonPiggottPC... I need to access a FUNCTION I programmed within a different FUNCTION. Are these able to be passed like a variable? Or are they able to become like a $_SESSION variable in nature?

[PHP] RE: [PHP-DB] [PHP] PHP Database Problems -- Code Snippets - Any more Ideas?

2012-05-04 Thread Gavin Chalkley
Ethan, You have been given advise and break down on your code. Have you taken the advise given? Which part of the code isn't working? Not which chunk, but break it down and show which part BR, Gav -Original Message- From: Ethan Rosenberg [mailto:eth...@earthlink.net] Sent: 04 May

[PHP] RE: [PHP-DB] PHP Database Problems

2012-05-02 Thread Gavin Chalkley
Ethan, Some coding you are using would be helpful (as far as i am aware attachments are not support on the mailing list's) Gav -Original Message- From: Ethan Rosenberg [mailto:eth...@earthlink.net] Sent: 02 May 2012 19:54 To: php-db-lists.php.net; php-general@lists.php.net Subject:

[PHP] Re: [PHP-DB] PHP Database Problems -- Code Snippets

2012-05-02 Thread Christopher Jones
I noticed the use of SQL concatenation like: $allowed_fields = array ( 'Site' =$_POST['Site'], 'MedRec' = $_POST['MedRec'], 'Fname' = $_POST['Fname'], 'Lname' = $_POST['Lname'] , 'Phone' = $_POST['Phone'] , 'Sex' = $_POST['Sex'] , 'Height' = $_POST['Height'] );

[PHP] Re: Array_diff problems

2012-04-27 Thread Jim Giner
Rick Dwyer rpdw...@earthlink.net wrote in message news:0c0e6cc9-089d-4938-8b50-c9e12dfb3...@earthlink.net... Hello all. I have two arrays and when compared against each other via array_diff, I do not get any output: $myarray1 = Array ( [0] = Array ( [id] = 1 [Funding_Type] = Federal [Amount]

Re: [PHP] Re: Email Antispam

2012-04-25 Thread David Mehler
Hello, Thank you to all who have offered suggestions with this issue. I have discussed it with the individual I'm working for and a contact form has been authorized. So, I'm going to go with that option. Thanks. Dave. On 4/19/12, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Thu,

Re: [PHP] Re: No error reporting on

2012-04-24 Thread Jim Giner
Sounds like a very good reason to me? It's a development tool. Add it now, remove it later. Dotan Cohen dotanco...@gmail.com wrote in message news:cakdxfkn+6mn9chuqdwevx5ap0km-rkls0q+carbf5hktvuo...@mail.gmail.com... On Mon, Apr 23, 2012 at 16:53, Jim Lucas li...@cmsws.com wrote: Possibly,

[PHP] Re: [PHP-DB] School timetable in php

2012-04-23 Thread Tony Marston
tamouse mailing lists wrote in message news:CAHUC_t-cch8cBXZvzWtx42ZPFEuVkMPG=50jkwv+gygelk_...@mail.gmail.com... On Sun, Apr 22, 2012 at 1:41 AM, Vinay Kannan viny...@gmail.com wrote: Weekly subject wise lecture schedule, subject wise / faculty wise. On Sun, Apr 22, 2012 at 12:02 PM,

[PHP] Re: No error reporting on

2012-04-23 Thread Jim Giner
Just my $.02, but don't you need: ini_set('display_errors', '1'); as well? Dotan Cohen dotanco...@gmail.com wrote in message news:CAKDXFkMOH63=hnlekxugampqwrhvvet2x4iw-42soqkisrg...@mail.gmail.com... Given this code: error_reporting(-1); -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Re: No error reporting on

2012-04-23 Thread Dotan Cohen
On Mon, Apr 23, 2012 at 14:18, Jim Giner jim.gi...@albanyhandball.com wrote: Just my $.02, but don't you need: ini_set('display_errors', '1'); as well? Possibly, thanks. I actually don't have access to that! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com -- PHP General

Re: [PHP] Re: No error reporting on

2012-04-23 Thread Jim Lucas
On 04/23/2012 01:21 PM, Dotan Cohen wrote: On Mon, Apr 23, 2012 at 14:18, Jim Ginerjim.gi...@albanyhandball.com wrote: Just my $.02, but don't you need: ini_set('display_errors', '1'); as well? Possibly, thanks. I actually don't have access to that! That line should be placed in your

Re: [PHP] Re: No error reporting on

2012-04-23 Thread Dotan Cohen
On Mon, Apr 23, 2012 at 16:53, Jim Lucas li...@cmsws.com wrote: Possibly, thanks. I actually don't have access to that! That line should be placed in your script.  not the php.ini file Yes, I'm working on a functions file that is include()ed by the main script. I'm not supposed to touch the

[PHP] Re: [PHP-DB] School timetable in php

2012-04-22 Thread tamouse mailing lists
On Sun, Apr 22, 2012 at 1:41 AM, Vinay Kannan viny...@gmail.com wrote: Weekly subject wise lecture schedule, subject wise / faculty wise. On Sun, Apr 22, 2012 at 12:02 PM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Fri, Apr 20, 2012 at 7:00 AM, Vinay Kannan viny...@gmail.com

Re: [PHP] Re: Email Antispam

2012-04-19 Thread Bastien
Bastien Koert On 2012-04-19, at 1:54 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Wed, Apr 18, 2012 at 8:47 PM, Ross McKay ro...@zeta.org.au wrote: On Wed, 18 Apr 2012 11:08:00 -0400, Jim Giner wrote: He literally wants the addresses visible on the sight? [...] Yes,

Re: [PHP] Re: Email Antispam

2012-04-19 Thread Matijn Woudt
On Thu, Apr 19, 2012 at 1:01 PM, Bastien phps...@gmail.com wrote: Bastien Koert On 2012-04-19, at 1:54 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Wed, Apr 18, 2012 at 8:47 PM, Ross McKay ro...@zeta.org.au wrote: On Wed, 18 Apr 2012 11:08:00 -0400, Jim Giner wrote: He

Re: [PHP] Re: Email Antispam

2012-04-19 Thread Ashley Sheridan
On Thu, 2012-04-19 at 13:48 +0200, Matijn Woudt wrote: On Thu, Apr 19, 2012 at 1:01 PM, Bastien phps...@gmail.com wrote: Bastien Koert On 2012-04-19, at 1:54 AM, tamouse mailing lists tamouse.li...@gmail.com wrote: On Wed, Apr 18, 2012 at 8:47 PM, Ross McKay ro...@zeta.org.au

[PHP] Re: Email Antispam

2012-04-18 Thread Jim Giner
Ross McKay ro...@zeta.org.au wrote in message news:795so7t0avn28a5m8i373h9tursk15c...@4ax.com... On Tue, 17 Apr 2012 21:11:45 -0400, Jim Giner wrote: So - does that mean you building the site from information contained in a database? Yes. Client wanted email addresses on the website, but not

[PHP] Re: Email Antispam

2012-04-18 Thread Ross McKay
On Wed, 18 Apr 2012 11:08:00 -0400, Jim Giner wrote: He literally wants the addresses visible on the sight? [...] Yes, they want the addresses visible and clickable on the website. They have contact forms, but they also want the email addresses (of their scientists and other consultants)

Re: [PHP] Re: Email Antispam

2012-04-18 Thread tamouse mailing lists
On Wed, Apr 18, 2012 at 8:47 PM, Ross McKay ro...@zeta.org.au wrote: On Wed, 18 Apr 2012 11:08:00 -0400, Jim Giner wrote: He literally wants the addresses visible on the sight?  [...] Yes, they want the addresses visible and clickable on the website. They have contact forms, but they also

[PHP] Re: PHP: a fractal of bad design

2012-04-17 Thread Bogdan Ribic
Where's the Like button on this list? :) On 4/13/2012 01:44, Ross McKay wrote: On Wed, 11 Apr 2012 17:06:10 -0700, Daevid Vincent wrote: There are only two kinds of languages: the ones people complain about and the ones nobody uses. -- Bjarne Stroustrup -- PHP General Mailing List

Re: [PHP] Re: PHP: a fractal of bad design

2012-04-17 Thread Jim Lucas
On 04/17/2012 05:43 AM, Bogdan Ribic wrote: Where's the Like button on this list? :) On 4/13/2012 01:44, Ross McKay wrote: On Wed, 11 Apr 2012 17:06:10 -0700, Daevid Vincent wrote: There are only two kinds of languages: the ones people complain about and the ones nobody uses. -- Bjarne

Re: [PHP] Re: PHP: a fractal of bad design

2012-04-17 Thread Jay Blanchard
[snip] a simple +1 will do [/snip] Ahthe good old days. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Email Antispam

2012-04-17 Thread Jim Giner
David Mehler dave.meh...@gmail.com wrote in message news:CAPORhP5Cuzd0Hb9gBFLESNe5LofDODN64S2UOAuMWCb=zoh...@mail.gmail.com... Hello, I'm working on a site that has email addresses on it. I am not wanting to use mailto links so as to avoid spam harvesters, I'd like another solution so that

RE: [PHP] Re: Email Antispam

2012-04-17 Thread Steven Staples
-Original Message- From: Jim Giner [mailto:jim.gi...@albanyhandball.com] Sent: April 17, 2012 4:33 PM To: php-general@lists.php.net Subject: [PHP] Re: Email Antispam David Mehler dave.meh...@gmail.com wrote in message news:CAPORhP5Cuzd0Hb9gBFLESNe5LofDODN64S2UOAuMWCb=zoh

[PHP] Re: Email Antispam

2012-04-17 Thread Ross McKay
On Tue, 17 Apr 2012 16:04:19 -0400, David Mehler wrote: I'm working on a site that has email addresses on it. I am not wanting to use mailto links so as to avoid spam harvesters, I'd like another solution so that mailto links would work but would not work with spammers. I've tried several

[PHP] Re: Email Antispam

2012-04-17 Thread Jim Giner
Ross McKay ro...@zeta.org.au wrote in message news:b4vro79ftp9423k74bnj41o1o9e3dk9...@4ax.com... On Tue, 17 Apr 2012 16:04:19 -0400, David Mehler wrote: I'm working on a site that has email addresses on it. I am not wanting to use mailto links so as to avoid spam harvesters, I'd like another

[PHP] Re: Email Antispam

2012-04-17 Thread Ross McKay
On Tue, 17 Apr 2012 21:11:45 -0400, Jim Giner wrote: So - does that mean you building the site from information contained in a database? Yes. Client wanted email addresses on the website, but not available to SPAM harvesters. And not all addresses are in the database as structured data, many

[PHP] Re: Customized Session Handler can not work for PHP 5.1.6 and CentOS5.5

2012-04-16 Thread Mingda
Sorry, wrong link provided, correct link is: http://stackoverflow.com/questions/10150296/cant-make-custom-session-save-handler-workno-registered-method-called-in-cent#comment13018050_10150327 On 2012/4/15 0:27, Mingda wrote: Hi, All, System: CentOS 5.5; PHP version is 5.1.6. I met a

RE: [PHP] Re: php in windows

2012-04-16 Thread Steven Staples
-Original Message- From: Kirk Bailey [mailto:kbai...@howlermonkey.net] Sent: April 11, 2012 10:11 PM To: php-general@lists.php.net Subject: Re: [PHP] Re: php in windows Steve, THERE IS NO SUCH FILE in tinyweb. It turns to the operating system asspciations to determine what to use

[PHP] Re: Upcoming Outage: php.net

2012-04-16 Thread Daniel Brown
Just a reminder, see the below message. On Apr 13, 2012 3:43 PM, Daniel Brown danbr...@php.net wrote: Greetings, all; This coming Monday, 16 April, 2012, between the hours of 18:00 and 20:00 EDT (22:00 to 00:00 GMT), the one of the primary php.net servers will be undergoing a critical

[PHP] Re: Upcoming Outage: php.net

2012-04-16 Thread Daniel Brown
and we're back. Sorry for the interruption. I know many of you were missing the RFC discussions and debates on Internals. I'll try not to let it happen again. ;-P If anyone sees any issues that could be related to the below, please let us know ASAP on syst...@php.net and/or

[PHP] Re: Customized Session Handler can not work for PHP 5.1.6 and CentOS5.5

2012-04-15 Thread Mingda
Sorry, wrong stackoverflow link. Here is the correct one: http://stackoverflow.com/questions/10150296/cant-make-custom-session-save-handler-workno-registered-method-called-in-cent#comment13018050_10150327 And here is the code for session: ?php class session { public static function init()

[PHP] Re: PHP: a fractal of bad design

2012-04-12 Thread Ross McKay
On Wed, 11 Apr 2012 17:06:10 -0700, Daevid Vincent wrote: http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/ Can't say he doesn't have some good points, but he sure goes about it in a dickish way. There are only two kinds of languages: the ones people complain about and the ones

RE: [PHP] Re: php in windows

2012-04-11 Thread Steven Staples
-Original Message- From: Kirk Bailey [mailto:kbai...@howlermonkey.net] Sent: April 11, 2012 1:02 AM To: php-general@lists.php.net Subject: Re: [PHP] Re: php in windows ok, there is a copy of index.php ion the cgibin, and this got WAY different results. It puked an error

Re: [PHP] Re: php in windows

2012-04-11 Thread Jay Blanchard
On 4/11/2012 9:42 AM, Steven Staples wrote: -Original Message- From: Kirk Bailey [mailto:kbai...@howlermonkey.net] Sent: April 11, 2012 1:02 AM To: php-general@lists.php.net Subject: Re: [PHP] Re: php in windows ok, there is a copy of index.php ion the cgibin, and this got WAY

Re: [PHP] Re: php in windows

2012-04-11 Thread Kirk Bailey
Steve, THERE IS NO SUCH FILE in tinyweb. It turns to the operating system asspciations to determine what to use to process the cgi, then captures the returned stdio output and feeds THAT back as part of the data stream back down the stack. Therefore, it is not interfacing with the windows

Re: [PHP] Re: php in windows

2012-04-11 Thread Daniel Fenn
I don't want to sound rude but I did say this before, why don't you get zend server CE or xampp and install that? On Thu, Apr 12, 2012 at 12:11 PM, Kirk Bailey kbai...@howlermonkey.net wrote: Steve, THERE IS NO SUCH FILE in tinyweb. It turns to the operating system asspciations to determine

[PHP] Re: php in windows

2012-04-10 Thread Bogdan Ribic
On 4/10/2012 04:05, Kirk Bailey wrote: The edition of php for windows I instaklled does not work. Which flavor of windows php DOES work properly in windows? Trust me, it does work :) I'm running PHP 5.3.10 thread-safe, as apache module on apache 2.4.1 from apache lounge (not official apache

[PHP] Re: Script failing on extension_dir

2012-04-10 Thread Shawn McKenzie
On 04/09/2012 03:16 PM, George R Smith wrote: EXTDIR=`php -i 2 /dev/null | grep -i extension_dir | cut -d -f3` Error message follows, what does the no mean ? get the directory where PHP extension are stored You need to create the

<    2   3   4   5   6   7   8   9   10   11   >