Home
Forums
Articles
Glossary
Awards
Register
Rules
Members
Search
Today's Posts
Mark Forums Read
Account Login
User Name
Password
Remember Me?
Latest Articles
The basic usage of PHPTAL, a XML/XHTML template library for PHP
by
awuehr
on
11-10-2008
in
Tips & Tricks
Vulnerable methods and the areas they are commonly trusted in.
by
Village Idiot
on
11-04-2008
in
Classes & Objects
Simple way to protect a form from bot
by
codefreek
on
10-23-2008
in
Basic
The Basics On: How Session Stealing Works
by
wiifanatic
on
09-12-2008
in
Security & Permissions
How to keep your forms from double posting data
by
drewbee
on
07-03-2008
in
Tips & Tricks
IRC Channel
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
Wired Flame
ClientExec
Handy PHP
PHP Kitchen
PHP Tutorials
Insane Visions
Associates
TalkPHP
>
Search Forums
»
Search Results
Showing results 1 to 24 of 24
Search took
0.03
seconds.
Search:
Posts Made By:
etoolbox
Forum:
General
05-17-2010, 11:08 PM
Replies:
8
How to list rows except first one ?
Views:
634
Posted By
etoolbox
Is this what you want? $query="select * from...
Is this what you want?
$query="select * from dle_post where $q ORDER BY id DESC limit 1, 10";
Forum:
Advanced PHP Programming
01-06-2010, 12:04 PM
Replies:
6
fatal error
Views:
1,914
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:
Advanced PHP Programming
01-06-2010, 11:55 AM
Replies:
6
fatal error
Views:
1,914
Posted By
etoolbox
No, the problem is the function has already been...
No, the problem is the function has already been declared because it's a built-in PHP function. Either use the PHP function and remove your function with the same name, or name your one something...
Forum:
Advanced PHP Programming
01-06-2010, 11:23 AM
Replies:
6
fatal error
Views:
1,914
Posted By
etoolbox
You are getting that message because there's...
You are getting that message because there's already a function called date_diff which has been declared. If you get this message, it means that
1) you have included code more than once which...
Forum:
Javascript, AJAX, E4X
12-23-2009, 02:43 AM
Replies:
1
Javascript Radio tuner
Views:
1,187
Posted By
etoolbox
You need to ask this question in a jQuery or...
You need to ask this question in a jQuery or Javascript forum.
Forum:
General
12-22-2009, 08:28 PM
Replies:
4
Get full path
Views:
724
Posted By
etoolbox
I don't know what relevance the full path of the...
I don't know what relevance the full path of the file on the user's computer has to your web application (I'm assuming that's what you are trying to do) but you can get the filename component like...
Forum:
General
12-16-2009, 01:42 AM
Replies:
1
Sorting array of folder list
Views:
674
Posted By
etoolbox
It will correctly sort the data in the $files...
It will correctly sort the data in the $files array. But you are not using the $files array to render your data as HTML so the rendered output is not sorted.
Do this instead:
while (false !==...
Forum:
Absolute Beginners
10-28-2009, 10:02 PM
Replies:
6
$_POST: Are both approaches equally good?
Views:
875
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
$_POST: Are both approaches equally good?
Views:
875
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
$_POST: Are both approaches equally good?
Views:
875
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
10-01-2009, 10:32 PM
Replies:
6
Parsing HTML
Views:
1,036
Posted By
etoolbox
Take a look at the PHP Simple HTML DOM...
Take a look at the PHP Simple HTML DOM Parser:
http://simplehtmldom.sourceforge.net/
It makes extracting information from HTML pages very easy.
Forum:
Absolute Beginners
09-28-2009, 12:13 AM
Replies:
4
Check if Website Exists?
Views:
2,680
Posted By
etoolbox
http://www.php.net/parse_url should do the trick....
http://www.php.net/parse_url should do the trick. It's a useful function but I keep forgetting its name...
Forum:
Absolute Beginners
09-27-2009, 06:52 PM
Replies:
4
Check if Website Exists?
Views:
2,680
Posted By
etoolbox
http://www.php.net/file_get_contents http://www.ph...
http://www.php.net/file_get_contents
http://www.php.net/curl
Forum:
Advanced PHP Programming
09-10-2009, 07:39 PM
Replies:
1
textarea value of FCKeditor
Views:
1,697
Posted By
etoolbox
I think this is what you...
I think this is what you want:
http://www.electrictoolbox.com/get-selected-text-from-fckeditor-instance/
and
http://www.electrictoolbox.com/get-html-from-fckeditor-instance/
Forum:
Advanced PHP Programming
06-09-2009, 02:55 AM
Replies:
6
Custom Error Messages?
Views:
677
Posted By
etoolbox
You can do something like...
You can do something like this:
@mysql_connect("localhost", "mysql_user", "mysql_password");
$error = mysql_error();
if($error) {
// do something, including outputting error, logging it...
Forum:
Absolute Beginners
03-10-2009, 10:58 PM
Replies:
10
Mysql error
Views:
1,039
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:
Absolute Beginners
03-10-2009, 09:59 PM
Replies:
10
Mysql error
Views:
1,039
Posted By
etoolbox
What field type and size is your primary key?
What field type and size is your primary key?
Forum:
General
02-24-2009, 03:35 AM
Replies:
5
pop3
Views:
505
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
pop3
Views:
505
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/
Forum:
Absolute Beginners
01-04-2009, 02:36 AM
Replies:
1
Http_use_agent
Views:
2,053
Posted By
etoolbox
Mozilla was Netscape's internal name for their...
Mozilla was Netscape's internal name for their Netscape Navigator web browser, and the Mozilla/X.Y version numbers followed their browser versions.
For whatever reason, Microsoft decided to use the...
Forum:
General
12-18-2008, 01:26 AM
Replies:
8
CSS Timestamps
Views:
1,558
Posted By
etoolbox
That's what I used to do but I found it a bit of...
That's what I used to do but I found it a bit of a hassle having multiple versions of files with different names, especially if you're doing a lot of CSS updates. I now version them after the date...
Forum:
General
12-15-2008, 12:17 AM
Replies:
8
CSS Timestamps
Views:
1,558
Posted By
etoolbox
That will set the time limit for caching, but you...
That will set the time limit for caching, but you still can't force the browser to request a new version when you change the contents of the stylesheet. This doesn't matter so much for trivial...
Forum:
General
12-12-2008, 11:25 PM
Replies:
8
CSS Timestamps
Views:
1,558
Posted By
etoolbox
But then the browser would never cache it, and...
But then the browser would never cache it, and have to download the CSS/JS file on every page request. Not really ideal. The idea with the ?value at the end of the filename is that you can control...
Forum:
General
12-12-2008, 10:20 PM
Replies:
8
CSS Timestamps
Views:
1,558
Posted By
etoolbox
CSS/JS Timestamps example
I've written about this here: http://www.electrictoolbox.com/javascript-css-file-timestamps/
You need to be wary of doing what I suggest if your site is busy though because there's overhead in...
Showing results 1 to 24 of 24
All times are GMT. The time now is
10:52 AM
.
Contact Us
-
TalkPHP - PHP Community
-
Archive
-
Top
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