something wrong with php

Irgendwelche Probleme mit XAMPP für Linux? Dann ist hier genau der richtige Ort um nachzufragen.

something wrong with php

Postby iim » 01. December 2010 22:34

hi. i just started using xammp and have one problem. i had no errors on installation. php looks like working :). i put my php file in /htdocs directory but when i try to open it on my browser i cant see anything that was written between <?php ?>. sorry for my english ;) and probably stupid question. thank you for answers in advance ;)
iim
 
Posts: 1
Joined: 01. December 2010 22:24

Re: something wrong with php

Postby Altrea » 02. December 2010 04:54

- Are you sure, you use <?php instead of <? at the beginning (short_open_tags issue)?
- Are you sure your file has the fileextension .php (MIME type issue / passed by php parser)
- Are you sure you request the file through the http protocol instead of the "Open by" or doubleclick fileoption (understanding php is a serverside programming language issue)

Please open your sourcecode view in your browser when you just get a white sceen from a php file. What do you see there?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
free software according to purpose of usage
XAMPP 1.8 for local development/testing only
Zend Server 6 (free) for production environments
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 4507
Joined: 17. August 2009 13:05
XAMPP Version: 1.8.0
Operating System: W7Ux64


Return to XAMPP für Linux

Who is online

Users browsing this forum: No registered users and 2 guests