Solved

PHP Shorthands are not working ...

Posted on 2011-02-13
7
303 Views
Last Modified: 2012-05-11
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
Comment
Question by:el123
7 Comments
 
LVL 4

Expert Comment

by:JayDiablo
ID: 34884900
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
 

Author Comment

by:el123
ID: 34885047
yes I've access to linux server ... what to look and where to look? please guide, thanks.
0
 
LVL 16

Accepted Solution

by:
jessc7 earned 333 total points
ID: 34885136
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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 16

Expert Comment

by:jessc7
ID: 34885147
Here is a tip on finding your php.ini:

http://www.geeklog.net/faqman/index.php?op=view&t=53
0
 
LVL 16

Assisted Solution

by:jessc7
jessc7 earned 333 total points
ID: 34885154
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
 
LVL 11

Expert Comment

by:mattibutt
ID: 34886106
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
 
LVL 108

Assisted Solution

by:Ray Paseur
Ray Paseur earned 167 total points
ID: 34888081
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

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How search webpage "viewable text" only 1 30
Phone Dialer 5 38
Do we need servers??? 5 138
php ssh2_scp_send 1 10
Creating and Managing Databases with phpMyAdmin in cPanel.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now