TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Showing results 1 to 7 of 7
Search took 0.01 seconds.
Search: Posts Made By: etoolbox
Forum: Advanced PHP Programming 01-06-2010, 12:04 PM
Replies: 6
Views: 1,955
Posted By etoolbox
Change function date_diff($date1, $date2)...

Change
function date_diff($date1, $date2) {
to
function date_diff_some_other_name_that_doesnt_clash_with_the_built_in_function_of_the_same_name($date1, $date2) {
Forum: Absolute Beginners 10-28-2009, 10:02 PM
Replies: 6
Views: 883
Posted By etoolbox
Good point. I've also had another look at the...

Good point. I've also had another look at the docs and you can also specify what to do with collisions with the extract_type parameter. I still wouldn't use this function myself though.
Forum: Absolute Beginners 10-28-2009, 09:05 AM
Replies: 6
Views: 883
Posted By etoolbox
Funnily enough I've just read a post which talks...

Funnily enough I've just read a post which talks about SQL injection along with some examples: http://blog.tuvinh.com/top-7-php-security-blunders/

Some other useful stuff in there too.
Forum: Absolute Beginners 10-28-2009, 02:25 AM
Replies: 6
Views: 883
Posted By etoolbox
They're both equally bad from the perspective of...

They're both equally bad from the perspective of SQL injection: http://en.wikipedia.org/wiki/SQL_injection

Even if there's no intentional SQL injection your query will error out if any of the...
Forum: Absolute Beginners 03-10-2009, 10:58 PM
Replies: 10
Views: 1,048
Posted By etoolbox
My guess is it's a tinyint with a max integer...

My guess is it's a tinyint with a max integer value of 127. You cannot insert a value > 127 into this field. What MySQL "helpfully" does is to try to make it the highest value if it's not specified...
Forum: General 02-24-2009, 03:35 AM
Replies: 5
Views: 516
Posted By etoolbox
That's a good idea - I'm in the middle of writing...

That's a good idea - I'm in the middle of writing a series about getting reports from Google Analytics at the moment and I wrote that one as a supporting post, along with a whole bunch of others....
Forum: General 02-24-2009, 03:19 AM
Replies: 5
Views: 516
Posted By etoolbox
I wrote this quite recently using the PHP IMAP...

I wrote this quite recently using the PHP IMAP functions:
http://www.electrictoolbox.com/php-imap-download-email/
Showing results 1 to 7 of 7

 

All times are GMT. The time now is 04:33 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design