php-windows Digest 20 Mar 2001 13:30:40 -0000 Issue 501

Topics (messages 6156 through 6165):

mime in php
        6156 by: Free Beachler
        6157 by: Free Beachler

Re: [PHP-DB] FW: [PHP-WIN] mime in php
        6158 by: Free Beachler

mail() headers
        6159 by: Free Beachler

include_once problem...
        6160 by: JT Graveaud

Php - XML
        6161 by: Antonio Lopez

MySQL errors
        6162 by: Dirk Bonenkamp - Bean IT

Re: PHP, MySQL, Apache Set Up (Windows)
        6163 by: Fernando Madruga

Re: apache + php + system()  = error :(
        6164 by: Jürgen Lasn

Re: Problem with PHP4.04 installation
        6165 by: Phil Driscoll

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]


----------------------------------------------------------------------


Has anyone done mime multipart in nt 4+ using iis 4+ (preferrably iis 5)?  I
can't figure out if my mail() send is breaking because of message length or
mime format or what.  I think my mail conforms to specification.

-free
[EMAIL PROTECTED]





somebody please help!!!  I've posted a number of messages about this with no
reply.  Here are the findings from my research:

on windows 2000 under iis 5.0 this is breaking:
mail($to, '', '', substr($coverletter, 0, 3990));

while this works:
mail($to, $subject, '', substr($coverletter, 0, 3989));

where $coverletter is a message header.  I intend this message header to be
a mime multipart message.  but, for testing purposes, i've tried just any
old string in the header.  It seems that the mail() function breaks if the
length of the header parameter passed to it is too long !!!

can someone try this on apache or a unix environment to see if the above
line that breaks for me also breaks for you.  BEWARE:::if $coverletter
contains email addresses those persons might also get the mail.  MAKE SURE
$coverletter HAS NO EMAIL ADDRESSES!

-f

-free


-----Original Message-----
From: Free Beachler [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 6:01 PM
To: Php-Windows
Subject: [PHP-WIN] mime in php


Has anyone done mime multipart in nt 4+ using iis 4+ (preferrably iis 5)?  I
can't figure out if my mail() send is breaking because of message length or
mime format or what.  I think my mail conforms to specification.

-free
[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]






i forgot to mention that in my example one must populate the $coverletter
variable with a string over 4K in length so that the header will break.

-f

-----Original Message-----
From: Free Beachler [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 8:08 PM
To: Php-Db; Php-Windows
Subject: [PHP-DB] FW: [PHP-WIN] mime in php


somebody please help!!!  I've posted a number of messages about this with no
reply.  Here are the findings from my research:

on windows 2000 under iis 5.0 this is breaking:
mail($to, '', '', substr($coverletter, 0, 3990));

while this works:
mail($to, $subject, '', substr($coverletter, 0, 3989));

where $coverletter is a message header.  I intend this message header to be
a mime multipart message.  but, for testing purposes, i've tried just any
old string in the header.  It seems that the mail() function breaks if the
length of the header parameter passed to it is too long !!!

can someone try this on apache or a unix environment to see if the above
line that breaks for me also breaks for you.  BEWARE:::if $coverletter
contains email addresses those persons might also get the mail.  MAKE SURE
$coverletter HAS NO EMAIL ADDRESSES!

-f

-free


-----Original Message-----
From: Free Beachler [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 6:01 PM
To: Php-Windows
Subject: [PHP-WIN] mime in php


Has anyone done mime multipart in nt 4+ using iis 4+ (preferrably iis 5)?  I
can't figure out if my mail() send is breaking because of message length or
mime format or what.  I think my mail conforms to specification.

-free
[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]



--
PHP Database 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]






Someone else has tested this on Apache on windows 2000.  it broke under the
described conditions, i.e., 4th parameter of mail() function exceeds approx.
4K.  Remember, the 4th paramter is the "add'l headers" parameter and is
essential for mime multipart messages.

(ok, actually I think that if (the header + message stuff generated by
mail()) > 4K -->then break!!!)

can someone try my scenario on unix?
furthermore, is there something in the RFCs that limits message headers to
4K???  Seems like there shouldn't be...

-fre





Hi,

I'm using PHP4.0.5-dev on Apache/1.3.17 - under Windows-Me, 
sorry not on purpose ;( ... ;-)

I have in my script : include_once "my_file.inc";
and later on in the same script I have an other :
include_once "my_file.inc";

unfortunately, I have this error:
Fatal error: Cannot redeclare my_function() in my_file.inc on line xxx

Which means, include_once does not work properly on ... 
PHP4.0.5 ? Me ? 
anyone already knows this problem ?

on linux, of course it works perfectly ...

Thanks for any advices.

PS: Otherwise, I know I can use the old method to include once, 
with a variable, but I'd like to avoid this.





With xml:
I want to show the special chars ñ,Ñ,á,é,í..

(i´m spanish, :O))

but if i write:

<?xml version='1.0' encoding='ISO-8859-1' ?>
  <listado>
    <titulo>CamiónñÑ</titulo>
  </listado>


i got foreign chars, 
but not the chars i want !!!!

Why???

Thank you!!

===================================================
Antonio López Luna
Ingeniería e Integración Avanzadas (Ingenia), S.A.
Parque Tecnológico de Andalucía
29590  - Málaga (Spain)
  
Tel. 34-952029300 Ext. 386
Fax. 34-952029309
Web: http://www.ingenia.es





Hi all,

I just installed apache, php & mysql on a win98 laptop. I normally use 
linux....

Things work fine, but when I execute more queries in one script, I get 
error messages like:
Warning: MySQL: Unable to save result set in c:/program files/apache 
group/apache/htdocs/network-club.com/agenda.php4 on line 14

I saw something in the FAQ about this, but that was when upgrading.....

I use Win98 SE UK, Apache 1.3.14, php 4.0.4pl1, Mysql 3.23.22-beta.

TIA,

Dirk






I'm on the process of reinstalling all that and more and I'll post a sort of
step by step instruction later today, as I have to document the whole thing
for myself...

HTH,
  Fernando Madruga

-----Original Message-----
From: OneFish [mailto:[EMAIL PROTECTED]]
Sent: segunda-feira, 19 de Março de 2001 20:52
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP, MySQL, Apache Set Up (Windows)


Hi, I'm a newbie...

Trying to set up these 3 on my windows 98 machine.  PHP and Apache set up is
OK.  They can talk to each other.  Have also installed MySQL.  But I'm not
sure how to make it accessible from PHP.  Appreciate any help....  :-)

Ricky



-- 
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]





well... i understood your comment and it is clear that windows systems don't
use forking, but under w32 processes can have child's (children ? :) but i
can't understand why are functions that need forking (???) enabled? ...

but after all this -forking- is not the issue here ... the real problem is
that I MUST USE external executable's and i can't see a way to do that ...

must i really take a shot, using PERL ?

camooon ...

Jürgen.


""Joe Brown"" <[EMAIL PROTECTED]> wrote in message
995n6l$kp2$[EMAIL PROTECTED]">news:995n6l$kp2$[EMAIL PROTECTED]...
> Forking is a unix thing...  What happens when a process comes to a fork in
> the road, it splits and continues in two directions.
>
> You can't execute a batch file, you need the command intrepreter to handle
> that one, so the previous suggestion should be accurate.  If you're on NT
or
> 2000, maybe cmd.exe would be more apropriate.
>
> If you don't like this comment, go to the kitchen, open the silverware
> drawer, grab a fork and and see how far along you get with it on your
> keyboard.
>
> <jyrgen [@] [EMAIL PROTECTED] ("Jürgen Lasn")> wrote in message
> 98qdfq$2t9$[EMAIL PROTECTED]">news:98qdfq$2t9$[EMAIL PROTECTED]...
> > Hi!
> >
> > No the error is not generated while exec'ing external program but while
it
> > attemts to call the system() command ... it's like the system() and
exec()
> > are malfuncioning ... using backticks (`) made the script to hang ....
> there
> > is something very fundamental that i do wrong but ... where? what?
> >
> > whoknows? :)
> >
> > Jürgen.
> >
> > "Fernando Madruga" <[EMAIL PROTECTED]> wrote in message
> > 3685A91F554BD411BA310008C759B6CC02527C23@MAIL_CBR">news:3685A91F554BD411BA310008C759B6CC02527C23@MAIL_CBR...
> > You could try replacing "batch.bat" with "c:\windows\command.com /c
> > batch.bat" for windows 9x or "C:\winnt\cmd.exe /c batch.bat" or
something
> > like that.
> >
> >
> >
> >
> > --
> > 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]
> >
>
>
>
> --
> 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]
>





Since PHP does work on Win98 PWS (although I think any other choice of web
server would causeless aggravation for you), and other's who have reported
installation problems, have not reported this one, I suspect something
strange is going on.

At what point do you get this error message?

If you run php.exe -i from the commandline, do you get a screen full of
html, or some error message?

Cheers
--
Phil Driscoll
Dial Solutions
+44 (0)113 294 5112
http://www.dialsolutions.com
http://www.dtonline.org




Reply via email to