User Profile

Collapse

Profile Sidebar

Collapse
dandan2907
dandan2907
Last Activity: Feb 25 '08, 08:43 AM
Joined: Feb 24 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dandan2907
    replied to upload files frustration
    in PHP
    Hi
    I have solved it but in a very wiered way.
    I am using relative path - ../DBImages instead of a standard url.
    It works and can suffice but if you have a clue of what is going on I would be happy to hear (I think there is a way of configuring the path on server)
    Yours
    Danny
    See more | Go to post

    Leave a comment:


  • dandan2907
    replied to upload files frustration
    in PHP
    Thanks for the patience
    My problem is that I don't have any indication for any problem on script.

    I get a temporary file path on the "$_FILES" array.

    Still the move_uploaded_f ile command fails - It returns False and does not upload the files to my desired directory.

    If I had any error notification I could try and fix it.

    The above code should work. Has anyone encountered...
    See more | Go to post

    Leave a comment:


  • dandan2907
    replied to upload files frustration
    in PHP
    Sure mate

    The following is the code for extracting the data from the file control:
    ($data['name'] is the text in the control itself)

    function getData($data,$ fieldName)
    {
    global $uploaddir,$db;

    //Get data from the file control
    $imageName = $data[name];

    //a new image is set and waiting in the file control
    if ($imageName)
    {
    ...
    See more | Go to post

    Leave a comment:


  • dandan2907
    started a topic upload files frustration
    in PHP

    upload files frustration

    Hi all
    I am trying to upload images to a remote server and it fails all the time.
    My $_FILES array looks as follows
    [php]
    [thumbnail] => Array
    (
    [name] => 01.jpg
    [type] => image/jpeg
    [tmp_name] => d:\upload_tmp\p hp5F90.tmp
    [error] => 0
    [size] => 1268
    )

    [bigPic] =>...
    See more | Go to post
    Last edited by ronverdonk; Feb 24 '08, 12:50 PM. Reason: makeup of text
No activity results to display
Show More
Working...