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 59
Search took 0.00 seconds.
Search: Posts Made By: Jay
Forum: Advanced PHP Programming 05-11-2009, 07:38 PM
Replies: 11
Views: 1,007
Posted By Jay
I fixed that.. that was a bug with my original...

I fixed that.. that was a bug with my original code, I admit that.. ;-)

But now you are free to use getInstance() or just create a new object using new.



Indeed, empty() might be perceived by the...
Forum: Advanced PHP Programming 05-11-2009, 06:40 PM
Replies: 11
Views: 1,007
Posted By Jay
Uhm.. Both of our methods return at the same...

Uhm.. Both of our methods return at the same rate.. It's just a matter of design preference :-P

And what's wrong with including a singleton method? You don't have to use it. It's there for the...
Forum: Advanced PHP Programming 05-11-2009, 05:47 PM
Replies: 11
Views: 1,007
Posted By Jay
My bad, fixed :'-(

My bad, fixed :'-(
Forum: Advanced PHP Programming 05-11-2009, 02:42 PM
Replies: 11
Views: 1,007
Posted By Jay
Hehe, I changed the getInstance...

Hehe, I changed the getInstance function..

@foobarph
There are a few PHP Twitter APIs out there, mine only adds to the bunch :-P

@CoryMathews
Lemme know if you find any irregularities.. I tested...
Forum: Advanced PHP Programming 05-10-2009, 10:14 PM
Replies: 7
Views: 937
Posted By Jay
Yep, purely preference.. Don't be lazy, just add...

Yep, purely preference.. Don't be lazy, just add the damn brackets and make it look formidable ^^



I actually benchmarked this.. I had mixed thoughts about your comment, but I was right. If you...
Forum: Advanced PHP Programming 05-10-2009, 07:49 PM
Replies: 11
Views: 1,007
Posted By Jay
Application Go Feedback on my TwitterAPI?

Hey guys, I know I haven't posted in a long time.. but I still think about you! I swear!! Okay, okay.. I forgot about you guys *!*

Anyways, I would like some feedback on my TwitterAPI. It's perfect...
Forum: Advanced PHP Programming 05-10-2009, 07:39 PM
Replies: 7
Views: 937
Posted By Jay
Howdy ;) 1. Use brackets after the object name...

Howdy ;)

1. Use brackets after the object name when creating new stuff: new object();

2. I see a lot of incorrect string concatenation -- well it's not correct, but it's also not efficient either:...
Forum: Absolute Beginners 04-29-2008, 04:32 PM
Replies: 18
Views: 1,103
Posted By Jay
What's the point of having a user system for them...

What's the point of having a user system for them then? Just make a guest-account system where they enter their "Guest Name" when they do things xD
Forum: General 12-17-2007, 08:39 PM
Replies: 12
Views: 779
Posted By Jay
mod_rewrite is not a substitute for Virtual Hosts...

mod_rewrite is not a substitute for Virtual Hosts ;)

Read: http://httpd.apache.org/docs/1.3/vhosts/
Forum: Absolute Beginners 12-17-2007, 07:00 PM
Replies: 12
Views: 830
Posted By Jay
Tanax, try it? I don't see why you don't just go...

Tanax, try it? I don't see why you don't just go through a rigorous series of trial & error..

Try the mentioned methods or your methods, then use var_dump or print_r to see the output, decide for...
Forum: Absolute Beginners 12-17-2007, 05:06 PM
Replies: 12
Views: 830
Posted By Jay
You don't need to manually iterate over the...

You don't need to manually iterate over the array, just use []


while( $thread = mysql_fetch_array( $query ) )
{
$this->threads_details[] = $thread;
}
Forum: Advanced PHP Programming 12-12-2007, 09:05 PM
Replies: 22
Views: 138,519
Posted By Jay
I wanna know how Wildhoney did his, with PHP or...

I wanna know how Wildhoney did his, with PHP or Photoshop! :-P
Forum: General 12-12-2007, 03:26 PM
Replies: 10
Views: 860
Posted By Jay
I knew it! :-D

I knew it! :-D
Forum: Tips & Tricks 12-12-2007, 12:29 PM
Replies: 16
Views: 1,470
Posted By Jay
The results on my benchmark output relatively the...

The results on my benchmark output relatively the same speed..

Also, why use { } and not [ ]? It's the same thing, [ ] looks neater :-P

The reason I want to use it.. because it's less typing ;-),...
Forum: Tips & Tricks 12-12-2007, 07:49 AM
Replies: 16
Views: 1,470
Posted By Jay
Quicker String Verification

I thought of a way to validate string length earlier today, and when I went to go benchmark it, it proved to be faster/more efficient than using strlen.

My method:

// We want strings less than or...
Forum: General 12-12-2007, 01:36 AM
Replies: 14
Views: 3,372
Posted By Jay
Hah! I use WAMP5 and PHP Designer 2008 too...

Hah! I use WAMP5 and PHP Designer 2008 too :-D

How long have you guys been using PHPD? I've been using it since it was freeware ^^
Forum: Script Giveaway 12-11-2007, 05:04 AM
Replies: 6
Views: 1,278
Posted By Jay
You can use a lot of things.. $pass = substr(...

You can use a lot of things..


$pass = substr( md5( mt_rand() ), 0, mt_rand( 6, 12 ) );
$pass = substr( uniqid( mt_rand(), true ), 0, mt_rand( 6, 12 ) );
// it goes on and on xD
Forum: Show Off 12-11-2007, 12:54 AM
Replies: 28
Views: 1,878
Posted By Jay
That could be against their agreement (if one...

That could be against their agreement (if one exists) :-D
Forum: Member Introductions 12-11-2007, 12:51 AM
Replies: 8
Hey
Views: 787
Posted By Jay
It looks like you need this community! Stay...

It looks like you need this community! Stay active, learn, and develop a new website for your company! :-D

Welcome!
Forum: The Lounge 12-11-2007, 12:49 AM
Replies: 12
Views: 922
Posted By Jay
Call me general gold-coating and the distraction...

Call me general gold-coating and the distraction dragon :-)
Forum: Absolute Beginners 12-11-2007, 12:47 AM
Replies: 13
Views: 982
Posted By Jay
I've never found a reason to use double quotes...

I've never found a reason to use double quotes yet.. have you?

Some people like to do

$foo = "Welcome, {$bar}.";


However if you have ever bench-marked the concatenation speed of that, and compare...
Forum: General 12-10-2007, 08:57 PM
Replies: 15
Views: 850
Posted By Jay
I got 100% on my second try.. only because I seen...

I got 100% on my second try.. only because I seen the answers :-P

However, 96% on the first try is still 100% in my mind ^^
Forum: Script Giveaway 12-10-2007, 08:53 PM
Replies: 6
Views: 1,278
Posted By Jay
Avoid using str_split when you don't have to.....

Avoid using str_split when you don't have to.. initializing the array yourself is a lot more efficient. str_split, and other methods that take care of initiliazing, were made for the manipulation of...
Forum: General 12-10-2007, 10:06 AM
Replies: 15
Views: 850
Posted By Jay
Your Score: 96% I guessed on two of them at the...

Your Score: 96%

I guessed on two of them at the end, got one of them wrong :-(

I had to take a second and think about the Dragonzilla one.. then it came to me :-P. Doesn't everyone know that two...
Forum: General 12-10-2007, 08:26 AM
Replies: 18
Views: 2,246
Posted By Jay
Thanks for the info! I've been waiting for the...

Thanks for the info! I've been waiting for the release :-)
Showing results 1 to 25 of 59

 

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