Author Topic: [SOLVED] <? tag not working..  (Read 505 times)

0 Members and 1 Guest are viewing this topic.

Offline ~n[EO]n~Topic starter

  • Devotee
  • Posts: 725
    • View Profile
[SOLVED] <? tag not working..
« on: October 03, 2007, 04:27:12 AM »
hi all;

i had updated my PHP to 5.2 and my <? tag is not working , it was working before. There are lot of pages so making <? to <?php got time consuming and i changed the setting in php.ini file

short_open_tag = on

it was off and i changed it to on but it is still not working, i restarted my apache and my pc too, but it still does not work,

any help

Offline MasterACE14

  • Addict
  • Posts: 2,645
  • Gender: Male
  • Programming, the art of combining math and logic.
    • View Profile
    • Crikey Games Pty Ltd
Re: <? tag not working..
« Reply #1 on: October 03, 2007, 04:28:46 AM »
try turning it back off, then restart Apache, then turn it back on, then restart Apache.
Why is hashing a hash bad practice?
Quote from: Zane
A business person’s best customers are always using the cheapest piece of shit computer out there. I don’t have the sources to back it up, but I’d like to say it’s a proven fact.
Quote from: requinix
Use objects when they make sense and functions when they don't.
Crikey Games Pty Ltd | Realm Battles Classic
It's too big a world to be in competition with everyone.  The only person who I have to be better than is myself. ~Harry Morgan

Offline ~n[EO]n~Topic starter

  • Devotee
  • Posts: 725
    • View Profile
Re: <? tag not working..
« Reply #2 on: October 03, 2007, 04:30:41 AM »
nah... didn't work for me, any other solution  :(

Offline shocker-z

  • Devotee
  • Posts: 1,257
    • View Profile
Re: <? tag not working..
« Reply #3 on: October 03, 2007, 05:15:00 AM »
open a file in dreamweaver and then (ctrl+f) to find, select "find in" and choose folder (now choose the folder your searching) and replace <? with <?php and it will go through all files and find and replace <? with <?php.

It's always recomended to use <?php instead of <? anyway.

Liam
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge

Offline jaymc

  • Addict
  • Posts: 1,528
  • Gender: Male
    • View Profile
    • SEO Agency
Re: <? tag not working..
« Reply #4 on: October 03, 2007, 05:22:24 AM »
Try get a default php.ini file and put the short tags to on, dont edit anything else

use that and restart apache..

Does it work then?

Just trying to eliminate it being a config error somewhere because why wouldnt it work fresh out the box as they say providing php.ini hasnt been tampered with exclusively
I would love to change the world, but they won't give me the source code

SEO Agency

Offline ~n[EO]n~Topic starter

  • Devotee
  • Posts: 725
    • View Profile
Re: <? tag not working..
« Reply #5 on: October 03, 2007, 05:36:53 AM »
Yeah now working, it was a silly mistake from my side  ;D

Code: [Select]
short_open_tag = on;
it should have been

Code: [Select]
short_open_tag = on
One extra semicolon was causing the problem, anyway thanks to all of you guys ;)

Offline jaymc

  • Addict
  • Posts: 1,528
  • Gender: Male
    • View Profile
    • SEO Agency
Re: [SOLVED] <? tag not working..
« Reply #6 on: October 03, 2007, 05:40:19 AM »
Syntax issues, I hate them !
I would love to change the world, but they won't give me the source code

SEO Agency