gt;
> Things that happen without you 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
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
recursive acronym will become
unacceptable. I think we better make the switch now, I mean on the PHP6
release.
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
and
this comment by Chris Shiflett
<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
have a candidate yet, 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
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 gene
blem. In both versions 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 Transl
enough 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://w
x27;t 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
you're going to
find what you 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
you need to do?
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 u
Windows, I suggest you to use 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
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
So, If I 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/)
mething important.
Yaswanth, take 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
;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
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
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.
Val
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:
03), but, Which 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/)
e this matter
Jurgen 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, Venez
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 Translation Team.
Valenc
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
Maas wrote:
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 on the target of your w
oogle 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
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 Document
one have a class/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.ph
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
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 u
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,
Gu
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
security issues? 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 unsu
uggested you is based on Regular Expressions. If you
want to get more information about 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($
Where is the definition 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/unsub.php
Have 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
gards,
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,$Max
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, and there
Other mistake in my last script.
Gustavo Narea wrote:
$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}/", '',
$MyOri
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
eg_replace
("^([[: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 Na
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://w
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.
Gust
]+){1,$MaxWords}",
"",$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. I
43 matches
Mail list logo