Jump to content

[SOLVED] unexpected T_CONSTANT_ENCAPSED_STRING


jnerotrix

Recommended Posts

I get This Error

 


Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ']' in /www/rack111.com/m/y/t/mytestsite/htdocs/other.php on line 11

 

In This Code

 

<?php

error_reporting(0);

$ip = $_SERVER['REMOTE_ADDR];

$useripdata = '/ip/' . $ip .'.txt';

if (file_exists($useripdata)) {

foreach (file("/ip/' . $ip . '.txt") as $line) {
  echo '$' . $line;
}

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.