php-windows Digest 12 Aug 2004 01:08:13 -0000 Issue 2356
Topics (messages 24381 through 24387):
PHP 5, IIS 6, no love....
24381 by: news.php.net
24385 by: Justin Patrin
24386 by: news.php.net
FOrm processing question
24382 by: anne
24383 by: Gryffyn, Trevor
Re: Variables not passed through form
24384 by: Nathan
Re: a NS7 problem
24387 by: oleks
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 ---
Ok, so I decided to go the easy route with PHP 5 and simply use the
installer. Fresh installation of Win2K3, IIS works just fine, and I take
the next step of running the PHP 5 installshield app. I updated the
permissions as the installer recommends at the end of the installation.
Everything appeared to be good. So I created a simple test script and it
wouldn't run. I checked the permissions to make sure they matched those
recommended by the installer -- no difference. I moved the php5ts.dll file
over to \windows as suggested by the manual install -- no difference. I set
the iusr_ account to have read and read/execute permissions on the PHP
folder -- no difference. I fiddled with different settings in IIS -- no
difference.
Whenever I attempt to run a script via IE, it hits me with a standard 404,
"file or directory cannot be found" error. Of course, I *KNOW* the files
are there so that's not the issue.
Suggestions?
--- End Message ---
--- Begin Message ---
On Wed, 11 Aug 2004 03:10:03 -0400, news.php.net <[EMAIL PROTECTED]> wrote:
> Ok, so I decided to go the easy route with PHP 5 and simply use the
> installer. Fresh installation of Win2K3, IIS works just fine, and I take
> the next step of running the PHP 5 installshield app. I updated the
> permissions as the installer recommends at the end of the installation.
>
> Everything appeared to be good. So I created a simple test script and it
> wouldn't run. I checked the permissions to make sure they matched those
> recommended by the installer -- no difference. I moved the php5ts.dll file
> over to \windows as suggested by the manual install -- no difference. I set
> the iusr_ account to have read and read/execute permissions on the PHP
> folder -- no difference. I fiddled with different settings in IIS -- no
> difference.
>
> Whenever I attempt to run a script via IE, it hits me with a standard 404,
> "file or directory cannot be found" error. Of course, I *KNOW* the files
> are there so that's not the issue.
>
> Suggestions?
>
You did remember to restart IIS, right?
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--
--- End Message ---
--- Begin Message ---
> You did remember to restart IIS, right?
Yup. I also restarted the box 3 times during the testing process.
--- End Message ---
--- Begin Message ---
Trying this again. IT makes no sense that from one page to the next the variable values are not being carried. They are in Unix, just not in the code on windows? How do you process form data normally?
-------Original Message-------
> From: Anne Shroeder <[EMAIL PROTECTED]>
> Subject: [PHP-WIN] Variables not passed through form
> Sent: 09 Aug 2004 21:36:23
>
> I've always used PHP on *Nix platforms.��So I'm assuming that this is a
>
> windows issue.��Here is identical code
>
> (1) on an MS server:
>
> http://www.cgapdirect.org/annes/ProductCosting/contribute.php
>
> (2) on a Linux sever:
>
> http://www.language-works.com/cgap/contribute.php
>
>
>
> The form variable values are displayed at the bottom of the page in (2) but
>
> (1) ignores them entirely.��Why?
>
>
>
> Anne
>
>
>
> --
>
> PHP Windows Mailing List (http://www.php.net/)
>
> To unsubscribe, visit: http://www.php.net/unsub.php
-------Original Message-------
--- Begin Message ---
I've always used PHP on *Nix platforms. So I'm assuming that this is a
windows issue. Here is identical code
(1) on an MS server:
http://www.cgapdirect.org/annes/ProductCosting/contribute.php
(2) on a Linux sever:
http://www.language-works.com/cgap/contribute.php
The form variable values are displayed at the bottom of the page in (2) but
(1) ignores them entirely. Why?
Anne
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- End Message ---
--- Begin Message ---
I didn't notice if someone had replied to this yet or not, but sounds
like a classic globals issue. Check your PHP.INI to see if you have
globals turned on? I'm guessing you do for the Unix system but not on
the Windows box.
In PHP.INI (make sure you're looking at the same PHP.INI that PHP is
using):
register_globals = Off
It's good security to turn them off, then just use:
$formvariable = $_GET["formvariable"];
or
$formvariable = $_POST["formvariable"];
or
$formvariable = $_REQUEST["formvariable"];
Without seeing your code, it's hard to make any other guesses as to what
could be wrong.
Hope that helps.
-TG
-----Original Message-----
From: anne [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 11, 2004 10:06 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] FOrm processing question
Trying this again. IT makes no sense that from one page to the
next the variable values are not being carried. They are in Unix, just
not in the code on windows? How do you process form data normally?
-------Original Message-------
> From: Anne Shroeder <[EMAIL PROTECTED]>
> Subject: [PHP-WIN] Variables not passed through form
> Sent: 09 Aug 2004 21:36:23
>
> I've always used PHP on *Nix platforms. So I'm assuming that
this is a
>
> windows issue. Here is identical code
>
> (1) on an MS server:
>
> http://www.cgapdirect.org/annes/ProductCosting/contribute.php
>
> (2) on a Linux sever:
>
> http://www.language-works.com/cgap/contribute.php
>
>
>
> The form variable values are displayed at the bottom of the
page in (2) but
>
> (1) ignores them entirely. Why?
>
>
>
> Anne
>
>
>
> --
>
> PHP Windows Mailing List (http://www.php.net/)
>
> To unsubscribe, visit: http://www.php.net/unsub.php
-------Original Message-------
--- End Message ---
--- Begin Message ---
Anne Shroeder schreef:
I've always used PHP on *Nix platforms. So I'm assuming that this is a
windows issue. Here is identical code
(1) on an MS server:
http://www.cgapdirect.org/annes/ProductCosting/contribute.php
(2) on a Linux sever:
http://www.language-works.com/cgap/contribute.php
The form variable values are displayed at the bottom of the page in (2) but
(1) ignores them entirely. Why?
Anne
Both are perfectly the same: Invalid File specified
--- End Message ---
--- Begin Message ---
Hi All
How to fix a NS7 problem where it wants to add a .PHP extension to all
filenames
I try to use this funnction:
function download ($fileDir, $fileName) {
$completeFilePath=$fileDir.'/'.$fileName;
header('Pragma: no-cache');
header("Content-type: archive/exe\n
Content-Disposition: attachment;
filename=\"" . $fileName . "\"\n
Content-length: ".(string)(filesize($completeFilePath))
);
$fd=fopen($completeFilePath,'rb');
while(!feof($fd)) {
print(fread($fd, 4096));
flush();
}
}
MSIE6 works perfect but NS7 adds .php extension when I try to force NS7
to download a file. How to fix this problem
Thanks for help ...
Oleks
--- End Message ---