WordPress.org

Ready to get started?Download WordPress

Forums

Multiple blogs in server (4 posts)

  1. thegioigameone
    Member
    Posted 5 months ago #

    Hi all. I'm Hue. I come frome Vietnamese.

    I have discarded the option of having a ID that identifies the blog ("$BID") passed as another parameter in just one b2 file tree, as I'll always have a few guys who will want to change the CSS etc and I'd upload their changes manually in a case by case fashion.

    So I wan to reproduce the whole tree structure in a new directory that represents each user ( /blogs --> /blogs/usernick ).

    By the way, to have PHP create the files is a permission nightmare, but that's another story (I'm already scared of the chmod 777 to upload pictures).

    Then in each function that uses a SQL query, I'd add $BID in the list of globals, and then I'd insert in the WHERE clauses: WHERE BID = $BID AND ...(original WHERE condition).

    This gives flexibility; the $BID can be assigned from a passed parameter or it can be taken from the current path using __FILE__. This second option is the tricky part I'm not so sure about (not how to implement it, but its soundness and security issues).

    In the database I'm adding a field BID to each table, so that I only need 1 database and the same tables, game ibet88. The other option (that doesn't scale so well) is having a set of tables with different names per blog, that may good for a few blogs.

  2. thegioigameone
    Member
    Posted 3 months ago #

    Do you use facebook? dang nhap facebook

  3. karabill35
    Member
    Posted 3 months ago #

    Wow !!! Come on now website on keyword dang ky facebook

  4. thegioigameone
    Member
    Posted 3 weeks ago #

    chuyên sách biểu thuế xnk 2014

Reply

You must log in to post.

About this Topic