Re: [PHP] What's wrong the __autoload()?

2008-03-13 Thread Gustavo Narea
explicitly causing them (ie require() et al) can lead to confusion. For example a junior developer who doesn't know of its existence and is new to a job is less likely to admit ignorance and ask how a class is being defined when __autoload() is being used. -- Gustavo Narea. http://gustavonarea.net

[PHP] What's wrong the __autoload()?

2008-03-12 Thread Gustavo Narea
Hello all, I'm wondering what's wrong with the use of __autoload(), since I see that projects like the Zend Framework don't use it and prefer to require_once each required file. Thanks in advance. -- Gustavo Narea. http://gustavonarea.net/ Get GNU/Linux! http://www.getgnulinux.org/ -- PHP

[PHP] PHP !== Hypertext Pre-Processor

2006-02-15 Thread Gustavo Narea
, but I do believe it definitely has to change. By the way, if it's going to change: Please, no more recursive acronyms. Cheers! -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] PHP !== Hypertext Pre-Processor

2006-02-15 Thread Gustavo Narea
http://blogs.phparch.com/mt/?p=125#comment-7459. They aren't saying this acronym has to change, but it could be better... So, why don't we change it? That's what I mean. In the end, as I already said, PHP is much more than a Hypertext Preprocessor. Cheers. -- Gustavo Narea. PHP

Re: [PHP] PHP !== Hypertext Pre-Processor

2006-02-15 Thread Gustavo Narea
! -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] APD generates no output

2006-02-07 Thread Gustavo Narea
Hello, Jochem. Thanks for your response. I just filled a bug report because I realized there are many bugs like the one I have, specially with PHP v5.0.3. Cheers! Jochem Maas wrote: Gustavo Narea wrote: Hello everybody. I'm trying to use the Advanced PHP Debugger (APD), but it generates

[PHP] APD generates no output

2006-02-06 Thread Gustavo Narea
of PHP I was using APD v1.0.1. The fact that I had downgraded to v5.0.3 has nothing to do with this problem (IMO), as I deleted all of the files in the previous PHP directory prior to install PHP 5.0.3. TIA! Cheers. -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia

[PHP] Re: security of uploaded gif files

2006-01-23 Thread Gustavo Narea
execute it. More importantly though, you should be checking the file extension of uploaded files to make sure it is only a .gif I can make a javascript file with a .gif extension, actually. Take a look at exif_imagetype(). Regards. -- Gustavo Narea. PHP Documentation - Spanish Translation Team

Re: [PHP] Re: security of uploaded gif files

2006-01-23 Thread Gustavo Narea
to know whether it's an image and has a reasonable size. What if there is no .gif extension? Rename the file. I think the last step makes no sense. Regards. -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net

Re: [PHP] how to create a php5 extensions on C/C++, reflecting php Class Api's ?

2005-12-27 Thread Gustavo Narea
are looking for. Saludos! -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Is it possible to use header() to POST form data?

2005-12-15 Thread Gustavo Narea
? Are you working with wrappers? If so, take a look at the 2nd example in the streams documentation http://php.net/stream. Cheers. -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] What software do you use for writing PHP?

2005-12-06 Thread Gustavo Narea
Macromedia Dreamweaver. Cheers. -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: GD Graph tutorial?

2005-12-05 Thread Gustavo Narea
Hello, Ashley. Ashley M. Kirchner wrote: Does anyone know of a good GD tutorial for creating graphs? I like this one: http://www.nyphp.org/content/presentations/GDintro/ Regards. -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing

Re: [PHP] page duration tracking

2005-12-01 Thread Gustavo Narea
must track the duration of time each individual visitor spent on a specific web page, I'd use the javascript method that Mike mentioned. Cheers. -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] SQL Password() function

2005-11-27 Thread Gustavo Narea
a look at: http://phpsec.org/articles/2005/password-hashing.html Regards. -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: SQL Password() function

2005-11-26 Thread Gustavo Narea
, $mysql_pass); ? You don't need a MySQL connection. Happy weekend. -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Recommendations for the Zend PHP Certification

2005-11-14 Thread Gustavo Narea
Hi, Richard. Richard Lynch wrote: On Sat, November 12, 2005 10:29 am, Gustavo Narea wrote: - AFAIK, there are 3 versions of the Standard SQL (1993, 1999 and 2003), but, Which one am I going to need for this test? I think it would be best to focus on SQL 92 because: A) It's unlikely

Re: [PHP] Recommendations for the Zend PHP Certification

2005-11-13 Thread Gustavo Narea
Hello. Alright, I get it. Thanks! Marco Kaiser wrote: Hi, i mean http://www.phparch.com/cert/ :) -- Marco Aren't they the same books? I mean, I see the same authors, the same titles and the same pictures. -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia

[PHP] Recommendations for the Zend PHP Certification

2005-11-12 Thread Gustavo Narea
one am I going to need for this test? - Should I learn to use another HTTP server? Do you have any other suggestion? Thanks in advanced! Cheers. -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Recommendations for the Zend PHP Certification

2005-11-12 Thread Gustavo Narea
the Zend book. Aren't they the same books? I mean, I see the same authors, the same titles and the same pictures. Cheers. -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: security code

2005-11-11 Thread Gustavo Narea
Hello. Richard Lynch wrote: On Thu, November 10, 2005 10:45 am, Gustavo Narea wrote: CAPTCHA tests are indispensables. The problem comes when you *only* use visual tests (such as visual turing numbers). If you need CAPTCHA tests, you may use them both visuals and audibles. This is a good

Re: [PHP] Re: security code

2005-11-11 Thread Gustavo Narea
in Venezuela, It isn't so. Another very good reason is that even normal users have a not-so-good experience with the damn things. I agree with you. On the other hand, in many sites, visual turing numbers are very hard to understand. Regards. -- Gustavo Narea. PHP Documentation - Spanish

Re: [PHP] Cannot find bison and Flex even when those are installed

2005-11-11 Thread Gustavo Narea
Campforts Lichtaartsebaan 58 2460 Kasterlee Tel: 0496/60.25.75 http://www.wandelmee.be -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General

Re: [PHP] undefined index and php

2005-11-10 Thread Gustavo Narea
Hello. [EMAIL PROTECTED] wrote: why the question mark and the colon? What is the long hang eqivalent. That's the Ternary operator. Whether you want to get further information, go to: http://php.net/manual/en/language.operators.comparison.php Regards. -- Gustavo Narea. PHP Documentation

Re: [PHP] java .vs php

2005-11-10 Thread Gustavo Narea
uses Python. http://www.python.org/Quotes.html -- Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: security code

2005-11-10 Thread Gustavo Narea
: rant mode=troll sarcasm=true anger=+3 replies=duck this email contains swearing so that the sensitive amongst you will be spared what I have to say (assuming you have a stupid 'Im a sensitive person, don't expose me to bad language' mail filter) Gustavo Narea wrote: Hello, Clive. Depending

[PHP] Re: security code

2005-11-09 Thread Gustavo Narea
/function to generate those security code images. Yhe ones that you see on website that you must enter to submit a form thanks clive -- Best regards, Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net

[PHP] Re: Security Issues - Where to look?

2005-11-08 Thread Gustavo Narea
? I'm looking for some guidlines on ensuring that my site is secure from malicious hackers. Thanks, Richard -- Best regards, Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: Security Issues - Where to look?

2005-11-08 Thread Gustavo Narea
Hello, Chris. I will take into account what you said. It is right what you mentioned regarding that example. We have to take into account that cookies can be stolen. Thanks for the URLs, I will visit them. Cheers. Chris Shiflett wrote: Gustavo Narea wrote: By the way, I liked the link

[PHP] Re: Security Issues - Where to look?

2005-11-08 Thread Gustavo Narea
Hello. I found a document titled A Guide to Building Secure Web Applications http://www.cgisecurity.com/owasp/html/index.html while I was reading one of the documents you suggested us, and I would like to know what do you think about it? -- Best regards, Gustavo Narea. PHP Documentation

Re: [PHP] Re: Security Issues - Where to look?

2005-11-08 Thread Gustavo Narea
Thanks for the explanation, Richard. I'll definitely take it into account. So, let's distrust *everything*. Best regards. Richard Lynch wrote: On Tue, November 8, 2005 9:43 am, Gustavo Narea wrote: *Distrust everything coming from your users, even their user agents

Re: [PHP] Re: Security Issues - Where to look?

2005-11-08 Thread Gustavo Narea
Thanks once again, Chris. I must read that guide. Have a nice day! Chris Shiflett wrote: Gustavo Narea wrote: I found a document titled A Guide to Building Secure Web Applications http://www.cgisecurity.com/owasp/html/index.html while I was reading one of the documents you suggested us

Re: [PHP] hotmail don't accept this message function any more!!

2005-11-01 Thread Gustavo Narea
you searched for that message into the junk mail folder? -- Best regards, Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: str_ireplace problems.

2005-11-01 Thread Gustavo Narea
of $step2staff? On the other hand, What's the problem? What is what you get? Do you get any error message? -- Best regards, Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: str_ireplace problems.

2005-11-01 Thread Gustavo Narea
them, I suggest you: http://www.regular-expressions.info PS: If get_magic_quotes_gpc() returns true, you should use stripslashes() too: $step1 = ereg_replace(trim(^[:alpha:]),, stripslashes($_POST['path'])); -- Best regards, Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia

Re: [PHP] Re: Substr by words

2005-10-31 Thread Gustavo Narea
, Gustavo Narea. PHP Documentation - Spanish Translation Team. Valencia, Venezuela. Marcus Bointon wrote: On 31 Oct 2005, at 03:29, Gustavo Narea wrote: I think It is OK what I said about the caret, but what we need to change is the position of \W*: Your suggestion: /(\b\w+\b\W*){1,$MaxWords

[PHP] Re: Substr by words

2005-10-30 Thread Gustavo Narea
(^([[:space:]]*[^[:space:][:cntrl:]]+){1,$MaxWords}, ,$MyOriginalString); echo substr( $MyOriginalString, 0, ($replacement) ? -strlen($replacement) : strlen($MyOriginalString)); ? Four lines. BTW: Did I mention that I was forgetful? ;-) Best regards, Gustavo Narea. Gustavo Narea wrote: Hello

Re: [PHP] Re: Substr by words

2005-10-30 Thread Gustavo Narea
Hello. Marcus Bointon wrote: On 30 Oct 2005, at 06:22, Gustavo Narea wrote: You could get the regex to do the search and the extraction in one go: $MyOriginalString = This is my original string.\nWhat do you think about this script?; $MaxWords = 6; // How many words are needed? $matches

Re: [PHP] Re: Substr by words

2005-10-30 Thread Gustavo Narea
Other mistake in my last script. Gustavo Narea wrote: ?php $MyOriginalString = This is my original string.\nWhat do you think about this script?; $MaxWords = 6; // How many words are needed? $replacement = preg_match(/^(\W*\b\w+\b){1,$MaxWords}/, '', $MyOriginalString); $result = substr

Re: [PHP] Re: Substr by words

2005-10-30 Thread Gustavo Narea
Hello, Marcus. Marcus Bointon wrote: On 30 Oct 2005, at 15:35, Gustavo Narea wrote: I think that trim($matches[0]) will return the whole string with no change. No, it will return the entire matching pattern, not just the sub- matches. I added the trim to remove any leading space

[PHP] Re: Substr by words

2005-10-29 Thread Gustavo Narea
}, ,$MyOriginalString))); ? Only 3 lines. You have to change $MaxWords to 50 if that's what you need. Best regards, Gustavo Narea. Danny wrote: Hi, I need to extract 50 words more or less from a description field. How can i do that?. Substr, cuts the words. Is there any other way to that, without

[PHP] Re: Substr by words

2005-10-29 Thread Gustavo Narea
If forgot to say that It counts ($MaxWords) words, It doesn't matter if they're separated by simple spaces, line feeds (Unix, dos or mac), tabs, among others. On the other hand, you won't have any problem if you use non-English characters. Best regards, Gustavo Narea. Gustavo Narea wrote

[PHP] Re: Substr by words

2005-10-29 Thread Gustavo Narea
Gustavo Narea wrote: If forgot to say that It counts ($MaxWords) words, It doesn't matter if they're separated by simple spaces, line feeds (Unix, dos or mac), tabs, And punctuation marks. Sorry, I'm very forgetful tonight! Cheers. -- PHP General Mailing List (http://www.php.net