f



php send mail problem

Current, I have a function to send UTF-8 encoded HTML Format email to
user.

But my found that the produced email sometime accidently being injected
with the ! sign.......

e.g. <td> sometime become <!td>

here is the code for that function


$sql = "select * from user where userid='$userid'";
$res = send_sql($sql);
//Get Reserve staff info
$row = mysql_fetch_array($res);
$fusername = $row["UserName"];
$femail = $row["Email"];
$message= ERNST."<html><body>";
$message.= "Hi ".htmlspecialchars($fusername).",<br><br>";
$message.= "Please note that the system accepted your borrowing of
files at ".date("d M Y H:i:s")."<br>";
$message.= "<br>";
$message.= "<table width='100%' border='1'>";
$message.= "<tr align='center'
bgcolor='#79B1D2'><th>FileID</th><th>Group</th><th>Client
Name</th><th>Client Code</th><th>Year
End</th><th>Type</th><th>Description</th></tr>";
$i=0;
foreach ($fileid as $x) {
	$cname="";$gname="";$cc="";$yr="";$type="";$des="";
	$query  = "SELECT
c.clientname,g.groupname,clientcode,yearend,type,Description";
	$query .= " FROM Client c, f_group g, f_folderlist fl,f_file f";
	$query .= " where fl.fileid='$x' and fl.fileid=f.fileid and
fl.clientid=c.clientid and c.grpid = g.gpid" ;
	$res2 = send_sql($query);
	$j=1;
	while($row2 = mysql_fetch_array($res2)) {
		$cname .= $j . ": " .htmlspecialchars($row2["clientname"]);
		if ($j<=mysql_num_rows($res2)-1) $cname.="<br>";
		$gname = $row2["groupname"];
		$cc=$row2["clientcode"];
		$type=$row2["type"];
		$yr=$row2["yearend"];
		$des=$row2["Description"];
		$j++;
	}
	$message.="<tr align='center'><td>".htmlspecialchars($x)."<td
align='left'>".htmlspecialchars($gname)."<td
align='left'>".$cname."<td>".htmlspecialchars($cc)."<td>".htmlspecialchars($yr)."<td>".htmlspecialchars($type)."<td>".htmlspecialchars($des);
} //endforeach
$message.= "</table>";
$message.= "<br>";
$message.="<table width='100%'><tr><td>Your truly,<BR>System
Administration/Operator<td align='right'>Date:
".htmlspecialchars(date("d M Y"))."</table>";
$message.= "</body></html>";
$headers ="From: MailDaemon <maildaemon@hk.ey.com>\r\n" .
'X-Mailer: PHP/' . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html; charset=utf-8\r\n" .
"Content-Transfer-Encoding: 8bit\r\n\r\n";
			
			
@mail($femail, "Notify of File borrowing", $message,$headers);

0
11/17/2005 2:46:00 AM
comp.lang.php 32646 articles. 0 followers. Post Follow

2 Replies
800 Views

Similar Articles

[PageSpeed] 57

Hello,

on 11/17/2005 12:46 AM khng said the following:
> Current, I have a function to send UTF-8 encoded HTML Format email to
> user.
> 
> But my found that the produced email sometime accidently being injected
> with the ! sign.......

I think sendmail does that when the message body is not encoded 
properly. You need to encode the message body with quoted-printable 
encoding. You may want to try this MIME message class that can send your 
  message body with UTF-8 characters encoding them as quoted printable:

http://www.phpclasses.org/mimemessage


-- 

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
0
mlemos (662)
11/18/2005 12:26:43 AM
Thank you for your ideal, finally I found the solution.

I hop that this is useful for other.

The injection of other symbol is due to the fact that the message is
too long without any line break character.

So inorder to kill that problem, I just add \r\n between every 50
character but not inside html tag

0
12/2/2005 4:24:38 AM
Reply:

Similar Artilces:

Problem with Mail()
In my PHP 5.0 at home, I'm using the following code to successfully write to a database and also send out an email. For some reason, when I take this code to work, it still writes to the database but doesn't send mail so we're (me and the I.T. guy) trying to find out whether it's the difference between PHP 4 or something else with email security. Does anyone here have experience with mail() in PHP 4 to know whether PHP 4 had issues with mail() that were fixed with PHP 5 ???? We've been chasing this from the mail server side at work when perhaps its some nuance between versions of PHP. Appreciate any help... Chris /* > $to = stripslashes($to); */ $to = stripslashes($to)."\r\n"; $subject = stripslashes($subject); $text = stripslashes($text); /* > mail('$to',$subject, $text); */ mail($to, $subject, $text, "From: admin@localhosthome.com"); cover wrote: > $to = stripslashes($to)."\r\n"; > Might or might not be the cause, but you should remove the trailing CRLF here. JW On Mon, 27 Feb 2006 22:33:57 +0100, "Janwillem Borleffs" <jw@jwscripts.com> wrote: >cover wrote: >> $to = stripslashes($to)."\r\n"; >> > >Might or might not be the cause, but you should remove the trailing CRLF >here. Thanks for the reply. I tried it after reading your post and no change... Thanks again, cover wrote: > In my PHP 5.0 at home, I'm using the following co...

Problem sending e-mail from PHP
I'm running FreeBSD 4.8 with Postfix and PHP. Postfix is working fine. I'm using a couple of PHP applications which fail to send mail. I can't find anything in the maillog. When using SMTP from PHP mail is being sent. I want the native PHP mail function to work properly. In my php.ini the sendmail_path points to the correct location for the postfix sendmail wrapper. The sendmail wrapper also works fine when used from a command line. Here are the relevant parameters for mail in php.ini [mail function] ; For Win32 only. #SMTP = localhost ; For Win32 only. #sendmail_from = me@localhost.com ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). sendmail_path =/usr/sbin/sendmail -t -i Any hints on what the problem might be and how to solve it ? - Ron In article <bfv7t4$mam$1@news.hccnet.nl>, "Ron Bakker" <Ron.Bakker@hccnet.nl> wrote: > I'm using a couple of PHP applications which fail to send mail. > I can't find anything in the maillog. > [snip] > The sendmail wrapper also works fine when used from a command line. > [snip] > Any hints on what the problem might be and how to solve it ? chmod 4755 /usr/libexec/sendmail/sendmail Any luck? hth -- Bulworth : funha@fung.arg | My email address is ROT13 encoded, decode to mail --------------------------|-------------------------------------------------- <http://www.phplab...

Send array from php to php
HI every one I' try to send array from web page to php file but no data are show I'm using session to store data and this is my code //////////////////////////////////////////////////////////////////////// $data = $cart_items; session_register('data'); foreach ($cart_items as $cart_item) { echo "<tr>"; echo " <td><span class='style2'>".$cart_item->name."</span></td>"; echo " <td><span class='style2'>".$cart_item->description."</ span></td>"; echo " <td><span class='style2'>".$cart_item->price." S.R.</span></ td>"; echo " <td><span class='style2'>".$cart_item->quantity."</span></ td>"; echo " <td><span class='style2'>".$cart_item->price * $cart_item- >quantity."</span></td>"; echo " <td><span class='style4'><a href='order.php?action=del&id=". $cart_item->object_id."'>[del]</a></span></td>"; echo "</tr>"; \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \ and this is my php code to get the data //////////////////////////////////////////////////////// <?php foreach ($data as $item) { echo "<tr>"; print " &l...

Problem sending mail with sendmail and php
When i send mail using mail() in php i receive from my external smtp server a message such that: Sep 3 17:30:15 xxxxxxx postfix/smtpd[898]: NOQUEUE: reject: RCPT from unknown[yyyyyyyy]: 450 <apache@zzzzzzzzzz.uuu.hhh.it>: Sender address rejected: Domain not found; from=<apache@zzzzzzzzzz.uuu.hhh.it> to=<marco.pppppppppppppp@xxxxxxx.it> proto=ESMTP helo=<apache@zzzzzzzzzz.uuu.hhh.it> Where zzzzzzzzzz is name of the Linux machine uuu.hhh.it is the domain I need that sender is someone@uuu.hhh.it and not apache@zzzzzzzzzz.uuu.hhh.it Do you know where must i ...

Scrolling problem with php web page
Why doesn't my left nav bar scroll properly? For some reason, my left nav bar does not scroll properly on my php page - index2.php Below is a link to the page with a detailed description of the problem. The page itself is a demonstration of the problem. http://clearpointsystems.com/112/index2.php I'm not sure if the problem is with the style sheet, IE6, my code, or what. Any help is appreciated. Thanks! "deko" <nospam@hotmail.com> wrote in message news:GMgKc.11657$Pn7.9107@newssvr25.news.prodigy.com... > Why doesn't my left nav bar scroll properly? > > For some reason, my left nav bar does not scroll properly on my php page - > index2.php Below is a link to the page with a detailed description of the > problem. The page itself is a demonstration of the problem. > > http://clearpointsystems.com/112/index2.php > > I'm not sure if the problem is with the style sheet, IE6, my code, or what. > Any help is appreciated. Thanks! > wrong newsgroup.... anyway, the problem appears to be referencing an external stylesheet. when the css directives are placed within the page it works fine. still, seems to be limitation with IE6 not rendering page and scrollong properly when using external style sheet. "deko" <nospam@hotmail.com> wrote in message news:GMgKc.11657$Pn7.9107@newssvr25.news.prodigy.com... > Why doesn't my left nav bar scroll properly? > > For some reason, my left na...

PHP mail() function failing to send mail
Hi everyone, Our setup: PHP 4.3.11, FreeBSD 5.3 RELEASE, Sendmail 8.1, 1 host environment, 2 jails. Our problem: While we can send email from the command line just fine in one of the jails, we cannot use the php mail() command to send email using sendmail at all. The function, when executed, does absolutely nothing. No error, no reports to the maillog, nothing. I've read somewhere that it's "not possible" to send mail using the php mail() function within a freebsd jail, but i'm nearly certain we have it working this way on another server, but can't seem to figure out the issue. Anyone know any tests we can do to learn more? Thanks. Check out the log messages from your sendmail... If it's not logging anything, try increasing (temporarily) the log level (24 should be more than enough) Probability says that you're running into a permission issue with sendmail. Probably your PHP/Apache user is not allowed to relay email. I'm not sure this might apply since I am not familiar to BSD, but, had similar problems with a RH machine just a few days ago ...

php mail() not sending to mail Clients (ie, Outlook, Apple Mail, thunderbird, etc..)
I have a send mail script on my site that. The emails are recieved by gmail, and yahoo, but not to mail clients like Outlook, Mail, etc...) Is this a problem with the script, or is it something I must change in php ini file? Thanks in advance for any help. here is the code. (im using it in conjunction with javascript for some AJAX stuff) if(!isset($_GET['action'])) { die("You must not access this page directly!"); //Just to stop people from visiting contact.php normally } /* Now lets trim up the input before sending it */ $name = trim($_GET['name']); //The senders name $to = trim($_GET['maily']); //The senders email address $place = trim($_GET['place']); //The senders email address $subject = "you have recieved mail"; $headers = "From:$name"; $message = "{$name} deemed you worthy of receiving the following information/exchange from Trumpet.\n\n Follow This Link {$place}"; mail($to, $subject, $message,$headers); //a very simple send echo 'contactarea|<p class="sent">Article Sent!</p>'; //now lets update the "contactarea" div on the contact.html page. The contactarea| tell's the javascript which div to update. ?> shybe wrote: > I have a send mail script on my site that. > > The emails are recieved by gmail, and yahoo, but not to mail clients > like Outlook, Mail, etc...) > > Is this a problem with the script, or is it something ...

php mail problem
I think I have it narrowed down. If I do "sendmail -t dave@myhost.com" it works great. No errors in the log. If I do "mail -s "test" dave@myhost.com" it also works great. No errors in the log. So I feel good in saying that sendmail is working properly. According to the www.php.net website sendmail is what php uses. I also verified this in the php.ini file. So that leaves either a misconfiguration in php or bad data being fed to the mail client. I did a "mail("dave\@myhost.com","test subject", "Test Body"); " as sugg...

about send mail with php
Hello, I developed a PHP to send confirmation mail to my users. The users complainthat the mail goes to the SPAM section each time. What is the reason for this? I tested it several times, and I always get the same result. The mail always gets spammed. This is very bad because if a user doesn't get the confirmation, they won't even think that it's in their spam mail. The mail would therefore get stuck in their spam mail and I'll lose my clients. Looking forward to your reply. Thanks! On Fri, 26 Sep 2008 18:36:55 +0200, Marise wrote: > Hello, > > I developed a PHP to send confirmation mail to my users. > The users complainthat the mail goes to the SPAM section each time. > What is the reason for this? I tested it several times, and I always get > the same result. The mail always gets spammed. This is very bad because > if a user doesn't get the confirmation, they won't even think that it's in > their > spam mail. The mail would therefore get stuck in their spam mail and I'll > lose my clients. > > Looking forward to your reply. > > Thanks! > Host your website in a better neighborhood, maybe? -- Windows is a pane in the ass.... Marise wrote: > Hello, > > I developed a PHP to send confirmation mail to my users. > The users complainthat the mail goes to the SPAM section each time. > What is the reason for this? I tested it several times, and I always get > the same resul...

php not sending mail
Hello All, I am trying to send an email from a php page, but it always get stuck in the mail queue as the user that apache is running as, although i can send emails from php scripts Any suggestions ? Thanks, onlineviewer wrote: > Hello All, > > I am trying to send an email from a php page, but it always get stuck > in the mail queue > as the user that apache is running as, although i can send emails from > php scripts > > Any suggestions ? > > Thanks, > Hi, What do you mean when you say 'gets stuck in the mail queue'? Does that mean is never gets out, or that receiving server (smtp) needs a little time to get it delivered? Regards, Erwin Moller onlineviewer wrote: > Hello All, > > I am trying to send an email from a php page, but it always get stuck > in the mail queue > as the user that apache is running as, although i can send emails from > php scripts > > Any suggestions ? > > Thanks, > Sorry, my crystal ball is broken, so I can't see your code. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== ...

PHP Mail problems
Hi all, I've got a problem with sending mail from my local box! Anytime I try to send mail through a script I get the following error: Warning: mail() [ function.mail]: SMTP server response: 501 Bad address syntax in *** I know it's not the script as it works fine on my hosts web server... PHP ini snip is as follows [mail function] ; For Win32 only. SMTP = smtp.metronet.com smtp_port = 25 ; For Win32 only. sendmail_from = MyMail@tesco.net My config is: PHP 5.05 Apache 2 Any help/pointers much appreciated! Tobierre > I've got a problem with sending mail from my local box! Anytime I try to > send mail through a script I get the following error: > > Warning: mail() [ > function.mail]: > SMTP server response: 501 Bad address syntax in *** This is not a PHP problem -- you need to fix your SMTP server (sendmail, postfix, or whatever) Start by making sure your config file is accurate, you may want to use WebMin for this since MTA config files are famous for being hairy. If that doesn't help, try downloading the the most recent version, and compile from source if possible. ...

Problem with PHP mail()
The built in mail() function for PHP is supposed to return true/false. Unfortunately, instead of mine returning a false, it crashes with an "Internal Server Error" message. Is this a common problem, and can it be fixed through code? I called my IPP's tech support. The tech thought it was weird, and put in a service order - but I'm still curious if it's an error I can handle. Any thoughts? ..oO(Sanders Kaufman) >The built in mail() function for PHP is supposed to return true/false. >Unfortunately, instead of mine returning a false, it crashes with an >"Internal Server Error" message. There should be a more detailed message in the server's error log. Micha Hello, on 09/29/2007 12:15 AM Sanders Kaufman said the following: > The built in mail() function for PHP is supposed to return true/false. > Unfortunately, instead of mine returning a false, it crashes with an > "Internal Server Error" message. > > Is this a common problem, and can it be fixed through code? > > I called my IPP's tech support. The tech thought it was weird, and put in a > service order - but I'm still curious if it's an error I can handle. > > Any thoughts? You may want to take a look at this class that comes with wrapper functions that emulate the mail() function without using it. If you can use an SMTP server, you can use the smtp_mail() function. If you can run sendmail or equivalent, you...

Compatibility problem, php 4 vs php 5? Using wamp 5, having some problems
Sorry if I too obviously clueles, but I'm just starting editing our web-site that was prepared by someone else. The web-site is running at a Norwegian web-hotel (www.domeneshop.no), running php 4. Our site (www.widenoja-design.no) works ok, menu-choices and all. When I serve the same files from my local disk for editing and testing, the menus no longer work. I'm running Wamp 5 with the php 4 module loaded and enabled. Any clues? Is there any directives I can put in my files to force php 4 execution? I am able to switch to another software bundle locally if you have a strong recommendation. Thanks for any pointers! -- Christian Aastorp Message-ID: <v0ccs1pmg5a4temr3g2gtes0nf1p708p81@4ax.com> from Christian Aastorp <> contained the following: >Any clues? Is there any directives I can put in my files to force php >4 execution? At a guess, it sounds like a register globals problem. Register globals is off in newer versions of PHP. Where you have a menu item like this http://www.widenoja-design.no/index.php?CAT=tjenester is your script accessing the choice by looking for $CAT ? If so you need to change that to $_GET['CAT'] or $_REQUEST['CAT'] -- Geoff Berrow (put thecat out to email) It's only Usenet, no one dies. My opinions, not the committee's, mine. Simple RFDs http://www.ckdog.co.uk/rfdmaker/ ...

About PHP::: Error/Problem PHP Warning: mysql_fetch_array():
Hi Everyone ============================================================== About PHP::: Error/Problem PHP Warning: mysql_fetch_array(): ============================================================== In the past i use my code/script work fine with Mandrake 9.1 - 10.1 ( + apache ,mysql ) Now i move to redhat EL4 with the same code/script I got error can't login to my code. and found error on /var/log/httpd/error_log like this PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html/website_in_server/showdata.php or PHP Warning: my...

PHP Training Institute In Delhi, Live Projects on PHP. Short Term PHP Courses, PHP Scripts, PHP Training with Live Projects.
Vserve Global offers short term PHP: Hypertext Preprocessor Training Course, which is a widely used, general-purpose scripting language that was originally designed for web development, to produce dynamic web pages. It can be embedded into HTML and generally runs on a web server, which needs to be configured to process PHP code and create web page content from it. It can be deployed on most web servers and on almost every operating system and platform free of charge.PHP is installed on over 20 million websites and 1 million web servers. TOPICS:- >> Core PHP Language >> HTML, Cascad...

php outside php (?)
Sounds weird, i know. What i want/wonder is the following: PHP can do the next: <?php if($foo == 'bar') { ?> Ow yeah, foo is bar! <?php }; ?> But how can i do the following: <?php $foo= ?> this is what foo looks like. <?php }; ?> This way i could edit the content of $foo in DW's design-view. I hope it's clear enough for you all to understand... Greetings frizzle. frizzle wrote: > But how can i do the following: > > <?php > > $foo= > > ?> > this is what foo looks like. > <?php > > }; > > ?> > > This way i could edit the content of $foo in DW's design-view. > I hope it's clear enough for you all to understand... <?php ob_start(); ?> this is what foo looks like. <?php $foo=ob_get_clean(); ?> -- Justin Koivisto - justin@koivi.com http://koivi.com Wow, little late on the reply, but i still wanted to thank you for your help. This is exactly what i meant, and it works great! :D Thanks again. ...

php to php obj
Hi All, Is there any tool to convert the .php files into its object files in deploying the files to other's server like java classes are deployed? Thanks in advance --AR John7481 <arjohn7481@hotmail.com> wrote or quoted: > Is there any tool to convert the .php files into its object files in > deploying the files to other's server like java classes are deployed? To what end? Do you want a PHP obfuscator? They tend not to be needed - since the code remains on the server. Do you want a PHP squeezer? Again - since PHP remains on the server that is of reduced importance. PHP obfuscators and squeezers are out there - but what exactly are you looking for? -- __________ |im |yler http://timtyler.org/ tim@tt1lock.org Remove lock to reply. With total disregard for any kind of safety measures Tim Tyler <tim@tt1lock.org> leapt forth and uttered: > John7481 <arjohn7481@hotmail.com> wrote or quoted: > >> Is there any tool to convert the .php files into its object >> files in deploying the files to other's server like java >> classes are deployed? > > To what end? > > Do you want a PHP obfuscator? They tend not to be needed - > since the code remains on the server. > > Do you want a PHP squeezer? Again - since PHP remains on the > server that is of reduced importance. > > PHP obfuscators and squeezers are out there - but what exactly > are you looking for? I think he'...

PHP within PHP...
I took over the support of a website that is set up something like this inside one of the pages: include_once("header.php"); <?php //to get the content of the page they do this: $content = mysql_query("select content etc...); echo $content; ?> include_once("footer.php"); I am having problems evaluating any php that is used in the mysql content. Is there a way to get the mysql withing the mysql to run? Thank you for your time, Mandragon On Sep 17, 12:56 pm, Mandrago...@gmail.com wrote: > I took over the support of a website that is set up something like > this inside one of the pages: > > include_once("header.php"); > > <?php > //to get the content of the page they do this: > $content = mysql_query("select content etc...); > > echo $content; > ?> > > include_once("footer.php"); > > I am having problems evaluating any php that is used in the mysql > content. Is there a way to get the mysql withing the mysql to run? > > Thank you for your time, > > Mandragon Sorry, The question should read: "Is there a way to get the php withing the echo $htmlcontent to run?" Of course you are, $content is a resource. The MySQL Query resource. try this: $content = mysql_query('bla bla bla'); while ($row = mysql_fetch_assoc($content)) { $result[] = $row; } $content = $result; Now you can use $content ;). In answer to your edit... eval($co...

sending PHP mail from my laptop?
I can set the host and port, but I don't see that there is anywhere to specify the username and password for an email account on a remote server. Is that do-able? RJ_32 wrote: > I can set the host and port, but I don't see that there is anywhere to specify > the username and password for an email account on a remote server. > > Is that do-able? > Not with the mail command. However, the PHPMailer class as Micha suggests can handle such things (and more) for you. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== Jerry Stuckle wrote: > RJ_32 wrote: >> I can set the host and port, but I don't see that there is anywhere to >> specify >> the username and password for an email account on a remote server. >> >> Is that do-able? >> > > Not with the mail command. > > However, the PHPMailer class as Micha suggests can handle such things > (and more) for you. > yes, thanks, easy to use. However, to enable SSL, I had to add to my php.ini: extension=php_openssl.dll and also to place a copy of that dll into the .../ext directory. It's apparently already finding libeay32.dll because my system path still points to the old PHP installation ...

PHP mail() function problem
Hi all, I want to send mails using php mail() function, my web server is apache on linux i just add this line to my code ini_set('sendmail_from', 'users@must.edu.eg'); i'm sending emails to users at the same domain ....@must.edu.eg but it didn't send mail also it don't give any errors but i'm sure that mail server is working coz when i'm trying to send mails to the same domain through outlook it works well. i tried to send to hotmail it sends just one mail but when i tried again the same happened no mails sent with no error. where do u think the problem???? noha khalifa wrote: > Hi all, > > I want to send mails using php mail() function, my web server is > apache on linux i just add this line to my code > ini_set('sendmail_from', 'users@must.edu.eg'); > > i'm sending emails to users at the same domain ....@must.edu.eg but it > didn't send mail also it don't give any errors > > but i'm sure that mail server is working coz when i'm trying to send > mails to the same domain through outlook it works well. > > i tried to send to hotmail it sends just one mail but when i tried > again the same happened no mails sent with no error. > > where do u think the problem???? You didn't show your code, so it's impossible to tell. You shouldn't be using ini_set for 'sendmail_from' - that's just a default value. Rather, you should be ...

how to enable permissions in htaccsess for php file.php script problems
I am having problems with a ftp to http php scrip: Warning: ftp_get(): open_basedir restriction in effect. File(/ftp_login.html.600490715) is not within the allowed path(s): (/home:/tmp:/usr) in /home/jbsmedia/public_html/ftp.php on line 352. when i download files, when i upload i get Upload failed! Can't create temp file?. as far as i fuigured i set my ftp file folder cmod 777. then must have to do somethin to the htaccess file. my host is running a unix appache server. i found it has something to do with internal server error 500 and mkdir command= mkdir /var/tmp/xfers && chmod 1777 /var/tmp/xfers */ $phpftp_tmpdir="/var/tmp/xfers" can anyone help sorry type error http to ftp script ...

how to use the PHP path to send something explicitly to the PHP parser?
Hi. I'm messing around with some stuff in an .htaccess file. Among other things, I'd like to send my html files to the PHP parser. I'd also like to rewrite the urls using Apache mod_rewrite, so that the query string disappears, but the variables are still recorded. For all these tasks, I need to know the PHP path. When I run phpinfo, I see this listed as the Path: PATH /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin I'm not sure how to use that infomation. Do I use all of it? Some of it? lkrubner@geocities.com wrote: > Hi. I'm messing around with some stuff in an .htaccess file. Among > other things, I'd like to send my html files to the PHP parser. I'd > also like to rewrite the urls using Apache mod_rewrite, so that the > query string disappears, but the variables are still recorded. For all > these tasks, I need to know the PHP path. When I run phpinfo, I see > this listed as the Path: > > PATH /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin The path in php is where the interpreter will look for system commands when a full path is not provided. For instance: <?php $contents = `ls -fl`; ?> PHP will look in each of the PATH directories for the ls command: /bin/ls /usr/bin/ls /sbin/ls /usr/sbin/ls /usr/local/bin/ls /usr/local/sbin/ls If none of the above are found, then you will get an error... > I'm not sure how to use that infomation. Do I use all of it? Some of > it?...

php mail() send to outside addresses
Howdy, I have successfully setup my php.ini file on a web server to communicate with my Microsoft Exchange Mail server, and can test the ability to send mail using the mail() function to internet mail addresses. (mailboxes on our network), However, when attempting to send mail to an outside address (ex: someone at gmail dot com) the mail() returns "failed". Here's my setup. Windows 2003 IIs 6.0 webserver Windows 2003 box running Exchange 2003 Is it a change I need to make to php.ini to allow mail to outside e- mail domains? Is it a setting I need to change within Exchange? Or is it simply a limitation of mail() to not be able to send mail to outside domains? Greatly appreciate your responses! Chris xx75vulcan wrote: > Howdy, > > I have successfully setup my php.ini file on a web server to > communicate with my Microsoft Exchange Mail server, and can test the > ability to send mail using the mail() function to internet mail > addresses. (mailboxes on our network), > > However, when attempting to send mail to an outside address (ex: > someone at gmail dot com) the mail() returns "failed". > > Here's my setup. > Windows 2003 IIs 6.0 webserver > Windows 2003 box running Exchange 2003 > > > Is it a change I need to make to php.ini to allow mail to outside e- > mail domains? Is it a setting I need to change within Exchange? Or is > it simply a limitation of mail() to not be able to send ...

Anyone here follows the mailing list php-general@lists.php.net?
I tried posting to it (I am subscribed and have posted to it successfully before, but this time I got this error message: >> This message was created automatically by mail delivery software. >> >> A message that you sent could not be delivered to one or more of its >> recipients. This is a permanent error. The following address(es) >> failed: >> >> php-general@lists.php.net >> SMTP error from remote mail server after end of data: >> host pair1.php.net [76.75.200.58]: 550 we're manly enough already WTH...

Web resources about - php send mail problem - comp.lang.php

Problem novel - Wikipedia, the free encyclopedia
Working class, or proletarian novels are often also social problem novels . This was in many ways a reaction to rapid industrialization , and ...

Why Telstra's network problems could cause long-term damage
Australian phone and internet providers suffer daily network problems and outages. But Telstra falls the hardest when customers see behind the ...

Why Telstra's network problems could cause long-term damage
Australian phone and internet providers suffer daily network problems and outages. But Telstra falls the hardest when customers see behind the ...


Brussels terror attacks are Europe's problem, not just Belgium's
Belgium's security forces could have done more to prevent the Brussels attacks, but so could every security service in the world.

No Law Degree? No Problem! Sarah Palin To Preside Over Reality TV Court
Sarah Palin will tell you about a crazy legal theory called rootin’-tootin’ res ipsa loquitur.

Martin Sorrell to 4A's Gathering: 'There Is A Problem' With Gender, Diversity
... J. Walter Thompson's former CEO Gustavo Martinez resigned for alleged sexist and racist remarks, WPP CEO Martin Sorrell said "there is a problem" ...

Apple Has Problems with Its Cloud Infrastructure, Says The Information
... ) Google division for some cloud computing infrastructure, The Information ’s Amir Efrati and Steve Nellis today write that Apple has a problem ...

The world’s wealthiest failed state... a population that’s complicit.... a very strong implantation ...
... its success in arresting [the alleged leader of the Paris massacre Salah] Abdeslam, Belgium continues to present a special security problem ...

Yes, Expansionary Fiscal Policy in The North Atlantic Would Solve Many of Our Problems. Why Do You Ask ...
... state of the economy in a very short space with five super-short equations; * One is about our current likely-to-be-chronic inequality problems. ...

Resources last updated: 3/24/2016 12:28:27 AM