php-windows Digest 24 Jan 2002 17:33:31 -0000 Issue 968

Topics (messages 11611 through 11627):

Re: Here is a Step by Step on how to install and configure PHP 4.1.x in Win2k with IIS5
        11611 by: SomeGuy

Re: PHP header
        11612 by: Fabian Hoffmann

mail()
        11613 by: Fabian Hoffmann
        11623 by: DL Neil

php mail()
        11614 by: Fabian Hoffmann
        11618 by: k.krohn.bit-serv.de
        11621 by: Martin Lindhe

Oracle again sigh...
        11615 by: yuwin
        11616 by: yuwin
        11625 by: Philippe Saladin

Re: Mysql connection
        11617 by: Fabian Hoffmann
        11622 by: Martin Lindhe

Re: [PHP-INST] Adding GD extensions
        11619 by: Martin Lindhe

Re: Windows NT SMTP Set Up Help Needed
        11620 by: Martin Lindhe
        11626 by: Charlie Killian
        11627 by: Shrock, Court

New to PHP
        11624 by: J Messam

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
yeah great...now if somebody could do the same for windows apache php4.1.1
and a modular installation it would just kick ass :)
"Andre Amaral" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi all. Here is my first attempt to make easy Step by Step installation
> manual for PHP4.1.x on Windows 2000 based systems running IIS5 using CGI
or
> ISAPI. Here is the link that will ake a lot of people happy. :)
> http://www.experttek.com/php/installation.txt
>
> Fell free to contact me. Contacts are in the manual.
>
>
>


--- End Message ---
--- Begin Message ---
First you must name the file *.php!

Than;
not every host now PHP... so u must contact

But a nice lokal Webserver/Packet is PHPtriad
look at www.downloads.com and Search /PHPtriad!

notice:
Before you install PHP-triad uninstall alll other lokal webservers!

MfG

Fabian Hoffmann
"Paul Wallace" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
00bd01c194e4$2be53320$6c01a8c0@Paul">news:00bd01c194e4$2be53320$6c01a8c0@Paul...
> Hello,
>     A relative PHP newbie.
>     I have developed a system using HTML/PHP, and have had it functioning
> fine for some time using IIS. I am now uploading it to a web hosting
service
> in the USA where I am firstly running a hello world page to test it. BUT!
It
> does not want to load:
>
> <html>
> <head><title>Untitled</title></head>
> <body>
> <?php
>     echo "Hello world";
> ?>
> </body>
> </html>
>
> I have configured the hosting server to the best of my knowledge (setup a
> CGI virtual domain environment, enabled permissions etc), but it still
> refuses to load this rediculously simple hello world script.
>     Can anyone tell me if the page to be executed containing the PHP
script
> requires a pathname telling the server it is a PHP page, and if so, what
is
> the syntax and where it is embedded in the HTML?
>
> Many thanks
>
> Paul Wallace
> Concerto Developer/Support Consultant
> ProSolutions Asia Pacific Co., Ltd.
> Tel +66 2 583 6161-5
> Fax +662 583 6535
> www.ProSolutions-ap.com
>
>


--- End Message ---
--- Begin Message ---
Hello!

I have made a php formmailer!

My Problem:

When I receive the mail, in the from(sender) line is something like
www-data, but I wont the real sender adress for example [EMAIL PROTECTED] in
the from line not in the subject line or in the message, just in the from
line!

Is this possible or impossible

Can somebody help me??

thx

Fabian Hoffmann


--- End Message ---
--- Begin Message ---
Hello Fabian,

Please post a copy of the code you are using, as is.

=dn


> I have made a php formmailer!
> 
> My Problem:
> 
> When I receive the mail, in the from(sender) line is something like
> www-data, but I wont the real sender adress for example [EMAIL PROTECTED] in
> the from line not in the subject line or in the message, just in the from
> line!
> 
> Is this possible or impossible
> 
> Can somebody help me??
> 
> thx
> 
> Fabian Hoffmann
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 

--- End Message ---
--- Begin Message ---
Hello!

I have made a php formmailer!

My Problem:

When I receive the mail, in the from(sender) line is something like
www-data, but I wont the real sender adress for example [EMAIL PROTECTED] in
the from line not in the subject line or in the message, just in the from
line!

Is this possible or impossible

Can somebody help me??

thx

Fabian Hoffmann


--- End Message ---
--- Begin Message ---
Hello Fabian!
Try this:

<?
        // strings, set by your form
        $mail_from ="[EMAIL PROTECTED]";
        $subject = "Your Subject";
        $body = "Some text here";

        // receiptient of the mail
        $mail_to = "[EMAIL PROTECTED]";

        // let's rock...
        $extra_header = "From: $mail_from\nErrors-To:
[EMAIL PROTECTED]";         
        mail($get_email, $subject, $body, $extra_header);
?>

Works fine for me, should work for you, too.
Be carefull with $extra_header. If you forget a blankspace or an \n, it
won't work. 

More Infos at: 
http://www.php.net/manual/en/function.mail.php 
(German: http://www.php.net/manual/de/function.mail.php )

Karsten


> I have made a php formmailer!
> 
> My Problem:
> When I receive the mail, in the from(sender) line is something like
> www-data, but I wont the real sender adress for example 
> [EMAIL PROTECTED] in
> the from line not in the subject line or in the message, just 
> in the from
> line!
> 
> Fabian Hoffmann

--- End Message ---
--- Begin Message ---
> My Problem:
> 
> When I receive the mail, in the from(sender) line is 
> something like www-data, but I wont the real sender adress 
> for example [EMAIL PROTECTED] in the from line not in the 
> subject line or in the message, just in the from line!
> 
> Is this possible or impossible

$address = "[EMAIL PROTECTED]";
$head = "From: PHP Test <[EMAIL PROTECTED]>\r\n";
$subject = "hello world";
$message = "Hello there\nTest123\n";
mail($address, $subject, $message, $head);

Try this out

/Martin
--- End Message ---
--- Begin Message ---
Help, i'm trying to connect to a remote oracle database from
win98/apache/php4 and win2k/iis/php4 but it always gives me tns error. Other
apps however, works fine with the tns configuration. the php oracle module
was loaded successfully on both platforms.
I've tried all sorts of possibilities. path to tnsnames.ora is correct.
I've even tried with ODBC but when i used it with php, i get "server refused
connection". However, ODBC test was successfull and other apps can work with
it.

Thanks in advance.

--
yuwin



--- End Message ---
--- Begin Message ---
Help, i'm trying to connect to a remote oracle database from
win98/apache/php4 and win2k/iis/php4 but it always gives me tns error. Other
apps however, works fine with the tns configuration. the php oracle module
was loaded successfully on both platforms.
I've tried all sorts of possibilities. path to tnsnames.ora is correct.
I've even tried with ODBC but when i used it with php, i get "server refused
connection". However, ODBC test was successfull and other apps can work with
it.

Thanks in advance.

--
yuwin





--- End Message ---
--- Begin Message ---
Hi,
I've answered to your post in php.db
Regards,
Philippe

"Yuwin" <[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> Help, i'm trying to connect to a remote oracle database from
> win98/apache/php4 and win2k/iis/php4 but it always gives me tns error.
Other
> apps however, works fine with the tns configuration. the php oracle module
> was loaded successfully on both platforms.
> I've tried all sorts of possibilities. path to tnsnames.ora is correct.
> I've even tried with ODBC but when i used it with php, i get "server
refused
> connection". However, ODBC test was successfull and other apps can work
with
> it.
>
> Thanks in advance.
>
> --
> yuwin
>
>
>
>
>


--- End Message ---
--- Begin Message ---
Hey there!

you must delete the my.ini or something like that and then it works!


"Brad Thomas" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Warning: MySQL Connection Failed: Can't connect to MySQL server on
> > > 'localhost' (10061) in c:\program files\apache
> > > group\apache\htdocs\db_connect.php on line 3
>
> <snip>
>
> This error means the MySQL server isn't running.
> Try starting the server and try again.
>
>


--- End Message ---
--- Begin Message ---
> Hey there!
> 
> you must delete the my.ini or something like that and then it works!

eh? my.ini holds your special mysql configuration and you shouldnt just
go and delete it, and for certain it wont magically start mysql if you
delete
the file

/Martin

> 
> 
> "Brad Thomas" <[EMAIL PROTECTED]> schrieb im 
> Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > > Warning: MySQL Connection Failed: Can't connect to 
> MySQL server on 
> > > > 'localhost' (10061) in c:\program files\apache 
> > > > group\apache\htdocs\db_connect.php on line 3
> >
> > <snip>
> >
> > This error means the MySQL server isn't running.
> > Try starting the server and try again.
> >
> >
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] To contact the list 
> administrators, e-mail: [EMAIL PROTECTED]
> 
--- End Message ---
--- Begin Message ---
> I am migrating from the Mac world and so my knowledge of the 
> Windows environment is minimal. I have two systems. A desktop 
> running Windows 2000 v5 SP2 with IIS 4 and a laptop running 
> Windows XP and Apache 1.3
> 
> I have php running on both as a CGI. When I try to add any 
> extension to php via the php.ini file I get this "Unable to 
> load dynamic library 'C:\PHP\php_<extension_name>.dll' - The 
> specified procedure could not be found."

Can you try to set 

extension_dir = C:\PHP\extensions\

in php.ini and see if that helps?

/Martin


> 
> I have the php.exe and the .dll's in the C:\PHP directory. Is 
> the reference to the specified procedure a reference to the 
> .dll or is it a procedure being called by the .dll when 
> trying to load?
> 
> I am ultimately trying to add the image functions to php 
> using the php_gd.dll
> 
> I read on the GD site that I would also have to have the 
> jpeg-6b, zlib and Freetype extensions. Is there an exe for 
> php with these already loaded? If not, where do I find a step 
> by step procedure to build the required configuration. The 
> step by step instructions will probably have to include 
> explanations since my knowledge is minimal.
> 
> Thanks
> 
> Mike Ellis
> 
> 
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] To contact the list 
> administrators, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED] To contact the list 
> administrators, e-mail: [EMAIL PROTECTED]
> 
--- End Message ---
--- Begin Message ---
> A client is having trouble setting up SMTP services on their 
> Windows NT machine so PHP can access it through the mail() function.
> 
> SMTP is set to mail.theserver.com in the php.ini.
> Mail() works when set to a different mail server.
> PHP and the mail services are on the same machine.
> The SMTP server is open on port 25 and resolves locally.
> A MX record has been defined.

If they're on the same machine, why dont you use
localhost instead?

SMTP = localhost

there's also a
sendmail_from = [EMAIL PROTECTED]

entry in php.ini that's win32 specific

/Martin
--- End Message ---
--- Begin Message ---
I'm still receiving the error: Warning:
Server Error in E:\Inetpub\wwwroot\ckmailtest.php on line 22

The SMTP and sendmail_from configuration are set correctly. I know this
because when I change SMTP to a third party SMTP server the script works.
However, I still can't get the mail services on WindowsNT and PHP on the
same machine to connect.

Is there any security features in WindowsNT that I should update?

Charlie


> > A client is having trouble setting up SMTP services on their
> > Windows NT machine so PHP can access it through the mail() function.
> >
> > SMTP is set to mail.theserver.com in the php.ini.
> > Mail() works when set to a different mail server.
> > PHP and the mail services are on the same machine.
> > The SMTP server is open on port 25 and resolves locally.
> > A MX record has been defined.
>
> If they're on the same machine, why dont you use
> localhost instead?
>
> SMTP = localhost
>
> there's also a
> sendmail_from = [EMAIL PROTECTED]
>
> entry in php.ini that's win32 specific
>
> /Martin

--- End Message ---
--- Begin Message ---
I had a similar error running in CGI mode on WinNT.  I ended up taking apart
my call to mail() until it worked.  A simple call with dummy values and no
extra headers would work, but what I wanted would not.  I traced the cause
to the bcc header.  Also, I noticed that the cc header does not work either
on the windows cgi version.  I even noticed that the case of the Cc and Bcc
headers changed the errors that I received.

Don't know if this helps....good luck,
Court

-----Original Message-----
From: Charlie Killian [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 8:47 AM
To: Martin Lindhe; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Windows NT SMTP Set Up Help Needed


I'm still receiving the error: Warning:
Server Error in E:\Inetpub\wwwroot\ckmailtest.php on line 22

The SMTP and sendmail_from configuration are set correctly. I know this
because when I change SMTP to a third party SMTP server the script works.
However, I still can't get the mail services on WindowsNT and PHP on the
same machine to connect.

Is there any security features in WindowsNT that I should update?

Charlie
--- End Message ---
--- Begin Message ---
When I installed PHP 4,  I ran the test.php it appeared to have been
installed correctly.  I tried to write some simple scripts, they ran at
first but then every attempt to run a PHP script generates this error.
    PHP has encountered an Access Violation at

Your help would be appreciated.


--- End Message ---

Reply via email to