Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 324
  • Last Modified:

PHP Shorthands are not working ...

Hi Guys,

I'm trying to include a php file within include file...  its not working....
the page shows blank.. (empty) no errors, no warnings
and when i upload my site on other hosting (Linux) server its working properly.
can u explain what was the problem...? and why this kind of behavior.

I'm using 1and1 VPS server (CentOS release 5.2)

Please advice, what is the problem or where I'm doing any thing wrong or how to fix ... :-(

Thanks in advance.
0
el123
Asked:
el123
3 Solutions
 
JayDiabloCommented:
Do you have access to the server's http error log?

You may want to check there for errors.  Most default PHP installations have errors set to not display, but will still log (as they should be).
0
 
el123Author Commented:
yes I've access to linux server ... what to look and where to look? please guide, thanks.
0
 
jessc7Commented:
Look for the "short_open_tag" directive in your php.ini. Change it to a value of "1" to turn it on. You may need to restart Apache.

http://www.php.net/manual/en/ini.core.php.

http://www.tomjepson.co.uk/tutorials/35/enabling-short-tags-in-php.html
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
jessc7Commented:
Here is a tip on finding your php.ini:

http://www.geeklog.net/faqman/index.php?op=view&t=53
0
 
jessc7Commented:
If you want to display errors without changing your php.ini file, use the following to override in the page scope:

<?php
ini_set('display_errors', 1);
?>
0
 
mattibuttCommented:
Hi
I use the 1an1 server with centos are you using plesk if you are then enable php short tag it worked fine as far I remember I didn't have to change anything
0
 
Ray PaseurCommented:
Add this to the top of all the scripts that are involved in the process.  Then run it again and tell us what output you received.
<?php
ini_set('display_errors', TRUE);
error_reporting(E_ALL);

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now