Results 1 to 5 of 5

Thread: MySQl and PHP

  1. #1
    Join Date
    Feb 2003
    Location
    England
    Posts
    1

    MySQl and PHP

    Am a student about in Leeds. For my final project i have been assigned to creating a Web enabled database to create dynamic content on pages.

    I have chosen to use MySql and PHP but i am an absolute beginner. I have a little experience in Oracle, but nothing to do with the setting up of the applications and hardware.

    The assignment is basically to create a online database to which users have to register to become members of. Once they are registered they can upload details which will be displayed dynamically on web pages, this could include pictures. Users will have different access levels.

    Could someone please give me some instructions on what i need to do and what is needed to to do it

    Any help will be taken gratefully,

    Also could anyone recommend a book, journals and websites that would aid me.

    Many thanks Pete

  2. #2
    Join Date
    Feb 2003
    Location
    Johannesburg, South Africa
    Posts
    145
    For the book - try a search for "php" on amazon.com ( or amazon.co.uk ).

    As for your project, here are some pointers:

    1) The tricky thing with access control is session management. Unfortunately, php does not have a good history when it comes to security, but it has improved significantly over the last couple of years. Note that this could be an intense subject on it's own, depending on how secure your app must be. In the end it basically boils down to how you store the authentication credentials in cookies, and if/how you implement additional features like session time out etc.

    2) In general your authentication table only holds the objects needed for authentication, and all other info are in a seperate table. This forces you to know something about JOIN's. There are plenty of good examples in the MySQL documentation ( www.mysql.com )

    3) Pictures and other BLOB information can be handled in two ways: a) stored in the DB, or b) stored on the OS filesystem with a reference in the DB. For the sake of speed it is better to store the objects on disc, and just store the references in the DB.

    4) The plot thickens, however, as you need to cater for an upload facility. There are two important things you should remember here: a) pay attention to size limits, and b) limit the image types ( gif, jpg, png etc. ).

    The good thing about open source is that you can peek at how others have done it. Get a copy of phpNuke and have a look inside. That is sometimes the best way to learn. If you do use some of the code, you have to comply with the GPL though, so take note.

    Cheers and good luck.

  3. #3
    Join Date
    Jan 2003
    Location
    DE
    Posts
    27

    The Book...

    Hi there,

    I have something similar to do...
    A book I could recommend is "Web Database Applications with PHP and MySQL" by Hugh E. Williams & David Lane.
    Published at O'Reilly with ISBN:0-596-00041-3.
    My problem is integrating barcode into the DB and build something like a warehaousing-system... it also has a userauthentication and cookie security features.

    The book is not the best, but it helps at most of the topics. As the others I can always recommend the manual supplied with the MySQL distribution or available at www.mysql.com

    A good way of dealing with specific problems is posting in boards like this.

  4. #4
    Join Date
    Nov 2002
    Location
    NE USA
    Posts
    3
    I have found the book "MySQL" by Paul DuBois and published by New Riders to be very helpful on the database side of things and "PHP and MySQL Web Development" by Luke Welling and Laura Thomson published by Sams to be helpful on the scripting side of things - Chapter 14 deals exactly with what you're talking about.

    Good luck.

  5. #5
    Join Date
    Dec 2002
    Posts
    6,890
    You might also try PHPBuilder
    _______________
    Thanks,
    Linda


Posting Permissions

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