cornewool Posted September 1, 2010 Share Posted September 1, 2010 I want to stop the warning from showing up Warning Warning: I am able to write to the configuration file: C:/wamp/www/Online_pharmacy/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.. Thanks And also anytime I tried to use the contact us form or send mail I get this error Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\Online_pharmacy\includes\classes\email.php on line 505 Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\Online_pharmacy\includes\classes\email.php:505) in C:\wamp\www\Online_pharmacy\includes\functions\general.php on line 22 Link to comment Share on other sites More sharing options...
Guest Posted September 1, 2010 Share Posted September 1, 2010 Cornelius, You are working on your local machine. When you upload your site to a live server, then you have to worry about the permissions and the other warnings. Running the site on your local machine allows you to configure it and edit it before uploading to a internet host. Chris Link to comment Share on other sites More sharing options...
FIMBLE Posted September 1, 2010 Share Posted September 1, 2010 If you do want to use the mail function on your localhost you can set it up eaily enough. If you are using XAMPP there is a mail server included which you can set to send mails, there are instructions in the package to do this, it takes around 5 minutes to get done. Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
germ Posted September 1, 2010 Share Posted September 1, 2010 I want to stop the warning from showing up Warning Warning: I am able to write to the configuration file: C:/wamp/www/Online_pharmacy/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.. Thanks And also anytime I tried to use the contact us form or send mail I get this error Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\wamp\www\Online_pharmacy\includes\classes\email.php on line 505 Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\Online_pharmacy\includes\classes\email.php:505) in C:\wamp\www\Online_pharmacy\includes\functions\general.php on line 22 Use windowz explorer and make the file "read only". If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.