|
From: Dan W. <Wi...@ma...> - 2002-02-25 02:09:22
|
I am getting a blank page when I load the 'manage.php' file. I think the problem is in my phpesp.ini file. I am not sure if I am specifying the paths for the location of the database and root directories correctly in the phpesp.ini. Here's how I'm currently doing it: $locale_path = 'c:/Inetpub/scripts/phpESP/'; 'include_path' => 'c:/Inetpub/scripts/phpESP/admin/include/', 'handler' => 'c:/Inetpub/scripts/phpESP/public/handler.php', 'handler_prefix' => 'c:/Inetpub/scripts/phpESP/public/handler-prefix.php', I believe this is the right way of phrasing the locations because manage.php finds the phpesp.ini using the same method. Is there something I'm missing? Also, there is a call for a CSS in the .ini file. Do you have to have a CSS file set up? I am running PWS on Windows 98 (yeah yeah, I know I should install Unix. I'm going to but I am stuck developing on this laptop for the time being.) I have PHP 4 installed with the MySQL extension. I am really stuck and do not know what to try next because the page is just blank and there's nothing in the source. I've read the posts about blank pages posted in January and they didn't seem to solve my problem. Thanks in advance. |
|
From: James E. F. <jf...@ac...> - 2002-02-25 05:15:34
|
On Sun, 24 Feb 2002, Dan Wick wrote:
> I am getting a blank page when I load the 'manage.php'
> file. I think the problem is in my phpesp.ini file.
First, I have absolutly no expirience with PWS (Personal
Web Server?)... However, it is in the same family as IIS,
and there are known problems with PHP and IIS. I don't want
to spend too much time trying to figure this out, since it
is probably a PHP issue, not a phpESP issue. Having said
that ... Could you try using Apache for Win32 and see if
you have better luck?
To figure out what PWS is doing ... first find it's log
files (hopefully there are some), and see if there is
anything reported there. Do other PHP scripts work? Like:
<?php echo("It works.") ?>
Typically, in my expirience, when a page is completely
blank (even in "view source") it is because the server
crashed trying to serve the page.
> I am not sure if I am specifying the paths for the
> location of the database and root directories correctly
> in the phpesp.ini. Here's how I'm currently doing it:
>
> $locale_path = 'c:/Inetpub/scripts/phpESP/';
> 'include_path' => 'c:/Inetpub/scripts/phpESP/admin/include/',
> 'handler' => 'c:/Inetpub/scripts/phpESP/public/handler.php',
> 'handler_prefix' => 'c:/Inetpub/scripts/phpESP/public/handler-prefix.php',
Looks fine to me.
> Also, there is a call for a CSS in the .ini file. Do
> you have to have a CSS file set up?
Nope ... It's probably better to just use CSS in the
template (where you embed the survey).
> I am running PWS on Windows 98 (yeah yeah, I know I
> should install Unix. I'm going to but I am stuck
> developing on this laptop for the time being.) I have
> PHP 4 installed with the MySQL extension.
>
> I am really stuck and do not know what to try next
> because the page is just blank and there's nothing in
> the source. I've read the posts about blank pages
> posted in January and they didn't seem to solve my
> problem.
One other thought... The script tries to
dynamically load the "gettext" extension if it is not
loaded. If the server is crashing, it's probably here,
comment out the related lines in phpESP.ini.
-James
|
|
From: Dan W. <wi...@vi...> - 2002-02-25 18:20:18
|
I have installed Apache now instead of using PWS. I also commented out the
GetText functions, which were giving me Internal Server errors within
Apache. Now I am getting the following error:
Fatal error: Call to undefined function: _() in /Program Files/Apache
Group/Apache/htdocs/phpESP/admin/phpESP.ini on line 94
This is Line 94:
'thank_head' => _('Thank You For Completing This Survey.'),
'thank_body' => _('Please do not use the back button on your browser to go
back. Please click on the link below to return you to where
you launched this survey.'),
I tried commenting that out as well, but it then it finds another undefined
function:
Fatal error: Call to undefined function: _() in /Program Files/Apache
Group/Apache/htdocs/phpESP/admin/include//lib/espauth.inc on line 155
It keeps giving me "undefined function" errors.
Is there anything I can do?
On Sun, 24 Feb 2002, Dan Wick wrote:
> I am getting a blank page when I load the 'manage.php'
> file. I think the problem is in my phpesp.ini file.
First, I have absolutly no expirience with PWS (Personal
Web Server?)... However, it is in the same family as IIS,
and there are known problems with PHP and IIS. I don't want
to spend too much time trying to figure this out, since it
is probably a PHP issue, not a phpESP issue. Having said
that ... Could you try using Apache for Win32 and see if
you have better luck?
To figure out what PWS is doing ... first find it's log
files (hopefully there are some), and see if there is
anything reported there. Do other PHP scripts work? Like:
<?php echo("It works.") ?>
Typically, in my expirience, when a page is completely
blank (even in "view source") it is because the server
crashed trying to serve the page.
> I am not sure if I am specifying the paths for the
> location of the database and root directories correctly
> in the phpesp.ini. Here's how I'm currently doing it:
>
> $locale_path = 'c:/Inetpub/scripts/phpESP/';
> 'include_path' => 'c:/Inetpub/scripts/phpESP/admin/include/',
> 'handler' => 'c:/Inetpub/scripts/phpESP/public/handler.php',
> 'handler_prefix' => 'c:/Inetpub/scripts/phpESP/public/handler-prefix.php',
Looks fine to me.
> Also, there is a call for a CSS in the .ini file. Do
> you have to have a CSS file set up?
Nope ... It's probably better to just use CSS in the
template (where you embed the survey).
> I am running PWS on Windows 98 (yeah yeah, I know I
> should install Unix. I'm going to but I am stuck
> developing on this laptop for the time being.) I have
> PHP 4 installed with the MySQL extension.
>
> I am really stuck and do not know what to try next
> because the page is just blank and there's nothing in
> the source. I've read the posts about blank pages
> posted in January and they didn't seem to solve my
> problem.
One other thought... The script tries to
dynamically load the "gettext" extension if it is not
loaded. If the server is crashing, it's probably here,
comment out the related lines in phpESP.ini.
-James
_______________________________________________
phpESP-general mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/phpesp-general
|
|
From: James E. F. <jf...@ac...> - 2002-02-25 18:46:32
|
On Mon, 25 Feb 2002, Dan Wick wrote:
> I have installed Apache now instead of using PWS. I also commented out the
> GetText functions, which were giving me Internal Server errors within
> Apache. Now I am getting the following error:
>
> Fatal error: Call to undefined function: _() in /Program Files/Apache
> Group/Apache/htdocs/phpESP/admin/phpESP.ini on line 94
Hehe ... you commented out too much. :-)
Uncomment the "else" clause of the section you commented.
Where it says (something like):
function _($s) { return($s); }
...
function bindto...() {...}
-James
>
> This is Line 94:
> 'thank_head' => _('Thank You For Completing This Survey.'),
> 'thank_body' => _('Please do not use the back button on your browser to go
> back. Please click on the link below to return you to where
> you launched this survey.'),
>
> I tried commenting that out as well, but it then it finds another undefined
> function:
>
> Fatal error: Call to undefined function: _() in /Program Files/Apache
> Group/Apache/htdocs/phpESP/admin/include//lib/espauth.inc on line 155
>
> It keeps giving me "undefined function" errors.
>
> Is there anything I can do?
>
>
> On Sun, 24 Feb 2002, Dan Wick wrote:
>
> > I am getting a blank page when I load the 'manage.php'
> > file. I think the problem is in my phpesp.ini file.
>
> First, I have absolutly no expirience with PWS (Personal
> Web Server?)... However, it is in the same family as IIS,
> and there are known problems with PHP and IIS. I don't want
> to spend too much time trying to figure this out, since it
> is probably a PHP issue, not a phpESP issue. Having said
> that ... Could you try using Apache for Win32 and see if
> you have better luck?
>
> To figure out what PWS is doing ... first find it's log
> files (hopefully there are some), and see if there is
> anything reported there. Do other PHP scripts work? Like:
> <?php echo("It works.") ?>
>
> Typically, in my expirience, when a page is completely
> blank (even in "view source") it is because the server
> crashed trying to serve the page.
>
> > I am not sure if I am specifying the paths for the
> > location of the database and root directories correctly
> > in the phpesp.ini. Here's how I'm currently doing it:
> >
> > $locale_path = 'c:/Inetpub/scripts/phpESP/';
> > 'include_path' => 'c:/Inetpub/scripts/phpESP/admin/include/',
> > 'handler' => 'c:/Inetpub/scripts/phpESP/public/handler.php',
> > 'handler_prefix' => 'c:/Inetpub/scripts/phpESP/public/handler-prefix.php',
>
> Looks fine to me.
>
> > Also, there is a call for a CSS in the .ini file. Do
> > you have to have a CSS file set up?
>
> Nope ... It's probably better to just use CSS in the
> template (where you embed the survey).
>
> > I am running PWS on Windows 98 (yeah yeah, I know I
> > should install Unix. I'm going to but I am stuck
> > developing on this laptop for the time being.) I have
> > PHP 4 installed with the MySQL extension.
> >
> > I am really stuck and do not know what to try next
> > because the page is just blank and there's nothing in
> > the source. I've read the posts about blank pages
> > posted in January and they didn't seem to solve my
> > problem.
>
> One other thought... The script tries to
> dynamically load the "gettext" extension if it is not
> loaded. If the server is crashing, it's probably here,
> comment out the related lines in phpESP.ini.
>
> -James
>
>
> _______________________________________________
> phpESP-general mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/phpesp-general
>
>
> _______________________________________________
> phpESP-general mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/phpesp-general
>
|
|
From: Dan W. <wi...@vi...> - 2002-02-25 19:08:32
|
I think I follow you, but I'm not completely sure. This is what I
uncommented and now i receive a 500 Internal Server Error:
//if(!ini_get('safe_mode') &&
// (extension_loaded('gettext') || @dl('gettext.so'))) {
// if(!empty($HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'])) {
// $langs = split(" *, *", $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE']);
// foreach($langs as $lang) {
// $lang = quotemeta($lang);
// if(file_exists("$locale_path/$lang")) {
// break;
// }
// }
// }
// putenv("LC_ALL=$lang");
// bindtextdomain('messages', $locale_path);
// textdomain('messages');
//} else if(!defined('_GETTEXT')) {
define('_GETTEXT',TRUE);
function _($s) {return($s);}
function bindtextdomain($s) {}
function textdomain($s) {}
//}
The Apache error log says this about the error:
"malformed header from script. Bad header=HTTP/1.0 401 Unauthorized:
c:/php/php.exe"
On Mon, 25 Feb 2002, Dan Wick wrote:
> I have installed Apache now instead of using PWS. I also commented out
the
> GetText functions, which were giving me Internal Server errors within
> Apache. Now I am getting the following error:
>
> Fatal error: Call to undefined function: _() in /Program Files/Apache
> Group/Apache/htdocs/phpESP/admin/phpESP.ini on line 94
Hehe ... you commented out too much. :-)
Uncomment the "else" clause of the section you commented.
Where it says (something like):
function _($s) { return($s); }
...
function bindto...() {...}
-James
>
> This is Line 94:
> 'thank_head' => _('Thank You For Completing This Survey.'),
> 'thank_body' => _('Please do not use the back button on your browser to go
> back. Please click on the link below to return you to where
> you launched this survey.'),
>
> I tried commenting that out as well, but it then it finds another
undefined
> function:
>
> Fatal error: Call to undefined function: _() in /Program Files/Apache
> Group/Apache/htdocs/phpESP/admin/include//lib/espauth.inc on line 155
>
> It keeps giving me "undefined function" errors.
>
> Is there anything I can do?
>
>
> On Sun, 24 Feb 2002, Dan Wick wrote:
>
> > I am getting a blank page when I load the 'manage.php'
> > file. I think the problem is in my phpesp.ini file.
>
> First, I have absolutly no expirience with PWS (Personal
> Web Server?)... However, it is in the same family as IIS,
> and there are known problems with PHP and IIS. I don't want
> to spend too much time trying to figure this out, since it
> is probably a PHP issue, not a phpESP issue. Having said
> that ... Could you try using Apache for Win32 and see if
> you have better luck?
>
> To figure out what PWS is doing ... first find it's log
> files (hopefully there are some), and see if there is
> anything reported there. Do other PHP scripts work? Like:
> <?php echo("It works.") ?>
>
> Typically, in my expirience, when a page is completely
> blank (even in "view source") it is because the server
> crashed trying to serve the page.
>
> > I am not sure if I am specifying the paths for the
> > location of the database and root directories correctly
> > in the phpesp.ini. Here's how I'm currently doing it:
> >
> > $locale_path = 'c:/Inetpub/scripts/phpESP/';
> > 'include_path' => 'c:/Inetpub/scripts/phpESP/admin/include/',
> > 'handler' => 'c:/Inetpub/scripts/phpESP/public/handler.php',
> > 'handler_prefix' =>
'c:/Inetpub/scripts/phpESP/public/handler-prefix.php',
>
> Looks fine to me.
>
> > Also, there is a call for a CSS in the .ini file. Do
> > you have to have a CSS file set up?
>
> Nope ... It's probably better to just use CSS in the
> template (where you embed the survey).
>
> > I am running PWS on Windows 98 (yeah yeah, I know I
> > should install Unix. I'm going to but I am stuck
> > developing on this laptop for the time being.) I have
> > PHP 4 installed with the MySQL extension.
> >
> > I am really stuck and do not know what to try next
> > because the page is just blank and there's nothing in
> > the source. I've read the posts about blank pages
> > posted in January and they didn't seem to solve my
> > problem.
>
> One other thought... The script tries to
> dynamically load the "gettext" extension if it is not
> loaded. If the server is crashing, it's probably here,
> comment out the related lines in phpESP.ini.
>
> -James
>
>
> _______________________________________________
> phpESP-general mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/phpesp-general
>
>
> _______________________________________________
> phpESP-general mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/phpesp-general
>
|
|
From: James E. F. <jf...@ac...> - 2002-02-26 06:59:45
|
On Mon, 25 Feb 2002, Dan Wick wrote: > I think I follow you, but I'm not completely sure. This is what I > uncommented and now i receive a 500 Internal Server Error: > > The Apache error log says this about the error: > > "malformed header from script. Bad header=HTTP/1.0 401 Unauthorized: > c:/php/php.exe" Now you've got a whole new problem. =) Is there anyway you can try using the "server API version for Apache", rather than the "CGI version"? I don't use windows, so you'll have to consult php.net/apache.org for how to do that. I think that that will take care of the problems with sending HTTP from PHP. -James |