At 04:50 PM 7/6/01 -0300, Tim Johnson wrote:
>Have you tried taking out the spaces?  <?phpinfo()?>
>
>
>Hello
>I hope someone can help me.  When I created the script
>                  <? phpinfo(); ?>

I doubt spaces would matter, heck, most of my phpinfo
reads 

<?
   phpinfo();
?>

but I'm rather anal about putting my statement block seperators
on individual lines (i.e., I'm one of the few I know who will
never do for.... { but instead always go
for...
{

BTW, was that an intentional omission of the semicolon?


>I get the exact output when I go to http://localhost/phpinfo.php3.  In
>other words when I type go to the page I see <? phpinfo() ?>.   In my
>httpd.conf file I have the following:
>       <IfModule mod_php3.c>
>       AddType application/x-httpd-php3 .php3
>       AddType application/x-httpd-php3-source .phps
>       AddType application/x-httpd-php3 .phtml
>       </IfModule>
>
>    # And for PHP 4.x, use:
>    #
>    <IfModule mod_php4.c>
>    AddType application/x-httpd-php .php
>    AddType application/x-httpd-php .php4
>    AddType application/x-httpd-php-source .phps
>    </IfModule>

as a test, try commenting out everything except the addtype for the .php3
(since you seem to be using php3), including the <IfModule...>  presumably
you know you have php3 and ought not need test for it while merely testing
what the problem is.  This should at least ensure that the addtype setting
gets set.  

If you are doing php4 (and I've seen some people install php4 and run examples
from a php3 site so I don't want to assume anything here), try renaming your
file to .php and try the same with the other.

(shrug) can't hurt to try.


=============================
"To dwell within Samsara, however, is to
 be subject to the works of those mighty
 among dreamers."

 - Mahasamatman, in Zelazny's "Lord of Light"

Andrew Apold


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to