Toggle navigation Home Store Browse All ----- Webhosting Domains Quotation (Webdesign Services) eMail Hosting SEO- Search Engine Optimisation GRAPHIC DESIGN Dedicated/ VPS Webhosting BULKSMS Mobi Applications Website Maintenance Register a New Domain Transfer Domains to Us Announcements Knowledgebase Network Status Affiliates Contact Us Account Login Register ----- Forgot Password? Categories 9 CGI Scripts 34 Databases 28 Dedicated Servers 1 DNS 15 Domains 5 eCommerce 79 eMails 27 FTP 1 General Issues 1 MX Records 1 Nameservers 28 Other 104 Scripting 254 Web Hosting Control Panel 9 Web Resources 8 Web Stats & Logs 11 Web Tools 8 Website Help and Diagnostics 4 Windows Hosting Categories CGI Scripts (9) Databases (34) Dedicated Servers (28) DNS (1) Domains (15) eCommerce (5) eMails (79) FTP (27) General Issues (1) MX Records (1) Nameservers (1) Other (28) Scripting (104) Web Hosting Control Panel (254) Web Resources (9) Web Stats & Logs (8) Web Tools (11) Website Help and Diagnostics (8) Windows Hosting (4) [PHP2.05] What are the correct file permissions for a PHP file? As a general rule, the permissions of a PHP file should take one of two sets of values, either 644 or 600.644 - A PHP file needs to be world readable if it is to be called via your web browser (meaning it is being processed by Apache). Do not include important passwords or secret keys in world-accessible files, as this opens your site up for those with malicious intent.600 - For include files, typically containing unique keys or passwords (e.g. MySQL credentials, PayPal API Keys). If a PHP file is not accessed directly via your web browser (only referenced via other PHP files), use these permissions. Was this answer helpful? Yes No Print this Article Also Read [PHP2.02] What is the path to perl? /usr/bin/perlYou can also find information on paths to other useful programs by logging in to... [PHP2.09] Does Hosting cPanel support Image::Magick? Does Hosting cPanel support Image::Magick? [PHP2.04] How do I query a MySQL database from a PHP script? Use the following outline to connect and begin querying the MySQL server from within your PHP... [PHP2.12] Can PHP5/PHP4 code be put in files with the .html/htm file extension? It is possible to run php code in .html files by adding the following to a .htaccess... [PHP.15] How do I install Locked Area Lite? Before you install Locked Area Lite you need to create a folder that you want to protect - this... Support My Support Tickets Announcements Knowledgebase Downloads Network Status Open Ticket × Close Title Loading...