[PHP] Re: PHP mail function From header not working

2003-02-13 Thread Lee W
Marco Alting [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 When I try to use a php script, to send an email, the From header is
 replaced by a senders email address of my provider. Is there any way to
make
 it so my email address shows up in the From header?

 In the script I used fake addresses, because of client privacy reasons...

 ?
 $email = [EMAIL PROTECTED];
 $mailheaders = From: My Name\n;
 $mailheaders .= Reply-To: [EMAIL PROTECTED]\n\n;

 $message2 =MESSAGE GOES HERE;
 mail($email,TITLE,$message2,$mailheaders);
 ?



Are you running this on Windows?

If you are have a look at:



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: PHP mail function From header not working

2003-02-13 Thread Lee W

Marco Alting [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 When I try to use a php script, to send an email, the From header is
 replaced by a senders email address of my provider. Is there any way to
make
 it so my email address shows up in the From header?

 In the script I used fake addresses, because of client privacy reasons...

 ?
 $email = [EMAIL PROTECTED];
 $mailheaders = From: My Name\n;
 $mailheaders .= Reply-To: [EMAIL PROTECTED]\n\n;

 $message2 =MESSAGE GOES HERE;
 mail($email,TITLE,$message2,$mailheaders);
 ?


Are you running this on windows?  If you are have a look at:

http://www.php.net/manual/en/ref.mail.php

The sendmail_from setting may be what you are looking for.  You will need
to set it using ini_set.

Regards

Lee



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Why use XML?

2003-02-10 Thread Lee W
Christian Calloway [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi,

 well Im out of a job so I am sitting around learning XML. It seems like a
 great tool, but I am trying to figure out why I would actually use it? All
 it does is seperate content and data, albeit on the client, but that is
what
 I have been doing with Smarty and MySQL for awhile now. Why would I choose
 to parse XML documents with PHP and do transformations on the server, it
 sounds terribly inefficient and complicated, as opposed to just pulling
data
 out of a database. I also realize that I can generate XML dynamically (ie
 include PHP code in an actual XML template) by editing my Apache config,
but
 that is not always an option and what would be the point? It would just
add
 another layer of content/data seperation that would have to processed on
the
 other end. Thanks

 Chris



Have a look at the following link:
http://www.w3schools.com/xml/default.asp

The section on How XML Can be used may provide the answers you need.

Regards

Lee



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: any windows php developers out here?

2003-02-09 Thread Lee W

Victor [EMAIL PROTECTED] wrote in message
01c2cfc7$b6ecd0d0$237b7018@JUMPY">news:01c2cfc7$b6ecd0d0$237b7018@JUMPY...
 Hello, I am wondering if any of you got a reliable php and MySQL
 installation (MySQL is easy) I am mostly wondering if there is a point
 in tying to use windows as a development platform for PHP. I have a nice
 and working red hat 8.0 installation, but I did an upgrade from 7.3 and
 now apache doesn't work cuz it wants me to switch form apache 1.X to 2.X
 and all I want is to erase the old apache and use the new one or erase
 the new one and use the old one, whichever works. But anyway... I also
 do design and I have people submit me illustrator and Photoshop files
 and word docs, so for now I might have to stick to windows for work. BUT
 what do u suggest? I it futile to try to get php to work in windows?
 With IIS preferably so that I can play with ASP and Cold Fusion once in
 a while. Please help if you are using windows with php and send me some
 instructions if you feel like it, much appreciated.

 - Vic

 __
 Post your free ad now! http://personals.yahoo.ca

Vic,

I currently have PHP working both on IIS  Apache with Windows 2000.

My personal recommendation to you would be to install Apache on Windows with
the relevent PHP download, remember that certain features of PHP won't work
though a CGI executable with I believe is still the only stable way of
running PHP though IIS.

I normally have IIS running on a port other than 80 which allows me0 to have
both the IIS and Apache available simultaniously.

Hope some of this helps.

Regards

Lee



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: html tags

2003-02-09 Thread Lee W

Erich C. Beyrent [EMAIL PROTECTED] wrote in message
008d01c2cfa3$fc752630$0a64a8c0@wolf">news:008d01c2cfa3$fc752630$0a64a8c0@wolf...
 Hi everyone,

 A quick question about html tags and PHP.  I have a text area where users
 can submit text, and I need them to able to have links in the text if they
 so choose.

 The contents get written to an ini style flat file database.


Is there any particular reason why you are using ini-style files.  IMHO they
are not very good for storing information that could potentially store
multi-line content.  I don't recall any programs using multi-line content
back in the win-3.1 days.

You wish to try using some other form of delimiter (or if available a
database).  For example.

Using ** to seperate records and -- to indicate that start and end of
the text data, e.g.

month:day:year:time:bands:venue
--
Event description, line 1

Event description, line 2
--
**
month:day:year:time:bands:venue
--
Event description, line 1

Event description, line 2
--
**
month:day:year:time:bands:venue
--
Event description, line 1

Event description, line 2
--

This is only a simple example, but may solve your problem.  The only issues
with doing this that I can see is that it would require a lot more work of
the programmer but should not be to difficult to implement.

Regards

Lee



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php