I'm not the worlds greatest programmer, I am vastly in experienced. I am having a problem with this code it gives me this error:
Parse error: parse error, unexpected $ in /hsphere/local/home/vontoggl/somethingstudios.com/chriscomic/comic.php on line 216
The problem is, my code is only 215 lines in length, below is the code, but I cut out a bunch of the html lines to make it not so big, and I am fairly sure the html is properly escaped (the quotes).
<?php //NewGoddamn Comic Engine!
$comic = $_POST['comic'];
$cname = stripslashes ($_POST['cname']);
$summery = stripslashes ($_POST['summery']);
$title = stripslashes ($_POST['title']);
$rant = stripslashes ($_POST['rant']);
$now = date("l dS , F Y");
$date = date('n/j/Y');
$fp = fopen ('/hsphere/local/home/vontoggl/somethingstudios.com/index.html', 'w+');
$newsite = "" /* html goes here */ ";
fwrite ($fp, $newsite) ;
fclose ($fp);
$baboo = file_get_contents("/hsphere/local/home/vontoggl/somethingstudios.com/mixed/next.txt");
$next = $baboo + 1;
$jamanga = fopen ("/hsphere/local/home/vontoggl/somethingstudios.com/mixed/next.txt", 'w+');
fwrite ($jamanga, $next);
$hooshi = '.html';
$archname = $next . $hooshi;
$last = $baboo . $hooshi;
$fr = fopen ('/hsphere/local/home/vontoggl/somethingstudios.com/mixed/index.html', 'w+');
if(move_uploaded_file ($_FILES['comic']['tmp_name'], "./mixed/comics/{$_FILES['comic']['name']}")) {
$nami = $_FILES['comic']['name'];
}
$index = "" /* html goes here */ ";
$comsite = " /* html goes here */ ";
fwrite ($fr, $index);
fclose ($fr);
$fg = fopen ('/hsphere/local/home/vontoggl/somethingstudios.com/mixed/archives/index.html', 'r+');
$sanji = file_get_contents ("http://somethingstudios.com/mixed/archives/index.html");
str_replace ("<!-- log -->, <tr><td>$next</td><td><a href=\'../$archname\'>$cname</a></td><td>$summery</td></tr> <!-- log -->, $sanji);
fclose ($fg);
fclose ($fg);
$fc = fopen ('/hsphere/local/home/vontoggl/somethingstudios.com/crossfile.txt', 'w+');
$homes = '1';
fwrite ($fx, $homes);
fclose ($fc);
?>