Hello, I'm making a webpage for my fiancee as a wedding presant (since it happens on the 11th I don't have too much longer to go!)
Well, I'm attempting to load an image inline (i have a photo album of sorts) and i'd liek to have it so that if you click on the image link (such as photos.php?img=/sam/001.jpg) it'll load in the page...
The best example that I have for this would be:
http://design.undergroundnews.com/sam/poetry.php?id=poetry/james/samantha.htm
When I attempt to use the same code for an image on the site I get:
error: parse error, unexpected '=' in /home/virtual/site5/fst/home/design/public_html/sam/photos/03282003/bigimages/untitled1.jpg on line 120
on:
http://design.undergroundnews.com/sam/poetry.php?id=photos/03282003/bigimages/untitled1.jpg
Anyone have any ideas? The code that I'm using to load the poetry inline is:
<?php
if(!$id)
{
// Whatever you want to show if there's not a poem specified.
// Maybe an error message, maybe a graphic, maybe a menu.
include ("includes/include.poetry.htm");
}
else
{
// Include the poem if it's specified, and do whatever else
// you want if a poem is specified
$http = strpos($id, "http");
$ftp = strpos($id, "ftp");
$https = strpos($id, "https");
$dds = strpos($id, "../");
if(is_integer($http) || is_integer($ftp) || is_integer($https) || is_integer($dds))
{
print "I'm sorry, your path has been filtered.";
exit;
}
include($id);
}
?>
Thank you to everyone for your assistance.