• Lucid Dreaming - Dream Views




    Results 1 to 18 of 18
    1. #1
      explore Demerzel's Avatar
      Join Date
      Apr 2004
      Gender
      Location
      Scotland, UK
      Posts
      1,189
      Likes
      6
      And SQL. If you like.
      [22:59] <Kaniaz> You basically did a massive shit on the rug of this IRC
      [22:59] <Kaniaz> And called it a message

    2. #2
      MSG
      MSG is offline
      Colloquial MSG's Avatar
      Join Date
      Jul 2004
      LD Count
      1
      Posts
      1,363
      Likes
      14
      How reverse string?

    3. #3
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      Quote Originally Posted by MSG View Post
      How reverse string?
      [/b]
      http://uk.php.net/manual/en/function.strrev.php

      look in the comments for unicode versions
      (\_ _/)
      (='.'=)
      (")_(")

    4. #4
      Banned
      Join Date
      Jan 2004
      Gender
      Location
      nope
      Posts
      1,807
      Likes
      599
      I need a kick ass project for my new found hobby - shitty website&#33; I&#39;d like it to be php+mysql related. WHAT R GUD IDEAS?

    5. #5
      The 'stache TweaK's Avatar
      Join Date
      Jul 2006
      Location
      The Netherlands
      Posts
      1,979
      Likes
      12
      I suppose you want a sort of news-blogish system, so I suggest doing that (you just want suggestions and not explanation on how to program it, right? Although I could help you with that too, but this isn&#39;t my thread ). Also, make the menu/content part AJAX-based, so you can have realtime content changes without actually loading another page. If you haven&#39;t read up on AJAX/don&#39;t know what it is (beside a Dutch football club), Wikipedia&#39;s page on it.

      You want a nice layout without too much bullshit probably (I say simplicity is the power), so I&#39;d say make some images and do the rest in CSS/XHTML.

      Maybe make a sort of admin-ish section for yourself so you can edit pages live (you could do this through a form and a <textarea> containing the contents of the page, then saving it).

      Seeing you want MySQL stuff, you could have one index.php page and have the rest of the contents (and I mean actually content-wise) in an SQL database, then you could have one table that has a list of the pages and for each page it has another column that would tell you who&#39;s allowed to seen it. Something like this:

      Code:
      ----------------------
      | id | name | level |
      ----------------------
      | 1 | news**|****1** | 
      | 2 | admin |** 2****|
      -----------------------
      Level 1 being public, 2 being only you (you could have a login system or an IP-based system, but the latter would refrain you from logging in from anywhere you&#39;d want).

      As far as coding-wise goes, you can figure the rest out on your own. For content, you could have a news system, admin section with page editing, a login system for yourself so you can click an [Edit] button on the bottom of the page and have an Invision Board styled quick edit function for pages (I love that function), you could have a personal portfolio sorta thing, maybe some useful tools/tutorials.. I don&#39;t know. It&#39;s really what you want to make of it.

      I don&#39;t know, these are just some suggestions.

      Edit
      This makes me want to recreate my Frostic Control Panel, which was a Control Panel for my home PC which I ran on a webserver on said PC. It didn&#39;t look too good, but it had some nifty Javascript stuff and allowed me to edit certain (with limits of course) files on my PC and stuff, and had a Windows Run command-like text box which would allow me to download torrents and stuff from distance. I think I might remake it one of these days.

    6. #6
      explore Demerzel's Avatar
      Join Date
      Apr 2004
      Gender
      Location
      Scotland, UK
      Posts
      1,189
      Likes
      6
      Quote Originally Posted by TweaK View Post
      Edit
      This makes me want to recreate my Frostic Control Panel, which was a Control Panel for my home PC which I ran on a webserver on said PC. It didn&#39;t look too good, but it had some nifty Javascript stuff and allowed me to edit certain (with limits of course) files on my PC and stuff, and had a Windows Run command-like text box which would allow me to download torrents and stuff from distance. I think I might remake it one of these days.
      [/b]
      In my experience - NO
      [22:59] <Kaniaz> You basically did a massive shit on the rug of this IRC
      [22:59] <Kaniaz> And called it a message

    7. #7
      The 'stache TweaK's Avatar
      Join Date
      Jul 2006
      Location
      The Netherlands
      Posts
      1,979
      Likes
      12
      y not?

      (haha)

    8. #8
      Member Kaniaz's Avatar
      Join Date
      Jan 2004
      Gender
      Location
      England
      Posts
      5,441
      Likes
      9
      Because Remote Desktop/OpenSSH can do that job AND MORE?

    9. #9
      MSG
      MSG is offline
      Colloquial MSG's Avatar
      Join Date
      Jul 2004
      LD Count
      1
      Posts
      1,363
      Likes
      14
      And is far more secure?

    10. #10
      The 'stache TweaK's Avatar
      Join Date
      Jul 2006
      Location
      The Netherlands
      Posts
      1,979
      Likes
      12
      Uh yeah, but I don&#39;t suppose you always have SSH/Remote Desktop access anywhere, do you?

    11. #11
      explore Demerzel's Avatar
      Join Date
      Apr 2004
      Gender
      Location
      Scotland, UK
      Posts
      1,189
      Likes
      6
      Quote Originally Posted by TweaK View Post
      Uh yeah, but I don&#39;t suppose you always have SSH/Remote Desktop access anywhere, do you?
      [/b]
      Generally you can have always have one or the other and sometimes both.
      [22:59] <Kaniaz> You basically did a massive shit on the rug of this IRC
      [22:59] <Kaniaz> And called it a message

    12. #12
      The 'stache TweaK's Avatar
      Join Date
      Jul 2006
      Location
      The Netherlands
      Posts
      1,979
      Likes
      12
      Yes, including locations such as school&#33;

    13. #13
      Member Kaniaz's Avatar
      Join Date
      Jan 2004
      Gender
      Location
      England
      Posts
      5,441
      Likes
      9
      Yes

      If I can SSL tunnel something, SO CAN YOU

    14. #14
      Banned
      Join Date
      Jan 2004
      Gender
      Location
      nope
      Posts
      1,807
      Likes
      599
      Ok, I&#39;d like to set up a news server with administration and comments. Point me in the direction of learn-ville.

    15. #15
      Your cat ate my baby Pyrofan1's Avatar
      Join Date
      Nov 2006
      Gender
      Posts
      720
      Likes
      3
      Quote Originally Posted by Artelis View Post
      Ok, I&#39;d like to set up a news server with administration and comments. Point me in the direction of learn-ville.
      [/b]
      I would look into sessions and database function such as mysql_connect, mysql_query and mysql_fetch_array (if your database is mysql)

    16. #16
      explore Demerzel's Avatar
      Join Date
      Apr 2004
      Gender
      Location
      Scotland, UK
      Posts
      1,189
      Likes
      6
      That&#39;s one of the first things I ever did with PHP. It was shit, it was great.

      Pyrofan is pretty much spot on. Sessions are easy. You should call session_start as the first instruction. It intializes an array variable called &#036;_SESSION which you can access from all the pages on the same server which call session_start. this means you can store a user id per visitor, update that when they log in and out, and then use it to fetch user-specific information from the database.

      i know that wasnt the best explanation but i&#39;m not really in the writing mood.
      [22:59] <Kaniaz> You basically did a massive shit on the rug of this IRC
      [22:59] <Kaniaz> And called it a message

    17. #17
      Banned
      Join Date
      Jan 2004
      Gender
      Location
      nope
      Posts
      1,807
      Likes
      599
      I&#39;ve been looking through a lot of this nifty stuff and decided that I would either
      A) give up from laziness
      B) make it so shitty that it would pose security flaws.

      Is there a standard pre-made package that could do the same functions?

    18. #18
      FBI agent Ynot's Avatar
      Join Date
      Oct 2005
      Gender
      Location
      Southend, Essex
      Posts
      4,337
      Likes
      14
      Quote Originally Posted by Artelis View Post
      I&#39;ve been looking through a lot of this nifty stuff and decided that I would either
      A) give up from laziness
      B) make it so shitty that it would pose security flaws.[/b]
      I think most PHP writers do both

      make it so shitty that it would pose security flaws
      then, when it gets to commenting, or any sort of documentation
      give up from laziness

      then, you are in a position to post the whole thing at PHP Classes
      http://www.phpclasses.org/browse/

      and laugh as people download it
      (\_ _/)
      (='.'=)
      (")_(")

    Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •