Recognition

Contributions

3 Contributions
  • Published Question

    How do I prohibit access to one of my folders with .htaccess?

    Running a droplet with Ubuntu 14.04 x64. In my /var/www/html directory, I have a include/ folder of files I include in PHP files but aren't standalone. I would like to prohibit direct URL access (return 403 errors) to...
    1 By vincentbello Apache LAMP Stack PHP Ubuntu
  • Published Question

    Including PHP files doesn't work in Cron PHP Scripts

    I am using Ubuntu 14.04 X64. I am setting up a basic Cron job with crontab -e: * * * * * /usr/bin/php /var/www/html/test/test.php >> /var/www/cron/cron.log This is /var/www/test/test.php: <?php include "../tes...
    1 By vincentbello
  • Published Question

    Strange issue with .htaccess file unable to remove PHP extensions

    I am running Ubuntu 14.04 x64. I have enabled mod_rewrite on my droplet. This works (i.e. correctly redirects to testfile.php): RewriteRule ^testfile2$ testfile.php But this doesn't (gives me a 404 error): RewriteR...
    1 By vincentbello