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 25 of 103
Search took 0.17 seconds.
Search: Posts Made By: delayedinsanity
Forum: Member Introductions 09-28-2010, 03:04 AM
Replies: 1
Views: 448
Posted By delayedinsanity
Welcome to the forums!

Welcome to the forums!
Forum: The Lounge 09-05-2010, 12:55 AM
Replies: 5
Views: 775
Posted By delayedinsanity
Haz. As in, haz cheezburger, or other forms of...

Haz. As in, haz cheezburger, or other forms of inability to speak and write actual English.

Other than that I get a crapload of Russian spam. :)
Forum: Absolute Beginners 08-28-2010, 04:54 AM
Replies: 2
Views: 544
Posted By delayedinsanity
It's called @font-face and it's already supported...

It's called @font-face and it's already supported in most modern browsers, with the exception of Exploder, which should support it properly within the next decade or two. Okay, that's a bit of a fib,...
Forum: The Lounge 08-23-2010, 05:25 PM
Replies: 6
Views: 894
Posted By delayedinsanity
Linode for VPS, hands down over the competition....

Linode for VPS, hands down over the competition. Avoid slicehost like the plague, they're full of promises and no delivery (though to be fair, whenever they make a promise they give themselves...
Forum: Absolute Beginners 07-19-2010, 07:19 PM
Replies: 3
Views: 845
Posted By delayedinsanity
Normally I would tell you to global $engine and...

Normally I would tell you to global $engine and leave it at that, but I think we're only getting a chunk of code from the greater whole here; as suggested by $this I would presume that this is taken...
Forum: General 07-01-2010, 05:39 PM
Replies: 5
Views: 1,194
Posted By delayedinsanity
You're probably going to want to check out the...

You're probably going to want to check out the .parent() and .siblings() methods, though I'm sure there are many ways to accomplish your goal. If you set up multiple divs, uls, or other elements that...
Forum: MySQL & Databases 06-22-2010, 07:07 PM
Replies: 5
Views: 665
Posted By delayedinsanity
Good to know you got it sorted; just remember,...

Good to know you got it sorted; just remember, don't be surprised if Michael Moore shows up to create a half assed documentary about your experience with corrupt databases.
Forum: General 05-30-2010, 05:32 PM
Replies: 6
Views: 686
Posted By delayedinsanity
As suggested, you might be better off learning if...

As suggested, you might be better off learning if there is an efficient way of doing this with actionscript, but if you are determined to use PHP you have two pretty straight forward options. Find...
Forum: General 05-30-2010, 05:25 PM
Replies: 3
Views: 1,112
Posted By delayedinsanity
Do you allow guests to post? Your first line of...

Do you allow guests to post? Your first line of defense should be to turn that feature off and never even consider it again if you are currently allowing it. There's no need for it, especially on a...
Forum: Absolute Beginners 03-29-2010, 06:12 PM
Replies: 3
Views: 888
Posted By delayedinsanity
For the luv of gawd, please don't forget to...

For the luv of gawd, please don't forget to verify your data before you enter it into a database. At the very VERY least you should be sanitizing it with mysql_real_escape_string();

You're...
Forum: General 03-22-2010, 05:43 PM
Replies: 8
Views: 533
Posted By delayedinsanity
Wow, that sucks. I wrote a response and then...

Wow, that sucks. I wrote a response and then restarted my computer to install SVN and poof, off into the ether it went because I forgot to post it.

Let's try again quick. Your regular expression...
Forum: General 03-18-2010, 08:04 PM
Replies: 6
Views: 646
Posted By delayedinsanity
Dinner (especially steak dinner) trumps writing...

Dinner (especially steak dinner) trumps writing regular expressions.

It also trumps logical thought process. Such as using something more appropriate for the job at hand.


// string strip_tags ( ...
Forum: Absolute Beginners 03-15-2010, 10:46 PM
Replies: 8
Views: 625
Posted By delayedinsanity
$l = array( 'one' => 'value for one', 'two' =>...

$l = array( 'one' => 'value for one', 'two' => 'value for two' );

// These both assign 'value for one' to $value
$value = $l['one'];
$value = l( 'one' );


It's just an overcomplicated method to...
Forum: General 03-10-2010, 10:37 PM
Replies: 4
Views: 508
Posted By delayedinsanity
You might have to elaborate on what you're trying...

You might have to elaborate on what you're trying to do - Tony's solution will work if you want to run two functions on the same content; most functions can easily be nested since they return results...
Forum: General 03-10-2010, 06:27 AM
Replies: 5
Views: 575
Posted By delayedinsanity
Usually I write all my comments as, well,...

Usually I write all my comments as, well, comments, but I'll go over a few things and just plaster the code below for ya.

- First of all, not sure if the code you pasted is what you're actually...
Forum: Absolute Beginners 02-28-2010, 07:39 PM
Replies: 3
Views: 638
Posted By delayedinsanity
I hope you don't mind me cross posting this back...

I hope you don't mind me cross posting this back into the forums, but it's useful for others to see the problem and possible solutions.

You can use a WHERE clause in a show tables statement, however...
Forum: Absolute Beginners 02-06-2010, 08:10 AM
Replies: 6
Views: 666
Posted By delayedinsanity
The reason it's not acting like the first example...

The reason it's not acting like the first example is because you're not assigning the result of ceil().


$var = 3.14;
echo ceil( $var ); // This just returns the result to STDOUT
$var = ceil( $var...
Forum: General 01-25-2010, 02:21 AM
Replies: 8
Views: 703
Posted By delayedinsanity
It's in the wrong spot. Regular expressions use...

It's in the wrong spot.

Regular expressions use delimiters; characters that tell the compiler where the expression starts, and where it ends. Common delimeters are /, ~ or #, though it can...
Forum: Member Introductions 01-02-2010, 04:03 AM
Replies: 8
Views: 878
Posted By delayedinsanity
If you're looking to join an open source project,...

If you're looking to join an open source project, start one, or just be a member of a large community, look at who you're hosting with. Wordpress is a HUGE open source project, and there are a...
Forum: General 12-29-2009, 09:14 PM
Replies: 3
Views: 613
Posted By delayedinsanity
It probably uses what's called a slug, and...

It probably uses what's called a slug, and descriptive name. The descriptive name can be anything, "General Information and Your Toilet" whereas the slug would be url readable (and unique), such as...
Forum: General 12-24-2009, 08:16 AM
Replies: 5
Views: 768
Posted By delayedinsanity
Just don't use it at all. You don't need it in...

Just don't use it at all. You don't need it in there - and chances are 99% of the script kiddiez out there who will attempt to break into your system won't have a clue what to do with a salted sha1,...
Forum: General 12-24-2009, 07:49 AM
Replies: 5
Views: 768
Posted By delayedinsanity
You should avoid putting the password into plain...

You should avoid putting the password into plain sight, especially when it's ultimately unnecessary - leave any critical information such as that (hashed or otherwise) stored behind a lock and key,...
Forum: Advanced PHP Programming 11-10-2009, 02:10 AM
Replies: 4
Views: 734
Posted By delayedinsanity
If it's a dedicated file server, what about using...

If it's a dedicated file server, what about using FTP?

PHP FTP (http://php.net/manual/en/book.ftp.php)
Forum: Absolute Beginners 11-01-2009, 09:11 PM
Replies: 5
Views: 851
Posted By delayedinsanity
Your regexp is far too greedy, if there's...

Your regexp is far too greedy, if there's multiple occurences, you might find that it strips them all out and everything in between. Something like the following (untested) may work;


$the_content =...
Forum: Absolute Beginners 10-29-2009, 02:19 AM
Replies: 6
Views: 868
Posted By delayedinsanity
Extract is a handy little fella in some...

Extract is a handy little fella in some situations, no sense in ruling it out; I've written numerous functions in the past where I wanted/needed to return multiple arrays of data. Nest the arrays,...
Showing results 1 to 25 of 103

 

All times are GMT. The time now is 02:09 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