Hi all, I hope this is an easy one for you guys...
I am using PHP 5.2.5 and IIS 5.1
I created a "web server" with some 3gp files on the main directory, when I need to retrieve the size of any file on the main directory I just type something like:
size.php
<?php
echo filesize("somefile.3gp");
?>
Go to the browser and type "http://my_domain.com/size.php" and I see the size of the file... no troubles whatsoever.
Now, I add a virtual directory to my "web server" called "Stations" and put the same file somefile.3gp on that directory. If I type on my browser "http://my_domain.com/Stations/somefile.3gp" my browser ask me if I want to view or save the file (so the path is correct and the file exists).
How do I show the filesize of a file under a subdirectory ??
I tried hard and looked at similar cases before posting this, I must be really dumb !
<?php
echo filesize("Stations/somefile.3gp");
?>
does not work (warning ...stat failed...)
<?php
echo filesize("http://my_domain.com/Stations/somefile.3gp");
?>
does not work (warning... stat failed...)
Of course I tried with all variants I could think of...
Please show me the light !🙂
I will be delighted to add any more info that you may need, just let me know.