I've some problem with make a simple PHP function to work on my webspace meanwhile it works like expected at my localhost server.

The problem is the following calculation:

echo $Formated = date("Ymd",strtotime("last day of next month"));


This script dosen't seem to work b/c i simply gets the default date 19691231 instead of the correct one 20110630 when running it on my server.

I use windows (XAMP) as my localhost server so i guess there must be some form of problem that lies within the two platforms way of handling it?


Question: Apache access to NTFS linked folders in linux
Answer: I cannot offer a 100% working solution but I have two points which you might want to check.

First, try adding umask to the fstab line. I think this causes the permission error. umask adds correct permission to all files (644) and directories (755) when mounting. You must remount the NTFS folder!

UUID=XXDDXDDXDDDXDDDD /media/myname/lable ntfs user,exec,uid=www-data,gid=www-data,umask=022 0 2


You need to make sure, the www-data user is able to cd into the destination folder:

sudo su www-data -s bash &amp;&amp; cd /media/myname/lable


Second, make sure "FollowSymlinks" is allowed on the specific folder, I think you have that already, but try anyways:

&lt;Directory "/media/myname/lable/"&gt;
    Options FollowSymLinks +Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
&lt;/Directory&gt;
&lt;Directory "/var/www"&gt;
    Options FollowSymLinks +Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
&lt;/Directory&gt;