SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Apr 2002
    0 Post(s)
    0 Thread(s)

    image upload to mysql

    Can anyone help me with a script to upload and also to display images in a webpage from a database.
    When I use Kevins code from the book,these are the error messages I get. Can anyone help me please

    Warning: open_basedir restriction in effect. File is in wrong directory in /usr/local/plesk/apache/vhosts/ on line 49

    Warning: fopen("/tmp/php3PQf0M","rb") - Operation not permitted in /usr/local/plesk/apache/vhosts/ on line 49

    Warning: Supplied argument is not a valid File-Handle resource in /usr/local/plesk/apache/vhosts/ on line 53

    Warning: Cannot add header information - headers already sent by (output started at /usr/local/plesk/apache/vhosts/ in /usr/local/plesk/apache/vhosts/ on line 70
    I would appreciate any help thanks very much

  2. #2
    Rehab is for quiters! spartan's Avatar
    Join Date
    Apr 2002
    Cape Town, South Africa
    0 Post(s)
    0 Thread(s)
    Havent worked with this enough to give you source but the last discussion I was in concerning images in DBs, the general consensus was that its better to store the image on the file server and onsly keep links to the image in the database itself.

    if you're going to savin in the database, then I suppose you have to save it as a BLOB...

    Any other Ideas or opinions? I'm quite interested..
    like I say, I've not worked with this much.
    It's like our sergeant told us before one trip into the jungle. Men! Fifty of you are leaving on a mission. Twenty-five of you ain't coming back.


Posting Permissions

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