I hope you are all enjoying this weekend.
I am messing around with my raw logs and am having a bit or a problem accessing them in the first place...
I am doing tests with the following code:
$handle = fopen("http://www.domain.com/uploads/accesslog_domain.com_2_25_2006.gz", "r");
which works fine when I manually place the logs in this "uploads" directory, but that is not where they normally reside, when I go to my cPanel and ask to view them, I am sent to:
to download them.
What I would ideally want is for my script to access the logs directly here, hence something like this is what I tried:
$handle = fopen("http://www.domain.com:2082/getaccesslog/accesslog_domain.com_2_25_2006.gz", "r");
But as luck would have it, it gives me a error something like:
Warning: fopen(http://www.domain.co...om_2_25_2006.gz) [function.fopen]: failed to open stream: HTTP request failed!
So, I imagine that the php code cannot access the file because it is referred to with port number... and here I am lost.
Does anyone know how I could access the file from teh script - I can dowload it if I just copy and paste the [a href=\"http://www.domain.com:2082/getaccesslog/accesslog_domain.com_2_25_2006.gz\" target=\"_blank\"]http://www.domain.com:2082/getaccesslog/ac...om_2_25_2006.gz[/a] url, so there is no problem with the file as such, its the script's ability to access it.
Anyhow, I hope someone can point me in the right direction.
take care and all the best