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!
[error] [client 203.125.51.30] PHP Warning: error_log(/var/log/mobile365/incoming/test.log) [<a href='function.error-log'>function.error-log</a>]: failed to open stream: Permission denied in /srv/www/htdocs/gateway/sms_incoming.php on line 7
Thats helped. Thanks for the solution and sorry for the multiple posts.
Anyway, this solution had give the permission to everyone to access the files. May I know is there any way I can assign an user and user group for php so i can chown the "/var/log/mobile365/incoming" folder which will only used by php only.
Thats helped. Thanks for the solution and sorry for the multiple posts.
Anyway, this solution had give the permission to everyone to access the files. May I know is there any way I can assign an user and user group for php so i can chown the "/var/log/mobile365/incoming" folder which will only used by php only.
Many Thanks.
I don't think that is possible, but if your server is /websitefiles/var/... for the log file and /websitefiles/public_html/.... for the actual files that are "live" on the internet, then there is no reason to do that because unless you have a "live" file that allows you to read the log, and internet user can't get to it.. unless they exploit you somehow on another page...freakn hackers...grrrr..
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi,
I am trying to retrieve data from xml file POST from remote server. I am using SimpleXMLElement to do this. But when i try to use the SimpleXMLElement->getName() function, it gave me this error:
[Thu Aug 23 13:46:34 2007] [error] [client 62.80.122.178] PHP Fatal error: Call to undefined method SimpleXMLElement::getName() in /srv/www/htdocs/gateway/sms_incoming.php on line 10
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]