Re: [PHP] Proper code formatting

2009-03-23 Thread Igor Escobar
Hi Angus, please, read this topic http://www.igorescobar.com/blog/2009/02/03/coding-standards/ I speak a little bit about Coding Standards. Igor Escobar systems analyst interface designer www . igorescobar . com On Mon, Mar 23, 2009 at 9:48 AM, Jason Pruim pru...@gmail.com wrote: George

Re: [PHP] Re: Multithreading in PHP

2009-03-23 Thread Igor Escobar
Great Project, Lemos. When you are thinking in show more exemples? Regards, Igor Escobar systems analyst interface designer www . igorescobar . com On Fri, Mar 20, 2009 at 3:04 AM, Manuel Lemos mle...@acm.org wrote: Hello Andrea, on 03/18/2009 06:07 AM Andrea Giammarchi said

Re: [PHP] today i found the best function I've ever seen

2009-03-23 Thread Igor Escobar
Do not try this at home... Igor Escobar systems analyst interface designer www . igorescobar . com On Sat, Mar 21, 2009 at 7:23 AM, Virgilio Quilario virgilio.quila...@gmail.com wrote: if( !function_exists('clean_sql_term') ) { function clean_sql_term($term) { return

Re: [PHP] So called PHP Expert

2009-03-23 Thread Igor Escobar
Say this: Okey man, where are the camera? it's not funny :D Regards, Igor Escobar systems analyst interface designer www . igorescobar . com On Sat, Mar 21, 2009 at 8:16 PM, abdulazeez alugo defati...@hotmail.comwrote: Date: Sat, 21 Mar 2009 10:54:56 -0400 From: danbr...@php.net

Re: [PHP] Proper code formatting

2009-03-23 Thread Igor Escobar
Im brazilian, and i understand your language, why you dont undertand my ? Regards, Igor Escobar systems analyst interface designer www . igorescobar . com On Mon, Mar 23, 2009 at 11:10 AM, abdulazeez alugo defati...@hotmail.comwrote: Date: Mon, 23 Mar 2009 09:52:21 -0300 From: titiolin

Re: [PHP] Proper code formatting

2009-03-23 Thread Igor Escobar
Ok man, I'm sorry. This post i wrote in a few days ago in my native language. I dont have time enough to write in two languagesbut who knows in the future i can do it? I'm sorry about that man,but if you like the post anyway, try something like google translator. Regards, Igor Escobar

Re: [PHP] Proper code formatting

2009-03-23 Thread Igor Escobar
Thx ab. I'm did not to be rude ;) Have a nice day. Regards, Igor Escobar systems analyst interface designer www . igorescobar . com On Mon, Mar 23, 2009 at 12:05 PM, abdulazeez alugo defati...@hotmail.comwrote: Ok man, I'm sorry. This post i wrote in a few days ago in my native

Re: [PHP] Problems with implode

2009-03-25 Thread Igor Escobar
Maybe you can reduce your code a little using the range(); ?php $list = range(12300, 12801); $pidList = implode(',', $list); mail('y...@email.dom, 'debug implode', var_export(array($pidList, $list),1)); ? it's just a sugestion... Regards, Igor Escobar systems analyst interface designer www

Re: [PHP] Fwd: A fatal error with php virtual cron

2009-03-25 Thread Igor Escobar
Maybe your problem are in the way you're calling your program by socket. If you show me this part of the code, maybe i can help you. Regards, Igor Escobar systems analyst interface designer www . igorescobar . com On Wed, Mar 25, 2009 at 4:01 PM, אלמוג בקו almog.b...@gmail.com wrote

Re: [PHP] Fwd: A fatal error with php virtual cron

2009-03-25 Thread Igor Escobar
Try the ignore_user_abort(true); Regards, Igor Escobar systems analyst interface designer www . igorescobar . com On Wed, Mar 25, 2009 at 4:21 PM, אלמוג בקו almog.b...@gmail.com wrote: This is a part of the class: private function _request() { //URL information $url

Re: [PHP] Fwd: A fatal error with php virtual cron

2009-03-25 Thread Igor Escobar
Oh, Sorry, I had not seen. Well, I don't see anything wrong in your code, but maybe...if you find in your apache config file, you can found for something similar to your problem ... Sorry can't help you. Regards, Igor Escobar systems analyst interface designer www . igorescobar . com

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Igor Escobar
When someone does that, it means the execution time between $t1 and $t2... Att, Igor Escobar systems analyst interface designer www . igorescobar . com On Mon, Mar 30, 2009 at 7:38 AM, Richard Heyes rich...@php.net wrote: 2009/3/30 Andrew Williams andrew4willi...@gmail.com: what does time

Re: [PHP] foreach and form submission.

2009-03-30 Thread Igor Escobar
Try this... $_POST = array_map('stri_tags', $_POST); Igor Escobar systems analyst interface designer www . igorescobar . com On Sat, Mar 28, 2009 at 6:21 PM, Angus Mann angusm...@pobox.com wrote: Thanks Ashley...that did the trick. After reading about the limitations of strip_tags I

Re: [PHP] Security Support

2009-03-30 Thread Igor Escobar
I agree with you Daniel Regards, Igor Escobar systems analyst interface designer www . igorescobar . com On Mon, Mar 30, 2009 at 10:58 AM, Daniel Brown danbr...@php.net wrote: On Sun, Mar 29, 2009 at 22:07, abdulazeez alugo defati...@hotmail.com wrote: Yea, dude, well me GED says I

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Igor Escobar
Okey, but you understand the purpouse of it? Igor Escobar systems analyst interface designer www . igorescobar . com On Mon, Mar 30, 2009 at 3:42 PM, haliphax halip...@gmail.com wrote: On Mon, Mar 30, 2009 at 11:37 AM, Igor Escobar titiolin...@gmail.com wrote: The people use

[PHP] Problem with header();

2009-03-30 Thread Igor Escobar
and it does not already). Please, someone have any idea what the fuck is happening? Regards, Igor Escobar systems analyst interface designer www . igorescobar . com

Re: [PHP] Problem with header();

2009-03-31 Thread Igor Escobar
I don't had the oportunity to test it yet, but today i will. Today i will make two tests: - Save the files without BOM. - If i dont have success i will disable the output buffering. Thanks to everybody for all support. Regards, Igor Escobar systems analyst interface designer www . igorescobar

[PHP] Error on .htaccess

2009-04-01 Thread Igor Escobar
$1 !-d RewriteRule ^(.*)$ load.php?$1 [QSA,L] /IfModule This server are running PHP 5.2.9 and Apache 1.3.41 (Unix). Regards, Igor Escobar systems analyst interface designer www . igorescobar . com

Re: [PHP] W3C Validator and Post Arrays

2009-04-02 Thread Igor Escobar
Put [] in the name attribute, but in ID must be unique. Regards, Igor Escobar systems analyst interface designer www . igorescobar . com On Thu, Apr 2, 2009 at 8:11 AM, Peter Ford p...@justcroft.com wrote: Peter Ford wrote: Michael A. Peters wrote: Shaun Thornburgh wrote: Hi, We

Re: [PHP] Oracle's dump to MySQL

2009-04-02 Thread Igor Escobar
I'm in the Oracle/MySQL E-mail List ? Regards, Igor Escobar systems analyst interface designer www . igorescobar . com On Thu, Apr 2, 2009 at 6:26 AM, 9el le...@phpxperts.net wrote: I found this command from one guy for importing Oracle's dump to MySQL Shell mysql -uroot db_name -vvf

Re: [PHP] XML data extraction

2009-04-02 Thread Igor Escobar
@Jessen I read your answer and... You have any article speaking about that you are saying? Regards, Igor Escobar systems analyst interface designer www . igorescobar . com On Thu, Apr 2, 2009 at 8:38 AM, Per Jessen p...@computer.org wrote: Andrew Williams wrote: Best All, How can you

Re: [PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Igor Escobar
()); }); And then you submit your form or something, the input last_buttom are with the value of the buttom you has clicked at last time. Regards, Igor Escobar systems analyst interface designer www . igorescobar . com On Thu, Apr 2, 2009 at 8:29 AM, Phpster phps...@gmail.com wrote: What about styling

Re: [PHP] Button id's - firefox and IE different ?

2009-04-02 Thread Igor Escobar
. Regards, Igor Escoar Systems Analyst Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Thu, Apr 2, 2009 at 11:01 AM, Jan G.B. ro0ot.w...@googlemail.com wrote: 2009/4/2 Igor Escobar titiolin...@gmail.com: If you don't

Re: [PHP] Button id's - firefox and IE different ?

2009-04-03 Thread Igor Escobar
form essentials and using xhtml in an html context. no reason to get personal and/or offending. bye. 2009/4/2 Igor Escobar titiolin...@gmail.com: I'm sorry, you is the master o/ shame on you. Who you think you is? everybody is here to pass something for the others and learn something

Re: [PHP] Button id's - firefox and IE different ?

2009-04-03 Thread Igor Escobar
://www.stimpco.com/carpix/arguingOnTheInternet.gif byebye 2009/4/3 Igor Escobar titiolin...@gmail.com: If you read my email you can see that i just give a solution to him and not a TIP. IF you DONT want change your form But if i were doing, i be doing by the right way...can be sure

Re: [PHP] Button id's - firefox and IE different ?

2009-04-03 Thread Igor Escobar
, 2009 at 11:40 AM, Jan G.B. ro0ot.w...@googlemail.com wrote: Is it mandatory to annoy the whole list with your crap? If you want to keep on informing me or insulting me or feel free to send it directly to me. I'll add you to my killfile in no time. get a life 2009/4/3 Igor Escobar titiolin

Re: [PHP] What is wrong with this code

2009-04-03 Thread Igor Escobar
You forgot to mention the method of the form. form action=... method=post ... /form Regards, Igor Escoar Systems Analyst Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Fri, Apr 3, 2009 at 4:08 PM, Gary

Re: [PHP] What is wrong with this code

2009-04-03 Thread Igor Escobar
Subject: Re: [PHP] What is wrong with this code Its there... Igor Escobar titiolin...@gmail.com wrote in message news:1f5251d50904031212o6fcc3e43q5c60b7ae373e9...@mail.gmail.com... You forgot to mention the method of the form. form action=... method=post ... /form Regards, Igor Escoar

Re: [PHP] Best Practices for Hiding Errors

2009-04-06 Thread Igor Escobar
Becarefull, error supression is slow. Regards, Igor Escoar Systems Analyst Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Mon, Apr 6, 2009 at 8:38 PM, Chris dmag...@gmail.com wrote: but they give the

Re: [PHP] Best Practices for Hiding Errors

2009-04-07 Thread Igor Escobar
dmag...@gmail.com wrote: Igor Escobar wrote: Becarefull, error supression is slow. If it's the only way to stop an error from showing up, what's the problem? php will still generate the warning/notice even if display_errors is disabled - which will be even slower. Plus I never said use

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-16 Thread Igor Escobar
I Agree with @stuart. Regards, Igor Escoar Systems Analyst Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Thu, Apr 16, 2009 at 6:05 AM, Stuart stut...@gmail.com wrote: 2009/4/15 Don d...@program-it.ca: I

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Igor Escobar
http://www.tech-recipes.com/rx/1489/solve-php-error-cannot-modify-header-information-headers-already-sent/ Regards, Igor Escobar Systems Analyst Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Tue, Apr 28, 2009

Re: [PHP] $_session/$_cookie trouble

2009-04-28 Thread Igor Escobar
Make sure your file isn't a UTF-8 with DOM. Regards, Igor Escobar Systems Analyst Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Tue, Apr 28, 2009 at 5:13 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote

Re: [PHP] Re: $_session/$_cookie trouble

2009-04-29 Thread Igor Escobar
A few days ago i had a problem similar to their and it was a problem with files with BOM signature... maybe its your case. Regards, Igor Escobar Systems Analyst Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar

[PHP] SQL Injection - Solution

2009-05-06 Thread Igor Escobar
$_GET = _antiSqlInjection($_GET); * * @author Igor Escobar * @email blog [at] igorescobar [dot] com * */ function _antiSqlInjection($Target){ $sanitizeRules = array('OR','FROM,'SELECT','INSERT','DELETE','WHERE','DROP TABLE','SHOW TABLES','*','--','='); foreach($Target as $key

Re: [PHP] SQL Injection - Solution

2009-05-06 Thread Igor Escobar
is relevant. Regards, Igor Escobar Systems Analyst Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Wed, May 6, 2009 at 1:14 PM, Andrew Ballard aball...@gmail.com wrote: On Wed, May 6, 2009 at 12:06 PM, Bruno Fajardo

Re: [PHP] Re: SQL Injection - Solution

2009-05-06 Thread Igor Escobar
hun...by the way I forgot to mention, I am Brazilian and here in Brazil these words are not common ... That is a recursive function and i can use array_map becouse i some cases we obtain arrays of arrays and that will generate a error. Regards, Igor Escobar Systems Analyst Interface

Re: [PHP] Re: SQL Injection - Solution

2009-05-06 Thread Igor Escobar
; } Regards, Igor Escobar Systems Analyst Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Wed, May 6, 2009 at 2:55 PM, Igor Escobar titiolin...@gmail.com wrote: hun...by the way I forgot to mention, I am Brazilian

Re: [PHP] Re: SQL Injection - Solution

2009-05-06 Thread Igor Escobar
Yeah yeah, i understood that, but, the point is... i sad previously, my function is not tied to any database. Is a generic function, i dont know who be use this, so i don't know, what is your data base so, i can't use functions like mysql_real_scape_string etc... Regards, Igor Escobar Systems

Re: [PHP] Re: SQL Injection - Solution

2009-05-07 Thread Igor Escobar
Ok guys, thanks. Regards, Igor Escobar Systems Analyst Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Thu, May 7, 2009 at 7:32 AM, Jan G.B. ro0ot.w...@googlemail.com wrote: What about declare, cast, unhex

Re: [PHP] Re: Progressbar

2009-06-25 Thread Igor Escobar
http://www.ajaxload.info/ Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) On Thu, Jun 25, 2009 at 2:03 PM, Eddie Drapkin oorza...@gmail.com wrote: On Thu, Jun 25, 2009 at 12:52 PM, Bastien

[PHP] Regex Problem

2009-07-31 Thread Igor Escobar
(DS_MEI_ACS) LIKE *'%NOME' ASD ' AS'ASD'%' *AND USUARIO = *'oaksdpokasd'asda'* ORDER BY DS_MEI_ACS ASC; SELECT * FROM TSTRENIC.MEI_ACESSO WHERE USUARIO_DATA BETWEEN *'2007-01-02'*AND *'2008-07-08'* Anyone have any idea? I need an expression which case the fields in bold. Regards, Igor Escobar

[PHP] Re: Regex Problem

2009-07-31 Thread Igor Escobar
The solution don't need to be with regex, if anyone can solve this with other way will be very helpfull . Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) On Fri, Jul 31, 2009 at 2:23 PM, Igor

Re: [PHP] Character encoding

2009-08-05 Thread Igor Escobar
($in_str); } // fixEncoding ? Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) 2009/8/5 b p...@logi.ca On 08/05/2009 07:05 AM, Sándor Tamás (HostWare Kft.) wrote: Hi, I have a mysql database

[PHP] Speed Issues PHP vs ASP.net

2009-08-25 Thread Igor Escobar
is true or false but, what are doing the PHP team about speed issues? Results like that maybe results like this can tarnish the image of language. So, what do you think about it? Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com

[PHP] SWF Manipulation with PHP

2009-10-05 Thread Igor Escobar
not have a success. Anyone have ANY idea that works? Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter)

[PHP] Bitly-PHP - A PHP Bitly API to shorten URLs, expand and more.

2010-03-24 Thread Igor Escobar
Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter)

Re: [PHP] Bitly-PHP - A PHP Bitly API to shorten URLs, expand and more.

2010-03-24 Thread Igor Escobar
Nice point. I will implement that ;) Thanks a lot! Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) On Wed, Mar 24, 2010 at 4:08 PM, Rene Veerman rene7...@gmail.com wrote: nice code, but i'd

Re: [PHP] How to redefine a function if it doesn't exist?

2010-03-30 Thread Igor Escobar
See http://br2.php.net/manual/en/function.create-function.php Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) On Tue, Mar 30, 2010 at 10:23 AM, David Otton phpm...@jawbone.freeserve.co.uk wrote

[PHP] Security Issue

2010-06-07 Thread Igor Escobar
? Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter)

Re: [PHP] Security Issue

2010-06-07 Thread Igor Escobar
I think we're getting off topic here folks... Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) On Mon, Jun 7, 2010 at 2:51 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Mon, 2010-06-07

Re: [PHP] Security Issue

2010-06-07 Thread Igor Escobar
:///externalhackscript.txt'); //my code... //my code.. I know how to fix that too. The problem is: WHERE I HAVE TO FIX THAT. Got it? Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) On Mon, Jun 7, 2010 at 2:48 PM

Re: [PHP] Security Issue

2010-06-07 Thread Igor Escobar
I'm totally agree with you Ash, I came up here to ask you guys some for light. Anything to well me to track that M%$#% F#$CK#$# and discover from where he's attacking. Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com

Re: [PHP] Security Issue

2010-06-08 Thread Igor Escobar
Hey Richard, I'll find more about this parameter allow_url_include, thank you! Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) On Mon, Jun 7, 2010 at 5:26 PM, richard gray r...@richgray.com wrote

Re: [PHP] PHP cron job optimization

2011-09-12 Thread Igor Escobar
you stop and where you have to look back to the RSS feed as well. []'s Regards, Igor Escobar *Software Engineer * + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar http://www.twitter.com/igorescobar On Sat, Sep 10, 2011 at 10:37 PM, Stuart Dallas stu...@3ft9.com wrote

Re: [PHP] PHP cron job optimization

2011-09-12 Thread Igor Escobar
Other good point is: always set a timeout connection when you're getting the RSS data to avoid your thread get stuck unnecessary. Use cURL (is much more faster then file_get_contents). Multithreading in PHP with cURL http://devzone.zend.com/article/3341 Regards, Igor Escobar *Software Engineer

Re: [PHP] PHP cron job optimization

2011-09-12 Thread Igor Escobar
@Eric ok ;) Regards, Igor Escobar *Software Engineer * + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar http://www.twitter.com/igorescobar On Mon, Sep 12, 2011 at 10:52 AM, Eric Butera eric.but...@gmail.com wrote: On Mon, Sep 12, 2011 at 9:37 AM, Igor Escobar

Re: [PHP] What would you like to see in most in a text editor?

2011-09-13 Thread Igor Escobar
+ extensible plug-ins. Regards, Igor Escobar *Software Engineer * + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar http://www.twitter.com/igorescobar On Tue, Sep 13, 2011 at 6:13 PM, Alex Nikitin niks...@gmail.com wrote: +1 on terminal. For gui-based ones, i

[PHP] Sort problem

2011-09-14 Thread Igor Escobar
[5] = Two And Half Man Season 9 ) Anyone knows how to solve this problem? Regards, Igor Escobar *Software Engineer * + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar http://www.twitter.com/igorescobar

Re: [PHP] Sort problem

2011-09-14 Thread Igor Escobar
Wow! Thank you! I completely forgot this method! Regards, Igor Escobar *Software Engineer * + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar http://www.twitter.com/igorescobar On Wed, Sep 14, 2011 at 12:02 PM, Marc Guay marc.g...@gmail.com wrote: Anyone know

[PHP] Bug?

2011-09-15 Thread Igor Escobar
Anyone can explain this? https://gist.github.com/1220404 Part of the code are in portuguese so... iguais = equal diferentes = different Regards, Igor Escobar *Software Engineer * + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar http://www.twitter.com/igorescobar

Re: [PHP] Bug?

2011-09-15 Thread Igor Escobar
I'm confused about the output of the code... very disturbed. But @*augustohphttps://gist.github.com/augustohp * already respond the question on the gist thread (in portuguese) and explained why those results. Regards, Igor Escobar *Software Engineer * + http://blog.igorescobar.com + http

[PHP] Re: Bug?

2011-09-15 Thread Igor Escobar
Thank you guys. Regards, Igor Escobar *Software Engineer * + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar http://www.twitter.com/igorescobar On Thu, Sep 15, 2011 at 6:32 PM, Shawn McKenzie nos...@mckenzies.netwrote: On 09/15/2011 04:07 PM, Igor Escobar wrote

Re: [PHP] Escaping MySQL passwords necessary when md5 is used?

2011-09-21 Thread Igor Escobar
If you're converting the input data in a md5 hash has no reason to scape it. Regards, Igor Escobar *Software Engineer * + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar http://www.twitter.com/igorescobar On Wed, Sep 21, 2011 at 2:53 PM, Dotan Cohen dotanco

Re: [PHP] How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Igor Escobar
Use this regex: if(preg_match('/[[:punct:]]/', $_POST['username']) !== 0) { // string contains other characters, write the code } The POSIX class [:punct:] means matches any punctuation and symbols in your string and that includes [!#$%'()*+,\-./:;=?@[\\\]^_`{|}~] Regards, Igor Escobar

Re: [PHP] How can I check for characters in a $_POST[] variable?

2011-09-22 Thread Igor Escobar
the regex will not match. Regards, Igor Escobar *Software Engineer * + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar http://www.twitter.com/igorescobar On Thu, Sep 22, 2011 at 10:03 AM, Igor Escobar titiolin...@gmail.comwrote: Use this regex: if(preg_match('/[[:punct

Re: [PHP] Re:

2011-09-22 Thread Igor Escobar
No problem ;) Regards, Igor Escobar *Software Engineer * + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar http://www.twitter.com/igorescobar On Thu, Sep 22, 2011 at 1:25 PM, Eric eric_justin_al...@cfl.rr.com wrote: Thanks Very much I used, preg_match('/[[:punct