Title: my-hacks.php &#8211; Parse error
Last modified: August 18, 2016

---

# my-hacks.php – Parse error

 *  [czar21](https://wordpress.org/support/users/czar21/)
 * (@czar21)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/my-hacksphp-parse-error/)
 * 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)

 *  [dansgirl165](https://wordpress.org/support/users/dansgirl165/)
 * (@dansgirl165)
 * [22 years, 1 month ago](https://wordpress.org/support/topic/my-hacksphp-parse-error/#post-50016)
 * 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.

 * 1 reply
 * 2 participants
 * Last reply from: [dansgirl165](https://wordpress.org/support/users/dansgirl165/)
 * Last activity: [22 years, 1 month ago](https://wordpress.org/support/topic/my-hacksphp-parse-error/#post-50016)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
