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
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
, 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
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
!
--
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, 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
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
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
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
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
?
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
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
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
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
, $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
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.
Valencia
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
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
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
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
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
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
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
:
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
/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
? 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
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
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
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
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
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
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
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
,
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
(^([[: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
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
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
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
},
,$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
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
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
43 matches
Mail list logo