Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: My PHP Forum

  1. #1
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default My PHP Forum

    Hi everybody,

    Today I slapped together a neat little project. It's a forum, located at: http://www.mikeburt.net/forum (designed it myself)

    It works well, the only thing is that I haven't implemented "edit" features yet.

    Sign up if you want.
    - Mike

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Your design style is very op-art. I like it.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    attempted to be the first person to reply and received the error below while trying to respond to the "forum is up" announcement

    Not to bad thus far though

    http://www.mikeburt.net/forum/?q=pos..._is_up&tid=001
    Warning: fopen(structure/community/announcements/forum_is_up.php) [function.fopen]: failed to open stream: Permission denied in /home/mburt/public_html/forum/member/post.php on line 5

    Warning: fwrite(): supplied argument is not a valid stream resource in /home/mburt/public_html/forum/member/post.php on line 7

    Warning: fclose(): supplied argument is not a valid stream resource in /home/mburt/public_html/forum/member/post.php on line 8

  4. #4
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Thanks guys... I know the reply is a problem. My cpanel won't let me change my folder permissions (for whatever reason) on the thread folders. It's really annoying, and I've tried practically everything.

    Is there some kind of flag with fwrite I can use to automatically set the permissions to 777?
    - Mike

  5. #5
    Join Date
    Jul 2008
    Posts
    199
    Thanks
    6
    Thanked 58 Times in 57 Posts

    Default

    Nope, got to use chmod.

  6. The Following User Says Thank You to techietim For This Useful Post:

    mburt (08-21-2008)

  7. #6
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Ahh that's just what I was looking for. Thanks man.
    - Mike

  8. #7
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    This is the error I get however:

    Warning: chmod() [function.chmod]: Operation not permitted in /home/mburt/public_html/forum/member/post.php on line 5
    - Mike

  9. #8
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Do I absolutely need 777 permissions to use fwrite?
    - Mike

  10. #9
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    no its not mandatory. generally the permissions should be set at

    751 (folders)
    644 (files)

    I believe that chmod() can only be executed from the machine, not in a script... If you have a ftp login, try to use that? or possibly a cli client like PuTTy
    Last edited by boogyman; 08-21-2008 at 02:42 PM. Reason: added chmod content

  11. #10
    Join Date
    Jul 2008
    Posts
    199
    Thanks
    6
    Thanked 58 Times in 57 Posts

    Default

    When you create a file with PHP, you should have writes to modify it with any other PHP script on your server.

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
  •