php-windows Digest 23 Feb 2003 10:45:47 -0000 Issue 1601

Topics (messages 18670 through 18675):

Re: why is this mail code not working on a windows server?
        18670 by: Per Christian

Duplicate entry removal
        18671 by: Per Christian
        18673 by: Matt Hillebrand

Forget it...
        18672 by: Per Christian

Re: include, phpself and inline frames
        18674 by: Matt Hillebrand

The inevitable LoadModule problem
        18675 by: rotsky

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 ---
It does not look like you have set the SMTP-port in the code you use
below...
Try to set the port too and see if that helps

Best Regards,
Per Christian

"Cathy" <[EMAIL PROTECTED]> skrev i melding
news:[EMAIL PROTECTED]
> Hi,
> I'm getting rather desperate about this one.
>
> Code below is working fine on one server: Apache 1.3.26 /PHP 4.1.2/Linux.
> On another server (Apache 1.3.24/PHP 4.3.1/Windows 2000) I get keeping
this
> error:
>
> Failed to connect to mailserver at "smtp.vt4.net" port 25, verify your
> "SMTP" and "smtp_port" setting in php.ini or use ini_set() in
> c:\oracle\ora91\apache\apache\htdocs\templateprobeersel\tmp47v15anqr5.php
on
> line 16
>
> CODE:
>
> $headers.="From:[EMAIL PROTECTED]";
> ini_set("SMTP", "smtp.vt4.net");
> ini_set("sendmail_from","[EMAIL PROTECTED]");
>
> mail("[EMAIL PROTECTED]", "test php", "Line 1",$headers);
>
> Can anyone help me?
> Thx,
> Cathy
>
>



--- End Message ---
--- Begin Message ---
Hi

I'm building a PHP project for fun, and are going to get some dates from my
database (mysql).
The problem is that I only want the year, but the date is in the format
YYYY-MM-DD so I get the whole column and remove the -MM-DD part, but now I
have a lot of the same year
Is there a function or some code that removes duplicate entries from a
array?

Best Regards,
Per Christian



--- End Message ---
--- Begin Message ---
array_unique()

|-----Original Message-----
|From: Per Christian [mailto:[EMAIL PROTECTED] 
|Sent: Saturday, February 22, 2003 7:56 AM
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] Duplicate entry removal
|
|
|Hi
|
|I'm building a PHP project for fun, and are going to get some 
|dates from my database (mysql). The problem is that I only 
|want the year, but the date is in the format YYYY-MM-DD so I 
|get the whole column and remove the -MM-DD part, but now I 
|have a lot of the same year Is there a function or some code 
|that removes duplicate entries from a array?
|
|Best Regards,
|Per Christian
|
|
|
|-- 
|PHP Windows Mailing List (http://www.php.net/)
|To unsubscribe, visit: http://www.php.net/unsub.php
|
|
|



--- End Message ---
--- Begin Message ---
Just forget it...
I figured it out myself

"Per Christian" <[EMAIL PROTECTED]> skrev i melding
news:[EMAIL PROTECTED]
> Hi
>
> I'm building a PHP project for fun, and are going to get some dates from
my
> database (mysql).
> The problem is that I only want the year, but the date is in the format
> YYYY-MM-DD so I get the whole column and remove the -MM-DD part, but now I
> have a lot of the same year
> Is there a function or some code that removes duplicate entries from a
> array?
>
> Best Regards,
> Per Christian
>
>



--- End Message ---
--- Begin Message ---
Make the action of the form "poll.php" instead of $PHP_SELF. $PHP_SELF
is the parent document.

Matt

|-----Original Message-----
|From: m1nt ch3w [mailto:[EMAIL PROTECTED] 
|Sent: Saturday, February 22, 2003 3:27 AM
|To: [EMAIL PROTECTED]
|Subject: [PHP-WIN] include, phpself and inline frames
|
|
|Howdy all,
|
|I am trying to get a poll to work on my site. I am using 
|Inline frames to 
|display the content. The poll is outside of the iframe and is 
|put in using 
|<? include("poll.php"); ?>
|
|What I was aiming to do was, when you click "vote" to submit 
|your vote, the 
|results would appear in the Iframe.
|
|So in poll.php i have:
|
|<form method="post" action="<?=$PHP_SELF ?>" target="Iframe"> 
|(this isn't in between <? ?>)
|
|I tried it by inserting the full code of poll.php into page 
|rather than use 
|include(), but it displayed the whole page again into the 
|inline frame. How 
|would I go about just getting the poll.php file to appear in 
|the inline 
|frame? I thought using include() would work as it does when 
|you use it with 
|asp.
|
|I will eventually remove the inline frame, but for now i'm using them.
|
|Any help is appreciated,
|/m1nt
|
|
|-- 
|PHP Windows Mailing List (http://www.php.net/)
|To unsubscribe, visit: http://www.php.net/unsub.php
|
|
|



--- End Message ---
--- Begin Message ---
Okay, I know you've all heard this one before, but I'm really new to all
this, can't really claim to be a programmer and am on a steep learning
curve, so...

I've installed PHP 4.3.1 and Apache 2.0.44. I've made the various changes to
Apache's httpd.conf file, including the infamous line:

LoadModule php4_module "C:/php/sapi/php4apache2.dll"

(That's cut'n'pasted straight from the .conf file, so you can see I got the
slashes in the right direction). And, php4apache2.dll is very definitely in
that directory. I've installed in a couple of times from the downloaded zip
file in case something had corrupted it.

Yet during Apache start-up it still tells me it can't find that
php4apache2.dll file, saying:
Cannot load C:/php/sapi/php4apache2.dll into server. The specified module
could not be found.

Now, I know PHP 4.3.1 is recent and that every time PHP or Apache is
updated, this problem crops up again. Anyone any thoughts?

I'm running WinXP HE version 2002 with SP1.

Am I being hopelessly optimistic and should install an earlier version of
Apache?




--- End Message ---

Reply via email to