Title: T_STRING error
Last modified: August 31, 2016

---

# T_STRING error

 *  [stelu](https://wordpress.org/support/users/stelu/)
 * (@stelu)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/t_string-error-3/)
 * <?php
    if ($_SERVER[‘QUERY_STRING’] == “topframe”) { echo(“<html><head><meta 
   http-equiv=”Content-Type” content=”text/html; charset=windows-1252″><title>’$
   title'</title></head><body bgcolor=#d3d3d3><div align=center>Se você ver este
   texto e seu site – <i>e não recebeu nenhuma mensagem de pop-ups ou caixas</i>–
   seu site provavelmente será aprovado</div></body></html>”); } else { echo(“<html
   ><head><title>’$title'</title></head><frameset rows=20,* border=0><frame marginheight
   =0 marginwidth=0 scrolling=no noresize border=0 src=./urltest.php?topframe><frame
   marginheight=0 marginwidth=0 scrolling=auto noresize border=0 src=\”$_GET[url]\”
   ></frameset></html>”); } ?>
 * I get error:
    PHP Parse error: syntax error, unexpected T_STRING in /home/mondopro/
   public_html/urltest.php on line 3PHP Parse error: syntax error, unexpected T_STRING
   in /home/mondopro/public_html/urltest.php on line 3
 * Can someone help me?
 * Thanks a lot!

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

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/t_string-error-3/#post-7038384)
 * [http://codex.wordpress.org/Common_WordPress_Errors#Parse_errors](http://codex.wordpress.org/Common_WordPress_Errors#Parse_errors)
 *  [Michael v.d. Berg](https://wordpress.org/support/users/michaelvdberg/)
 * (@michaelvdberg)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/t_string-error-3/#post-7038387)
 * Please check the file urltest.php at line 3. Can you have a check if you have
   all required ‘ and/or ” in this line? Maybe you can put here a part of the code.
   I can have a look at it.
 *  Thread Starter [stelu](https://wordpress.org/support/users/stelu/)
 * (@stelu)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/t_string-error-3/#post-7038414)
 * Thanks for answer!
    This is the complete code:
 * 1.<?php
    2.if ($_SERVER[‘QUERY_STRING’] == “topframe”) { 3.echo(“<html><head>
   <meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″><title
   >’$title'</title></head><body bgcolor=#d3d3d3><div align=center>Se você ver este
   texto e seu site – <i>e não recebeu nenhuma mensagem de pop-ups ou caixas</i>–
   seu site provavelmente será aprovado</div></body></html>”); 4.} else { 5.echo(“
   <html><head><title>’$title'</title></head><frameset rows=20,* border=0><frame
   marginheight=0 marginwidth=0 scrolling=no noresize border=0 src=./urltest.php?
   topframe><frame marginheight=0 marginwidth=0 scrolling=auto noresize border=0
   src=\”$_GET[url]\”></frameset></html>”); 6.} 7.?>

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

The topic ‘T_STRING error’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [T_STRING](https://wordpress.org/support/topic-tag/t_string/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [stelu](https://wordpress.org/support/users/stelu/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/t_string-error-3/#post-7038414)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
