• Alright, I’m not God when it comes to this PHP business, but I know the basics…
    So today, I go to install Alex’s Style Switcher hack to see what I can do…
    Create my-hacks.php
    Insert code where necessary.
    Life is grand…
    Until this comes along… Parse error: parse error in /home/httpd/vhosts/danwa/subdomain/czar/httpdocs/my-hacks.php on line 2
    I tried everything… I checked for white space, I manually entered code, I checked, and rechecked, and rechecked code and can’t find anything wrong…
    <?php
    <?php require_once(‘wp-style-switcher.php’); ?>
    <?php wp_style_cookie(); ?>
    ?>
    That’s ALL that’s in my-hacks.php…
    Am I a moron, or is this something that actually doesn’t work for me?

Viewing 1 replies (of 1 total)
  • I had the same problem when I tried installing “wp-grins”. I couldn’t figure out what was causing that error and it was driving me up the wall.
    I did manage to figure out what the problem was. In my case, it was whitespace, but not whitespace before the <?php and or after the ?>. I had a space between the question mark and the php part of it. For some reason, when I went to the Wiki to see the instructions on how to create “my-hacks.php”, I somehow saw a space in between them. Once I took that space out, everything worked fine.
    Don’t know if that will help you, but I thought I’d throw it in here. ??

Viewing 1 replies (of 1 total)
  • The topic ‘my-hacks.php – Parse error’ is closed to new replies.