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 wrote: > George Larso

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 wrote: > > Hello Andrea, > > on 03/18/2009 06:07 AM Andrea Giammarchi sa

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') ) > > { >

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 wrote: > > > > > > Date: Sat, 21 Mar 2009 10:54:56 -0

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 wrote: > > > > Date: Mon, 23 Mar 2009 09:52:21 -0300 > > From:

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

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 wrote: > > > Ok man, I'm sorry. > > This post i wrote in a few days ago in my

Re: [PHP] Problems with implode

2009-03-25 Thread Igor Escobar
Maybe you can reduce your code a little using the range(); it's just a sugestion... Regards, Igor Escobar systems analyst & interface designer www . igorescobar . com On Wed, Mar 25, 2009 at 4:42 AM, Toke Herkild wrote: > Okay, tested in the following manner: > > for ($i

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, אלמוג בקו wrote: > Hello, >

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, אלמוג בקו wrote: > This is a part of the class: > > private function _request() { > //URL information >

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

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 wrote: > 2009/3/30 Andrew Williams : > > 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 wrote: > Thanks Ashley...that did the trick. > After reading about the limitations of strip_ta

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 wrote: > On Sun, Mar 29, 2009 at 22:07, abdulazeez alugo > wrote: > >> Yea, dude, well me GED says I kin git it

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 wrote: > On Mon, Mar 30, 2009 at 11:37 AM, Igor Escobar > wrote: > > The people use that to measure perform

[PHP] Problem with header();

2009-03-30 Thread Igor Escobar
rs only in my notebook (recently that I migrate to linux 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 des

[PHP] Error on .htaccess

2009-04-01 Thread Igor Escobar
ewriteRule ^(.*)$ load.php?$1 [QSA,L] 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 wrote: > Peter Ford wrote: > > Michael A. Peters wrote: > >> Shaun Thornburgh wrote: &g

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 wrote: > I found this command from one guy for importing Oracle's dump to MySQL > > Shell> mysql -uroot db_n

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 wrote: > Andrew Williams wrote: > > > Best All, > >

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

2009-04-02 Thread Igor Escobar
uery) sems like this $("input[name='btid']").click(function() { $('#last_buttom').attr('value', $(this).val()); }); And then you submit your form or something, the input "last_buttom" are with the value of the buttom you has clicked at last

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

2009-04-02 Thread Igor Escobar
mething. Have a nice day. 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. wrote: > 2009/4/2 Igor Escobar : > > If you don't

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

2009-04-03 Thread Igor Escobar
using JSCRIPT > to have form essentials and using xhtml in an html context. > no reason to get personal and/or offending. > > bye. > > > 2009/4/2 Igor Escobar : > > I'm sorry, you is the master o/ > > > shame on you. > > > Who you think you is? every

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

2009-04-03 Thread Igor Escobar
/carpix/arguingOnTheInternet.gif > > byebye > > 2009/4/3 Igor Escobar : > > 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

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

2009-04-03 Thread Igor Escobar
pr 3, 2009 at 11:40 AM, Jan G.B. 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 Escoba

Re: [PHP] What is wrong with this code

2009-04-03 Thread Igor Escobar
You forgot to mention the "method" of the 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 wrote: > This is driving me nuts. I

Re: [PHP] What is wrong with this code

2009-04-03 Thread Igor Escobar
p...@ptd.net] > Sent: Friday, April 03, 2009 3:14 PM > To: php-general@lists.php.net > Subject: Re: [PHP] What is wrong with this code > > Its there... > > > "Igor Escobar" wrote in message > news:1f5251d50904031212o6fcc3e43q5c60b7ae373e9...@mail.gmail.co

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 wrote: > > but they give the following warning: >

Re: [PHP] Best Practices for Hiding Errors

2009-04-07 Thread Igor Escobar
PM, Chris 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 - whi

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 wrote: > 2009/4/15 Don : > > I have some code in my index.php fil

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,

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 wrote: > On Tue, 2009

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

Re: [PHP] SQL Injection - Solution

2009-05-06 Thread Igor Escobar
ly 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 wrote: > On Wed, May 6, 2009 at 12:06 PM, Bruno Faja

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

Re: [PHP] Re: SQL Injection - Solution

2009-05-06 Thread Igor Escobar
t;",$value))) : str_ireplace(trim($sanitizeRules,"",$value)); endif; endforeach; return $arraSanitized; } Regards, Igor Escobar Systems Analyst & Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igor

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 Escob

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. wrote: > What about declare, cast, unhex, exec etc.? > Y

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 wrote: > On Thu, Jun 25, 2009 at 12:52 PM, Bastien Koert wrote:

[PHP] Regex Problem

2009-07-31 Thread Igor Escobar
ESSO WHERE UPPER(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 i

[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

Re: [PHP] Character encoding

2009-08-05 Thread Igor Escobar
Build some script to convert to these comments. Check this out: Regards, Igor Escobar Systems Analyst & Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) 2009/8/5 b > On 08/05/2009 07:05 AM, Sándor Tamás (HostWare Kft.

[PHP] Speed Issues PHP vs ASP.net

2009-08-25 Thread Igor Escobar
rk 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.igores

[PHP] SWF Manipulation with PHP

2009-10-05 Thread Igor Escobar
ibswf too but i 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
rescobar/Bitly-PHP> 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 wrote: > nice code, but i'd like

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

[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
try to trace your browsing history!* * *Regards, Igor Escobar Systems Analyst & Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) On Mon, Jun 7, 2010 at 10:03 AM, Ashley Sheridan wrote: > On Mon, 2010-06-07 at 09:54 -0300, Igor Escob

Re: [PHP] Security Issue

2010-06-07 Thread Igor Escobar
This was my fear. Regards, Igor Escobar Systems Analyst & Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) On Mon, Jun 7, 2010 at 10:05 AM, Peter Lind wrote: > On 7 June 2010 14:54, Igor Escobar wrote: > > Hi Folks! >

Re: [PHP] Security Issue

2010-06-07 Thread Igor Escobar
is not giving much result. Thanks for all support! Regards, Igor Escobar Systems Analyst & Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) On Mon, Jun 7, 2010 at 10:08 AM, Phpster wrote: > > On Jun 7, 2010, at 8:54 AM, Ig

Re: [PHP] Security Issue

2010-06-07 Thread Igor Escobar
It's not a SQL Injection or XSS problem, Michael. It's a PHP Injection problem. I know how fix that but the web site is very very huge, have lots and lots of partners and i'm have a bug difficult do identify the focus of the problem. Got it? Regards, Igor Escobar Systems Anal

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 wrote: > On Mon, 2010-06-07 at

Re: [PHP] Security Issue

2010-06-07 Thread Igor Escobar
;http:///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, 2

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

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 wrote: &

Re: [PHP] PHP cron job optimization

2011-09-12 Thread Igor Escobar
where 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 wro

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 Eng

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 wrote: > On Mon, Sep 12, 2011 at 9:37 AM, Igor Escobar > wrot

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 wrote: > +1 on terminal. > > For gui-based ones, i

[PHP] Sort problem

2011-09-14 Thread Igor Escobar
Man Season 3 [4] => Two And Half Man Season 4 [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 wrote: > > Anyone know a

[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 @*augustohp<https://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

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

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 [!"#$%&'()*+,\-./:;<=>

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

2011-09-22 Thread Igor Escobar
fferent of A-Za-z0-9 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 wrote: > Use this regex: > i

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 wrote: > Thanks Very much I used, > preg_match('/[[:punct:]]/&#