php-windows Digest 10 Sep 2002 16:15:59 -0000 Issue 1332

Topics (messages 15738 through 15747):

Re: Intermittent Parse Error
        15738 by: php.l1te.net
        15739 by: Rasmus Lerdorf
        15747 by: Michael Baron

Re: . becomes _ when submitting page
        15740 by: Kjell Hansen

Re: Calling DLL from PHP script
        15741 by: Pozzer Franco
        15742 by: Luis Moreira

Re: PHP/MySQL/APache on CD
        15743 by: M.B.

using apache on a network
        15744 by: M.B.

Re: "Headers already sent" error message
        15745 by: M.B.

Re: Calling DLL from PHP
        15746 by: Brian 'Bex' Huff

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 ---
Are you serious about using Apache 1.3.6? Yowser that's old!!! I'd update
to Apache 2 and PHP 4.2.3 right away!

I've had no problems on my Win2k (workstation) using Apache 2.0.39 and PHP
4.2.2. What are the specs on the hardware?

And <rant> why'd you move from slackware? </rant>

-Dash

When I was a boy I was told that anybody could become President.  Now
I'm beginning to believe it.
                -- Clarence Darrow

On Mon, 9 Sep 2002, Michael Baron wrote:

> I am running Apache 1.3.6 PHP 4.2.2 in Module mode on windows 2000.  I
> just migrated this particular site from Slackware (Same Apache and php).
>   I now get intermittent parse errors in random include files.  It is as
> if during some of my user's requests, either the machine is not fast
> enough to parse the file or there is some lock on the file or something.
>   Has anyone seen this before?
>
> Thanks.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
> Are you serious about using Apache 1.3.6? Yowser that's old!!! I'd update
> to Apache 2 and PHP 4.2.3 right away!

Apache 1.3.x is fine.  I'd upgrade to a later version of Apache 1.3
though.  Apache 2 with PHP is not ready yet.

-Rasmus

--- End Message ---
--- Begin Message ---
Rasmus Lerdorf wrote:
>>Are you serious about using Apache 1.3.6? Yowser that's old!!! I'd update
>>to Apache 2 and PHP 4.2.3 right away!
> 
> 
> Apache 1.3.x is fine.  I'd upgrade to a later version of Apache 1.3
> though.  Apache 2 with PHP is not ready yet.
> 
> -Rasmus
> 
I apologize, I mean I was using 1.3.26, the latest version of Apache 1.3.x.

I am expirementing with Apache 2.0.40 on my development machine, but am 
waiting for more feedback that Apache 2 and PHP is ready for production 
environments before I fee confident rolling it forward to my production 
environment.


--- End Message ---
--- Begin Message ---
I understand that, but how will I be able to determine wheather the 
file was "Me.And.Jen.jpg" or "Me_And_Jen.jpg"?!?
The . gets to be _ and both files will have the same name, but Windows 
tells me that they're different.

Thanx for your effort though.
SeaU
Kjell 

> That's the reason I said reverse the string and replace the first
> occurance.
> The only time it would be a problem is if they did not put an 
Extension.
> --
> Scott Carr
> OpenOffice.org
> Documentation Maintainer
> http://documentation.openoffice.org/
>
>
> Quoting Kjell Hansen <[EMAIL PROTECTED]>:
>
> > Sure Scott,
> > so can I. The problem is when you have a filename like
> > "My_Wife_and_I_at_sea.jpg"
> > or "Me.And.Jen.jpg" or "Jen_and_Pete.gif"
> >
> > How can I be sure of what _ to change into . ?
> >
> > /Kjell
> >
> >
> > Scott Carr wrote:
> >
> > > You can still do so.
> > >
> > > Just reverse the string.  Replace the first occurance of "_" 
with ".".
> > > Re-reverse the string.
> > >
> > > Now you have a Filename.
> > > --
> > > Scott Carr
> > > OpenOffice.org
> > > Documentation Maintainer
> > > http://documentation.openoffice.org/
> > >
> > > Quoting Kjell Hansen <[EMAIL PROTECTED]>:
> > >
> > > > Hmmm, I guess you're right. But I have some vague memories from
> useing
> > dots
> > > > in name attributes before. But that was with ASP & IIS...
> > > >
> > > > I have some excuse for using dots, it's Windows filenames. They 
come
> > with
> > > > dots and I can't change the attribute names because it's 
refering to
> the
> > > > file. I guess I will have to go around it with hidden fields and
> > indexes...
> > > > Too bad, it was such a brilliant solution with the filename in 
the
> name
> > > > attribute
> > > > :(
> > > >
> > > > Anyway, thanx for enlightning me!
> > > >
> > > > Regards
> > > > Kjell
> > > >
> > > > Ignatius Reilly wrote:
> > > >
> > > > > Your naming conflicts with javascript. Remember what dots are 
used
> for
> > in
> > > > > js.
> > > > >
> > > > > Avoid using other characters than alphanum and underscore. 
There is
> no
> > > > > reason you should need to use any other character.
> > > > >
> > > > > I am not quite even sure that it is valid HTML to use dots in
> > attributes
> > > > > values.
> > > > >
> > > > > HTH
> > > > >
> > > > > Ignatius
> > > > >
> > > > > ____________________________________________
> > > > > ----- Original Message -----
> > > > > From: "Kjell Hansen" <[EMAIL PROTECTED]>
> > > > > To: <[EMAIL PROTECTED]>
> > > > > Sent: Sunday, September 08, 2002 7:12 PM
> > > > > Subject: [PHP-WIN] . becomes _ when submitting page
> > > > >
> > > > > > Hi,
> > > > > > In my HTML page I have a textarea called "filename.ext" 
when I
> > submit
> > > > > > the page I get "filename_ext" in my $_POST array.
> > > > > >
> > > > > > Anyone know why?!??!?
> > > > > >
> > > > > > TIA
> > > > > > Kjell
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > 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
> > > >
> > > >
> > >
> > > -------------------------------------------------
> > > This mail sent through IMP: http://horde.org/imp/
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> 

--- End Message ---
--- Begin Message ---
>
> Thanks for all for read my msg and sorry if my english it is not good.
> Thanks also for time to spend to me.
>
> My env it is WinNt SP6.0 Apache 1.3.24 PHP 4.2.1.
>
> I must be use my dll. I send you a .zip file with dll.
>
> I have put the dll into the path directory of the extensions of the
> php like D:\php\php-4.2.1-win32\extensions\..........
>
> I have uncomment php.ini like the follow:
> ;extension=php_sybase_ct.dll
> ;extension=php_tokenizer.dll
> extension=php_w32api.dll ; I have uncomment this tag
> ;extension=php_xslt.dll
> ;extension=php_yaz.dll
> ;extension=php_zlib.dll
> extension=Visqwin.dll ;this in my dll
> extension=Wvqprint.dll ;this is my dll
> ;extension=php4ts_debug.dll
>
> My script php is:
> <?
> > > // Load the extension in
> > > dl("Visqwin.dll");
> > > echo"<br>1<br>";
> > > $result = DoCalcVisQuad("", "c:\\tmp", "c:\\tmp","-1", "1", "1",
> "");
> > > echo"<br>$resul<br>";
> > > ?>
>
> and the errors that I have from the page it is:
> Warning: Unable to load dynamic library
> 'D:/Php/php-4.2.1-Win32/extensions/Visqwin.dll' - %1 is not a valid
> Windows NT application. in D:\Program Files\Apache
> Group\Apache\htdocs\installazione\FreeDelivery\visqwin.php on line 3
>
> 1
>
> Fatal error: Call to undefined function: docalcvisquad() in D:\Program
>
> Files\Apache
> Group\Apache\htdocs\installazione\FreeDelivery\visqwin.php
> on line 5
>
> I do not have idea how resolve it.
>
> Thanks very much for all.
>
> If  is possibile replay also to e-amil directly to me.
>
> Ciao Franco
> www.infocamere.it
>
--- End Message ---
--- Begin Message ---
Hi

1) Question1 
    How do you run PHP, "Manual Start" or "Service"?
    If "Service", did you restart the service AFTER changing PHP.INI ?

2) Question 2
    > > 'D:/Php/php-4.2.1-Win32/extensions/Visqwin.dll' - %1 is not a valid Windows NT 
application. in D:\Program Files\Apache
    Are you sure of the sintax for this call ? It seems as if PHP is complaining about 
the first parameter (a blank string, in your case)

Luis


----- Original Message ----- 
From: "Pozzer Franco" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 10, 2002 2:37 PM
Subject: [PHP-WIN] Re: Calling DLL from PHP script


> >
> > Thanks for all for read my msg and sorry if my english it is not good.
> > Thanks also for time to spend to me.
> >
> > My env it is WinNt SP6.0 Apache 1.3.24 PHP 4.2.1.
> >
> > I must be use my dll. I send you a .zip file with dll.
> >
> > I have put the dll into the path directory of the extensions of the
> > php like D:\php\php-4.2.1-win32\extensions\..........
> >
> > I have uncomment php.ini like the follow:
> > ;extension=php_sybase_ct.dll
> > ;extension=php_tokenizer.dll
> > extension=php_w32api.dll ; I have uncomment this tag
> > ;extension=php_xslt.dll
> > ;extension=php_yaz.dll
> > ;extension=php_zlib.dll
> > extension=Visqwin.dll ;this in my dll
> > extension=Wvqprint.dll ;this is my dll
> > ;extension=php4ts_debug.dll
> >
> > My script php is:
> > <?
> > > > // Load the extension in
> > > > dl("Visqwin.dll");
> > > > echo"<br>1<br>";
> > > > $result = DoCalcVisQuad("", "c:\\tmp", "c:\\tmp","-1", "1", "1",
> > "");
> > > > echo"<br>$resul<br>";
> > > > ?>
> >
> > and the errors that I have from the page it is:
> > Warning: Unable to load dynamic library
> > 'D:/Php/php-4.2.1-Win32/extensions/Visqwin.dll' - %1 is not a valid
> > Windows NT application. in D:\Program Files\Apache
> > Group\Apache\htdocs\installazione\FreeDelivery\visqwin.php on line 3
> >
> > 1
> >
> > Fatal error: Call to undefined function: docalcvisquad() in D:\Program
> >
> > Files\Apache
> > Group\Apache\htdocs\installazione\FreeDelivery\visqwin.php
> > on line 5
> >
> > I do not have idea how resolve it.
> >
> > Thanks very much for all.
> >
> > If  is possibile replay also to e-amil directly to me.
> >
> > Ciao Franco
> > www.infocamere.it
> >
> 

--- End Message ---
--- Begin Message ---
Whel and me too.

"Luis Ferro" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Please,
>
> Post/repost on the mailling list (or send a copy to me) as i'm also
> interested on how to assemble a solution like that...
>
> Thanx in advance,
> Luis Ferro
>
> Asendorf, John wrote:
>
> >Oh, I should have replied to my own message... I found the guy.  It was
> >actually on the MySQL mail list.  It uses scratch directories on the hard
> >drive but all three of the executeables run from the CD.  I'm waiting for
> >him to get back to me.
> >
> >John
> >
> >---------------------
> >John Asendorf - [EMAIL PROTECTED]
> >Web Applications Developer
> >http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> >Licking County, Ohio, USA
> >740-349-3631
> >Nullum magnum ingenium sine mixtura dementiae fuit
> >
> >
> >
> >
> >>-----Original Message-----
> >>From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]]
> >>Sent: Thursday, August 29, 2002 10:02 AM
> >>To: Asendorf, John
> >>Cc: Php Win32 list
> >>Subject: RE: [PHP-WIN] PHP/MySQL/APache on CD
> >>
> >>
> >>
> >>
> >>>I thought a couple of weeks ago I saw someone working on a
> >>>
> >>>
> >>PHP/MySQL/Apache
> >>
> >>
> >>>(all running from a CD) on here.  Does anyone remember who that was?
> >>>
> >>>
> >>Running an RDBMS on a CD-ROM? An interesting and original concept.
> >>
> >>Is this some kind of special purpose hard coded embedded read only
> >>system (like a telephone catalogue or encyclopedia), or does data
> >>(and meta data) resides on ordinary hard drives somewhere being
> >>resolved by hard coded "pointers" on the CD-ROM?
> >>
> >>
> >>
> >
> >
> >
>
>
>
> ---
> [This E-mail scanned for viruses by Declude Virus]
>


--- End Message ---
--- Begin Message ---
Hi, I have installed PHPTraid so, that went OK.
But I have a network and I would like to see the pages on the computers that
are connected to the servercomputer. (win ME)
I tried a lot of things already and I have one problem:
when I type in that he must Listen to <IP computer> then everytime I'm not
connected  to to the network, my computer with the apache server can't run.
And anouther problemm that I have is: that when I try to go to the site on
one of the connected computers in my network, I have to have an
internetconnection to view the pages (I also use a port to listen to in the
file) but when I have my internetconnection it isn't used only the network
is used, how can I make it work without the use of an internetconnection?

M.B.


--- End Message ---
--- Begin Message ---
But if you are using an if (/else) statement, then you can do the following
to fix it.
if($...){

}
exit;
else {


}
exit;
So if you would have an header in one of the two place, you can fix it like
this, but then you have to use the exit-command on both places!!

"R.S. Herhuth" <[EMAIL PROTECTED]> schreef in bericht
news:[EMAIL PROTECTED]...
>
> I'm having a bit of trouble understanding why I'm getting a "Cannot add
> header information; Headers already sent" error message.  I have several
> pages where I'm using the headers with no problems...but this single
> page I keep getting the error.  The only real difference is that this
> page has a bunch of logic checks before it calls the header command.
>
> What is the cause of this error?  what sort of things should I check
> for?
>
> I'm lost,
> Ron


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

The 'extension' option tells PHP that the dll has been compiled to be a 
PHP-specific library... you should not do this if you are simply trying 
to run a dll as a COM object.  To do that, you need to register the COM 
object as normal, and follow the instructions here (Italian):

http://www.php.net/manual/it/ref.com.php
http://www.php.net/manual/it/class.com.php

Also, you will need to delete these lines from your php.ini file:

extension=Visqwin.dll
extension=Wvqprint.dll

If you dont know much about COM, Id suggest getting a good book in 
Italian, because there is simply too much to talk about here... but this 
link could get you started (English):

http://www.4guysfromrolla.com/webtech/040300-1.shtml

-- 

Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424

Pozzer Franco wrote:
 > Brian,
 > sorry if I trouble you and thanks for read my  msg. Sorry also for my
 > english it is not goot.
 >
 > I have a very hard problems for me. I hope that you help me. Thanks for
 > this.
 >
 > I must be use .dll from my PHP script.
 >
 > My env it is WinNT, Apache 1.3.24 and PHP 4.2.1.
 >
 > The dll are present in the system root like D:1winnt\system32 and in the
 >
 > extensions path of the PHP like D:\php\php-4.2.1-win32\extensions\. I
 > have also place it in the system root.
 >
 > My PHP work as CGI.
 >
 > MY script PHP is:
 >
 > <?
 > // Load the extension in
 > dl("Visqwin.dll");
 > echo"<br>1<br>";
 > $result = DoCalcVisQuad("", "c:\\tmp", "c:\\tmp","-1", "1", "1", "");
 > echo"<br>$resul<br>";
 > ?>
 >
 > and I have uncomment extensions PHp in the php.ini like:
 >
 > ;extension=php_sybase_ct.dll
 > ;extension=php_tokenizer.dll
 > extension=php_w32api.dll
 > ;extension=php_xslt.dll
 > ;extension=php_yaz.dll
 > ;extension=php_zlib.dll
 > extension=Visqwin.dll
 > extension=Wvqprint.dll
 > ;extension=php4ts_debug.dll
 >
 > I have also uncommend COM section in the php.ini like:
 >
 > [com]
 > ; path to a file containing GUIDs, IIDs or filenames of files with
 > TypeLibs
 > ;com.typelib_file =
 > ; allow Distributed-COM calls
 > com.allow_dcom = true
 > ; autoregister constants of a components typlib on com_load()
 > com.autoregister_typelib = true
 > ;register constants casesensitive
 > com.autoregister_casesensitive = false
 > ; show warnings on duplicate constat registrations
 > com.autoregister_verbose = true
 >
 > When I executed my script I have a msg error like:
 >
 > Warning: Unable to load dynamic library
 > 'D:/Php/php-4.2.1-Win32/extensions/Visqwin.dll' - %1 is not a valid
 > Windows NT application. in D:\Program Files\Apache
 > Group\Apache\htdocs\installazione\FreeDelivery\visqwin.php on line 3
 >
 > 1
 >
 > Fatal error: Call to undefined function: docalcvisquad() in D:\Program
 > Files\Apache Group\Apache\htdocs\installazione\FreeDelivery\visqwin.php
 > on line 5
 >
 > This dll are used it the VB application and in the Client/Server IEF
 > application. It must be use also with a new application PHP.
 >
 > I send you a zip files with my dll.
 >
 > I hope to reply my question. In any case thanks and sorry for the
 > trouble.
 >
 > Ciao Franco
 >
 > www.infocamere.it


--- End Message ---

Reply via email to