php-windows Digest 17 Apr 2004 03:24:09 -0000 Issue 2212

Topics (messages 23471 through 23474):

Re: Anyone who can help me??????
        23471 by: Jattie van der Linde
        23472 by: jon roig

Problems with mail on Windows
        23473 by: Jordi Canals

Format integer to month name
        23474 by: lsf_80

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 ---
Try $content =  "C:/Inetpub/com/html/bf1942live/vietnam.pl";


-----Original Message-----
From: Peter Hansen [mailto:[EMAIL PROTECTED]
Sent: 16 April 2004 12:46
To: [EMAIL PROTECTED]
Subject: Anyone who can help me??????


Hello

i need some help with my battlefield livestat
i have two website
www.flashwebb.se
and
www.flashwebb.com

and the help i need is on the www.flashwebb.com site

You can look here
http://www.flashwebb.se/bf1942live/vietnam.pl

and see it on action

so now i have download the   php nuke
and i want to have the same page  as above when i click on a link to my new
site ..And i been told to make a   php page and put this code  to call the
vietnam.pl

<?php

require_once("mainfile.php");

include("header.php");

$content =  `/C:/Inetpub/com/html/bf1942live/vietnam.pl`;
print $content;

include("footer.php");
?>

and i save the page as bflive.php  and put a link to it on my page
http://www.flashwebb.com/bflive.php
so now when i click on the link i get this errormessage
Warning: shell_exec(): Unable to execute
'/C:/Inetpub/com/html/bf1942live/vietnam.pl' in
C:\Inetpub\Com\html\bflive.php on line 7

You can see for your self here
http://www.flashwebb.com/bflive.php

so now i don't know what's wrong
i want the page  vietnam.pl to come up when i click on the link
as you can do  by click on the link below and see the error message
http://www.flashwebb.se/bf1942live/vietnam.pl

I'am running win2003
Anyone who can help me here???
Regards
Peter

--- End Message ---
--- Begin Message ---
Hello from a fellow BFV player...

You don't want to just execute that code from the shell -- it won't
necessarily do what you want. (As you've seen...)

Instead, you want the webserver to kinda help you out.

Try this:
$url = "http://www.flashwebb.se/bf1942live/vietnam.pl";;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url); // set the url
curl_setopt($ch, CURLOPT_FAILONERROR, 1); // handle errors
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects 
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable 
curl_setopt($ch, CURLOPT_TIMEOUT, 20); // times out after a little while
$htmlData = curl_exec($ch); // run the whole process 
echo $htmlData;

'Course, this assumes you have curl installed. Presumably, you could use
fopen as an alternative.

        -- jon

-------------------
jon roig
web developer
email: [EMAIL PROTECTED]
phone: 888.230.7557


-----Original Message-----
From: Peter Hansen [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 16, 2004 4:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Anyone who can help me??????


Hello

i need some help with my battlefield livestat
i have two website
www.flashwebb.se
and
www.flashwebb.com

and the help i need is on the www.flashwebb.com site

You can look here
http://www.flashwebb.se/bf1942live/vietnam.pl

and see it on action

so now i have download the   php nuke
and i want to have the same page  as above when i click on a link to my
new
site ..And i been told to make a   php page and put this code  to call
the
vietnam.pl

<?php

require_once("mainfile.php");

include("header.php");

$content =  `/C:/Inetpub/com/html/bf1942live/vietnam.pl`;
print $content;

include("footer.php");
?>

and i save the page as bflive.php  and put a link to it on my page
http://www.flashwebb.com/bflive.php
so now when i click on the link i get this errormessage
Warning: shell_exec(): Unable to execute
'/C:/Inetpub/com/html/bf1942live/vietnam.pl' in
C:\Inetpub\Com\html\bflive.php on line 7

You can see for your self here http://www.flashwebb.com/bflive.php

so now i don't know what's wrong
i want the page  vietnam.pl to come up when i click on the link as you
can do  by click on the link below and see the error message
http://www.flashwebb.se/bf1942live/vietnam.pl

I'am running win2003
Anyone who can help me here???
Regards
Peter

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


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.657 / Virus Database: 422 - Release Date: 4/13/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.657 / Virus Database: 422 - Release Date: 4/13/2004
 

--- End Message ---
--- Begin Message --- Hi all,

I'm having some trouble using mail() on Windows. This is working for me on some LINUX servers with no problems (sendmail, qmail and exim), but cannot make it to work on windows.

I'd like to send a message with name and address on the TO field, not just the address. To get that, I tried that formats:

    $to = 'SomeOne Name <[EMAIL PROTECTED]>'
    $to = '"SomeOne Name" <[EMAIL PROTECTED]>'

And then I tried to send the message with:
    mail($to, $subject, $text);

The received error is:

Warning: mail(): SMTP server response: 501 <SomeOne Name <[EMAIL PROTECTED]>>: "@" or "." expected after "SomeOne" in mail.class.php on line 333

Note that the mail() function puts the To field inside <>, and that makes the SMTP error. If I write just the email address, there is NO problem for sending (even if there are more than one recipient):
mail('[EMAIL PROTECTED]', $subject, $text); // WORKS


Same with additionals headers CC or BCC with that format: "name" <address>.

As I said, I have it working on Linux with no problems. This problem only apears on a Windows Server I'm testing. I'm using an SMTP server on other computer because this Windows does not have it installed and cannot have it.

My server info:

Windows XP HE
Apache 2.0.49 (Win32)
PHP 4.3.6 (Tested also with 4.3.4)

My PHP.INI:
SMTP = smtp.example.com
[EMAIL PROTECTED]

Any help to solve this issue will be welcome ... I've been searching on lists and manuals with no success. Hope not have to write my own SMTP function ...

Regards,
Jordi.

--- End Message ---
--- Begin Message ---
Actually, I want to know is there any function of converting integer from
1 - 12 to Month Name from January to December?
i had tried "JDMonthName( )" & "date( )", but can't get the format i want.

I am beginner and using window platform.

Thank you very much.

--- End Message ---

Reply via email to