Re: [PHP] index.php not loading up
Nguyen, Long P (Mission Systems) wrote --- napísal:: Doesn't look like it.. DocumentRoot /var/www/html short_open_tag is OFF. This means that ? does not mark the beginnig of PHP code. This: http://158.114.148.90/? echo $sys_graphics . alt=Keystone 2 / will result in this link: http://158.114.148.90/? so the file is http://158.114.148.90/ (that's what the error log shows up) and ? marks start of query string. SOLUTION: turn short_open_tag ON in php.ini or start using long open tags - ?php HTH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] index.php not loading up
Nguyen, Long P (Mission Systems) wrote: this is an entry in the php.ini file: error_reporting = E_ALL ~E_NOTICE where on the machine are the error logged to? Below that will be a line like this... display_errors = On If you setting is Off, change it to 'On', and restart your webserver. Also, if this is a development enviorment, you can remove the ' ~E_NOTICE', and you will see all the errors and notices (you can do this even if it's a production enviroment, but some will flame me if I suggest that ;) -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] index.php not loading up
ok - I checked and it's set to: display_errors = On so going back to your original question - yes error set to display on, but I don't think I am seeing errors - where are the error logs? Thank you -Original Message- From: John Nichel [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 11:22 AM To: PHP Mailing Lists Subject: Re: [PHP] index.php not loading up Nguyen, Long P (Mission Systems) wrote: this is an entry in the php.ini file: error_reporting = E_ALL ~E_NOTICE where on the machine are the error logged to? Below that will be a line like this... display_errors = On If you setting is Off, change it to 'On', and restart your webserver. Also, if this is a development enviorment, you can remove the ' ~E_NOTICE', and you will see all the errors and notices (you can do this even if it's a production enviroment, but some will flame me if I suggest that ;) -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] index.php not loading up
On Wed, 16 Jun 2004 08:33:46 -0700, Nguyen, Long P (Mission Systems) [EMAIL PROTECTED] wrote: so going back to your original question - yes error set to display on, but I don't think I am seeing errors - where are the error logs? Depends on what web server software you're using. Mine are in /var/log/apache for example. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] index.php not loading up
apache - and I would think that mine would also be /var/log/apache but that path does not exist - was this created automatically when apache was installed? -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:00 PM To: Nguyen, Long P (Mission Systems) Cc: PHP Mailing Lists Subject: Re: [PHP] index.php not loading up On Wed, 16 Jun 2004 08:33:46 -0700, Nguyen, Long P (Mission Systems) [EMAIL PROTECTED] wrote: so going back to your original question - yes error set to display on, but I don't think I am seeing errors - where are the error logs? Depends on what web server software you're using. Mine are in /var/log/apache for example. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] index.php not loading up
Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]: apache - and I would think that mine would also be /var/log/apache but that path does not exist - was this created automatically when apache was installed? probably its /var/log/httpd ? -R'twick -- This is a signature This message was sent using IMP, the Internet Messaging Program. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] index.php not loading up
Found it, thanks. The errors are: [Wed Jun 16 13:49:12 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer: http://158.114.148.90/index.php3 [Wed Jun 16 13:49:14 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer: http://158.114.148.90/index.php3 [Wed Jun 16 13:49:16 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer: http://158.114.148.90/index.php [Wed Jun 16 13:49:18 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer: http://158.114.148.90/index.php The index.php file is there, is it looking for some other file? [EMAIL PROTECTED] html]# pwd /var/www/html [EMAIL PROTECTED] html]# ls -l index.php -rwxr-xr-x1 root root 4870 Jun 4 15:28 index.php -Original Message- From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 12:26 PM To: PHP Mailing Lists Subject: RE: [PHP] index.php not loading up Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]: apache - and I would think that mine would also be /var/log/apache but that path does not exist - was this created automatically when apache was installed? probably its /var/log/httpd ? -R'twick -- This is a signature This message was sent using IMP, the Internet Messaging Program. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] index.php not loading up
[Wed Jun 16 13:49:12 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer: http://158.114.148.90/index.php3 [Wed Jun 16 13:49:14 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer: http://158.114.148.90/index.php3 [Wed Jun 16 13:49:16 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer: http://158.114.148.90/index.php [Wed Jun 16 13:49:18 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer: http://158.114.148.90/index.php The index.php file is there, is it looking for some other file? Yes, it appears to be looking for /var/www/html/. Going back to your original post, this line is where your problem is: http://158.114.148.90/? echo $sys_graphics . alt=Keystone 2 / I'm not even sure that's remotely valid PHP or HTML. What's it supposed to do? - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] index.php not loading up
Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]: Found it, thanks. The errors are: [Wed Jun 16 13:49:12 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer: http://158.114.148.90/index.php3 /var/www/html/ check your httpd.conf file and see if there's an extra at end of DocumentRoot directive. R'twick -- This is a signature This message was sent using IMP, the Internet Messaging Program. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] index.php not loading up
Doesn't look like it.. DocumentRoot /var/www/html -Original Message- From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 1:10 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] index.php not loading up Quoting Nguyen, Long P (Mission Systems) [EMAIL PROTECTED]: Found it, thanks. The errors are: [Wed Jun 16 13:49:12 2004] [error] [client 158.114.144.121] File does not exist: /var/www/html/, referer: http://158.114.148.90/index.php3 /var/www/html/ check your httpd.conf file and see if there's an extra at end of DocumentRoot directive. R'twick -- This is a signature This message was sent using IMP, the Internet Messaging Program. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] index.php not loading up
I am able to bring up a test.php file, but when I try to bring up this index.php file, the page does not load but the syntaxes below load up. Any ideas? Thank you. http://158.114.148.90/? echo $sys_graphics . alt=Keystone 2 / _ setCols(2); $loginBox-addRow('Username'); $loginBox-addRow(''); $loginBox-addRow(Password); $loginBox-addRow(''); $loginBox-setSpan(2); $loginBox-setAlignment('center'); $loginBox-addRow(''); echo $loginBox-dump(); echo ; echo \n; #- # Contact login box... /* echo ; echo ; $contactBox = new Box(Contact login); $contactBox-setCols(2); $contactBox-addRow('Username','50%'); $contactBox-addRow('','50%'); $contactBox-addRow(Password,'50%'); $contactBox-addRow('','50%'); $contactBox-setSpan(2); $contactBox-setAlignment('center'); $contactBox-addRow(''); echo $contactBox-dump(); echo ; echo \n; */ #- # Go to a specific slip... echo ' '; echo ' '.\n; echo ''.\n; $slipBox = new Box(View / Create a slip); $slipBox-setCols(3); $slipBox-addRow('Slip number','30%'); $slipBox-addRow('','30%'); $slipBox-addRow('','30%'); $slipBox-setAlignment('center'); $slipBox-setSpan(3); $slipBox-addRow(' '); echo $slipBox-dump(); echo ; echo \n; ? setCols(2); $browseBox-addRow(Slips whose status is,50%); $statcodes = new fetchStatus(); $values = $statcodes-getResult(); $t = ''.\n; $t .= Any; while (list($key,$val) = each($values)) { $t .= $val; } $t .= ; $browseBox-addRow($t,50%); $browseBox-addRow(Relating to,50%); $quickslips = new fetchQuickSlips(); $values = $quickslips-getResult(); $t = ''.\n; if (isset($values)) { while (list($key,$val) = each($values)) { $t .= $val; } } // Prevent an error on the index page if there are no slips yet. $t .= ; $browseBox-addRow($t,50%); $browseBox-setSpan(2); $browseBox-setAlignment('center'); $browseBox-addRow('','50%'); echo $browseBox-dump(); /* ? setAlignment(center); $newBox-addRow('dump(); */? _ Keystone2 is © 1998-2004 Stonekeep Consulting, Inc http://www.stonekeep.com/ http://www.stonekeep.com/
Re: [PHP] index.php not loading up
Assuming you're using apache and php 4, check httpd.conf for a the following data: LoadModule php4_module libexec/libphp4.so In the AddModule section: AddModule mod_php4.c AddType application/x-httpd-php .php .phtml If any of those aren't there, its possible that php wasn't properly compiled. Check http://www.php.net/manual/en/install.apache.php for more details. On Jun 15, 2004, at 10:05 AM, Nguyen, Long P (Mission Systems) wrote: I am able to bring up a test.php file, but when I try to bring up this index.php file, the page does not load but the syntaxes below load up. Any ideas? Thank you. http://158.114.148.90/? echo $sys_graphics . alt=Keystone 2 / _ setCols(2); $loginBox-addRow('Username'); $loginBox-addRow(''); $loginBox-addRow(Password); $loginBox-addRow(''); $loginBox-setSpan(2); $loginBox-setAlignment('center'); $loginBox-addRow(''); echo $loginBox-dump(); echo ; echo \n; #- # Contact login box... /* echo ; echo ; $contactBox = new Box(Contact login); $contactBox-setCols(2); $contactBox-addRow('Username','50%'); $contactBox-addRow('','50%'); $contactBox-addRow(Password,'50%'); $contactBox-addRow('','50%'); $contactBox-setSpan(2); $contactBox-setAlignment('center'); $contactBox-addRow(''); echo $contactBox-dump(); echo ; echo \n; */ #- # Go to a specific slip... echo ' '; echo ' '.\n; echo ''.\n; $slipBox = new Box(View / Create a slip); $slipBox-setCols(3); $slipBox-addRow('Slip number','30%'); $slipBox-addRow('','30%'); $slipBox-addRow('','30%'); $slipBox-setAlignment('center'); $slipBox-setSpan(3); $slipBox-addRow(' '); echo $slipBox-dump(); echo ; echo \n; ? setCols(2); $browseBox-addRow(Slips whose status is,50%); $statcodes = new fetchStatus(); $values = $statcodes-getResult(); $t = ''.\n; $t .= Any; while (list($key,$val) = each($values)) { $t .= $val; } $t .= ; $browseBox-addRow($t,50%); $browseBox-addRow(Relating to,50%); $quickslips = new fetchQuickSlips(); $values = $quickslips-getResult(); $t = ''.\n; if (isset($values)) { while (list($key,$val) = each($values)) { $t .= $val; } } // Prevent an error on the index page if there are no slips yet. $t .= ; $browseBox-addRow($t,50%); $browseBox-setSpan(2); $browseBox-setAlignment('center'); $browseBox-addRow('','50%'); echo $browseBox-dump(); /* ? setAlignment(center); $newBox-addRow('dump(); */? _ Keystone2 is © 1998-2004 Stonekeep Consulting, Inc http://www.stonekeep.com/ http://www.stonekeep.com/
RE: [PHP] index.php not loading up
But if I am able to bring up test.php with the PHP configuration etc., then PHP is working right? -Original Message- From: dave windsor [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 15, 2004 10:47 AM To: Php-general Subject: Re: [PHP] index.php not loading up Assuming you're using apache and php 4, check httpd.conf for a the following data: LoadModule php4_module libexec/libphp4.so In the AddModule section: AddModule mod_php4.c AddType application/x-httpd-php .php .phtml If any of those aren't there, its possible that php wasn't properly compiled. Check http://www.php.net/manual/en/install.apache.php for more details. On Jun 15, 2004, at 10:05 AM, Nguyen, Long P (Mission Systems) wrote: I am able to bring up a test.php file, but when I try to bring up this index.php file, the page does not load but the syntaxes below load up. Any ideas? Thank you. http://158.114.148.90/? echo $sys_graphics . alt=Keystone 2 / _ setCols(2); $loginBox-addRow('Username'); $loginBox-addRow(''); $loginBox-addRow(Password); $loginBox-addRow(''); $loginBox-setSpan(2); $loginBox-setAlignment('center'); $loginBox-addRow(''); echo $loginBox-dump(); echo ; echo \n; #- # Contact login box... /* echo ; echo ; $contactBox = new Box(Contact login); $contactBox-setCols(2); $contactBox-addRow('Username','50%'); $contactBox-addRow('','50%'); $contactBox-addRow(Password,'50%'); $contactBox-addRow('','50%'); $contactBox-setSpan(2); $contactBox-setAlignment('center'); $contactBox-addRow(''); echo $contactBox-dump(); echo ; echo \n; */ #- # Go to a specific slip... echo ' '; echo ' '.\n; echo ''.\n; $slipBox = new Box(View / Create a slip); $slipBox-setCols(3); $slipBox-addRow('Slip number','30%'); $slipBox-addRow('','30%'); $slipBox-addRow('','30%'); $slipBox-setAlignment('center'); $slipBox-setSpan(3); $slipBox-addRow(' '); echo $slipBox-dump(); echo ; echo \n; ? setCols(2); $browseBox-addRow(Slips whose status is,50%); $statcodes = new fetchStatus(); $values = $statcodes-getResult(); $t = ''.\n; $t .= Any; while (list($key,$val) = each($values)) { $t .= $val; } $t .= ; $browseBox-addRow($t,50%); $browseBox-addRow(Relating to,50%); $quickslips = new fetchQuickSlips(); $values = $quickslips-getResult(); $t = ''.\n; if (isset($values)) { while (list($key,$val) = each($values)) { $t .= $val; } } // Prevent an error on the index page if there are no slips yet. $t .= ; $browseBox-addRow($t,50%); $browseBox-setSpan(2); $browseBox-setAlignment('center'); $browseBox-addRow('','50%'); echo $browseBox-dump(); /* ? setAlignment(center); $newBox-addRow('dump(); */? _ Keystone2 is © 1998-2004 Stonekeep Consulting, Inc http://www.stonekeep.com/ http://www.stonekeep.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] index.php not loading up
Nguyen, Long P (Mission Systems) wrote: But if I am able to bring up test.php with the PHP configuration etc., then PHP is working right? Do you have errors set to display in the php.ini? -- John C. Nichel KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] index.php not loading up
Nguyen, Long P (Mission Systems) wrote --- napísal:: I am able to bring up a test.php file, but when I try to bring up this index.php file, the page does not load but the syntaxes below load up. Any ideas? Thank you. http://158.114.148.90/? echo $sys_graphics . alt=Keystone 2 / _ setCols(2); $loginBox-addRow('Username'); $loginBox-addRow(''); $loginBox-addRow(Password); $loginBox-addRow(''); $loginBox-setSpan(2); $loginBox-setAlignment('center'); $loginBox-addRow(''); echo $loginBox-dump(); echo ; echo \n; #- # Contact login box... /* echo ; echo ; $contactBox = new Box(Contact login); $contactBox-setCols(2); $contactBox-addRow('Username','50%'); $contactBox-addRow('','50%'); $contactBox-addRow(Password,'50%'); $contactBox-addRow('','50%'); $contactBox-setSpan(2); $contactBox-setAlignment('center'); $contactBox-addRow(''); echo $contactBox-dump(); echo ; echo \n; */ #- # Go to a specific slip... echo ' '; echo ' '.\n; echo ''.\n; $slipBox = new Box(View / Create a slip); $slipBox-setCols(3); $slipBox-addRow('Slip number','30%'); $slipBox-addRow('','30%'); $slipBox-addRow('','30%'); $slipBox-setAlignment('center'); $slipBox-setSpan(3); $slipBox-addRow(' '); echo $slipBox-dump(); echo ; echo \n; ? setCols(2); $browseBox-addRow(Slips whose status is,50%); $statcodes = new fetchStatus(); $values = $statcodes-getResult(); $t = ''.\n; $t .= Any; while (list($key,$val) = each($values)) { $t .= $val; } $t .= ; $browseBox-addRow($t,50%); $browseBox-addRow(Relating to,50%); $quickslips = new fetchQuickSlips(); $values = $quickslips-getResult(); $t = ''.\n; if (isset($values)) { while (list($key,$val) = each($values)) { $t .= $val; } } // Prevent an error on the index page if there are no slips yet. $t .= ; $browseBox-addRow($t,50%); $browseBox-setSpan(2); $browseBox-setAlignment('center'); $browseBox-addRow('','50%'); echo $browseBox-dump(); /* ? setAlignment(center); $newBox-addRow('dump(); */? _ Keystone2 is © 1998-2004 Stonekeep Consulting, Inc http://www.stonekeep.com/ http://www.stonekeep.com/ php syntax must be enclosed between ?php and ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php