LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-01-2004, 11:28 PM   #1
usman
LQ Newbie
 
Registered: Jun 2003
Location: Pakistan
Distribution: Red hat 8.0
Posts: 22

Rep: Reputation: 15
php and linux


ia m trying to run php pages in linux
the problem is when i use <?php somecode ?> it seems to be working fine
but when i use just <? somecode ?> its not working .. notice the difference <?php & <? ..

i have this CMS i want to install ( edge ) and in its code all over <? ?> is used and i cant seem to run it ..

i dont think there shoudl be problem between <?php and <? i have been using both on win platform ...

whats wrong here ?
 
Old 01-01-2004, 11:37 PM   #2
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
In your php.ini, there should be a line that says "short_open_tag = Off", change it to "On" for the short tags to work.

Ian
 
Old 01-02-2004, 02:48 AM   #3
usman
LQ Newbie
 
Registered: Jun 2003
Location: Pakistan
Distribution: Red hat 8.0
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by green_dragon37
In your php.ini, there should be a line that says "short_open_tag = Off", change it to "On" for the short tags to work.

Ian
hey thanks for the help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php apache or php cgi - php learner rblampain Linux - Security 3 12-17-2004 11:10 PM
PHP and Linux mikedeatworld Linux - Software 6 09-02-2004 12:33 PM
Apache 2.0.50 and PHP 4.3.8 on Linux gymsmoke Linux - Software 2 08-05-2004 12:53 AM
linux-php ckb Linux - Software 0 07-16-2003 02:25 AM
how do i get PHP for Linux? ShawnD Linux - Software 0 07-15-2002 08:59 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration