Jump to content

448191

Staff Alumni
  • Posts

    3,544
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 448191

  1. Time to retire (delete) this sticky.
  2. My apologies, clearly Vim has a plenitude of features I'm not utilizing. But as far as auto-complete goes, I find it indispensable. But perhaps my ability to memorize an absurd number of API's is sub-par
  3. Wow, I'm suprised Dreamweaver got this many votes, even if the topic is almost 4 years old. Didn't even realize they still make it. From my experience you're better off with Vim (which I do use for quick edits of config files but find lacking as an IDE). That said, the single feature I find most useful in an IDE is code completion. I suffer from what we Dutch refer to as "geheugen als een goudvis", which compares one's short term memory to the proposed 3 seconds of retention a goldfish possesses. Unfortunately this is also the feature that provides the biggest challenge to IDE developers in terms of performance when library size approaches he gigabyte. I've tried quite a few. PHPStorm seems perform best right now. ZSfE was awesome featurewise, I might give it another try to see if it performs better now
  4. The polls probably needs Aptana as an option. I know at least three people that use that.
  5. I'll take that one. Expect a "Getting started with TDD" within a couple of weeks. The examples will be using PHPUnit though.
  6. Conditions for Testing Requests In order to post in this forum, the following conditions must be met: You must have at least 10 posts, from posting in other forums on this site. Do not "spam" your way to 10 posts just to post here. You are only allowed to request testing of your own website or websites you are otherwise authorized to manage. In order to verify this you must: Create a regular .txt file containing a full URL link to your profile here on PHP Freaks (see details below), and place it on the same domain(s) as your script(s). The text file must be in the root directory of your site. Example: URL: http://www.yoursite.com/phpfreaks.txt Text in file: http://forums.phpfreaks.com/user/1-philip/ (but to your profile link) You must then notify us with the URL of the .txt file by placing a link to it in your post or report your post to moderator with the link in the report details. Profile Link In my experience, the one thing that people fail to do most of the time, is properly post a link to their profile in the text file. The following is not a valid profile link: That link only works for you, based off of the main menu link and your browser's session. Below is what a valid profile link looks like: You can easily get your profile link by: Clicking on your own name in one of your own posts Clicking on your own name at the top right of the screen Putting in a test post and hitting the preview button and getting the URL generated from the link. For example, @.josh will generate @.josh. Going to Members > Search For Members and searching for yourself and clicking on that link. Failure to follow these rules and instructions may result in actions from locking or deleting your topic or even having your account banned depending on the severity and at the discretion of the staff member handling the incident. There are no exceptions and this rule is in effect of immediately meaning that all topics created after this topic will have to abide by this rule. Waiting for Approval It generally takes 1-3 days for someone to approve your post. Normally we will not respond if you are not approved, because of failing to follow the instructions above (we will usually respond if it's for some other reason). If after 3 days your post has not been approved and you have not received a response, you can resubmit your site, however, more than likely you were not approved because you failed to follow the rules/instructions! So please re-read the rules and follow the instructions carefully. Someone posted my site! If someone posted your site here without your authorization then you may use the report to moderator link within the topic and verify your status as owner or representative of the website in the same way as outlined above. Note that we cannot be held responsible for any damage that may have occurred because of this! If someone had the ability to create the text file on your site to prove ownership/access, they hacked or otherwise gained access to your site independently and prior to whatever thread you are reporting!
  7. Apparently these slides are from a presentation at a MySQL conference: http://en.oreilly.com/mysql2008/public/schedule/detail/1639 I have removed the uploaded PDF from my site, because the O' Reilly site doesn't specify any type of license.
  8. Has nothing to do with the mysql extension not being bundled. If you manage your own server, ensure that the server is running (probably it is) on the local machine, and make sure right socket file is used. This should help with that: http://www.tech-recipes.com/mysql_tips762.html If not, contact your host.
  9. Hey C_V, c'mon give us Franky back, we wanna play some more..
  10. ArrayAccess is an SPL interface, it's build-in into 5.1+ Edit: Don't use this code as an example to learn OOP, PLEASE. It's structure is at fault, I just threw something together quickly. Consider that the disclaimer.
  11. Don't worry about it, it's meant to be a little jibberish, right? It's not like what I added is "solid code", by any standard!
  12. You cheated a little C_V... You made $h->meet('Jesus'); into $h->meet($_POST['name']); ! The way I understand your rules, we can only add to the scenario, not replace anything. Anyway, you're the boss, so I guess we're keeping it.. As for using php5, I don't think it would be a real Frankenstein if it wasn't a complete and utter chaos of different styles and fashions. Meaning if you can't do php5, you can still add. You won't be able to run Franky unless you have php5 installed, obviously, but I will be happy to display the fruits of the works of those that don't! Speaking of chaos, I added some intestants to Franky starting with his stomach. Turns out Franky has quite the appetite: LOL, "Web 2.0 giraffes"? Chaos code: <?php $relatives = array('mother', 'father', 'sister', 'brother','uncle', 'auntie'); $verbs = array('dislikes', 'sits on', 'licks', 'sucks', 'looks like', 'does', 'discusses the pros and cons of Web 2.0', 'loves', 'caresses', 'slides onto', 'hates', 'kisses', 'learns PHP with', 'has an AJAX interface with'); $animals = array('dogs', 'cats', 'horses', 'birds', 'giraffes', 'elephants', 'hippos', 'hamsters', 'gerbils', 'monkeys'); function insult($secondary_person) { global $relatives; global $verbs; global $animals; $r_size = sizeof($relatives) - 1; $v_size = sizeof($verbs) - 1; $a_size = sizeof($animals) - 1; $r_rand = rand(0, $r_size); $v_rand1 = rand(0, $v_size); $v_rand2 = rand(0, $v_size); $a_rand = rand(0, $a_size); $insult = "Your {$relatives[$r_rand]} {$verbs[$v_rand1]} $secondary_person and {$verbs[$v_rand1]} {$animals[$a_rand]}"; return $insult; } class Greeting { function Greeting() { echo "Hello World!"; } } interface Singleton { public static function getInstance(); } interface Actor { public function speak(); public function meet($person); public function eat($animalArr); } abstract class Intestant_Abstract { abstract public function input($input); abstract public function output(); } class Stomach extends Intestant_Abstract implements Singleton { private static $instance; public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new self; } return self::$instance; } private function __construct(){ } public $kilosOfFood; public function input($input){ $this->kilosOfFood += strlen($input); echo 'Franky liky to eats '.$input.'..<br />'; if($this->kilosOfFood > (strlen(implode('',$GLOBALS['animals']))/1.5)){ $this->output(); } } public function output(){ echo '<br />Bhaarf..<br />'; } } class Guts implements ArrayAccess, Singleton { private static $instance; public static function getInstance() { if (!isset(self::$instance)) { self::$instance = new self; } return self::$instance; } private function __construct(){ } private $intestants; public function add($name){ $this->intestants[$name] = call_user_func(array($name, 'getInstance')); } public function remove($key) { unset($this->intestants[$key]); } public function offsetExists($offset) { return isset($this->intestants[$offset]); } public function offsetGet($offset) { return $this->intestants[$offset]; } public function offsetSet($name, $value) { $this->add($name); } public function offsetUnset($offset) { unset($this->intestants[$offset]); } } class Franky implements Actor { private $person; public function meet($person){ $this->person = $person; } function eat($animals){ shuffle($animals); $guts = Guts::getInstance(); $guts->add('Stomach'); $guts['Stomach']->input(next($animals)); } public function speak($insult_them = false){ if($this->person == null){ $greet = new Greeting(); echo '<br />'; } else { echo 'Hello '.$this->person.'!<br />'; if ($insult_them) { echo insult($this->person) . '<br />'; } } } } if (isset($_POST['name'])) { $h = new Franky; $h->speak(); $h->meet($_POST['name']); $h->speak(true); $h->eat($animals); $h->eat($animals); $h->eat($animals); $h->eat($animals); $h->eat($animals); $h->eat($animals); $h->eat($animals); $h->eat($animals); } else { echo <<<FORMINT What's your best friend's name?<br/> <form action = '{$_SERVER['PHP_SELF']}' method = 'post'> <input type = 'text' name = 'name' size = '10'> <input type = 'submit' value = 'submit'> </form> FORMINT; } ?>
  13. Ouch, franky learned some new phrases..
  14. <?php class Greeting { function Greeting() { echo "Hello World!"; } } interface Actor { public function speak(); public function meet($person); } class Franky implements Actor { private $person; public function meet($person){ $this->person = $person; } public function speak(){ if($this->person == null){ $greet = new Greeting(); echo '<br />'; } else { echo 'Hello '.$this->person.'!<br />'; } } } $h = new Franky; $h->speak(); $h->meet('Jesus'); $h->speak(); ?> Ha! I've forced php5 upon you. Franky is born..
  15. I read the original before. It's up there.
  16. Application design General: The Object Management Group (OMG) Zend Developer Zone ZF: Enabling Hierarchical URI Web Application Development - A Guide to Success PHP Hacks Chapter 6: Application Design PHP Application Framework Design Tutorial PHP Riot's Application Design Section The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!) Design strategies: Philosophy of Interface-Driven Design Jimmy Nilsson on Domain Driven Design Domain-Driven Design patterns Introduction to Test Driven Design Unified Modeling Language: UML Homepage IBM UML Resource Center Visual Paradigm UML Resources Center Visual Case Tool - UML Tutorial Practical UML™: A Hands-On Introduction for Developers OO/UML: Aggregation versus Composition UML software: Visual Paradigm for UML Community Edition Umbrello UML Modeller ArgoUML Violet UML editor XMI to PHP PHP to XMI PHP5 related: PHP 5 and Design Patterns: An Introduction PHP 5 Advanced OOP and Design Patterns PHP 5 OOP: Delegation and Custom Exceptions Sams: Object-Oriented Programming Through Design Patterns Sams: Design Patterns and PHP 5 Sams: Polymorphism, Design Patterns, and PHP Programming Sams: Overloading and Object-Oriented Programming with PHP 5 Standard PHP Library (SPL) Functions Advanced OOP with SPL in PHP 5 Building a simple MVC system with PHP5 Controlling Online Forms with Builder Objects in PHP 5 MVC: Planet MVC Learning from the CakePHP source code - Part I Understanding MVC in PHP Model View Controller Illustrated Model View Controller Overview The sad story of Model View Controller Yes, it's from Microsoft, but hey.. Design Patterns: patternshare.org Hello World in Patterns Patterns for PHP Registry Pattern Singleton Pattern Strategy Patterns Observer Pattern Factory Method Adapters and proxy patterns Iterator Pattern Decorator Pattern Command Pattern Custom template engines: Beyond The Template Engine CodingForums.com: Modular DOMDocument template engine Using a Template Processor Class in PHP 5 Database design: Database Design Basics An Introduction to Database Normalization Concepts of Database Design and Management Frameworks: PHP MVC Frameworks PHP Ajax Frameworks Manual Lemos' Recommended Frameworks Taking a look at ten different PHP frameworks Performance and security PHP Simple ouput caching tutorial More simple ouput caching Client/proxy caching tutorial PHP Accelerator Turck MMCache PHP Security Guide PHP optimization tips Performance of the PHP5.1 Object Model Compared to PHP4 Top 7 PHP Security Blunders MySQL MySQL Optimization MySQL General Security Issues This is already starting to turn in a pretty comprehensive list, but feel free to suggest additions, please!
  17. For people trying to enable the new MySQL Improved extension on windows: extension=php_mysqli.dll Simple as that.
  18. [size=10pt][b]Welcome to Application Design![/b] [/size] :) If you have a question that in any way relates to the design of your application, this is the board to post! [b]This is not a board where you can ask for help with specific code.[/b] Use PHP Help for that. [b]Don't ask people to layout an application design for you.[/b] Get yourself aquinted with different possibilities, try to do your own, then you have something to ask help with. [b]Mind the valid categories[/b] Application design is a very broad concept, to regulate the content of this board, there is a list of 'valid' categories you must take into consideration. It is not allowed to adress one of these subjects from a programming context other than a [u]php[/u] application. This is a php forum after all. The list is not final, suggested additions and/or modifications are more than welcome, just send me a PM. [list] [*]General application structures [*]Design Patterns [*]General (php) programming concepts and issues [*]Performance issues (incl. caching) [*]Security issues [*]OOP structures [*]Database design [*]Error and exception handling [*](Custom) framework implementations [*](Custom) template engines [*]Good coding practices [/list] Thank you.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.