On other hosting service I have had major problems using the sendmail function (i.e. mail()) from php. Basically the script times out waiting for sednmail to return from the function call.
Anyone else had this problem and is there a solution?
Notice from m^e:
Make your topic titles as descriptive as possible. Topic title to message body relevance is counted as a big factor on this board, and is the key to elicitation of good replies from other members.
Hai, The problem you are facing is not in PHP, but in your hosting provider. One reason is that you have no permission to use sendmail, second is that IP address si not in the list of allowed domains for the receiver.
Check out with your host and check your script with other hostings. Then you will know what the real probelm is?
My guess is that sendmail has been disabled but somehow mail() is allowed in PHP. So php tries to call sendmail but there's no reply (hence the timeout).
If this is the case your host could disable mail() in PHP aswell.
Other option is that sendmail isn't just working, because of heavy spamming or something.
I haven't really read much about sessions, i usually study PHP by viewing other's codes and
learning from it. Here's what keeps on popping out when I open the page. CODE Warning:
session_start() : Cannot send session cookie - headers already sent by (output started at
C:\Program Files\xampp\htdocs\maple-radio-live\loggingin.php:7) in C:\Program
Files\xampp\htdocs\maple-radio-live\loggingin.php on line 40 and CODE Warning: Cannot
modify header information - headers already sent by (output started at C:\Program
Files\xampp\htdocs\maple-radio-live....
On this shell, that has shared apache, php and gd, I have this file working.
http://users.phoenix-network.org/~tobylane/gd.php But, with the normal htaccess of CODE
RewriteEngine on RewriteRule ^sig.png$ gd.php http://users.phoenix-network.org/~tobylane/sig.png
Doesn't work. Also, another gd picture doesn't display the text. CODE
header("(anti-spam-(anti-spam-(anti-spam-content-type:))) image/png"); $im =
imagecreatefrompng("button.png"); $bg = imagecolorallocate($im,255,55,25); imagefill($im,0,0,$bg);
imagestring($im,3,20,5,"Your IP is ",$b....
We have to make something in PHP for school, so I decided to make a complete photoalbum. One of the
things that it can is creating and storing thumbnails, but here is where the problems start. The
thumbnails have to be stored in a subfolder called 'thumbnails', if this folder doesn't
exist, my script creates this folder and everything works like it is supposed to be. But it
doesn't do that the way I want. The folder is made with: CODE mkdir($thumbnail_folder,
0777); but when I check it via FTP, it is set to 755. Even worse is that I can't acce....
This is quite a bit of problem I am facing, and I cannot point exactly where I am going wrong. I
have been lurking around here at the Asta Host forums with regard to login and user authentication
scripts and I have got as far as this: - Starting a session - Registering a session variable -
Using the variable to check if the user is authenticated or not. - Authenticating the user through
MySQL database - Logging of the user, by setting the session variable to un-authenticated I have
been able to achive the following things too that I think is not related to this proble....
For the new version of my website I'm trying to make a very simple newssytem based on php. Each
newsitem will get it's own html page, something like this: CODE Welkom HERE
COMES THE TXT All other data will be stored in a file called news.inc CODE $news
= array(); $news = '110706_jovolka.html'; $news = '110706_lorum.html'; $news =
'090706_welkom.html'; $title = array(); $title = 'Over JoVolKa'; $title =
'Lorum Ipsum'; $title = 'Welkom'; $date = array(); $date = '11/....
I've been working on my site, and the first time i tried my hand witha php guestbook script, i
did good, it worked on my host. but although i successfully installed an "send email" php script,
but somehow although on the site when i tired out the form, though it says email has been sent,
i've not received any email at all!!! and i've checked the account that was to specified
for the email to be sent , i have entered everything right. This are the steps the manual asked me
to do, QUOTE 1) Open up config.php with a word editor such as notepad. Fill ....
I am not the most regular contributer to PHP Builder but every now and then there is just a question
from a newbie or someone that can not be fixed. I do not know if it is that they do not know how to
ask the question but this one has been going on too long. It seemed from the question that they
asked that they wanted to insert some data froma text file into the MySQL database. So after looking
at their query (the original question) QUOTE Here's part of my code: Code: $result =
mysql_query("INSERT INTO AL_BVA (contact, time, phone, address, city, state, zip, ....