PHP is not working?

Alles, was PHP betrifft, kann hier besprochen werden.

PHP is not working?

Postby DarrenReeder » 15. November 2009 17:29

PHP is not working...

i made a test.php and put it in the root folder thingy, HTML files work when i do stuff like 'http://localhost/index.html' or with 127.0.0.1, but ive tried doing this:

Code: Select all
<?
phpinfo();
?>


and this shows a blank screen, Its very strange...
DarrenReeder
 
Posts: 2
Joined: 15. November 2009 17:26

Re: PHP is not working?

Postby Wiedmann » 15. November 2009 20:19

Code: Select all
<?

Code: Select all
<?php
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: PHP is not working?

Postby DarrenReeder » 16. November 2009 16:52

This doesnt help :-(

i know its nothing like tat because this code works perfectly when i upload to a Host (byethost).... its somthing to do with xampp/apache
DarrenReeder
 
Posts: 2
Joined: 15. November 2009 17:26

Re: PHP is not working?

Postby Nobbie » 16. November 2009 17:07

DarrenReeder wrote:i know its nothing


Wrong - you know nothing!

Did you really try <?php instead of <? - I dont think so and your comment sounds like "I didnt check it because it works on my host".

I am pretty sure, that it works with <?php and you should open your mind and read about differences in PHP configuration, especially the meaning of "short_open_tag" in php.ini
Nobbie
 
Posts: 6497
Joined: 09. March 2008 13:04


Return to PHP

Who is online

Users browsing this forum: No registered users and 3 guests