RE: [PHP-WIN] Problem printing on server side

2003-12-04 Thread Darvin Andrioli
> From: Ricardo J. Oliveira [mailto:[EMAIL PROTECTED]

>
> Hi,

> When I try to list my printers with the printer_list function with these
> options PRINTER_ENUM_NETWORK | PRINTER_ENUM_REMOTE the array returned are
> empty.

Hi

First the manual says that PRINTER_ENUM_NETWORK and PRINTER_ENUM_REMOTE
 work only on WinNt and Win2000.

Then some question: have you defined the printer on the box where Apache
run?
May the user used by the Apache service to run access to that printer?

About PHP, when I wrote my module to list the printers, I crashed PHP with
some memory problem
running

printer_list(PRINTER_ENUM_LOCAL|PRINTER_ENUM_CONNECTIONS);

so I changed the line into

$lista1=printer_list(PRINTER_ENUM_LOCAL);
$lista2=printer_list(PRINTER_ENUM_CONNECTIONS);
$lista=array_merge($lista1,$lista2);

and it worked (I hadn't so much time
to understand what went wrong so I can't tell you if it was a PHP problem or
mine), and now it list all local printers
(lpt1, tcp/ip ports) and all networks printers (shared by other box).

My configuration is:
production environment, NT 4, Apache 1.3.27, Php 4.3.4 as CGI
development environment, Win 2000 Pro, Apache 2.0.48, Php 4.3.4 as CGI

Note that the manual says that PRINTER_ENUM_NETWORK | PRINTER_ENUM_REMOTE
work only on WinNt and Win2000

Hope this help you
Darvin

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



[PHP-WIN] mail($To problem

2003-12-04 Thread Alan McDonald
Can someone tell me why I might be getting this problem?
I construct an HTML email and send it,... it's fine,... it goes
But the last > character after the /html tag gets truncated.
I always get
>";
I do not see the http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-WIN] /php-4.3.4-Win32/php.exe/index.php not found

2003-12-04 Thread Luis Moreira
Apparently your browser is complaining about INFO.PHP, not PHP.EXE.
Do you call INFO.PHP inside INDEX.PHP ?
If you do, are you sure it exists and is on the right place ?

Luis

- Original Message - 
From: "Miroslav Majdan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 03, 2003 7:12 PM
Subject: [PHP-WIN] /php-4.3.4-Win32/php.exe/index.php not found


Hi.

I have configured php and apache 1.3.28 (apache 2.0.48) under Win98 like 
this
php.ini:
extension-dir:/php-4.3.4-Win32/
httpd.conf:
ScriptAlias = "c:\htdocs"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php-4.3.4-Win32/php.exe"

In c:\htdocs I created simple index.php

I asked my browser (IE and Opera) for http://localhost/index.php and I 
became a message:

"The requested URL /php-4.3.4-Win32/php.exe/info.php was not found on this 
server."


When give localhost I became index.html which is correct.(apache works 
with *.html files correctly)

I tried to change Action "../php.exe" to "../php.exe " (added space) so 
that the request would look like php should open /index.php but it didn't 
work.

Should I reconfigure php so that it would understand the request or what?

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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

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



[PHP-WIN] Re: mail($To problem

2003-12-04 Thread Seung Hwan Kang
i acidently sent it

Seung Hwan Kang wrote:

I guess it's related to slashes... (addslashes)

Here is eg.

// yourform.html


to
subject
content
from
// mailto.php


mail($to, $subject, $content, $from);

?>

well, now it's correct!

from Wollongong, NSW :)

Alan McDonald wrote:

Can someone tell me why I might be getting this problem?
I construct an HTML email and send it,... it's fine,... it goes
But the last > character after the /html tag gets truncated.
I always get

stuck on the end of my message unless I add another one.
If my last construct line is
$content .= ">";
I do not see the 
tag in the message.

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


[PHP-WIN] Re: mail($To problem

2003-12-04 Thread Seung Hwan Kang
I guess it's related to slashes... (addslashes)

Here is eg.

// yourform.html


to
subject
content
from
// mailto.php


mail($to, $subject, $content, $from);

?>

from Wollongong, NSW :)

Alan McDonald wrote:

Can someone tell me why I might be getting this problem?
I construct an HTML email and send it,... it's fine,... it goes
But the last > character after the /html tag gets truncated.
I always get
>";
I do not see the 
thanks
Alan
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] Award Notice

2003-12-04 Thread Greg Ossai


STRITLY CONFIDENTIAL
FROM:DR .GREG ossAI,

DEAR SIR,

I AM DR.GREG OSSAI Ossai AN ACCOUNTANT (FOREIGN PAYMENT DEPT) WITH THE FEDERAL 
MINISTRY OF TRANSPORT LAGOS- NIGERIA.

WITH THE ASSISTANCE OF SOME SENIOR OFFICALS OF THE CENTRAL BANK OF NIGERIA,AND THE 
MINISTRY OF FINANCE, WE WANT TO TRANSFER THE SOME OF
THIRTY-FIVE MILLION US DOLLARS OUT OF MY COUNTRY, NIGERIA. THE THIRTY-FIVE MILLION US 
DOLLARS IS AN ACCUMULATION OF OVER-INVOICED CONTRACTS WHICH HAS ALREADY BEEN EXECUTED 
AND COMMISSIONED. THIS AMOUNT STILL LIES IN THE FEDERAL MINISTRY OF TRANSPORT SUSPENCE 
ACCOUNT WITH
THE CENTRAL BANK OF NIGERIA(CBN).

AS CIVIL SERVANTS WE CANNOT OPERATE A FOREIGN ACCOUNT BECAUSE THE CODE
OF CONDUCT ACT IN NIGERIA MAKES IT AN OFFENCE FOR ANY PUBLIC OFFICER TO
OPERATE FOREIGN ACCOUNT. IT IS AS A RESULT OF THIS THAT WE SOLICIT YOUR
ASSISTANCE TO MAKE USE OF YOUR PRIVATE/ COMPANY’S ACCOUNT TO TRANSFER
THE SAID SUM.

PLEASE NOTE THAT ALL MODALITIES HAS BEEN WORKED OUT FOR A SMOOTH AND
HITCH-FREE TRANSFER OF THE US$35MILLION INTO YOUR ACCOUNT, WITHIN TEN
WORKING DAYS OF GETTING YOUR POSITIVE RESPONSE AND CONSENT.

YOU WOULD BE ENTITLED TO 20% OF THE $35,000,000:00 FOR PROVIDING US AN
ACCOUNT, 75% WOULD COME TO US IN NIGERIA, AND THE REMAINING 5% WOULD BE
USED TO OFFSET ALL LOCAL/FOREIGN EXPENDITURE ON THE FOLLOWING GROUNDS.

(A)  THAT WE ARE SATISFIED ON ALL GROUNDS THAT OUR SHARE OF THE
FUND WOULD BE GIVEN TO US AFTER TRANSFERENCE.

(B) THAT THIS TRANSACTION IS TREATED WITH UTMOST
CONFIDENCE,SECRECY AND ABSOLUTE SINCERITY, WHICH IT DEMANDS.

IF YOU ARE INTERESTED IN THE PROPOSAL, YOU CAN CONTACT ME THROUGH MY EMAIL 
ADDRESS:[EMAIL PROTECTED]  TO ENABLE US DISCUSS
FURTHER DETAILS ON THE TRANSACTION. YOU ARE ALSO REQUIRED TO PROVIDE A
SECURED TELEPHONE AND FAX FOR THE PURPOSE OF THIS TRANSACTION.

EXPECTING TO HEAR FROM YOU SOONEST

YOURS FAITHFULLY,

DR. Greg Ossai.








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



Re: [PHP-WIN] Award Notice

2003-12-04 Thread toby z
what on earth is all this 

or have i missed somethin here 

:S :| :[

 --- Greg Ossai <[EMAIL PROTECTED]> wrote: > 
> 
> STRITLY CONFIDENTIAL
> FROM:DR .GREG ossAI,
> 
> DEAR SIR,
> 
> I AM DR.GREG OSSAI Ossai AN ACCOUNTANT (FOREIGN PAYMENT DEPT) WITH
> THE FEDERAL MINISTRY OF TRANSPORT LAGOS- NIGERIA.
> 
> WITH THE ASSISTANCE OF SOME SENIOR OFFICALS OF THE CENTRAL BANK OF
> NIGERIA,AND THE MINISTRY OF FINANCE, WE WANT TO TRANSFER THE SOME
> OF
> THIRTY-FIVE MILLION US DOLLARS OUT OF MY COUNTRY, NIGERIA. THE
> THIRTY-FIVE MILLION US DOLLARS IS AN ACCUMULATION OF OVER-INVOICED
> CONTRACTS WHICH HAS ALREADY BEEN EXECUTED AND COMMISSIONED. THIS
> AMOUNT STILL LIES IN THE FEDERAL MINISTRY OF TRANSPORT SUSPENCE
> ACCOUNT WITH
> THE CENTRAL BANK OF NIGERIA(CBN).
> 
> AS CIVIL SERVANTS WE CANNOT OPERATE A FOREIGN ACCOUNT BECAUSE THE
> CODE
> OF CONDUCT ACT IN NIGERIA MAKES IT AN OFFENCE FOR ANY PUBLIC
> OFFICER TO
> OPERATE FOREIGN ACCOUNT. IT IS AS A RESULT OF THIS THAT WE SOLICIT
> YOUR
> ASSISTANCE TO MAKE USE OF YOUR PRIVATE/ COMPANY’S ACCOUNT TO
> TRANSFER
> THE SAID SUM.
> 
> PLEASE NOTE THAT ALL MODALITIES HAS BEEN WORKED OUT FOR A SMOOTH
> AND
> HITCH-FREE TRANSFER OF THE US$35MILLION INTO YOUR ACCOUNT, WITHIN
> TEN
> WORKING DAYS OF GETTING YOUR POSITIVE RESPONSE AND CONSENT.
> 
> YOU WOULD BE ENTITLED TO 20% OF THE $35,000,000:00 FOR PROVIDING US
> AN
> ACCOUNT, 75% WOULD COME TO US IN NIGERIA, AND THE REMAINING 5%
> WOULD BE
> USED TO OFFSET ALL LOCAL/FOREIGN EXPENDITURE ON THE FOLLOWING
> GROUNDS.
> 
> (A)  THAT WE ARE SATISFIED ON ALL GROUNDS THAT OUR SHARE OF THE
> FUND WOULD BE GIVEN TO US AFTER TRANSFERENCE.
> 
> (B) THAT THIS TRANSACTION IS TREATED WITH UTMOST
> CONFIDENCE,SECRECY AND ABSOLUTE SINCERITY, WHICH IT DEMANDS.
> 
> IF YOU ARE INTERESTED IN THE PROPOSAL, YOU CAN CONTACT ME THROUGH
> MY EMAIL ADDRESS:[EMAIL PROTECTED]  TO ENABLE US DISCUSS
> FURTHER DETAILS ON THE TRANSACTION. YOU ARE ALSO REQUIRED TO
> PROVIDE A
> SECURED TELEPHONE AND FAX FOR THE PURPOSE OF THIS TRANSACTION.
> 
> EXPECTING TO HEAR FROM YOU SOONEST
> 
> YOURS FAITHFULLY,
> 
> DR. Greg Ossai.
> 
> 
> 
> 
> 
> 
> 
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>  


Download Yahoo! Messenger now for a chance to win Live At Knebworth DVDs
http://www.yahoo.co.uk/robbiewilliams

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



[PHP-WIN] Re: mail($To problem

2003-12-04 Thread Alan McDonald
thanks -  but sorry no prize there - it makes no difference

Alan

"Seung Hwan Kang" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> i acidently sent it
>
>
> Seung Hwan Kang wrote:
>
> > I guess it's related to slashes... (addslashes)
> >
> > Here is eg.
> >
>
> // yourform.html
>
> 
> to
> subject
> content
> from
>
> // mailto.php
>
>  $to  = addslashes($_POST["to"]);
> $subject = addslashes($_POST["subject"]);
> $content = addslashes($_POST["content"]);
> $from= addslaehses($_POST["from"]);
>
> mail($to, $subject, $content, $from);
>
> ?>
>
> well, now it's correct!
>
> >
> > from Wollongong, NSW :)
> >
> > Alan McDonald wrote:
> >
> >> Can someone tell me why I might be getting this problem?
> >> I construct an HTML email and send it,... it's fine,... it goes
> >> But the last > character after the /html tag gets truncated.
> >> I always get
> >>  >> stuck on the end of my message unless I add another one.
> >> If my last construct line is
> >> $content .= ">";
> >> I do not see the  >> complete
> >> tag in the message.
> >>
> >> thanks
> >> Alan

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



[PHP-WIN] Re: mail($To problem

2003-12-04 Thread Seung Hwan Kang
ok, u do like to put some html codes in the contents... :)

this one should be ok~~~



$HTML_H = "welcomeM";
$HTML_B = "Geee~";
$HTML_T = "";
$content = $HTML_H . $HTML_B . $_POST["content"] . $HTML_T;

mail($_POST["to"], $_POST["subject"], $content, $_POST["from"]);

?>

Alan McDonald wrote:

thanks -  but sorry no prize there - it makes no difference

Alan

"Seung Hwan Kang" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
i acidently sent it

Seung Hwan Kang wrote:


I guess it's related to slashes... (addslashes)

Here is eg.

// yourform.html


to
subject
content
from
// mailto.php


mail($to, $subject, $content, $from);

?>

well, now it's correct!


from Wollongong, NSW :)

Alan McDonald wrote:


Can someone tell me why I might be getting this problem?
I construct an HTML email and send it,... it's fine,... it goes
But the last > character after the /html tag gets truncated.
I always get
>";
I do not see the 
thanks
Alan
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-WIN] Re: mail($To problem

2003-12-04 Thread Mike Quinn
Hi Alan,

You have to set the headers to send HTML emails (that could be it!)

$header  = "MIME-Version: 1.0\r\n Content-type: text/html;
charset=iso-8859-1\r\n";

$address = "[EMAIL PROTECTED]";

$subject = "HTML Email";

$content = "stuff";

mail($address, $subject, $content, $header);


"Alan McDonald" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> Can someone tell me why I might be getting this problem?
> I construct an HTML email and send it,... it's fine,... it goes
> But the last > character after the /html tag gets truncated.
> I always get
>  stuck on the end of my message unless I add another one.
> If my last construct line is
> $content .= ">";
> I do not see the  tag in the message.
>
> thanks
> Alan

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



Re: [PHP-WIN] Award Notice

2003-12-04 Thread Alan McDonald
toby - ignore it - it's spam - the famous nigerian letter!
Alan
"Toby z" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> what on earth is all this 
>
> or have i missed somethin here 
>
> :S :| :[
>
>  --- Greg Ossai <[EMAIL PROTECTED]> wrote: >
> >
> > STRITLY CONFIDENTIAL
> > FROM:DR .GREG ossAI,
> >
> > DEAR SIR,
> >
> > I AM DR.GREG OSSAI Ossai AN ACCOUNTANT (FOREIGN PAYMENT DEPT) WITH
> > THE FEDERAL MINISTRY OF TRANSPORT LAGOS- NIGERIA.
> >
> > WITH THE ASSISTANCE OF SOME SENIOR OFFICALS OF THE CENTRAL BANK OF
> > NIGERIA,AND THE MINISTRY OF FINANCE, WE WANT TO TRANSFER THE SOME
> > OF
> > THIRTY-FIVE MILLION US DOLLARS OUT OF MY COUNTRY, NIGERIA. THE
> > THIRTY-FIVE MILLION US DOLLARS IS AN ACCUMULATION OF OVER-INVOICED
> > CONTRACTS WHICH HAS ALREADY BEEN EXECUTED AND COMMISSIONED. THIS
> > AMOUNT STILL LIES IN THE FEDERAL MINISTRY OF TRANSPORT SUSPENCE
> > ACCOUNT WITH
> > THE CENTRAL BANK OF NIGERIA(CBN).
> >
> > AS CIVIL SERVANTS WE CANNOT OPERATE A FOREIGN ACCOUNT BECAUSE THE
> > CODE
> > OF CONDUCT ACT IN NIGERIA MAKES IT AN OFFENCE FOR ANY PUBLIC
> > OFFICER TO
> > OPERATE FOREIGN ACCOUNT. IT IS AS A RESULT OF THIS THAT WE SOLICIT
> > YOUR
> > ASSISTANCE TO MAKE USE OF YOUR PRIVATE/ COMPANY'S ACCOUNT TO
> > TRANSFER
> > THE SAID SUM.
> >
> > PLEASE NOTE THAT ALL MODALITIES HAS BEEN WORKED OUT FOR A SMOOTH
> > AND
> > HITCH-FREE TRANSFER OF THE US$35MILLION INTO YOUR ACCOUNT, WITHIN
> > TEN
> > WORKING DAYS OF GETTING YOUR POSITIVE RESPONSE AND CONSENT.
> >
> > YOU WOULD BE ENTITLED TO 20% OF THE $35,000,000:00 FOR PROVIDING US
> > AN
> > ACCOUNT, 75% WOULD COME TO US IN NIGERIA, AND THE REMAINING 5%
> > WOULD BE
> > USED TO OFFSET ALL LOCAL/FOREIGN EXPENDITURE ON THE FOLLOWING
> > GROUNDS.
> >
> > (A)  THAT WE ARE SATISFIED ON ALL GROUNDS THAT OUR SHARE OF THE
> > FUND WOULD BE GIVEN TO US AFTER TRANSFERENCE.
> >
> > (B) THAT THIS TRANSACTION IS TREATED WITH UTMOST
> > CONFIDENCE,SECRECY AND ABSOLUTE SINCERITY, WHICH IT DEMANDS.
> >
> > IF YOU ARE INTERESTED IN THE PROPOSAL, YOU CAN CONTACT ME THROUGH
> > MY EMAIL ADDRESS:[EMAIL PROTECTED]  TO ENABLE US DISCUSS
> > FURTHER DETAILS ON THE TRANSACTION. YOU ARE ALSO REQUIRED TO
> > PROVIDE A
> > SECURED TELEPHONE AND FAX FOR THE PURPOSE OF THIS TRANSACTION.
> >
> > EXPECTING TO HEAR FROM YOU SOONEST
> >
> > YOURS FAITHFULLY,
> >
> > DR. Greg Ossai.
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> 
> Download Yahoo! Messenger now for a chance to win Live At Knebworth DVDs
> http://www.yahoo.co.uk/robbiewilliams

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



RE: [PHP-WIN] Re: mail($To problem

2003-12-04 Thread Disko_kex
Hi

It's a documented bug, and its fixed in the latest release of php
(4.3.4). I had the same problem and it works fine now

Have a nice day
jocke
 

> -Original Message-
> From: Seung Hwan Kang [mailto:[EMAIL PROTECTED]
> Sent: den 4 december 2003 12:27
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: mail($To problem
> 
> ok, u do like to put some html codes in the contents... :)
> 
> this one should be ok~~~
> 
>  
> $HTML_H = "welcomeM";
> $HTML_B = "Geee~";
> $HTML_T = "";
> 
> $content = $HTML_H . $HTML_B . $_POST["content"] . $HTML_T;
> 
> mail($_POST["to"], $_POST["subject"], $content, $_POST["from"]);
> 
> ?>
> 
> Alan McDonald wrote:
> 
> > thanks -  but sorry no prize there - it makes no difference
> >
> > Alan
> >
> > "Seung Hwan Kang" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> >>i acidently sent it
> >>
> >>
> >>Seung Hwan Kang wrote:
> >>
> >>
> >>>I guess it's related to slashes... (addslashes)
> >>>
> >>>Here is eg.
> >>>
> >>
> >>// yourform.html
> >>
> >>
> >>to
> >>subject
> >>content
> >>from
> >>
> >>// mailto.php
> >>
> >> >>$to  = addslashes($_POST["to"]);
> >>$subject = addslashes($_POST["subject"]);
> >>$content = addslashes($_POST["content"]);
> >>$from= addslaehses($_POST["from"]);
> >>
> >>mail($to, $subject, $content, $from);
> >>
> >>?>
> >>
> >>well, now it's correct!
> >>
> >>
> >>>from Wollongong, NSW :)
> >>>
> >>>Alan McDonald wrote:
> >>>
> >>>
> Can someone tell me why I might be getting this problem?
> I construct an HTML email and send it,... it's fine,... it goes
> But the last > character after the /html tag gets truncated.
> I always get
>  stuck on the end of my message unless I add another one.
> If my last construct line is
> $content .= ">";
> I do not see the  complete
> tag in the message.
> 
> thanks
> Alan
> 
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

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



[PHP-WIN] Problem with mail()

2003-12-04 Thread Gerardo Rojas
I am trying to send mail with the mail() function.  My environment is Win2K 
proffessional. IIS5.0 and my email server is Outlook.  This is the error I'm getting 
when i try to send mail.

i have changed the php.ini file for:

SMTP = my mail server


-
Creating socket 
Successfully created socket!
Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] 
in c:\inetpub\wwwroot\gerardo\software\php\sockets\mail_server.php on line 25
-
--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]



php-windows Digest 4 Dec 2003 09:11:30 -0000 Issue 2028

2003-12-04 Thread php-windows-digest-help

php-windows Digest 4 Dec 2003 09:11:30 - Issue 2028

Topics (messages 22304 through 22309):

Trouble loading php_mysql.dll
22304 by: CMSMom
22307 by: Seung Hwan Kang

uploading files to a web server using ftp
22305 by: Brent

Re: Server for PHP and ASP (and MySQL) ??
22306 by: Peter Richards

Re: /php-4.3.4-Win32/php.exe/index.php not found
22308 by: Seung Hwan Kang

Award Notice
22309 by: Greg Ossai

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 ---
I am running PHP on Windows 2000 server.  PHP is running but mysql support
is not.  I am running PHP 5.0.0b1 (from phpinfo()).

It is my understanding that mysql support is no longer bundled with PHP.  I
have edited the php.ini and added the extension=php_mysql.dll.

I get the following error:
Unknown(); Unable to load dynamic library
'c:\PHP\extensions\php_mysql.dll' - The specifi8ed procedure could not be
found

I have checked and double checked and this is where php_mysql.dll is
located.

Please help.
--- End Message ---
--- Begin Message ---


Cmsmom wrote:
I am running PHP on Windows 2000 server.  PHP is running but mysql support
is not.  I am running PHP 5.0.0b1 (from phpinfo()).
You may with PHP 5.00b2.  When I did It didn't work so I changed to 
PHP5.00b2.  Because it comes with bundled MySL 3.xx dll.  By the way, it 
works on MySQL 4.0x.

It is my understanding that mysql support is no longer bundled with PHP.  I
have edited the php.ini and added the extension=php_mysql.dll.
Yes, it is.  You can still use MySQL 3.x dll.

I get the following error:
Unknown(); Unable to load dynamic library
'c:\PHP\extensions\php_mysql.dll' - The specifi8ed procedure could not be
found
I have checked and double checked and this is where php_mysql.dll is
located.
Please help.
--- End Message ---
--- Begin Message ---
Has anyone managed to get a file from a local HDD
to a web server without a multipart form etc.
Using PHP not a ftp program or anything like that.
I'm trying to get the php ftp commands to do it but no luck.
Don't need a form or anythign like that. I know the file on
my hard disk etc dont need or want to have to browse
to get to it.

Brent.
--- End Message ---
--- Begin Message ---
Hi,

On Wed, 03 Dec 2003 04:21:06 +1100, [EMAIL PROTECTED] (Seung Hwan Kang)
wrote:

>Are you looking for free?  Well, you may try linux.  Well, here is one 
>of the project that allows you to use ASP too on linux.
>
>http://www.apache-asp.org/

Thanks for thta link, a very interesting project indend. So, I may
consider installing Apache and Apache-asp on the Win95 box.

>By the way, chilisoft (known as ASP on linux) is now not free. It sold 
>to Sun.
>
>http://www.chilisoft.com/

Yes, I noticed that , and the Halycon product are commercial.

Thanks,

Peter
--- End Message ---
--- Begin Message ---
Your conf. is not valid. :(

Miroslav Majdan wrote:

Hi.

I have configured php and apache 1.3.28 (apache 2.0.48) under Win98 like 
this
php.ini:
extension-dir:/php-4.3.4-Win32/
extension_dir = c:/php-4.3.4-Win32/extensions/

httpd.conf:
ScriptAlias = "c:\htdocs"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php-4.3.4-Win32/php.exe"
// CGI install - not recommend
ScriptAlias /php/ "c:/php-4.3.4-Win32/"
AddType application/x-httpd-php .php

Action application/x-httpd-php "c:/php-4.3.4-Win32/php.exe"



// module install
LoadModule php4_module "c:/php-4.3.4-Win32/sapi/php4apache.dll"
AddType application/x-httpd-php .php

Action application/x-httpd-php "c:/php-4.3.4-Win32/php.exe"

In c:\htdocs I created simple index.php

I asked my browser (IE and Opera) for http://localhost/index.php and I 
became a message:

"The requested URL /php-4.3.4-Win32/php.exe/info.php was not found on 
this server."

When give localhost I became index.html which is correct.(apache works 
with *.html files correctly)

I tried to change Action "../php.exe" to "../php.exe " (added space) so 
that the request would look like php should open /index.php but it 
didn't work.

Should I reconfigure php so that it would understand the request or what?

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


STRITLY CONFIDENTIAL
FROM:DR .GREG ossAI,

DEAR SIR,

I AM DR.GREG OSSAI Ossai AN ACCOUNTANT (FOREIGN PAYMENT DEPT) WITH THE FEDERAL 
MINISTRY OF TRANSPORT LAGOS- NIGERIA.

WITH THE ASSISTANCE OF SOME SENIOR OFFICALS OF THE CENTRAL BANK OF NIGERIA,AND THE 
MINISTRY OF FINANCE, WE WANT TO TRANSFER THE SOME OF
THIRTY-FIVE MILLION US DOLLARS OUT OF MY COUNTRY, NIGERIA. THE THIRTY-FIVE MILLION US 
DOLLARS IS AN ACCUMULATION OF OVER-INVOICED CONTRACTS WHICH HAS ALREADY BEEN EXECUTED 
AND COMMISSIONED. THIS AMOUNT STILL LIES IN THE FEDERAL MINISTRY OF TRANSPORT SUSPENCE 
ACCOUNT WITH
THE CENTRAL BANK OF

[PHP-WIN] Re: Problem with mail()

2003-12-04 Thread John
Outlook is not a mail server, it is a mail client.

You need to load a mail server on your machine to get php mail() to work. A
decent, free one for Windows is Mercury, www.pmail.com. Once that is setup,
in php.ini change the SMTP line to SMTP= localhost

John


"Gerardo Rojas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I am trying to send mail with the mail() function.  My environment is Win2K
proffessional. IIS5.0 and my email server is Outlook.  This is the error I'm
getting when i try to send mail.

i have changed the php.ini file for:

SMTP = my mail server


-
Creating socket
Successfully created socket!
Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for
[EMAIL PROTECTED] in
c:\inetpub\wwwroot\gerardo\software\php\sockets\mail_server.php on line 25
-
--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]

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



Re: [PHP-WIN] Re: mail($To problem

2003-12-04 Thread Alan McDonald
thanks Disko_kex - I'll check that out
Alan
"Disko_kex" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
>
> It's a documented bug, and its fixed in the latest release of php
> (4.3.4). I had the same problem and it works fine now
>
> Have a nice day
> jocke
>
>
> > -Original Message-
> > From: Seung Hwan Kang [mailto:[EMAIL PROTECTED]
> > Sent: den 4 december 2003 12:27
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] Re: mail($To problem
> >
> > ok, u do like to put some html codes in the contents... :)
> >
> > this one should be ok~~~
> >
> >  >
> > $HTML_H = "welcomeM";
> > $HTML_B = "Geee~";
> > $HTML_T = "";
> >
> > $content = $HTML_H . $HTML_B . $_POST["content"] . $HTML_T;
> >
> > mail($_POST["to"], $_POST["subject"], $content, $_POST["from"]);
> >
> > ?>
> >
> > Alan McDonald wrote:
> >
> > > thanks -  but sorry no prize there - it makes no difference
> > >
> > > Alan
> > >
> > > "Seung Hwan Kang" <[EMAIL PROTECTED]> wrote in message
> > > news:[EMAIL PROTECTED]
> > >
> > >>i acidently sent it
> > >>
> > >>
> > >>Seung Hwan Kang wrote:
> > >>
> > >>
> > >>>I guess it's related to slashes... (addslashes)
> > >>>
> > >>>Here is eg.
> > >>>
> > >>
> > >>// yourform.html
> > >>
> > >>
> > >>to
> > >>subject
> > >>content
> > >>from
> > >>
> > >>// mailto.php
> > >>
> > >> > >>$to  = addslashes($_POST["to"]);
> > >>$subject = addslashes($_POST["subject"]);
> > >>$content = addslashes($_POST["content"]);
> > >>$from= addslaehses($_POST["from"]);
> > >>
> > >>mail($to, $subject, $content, $from);
> > >>
> > >>?>
> > >>
> > >>well, now it's correct!
> > >>
> > >>
> > >>>from Wollongong, NSW :)
> > >>>
> > >>>Alan McDonald wrote:
> > >>>
> > >>>
> > Can someone tell me why I might be getting this problem?
> > I construct an HTML email and send it,... it's fine,... it goes
> > But the last > character after the /html tag gets truncated.
> > I always get
> >  > stuck on the end of my message unless I add another one.
> > If my last construct line is
> > $content .= ">";
> > I do not see the  > complete
> > tag in the message.
> > 
> > thanks
> > Alan
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

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



[PHP-WIN] Re: Problem with mail()

2003-12-04 Thread Alan McDonald
Your SMTP server is denying relay - go the IIS manager, select SMTP and the
properties and allow relay for localhost
Alan
"Gerardo Rojas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
I am trying to send mail with the mail() function.  My environment is Win2K
proffessional. IIS5.0 and my email server is Outlook.  This is the error I'm
getting when i try to send mail.

i have changed the php.ini file for:

SMTP = my mail server


-
Creating socket
Successfully created socket!
Warning: mail(): SMTP server response: 550 5.7.1 Unable to relay for
[EMAIL PROTECTED] in
c:\inetpub\wwwroot\gerardo\software\php\sockets\mail_server.php on line 25
-
--
Gerardo S. Rojas
mailto: [EMAIL PROTECTED]

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



php-windows Digest 4 Dec 2003 23:09:37 -0000 Issue 2029

2003-12-04 Thread php-windows-digest-help

php-windows Digest 4 Dec 2003 23:09:37 - Issue 2029

Topics (messages 22310 through 22324):

Re: Problem printing on server side
22310 by: Darvin Andrioli

mail($To problem
22311 by: Alan McDonald
22315 by: Seung Hwan Kang
22316 by: Seung Hwan Kang
22317 by: Alan McDonald
22318 by: Seung Hwan Kang
22319 by: Mike Quinn
22320 by: Disko_kex
22323 by: Alan McDonald

Re: /php-4.3.4-Win32/php.exe/index.php not found
22312 by: Luis Moreira

Re: Award Notice
22313 by: toby z
22314 by: Alan McDonald

Problem with mail()
22321 by: Gerardo Rojas
22322 by: John
22324 by: Alan McDonald

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 ---
> From: Ricardo J. Oliveira [mailto:[EMAIL PROTECTED]

>
> Hi,

> When I try to list my printers with the printer_list function with these
> options PRINTER_ENUM_NETWORK | PRINTER_ENUM_REMOTE the array returned are
> empty.

Hi

First the manual says that PRINTER_ENUM_NETWORK and PRINTER_ENUM_REMOTE
 work only on WinNt and Win2000.

Then some question: have you defined the printer on the box where Apache
run?
May the user used by the Apache service to run access to that printer?

About PHP, when I wrote my module to list the printers, I crashed PHP with
some memory problem
running

printer_list(PRINTER_ENUM_LOCAL|PRINTER_ENUM_CONNECTIONS);

so I changed the line into

$lista1=printer_list(PRINTER_ENUM_LOCAL);
$lista2=printer_list(PRINTER_ENUM_CONNECTIONS);
$lista=array_merge($lista1,$lista2);

and it worked (I hadn't so much time
to understand what went wrong so I can't tell you if it was a PHP problem or
mine), and now it list all local printers
(lpt1, tcp/ip ports) and all networks printers (shared by other box).

My configuration is:
production environment, NT 4, Apache 1.3.27, Php 4.3.4 as CGI
development environment, Win 2000 Pro, Apache 2.0.48, Php 4.3.4 as CGI

Note that the manual says that PRINTER_ENUM_NETWORK | PRINTER_ENUM_REMOTE
work only on WinNt and Win2000

Hope this help you
Darvin
--- End Message ---
--- Begin Message ---
Can someone tell me why I might be getting this problem?
I construct an HTML email and send it,... it's fine,... it goes
But the last > character after the /html tag gets truncated.
I always get
>";
I do not see the --- End Message ---
--- Begin Message ---
I guess it's related to slashes... (addslashes)

Here is eg.

// yourform.html


to
subject
content
from
// mailto.php


mail($to, $subject, $content, $from);

?>

from Wollongong, NSW :)

Alan McDonald wrote:

Can someone tell me why I might be getting this problem?
I construct an HTML email and send it,... it's fine,... it goes
But the last > character after the /html tag gets truncated.
I always get
>";
I do not see the 
thanks
Alan
--- End Message ---
--- Begin Message ---
i acidently sent it

Seung Hwan Kang wrote:

I guess it's related to slashes... (addslashes)

Here is eg.

// yourform.html


to
subject
content
from
// mailto.php


mail($to, $subject, $content, $from);

?>

well, now it's correct!

from Wollongong, NSW :)

Alan McDonald wrote:

Can someone tell me why I might be getting this problem?
I construct an HTML email and send it,... it's fine,... it goes
But the last > character after the /html tag gets truncated.
I always get

stuck on the end of my message unless I add another one.
If my last construct line is
$content .= ">";
I do not see the 
tag in the message.

thanks
Alan
--- End Message ---
--- Begin Message ---
thanks -  but sorry no prize there - it makes no difference

Alan

"Seung Hwan Kang" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> i acidently sent it
>
>
> Seung Hwan Kang wrote:
>
> > I guess it's related to slashes... (addslashes)
> >
> > Here is eg.
> >
>
> // yourform.html
>
> 
> to
> subject
> content
> from
>
> // mailto.php
>
>  $to  = addslashes($_POST["to"]);
> $subject = addslashes($_POST["subject"]);
> $content = addslashes($_POST["content"]);
> $from= addslaehses($_POST["from"]);
>
> mail($to, $subject, $content, $from);
>
> ?>
>
> well, now it's correct!
>
> >
> > from Wollongong, NSW :)
> >
> > Alan McDonald wrote:
> >
> >> Can someone tell me why I might be getting this problem?
> >> I construct an HTML email and send it,... it's fine,... it goes
> >> But the last > character after the /html tag gets truncated.
> >> I always get
> >>  >> stuck on the end of my message unless I add another one.
> >> If my last construct line is
> >> $content .= ">";
> >> I do not see the  >> complete
> >> tag in the message.
> >>
> >> thanks
> >> Alan
--- End Message ---
--- Begin Message ---
ok, u do like to put some html codes in the contents... :)

this one should