What's wrong with this PHP file?

  • Thread starter Thread starter divapig
  • Start date Start date
D

divapig

Guest
I am trying to create a new php file for Coppermine Gallery (to add a custom banner) and I created the file just as several help pages instructed me to but I keep getting "parse" errors. Everytime I fix one I get another one.
Here's what my file looks like:

<?php

echo EOT;

img src="/themes/gallerybanner.jpg" width="125" height="137";

EOT;

?>

I originally had <>s around the img path but it gave me an error so I removed them. If anyone could help I would really appreciate it. I am just learning PHP. Thanks.
 
whats EOT for?..

anyway with your example i cant see why you wanted to use php. But try this.:

<?php
echo "<img src=\"/themes/gallerybanner.jpg\" width=\"125\" height=\"137\"/>";
?>

or

<?php
echo "<img src='/themes/gallerybanner.jpg' width='125' height='137'/>";
?>
 
whats EOT for?..

anyway with your example i cant see why you wanted to use php. But try this.:

<?php
echo "<img src=\"/themes/gallerybanner.jpg\" width=\"125\" height=\"137\"/>";
?>

or

<?php
echo "<img src='/themes/gallerybanner.jpg' width='125' height='137'/>";
?>
 
You need to change it to this:

<?php

echo("<img src=\"/themes/gallerybanner.jpg\" width=\"125\" height=\"137\">);

?>

Output the whole tag, just remember to escape sequence your quotes.
 
You need to change it to this:

<?php

echo("<img src=\"/themes/gallerybanner.jpg\" width=\"125\" height=\"137\">);

?>

Output the whole tag, just remember to escape sequence your quotes.
 
Back
Top