Parse error: syntax error, unexpected 'parts' (T_STRING), expecting ',' or ';'

zoochri

Nuovo Utente
16 Set 2015
1
0
0
Buongiorno a tutti, sono nuovo e spero di essere nella sezione giusta. Mi esce questo errore sulla riga 9 di questo file php e sinceramente non riesco a capire perché , dato che mi sembra che non ci siano errori. Qualcuno riesce a capire il motivo?
Questa è una home page di un sito che richiama altri file php.
Grazie mille in anticipo.
PHP:
<?php

require_once("utils.php");
//
createPageHeader("index.php");

echo "	
	<!--start-parts-->
	<div class="parts-section">
		<div class="container">
			<div class="portfolio-top">
				<div id="portfoliolist">

					<div class="portfolio app mix_all shadow-effect2" data-cat="app" style="display: inline-block; opacity: 1;">
						<div class="portfolio-wrapper">		
							<a href="chi_siamo.php" class="b-link-stripe b-animate-go   swipebox"  title="Image Title">
								<img src="http://forum.mrwebmaster.it/images/menu_chi_siamo2.jpg" /><div class="b-wrapper"><h2 class="b-animate b-from-left    b-delay03 "><img src="http://forum.mrwebmaster.it/images/search.png" alt=""/></h2>
							</div></a>
						</div>
						<div class ="small-text">
							<h5>Chi Siamo</h5>
							<!--<p>Lorem ipsum</p> -->
						</div>
					</div>

					<div class="portfolio photo mix_all shadow-effect2" data-cat="photo" style="display: inline-block; opacity: 1;">
						<div class="portfolio-wrapper">		
							<a href="eventi.php" class="b-link-stripe b-animate-go   swipebox"  title="Image Title">
								<img src="http://forum.mrwebmaster.it/images/menu_eventi.jpg" /><div class="b-wrapper"><h2 class="b-animate b-from-left    b-delay03 "><img src="http://forum.mrwebmaster.it/images/search.png" alt=""/></h2>
							</div></a>
						</div>
						<div class ="small-text">
							<h5>Eventi</h5>
							<!--<p>Lorem ipsum</p> -->
						</div>
					</div>

					<div class="portfolio card mix_all shadow-effect2" data-cat="card" style="display: inline-block; opacity: 1;">
						<div class="portfolio-wrapper">		
							<a href="news.php" class="b-link-stripe b-animate-go   swipebox"  title="Image Title">
								<img src="http://forum.mrwebmaster.it/images/menu_news.jpg" /><div class="b-wrapper"><h2 class="b-animate b-from-left    b-delay03 "><img src="http://forum.mrwebmaster.it/images/search.png" alt=""/></h2>
							</div></a>
						</div>
						<div class ="small-text">
							<h5>News</h5>
							<!--<p>Lorem ipsum</p> -->
						</div>
					</div>

					<div class="portfolio photo mix_all shadow-effect2" data-cat="photo" style="display: inline-block; opacity: 1;">
						<div class="portfolio-wrapper">		
							<a href="galleria.php" class="b-link-stripe b-animate-go   swipebox"  title="Image Title">
								<img src="http://forum.mrwebmaster.it/images/menu_galleria.jpg" /><div class="b-wrapper"><h2 class="b-animate b-from-left    b-delay03 "><img src="http://forum.mrwebmaster.it/images/search.png" alt=""/></h2>
							</div></a>
						</div>
						<div class ="small-text">
							<h5>Galleria</h5>
							<!--<p>Lorem ipsum</p> -->
						</div>
					</div>

					<div class="portfolio photo mix_all shadow-effect2" data-cat="photo" style="display: inline-block; opacity: 1;">
						<div class="portfolio-wrapper">		
							<a href="contattaci.php" class="b-link-stripe b-animate-go   swipebox"  title="Image Title">
								<img src="http://forum.mrwebmaster.it/images/menu_contattaci.jpg" /><div class="b-wrapper"><h2 class="b-animate b-from-left    b-delay03 "><img src="http://forum.mrwebmaster.it/images/search.png" alt=""/></h2>
							</div></a>
						</div>
						<div class ="small-text">
							<h5>Contattaci</h5>
							<!--<p>Lorem ipsum</p> -->
						</div>
					</div>

				</div>
			</div>
			<!--//End-foote-->
			<script type="text/javascript">
				$(document).ready(function() {
				/*
				var defaults = {
				containerID: 'toTop', // fading element id
				containerHoverID: 'toTopHover', // fading element hover id
				scrollSpeed: 1200,
				easingType: 'linear' 
				};
				*/

				$().UItoTop({ easingType: 'easeOutQuart' });

			});
		</script>
		<a href="#" id="toTop" style="display: block;"> <span id="toTopHover" style="opacity: 1;"> </span></a>

	</div>
	</body>
	</html>";
?>
 
Ultima modifica di un moderatore:

filomeni

Moderatore
Membro dello Staff
MOD
14 Mag 2006
1.054
6
38
53
Roseto degli Abruzzi (TE)
www.sitiweb.cloud
Se metti l'html nel php in quella maniera è il minimo che ti restituisce errore...
dopo echo togli il doppio apice e metti il singolo apice ovvio anche sulla chiusura dell'echo.
Ho dato un colpo d'occhio quindi questo potrebbe essere come anche altre cose, intanto prova.
Comunque a mio avviso molto disordinato, vedo anche del javascript all'interno... non credo funzioni.
Ciao
 
Ultima modifica:
Discussioni simili
Autore Titolo Forum Risposte Data
W Parse error: syntax error, unexpected '$result' (T_VARIABLE) PHP 4
G [WordPress] [PHP] Parse error: syntax error, unexpected '$x332cbce1' WordPress 2
U [PHP] Parse error: syntax error, unexpected variabile (T_VARIABLE) PHP 8
G Parse error: syntax error, unexpected '=' PHP 2
gandalf1959 Parse error: syntax error, unexpected T_VARIABLE PHP 2
T Nuova installazione vB: Parse error: syntax error, unexpected T_STRING ... CMS (Content Management System) 0
K Parse error: syntax error, unexpected $end PHP 2
H Parse error: syntax error, unexpected T_SL in /membri/sito/pagina.php... PHP 2
M parse error:syntax error,unexpected T_STRING PHP 2
P Parse error: syntax error, unexpected T_STRING on line 5 PHP 7
J Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in PHP 3
N Parse error: syntax error, unexpected T_VARIABLE Piccolo Aiutino :) PHP 0
L Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' PHP 1
T [PHP] ...Parse error che non c'è... PHP 7
N [PHP] problema Parse error in file configurazione PHP 3
F Aiuto PHP : Parse error PHP 1
L AGORA - Parse error PHP 5
D Parse Error Login PHP 2
L responseXML -> xml parse error XML 2
B Parse error PHP 66
U Parse Error PHP 6
W Area riservata: Parse error PHP 2
G Script Bash linux parse Programmazione 10
K Notifiche con parse.com Sviluppo app per Android 1
neo996sps Non riesco a fare un parse XML con PHP PHP 1
F inviare dati ottenuti da "parse script" PHP 5
S 404 Error " Page not Find" Error SEO e Posizionamento 0
L Error Code: 1215. Cannot add foreign key constraint MySQL 3
M HTTP Status 500 - Internal Server Error. Java 0
A Uncaught Error: jQuery 1
F Uncaught (in promise) Error: 3000ms timeout exceeded Javascript 0
U Campo vuoto data errore Fatal error: PHP 2
W ADODB.Recordset error '800a0bb9' Classic ASP 2
D error text in table HTML e CSS 11
W Microsoft OLE DB Provider for Visual FoxPro error '80040e14' Function name is missing ). Classic ASP 0
W Errore di run-time di Microsoft VBScript error '800a0035' Impossibile trovare il file Classic ASP 0
I Fatal error: Query Failed! SQL: SELECT * INTO OUTFILE PHP 1
G Upload file error Apache 0
A Server Apache immagine not found (ERROR 404) Apache 5
L [PHP] Fatal error: Call to a member function prepare() on null in PHP 0
D [PHP] Fatal error: Class 'COM' not found in C:\..... PHP 6
T MySQL ERROR 1064 MySQL 1
T [PHP] aiuto....Fatal error: Uncaught Error:non riesco a capire PHP 1
C [PHP] Errore "Fatal error: Call to undefined function getTotalUsers()" PHP 2
V [MySQL] You have an error in your SQL syntax MySQL 1
G PHPMailer: SMTP error Gmail PHP 8
I [PHP] Login Facebook SDK returned an error: No URL set! PHP 0
bubino8 [PHP] Query syntax error PHP 6
J [PHP] Recoverable fatal error: PHP 4
momeraths [WordPress] cURL error: problema aggiornamento/installazione plugin WordPress 4

Discussioni simili