Jump to content


Photo

How do I get apache to recognize <? instead of just <?php *SOLVED*


  • Please log in to reply
9 replies to this topic

#1 Atomic Taco

Atomic Taco
  • Members
  • Pip
  • Newbie
  • 8 posts
  • LocationWA State

Posted 15 May 2006 - 05:37 AM

Title & description pretty much sums it up.


Thanks for your help.



#2 jeremywesselman

jeremywesselman
  • Members
  • PipPipPip
  • Advanced Member
  • 154 posts
  • LocationIndependence, KY

Posted 15 May 2006 - 06:29 AM

You can only change this if you have access to the php.ini file on your server.

If you do, scroll down to about line 80. And you'll see short_open_tag = Off. Change the 'Off' to 'On'. And then save the file and restart your web server.

[!--coloro:#990000--][span style=\"color:#990000\"][!--/coloro--]Jeremy[!--colorc--][/span][!--/colorc--]


#3 Atomic Taco

Atomic Taco
  • Members
  • Pip
  • Newbie
  • 8 posts
  • LocationWA State

Posted 15 May 2006 - 04:32 PM

Thanks. I'm changing this on my testing server which is my own personal PC so I'll have access.

Now where'd that SOLVED button go?

#4 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 15 May 2006 - 04:44 PM

I wouldn't do that if I where you. Get in the habbit of using the correct tags. Most shared hosts dont support short tags. It makes working with xml that little bit more difficult, and they are depricated.

#5 Atomic Taco

Atomic Taco
  • Members
  • Pip
  • Newbie
  • 8 posts
  • LocationWA State

Posted 15 May 2006 - 06:49 PM

Oh, I always code with <?php, but I was trying to get a third party script to work that had over 100 files that I didn't want to go through and fix.



#6 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 15 May 2006 - 11:40 PM

Ever heard of sed and awk?

#7 Atomic Taco

Atomic Taco
  • Members
  • Pip
  • Newbie
  • 8 posts
  • LocationWA State

Posted 16 May 2006 - 12:20 AM

[!--quoteo(post=374154:date=May 15 2006, 04:40 PM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ May 15 2006, 04:40 PM) View Post[/div][div class=\'quotemain\'][!--quotec--] Ever heard of sed and awk? [/quote]
I'm on Windows, so, no



#8 trq

trq
  • Staff Alumni
  • Advanced Member
  • 31,041 posts

Posted 16 May 2006 - 01:18 AM

Find and replace then?

#9 Atomic Taco

Atomic Taco
  • Members
  • Pip
  • Newbie
  • 8 posts
  • LocationWA State

Posted 16 May 2006 - 01:29 AM

[!--quoteo(post=374170:date=May 15 2006, 06:18 PM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ May 15 2006, 06:18 PM) View Post[/div][div class=\'quotemain\'][!--quotec--] Find and replace then? [/quote]
That works, but on all the programs I know you have to open each file one at a time and perform the find/replace.



#10 toplay

toplay
  • Staff Alumni
  • Advanced Member
  • 973 posts

Posted 16 May 2006 - 02:21 AM

[!--quoteo(post=374173:date=May 15 2006, 06:29 PM:name=Atomic Taco)--][div class=\'quotetop\']QUOTE(Atomic Taco @ May 15 2006, 06:29 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
That works, but on all the programs I know you have to open each file one at a time and perform the find/replace.
[/quote]
UltraEdit-32 editor does search and replace in files (even in sub directories). You can download the trial version and get it done.

[a href=\"http://ultraedit.com/index.php?name=Content&pa=showpage&pid=10\" target=\"_blank\"]http://ultraedit.com/index.php?name=Conten...showpage&pid=10[/a]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users