Development Need a PHP project

Discussion in 'Software' started by NiHiLiST, 21 Jun 2006.

  1. NiHiLiST

    NiHiLiST New-born car whore

    Joined:
    18 Aug 2001
    Posts:
    3,987
    Likes Received:
    6
    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 :D

    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 :cooldude:
     
  2. crazydeep74

    crazydeep74 What's a Dremel?

    Joined:
    25 Jul 2005
    Posts:
    762
    Likes Received:
    0
    I need a script to create pages with php dynamicly :p .
     
  3. ajack

    ajack rox

    Joined:
    17 Apr 2003
    Posts:
    2,695
    Likes Received:
    2
    CMS? Always a pretty fun/challenging project.
     
  4. will.

    will. A motorbike of jealousy!

    Joined:
    2 Mar 2005
    Posts:
    4,461
    Likes Received:
    20
    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...
     
  5. NiHiLiST

    NiHiLiST New-born car whore

    Joined:
    18 Aug 2001
    Posts:
    3,987
    Likes Received:
    6
    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.
     
  6. AlexB

    AlexB Web Nerd and WC Addict

    Joined:
    22 Dec 2005
    Posts:
    2,380
    Likes Received:
    41

    I've got one that i've written that does all that
     
  7. Ramble

    Ramble Ginger Nut

    Joined:
    5 Dec 2005
    Posts:
    5,596
    Likes Received:
    42
    I created a standard form converter once.

    Yes, absolutely pointless, but I was bored.
     
  8. [Jonny]

    [Jonny] What's a Dremel?

    Joined:
    1 Sep 2003
    Posts:
    296
    Likes Received:
    0
    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 :D
     
  9. simon w

    simon w What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,302
    Likes Received:
    0
    What's wrong with Smarty?
     
  10. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    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 :)
     
  11. dfhaii

    dfhaii internets

    Joined:
    24 Mar 2002
    Posts:
    520
    Likes Received:
    0
  12. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
  13. will.

    will. A motorbike of jealousy!

    Joined:
    2 Mar 2005
    Posts:
    4,461
    Likes Received:
    20
    ...can i have it please? hehe :hehe:
     
  14. dfhaii

    dfhaii internets

    Joined:
    24 Mar 2002
    Posts:
    520
    Likes Received:
    0
    A version RTT will appreciate! :D :thumb:

    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'$phrasetrue600);
    unset(
    $phrase);
    }
    echo 
    '<br><br>';

    highlight_file('helloworld.php');
    ?>

     
  15. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    haha...
     
  16. Ramble

    Ramble Ginger Nut

    Joined:
    5 Dec 2005
    Posts:
    5,596
    Likes Received:
    42
    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.
     
  17. simon w

    simon w What's a Dremel?

    Joined:
    3 Nov 2003
    Posts:
    1,302
    Likes Received:
    0
    Such as?

    Surely not if you cache what you've compiled?
     
  18. Ramble

    Ramble Ginger Nut

    Joined:
    5 Dec 2005
    Posts:
    5,596
    Likes Received:
    42
    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).
     
  19. NiHiLiST

    NiHiLiST New-born car whore

    Joined:
    18 Aug 2001
    Posts:
    3,987
    Likes Received:
    6
    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?
     
    Last edited: 22 Jun 2006
  20. Ramble

    Ramble Ginger Nut

    Joined:
    5 Dec 2005
    Posts:
    5,596
    Likes Received:
    42
    What would be the point of that?
     

Share This Page