Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th May 2010, 03:00 AM
BillLee Offline
Registered User
 
Join Date: May 2004
Location: Texas
Age: 70
Posts: 43
linuxfedorafirefox
php shows blank pages on Apache(reopen)

In the thread of the same name, it was suggested that
Remove the space from

<? php

i.e.

<?php

I have just installed a Fedora 12 system. The supplied httpd and php exhibit the "php shows blank pages on Apache" problem that seems to be caused by using "<?" instead of "<?php".

I have several hundred thousand lines of PHP code all written using "<?"

Is there a configuration for Apache that will allow a simple "<?" to operate?

Thanks.

Bill Lee

---------- Post added at 09:00 PM CDT ---------- Previous post was at 08:19 PM CDT ----------

It's a php.ini option.

The distribution sets

short_open_tag=off

even though the documentation three lines earlier in that file says the default is "on".

Regards,

Bill Lee
Reply With Quote
  #2  
Old 10th May 2010, 09:38 AM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
linuxfedorafirefox
Re: php shows blank pages on Apache(reopen)

Default=In absence of an explicit setting. So, if the switch is explicitly set to off, that supersedes its default "on" setting. The distro correctly sets it to off because the short tag is discouraged, so it is appropriate for most users
Reply With Quote
  #3  
Old 10th May 2010, 11:43 AM
BillLee Offline
Registered User
 
Join Date: May 2004
Location: Texas
Age: 70
Posts: 43
linuxfedorafirefox
Re: php shows blank pages on Apache(reopen)

Quote:
Originally Posted by giulix View Post
Default=In absence of an explicit setting. So, if the switch is explicitly set to off, that supersedes its default "on" setting. The distro correctly sets it to off because the short tag is discouraged, so it is appropriate for most users
Perhaps you missed this in my original post:

"I have several hundred thousand lines of PHP code all written using "<?""

Sure as h*** not appropriate for me!
Reply With Quote
  #4  
Old 10th May 2010, 05:53 PM
wojox's Avatar
wojox Offline
Registered User
 
Join Date: Mar 2010
Location: US, Texas
Age: 41
Posts: 46
linuxfirefox
Re: php shows blank pages on Apache(reopen)

So what happens when you set:

Code:
short_open_tag = On
And restart Apache?
__________________
Fedora 16 Desktop Edition
Reply With Quote
  #5  
Old 11th May 2010, 12:53 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
linuxfedorafirefox
Re: php shows blank pages on Apache(reopen)

Quote:
Originally Posted by BillLee View Post
Perhaps you missed this in my original post:
No, i didn't...
Reply With Quote
  #6  
Old 11th May 2010, 01:24 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,105
linuxfedorafirefox
Re: php shows blank pages on Apache(reopen)

And eventually, the short form will go away...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] php shows blank pages on apache elpoch Servers & Networking 2 7th May 2010 03:20 PM
phprojekt on FC8 shows blank pages after installation gwiesenekker Using Fedora 0 28th November 2007 09:29 PM
Apache: browser shows blank screen. weird. jsabarese Servers & Networking 2 2nd June 2006 03:00 PM
DVD Shows Blank? carlwill Hardware & Laptops 9 27th July 2005 05:21 PM


Current GMT-time: 04:08 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat