Forum Moderators: coopster

Message Too Old, No Replies

PHP and the Mail() Problem with my Web Host

Web Host not helping me with some PHP config

         

resolvco

2:12 am on Jul 13, 2005 (gmt 0)

10+ Year Member



Curretly I am using a certain Web Host Company that has the PHP.ini removed and they don't use the standard directory for sendmail.

It's a Linux site, I started out my Script with
<?PHP
set_include_path('/trial');
error_reporting(7);

then I put my PHP.ini in the /trial folder;
[My PHP.ini File]
sendmail_path = "/usr/lib/sendmail -t -i
SMTP = mailhub.registeredsite.com
include_path = ".:/usr/local/
engine = On

So, that's it. I could really use some help on this!

Thanks so Much in Advance.

coopster

11:00 am on Jul 13, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, resolvco.

You won't be able to do what you think you are doing here as that is not how a PHP configuration file works.

The php.ini is read at Apache start and loaded in memory. You can view the contents of the php.ini by using the phpinfo() [php.net] function.

<?php 
phpinfo();
?>

Load that little snippet there into a script, FTP it over to your server and call the file up in your browser. Scan the page that gets displayed and you'll find your sendmail path ;)

resolvco

1:02 am on Jul 15, 2005 (gmt 0)

10+ Year Member



Coopster....you were right. I ran the PHPInfo and did get a bunch! I can't seem to get to the location of the ini file though. They and other sources say that by default, sendmail should be found. This was the comment from their helpdesk: Sorry for the inconvenience, please use mailhub.registeredsite.com for your e-mail smtp in PHP.

And I guess I'm stuck as to where to make this declaration. Shouldn't sendmail already have this in control?

Well Thanks Again and any additional guidance will be appreciated!