Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Local Files - Firefox

  1. #11
    jmarcv's Avatar
    jmarcv is offline Cranky Coder
    Join Date
    Jan 2005
    Posts
    354

    Default

    .. in cPanel.

  2. #12
    rlhanson's Avatar
    rlhanson is offline Master Glow Jedi
    Join Date
    Aug 2007
    Location
    Chapman, Kansas
    Posts
    531

    Default

    lmao - Ohhhh, that one!
    I don't know ANYTHING about server stuff, but here's what it says in the big shiny button in cpanel:

    [Fri Feb 27 17:17:10 2009] [error] [client 74.173.67.188] File does not exist: /home/rlhanson/public_html/403.shtml
    [Fri Feb 27 17:16:53 2009] [error] [client 68.91.152.220] File does not exist: /home/rlhanson/public_html/403.shtml
    [Fri Feb 27 17:16:08 2009] [error] [client 71.211.143.249] File does not exist: /home/rlhanson/public_html/403.shtml
    [Fri Feb 27 17:14:43 2009] [error] [client 74.173.67.188] File does not exist: /home/rlhanson/public_html/403.shtml
    [Fri Feb 27 17:12:06 2009] [error] [client 68.91.152.220] File does not exist: /home/rlhanson/public_html/403.shtml
    [Fri Feb 27 17:07:52 2009] [error] [client 74.173.67.188] File does not exist: /home/rlhanson/public_html/403.shtml
    [Fri Feb 27 17:07:51 2009] [error] [client 68.91.152.220] File does not exist: /home/rlhanson/public_html/403.shtml
    [Fri Feb 27 17:07:17 2009] [error] [client 74.173.67.188] File does not exist: /home/rlhanson/public_html/403.shtml
    [Fri Feb 27 17:07:00 2009] [error] [client 74.173.67.188] File does not exist: /home/rlhanson/public_html/403.shtml
    [Fri Feb 27 17:05:48 2009] [error] [client 74.173.67.188] File does not exist: /home/rlhanson/public_html/403.shtml
    [Fri Feb 27 17:03:53 2009] [error] [client 74.173.67.188] File does not exist: /home/rlhanson/public_html/404.shtml
    [Fri Feb 27 17:03:53 2009] [error] [client 74.173.67.188] File does not exist: /home/rlhanson/public_html/js/error.js
    [Fri Feb 27 17:03:46 2009] [error] [client 74.173.67.188] File does not exist: /home/rlhanson/public_html/404.shtml
    [Fri Feb 27 17:03:46 2009] [error] [client 74.173.67.188] File does not exist: /home/rlhanson/public_html/favicon.ico
    [Fri Feb 27 17:03:43 2009] [error] [client 74.173.67.188] File does not exist: /home/rlhanson/public_html/404.shtml
    [Fri Feb 27 17:03:43 2009] [error] [client 74.173.67.188] File does not exist: /home/rlhanson/public_html/favicon.ico
    [Fri Feb 27 17:03:42 2009] [error] [client 74.173.67.188] File does not exist: /home/rlhanson/public_html/404.shtml
    [Fri Feb 27 17:03:42 2009] [error] [client 74.173.67.188] File does not exist: /home/rlhanson/public_html/js/error.js
    [Fri Feb 27 16:58:25 2009] [error] [client 71.211.143.249] File does not exist: /home/rlhanson/public_html/403.shtml
    [Fri Feb 27 16:58:25 2009] [crit] [client 71.211.143.249] (13)Permission denied: /home/rlhanson/public_html/incoming/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
    Thank you,
    Lynne Hanson
    RL Hanson-Online

  3. #13
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    5,965

    Default

    One way to make your life easier and to see the exact error is to look at your error log as you have it now, then go to the problematic URL, in this case:

    http://www.rlhanson-online.com//incoming/dali-lahma.jpg

    Then reload / refresh your page 20-30 times or until you get bored. Then you will see the same error over and over all in a nice row by row basis where 20-30 instances of the same error shows up so you have a clear picture of the exact error that you are looking for.

    Its going to have the path or URL of the problem. In your case this is the error about the problem:

    (13)Permission denied: /home/rlhanson/public_html/incoming/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readableNotice it has the path to what we are talking about.
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | Follow us on X |

  4. #14
    rlhanson's Avatar
    rlhanson is offline Master Glow Jedi
    Join Date
    Aug 2007
    Location
    Chapman, Kansas
    Posts
    531

    Default

    Okay - I think I have it....
    uno momento lol
    Thank you,
    Lynne Hanson
    RL Hanson-Online

  5. #15
    rlhanson's Avatar
    rlhanson is offline Master Glow Jedi
    Join Date
    Aug 2007
    Location
    Chapman, Kansas
    Posts
    531

    Default

    Nope - tried chmod to 777 -
    EDIT: Changed this back to 766...


    I noticed John_marc picture was showing now but still not working in Firefox...
    One post said I had to frontpage extensions installed - that's a crock isn't it?
    Last edited by rlhanson; 02-27-2009 at 04:57 PM. Reason: change
    Thank you,
    Lynne Hanson
    RL Hanson-Online

  6. #16
    rlhanson's Avatar
    rlhanson is offline Master Glow Jedi
    Join Date
    Aug 2007
    Location
    Chapman, Kansas
    Posts
    531

    Default

    I don't know how to fix this error.
    Thank you,
    Lynne Hanson
    RL Hanson-Online

  7. #17
    jmarcv's Avatar
    jmarcv is offline Cranky Coder
    Join Date
    Jan 2005
    Posts
    354

    Default

    > but still not working in Firefox...

    And you are still not telling us if it gets uploaded? I am still not seeing any confirmation text, so I am thinking it aint uploading

  8. #18
    jmarcv's Avatar
    jmarcv is offline Cranky Coder
    Join Date
    Jan 2005
    Posts
    354

    Default

    chmod what? .htaccess????

  9. #19
    Matt's Avatar
    Matt is offline GlowHost Administrator
    Join Date
    Jan 2005
    Location
    Behind your monitor
    Posts
    5,965

    Default

    Files need to be no higher than 644 and folders need to be no higher than 755
    Send your friends and site visitors to GlowHost and get $125 plus bonus!
    GlowHost Affiliate Program | Read our Blog | Follow us on X |

  10. #20
    rlhanson's Avatar
    rlhanson is offline Master Glow Jedi
    Join Date
    Aug 2007
    Location
    Chapman, Kansas
    Posts
    531

    Default

    okay in my ftp I chmod the directory "incoming" to 777 - which I thought was a BAD thing. But when I do that, the image path works and you can browse to the directory and see all the files there now.
    Index of /incoming

    Still doesn't preview in FF...

    Okay - it's not uploading large files either (2mb - should be able to do up to 50mb)...I combined an email form processor and the image upload processor I had purchased the coding for and this is the mess I have...

    I think it's only working half the time in IE and if FF isn't displaying it, I probably have some messed up coding. From what I have experienced with FF before is if my code is sloppy, it will definitely show me so. lol


    Here's the whole thing I have going on:
    PHP Code:
    <?php
    $datetime 
    date("l dS of F Y H:i:s");
    $message  "On $datetime\n";
    $message .= "<br />Here are the details of the form submission:\n";
    while (list(
    $key$val) = each($_POST)) {
     if (
    $key == 'redirect') {
         
    $redirect $val;
        }
     
     if ((
    $key != 'redirect') and ($key != 'recipient')) {
      
    $val trim($val);
      
    $message .= "<br />$key$val\n";
     }
    }
    /*
    A function to upload a file.
    @param $index - form field index (int)
    @param $is_small - bool value to indicate that this is a small file
    @return bool true if ok & error message in the case of error
    */
    function ProcessUploadedFile($index$is_small) {
     global 
    $s_path$b_path;
     
     
    $msg '';
     if (
    $is_small) {
      
    $prefix 's';
      
    $path $s_path;
     } 
     
    /*else {
      $prefix = 'b';
      $path = $b_path;
     }*/
     
    if ($_FILES[$prefix.'_userfile'.$index]['size'] > 0) {
      if (
    $_FILES[$prefix.'_userfile'.$index]['size'] > 52428800) { //50MB
       
    $msg "Your uploaded file size is more than 50MB so please reduce the file size and then upload";
      } else {
       if ((
    $_FILES[$prefix.'_userfile'.$index]['type'] != 'image/pjpeg') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'image/gif') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'application/postscript') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'application/x-stuffit') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'application/zip') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'image/tiff') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'application/pdf') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'application/octet-stream') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'application/msword') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'application/vnd.ms-excel') && ($_FILES[$prefix.'_userfile'.$index]['type'] != 'text/plain')) {
        
    $msg "Your uploaded file must be of JPG, GIF, PSD, PDF, EXCEL, WORD, or PLAIN TEXT. Other file types are not allowed";
       } else {
        if (
    move_uploaded_file($_FILES[$prefix.'_userfile'.$index]['tmp_name'], $path.$_FILES[$prefix.'_userfile'.$index]['name']) === false) {
         
    $msg "Failed to move uploaded file";
        }
       }
      }
     } else 
    $msg "There was no file selected";
     if (
    $msg == '') return true;
     else return 
    $msg;
    }
    $s_path "incoming/"//path to save small images
    //$b_path = "incoming/"; //path to save large images
     
    for ($i 1$i 4$i++) { //cycle for small images
     
    $result ProcessUploadedFile($itrue);
     if (
    $result !== true) {
      echo 
    '&nbsp;';
     } else {
      echo 
    'Your file was uploaded successfully! You will also receive an e-mail confirmation of your successful file upload status for your records. </br>';
      echo 
    "<br>";
      
    //Grabbing image info from the server
      
    $image $_FILES["s_userfile1"]["name"];
     
     
      
    //IF THE FILE IS NOT a PSD, PDF, WORD, ETC, THEN DISPLAY IMAGE
      
    if (($_FILES["s_userfile1"]["type"] != 'application/postscript') && ($_FILES["s_userfile1"]["type"] != 'application/x-stuffit') && ($_FILES["s_userfile1"]["type"] != 'application/zip') && ($_FILES["s_userfile1"]["type"] != 'image/tiff') && ($_FILES["s_userfile1"]["type"] != 'application/pdf') && ($_FILES["s_userfile1"]["type"] != 'application/octet-stream') && ($_FILES["s_userfile1"]["type"] != 'application/msword') && ($_FILES["s_userfile1"]["type"] != 'application/vnd.ms-excel') && ($_FILES["s_userfile1"]["type"] != 'text/plain'))  
     
      
    //echoing image path to display image
      
    {echo '<img src="';
      echo 
    '/';
      echo 
    $s_path;
      echo 
    $image;
      echo 
    '"><br><br>';
     } 
     
      
    //IF THE FILE IS AN IMAGE, DISPLAY FILE NAME
     
      
    if (($_FILES["s_userfile1"]["type"] != 'image/pjpeg') && ($_FILES["s_userfile1"]["type"] != 'image/png') && ($_FILES["s_userfile1"]["type"] != 'image/gif'))  
      { echo 
    "We have received your file: <strong><font color='#FF0000'>";
        echo  
    $image;
      echo 
    "</font></strong><br><br>[<a href='javascript:window.close();'>Close window</a>]";
      }
     }
    }
    /*for ($i = 1; $i < 4; $i++) { //cycle for large images
     $result = ProcessUploadedFile($i, false);
     if ($result !== true) {
      echo 'Failed to upload image #'.$i.' (large) - "'.$result.'"</br>';
     } else {
      echo 'Image #'.$i.' (large) was uploaded successfully!</br>';
     }
    }*/
    // echo "$key: $val<br />";//debugging info
        
    $lcval strtolower($val);
     
    $pos strpos($lcval,"http://");         
     
    $ServerName $_SERVER["HTTP_HOST"];
    $message .= "<br /> Site: $ServerName \n";
    $visitorip     $_SERVER['REMOTE_ADDR'] ;
    $message .= "<br /> IP: $visitorip\n";
    $msg1 .= "<br /> Please make sure you have entered a Company Name or First and Last Name <br><br>\n";
    $msg2 .= "<br /> Please make sure you have entered an e-mail address<br><br>\n";
     
    //validation
    if (strlen($_POST['company']) <1)  
    {
    echo  
    $msg1;
    }
    if (
    strlen($_POST['company']) >25)  
    {
    echo  
    $msg1;
    }
    if (! 
    ereg('[A-Za-z0-9_-]+\@[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+'$_POST['vis_email']))
    {
    echo  
    $msg2;
    }
    else if (
    strlen($_POST['vis_email']) == )
    {
    echo  
    $msg2;
    }
    //end validation
     
    $vis_email $_POST['vis_email'] ;
     
    //Format Email
    $email    "myemail address, $vis_email";
    $subject  "File Upload";
    $headers  "From: $vis_email\r\n";
    $headers .= "Content-type: text/html\r\n";
    $upload .= "$image";
    //Send Email
    mail($email,$subject,$message,$headers,$upload);
     
    ?>
    Thank you,
    Lynne Hanson
    RL Hanson-Online

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Can't delete files -- re-install prevented
    By JohnMorris in forum General Support
    Replies: 1
    Last Post: 04-30-2008, 10:54 PM
  2. extension_dir does not exists /usr/local/bin/php
    By trondsbr in forum General Support
    Replies: 3
    Last Post: 03-20-2008, 02:09 PM
  3. Can't delete files in cPanel and I am over quota
    By Matt in forum Knowledge Base
    Replies: 2
    Last Post: 06-15-2006, 11:51 AM

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14