Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Confused

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Confused between Tomcat 4 and 5 - I am reading some I have found on the web and easiest to read (for me anyhow) relate to Tomcat 4. However this has brought up a couple of Q1. In version 4, there appears to be 2 flavours, LE and non-LE. For version 5 I find only one..

confused by apache2 - i have apache v1 and apache v2 installed with suse 9.0. i do and it fires up and responds to my remote browser. Then i do then and it fires up. It doesn't respond to my browser. I try to telnet to..

authorisation fails to work - really confused! - Hi, Here's what I've done so far..... (windows btw!) In I changed the .htaccess to the following (for windoze) So now it should look for files called right? I created a password file, which I..

Confused about virtual hosts and namve vs IP hosting - I am an Apache newbie. I have been using IIS for many years and have only been using Apache on my hosted sites. I now am using Apache on my home machine, which is slowly switching from Windows NT 5 to Linux. Under NT, I had IIS 4 running. All my web..
Next:  Apache: strange problem with server side includes  
Author Message
tech4

External


Since: Aug 06, 2004
Posts: 1



(Msg. 1) Posted: Sat Aug 07, 2004 1:35 am
Post subject: Confused
Archived from groups: alt>apache>configuration (more info?)

I am to say the least confused... I am using Apache2 with php5... on a
windows 2000 server.

phpinfo() works

however the following produces nothing

<html>
<head>
<title>Test Page</title>
</head>
<body>
<?php
$this = "this";
$that = "that";
$the_other = 2.200000000;

print "$this, $not_set, $that+$the_other<br>";
?>
</body>
</html>

when I look at source of the browser I get the following...

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=iso-8859-1"></HEAD>
<BODY></BODY></HTML>

From the manule I am looking at in the browser I should see

this,,that+2.2

What am I missing here?

 >> Stay informed about: Confused 
Back to top
Login to vote
mikelany

External


Since: Mar 12, 2004
Posts: 3



(Msg. 2) Posted: Sat Aug 07, 2004 1:36 am
Post subject: Re: Confused [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello,

I am a novice, so other people may have a better answer.

My guess is you have the test php program in a directory that PHP is not
allowed to get to (not the correct permissions), or you may have an
open_basedir problem.

In your php.ini config file, you should have an open_basedir variable set to
say c:\windows
That means you can only run your php script if it exists in the c:\windows
dir or further down the tree (ie c:\windows\temp)
So, if you have the test script in c:\myphpdir\myfirstprogram
It will not run because it is outside of the open_basedir starting point.
And also make sure the permissions are correct on the test script to allow
it to execute and be read.

If you have the phpinfo() script working, put your new test script in the
same directory, and make sure the permissions are the same as a functioning
php script.

I hope this helps, but I am sure other people have better ideas Smile


"SubSonic" <tech.TakeThisOut@web4tunes.co.uk> wrote in message
news:jJTQc.832$4s.442@newsfe5-gui.ntli.net...
 >I am to say the least confused... I am using Apache2 with php5... on a
 > windows 2000 server.
 >
 > phpinfo() works
 >
 > however the following produces nothing
 >
 > <html>
 > <head>
 > <title>Test Page</title>
 > </head>
 > <body>
 > <?php
 > $this = "this";
 > $that = "that";
 > $the_other = 2.200000000;
 >
 > print "$this, $not_set, $that+$the_other<br>";
 > ?>
 > </body>
 > </html>
 >
 > when I look at source of the browser I get the following...
 >
 > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 > <HTML><HEAD>
 > <META http-equiv=Content-Type content="text/html;
 > charset=iso-8859-1"></HEAD>
 > <BODY></BODY></HTML>
 >
 > From the manule I am looking at in the browser I should see
 >
 > this,,that+2.2
 >
 > What am I missing here?
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Confused 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 3) Posted: Sat Aug 07, 2004 8:01 am
Post subject: Re: Confused [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-08-06, SubSonic <tech.DeleteThis@web4tunes.co.uk> wrote:
 > I am to say the least confused... I am using Apache2 with php5... on a
 > windows 2000 server.
 >
 > phpinfo() works
 >
 > however the following produces nothing
 >
 ><html>
 ><head>
 ><title>Test Page</title>
 ></head>
 ><body>
 ><?php
 > $this = "this";
 > $that = "that";
 > $the_other = 2.200000000;
 >
 > print "$this, $not_set, $that+$the_other<br>";
 > ?>
 ></body>
 ></html>
 >
 > when I look at source of the browser I get the following...
 >
 ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 ><HTML><HEAD>
 ><META http-equiv=Content-Type content="text/html;
 > charset=iso-8859-1"></HEAD>
 ><BODY></BODY></HTML>
 >
 > From the manule I am looking at in the browser I should see
 >
 > this,,that+2.2
 >
 > What am I missing here?
 >
 >


--
| When I said "we", officer, I was referring to myself, the four young
| ladies, and, of course, the goat.
|
|<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Confused 
Back to top
Login to vote
x331591

External


Since: Jul 19, 2004
Posts: 17



(Msg. 4) Posted: Sat Aug 07, 2004 3:29 pm
Post subject: Re: Confused [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

SubSonic wrote:
 > I am to say the least confused... I am using Apache2 with php5... on
 > a windows 2000 server.
 >
 > phpinfo() works
 >
 > however the following produces nothing
 >
 > <html>
 > <head>
 > <title>Test Page</title>
 > </head>
 > <body>
 > <?php
 > $this = "this";
 > $that = "that";
 > $the_other = 2.200000000;
 >
 > print "$this, $not_set, $that+$the_other<br>";
  >>
 > </body>
 > </html>
 >
 > when I look at source of the browser I get the following...
 >
 > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 > <HTML><HEAD>
 > <META http-equiv=Content-Type content="text/html;
 > charset=iso-8859-1"></HEAD>
 > <BODY></BODY></HTML>
 >
 > From the manule I am looking at in the browser I should see
 >
 > this,,that+2.2
 >
 > What am I missing here?

Did you issue the <? phpinfo() ?> in a separate file, or in an existing
..html or .php such as index.html perhaps ?
Maybe something with what filetypes are parsed ? But then again, it does
strip the php bit out of the file, so it seems as if PHP is processing it..
Geez, I dunno I guess. I don't know of a setting that causes output to be
withheld. Outputbuffering ? Flushing issue, just guessing. (both are
possible settings in php.ini)
GL
Pjotr<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Confused 
Back to top
Login to vote
x331591

External


Since: Jul 19, 2004
Posts: 17



(Msg. 5) Posted: Sat Aug 07, 2004 3:30 pm
Post subject: Re: Confused [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

SubSonic wrote:
 > I am to say the least confused... I am using Apache2 with php5... on
 > a windows 2000 server.
 >
 > phpinfo() works
 >
 > however the following produces nothing
 >
 > <html>
 > <head>
 > <title>Test Page</title>
 > </head>
 > <body>
 > <?php
 > $this = "this";
 > $that = "that";
 > $the_other = 2.200000000;
 >
 > print "$this, $not_set, $that+$the_other<br>";
  >>
 > </body>
 > </html>
 >
 > when I look at source of the browser I get the following...
 >
 > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 > <HTML><HEAD>
 > <META http-equiv=Content-Type content="text/html;
 > charset=iso-8859-1"></HEAD>
 > <BODY></BODY></HTML>
 >
 > From the manule I am looking at in the browser I should see
 >
 > this,,that+2.2
 >
 > What am I missing here?

O and next time, crosspost such a php/apache border issue also to
comp.lang.php!<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Confused 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]