PHP send mail Errors and Upload Error

i have created a form its working fine but i have two problems:

  1. i am receiving error message :

Warning: mail(/var/log/phpmail.log): failed to open stream: Permission
denied in /www1/xxx/Contact_Us.php on line 115.

  1. i can't upload files more than 20KB even in my code i allow till 2 MB and on the php.ini upload_max_filesize is 8MB and post_max_sizeis 8MB.
    So please can anyone help me with this two problems because i am really stuck there and don't know what to do and its the last problem i face and i can't solve it.
    Thanks in advance;


    1. Change the log location to somewhere web server can write.
    2. Is this a shared hosting? If so then your config is superseded by global one.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion