change php log file path

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
persiangulf
Forum Commoner
Posts: 30
Joined: Tue Jan 29, 2008 12:04 pm

change php log file path

Post by persiangulf »

Hi

I want to change php log file path for my website. how can i do it. I don't have access to php.ini file because I use a shared server.
When i change php_log php.ini configuration variable using ini_set it does not work. Is it a way to do this.

Thanks in advance
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: change php log file path

Post by social_experiment »

http://www.php.net/manual/en/function.error-log.php
Send any error messages to a custom log file. Or contact your hosting provider
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
persiangulf
Forum Commoner
Posts: 30
Joined: Tue Jan 29, 2008 12:04 pm

Re: change php log file path

Post by persiangulf »

Thanks but it's not what i meant. I want exactly to change error_log file path. Is it possible without changing php.ini or not?
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: change php log file path

Post by social_experiment »

Doesn't look like it
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
Post Reply