403 forbidden error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • amitverma60
    New Member
    • Nov 2008
    • 4

    403 forbidden error

    Hi Guys

    I am getting an error in php.

    403 forbidden error when i try to view my picture kept in a folder e.g
    www.neuronsofts ols.com/upload/75/johal1.bmp comes an error 403 forbidden?

    I cant resolve the error?

    Help me out ! ! !
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    you should check the file permissions. that should give you a clue.

    regards

    Comment

    • amitverma60
      New Member
      • Nov 2008
      • 4

      #3
      Well during uploading i had given all the permission like 0777 or 0755or 0775.

      I can open only .php file .


      No other Format is opening.

      Waiting for your reply

      Regards

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        maybe there's a .htaccess file that prevents file access. as for the file permissions, do the files still have the permissions set by you?

        regards

        Comment

        • amitverma60
          New Member
          • Nov 2008
          • 4

          #5

          well i can't find the .htaccess on my server where i have uploaded the files ??


          please tell me the exact path ?

          Regards

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            it was the only possibility I know besides file permission. bear in mind that on a posix server filenames with a leading dot are system files and thus invisible per default. still you can ask your server admin about system wide settings (like access permission). It could be possible that you can find additional info in the httpd.conf (apache server config file) (dont know how it is on IIS) though none but the server admin (and root) has read (write) permission there.

            regards

            PS: a .htaccess file affects all files in the current and below directories, you may have to look in the directories above your files.

            Comment

            • amitverma60
              New Member
              • Nov 2008
              • 4

              #7
              I appreciate your advice , Actually I have taken the Web hosting From Yahoo small business site i.e. www.smallbusine ss.yahoo.com and i am new to it. When i open its Control Panel , Manage sites is an option where i can see my folders.
              Only those Folders are displacing which i had used in my sites.



              I had seen many times where i can find the .htaccess but in vain.

              I still don't don't know whch server i am using for my php.

              I had used phpinfo() to get the information , but i am not getting the server name ?



              I cant understand why .php files if i upload can be seen in POP UP WINDOW using Javascript But if i try to open any other format i cant open



              Help me out in solving this problem.

              Comment

              • pbmods
                Recognized Expert Expert
                • Apr 2007
                • 5821

                #8
                Heya, amitverma60.

                Are you running Apache or IIS?

                Comment

                • jpenguin
                  New Member
                  • Aug 2007
                  • 41

                  #9
                  I find that it is easy for permissions to become corrupted; do a
                  Code:
                  CHMOD  -R 777
                  (or 775) on your upload folder

                  Comment

                  Working...