My situation
I am following the advice of Yahoo's YSlow and I would like to store my static content on a subdomain. However, I would like to use the function filemtime()
to control the cache of the files.
The problem
The problem is that this function doesn't seem to be working on subdomains.
My question
Is there a way to achieve both of my goals? Or do you have a suggestion for me? Any solution or workaround would be highly appreciated.
Update
The function filemtime()
is working on the subdomain now. I have made a mistake in typing the path. But it still ain't working on other domains.
The error is as follows:
Warning: filemtime() [function.filemtime]: stat failed for ../../otherdomain.com/file.css in /mywebsite/public_html/index.php on line 7