
448191
Staff Alumni-
Posts
3,544 -
Joined
-
Last visited
-
Days Won
4
448191 last won the day on November 23 2017
448191 had the most liked content!
About 448191

- Birthday 03/02/1981
Contact Methods
-
Website URL
http://blog.kleijnweb.nl
Profile Information
-
Gender
Male
-
Location
Netherlands
448191's Achievements

Advanced Member (4/5)
25
Reputation
-
Time to retire (delete) this sticky.
-
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
-
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
-
The polls probably needs Aptana as an option. I know at least three people that use that.
-
I'll take that one. Expect a "Getting started with TDD" within a couple of weeks. The examples will be using PHPUnit though.
-
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!
-
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.
-
Call To Undefinded Function mysql_connect
448191 replied to wildteen88's topic in PHP Installation and Configuration
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. -
The Super Cool Mostly Official Frankenstein-Code Game Thread!
448191 replied to .josh's topic in Miscellaneous
Hey C_V, c'mon give us Franky back, we wanna play some more.. -
The Super Cool Mostly Official Frankenstein-Code Game Thread!
448191 replied to .josh's topic in Miscellaneous
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. -
The Super Cool Mostly Official Frankenstein-Code Game Thread!
448191 replied to .josh's topic in Miscellaneous
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! -
The Super Cool Mostly Official Frankenstein-Code Game Thread!
448191 replied to .josh's topic in Miscellaneous
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; } ?> -
The Super Cool Mostly Official Frankenstein-Code Game Thread!
448191 replied to .josh's topic in Miscellaneous
Ouch, franky learned some new phrases.. -
The Super Cool Mostly Official Frankenstein-Code Game Thread!
448191 replied to .josh's topic in Miscellaneous
<?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.. -
I read the original before. It's up there.