T_string eror

Report
-
ac3mark
Posts
13029
Registration date
Monday June 3, 2013
Status
Member
Last seen
October 11, 2019
-
hello
excuseme i have a problem whit this cod:

<link rel='preload' href="https://www.sahandveisy.com/wp-content/themes/betheme/fonts/persian-fonts/fonts/Rezvan.woff" as="font" type="font/woff" crossorigin>

i tried to add this cod to header.php of my site but i recived t_string error
how can resolve this problem?
thank you

1 reply

Posts
13029
Registration date
Monday June 3, 2013
Status
Member
Last seen
October 11, 2019
1624
Well the error code should tell you what line it is on. Check the previous line for a line terminator!! Besides that, have you written a php page before without issues?
i,don,t know here noting writen about what line

this is his picture:

https://drive.google.com/open?id=1rVYWDBbXMBzuNkMSWDsNdKdis-VIWGVt

just error say syntax eror , unexpected t_string

no i haven,t eror before it about other php codes like yoest seo breadcrump,s
ac3mark
Posts
13029
Registration date
Monday June 3, 2013
Status
Member
Last seen
October 11, 2019
1624
It looks as though your PHP isnt PHP.

PHP looks like this:

<?php echo '<p>Hello World</p>'; ?>

SO, if you have not written a hello world that successfully runs, then I would hold of on a header insert, or an include at this point. You are still working on the protocol!
excuseme i can,t uderestand your latest distence my english speaking not very good. what you say about
if it isn,t php i must where copy here?
ac3mark
Posts
13029
Registration date
Monday June 3, 2013
Status
Member
Last seen
October 11, 2019
1624
<?php echo '<link rel=''preload'' href=""https://www.sahandveisy.com/wp-content/themes/betheme/fonts/persian-fonts/fonts/Rezvan.woff"" as=""font"" type=""font/woff"" crossorigin> '; ?>