Okay, I'm after something to kill some free time on as I don't have a girlfriend, I don't drink and I think football is boring so the usual pastimes are out of the window I'm in the mood to make something nice in PHP, but I'm a bit stuck for ideas. Are there any little web-based tools/utilities that you have always wanted but never found? How about an idea you've had but don't have the time/skill to do? Throw suggestions at me people
OOOO YES PLEASE! If its anything like the peeps above want, it could be a combined project. Basicaly, I need a cms. If you have ever used cutenews, it needs to be similar to the functionality of that, but so much simpler. I literally want the ability to post news using a template with tags ([username][/username] [content][/content] [icon][/icon] etc etc) and sometimes use images. But i don't need or want wysiwyg or formating, that can be done with html. I'd like a category ability. And finally, multiple users. But thats not too important. I think it would be quite possibly the simplest cms in the werld! In fact, if you want to start a project, then i'd be willing to provide design fo the backend and we could come up with a legitimate product... with absolutely no "powered by" links. hehe... or not... i got a bit carried away...
Honestly, I'm a bit sick of CMSs, I do a lot of them at work and there is roughly enough open source PHP CMSs for every manatee on the planet to have their own already. Something image-based would be good. I was toying with creating a image search engine where users could draw the image they were after, until retrievr appeared to do exactly the same thing.
A nice fast template system would be nice, I've been looking to make one myself but I'm not sure the best way to do it. If you still want to do something with images however, maybe you could make a reflection generator
Unless i've missed it, there's just not a good, open source php/mysql bug/feature tracker for software projects around. All of the ones i've found are old, not in active development and crap. I'd even help out
See how long you cen get a hello world to be, the one I made last night is ~80 lines. www.dfhaii.com/source/helloworld.php
A version RTT will appreciate! PHP: <?php class letter{ var $letter; function letter($letter){ $this->letter = $letter; } function getLetter(){ return $this->letter; } } class word{ var $word; function word($word){ for($i = 0; $i < count($word); $i++){ $temp .= $word[$i]->getLetter(); } $this->word = $temp; } function getWord(){ return $this->word; } } class phrase{ var $phrase = array(); function phrase($phrase){ $this->phrase = $phrase; } function getPhrase(){ return $this->phrase; } function showPhrase(){ for($i = 0; $i < count($this->phrase); $i++){ echo $this->phrase[$i]->getWord().' '; } } } $memcache = new Memcache; $memcache->connect('localhost', 11211); if($phrase = $memcache->get('lolololol')){ echo $phrase->showPhrase(); }else{ $letters = array('h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd', '!'); for($i = 0; $i < count($letters); $i++){ $letterObjects[] = new letter($letters[$i]); } unset($letters); for($i = 0; $i <= 4; $i++){ $word[] = $letterObjects[$i]; } $words[] = new word($word); unset($word); for($i = 6; $i < count($letterObjects); $i++){ $word[] = $letterObjects[$i]; } $words[] = new word($word); unset ($word); unset ($letterObjects); $phrase = new phrase ($words); unset($words); echo $phrase->showPhrase(); $memcache->add('lolololol', $phrase, true, 600); unset($phrase); } echo '<br><br>'; highlight_file('helloworld.php'); ?>
He said fast. A lot pf PEAR apps are not fast at all. And Smarty language isn't that great for some really complicated stuff. Compiling it is also a massive waste of resources, might as well use php as the template language.
Here is an example of some bad stuff Smarty forces you to do. Smarty caching ain't that good in the first place, firstly you can't cache only individual components easily (unless you're willing to modify large parts of Smarty code) and it's still quite slow (I got 0.1s on cached content, still massively high).
How about if you use something like MySQL for the caching? Edit: I just had a read of that article you linked to. Some of the statements are fair enough, others somewhat miss the point IMO. We use Smarty a lot at work and it really cuts develop times down on the majority of sites. Sure, if we had the time it would be nice to use a custom templating engine that would be faster than Smarty to cut the server's CPU usage by a few percent, but time is money. I'm all for super-speed-optimised code when you have the time for it, but in my experience in the commercial world, you don't. Your time is your clients' money and if you're costing them extra to give them (realistically) no tangible benefit then why wouldn't they go elsewhere?