I can see the source code of php on my browser?!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
khamed
Forum Newbie
Posts: 2
Joined: Thu Feb 27, 2003 8:47 am

I can see the source code of php on my browser?!

Post by khamed »

Hi everybody,

well, I'm trying to start a web-interface written with php. The web-interface is'nt working and I can see all the source code of php. I thought, nobody can see the source. Can someone help me or can someone give me a hint where to look for the source of the trouble... ;-)

Notice: I already started two tools working with php on the same web-serveur, Mantis and phpmyadmin. Both are working correctly.

Thank you in advance.
Karim
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Maybe you are using short tags (<? ?>) and your server doesn't support them, if so try using long tags (<?php ?>).

Mac
khamed
Forum Newbie
Posts: 2
Joined: Thu Feb 27, 2003 8:47 am

Long tags.....

Post by khamed »

Hi,

Thank you. You were right ;-). I changed in on file the short tag in a long tag and it shows me more than usual.

Best regards.
Karim
Post Reply