#76
  1. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    problem in Image Creation


    I want to create image.But i get this error
    when i use the following function.

    Fatal error: Call to unsupported or undefined function imagearc()

  2. #77
  3. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    $picture_name


    Hi,

    Anybody knows where the part "_name" comes from ? It's not an image function, and I can't use it with variable-variables (look at http://www.php.net/manual/language.variables.variable.php)

    something like this; ${$picture}_name doesn't give me the real name.
  4. #78
  5. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: problem in Image Creation


    I faced the same problem. However, one of the things that I did, which I believed I've done it right is to unmark
    ;Windows Extensions
    extension=php3_mysql.dll
    extension=php3_calendar.dll
    extension=php3_dbase.dll
    extension=php3_gd.dll

    in the php3.ini
    I am not sure I did it right. But it makes no hurt to try....
  6. #79
  7. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: $picture_name


    I no expert on this but I belive that it comes from the programing that is part of the enctype="multipart/form-data" and is only temp. you would have to send it to a file or db and recall it
  8. #80
  9. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: insert values where clause help!!!!!


    It would make sense that the statement would work fine without the FROM and WHERE clauses since it is a valid INSERT statement.

    I believe that in order to use the FROM clause, one of the fields from that table must be part of your statement and *not* just part of the WHERE clause.

    I would suggest using PHP to perform the validation and use the standard INSERT statement.

    Thanks,

    Edward A. Geddis
  10. #81
  11. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: $picture_name


    Hi,

    after some digging in the manual, I found these things:

    $userfile - The temporary filename in which the uploaded file was stored on the server machine.

    $userfile_name - The original name of the file on the sender's system.

    $userfile_size - The size of the uploaded file in bytes.

    $userfile_type - The mime type of the file if the browser provided this information. An example would be "image/gif".

    so these things are set by PHP engine when receiving the file. This listing assumes that the upload input tag has the name of "userfile". To make it clear:
    <INPUT NAME="userfile" TYPE="file">

    that's the secret I think.

    Trapeer
  12. #82
  13. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: problem in Image Creation


    Just edit the file php3.ini in your Windows directory (if you are using it) and unmark the extension extension=php3_mysql.dll (just take the semicolon away ;)
  14. #83
  15. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Renaming pic to field id?


    Hi,

    What about if i need the pic with the same name as the id field os the database?
  16. #84
  17. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: ?? uploading textfile into mysql with php3


    Hi,
    <br>
    Would you please show the piece of codes that made it worked? I've tried many times without success.
    <br>
    <br>
    Thanks!
    <br>
    <br>
    Stonez
  18. #85
  19. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: image on DB vs. filesys.


    Ok, well I've done performance testing and our pages load faster when the images are stored in the database instead of the filesystem.

    I'd really like to see us get to the bottom of the initial question, however. What is the difference in server processing? Is it better one way or the other? Could the DB actually be faster?

    Another question is, I have noticed that browsers do not always cache DB images. Any ideas for this? Do browsers possibly ignore "?", "&", & "="?

    These answers would be extremely appreciated!!
  20. #86
  21. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: Pics stored as temp in DB?


    So whats the actual problem? Upon upload your images are stored in the tmp dir. You need to read the data, throw it into the record, and then delete (unlink) the temp file.
  22. #87
  23. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: image on DB vs. filesys.


    One possiblility why it is faster is because the BLOBS are stored sequentially without fragmentation within the file. Therefore the system ony has to read X contigous bytes where X is the file length. Such operations are fast, especially on RAID mirrored disks. The cavat though is that the retrival of BLOBS can be limited by the number of concurrent transactions that your DBMS can do. Ie: It may not scale well.

    As for the second question, try adding a cache pragma directive to the ouput (see http rfc) Oh, as a note, script output is not cached by default on some systems, on others it is. IE. is notirious for not doing what you try to tell it. To disable cacheing, here's wat I do, maube you can adjust it:


    <!-- Code -->
    <p><pre><font color=#008000><xmp>
    <?php
    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    </xmp></font></pre><p>
    <!-- Code -->
  24. #88
  25. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: FrontPage2000 & MySQL


    Ya, why don't I just email it to you.
    <br>
    <br>
    Hell, why don't I just email the whole Office 2000 Premium?
    <br>
    <br>
    <b>Warez is not here.....</b>
  26. #89
  27. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    INSERT problem


    I have been struggling with this tutorial for 2 days. The explanation is good and i read other tutors and everything is fine..
    <br>
    <br>
    The form and uploading are working fine, displaying the pic too..
    <br>
    <br>
    EXCEPT there is no record stored into the table at all..
    <br>
    <br>
    <br>
    this is my pics.php
    <br>
    <br>
    using "multipart/form-data" and action $PHP_SELF
    <br>
    <br>
    <?php
    <br>
    <br>
    *****if ($submit) {
    <br>
    **********$destination = "$picture_name";
    <br>
    **********mysql_connect("localhost","user","password");
    <br>
    **********mysql_select_db("test");
    <br>
    **********mysql_query("INSERT INTO babes (id,babe,picture_name) values(NULL,'$babe','$picture'");
    <br>
    **********copy($picture,$destination);
    <br>
    **********
    <br>
    **********echo "Babe : $babe<br>";*****
    <br>
    **********echo "temp file: $picture<br>";
    <br>
    **********echo "file name: $picture_name<br>";
    <br>
    **********echo "file size: $picture_size<br>";
    <br>
    **********echo "file type: $picture_type<br>";
    <br>
    **********echo "<br>";
    <br>
    **********echo "<img src=$picture_name><br>";
    <br>
    **********
    <br>
    *****}*****
    <br>
    ?>
  28. #90
  29. No Profile Picture
    guest
    Guest
    Devshed Newbie (0 - 499 posts)

    Re: INSERT problem


    mysql_query("INSERT INTO babes (id,babe,picture_name) values(NULL,'$babe','$picture'");

    should be

    mysql_query("INSERT INTO babes (id,babe,picture_name) values(NULL,'$babe','$picture')";

    the quote should be outside the )

IMN logo majestic logo threadwatch logo seochat tools logo