tags:

views:

69

answers:

5

I am making some code , But it is so strange that code just get prints on screen , I am not able to find any reason of it.

Please help me out of this, rest of the code is working fine.

Thanks

A: 

Missing <?php would be the obvious possibility to check first

Mark Baker
nop i checked , its present
Arsheep
And any files that you include() also have the <?php
Mark Baker
+3  A: 

The server is not correctly configured to run php ;)

Or your file has no .php file extension.

Tobias P.
But all the other code working fine and yes it is PHP extension
Arsheep
If you don't provide details, this is just a guessing game
kemp
mate very hard to tell what detail will be haelpfull, i chekced all .htaccess , extension , tags all is okay and rest of the files on same server are working fine
Arsheep
Well, like... the code? If it's too long, reduce it to the smallest possible version which reproduces the error.
kemp
i answered myself plz check , and Thanks for your help :)
Arsheep
A: 

Since you provide no detail at all i can just guess:

Is the file extension correct? Is there a .htaccess or server configuration that makes apache not interpret the file as php?

dbemerlin
+1  A: 

That is a very annoying problem. There is an error for sure. Check your web server logs but I doubt the it will be helpful. I solved that problem by using die(); in the script and printing some variables on screen using var_dump and/or print_r. Try to break the script in peaces to isolate and find the problem.

rtacconi
yes buddy indeed very annoying . i solved and answered plz check . Thanks :) . But some people think it is not programming related (Shocking :O )
Arsheep
A: 

Ah figured out , actually i recently switched to Win7 and the buggy file outputting/printing codes was renamed file of some windows desktop config file (did it to save time) and uploaded.

But i think FTP tool should handle the file association thing may be filezilla don't do it.

Thanks for all your time.

Arsheep
Based on this answer to your question, I would consider deleting the question altogether. (Not programming related, and unlikely to help anyone else solve a problem.)
Adam Backstrom
o cmon, It is not programming related ? i dont think so
Arsheep
If anything, it's a sysadmin question, which belongs on serverfault.com. Your question has nothing to do with code, it's just your web server setup.
Adam Backstrom