Current location: Hot Scripts Forums » Programming Languages » PHP » php in linux problem


php in linux problem

Reply
  #1 (permalink)  
Old 01-01-04, 11:03 PM
usman usman is offline
New Member
 
Join Date: Jul 2003
Location: Pakistan
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
php in linux problem

i am 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 ...

this doesnt make sense :S
whats wrong here ?
Reply With Quote
  #2 (permalink)  
Old 01-02-04, 01:26 AM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Hi there,

It's not your OS, but PHP configuration in your php.ini.

Check the value of short_open_tag. If it's off, you cannot omit "php" after "<?".

For details, check this out:

PHP.net Misc. Config. Directives
http://ca.php.net/manual/en/configur...directives.php

It seems like you can't ini_set() this value, but you can do so with .htaccess.

But I would just use the non-short format tags than do such. It's good to include "php" for opening tags, especially when you have to work with both PHP and XML (or anything else that uses <? tags). HTH.
__________________
Blavv =|
Reply With Quote
  #3 (permalink)  
Old 01-02-04, 06:59 AM
gwx gwx is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
There are no such thing as ini files in LINUX! ok, check out your /usr/local/bin/php directory. Should be rite there. I've nver gone to the trouble of iinstalling php nonetheless. came preinstalled with my mandrake system.
Reply With Quote
  #4 (permalink)  
Old 01-02-04, 12:53 PM
blaw's Avatar
blaw blaw is offline
Junior Code Guru
 
Join Date: Dec 2003
Location: Vancouver, BC, Canada
Posts: 550
Thanks: 0
Thanked 0 Times in 0 Posts
Good morning,

Quote:
Originally Posted by gwx
There are no such thing as ini files in LINUX!
If that's for my post, I said PHP.INI. I didn't say "check your ini file", etc. Besides if you are not calling this config file "php.ini", what would you call?

I'm not a Linux expert, but I see Linux fellas call it "php.ini", too.

30.15. Configure your php.ini from PHP4 (LINUX.com)
http://www.linux.com/guides/solrhe/S...29sec277.shtml
__________________
Blavv =|
Reply With Quote
  #5 (permalink)  
Old 01-04-04, 07:32 AM
gwx gwx is offline
Newbie Coder
 
Join Date: Dec 2003
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Blaw! Didn't noe linux uses php.ini! linux config files usu. have no extension, or .bin.
Reply With Quote
  #6 (permalink)  
Old 01-04-04, 04:24 PM
SIR-Millar SIR-Millar is offline
New Member
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
There are no such thing as ini files in LINUX
Linux certainly does use php.ini

if your stuck as where to find it, try
Code:
 locate php.ini
Reply With Quote
  #7 (permalink)  
Old 05-15-04, 11:57 AM
phpistasty phpistasty is offline
Newbie Coder
 
Join Date: May 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Yes It Does

Quote:
Linux certainly does use php.ini

if your stuck as where to find it, try

Code: locate php.ini
affirmitive
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with PHP/.htaccess script, when using Internet Explorer digioz PHP 7 07-26-07 11:17 PM
Javascript vs PHP, problem with arrays Chuff JavaScript 0 10-03-03 04:01 AM
managing linux users from php asinclair PHP 0 09-22-03 06:08 AM
Problem with Read from file by PHP Pothik Script Requests 5 09-15-03 08:42 AM
PHP confige problem Cmrdrv PHP 1 08-12-03 07:40 PM


All times are GMT -5. The time now is 07:52 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.