Results 11 to 20 of 20
Hybrid View
-
20th Jun 2009, 09:24 AM #1Respected DeveloperWebsite's:
PlatinumW.org NexusDDL.com HD-United.org CheckLinks.org FLVD.orgNice OOP both of you, would you do me a favour and do it like
Code:public function yay() { echo 'yay'; }
Code:public function yay(){ echo 'yay'; }
Dman Reviewed by Dman on . A Snippet from my latest project Ok so this is just an insider to a new project im working on now this project is a professional website that is built on PHP 5.1+ and will not be released under any licence and im not going to be telling you what the site is etc because i like to keep my professional work seperate to my fun work.. aka the scene so here take a look at it mysql.class.php <?php class MySql{ Rating: 5Current projects:
Megaupload Premium Multifetch Script | FF Plugin: Tinypic and Imagevenue Image Remoter
Projects in hiatus:
IPB Linkchecker Bot | VB Linkchecker Bot
-
20th Jun 2009, 09:35 AM #2MemberWebsite's:
warezxtc.comPHP Code:public function yay(){
echo 'yay';
}
-
20th Jun 2009, 10:12 AM #3Respected DeveloperWebsite's:
X4B.org
-
21st Jun 2009, 08:54 AM #4Respected DeveloperWebsite's:
PlatinumW.org NexusDDL.com HD-United.org CheckLinks.org FLVD.org@Cyber - It's what I would call improper way. Most of the professional scripts, would do it the way I pointed.
@splitice - phpbb3 uses the way I pointed. Also, if you are so concerned about speed you should stop using OOP. The way I pointed, hardly makes any difference.
@litewarez - Amen, different coders have different ways.Current projects:
Megaupload Premium Multifetch Script | FF Plugin: Tinypic and Imagevenue Image Remoter
Projects in hiatus:
IPB Linkchecker Bot | VB Linkchecker Bot
-
20th Jun 2009, 10:32 AM #5OPMemberWebsite's:
litewarez.net litewarez.com triniwarez.comi prefer to have the first brace after the ) and not on the next line.. just makes thinks easier to read. also i love using tabs to depth my code
PHP Code:static function get_downloads(){
return self::downloads(30);
}
PeaceJoin Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
20th Jun 2009, 10:36 AM #6Respected DeveloperWebsite's:
X4B.org
-
21st Jun 2009, 12:00 PM #7OPMemberWebsite's:
litewarez.net litewarez.com triniwarez.comyea becuase when i open up a code file to fix an error or change summit i like to scroll down my code and be able to read it fast, thus time savin and its just how i feel comfortable, and let me say that EVERY WAY IS CORRECT,
Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
-
21st Jun 2009, 01:00 PM #8Respected DeveloperWebsite's:
PlatinumW.org NexusDDL.com HD-United.org CheckLinks.org FLVD.orgAlso, litewarez, why not use mysqli instead of mysql?
Current projects:
Megaupload Premium Multifetch Script | FF Plugin: Tinypic and Imagevenue Image Remoter
Projects in hiatus:
IPB Linkchecker Bot | VB Linkchecker Bot
-
21st Jun 2009, 02:02 PM #9Respected DeveloperWebsite's:
X4B.org
-
21st Jun 2009, 05:17 PM #10OPMemberWebsite's:
litewarez.net litewarez.com triniwarez.comlol yea MySqli is more of a wrapper for MySql, and by using the comment functions within my own class i can create my connection between MySql and PHP more website specific,
such as the stdClass i use to return from the class and, not my webiste is built around the base functions mysql_* i just run my own premade functions witch to me thats much easier than using a pre built class thats not specific to my websiteJoin Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Snippet of the Day
By SplitIce in forum Web Development AreaReplies: 41Last Post: 26th Aug 2012, 06:09 PM -
Plz Help To Add A Php Snippet Into My DLE Index !
By JoomlaZ in forum Web Development AreaReplies: 0Last Post: 7th Jul 2011, 01:18 PM -
BWscene Project - Partners wanted - HUGE project
By ushare in forum Community CooperativeReplies: 0Last Post: 4th Mar 2011, 11:18 PM -
[C#] Tiny Web Server (snippet)
By Hyperz in forum Web Development AreaReplies: 6Last Post: 24th Jun 2010, 01:19 PM -
See real OOP (Snippet from Litewarez V2) Webmasters CP
By litewarez in forum Tutorials and GuidesReplies: 21Last Post: 19th Sep 2009, 03:59 PM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...