Jump to content

[SOLVED] unexpected '}', expecting ',' or ';'


jnerotrix

Recommended Posts

I get this error

 

Parse error: syntax error, unexpected '}', expecting ',' or ';' in /www/rack111.com/m/y/t/mytestsite/htdocs/other.php on line 20

 

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;

for ($i=0; $i < $numTimes; $i++) {
echo 'WElcome x$numTimes';
}

echo "<meta http-equiv='refresh' content='$reloadtime' url='index.php'>;"

} else {

 

 

Link to comment
https://forums.phpfreaks.com/topic/135598-solved-unexpected-expecting-or/
Share on other sites

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.