php-windows Digest 29 Sep 2002 11:05:47 -0000 Issue 1362
Topics (messages 16053 through 16063):
Re: PHP/IIS5/MSSQL shows CGI Header Error
16053 by: Frank M. Kromann
??
16054 by: konchim
Re: i have a problem,can hlep?
16055 by: Luis Ferro
16061 by: konchim
PHP and IIS6 (windows .NET RC1)
16056 by: Tyler
16059 by: Cedric Perthuis
16060 by: Cedric Perthuis
Very cool -= Code Generator =- !!!
16057 by: johnny1b1g
permission to write to text file
16058 by: Irene
16062 by: konchim
Re: GET / POST
16063 by: M.B.
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 ---
Hi All,
The upsides are you wil lbe using a database interface with full support for all
Microsofts new features like nText, nChar etc.
The downsides:
1) A performence penalty, as OLEDB (used by ADODB) adds some overhead on featching
data. I think most of this can be eliminated by only selecting the data you realy need
in your application.
2) Your code is no longer portable to *nix's. ADODB and COM support is a Win32 thing
only.
- Frank
> Does anyone know what the performance difference are for this method? What are the
>downsides for this method.
>
> Thanks,
>
> -Flint
>
> -----Original Message-----
> From: David Redmond [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 27, 2002 8:31 PM
> To: 'bmw'; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Re: PHP/IIS5/MSSQL shows CGI Header Error
>
>
> Hi All, thanks for the feedback.
>
> The work around that we came up with was to use COM support and use the
> ADODB.Connection object. Fortunately, the code changes were pretty small
> since all DB connections are handled in one function.
>
> The pages have now run flawlessly for just over a day now which is a great
> sign.
>
> Cheers
>
> -----Original Message-----
> From: bmw [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 27 September 2002 10:39 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: PHP/IIS5/MSSQL shows CGI Header Error
>
>
> I had similar problems with close to the same configuration and changed
> strategies completely by having the IIS server handle the header output.
> This was done by making the IIS server use the php DLL instead of the .exe
> as a CGI. My php files work fine now. It took some digging, but there is an
> installation/configuration explanation in the MS IIS help files.
>
>
> "Csa" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Check if you have installed PHP in a folder to which only the
> administrator
> > has access to. (Either PHP or the application that is calling PHP.)
> > Regards,
> > csaravind
> > "David Redmond" <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > Hi All,
> > > I am just wondering if anyone out there using PHP (4.2.3, bug also
> affects
> > > previous versions and the latest CVS snapshot) with IIS5 and receives
> the
> > > "CGI Header Error" in PHP scripts that use an MSSQL DB connection.
> > >
> > > This bug has been logged on the PHP buglist
> > > (http://bugs.php.net/bug.php?id=9852) however the moderators have closed
> > the
> > > bug without it being investigated correctly.
> > >
> > > I will re-itereate the points that I have listed in the bug thread, they
> > > are;
> > >
> > > - I'm running PHP 4.2.3, IIS5, Win2K (SP3 + Q326830, Q295688, Q147222).
> > > - IIS is configured to use Host Header
> > > - The error message that is returned via the script is;
> > >
> > > <head><title>Error in CGI Application</title></head>
> > > <body><h1>CGI Error</h1>The specified CGI application misbehaved by not
> > > returning a complete set of HTTP headers. The headers it did return
> > > are:<p><p><pre></pre>
> > >
> > > - If the slot is run as a local administrator then the error does not
> > occur,
> > > similiary if you remove the IUSR access to the slot so that you are
> > prompted
> > > for authentication, and you use an administrator account.
> > > - At the same time that the error is generated, a popup also occurs on
> the
> > > console with the details;
> > >
> > > TitleBar: php.exe - Application Error
> > >
> > > The application failed to initialize properly (0xc0000142). Click OK to
> > > terminate the application
> > >
> > > - Any other PHP script which does not use an MSSQL connection works
> > without
> > > a problem, this also includes scripts which use MySQL.
> > >
> > > If anyone has encountered this problem before and found a resolution for
> > it,
> > > please post it here. As you may read from the bug thread, the developers
> > of
> > > PHP seemed to have passed this off as an IIS issue.
> > >
> > > Cheers
> >
> >
>
>
>
> --
> 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 Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
?
--- End Message ---
--- Begin Message ---
Try a line like:
<?php
phpinfo();
?>
This should not only show all the configuration of your server, but also
test it to see if it works...
Cheers...
Luis Ferro
P.S.- All php lines end with a ";" which will render your page as not
working. If you have, in the php.ini, all errors and warnings turned
off, you won't get the error message that should have apeared otherwise...
konchim wrote:
>I using windows apache 1.3
>php 4.2.3
>But when i using <?echo $var?>
>It can not be get a value,what happen?
>Is it my php install problem or aother problem
>Please help!
>Thank You
>
>Konchim
>
>
>
>
>
---
[This E-mail scanned for viruses by Declude Virus]
--- End Message ---
--- Begin Message ---
thank you
But my problem is when i set a form method="post" action="xx.php"
and then the php can't get the value
the script don't have error in other server,only my server can't get the
value!
so, i don't know why?
Kon Chim
--- End Message ---
--- Begin Message ---
Hi, I cannot seem to get PHP working under Windows.NET RC1 Standard Server.
Is there anyone out there who got this to work and knows how?
Thanks much,
Tyler.
--- End Message ---
--- Begin Message ---
idem....
trying to make it work for 2 days... netiher the isapi, nor the cgi...
My best guess is that the Export symbols needed must have changed... I
should try to look at the MS dlls to see what's in and compare to an old
isapi dll.
I am trying to get support from MS but it is not easy...
We should be able to recompile the isapi dll as soon as we get the spec.
"Tyler" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Hi, I cannot seem to get PHP working under Windows.NET RC1 Standard
Server.
> Is there anyone out there who got this to work and knows how?
>
> Thanks much,
>
> Tyler.
>
>
--- End Message ---
--- Begin Message ---
Ok, that was easier than what I thought :)
Windows .Net PHP installation:
First of all the installer doesn't work because an ActiveX object used to
configure IIS is not present or not available when you try to install PHP.
- So download the zip file instead.
- rename/modify/copy php.ini to your C:/WINDOWS directory.
- copy the file php4ts.dll to C:/WINDOWS/SYSTEM32 ( required, I don't know
why, it is supposed to be used only if you use extension...but even without
extensions it doesn't work without it )
IIS 6.0 disable by default all the ISAPI extensions:
- go to the IIS management console panel
- You have 4 subsections, FTP sites, Application Pools, Web Sites and Web
Service Extensions
- Go to Web Service Extensions
- For the first try, Allow "All Unknown ISAPI extension" then you will be
able to create an entry for the PHP and juste allowing it, I didn't try it
yet.
- go now in Web Sites, and do the classic extension mapping at the top level
of your web sites heirarchy
- in Home Directory, click on Configuration, and now add the [your
path]/php4isapi.dll file with the extension .php
- in Home Directory, allow Script and Executable or only Scripts
et voila ! You don't have to restart anything, it just work now.
Next step having MySql work... it seems to be really harder... but mysql can
be easily replace by SQL server, so I am not too much worried about it.
Cedric.
> "Tyler" <[EMAIL PROTECTED]> a écrit dans le message de news:
> [EMAIL PROTECTED]
> > Hi, I cannot seem to get PHP working under Windows.NET RC1 Standard
> Server.
> > Is there anyone out there who got this to work and knows how?
> >
> > Thanks much,
> >
> > Tyler.
> >
> >
>
>
--- End Message ---
--- Begin Message ---
Use Codejay as your web assistant.
Create ASP , PHP, COLDFUSION , ASP.NET
web applications
Save time and money.
Visit www.codejay.com
--- End Message ---
--- Begin Message ---
Hi,
I just installed PHP on IIS 5, Win XP, and I keep getting permission problem
to fwrite, fopen and fclose the txt file. I have set the permission to read,
write, execute by doing this:
I went to administration tool ->IIS -> go to default website ->select my
virtual directory -> find the txt file in my directory -> properties -> pick
the file tab and check read, write and script source access. I did the same
thing for the php file. I also tried doing the same thing to the whole site
folder. None works.
Is there anything else I should do? Or is there something wrong with my
setting/installation?
Any help appreciated.
Thanks,
rene
--- End Message ---
--- Begin Message ---
maybe your script must be set permission too
not only IIS
"Irene" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó·s»D
:[EMAIL PROTECTED]
> Hi,
>
> I just installed PHP on IIS 5, Win XP, and I keep getting permission
problem
> to fwrite, fopen and fclose the txt file. I have set the permission to
read,
> write, execute by doing this:
> I went to administration tool ->IIS -> go to default website ->select my
> virtual directory -> find the txt file in my directory -> properties ->
pick
> the file tab and check read, write and script source access. I did the
same
> thing for the php file. I also tried doing the same thing to the whole
site
> folder. None works.
> Is there anything else I should do? Or is there something wrong with my
> setting/installation?
> Any help appreciated.
> Thanks,
>
> rene
>
>
--- End Message ---
--- Begin Message ---
Whell, I tried that, but I still need to make an internetconnection than.
( I don't know why).
But one thing I whant to know, I used anouhter port instead of 80.
Does that make any differends.
I used 4444.
But that is because I thought port 80 is for internet (right?? or is it just
8080 only??).
Anyway that is why I tried using a differend port.
But it didn't help.
So any suggestions??
M.B.
"Richard Dobson" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Try making it listen to all ip addresses instead of simply the network
> ip.
>
> Listen 0.0.0.0:80
>
> Richard
>
> On Tuesday, September 24, 2002, at 12:05 am, M.B. wrote:
>
> > By the way, does anyone of you knows how to make a lot of changes in
> > Apache?
> >
> > I need to configurate it for a network, but I have a porblem.
> > See teh topic: using apache on a network.
> >
> > M.B. wrote:
> > 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.
> >
> >
> > I already have lots of sugestions, but the all don't seem to work.
> > So if one of you would knwo something more about it, please tell me.
> >
> > M.B.
> >
> >
> > "M.B." <[EMAIL PROTECTED]> schreef in bericht
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >> Whell, I don;t know what is wrong with your version of apache, but the
> >> differends between the POST en GET-methode is, that the GET methode is
> > used
> >> if you whant to recieve data back on you screen.
> >> The POST-methode is used only for sending things somewere (like an
> >> email,
> > or
> >> variables to anouther page or something like that).
> >> You can not recieve data back then.
> >>
> >> That's all (in short terms).
> >> I hope that answers you second question.
> >>
> >> M.B.
> >>
> >> "Xxxpixie" <[EMAIL PROTECTED]> schreef in bericht
> >> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >>> hi! I'm a total newbie to php4 or web design and i (of course) have a
> >>> problem:
> >>> i'm using apache 2.x and php4 as a module.
> >>> so, when i use the GET method to pass data to my php script:
> >>>
> >>> script.php?x=5
> >>>
> >>>
> >>> i can't access it as a normal global variable:
> >>>
> >>> <?php
> >>> print $x;
> >>> ?>
> >>>
> >>> the only way i can get to it is:
> >>>
> >>> <?php
> >>> print _GET['x']
> >>> ?>
> >>>
> >>> what's wrong?
> >>>
> >>> by the way, what's the difference between GET and POST methods
> >>> anyway?
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---