php-windows Digest 17 Dec 2002 04:48:07 -0000 Issue 1490
Topics (messages 17424 through 17462):
Oh crumbs - My cookies are broken!
17424 by: George Pitcher
Getting errors, need help
17425 by: David
17428 by: Joseph W. Goff
Re: Per site php.ini
17426 by: Veselina Jecheva
17427 by: Charles P. Killmer
17429 by: Matt Kynaston
17430 by: Charles P. Killmer
17431 by: Wojciech Owczarek
17432 by: Charles P. Killmer
17434 by: Luis Ferro
17435 by: Gene Dymarskiy
17436 by: Luis Ferro
17437 by: Matt Kynaston
Re: session
17433 by: Wojciech Owczarek
PHP$ and Apache2 Configuration
17438 by: Alvarez, Anthony
17442 by: Dash McElroy (php)
17444 by: Alvarez, Anthony
17445 by: Dash McElroy (php)
17452 by: Juan Rosero
17453 by: Alvarez, Anthony
17455 by: Dash McElroy (php)
Warning messages
17439 by: Andy
17440 by: Stephen Edmonds
17441 by: Wojciech Owczarek
17443 by: Andy
17446 by: Stephen Edmonds
17447 by: Andy
17448 by: Dash McElroy (php)
17449 by: Joseph W. Goff
IIS, ISAPI and PHPBB
17450 by: Christian Bartsch
17451 by: Sterling Anderson
17454 by: Christian Bartsch
17456 by: Sterling Anderson
17457 by: Christian Bartsch
Re: accesing to a dll
17458 by: Sven Schnitzke
php Isapi for IIS 5.0
17459 by: Charles P. Killmer
Re: Tough decision ASP or PHP
17460 by: Charles P. Killmer
PHP + IIS6 - Permission Issues?
17461 by: David Marr
PHP 4.2.3 on PWS4/WinME
17462 by: Jason Trickett
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,
I have a small site which has a default login page (default.html).
The form is then checked against a MySQL db and cookies are being set.
However, when the next page opens (redirected), the information from the
cookies has not been pased on.
Now one possible problem might be that the 'next page' is a frameset.
I know that cookies work on this NT server because I also use Lasso on that
and the cookies are working fine with that.
Any suggestions?
George in Oxford
===
George Pitcher
HERON Technical Manager
Ingenta plc
23-38 Hythe Bridge Street, Oxford, OX1 2ET
T +44 (0)1865 799137 direct
T +44 (0)1865 799000 switchboard
F +44 (0)1865 799134
E [EMAIL PROTECTED]
www.ingenta.com
Ingenta: Empowering the exchange of academic and professional content
online.
--- End Message ---
--- Begin Message ---
Hello all,
I am new to PHP so I am going to need some help.
I am trying to create a admin login page. But I am getting this error
message:
Parse error: parse error, unexpected T_VARIABLE in c:\program files\apache
group\apache\htdocs\sunwestsilver\admin\tmpi5pcf76sy9.php on line 43
tmpi5pcf76sy9.php is generated by Dreamweaver MX as a temp file from
admin.php
It is coming from this line:
this is line 43 code
# $myquery = .'" AND password = '" . crypt($password, "xpz8ty") . "'";
The complete code is:
// Query Database with username and encrypted password
#$myquery = "SELECT * FROM user WHERE username = '" . $user
#$myquery = .'" AND password = '" . crypt($password, "xpz8ty") . "'";
#$result = mysql_query($myquery);
#if (!$result)
#{
# $error = "Cannot run Query";
#return($error);
#}
Any help will be nice.
I got this code from Dreamweaver MX: PHP Web Development pg. 257
Thanks
David
--- End Message ---
--- Begin Message ---
The line just above 43 does not contain a semi-colon.
----- Original Message -----
From: "David" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 15, 2002 7:18 PM
Subject: [PHP-WIN] Getting errors, need help
> Hello all,
>
> I am new to PHP so I am going to need some help.
>
> I am trying to create a admin login page. But I am getting this error
> message:
>
> Parse error: parse error, unexpected T_VARIABLE in c:\program files\apache
> group\apache\htdocs\sunwestsilver\admin\tmpi5pcf76sy9.php on line 43
>
> tmpi5pcf76sy9.php is generated by Dreamweaver MX as a temp file from
> admin.php
>
> It is coming from this line:
>
> this is line 43 code
>
> # $myquery = .'" AND password = '" . crypt($password, "xpz8ty") . "'";
>
> The complete code is:
>
> // Query Database with username and encrypted password
> #$myquery = "SELECT * FROM user WHERE username = '" . $user
> #$myquery = .'" AND password = '" . crypt($password, "xpz8ty") . "'";
> #$result = mysql_query($myquery);
> #if (!$result)
> #{
> # $error = "Cannot run Query";
> #return($error);
> #}
>
> Any help will be nice.
>
> I got this code from Dreamweaver MX: PHP Web Development pg. 257
>
> Thanks
>
> David
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
The easiest way is to use the windows installer: it asks about php
directory, IIS version, etc., it's very easy to install. Otherwise you
should follow the instructions from the install.txt in the php zip package.
With best regards, Veselina
At 20:23 12/14/02 -0600, you wrote:
>Does anyone know how to configure PHP to have per website ini files. I
>am using IIS 5.0 on Windows 2000 Server. I have searched and only found
>people asking. I have found a few responses but only for servers with
>Apache. And while I would love to switch, that is not my decision. Oh
>well.
>
>Any help is appreciated
>Thanks
>Charles Killmer
>
--- End Message ---
--- Begin Message ---
I saw nothing in the install.txt about having multiple ini files. If I
have five websites I want them to have five different ini files.
I hope this is clear.
Charles
-----Original Message-----
From: Veselina Jecheva [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 10:28 AM
To: Charles P. Killmer; [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Per site php.ini
The easiest way is to use the windows installer: it asks about php
directory, IIS version, etc., it's very easy to install. Otherwise you
should follow the instructions from the install.txt in the php zip
package.
With best regards, Veselina
At 20:23 12/14/02 -0600, you wrote:
>Does anyone know how to configure PHP to have per website ini files. I
>am using IIS 5.0 on Windows 2000 Server. I have searched and only
found
>people asking. I have found a few responses but only for servers with
>Apache. And while I would love to switch, that is not my decision. Oh
>well.
>
>Any help is appreciated
>Thanks
>Charles Killmer
>
--- End Message ---
--- Begin Message ---
> I saw nothing in the install.txt about having multiple ini
> files. If I
> have five websites I want them to have five different ini files.
Not possible under IIS as far as I know. Closest thing is to include a
file at the top of each page that uses ini_set() to make the changes you
want.
M.
--- End Message ---
--- Begin Message ---
Darn. Some of the directives cannot be set at runtime though.
Oh well.
Thanks
Charles
-----Original Message-----
From: Matt Kynaston [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 10:47 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Per site php.ini
> I saw nothing in the install.txt about having multiple ini
> files. If I
> have five websites I want them to have five different ini files.
Not possible under IIS as far as I know. Closest thing is to include a
file at the top of each page that uses ini_set() to make the changes you
want.
M.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hmmmz...
afaik in Apache (and only Apache, also only used as module) you can set
php.ini variables in .htaccess files.
(remember to have AllowOverride directive for that directories to use
.htaccess correctly)
So to set sth per site, you have to put into it's htaccess:
php_value [valuename] [value]
to set php.ini value, or
php_flag [flagname] [on|off ]
to set some flag
there are also:
php_admin_value
and
php_admin_flag
which do the same, but can only be used in Apache's main config files, not
in .htaccess files
Hope this helps to solve anything, anr/or will push You to using Apache if
You aren't using it :]
---------
[EMAIL PROTECTED] the humble sheep
--- End Message ---
--- Begin Message ---
Well I would love to switch to Apache but we are a Microsoft shop. I am
lucky to be using PHP and have had to defend it a few times against asp.
Thanks for everyones help.
Charles Killmer
-----Original Message-----
From: Wojciech Owczarek [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 10:53 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Per site php.ini
Hmmmz...
afaik in Apache (and only Apache, also only used as module) you can set
php.ini variables in .htaccess files.
(remember to have AllowOverride directive for that directories to use
.htaccess correctly)
So to set sth per site, you have to put into it's htaccess:
php_value [valuename] [value]
to set php.ini value, or
php_flag [flagname] [on|off ]
to set some flag
there are also:
php_admin_value
and
php_admin_flag
which do the same, but can only be used in Apache's main config files,
not
in .htaccess files
Hope this helps to solve anything, anr/or will push You to using Apache
if
You aren't using it :]
---------
[EMAIL PROTECTED] the humble sheep
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Check in the install.txt how to install php in the IIS manually and as
an ISAPI.
Then, when need to change the ISAPI configuration in the site that you
need to use PHP, just add in front of the php.exe the commands to use a
specific php.ini file...
Exact details eludes me now... but hope that this hints will lead you to
the solution...
Cheers,
Luis Ferro
Teladigital.net
---
[This E-mail scanned for viruses by Declude Virus]
--- End Message ---
--- Begin Message ---
You can include scripts into your php files that will change config on the fly
take a look at ini_set function
http://www.php.net/manual/en/function.ini-set.php
good luck
-----Original Message-----
From: Charles P. Killmer [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 14, 2002 8:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Per site php.ini
Does anyone know how to configure PHP to have per website ini files. I
am using IIS 5.0 on Windows 2000 Server. I have searched and only found
people asking. I have found a few responses but only for servers with
Apache. And while I would love to switch, that is not my decision. Oh
well.
Any help is appreciated
Thanks
Charles Killmer
--- End Message ---
--- Begin Message ---
ini_set can't handle some of the php.ini attributes/properties...
specially those that must be defined before the execution of the php
page itself...
It may or may not be an issue...
Cheers...
Luis Ferro
TelaDigital.Net
Gene Dymarskiy wrote:
You can include scripts into your php files that will change config on the fly
take a look at ini_set function
http://www.php.net/manual/en/function.ini-set.php
good luck
-----Original Message-----
From: Charles P. Killmer [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 14, 2002 8:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Per site php.ini
Does anyone know how to configure PHP to have per website ini files. I
am using IIS 5.0 on Windows 2000 Server. I have searched and only found
people asking. I have found a few responses but only for servers with
Apache. And while I would love to switch, that is not my decision. Oh
well.
Any help is appreciated
Thanks
Charles Killmer
---
[This E-mail scanned for viruses by Declude Virus]
--- End Message ---
--- Begin Message ---
Hrmmm...
Very clever! Just checked out php.exe, and indeed you can specify a path
to php.ini:
E:\PHP>php.exe -h
Usage: php [-q] [-h] [-s [-v] [-i] [-f <file>] | {<file> [args...]}
-q Quiet-mode. Suppress HTTP Header output.
-s Display colour syntax highlighted source.
-w Display source with stripped comments and whitespace.
-f <file> Parse <file>. Implies `-q'
-v Version number
-C Do not chdir to the script's directory
-c <path> Look for php.ini file in this directory
-a Run interactively
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-z <file> Load Zend extension <file>.
-l Syntax check only (lint)
-m Show compiled in modules
-i PHP information
-h This help
So '-c' is the baby. I'll have to give this a try. Think it'll only work
the the CGI version, 'though...
M
> -----Original Message-----
> From: Luis Ferro [mailto:[EMAIL PROTECTED]]
> Sent: 16 December 2002 17:05
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Per site php.ini
>
>
> Check in the install.txt how to install php in the IIS
> manually and as
> an ISAPI.
>
> Then, when need to change the ISAPI configuration in the site
> that you
> need to use PHP, just add in front of the php.exe the
> commands to use a
> specific php.ini file...
>
> Exact details eludes me now... but hope that this hints will
> lead you to
> the solution...
>
> Cheers,
> Luis Ferro
> Teladigital.net
>
>
> ---
> [This E-mail scanned for viruses by Declude Virus]
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Cause you refreshed it and there was session_start(); which created new
session.
Afaik from php 4.0.sth you don't have to use ession_start at all. You can
use it only when you _really want_ to start a new session, ending the last
one. Just registering some sessvar creates session already.
Try to check what happens if you create and click a link from that site to
the same site, I mean if it still creates new session...
------------
[EMAIL PROTECTED] the humble sheep
--- End Message ---
--- Begin Message ---
I couldn't find it or elsewhere in the forum, so apologies if this is a FAQ.
I know this has to be really basic, and apologies for the question, but what
am I doing wrong?
Could you kindly share your experience with me? Thanks in advance.
I am running Apache v2.0.43 on Windows 2000 SP1, The web server seems to
work fine but I am having difficulty getting PHP 4.2.3 to work with Apache.
The following line is my HTTPD.conf prevents the Apache web server from
starting properly.
LoadModule php4_module c:/php/sapi/php4apache.dll
Any clues, suggestions, tips or advise is appreciated. Please advise.
I look forward to hearing from you. Thank you.
==
Anthony Alvarez, Webmaster
[EMAIL PROTECTED]
Panasonic Wireless Design Center (MMCD)
1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024
+1 770 338 6176. Fax: +1 770 338 6238.
http://www.panasonic-wireless.com
PGP Fingerprint: 9A2C E2D6 1D8E 96B4 CC57 9268 380B 00A6 A92D 9586
--Appended by Matsushita Mobile Communications Development Corporation of
U.S.A.-----This e-mail and any attachments may contain information that is
confidential, proprietary, privileged or otherwise protected by law. The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the intended
recipient of this message, you are not authorized to read, print, retain,
copy or disseminate this message or any part of it. If you have received
this e-mail in error, please notify the sender immediately by return e-mail
and delete it from your computer.
--- End Message ---
--- Begin Message ---
Try PHP 4.3.0 RC3 OR Apache 1.3.x.
Works for me :)
-Dash
-----Original Message-----
From: Alvarez, Anthony [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 10:14 AM
To: '[EMAIL PROTECTED]'
Subject: [PHP-WIN] PHP$ and Apache2 Configuration
I couldn't find it or elsewhere in the forum, so apologies if this is a FAQ.
I know this has to be really basic, and apologies for the question, but what
am I doing wrong?
Could you kindly share your experience with me? Thanks in advance.
I am running Apache v2.0.43 on Windows 2000 SP1, The web server seems to
work fine but I am having difficulty getting PHP 4.2.3 to work with Apache.
The following line is my HTTPD.conf prevents the Apache web server from
starting properly.
LoadModule php4_module c:/php/sapi/php4apache.dll
Any clues, suggestions, tips or advise is appreciated. Please advise.
I look forward to hearing from you. Thank you.
==
Anthony Alvarez, Webmaster
[EMAIL PROTECTED]
Panasonic Wireless Design Center (MMCD)
1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024
+1 770 338 6176. Fax: +1 770 338 6238.
http://www.panasonic-wireless.com
PGP Fingerprint: 9A2C E2D6 1D8E 96B4 CC57 9268 380B 00A6 A92D 9586
--Appended by Matsushita Mobile Communications Development Corporation of
U.S.A.-----This e-mail and any attachments may contain information that is
confidential, proprietary, privileged or otherwise protected by law. The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the intended
recipient of this message, you are not authorized to read, print, retain,
copy or disseminate this message or any part of it. If you have received
this e-mail in error, please notify the sender immediately by return e-mail
and delete it from your computer.
--- End Message ---
--- Begin Message ---
What version of Windows are you using?
I look forward to hearing from you. Thank you.
==
Anthony Alvarez, Webmaster
[EMAIL PROTECTED]
Panasonic Wireless Design Center (MMCD)
1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024
+1 770 338 6176. Fax: +1 770 338 6238.
http://www.panasonic-wireless.com
PGP Fingerprint: 9A2C E2D6 1D8E 96B4 CC57 9268 380B 00A6 A92D 9586
> -----Original Message-----
> From: Dash McElroy (php) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 16, 2002 1:49 PM
> To: Alvarez, Anthony; '[EMAIL PROTECTED]'
> Subject: RE: [PHP-WIN] PHP$ and Apache2 Configuration
>
>
> Try PHP 4.3.0 RC3 OR Apache 1.3.x.
>
> Works for me :)
>
> -Dash
>
> -----Original Message-----
> From: Alvarez, Anthony [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 16, 2002 10:14 AM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP-WIN] PHP$ and Apache2 Configuration
>
>
> I couldn't find it or elsewhere in the forum, so apologies if
> this is a FAQ.
> I know this has to be really basic, and apologies for the
> question, but what
> am I doing wrong?
> Could you kindly share your experience with me? Thanks in advance.
>
> I am running Apache v2.0.43 on Windows 2000 SP1, The web
> server seems to
> work fine but I am having difficulty getting PHP 4.2.3 to
> work with Apache.
>
> The following line is my HTTPD.conf prevents the Apache web
> server from
> starting properly.
> LoadModule php4_module c:/php/sapi/php4apache.dll
>
> Any clues, suggestions, tips or advise is appreciated. Please advise.
>
> I look forward to hearing from you. Thank you.
>
> ==
>
> Anthony Alvarez, Webmaster
> [EMAIL PROTECTED]
> Panasonic Wireless Design Center (MMCD)
> 1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024
> +1 770 338 6176. Fax: +1 770 338 6238.
> http://www.panasonic-wireless.com
>
> PGP Fingerprint: 9A2C E2D6 1D8E 96B4 CC57 9268 380B 00A6 A92D 9586
>
> --Appended by Matsushita Mobile Communications Development
> Corporation of
> U.S.A.-----This e-mail and any attachments may contain
> information that is
> confidential, proprietary, privileged or otherwise protected
> by law. The
> information is solely intended for the named addressee (or a person
> responsible for delivering it to the addressee). If you are
> not the intended
> recipient of this message, you are not authorized to read,
> print, retain,
> copy or disseminate this message or any part of it. If you
> have received
> this e-mail in error, please notify the sender immediately by
> return e-mail
> and delete it from your computer.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--Appended by Matsushita Mobile Communications Development Corporation of
U.S.A.-----This e-mail and any attachments may contain information that is
confidential, proprietary, privileged or otherwise protected by law. The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the intended
recipient of this message, you are not authorized to read, print, retain,
copy or disseminate this message or any part of it. If you have received
this e-mail in error, please notify the sender immediately by return e-mail
and delete it from your computer.
--- End Message ---
--- Begin Message ---
Sorry - forgot lots of info. I've responded to too many of these :)
Windows 2000 SP2 (don't like the EULA in SP3) Professional.
Apache 2.0.40 works with PHP 4.2.3. The build in PHP 4.2.x was tied to a
specific version of Apache2.
I must say (disclaimer) that this server (workstation!) is only used for
toying around with PHP (aka development). I don't have anything major
hitting it. All of those servers run Linux :)
-Dash
-----Original Message-----
From: Alvarez, Anthony [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 10:56 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP-WIN] PHP$ and Apache2 Configuration
What version of Windows are you using?
I look forward to hearing from you. Thank you.
==
Anthony Alvarez, Webmaster
[EMAIL PROTECTED]
Panasonic Wireless Design Center (MMCD)
1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024
+1 770 338 6176. Fax: +1 770 338 6238.
http://www.panasonic-wireless.com
PGP Fingerprint: 9A2C E2D6 1D8E 96B4 CC57 9268 380B 00A6 A92D 9586
> -----Original Message-----
> From: Dash McElroy (php) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 16, 2002 1:49 PM
> To: Alvarez, Anthony; '[EMAIL PROTECTED]'
> Subject: RE: [PHP-WIN] PHP$ and Apache2 Configuration
>
>
> Try PHP 4.3.0 RC3 OR Apache 1.3.x.
>
> Works for me :)
>
> -Dash
>
> -----Original Message-----
> From: Alvarez, Anthony [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 16, 2002 10:14 AM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP-WIN] PHP$ and Apache2 Configuration
>
>
> I couldn't find it or elsewhere in the forum, so apologies if
> this is a FAQ.
> I know this has to be really basic, and apologies for the
> question, but what
> am I doing wrong?
> Could you kindly share your experience with me? Thanks in advance.
>
> I am running Apache v2.0.43 on Windows 2000 SP1, The web
> server seems to
> work fine but I am having difficulty getting PHP 4.2.3 to
> work with Apache.
>
> The following line is my HTTPD.conf prevents the Apache web
> server from
> starting properly.
> LoadModule php4_module c:/php/sapi/php4apache.dll
>
> Any clues, suggestions, tips or advise is appreciated. Please advise.
>
> I look forward to hearing from you. Thank you.
>
> ==
>
> Anthony Alvarez, Webmaster
> [EMAIL PROTECTED]
> Panasonic Wireless Design Center (MMCD)
> 1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024
> +1 770 338 6176. Fax: +1 770 338 6238.
> http://www.panasonic-wireless.com
>
> PGP Fingerprint: 9A2C E2D6 1D8E 96B4 CC57 9268 380B 00A6 A92D 9586
>
> --Appended by Matsushita Mobile Communications Development
> Corporation of
> U.S.A.-----This e-mail and any attachments may contain
> information that is
> confidential, proprietary, privileged or otherwise protected
> by law. The
> information is solely intended for the named addressee (or a person
> responsible for delivering it to the addressee). If you are
> not the intended
> recipient of this message, you are not authorized to read,
> print, retain,
> copy or disseminate this message or any part of it. If you
> have received
> this e-mail in error, please notify the sender immediately by
> return e-mail
> and delete it from your computer.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--Appended by Matsushita Mobile Communications Development Corporation of
U.S.A.-----This e-mail and any attachments may contain information that is
confidential, proprietary, privileged or otherwise protected by law. The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the intended
recipient of this message, you are not authorized to read, print, retain,
copy or disseminate this message or any part of it. If you have received
this e-mail in error, please notify the sender immediately by return e-mail
and delete it from your computer.
--- End Message ---
--- Begin Message ---
Anthony,
Replace the line:
LoadModule php4_module c:/php/sapi/php4apache.dll
with this:
LoadModule php4_module c:/php/sapi/php4apache2.dll
good luck,
Juan
"Anthony Alvarez" <[EMAIL PROTECTED]> wrote in message
7395C966081897468DFB3490D72A81990127FEB9@hp2kmail">news:7395C966081897468DFB3490D72A81990127FEB9@hp2kmail...
> I couldn't find it or elsewhere in the forum, so apologies if this is a
FAQ.
> I know this has to be really basic, and apologies for the question, but
what
> am I doing wrong?
> Could you kindly share your experience with me? Thanks in advance.
>
> I am running Apache v2.0.43 on Windows 2000 SP1, The web server seems to
> work fine but I am having difficulty getting PHP 4.2.3 to work with
Apache.
>
> The following line is my HTTPD.conf prevents the Apache web server from
> starting properly.
> LoadModule php4_module c:/php/sapi/php4apache.dll
>
> Any clues, suggestions, tips or advise is appreciated. Please advise.
>
> I look forward to hearing from you. Thank you.
>
> ==
>
> Anthony Alvarez, Webmaster
> [EMAIL PROTECTED]
> Panasonic Wireless Design Center (MMCD)
> 1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024
> +1 770 338 6176. Fax: +1 770 338 6238.
> http://www.panasonic-wireless.com
>
> PGP Fingerprint: 9A2C E2D6 1D8E 96B4 CC57 9268 380B 00A6 A92D 9586
>
> --Appended by Matsushita Mobile Communications Development Corporation of
> U.S.A.-----This e-mail and any attachments may contain information that is
> confidential, proprietary, privileged or otherwise protected by law. The
> information is solely intended for the named addressee (or a person
> responsible for delivering it to the addressee). If you are not the
intended
> recipient of this message, you are not authorized to read, print, retain,
> copy or disseminate this message or any part of it. If you have received
> this e-mail in error, please notify the sender immediately by return
e-mail
> and delete it from your computer.
>
--- End Message ---
--- Begin Message ---
Thanks for the tip, but it did not work. After updating httpd.conf, Apache
could not start.
> Replace the line:
> LoadModule php4_module c:/php/sapi/php4apache.dll
> with this:
> LoadModule php4_module c:/php/sapi/php4apache2.dll
Any other hints? Please advise.
I look forward to hearing from you. Thank you.
==
Anthony Alvarez, Webmaster
[EMAIL PROTECTED]
Panasonic Wireless Design Center (MMCD)
1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024
+1 770 338 6176. Fax: +1 770 338 6238.
http://www.panasonic-wireless.com
PGP Fingerprint: 9A2C E2D6 1D8E 96B4 CC57 9268 380B 00A6 A92D 9586
> -----Original Message-----
> From: Juan Rosero [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 16, 2002 3:55 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: PHP$ and Apache2 Configuration
>
>
> Anthony,
> Replace the line:
> LoadModule php4_module c:/php/sapi/php4apache.dll
> with this:
> LoadModule php4_module c:/php/sapi/php4apache2.dll
>
> good luck,
>
> Juan
>
>
> "Anthony Alvarez" <[EMAIL PROTECTED]> wrote in message
> 7395C966081897468DFB3490D72A81990127FEB9@hp2kmail">news:7395C966081897468DFB3490D72A81990127FEB9@hp2kmail...
> > I couldn't find it or elsewhere in the forum, so apologies
> if this is a
> FAQ.
> > I know this has to be really basic, and apologies for the
> question, but
> what
> > am I doing wrong?
> > Could you kindly share your experience with me? Thanks in advance.
> >
> > I am running Apache v2.0.43 on Windows 2000 SP1, The web
> server seems to
> > work fine but I am having difficulty getting PHP 4.2.3 to work with
> Apache.
> >
> > The following line is my HTTPD.conf prevents the Apache web
> server from
> > starting properly.
> > LoadModule php4_module c:/php/sapi/php4apache.dll
> >
> > Any clues, suggestions, tips or advise is appreciated.
> Please advise.
> >
> > I look forward to hearing from you. Thank you.
> >
> > ==
> >
> > Anthony Alvarez, Webmaster
> > [EMAIL PROTECTED]
> > Panasonic Wireless Design Center (MMCD)
> > 1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024
> > +1 770 338 6176. Fax: +1 770 338 6238.
> > http://www.panasonic-wireless.com
> >
> > PGP Fingerprint: 9A2C E2D6 1D8E 96B4 CC57 9268 380B 00A6 A92D 9586
> >
> > --Appended by Matsushita Mobile Communications Development
> Corporation of
> > U.S.A.-----This e-mail and any attachments may contain
> information that is
> > confidential, proprietary, privileged or otherwise
> protected by law. The
> > information is solely intended for the named addressee (or a person
> > responsible for delivering it to the addressee). If you are not the
> intended
> > recipient of this message, you are not authorized to read,
> print, retain,
> > copy or disseminate this message or any part of it. If you
> have received
> > this e-mail in error, please notify the sender immediately by return
> e-mail
> > and delete it from your computer.
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--Appended by Matsushita Mobile Communications Development Corporation of
U.S.A.-----This e-mail and any attachments may contain information that is
confidential, proprietary, privileged or otherwise protected by law. The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the intended
recipient of this message, you are not authorized to read, print, retain,
copy or disseminate this message or any part of it. If you have received
this e-mail in error, please notify the sender immediately by return e-mail
and delete it from your computer.
--- End Message ---
--- Begin Message ---
That won't work - PHP 4.3.0 RC3 /or/ Apache 2.0.40. PHP4.2.x is linked to
Apache2 versions (Apache2 support is experimental in 4.2.x).
-Dash
-----Original Message-----
From: Alvarez, Anthony [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 1:05 PM
To: 'Juan Rosero'; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Re: PHP$ and Apache2 Configuration
Thanks for the tip, but it did not work. After updating httpd.conf, Apache
could not start.
> Replace the line:
> LoadModule php4_module c:/php/sapi/php4apache.dll
> with this:
> LoadModule php4_module c:/php/sapi/php4apache2.dll
Any other hints? Please advise.
I look forward to hearing from you. Thank you.
==
Anthony Alvarez, Webmaster
[EMAIL PROTECTED]
Panasonic Wireless Design Center (MMCD)
1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024
+1 770 338 6176. Fax: +1 770 338 6238.
http://www.panasonic-wireless.com
PGP Fingerprint: 9A2C E2D6 1D8E 96B4 CC57 9268 380B 00A6 A92D 9586
> -----Original Message-----
> From: Juan Rosero [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 16, 2002 3:55 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Re: PHP$ and Apache2 Configuration
>
>
> Anthony,
> Replace the line:
> LoadModule php4_module c:/php/sapi/php4apache.dll
> with this:
> LoadModule php4_module c:/php/sapi/php4apache2.dll
>
> good luck,
>
> Juan
>
>
> "Anthony Alvarez" <[EMAIL PROTECTED]> wrote in message
> 7395C966081897468DFB3490D72A81990127FEB9@hp2kmail">news:7395C966081897468DFB3490D72A81990127FEB9@hp2kmail...
> > I couldn't find it or elsewhere in the forum, so apologies
> if this is a
> FAQ.
> > I know this has to be really basic, and apologies for the
> question, but
> what
> > am I doing wrong?
> > Could you kindly share your experience with me? Thanks in advance.
> >
> > I am running Apache v2.0.43 on Windows 2000 SP1, The web
> server seems to
> > work fine but I am having difficulty getting PHP 4.2.3 to work with
> Apache.
> >
> > The following line is my HTTPD.conf prevents the Apache web
> server from
> > starting properly.
> > LoadModule php4_module c:/php/sapi/php4apache.dll
> >
> > Any clues, suggestions, tips or advise is appreciated.
> Please advise.
> >
> > I look forward to hearing from you. Thank you.
> >
> > ==
> >
> > Anthony Alvarez, Webmaster
> > [EMAIL PROTECTED]
> > Panasonic Wireless Design Center (MMCD)
> > 1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024
> > +1 770 338 6176. Fax: +1 770 338 6238.
> > http://www.panasonic-wireless.com
> >
> > PGP Fingerprint: 9A2C E2D6 1D8E 96B4 CC57 9268 380B 00A6 A92D 9586
> >
> > --Appended by Matsushita Mobile Communications Development
> Corporation of
> > U.S.A.-----This e-mail and any attachments may contain
> information that is
> > confidential, proprietary, privileged or otherwise
> protected by law. The
> > information is solely intended for the named addressee (or a person
> > responsible for delivering it to the addressee). If you are not the
> intended
> > recipient of this message, you are not authorized to read,
> print, retain,
> > copy or disseminate this message or any part of it. If you
> have received
> > this e-mail in error, please notify the sender immediately by return
> e-mail
> > and delete it from your computer.
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--Appended by Matsushita Mobile Communications Development Corporation of
U.S.A.-----This e-mail and any attachments may contain information that is
confidential, proprietary, privileged or otherwise protected by law. The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the intended
recipient of this message, you are not authorized to read, print, retain,
copy or disseminate this message or any part of it. If you have received
this e-mail in error, please notify the sender immediately by return e-mail
and delete it from your computer.
--- End Message ---
--- Begin Message ---
what do I change in my php.ini file to stop these annoying warning notices?
I have looked at the ini file but I am unsure what to change. I still want
to see error messages but the warning notices are doing my head in.
An example would be:
Warning: fwrite(): supplied argument is not a valid File-Handle resource in
/home/.sites/112/site154/web/guestbook_post.php on line 18
Thank you
--- End Message ---
--- Begin Message ---
That means you have an error in your use of fwrite.... its not a proper
'file pointer'. Its not a setting you can change in your php.ini, as it is
cause by a problem with your script. In fact, your script should not work
because of the error.
If you paste the code and what your script does, I may be able to help
Stephen
----- Original Message -----
From: "Andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 6:19 PM
Subject: [PHP-WIN] Warning messages
> what do I change in my php.ini file to stop these annoying warning
notices?
> I have looked at the ini file but I am unsure what to change. I still
want
> to see error messages but the warning notices are doing my head in.
>
> An example would be:
> Warning: fwrite(): supplied argument is not a valid File-Handle resource
in
> /home/.sites/112/site154/web/guestbook_post.php on line 18
>
> Thank you
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
#1) You should do all possible to avoid getting that in you r scripts (you
know, checking wether file exists etc etc), not simply disabling it cause
it's a messy way really, and can fill up logs with that stuff (which is not
quite good when using a server that you don't own). Also, using @function
instead of function suppressess it's all warning/error output.
Anyway, here's what You wanted:
error_reporting = E_ALL & ~E_WARNING
stops errormsg output for warnings.
also
error_reporting = E_ALL & ~E_WARNING & ~E_NOTICE
would be even better cause it would kill all those annoying 'NOTICE: xxx
unexistant variable' etc things.
guess that could help.
-----------
[EMAIL PROTECTED] the humble sheep
--- End Message ---
--- Begin Message ---
Here is the code and warning messages
<?
if (($email=="") || ($name=="") || ($phone==""))
{
echo "Please fill out the guestbook completely before submitting.";
}
else
{
$fp = fopen("guestbook.txt", "w"); //w will append or create a new file
flock ($fp, LOCK_EX); //lock the file
fwrite($fp, "$name signed the guestbook. \nHis e-mail address was $email
\nHis phone number was $phone\n\n");
flock ($fp, LOCK_UN); //unlock the file
fclose($fp);
mail("[EMAIL PROTECTED]", "Guestbook entry added", wordwrap("$name
signed the guestbook. \nHis e-mail address was $email \nHis phone number was
$phone", 72, "\n", 1), "Return-Path:
<[EMAIL PROTECTED]>\nForm: Andrew Davey");
mail("$email", "Thank you for signing my Guestbook", wordwrap("Thank you,
$name, for signing my Guestbook.", 72, "\n", 1), "Return-path:
<[EMAIL PROTECTED]>\nForm: Andrew Davey");
echo "<font face=Verdana size=1>Thank you, " . $name . ", for signing my
Guestbook.";
}
?>
Which give me the following errors:
Warning: fopen("guestbook.txt", "w") - Permission denied in
/home/.sites/112/site154/web/guestbook_post.php on line 15
Warning: flock(): supplied argument is not a valid File-Handle resource in
/home/.sites/112/site154/web/guestbook_post.php on line 16
Warning: fwrite(): supplied argument is not a valid File-Handle resource in
/home/.sites/112/site154/web/guestbook_post.php on line 18
Warning: flock(): supplied argument is not a valid File-Handle resource in
/home/.sites/112/site154/web/guestbook_post.php on line 20
Warning: fclose(): supplied argument is not a valid File-Handle resource in
/home/.sites/112/site154/web/guestbook_post.php on line 21
The code i used was copied directly from a book, as i am a complete
beginner, so answers need to be idiot proof
:o)
Andy
"Stephen Edmonds" <[EMAIL PROTECTED]> wrote in message
005501c2a532$17a348c0$6d00a8c0@q">news:005501c2a532$17a348c0$6d00a8c0@q...
> That means you have an error in your use of fwrite.... its not a proper
> 'file pointer'. Its not a setting you can change in your php.ini, as it is
> cause by a problem with your script. In fact, your script should not work
> because of the error.
>
> If you paste the code and what your script does, I may be able to help
>
> Stephen
>
> ----- Original Message -----
> From: "Andy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 16, 2002 6:19 PM
> Subject: [PHP-WIN] Warning messages
>
>
> > what do I change in my php.ini file to stop these annoying warning
> notices?
> > I have looked at the ini file but I am unsure what to change. I still
> want
> > to see error messages but the warning notices are doing my head in.
> >
> > An example would be:
> > Warning: fwrite(): supplied argument is not a valid File-Handle resource
> in
> > /home/.sites/112/site154/web/guestbook_post.php on line 18
> >
> > Thank you
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
--- End Message ---
--- Begin Message ---
Here is your problem:
Warning: fopen("guestbook.txt", "w") - Permission denied in
/home/.sites/112/site154/web/guestbook_post.php on line 15
Whats happening is for some reason your file, guestbook.txt, is not writable
by php. Two things could be causing this. Firstly, you may need to specify
the full path to the file, e.g. c:/dir/dir/guestbook.txt. Note the foreward
slashes instead of backwards ones.
The second problem could be your webserver/php isn't set up to allow you to
edit the file guestbook.txt. There are methods of restricting access to a
file, but I am not familiar with them since I use my own windows host (no
restrictions). Good luck
Stephen
P.S. Try calling phpinfo(32) and look for the _SERVER["COMSPEC"] or
something similar. That should tell you the path to your file where the .php
file lies, then its just a matter of figuring out where the guestbook is!
----- Original Message -----
From: "Andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 6:54 PM
Subject: Re: [PHP-WIN] Warning messages
> Here is the code and warning messages
>
> <?
> if (($email=="") || ($name=="") || ($phone==""))
> {
> echo "Please fill out the guestbook completely before submitting.";
> }
> else
> {
> $fp = fopen("guestbook.txt", "w"); //w will append or create a new file
> flock ($fp, LOCK_EX); //lock the file
>
> fwrite($fp, "$name signed the guestbook. \nHis e-mail address was $email
> \nHis phone number was $phone\n\n");
>
> flock ($fp, LOCK_UN); //unlock the file
> fclose($fp);
>
> mail("[EMAIL PROTECTED]", "Guestbook entry added", wordwrap("$name
> signed the guestbook. \nHis e-mail address was $email \nHis phone number
was
> $phone", 72, "\n", 1), "Return-Path:
> <[EMAIL PROTECTED]>\nForm: Andrew Davey");
>
> mail("$email", "Thank you for signing my Guestbook", wordwrap("Thank you,
> $name, for signing my Guestbook.", 72, "\n", 1), "Return-path:
> <[EMAIL PROTECTED]>\nForm: Andrew Davey");
> echo "<font face=Verdana size=1>Thank you, " . $name . ", for signing my
> Guestbook.";
> }
> ?>
>
> Which give me the following errors:
>
> Warning: fopen("guestbook.txt", "w") - Permission denied in
> /home/.sites/112/site154/web/guestbook_post.php on line 15
>
> Warning: flock(): supplied argument is not a valid File-Handle resource in
> /home/.sites/112/site154/web/guestbook_post.php on line 16
>
> Warning: fwrite(): supplied argument is not a valid File-Handle resource
in
> /home/.sites/112/site154/web/guestbook_post.php on line 18
>
> Warning: flock(): supplied argument is not a valid File-Handle resource in
> /home/.sites/112/site154/web/guestbook_post.php on line 20
>
> Warning: fclose(): supplied argument is not a valid File-Handle resource
in
> /home/.sites/112/site154/web/guestbook_post.php on line 21
>
> The code i used was copied directly from a book, as i am a complete
> beginner, so answers need to be idiot proof
> :o)
>
> Andy
>
>
> "Stephen Edmonds" <[EMAIL PROTECTED]> wrote in message
> 005501c2a532$17a348c0$6d00a8c0@q">news:005501c2a532$17a348c0$6d00a8c0@q...
> > That means you have an error in your use of fwrite.... its not a proper
> > 'file pointer'. Its not a setting you can change in your php.ini, as it
is
> > cause by a problem with your script. In fact, your script should not
work
> > because of the error.
> >
> > If you paste the code and what your script does, I may be able to help
> >
> > Stephen
> >
> > ----- Original Message -----
> > From: "Andy" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, December 16, 2002 6:19 PM
> > Subject: [PHP-WIN] Warning messages
> >
> >
> > > what do I change in my php.ini file to stop these annoying warning
> > notices?
> > > I have looked at the ini file but I am unsure what to change. I still
> > want
> > > to see error messages but the warning notices are doing my head in.
> > >
> > > An example would be:
> > > Warning: fwrite(): supplied argument is not a valid File-Handle
resource
> > in
> > > /home/.sites/112/site154/web/guestbook_post.php on line 18
> > >
> > > Thank you
> > >
> > >
> > >
> > > --
> > > 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 ---
Thank you Stephen, tried it on localhost, although i would not get the
email, the only warning messages i got were tell me just that.
"Stephen Edmonds" <[EMAIL PROTECTED]> wrote in message
006a01c2a535$9910f3f0$6d00a8c0@q">news:006a01c2a535$9910f3f0$6d00a8c0@q...
> Here is your problem:
>
> Warning: fopen("guestbook.txt", "w") - Permission denied in
> /home/.sites/112/site154/web/guestbook_post.php on line 15
>
> Whats happening is for some reason your file, guestbook.txt, is not
writable
> by php. Two things could be causing this. Firstly, you may need to specify
> the full path to the file, e.g. c:/dir/dir/guestbook.txt. Note the
foreward
> slashes instead of backwards ones.
>
> The second problem could be your webserver/php isn't set up to allow you
to
> edit the file guestbook.txt. There are methods of restricting access to a
> file, but I am not familiar with them since I use my own windows host (no
> restrictions). Good luck
>
> Stephen
>
> P.S. Try calling phpinfo(32) and look for the _SERVER["COMSPEC"] or
> something similar. That should tell you the path to your file where the
.php
> file lies, then its just a matter of figuring out where the guestbook is!
>
> ----- Original Message -----
> From: "Andy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 16, 2002 6:54 PM
> Subject: Re: [PHP-WIN] Warning messages
>
>
> > Here is the code and warning messages
> >
> > <?
> > if (($email=="") || ($name=="") || ($phone==""))
> > {
> > echo "Please fill out the guestbook completely before submitting.";
> > }
> > else
> > {
> > $fp = fopen("guestbook.txt", "w"); //w will append or create a new
file
> > flock ($fp, LOCK_EX); //lock the file
> >
> > fwrite($fp, "$name signed the guestbook. \nHis e-mail address was
$email
> > \nHis phone number was $phone\n\n");
> >
> > flock ($fp, LOCK_UN); //unlock the file
> > fclose($fp);
> >
> > mail("[EMAIL PROTECTED]", "Guestbook entry added",
wordwrap("$name
> > signed the guestbook. \nHis e-mail address was $email \nHis phone number
> was
> > $phone", 72, "\n", 1), "Return-Path:
> > <[EMAIL PROTECTED]>\nForm: Andrew Davey");
> >
> > mail("$email", "Thank you for signing my Guestbook", wordwrap("Thank
you,
> > $name, for signing my Guestbook.", 72, "\n", 1), "Return-path:
> > <[EMAIL PROTECTED]>\nForm: Andrew Davey");
> > echo "<font face=Verdana size=1>Thank you, " . $name . ", for signing
my
> > Guestbook.";
> > }
> > ?>
> >
> > Which give me the following errors:
> >
> > Warning: fopen("guestbook.txt", "w") - Permission denied in
> > /home/.sites/112/site154/web/guestbook_post.php on line 15
> >
> > Warning: flock(): supplied argument is not a valid File-Handle resource
in
> > /home/.sites/112/site154/web/guestbook_post.php on line 16
> >
> > Warning: fwrite(): supplied argument is not a valid File-Handle resource
> in
> > /home/.sites/112/site154/web/guestbook_post.php on line 18
> >
> > Warning: flock(): supplied argument is not a valid File-Handle resource
in
> > /home/.sites/112/site154/web/guestbook_post.php on line 20
> >
> > Warning: fclose(): supplied argument is not a valid File-Handle resource
> in
> > /home/.sites/112/site154/web/guestbook_post.php on line 21
> >
> > The code i used was copied directly from a book, as i am a complete
> > beginner, so answers need to be idiot proof
> > :o)
> >
> > Andy
> >
> >
> > "Stephen Edmonds" <[EMAIL PROTECTED]> wrote in message
> > 005501c2a532$17a348c0$6d00a8c0@q">news:005501c2a532$17a348c0$6d00a8c0@q...
> > > That means you have an error in your use of fwrite.... its not a
proper
> > > 'file pointer'. Its not a setting you can change in your php.ini, as
it
> is
> > > cause by a problem with your script. In fact, your script should not
> work
> > > because of the error.
> > >
> > > If you paste the code and what your script does, I may be able to help
> > >
> > > Stephen
> > >
> > > ----- Original Message -----
> > > From: "Andy" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, December 16, 2002 6:19 PM
> > > Subject: [PHP-WIN] Warning messages
> > >
> > >
> > > > what do I change in my php.ini file to stop these annoying warning
> > > notices?
> > > > I have looked at the ini file but I am unsure what to change. I
still
> > > want
> > > > to see error messages but the warning notices are doing my head in.
> > > >
> > > > An example would be:
> > > > Warning: fwrite(): supplied argument is not a valid File-Handle
> resource
> > > in
> > > > /home/.sites/112/site154/web/guestbook_post.php on line 18
> > > >
> > > > Thank you
> > > >
> > > >
> > > >
> > > > --
> > > > 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 ---
Alright - looks like your host is a *nix host. Do you have shell access to
the system or are you stuck with FTP?
Either way, you should be able to chmod the file. You'll most likely need to
chmod it 666 (don't worry - it's not evil!). Example:
shell$ chmod 666 /path/to/guestbook.txt
ftp
open webhost:
user: blah
pass: ****
FTP> chmod 666 /path/to/guestbook.txt
If you are using a graphical FTP program, it MIGHT have specs for chmodding
a file (I have seen ones that don't).
If all else fails, try chmoding it with a PHP script. Like this:
chmod ("/path/to/guestbook.txt", 0666);
See: http://www.php.net/manual/en/function.chmod.php : for more info.
-Dash
-----Original Message-----
From: Andy [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 11:10 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Warning messages
Thank you Stephen, tried it on localhost, although i would not get the
email, the only warning messages i got were tell me just that.
"Stephen Edmonds" <[EMAIL PROTECTED]> wrote in message
006a01c2a535$9910f3f0$6d00a8c0@q">news:006a01c2a535$9910f3f0$6d00a8c0@q...
> Here is your problem:
>
> Warning: fopen("guestbook.txt", "w") - Permission denied in
> /home/.sites/112/site154/web/guestbook_post.php on line 15
>
> Whats happening is for some reason your file, guestbook.txt, is not
writable
> by php. Two things could be causing this. Firstly, you may need to specify
> the full path to the file, e.g. c:/dir/dir/guestbook.txt. Note the
foreward
> slashes instead of backwards ones.
>
> The second problem could be your webserver/php isn't set up to allow you
to
> edit the file guestbook.txt. There are methods of restricting access to a
> file, but I am not familiar with them since I use my own windows host (no
> restrictions). Good luck
>
> Stephen
>
> P.S. Try calling phpinfo(32) and look for the _SERVER["COMSPEC"] or
> something similar. That should tell you the path to your file where the
.php
> file lies, then its just a matter of figuring out where the guestbook is!
>
> ----- Original Message -----
> From: "Andy" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, December 16, 2002 6:54 PM
> Subject: Re: [PHP-WIN] Warning messages
>
>
> > Here is the code and warning messages
> >
> > <?
> > if (($email=="") || ($name=="") || ($phone==""))
> > {
> > echo "Please fill out the guestbook completely before submitting.";
> > }
> > else
> > {
> > $fp = fopen("guestbook.txt", "w"); //w will append or create a new
file
> > flock ($fp, LOCK_EX); //lock the file
> >
> > fwrite($fp, "$name signed the guestbook. \nHis e-mail address was
$email
> > \nHis phone number was $phone\n\n");
> >
> > flock ($fp, LOCK_UN); //unlock the file
> > fclose($fp);
> >
> > mail("[EMAIL PROTECTED]", "Guestbook entry added",
wordwrap("$name
> > signed the guestbook. \nHis e-mail address was $email \nHis phone number
> was
> > $phone", 72, "\n", 1), "Return-Path:
> > <[EMAIL PROTECTED]>\nForm: Andrew Davey");
> >
> > mail("$email", "Thank you for signing my Guestbook", wordwrap("Thank
you,
> > $name, for signing my Guestbook.", 72, "\n", 1), "Return-path:
> > <[EMAIL PROTECTED]>\nForm: Andrew Davey");
> > echo "<font face=Verdana size=1>Thank you, " . $name . ", for signing
my
> > Guestbook.";
> > }
> > ?>
> >
> > Which give me the following errors:
> >
> > Warning: fopen("guestbook.txt", "w") - Permission denied in
> > /home/.sites/112/site154/web/guestbook_post.php on line 15
> >
> > Warning: flock(): supplied argument is not a valid File-Handle resource
in
> > /home/.sites/112/site154/web/guestbook_post.php on line 16
> >
> > Warning: fwrite(): supplied argument is not a valid File-Handle resource
> in
> > /home/.sites/112/site154/web/guestbook_post.php on line 18
> >
> > Warning: flock(): supplied argument is not a valid File-Handle resource
in
> > /home/.sites/112/site154/web/guestbook_post.php on line 20
> >
> > Warning: fclose(): supplied argument is not a valid File-Handle resource
> in
> > /home/.sites/112/site154/web/guestbook_post.php on line 21
> >
> > The code i used was copied directly from a book, as i am a complete
> > beginner, so answers need to be idiot proof
> > :o)
> >
> > Andy
> >
> >
> > "Stephen Edmonds" <[EMAIL PROTECTED]> wrote in message
> > 005501c2a532$17a348c0$6d00a8c0@q">news:005501c2a532$17a348c0$6d00a8c0@q...
> > > That means you have an error in your use of fwrite.... its not a
proper
> > > 'file pointer'. Its not a setting you can change in your php.ini, as
it
> is
> > > cause by a problem with your script. In fact, your script should not
> work
> > > because of the error.
> > >
> > > If you paste the code and what your script does, I may be able to help
> > >
> > > Stephen
> > >
> > > ----- Original Message -----
> > > From: "Andy" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, December 16, 2002 6:19 PM
> > > Subject: [PHP-WIN] Warning messages
> > >
> > >
> > > > what do I change in my php.ini file to stop these annoying warning
> > > notices?
> > > > I have looked at the ini file but I am unsure what to change. I
still
> > > want
> > > > to see error messages but the warning notices are doing my head in.
> > > >
> > > > An example would be:
> > > > Warning: fwrite(): supplied argument is not a valid File-Handle
> resource
> > > in
> > > > /home/.sites/112/site154/web/guestbook_post.php on line 18
> > > >
> > > > Thank you
> > > >
> > > >
> > > >
> > > > --
> > > > 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 ---
Ok, first you really don't want to disable warnings, they let you catch
errors just like this.
Now on to the rest. The first warning is stating that you don't have access
rights to the file or the directory that you are trying to access. Check
the permissions of the directory and file to make sure that what-ever php is
running as has permission to write to that directory/file.
In the fopen function, "w" creates a new file or overwrites an existing one.
It does not append to an existing one. "w+" or "a" will accomplish this.
The rest of the error messages are a result of the file not being opened,
hence the $fp variable is not a valid file handle. You can stop the rest of
the errors and warnings if you check to make sure you were successfull in
opening the file.
You can see more about this here:
http://www.php.net/manual/en/function.fopen.php
----- Original Message -----
From: "Andy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 16, 2002 12:54 PM
Subject: Re: [PHP-WIN] Warning messages
> Here is the code and warning messages
>
> <?
> if (($email=="") || ($name=="") || ($phone==""))
> {
> echo "Please fill out the guestbook completely before submitting.";
> }
> else
> {
> $fp = fopen("guestbook.txt", "w"); //w will append or create a new file
> flock ($fp, LOCK_EX); //lock the file
>
> fwrite($fp, "$name signed the guestbook. \nHis e-mail address was $email
> \nHis phone number was $phone\n\n");
>
> flock ($fp, LOCK_UN); //unlock the file
> fclose($fp);
>
> mail("[EMAIL PROTECTED]", "Guestbook entry added", wordwrap("$name
> signed the guestbook. \nHis e-mail address was $email \nHis phone number
was
> $phone", 72, "\n", 1), "Return-Path:
> <[EMAIL PROTECTED]>\nForm: Andrew Davey");
>
> mail("$email", "Thank you for signing my Guestbook", wordwrap("Thank you,
> $name, for signing my Guestbook.", 72, "\n", 1), "Return-path:
> <[EMAIL PROTECTED]>\nForm: Andrew Davey");
> echo "<font face=Verdana size=1>Thank you, " . $name . ", for signing my
> Guestbook.";
> }
> ?>
>
> Which give me the following errors:
>
> Warning: fopen("guestbook.txt", "w") - Permission denied in
> /home/.sites/112/site154/web/guestbook_post.php on line 15
>
> Warning: flock(): supplied argument is not a valid File-Handle resource in
> /home/.sites/112/site154/web/guestbook_post.php on line 16
>
> Warning: fwrite(): supplied argument is not a valid File-Handle resource
in
> /home/.sites/112/site154/web/guestbook_post.php on line 18
>
> Warning: flock(): supplied argument is not a valid File-Handle resource in
> /home/.sites/112/site154/web/guestbook_post.php on line 20
>
> Warning: fclose(): supplied argument is not a valid File-Handle resource
in
> /home/.sites/112/site154/web/guestbook_post.php on line 21
>
> The code i used was copied directly from a book, as i am a complete
> beginner, so answers need to be idiot proof
> :o)
>
> Andy
>
>
> "Stephen Edmonds" <[EMAIL PROTECTED]> wrote in message
> 005501c2a532$17a348c0$6d00a8c0@q">news:005501c2a532$17a348c0$6d00a8c0@q...
> > That means you have an error in your use of fwrite.... its not a proper
> > 'file pointer'. Its not a setting you can change in your php.ini, as it
is
> > cause by a problem with your script. In fact, your script should not
work
> > because of the error.
> >
> > If you paste the code and what your script does, I may be able to help
> >
> > Stephen
> >
> > ----- Original Message -----
> > From: "Andy" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, December 16, 2002 6:19 PM
> > Subject: [PHP-WIN] Warning messages
> >
> >
> > > what do I change in my php.ini file to stop these annoying warning
> > notices?
> > > I have looked at the ini file but I am unsure what to change. I still
> > want
> > > to see error messages but the warning notices are doing my head in.
> > >
> > > An example would be:
> > > Warning: fwrite(): supplied argument is not a valid File-Handle
resource
> > in
> > > /home/.sites/112/site154/web/guestbook_post.php on line 18
> > >
> > > Thank you
> > >
> > >
> > >
> > > --
> > > 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 ---
Hi there,
I got a small problem running PHP4.2.3 under IIS using the ISAPI filter.
Please donīt complain about that, the rest of the site is running in ASP and
I canīt have a spare server at the time.
I know, ISAPI isnīt as stable as the CGI option, but I thought I might give
it a try anyway. As soon as I use the ISAPI, nothing works. The CGI works
fine. I was trying to get PHPBB working, but it does seem to collide with
the ISAPI thing. Does anybody have PHPBB running with IIS and ISAPI for PHP?
Thanks,
Chris
--- End Message ---
--- Begin Message ---
Works fine for me. You may want to make sure you followed the install
docs to the letter. I forgot to copy one dll to the right directory and
I spent 2 hours trying to figure it out.
-----Original Message-----
From: Christian Bartsch [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 1:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] IIS, ISAPI and PHPBB
Hi there,
I got a small problem running PHP4.2.3 under IIS using the ISAPI filter.
Please donīt complain about that, the rest of the site is running in ASP
and I canīt have a spare server at the time.
I know, ISAPI isnīt as stable as the CGI option, but I thought I might
give it a try anyway. As soon as I use the ISAPI, nothing works. The CGI
works fine. I was trying to get PHPBB working, but it does seem to
collide with the ISAPI thing. Does anybody have PHPBB running with IIS
and ISAPI for PHP?
Thanks,
Chris
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Well, the funny thing is... it works for the known phpinfo() call, but when
I try to run PHPBB, it even crashes my other ISAPI tasks... here is an
excerpt from the PHP log file, maybe this helps:
[16-Dec-2002 22:01:26] PHP Warning: Failed opening './extension.inc' for
inclusion (include_path='d:\web\digital-movie-phpbb2\;.;c:\php\includes\')
in D:\Web\digital-movie-phpBB2\index.php on line 25
[16-Dec-2002 22:01:26] PHP Notice: Undefined variable: phpEx in
D:\Web\digital-movie-phpBB2\index.php on line 26
[16-Dec-2002 22:01:26] PHP Warning: Failed opening './common.' for
inclusion (include_path='d:\web\digital-movie-phpbb2\;.;c:\php\includes\')
in D:\Web\digital-movie-phpBB2\index.php on line 26
[16-Dec-2002 22:01:26] PHP Fatal error: Call to undefined function:
session_pagestart() in D:\Web\digital-movie-phpBB2\index.php on line 31
It seems like PHP canīt find the includes. But they are there and as you can
see, I even added the path to it... It really canīt be the rights
management - Iīve given access to Everyone with full level access. This is
so strange.
Regards
Chris
"Sterling Anderson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
000001c2a543$b714f0f0$050b000a@gollum">news:000001c2a543$b714f0f0$050b000a@gollum...
Works fine for me. You may want to make sure you followed the install
docs to the letter. I forgot to copy one dll to the right directory and
I spent 2 hours trying to figure it out.
-----Original Message-----
From: Christian Bartsch [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 1:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] IIS, ISAPI and PHPBB
Hi there,
I got a small problem running PHP4.2.3 under IIS using the ISAPI filter.
Please donīt complain about that, the rest of the site is running in ASP
and I canīt have a spare server at the time.
I know, ISAPI isnīt as stable as the CGI option, but I thought I might
give it a try anyway. As soon as I use the ISAPI, nothing works. The CGI
works fine. I was trying to get PHPBB working, but it does seem to
collide with the ISAPI thing. Does anybody have PHPBB running with IIS
and ISAPI for PHP?
Thanks,
Chris
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
This sounds like it may be more of a PHPBB issue. If phpinfo() works
then you have things setup correctly I would think. Try posting to the
PHPBB boards maybe?
-----Original Message-----
From: Christian Bartsch [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 3:07 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] IIS, ISAPI and PHPBB
Well, the funny thing is... it works for the known phpinfo() call, but
when I try to run PHPBB, it even crashes my other ISAPI tasks... here is
an excerpt from the PHP log file, maybe this helps:
[16-Dec-2002 22:01:26] PHP Warning: Failed opening './extension.inc'
for inclusion
(include_path='d:\web\digital-movie-phpbb2\;.;c:\php\includes\')
in D:\Web\digital-movie-phpBB2\index.php on line 25 [16-Dec-2002
22:01:26] PHP Notice: Undefined variable: phpEx in
D:\Web\digital-movie-phpBB2\index.php on line 26 [16-Dec-2002 22:01:26]
PHP Warning: Failed opening './common.' for inclusion
(include_path='d:\web\digital-movie-phpbb2\;.;c:\php\includes\')
in D:\Web\digital-movie-phpBB2\index.php on line 26 [16-Dec-2002
22:01:26] PHP Fatal error: Call to undefined function:
session_pagestart() in D:\Web\digital-movie-phpBB2\index.php on line 31
It seems like PHP canīt find the includes. But they are there and as you
can see, I even added the path to it... It really canīt be the rights
management - Iīve given access to Everyone with full level access. This
is so strange.
Regards
Chris
"Sterling Anderson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
000001c2a543$b714f0f0$050b000a@gollum">news:000001c2a543$b714f0f0$050b000a@gollum...
Works fine for me. You may want to make sure you followed the install
docs to the letter. I forgot to copy one dll to the right directory and
I spent 2 hours trying to figure it out.
-----Original Message-----
From: Christian Bartsch [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 1:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] IIS, ISAPI and PHPBB
Hi there,
I got a small problem running PHP4.2.3 under IIS using the ISAPI filter.
Please donīt complain about that, the rest of the site is running in ASP
and I canīt have a spare server at the time.
I know, ISAPI isnīt as stable as the CGI option, but I thought I might
give it a try anyway. As soon as I use the ISAPI, nothing works. The CGI
works fine. I was trying to get PHPBB working, but it does seem to
collide with the ISAPI thing. Does anybody have PHPBB running with IIS
and ISAPI for PHP?
Thanks,
Chris
--
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 ---
No, canīt be I guess. Because switching to the CGI version of PHP,
everything is fine (and more slow :))) ).
Iīm really done now... :)
Regards
Chris
"Sterling Anderson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
000301c2a547$c5ec8b70$050b000a@gollum">news:000301c2a547$c5ec8b70$050b000a@gollum...
This sounds like it may be more of a PHPBB issue. If phpinfo() works
then you have things setup correctly I would think. Try posting to the
PHPBB boards maybe?
-----Original Message-----
From: Christian Bartsch [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 3:07 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] IIS, ISAPI and PHPBB
Well, the funny thing is... it works for the known phpinfo() call, but
when I try to run PHPBB, it even crashes my other ISAPI tasks... here is
an excerpt from the PHP log file, maybe this helps:
[16-Dec-2002 22:01:26] PHP Warning: Failed opening './extension.inc'
for inclusion
(include_path='d:\web\digital-movie-phpbb2\;.;c:\php\includes\')
in D:\Web\digital-movie-phpBB2\index.php on line 25 [16-Dec-2002
22:01:26] PHP Notice: Undefined variable: phpEx in
D:\Web\digital-movie-phpBB2\index.php on line 26 [16-Dec-2002 22:01:26]
PHP Warning: Failed opening './common.' for inclusion
(include_path='d:\web\digital-movie-phpbb2\;.;c:\php\includes\')
in D:\Web\digital-movie-phpBB2\index.php on line 26 [16-Dec-2002
22:01:26] PHP Fatal error: Call to undefined function:
session_pagestart() in D:\Web\digital-movie-phpBB2\index.php on line 31
It seems like PHP canīt find the includes. But they are there and as you
can see, I even added the path to it... It really canīt be the rights
management - Iīve given access to Everyone with full level access. This
is so strange.
Regards
Chris
"Sterling Anderson" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
000001c2a543$b714f0f0$050b000a@gollum">news:000001c2a543$b714f0f0$050b000a@gollum...
Works fine for me. You may want to make sure you followed the install
docs to the letter. I forgot to copy one dll to the right directory and
I spent 2 hours trying to figure it out.
-----Original Message-----
From: Christian Bartsch [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 1:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] IIS, ISAPI and PHPBB
Hi there,
I got a small problem running PHP4.2.3 under IIS using the ISAPI filter.
Please donīt complain about that, the rest of the site is running in ASP
and I canīt have a spare server at the time.
I know, ISAPI isnīt as stable as the CGI option, but I thought I might
give it a try anyway. As soon as I use the ISAPI, nothing works. The CGI
works fine. I was trying to get PHPBB working, but it does seem to
collide with the ISAPI thing. Does anybody have PHPBB running with IIS
and ISAPI for PHP?
Thanks,
Chris
--
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 ---
Hello Omar,
I would greatly appreciate you to toroughly read all of the
details of the link and the respective functions. Maybe it is
even translated to a spanish version.
There is nothing to be compiled in. But you have to be familiar
with the dll concept in general and the interface description of
the dll you want to use in particular.
The whole thing resembles the way early versions of Visual Basic
managed to access most of the Windows system functions. Its
a little dicy, because if you don't get the parameter types right
you are likely to bomb at least your script or more, perhaps even
after some "successful" calls. Examples can be found at M$
Knowledge Base.
Sven
>
> Thank you, could you help me about compiling the extension into php? I
> haven't found a site with useful info.
>
> Thanx again.
>
> LI. Omar Campos Galán
> Desarrollo de Formas Electrónicas
> CompuSoluciones
> Tel. (0133) 3818-1554 Fax (0133) 3818-1506
> [EMAIL PROTECTED]
> www.compusoluciones.com
>
>
>
> -----Mensaje original-----
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Enviado el: Miércoles, 11 de Diciembre de 2002 10:43 p.m.
> Para: 'Omar'
> Asunto: AW: [PHP-WIN] accesing to a dll
>
>
> Hello Omar,
> you might want to refer to the Manual at
> http://www.php.net/manual/en/ref.w32api.php
> Cheers,
>
> Sven
>
> > -----Ursprüngliche Nachricht-----
> > Von: Omar [SMTP:[EMAIL PROTECTED]]
> > Gesendet am: Mittwoch, 11. Dezember 2002 11:23
> > An: [EMAIL PROTECTED]
> > Betreff: [PHP-WIN] accesing to a dll
> >
> > I wanto to access to a function in a dll file.
> > Is this posible?
> >
> > Thank you.
> >
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
--- End Message ---
--- Begin Message ---
When is Isapi for IIS 5.0 going to be considered production quality? Or
is it already? What issues has anyone run into?
Thanks
Charles Killmer
--- End Message ---
--- Begin Message ---
Old topic, but I finally fixed my issue(s). In case anyone else is
having trouble with PDFs and IE.
I had two issues that were preventing PDFs to be dynamically created
with PHP.
First:
I was using sessions to ensure the user should see this pdf. Using
sessions caused three additional headers to be sent.
Expires: Sun, 15 Dec 2002 01:33:27 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
precheck=0
Pragma: no-cache
This caused some kind of problem with IE.
Solution: session_write_close() before I send the headers.
Second:
I was using gzip as the output handler. Again IE didn't like to receive
pdfs gziped.
Netscape didn't have any trouble with either of these issues. :)
Needless to say I am happy that I don't have to use ASP. :)
Charles Killmer
-----Original Message-----
From: Asendorf, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 07, 2002 1:42 PM
To: Charles P. Killmer; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Tough decision ASP or PHP
I'm filling out form PDFs on the fly with IIS and FDF without any
problems... I don't know if that's what you mean by "creating PDF's"
but if
this ( http://www.lcounty.com/lchd/record_search/ ) is what you're
looking
for, (enter a name like smith then click on one of the application
request
icons) then you should be fine.
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: Charles P. Killmer [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 07, 2002 12:57 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Tough decision ASP or PHP
>
>
> Thanks for all the great feedback. IIS is probably a requirement.
>
> The problem with PHP and PDFs is when php has to send the
> headers for a PDF. IIS seems to get in the way. Does anyone
> have a workaround for sending headers though PHP and IIS?
>
> Charles
>
> -----Original Message-----
> From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 07, 2002 12:00 PM
> To: Charles P. Killmer
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] Tough decision ASP or PHP
>
>
>
> "Charles P. Killmer" <[EMAIL PROTECTED]> wrote... :
>
> > I have to start building a a web site. And it needs to be
> very stable. It will be creating a lot of pdf's on the fly
> also. The problem that I have had with php creating pdfs is
> that IIS sends a connection: close header. This makes the
> pdfs very unreliable.
>
> I saw some of our code working on IIS and PDFs were just fine. This
> depends though. but, there are always work arounds and IIS is not any
> easier either.
>
> >
> > I am guessing that the isapi version of php would resolve
> this issue. Though the isapi version still has stability issues.
>
> I think so.
>
> > I hate to asp but am thinking that I may have to simply due
> to stability.
>
> Think also about the stability in the long run - ASP needs more
> maintainance than PHP, even on IIS.
>
>
>
> --
> Maxim Maletsky
> [EMAIL PROTECTED]
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hello,
I installed .NET Server recently, and installed PHP (4.2.3) manually via the
ISAPI filter. When I try to view a simple PHP page, I get a login box pop
up. I have given IUSR_<Machine Name> the correct (Read + Execute)
permissions for the C:\php\ dir as well as my website folder. I can run .asp
and .htm files without a hitch in the same folder. Any ideas?
Thanks,
Dave
--- End Message ---
--- Begin Message ---
Hi. I just installed PWS 4 on my WinME pc, and am currently fighting with
PHP 4.2.3. I tried the installer but didn't have any luck (always had error
500) so I decided to do a manual install. I've read thru the install.txt
file and I am confused on some points. Am I supposed to copy all the
php*.dll 's to the same folder as the php executable, or my windows\system
directory? Do I activate cgi.force_redirect , or not? What do I fill in for
cgi.redirect_status_env (i.e. my environment name)? I keep getting error 500
when I try to load a php page. When I ran 'php.exe -i' I got the right
output.
If anybody has fought thru this stuff with PWS 4 on WinME and got it to work
I would really appreciate some help.
Thanks!
Jason Trickett
--- End Message ---