RE: [PHP] URGENT: IIS server doesn't recognize PHP pages

2001-12-04 Thread Jon Haworth

> >have you tried it with a
> > PERL-style shebang line at the top of your scripts? Give something like:
> >
> > #!/usr/bin/php -q
> 
> On a WinNT/IIS box? I'll try, but never read anything like this...

Ah yes, good point :-)

Your path may be more like c:\progra~1\php\php.exe -q 

I don't even know if it's possible to compile PHP as a CGI on Windows, but
it might be, so it's probably worth a try.

Cheers
Jon


**
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or confidentiality'

**

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




Re: [PHP] URGENT: IIS server doesn't recognize PHP pages

2001-12-04 Thread mweb

First of all, thanks to John, Emek and Phil.

Glad to see unanimity about it being a server config problem.
However:
I have tried .php and .php4 extension without any luck. Didn't try  .php3
because was giving for granted their setup is newer than two years ;-))
OK, I'll try that too
 
>have you tried it with a
> PERL-style shebang line at the top of your scripts? Give something like:
>
> #!/usr/bin/php -q

On a WinNT/IIS box? I'll try, but never read anything like this...

Anyway, the sysadmin just emailed that he is going to check: we'll see. In 
the meantime, anybody with a working php.ini file for IIS please send it (to 
me of course, not the list)

TIA,
mweb

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




RE: [PHP] URGENT: IIS server doesn't recognize PHP pages

2001-12-04 Thread Jon Haworth

It depends on how the server has PHP configured... have you tried it with a
PERL-style shebang line at the top of your scripts? Give something like:

#!/usr/bin/php -q

a go, and see if you get any joy (you may need to play with the path)

Failing that, email the sysadmin for the server and ask him/her how PHP's
been installed.

Cheers
Jon


-Original Message-
From: mweb [mailto:[EMAIL PROTECTED]]
Sent: 04 December 2001 10:47
To: [EMAIL PROTECTED]
Subject: [PHP] URGENT: IIS server doesn't recognize PHP pages


Hello,

I am working for a customer whose ISP uses WinNT/IIS. To test the server 
environment available I have just uploaded the classic test php page with
only phpinfo() inside.

When I point to that URL (http://mycustomerdomain.com/test.php), netscape 
just opens the "Save as (type application/octet stream)" window.

This means that the *server* is not set up to fire up the PHP interpreter on
files ending with .php, right?
What could the reason be? Is it possible that the fault is in the file, for 
example the CR/LF mess when moving files from Linux to Win**.
If it *is* a server problem, what should I suggest to the ISP sysadmin
(which is responsive, but knows almost exclusively IIS/ASP/VBScript)?

Please help: the customer is starting to scream, and it is really
embarassing
to be stuck like this when I have a bunch of pages perfectly workiing under 
Linux just waiting inside my PC.


**
'The information included in this Email is of a confidential nature and is 
intended only for the addressee. If you are not the intended addressee, 
any disclosure, copying or distribution by you is prohibited and may be 
unlawful. Disclosure to any party other than the addressee, whether 
inadvertent or otherwise is not intended to waive privilege or confidentiality'

**

-- 
PHP General 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] URGENT: IIS server doesn't recognize PHP pages

2001-12-04 Thread mweb

Hello,

I am working for a customer whose ISP uses WinNT/IIS. To test the server 
environment available I have just uploaded the classic test php page with
only phpinfo() inside.

When I point to that URL (http://mycustomerdomain.com/test.php), netscape 
just opens the "Save as (type application/octet stream)" window.

This means that the *server* is not set up to fire up the PHP interpreter on
files ending with .php, right?
What could the reason be? Is it possible that the fault is in the file, for 
example the CR/LF mess when moving files from Linux to Win**.
If it *is* a server problem, what should I suggest to the ISP sysadmin
(which is responsive, but knows almost exclusively IIS/ASP/VBScript)?

Please help: the customer is starting to scream, and it is really embarassing
to be stuck like this when I have a bunch of pages perfectly workiing under 
Linux just waiting inside my PC.


TIA,
mweb

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