php send mail problemCurrent, 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 ...
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 PHPI'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 phpHI 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 phpWhen 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 pageWhy 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...
problem with sending value to php page via urlHi!
i have php page that displays records from mysql base.
on that page i have link like this:
<a href="mypage.php?option1">option1</a>
("option1" is name of one of my tables in db)
now i want to load that page and assign this value "option1" as string to
my variable "table".
I tried this:
$table=$_SERVER['QUERY_STRING'];
$query_rs_komp = "SELECT * FROM " . $table;
but it fills my $table var with "database.option1", and i need only
"option1"
Also i'll need help with checking if anything was sent to page anyway - so
if it's first time someone opens page, default value is assigned to var
$table.
please if anyone has idea?
ToMeK wrote:
> i have php page that displays records from mysql base.
> on that page i have link like this:
>
> <a href="mypage.php?option1">option1</a>
<a href="mypage.php?db=option1">option1</a>
> ("option1" is name of one of my tables in db)
>
> now i want to load that page and assign this value "option1" as string to
> my variable "table".
> I tried this:
>
>
> $table=$_SERVER['QUERY_STRING'];
$table = isset($_GET['db']) ? $_GET['db'] : 'default_table';
> $query_rs_komp = "SELECT * FROM " . $table;
>
> but it fills my $table var with "database.option1", and i need only
> ...
PHP mail() function failing to send mailHi 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 List Problem - Can't UnsubscribeHello:
My address jsmith435@cox.net is subscribed to at least the PHP General
mailing list. I have for days now been trying to unsubscribe from all PHP
mail lists. I have followed the instructions posted on the php.net web site
but all my e-mails go unresponded to. I've tried contacting the webmaster
as well as the admin address posted but all to no avail. I've tried using
the link provided in each message to unsub but again no response. I can't
even seem to post or get messages to this list.
If anyone is able to assist or to pass my issue to someone who might be able
to help I would be most appreciative. Please believe me I have tried to
known typical correct ways to unsubscribe and I have not been able to.
Sorry to post this here, but I'm really grasping at straws for what to do
next. I am truly doing something stupid preventing myself from being
successful at this, then whole heartedly apologize. But I've been able to
unsub from many other lists without issue.
Thank you,
Jason
Just in case you need them, I'm posting full headers from one of the
messages:
Return-Path: <php-general-return-240730-jsmith435=cox.net@lists.php.net>
Received: from fed1rmimpi02.cox.net ([70.169.32.69])
by fed1rmmtai15.cox.net
(InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP
id
<20060815220059.OMSN14527.fed1rmmtai15.cox.net@fed1rmimpi02.cox.net>
for <jsmith435@cox.net>; Tue, 1...
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 not sending mailHello 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 problemI 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 suggested and the email goes thru but the log file shows
the crcr error. So even though the data being fed to the mail program is
simple strings, with absolutely no end of line characters, it still
generates errors.
Soooo, I think that leaves me with a php problem. An idea how I should
procede?
Dave
Dave Calhoun wrote (in part):
> 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 suggested and the email goes thru but the log file shows
> the crcr error. So even though the data being fed to the mail program is
> simple strings, with absolutely no end of line characters, it still
> generates errors.
Why are you escaping the '@' in your string? You don't have a 'From: '
header.
Try:
<?
mail...
about send mail with phpHello,
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 Mail() HelpI'm trying to send a Txt Msg to my Verizon cell phone using PHP
Mail(). I use a mail gateway that verizon has provided. It works OK -
but - the From string I see on my cell phone when I get the txt msg
always shows 'From: postmaster@notice.com' instead of what I want:
'From: webmaster@notice.com.' Here is my code below. Does anyone know
why the From string is not being detected? I don't know if this is a
PHP issue, a notice.com domain settings issue or a Verizon issue.
$to = "8887894356@vtext.com";
$subject = 'Report ';
$message = $php_message;
$headers = 'From: webmaster@notice.com' . "\r\n" .
'Reply-To: noreply@notice.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
ralphNOSPAM@primemail.com wrote:
> I'm trying to send a Txt Msg to my Verizon cell phone using PHP
> Mail(). I use a mail gateway that verizon has provided. It works OK -
> but - the From string I see on my cell phone when I get the txt msg
> always shows 'From: postmaster@notice.com' instead of what I want:
> 'From: webmaster@notice.com.' Here is my code below. Does anyone know
> why the From string is not being detected? I don't know if this is a
> PHP issue, a notice.com domain settings issue or a Verizon issue.
>
> $to = "8887894356@vtext.com";
> $subject = 'Report ';
> $message = $php_message;
> ...
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...
HelpHI guys and gals,
The situation is this - My F***ing boss has told one of our clients that we
will host their website ..... it is php and I have no idea at all about php.
My uber-inteligent boss has also inform their former hosting company to stop
hosting, so now our client has NO website .... well done boss
We host with IIS, WIN 2K.
I have placed their existing site in my a subdomain of the company's -
http://ryan.accit.com.au
Intalled PHP and made the associations in IIS. The page comes up and reports
various PHP errors - please veiew page to see problem.
Is there any basic steps I have miseed .... Could someone please help me ...
I am desperate.
Cheers, Ryan
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Fri, 30 Jul 2004 13:56:50 +0800
"Ryan Miller" <x@xxxx> wrote:
[snip]
>
> Intalled PHP and made the associations in IIS. The page comes up and
> reports various PHP errors - please veiew page to see problem.
>
Hmm, I see no error but one produced in the script std.php, not by PHP
itself though, but by the script...
> Is there any basic steps I have miseed .... Could someone please help
> me ... I am desperate.
Hmm, depends on whether you boss is going to pay via paypal or visa. :p
Madsen
- --
Anders K. Madsen --- http://lillesvin.linux.dk
"There are 10 types of people in the world.
Those who understand binary - and those who don't."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
...
PHP Mail problemsHi 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.
...
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/
...
yahoo.com.au mail problems problems problemsHello,
in the last month I encountered big problems to read mail from
yahoo.com.au server.
There is no chance to connect to e-mail /www based server.
Having logged to www.yahoo.com.au
mail window doesn't open
waiting for an image from
au.adserver.yahoo.com server
is that server dead, making reading mail completely impossible ?
Ping says, that server is unreachable.
What can I do to make things better as in previous months ?
Ple
...
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: mysql_fetch_array(): supplied argument is not a valid
MySQL result resource in /var/www/html/website_in_server/showdata.php
I think problem source from php.ini or httpd.conf .
Anyone can help me sir.. ?
thank you for advance
On 25 Jul 2005 12:11:19 -0700, "Pratchaya" <pratchaya@banana.co.th> wrote:
>==============================================================
>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 /v...
HELP!! PHP Warning: PHP Startup: Unable to load dynamic library 'c:\PHP\Ext\php_mysql.dll'Why do I keep getting this error mesgage on my phpinfo() page trying to
get PHP and MySQL to communicate? I am running this in IIS.
Here's what I have -
My php.ini resides in my C:\WINNT directory. In it, I have removed the
';' from the extension=php_mysql.dll.
Also in the php.ini file I set extension_dir = c:\PHP\Ext
In c:\PHP\Ext I have the following files:
libmysqli.dll
libmySQL.dll
php5apache2.dll (Do I need this since I am using IIS)?
php5ts.dll
php_mysql.dll
Any help would be tremendously appreciated. I have spent a ton of time
on this.
Thanks.
MS wrote:
> Why do I keep getting this error mesgage on my phpinfo() page trying to
> get PHP and MySQL to communicate? I am running this in IIS.
>
> Here's what I have -
>
> My php.ini resides in my C:\WINNT directory. In it, I have removed the
> ';' from the extension=php_mysql.dll.
>
> Also in the php.ini file I set extension_dir = c:\PHP\Ext
>
> In c:\PHP\Ext I have the following files:
>
> libmysqli.dll
> libmySQL.dll
> php5apache2.dll (Do I need this since I am using IIS)?
> php5ts.dll
> php_mysql.dll
>
> Any help would be tremendously appreciated. I have spent a ton of time
> on this.
>
> Thanks.
Hi,
A few common mistakes are:
1) editting the wrong php.ini
Ask phpinfo() which php.ini it is using. Often people edit the one in
c:\php\php.ini. My advise: delete all on your system except one.
2) forget to giv...
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.
...
Send email with attachment in PHPI'm using PHP 5 with apache in linux.
I'm now have a $content which stores the content of the email in HTML
format. I would like to send this $content as the attachment of the
email. How to deal with this? I am new in PHP.
Thanks for great help.
Eric
kamlai wrote:
> I'm now have a $content which stores the content of the email in HTML
> format. I would like to send this $content as the attachment of the
> email. How to deal with this? I am new in PHP.
Why not just put it in the body of the message?
Google: MIME
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
kamlai@gmail.com wrote:
>I'm using PHP 5 with apache in linux.
>
>I'm now have a $content which stores the content of the email in HTML
>format. I would like to send this $content as the attachment of the
>email. How to deal with this? I am new in PHP.
>Thanks for great help.
>Eric
>
I use Phpmailer. Check the tutorials for a quick start.
http://phpmailer.sourceforge.net/
--
*****************************
Chuck Anderson � Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
...