Work-around for php/sql image-parsing?
Hi,
I have a system for my users to upload pictures. Since several users (about 800) upload pictures in the same category, it is not a doubt that non-unique names would occur often.
Since that would occur, I thought of a good and common way to solve the issue.
I give the pictures random names (of integers).
Then I have a file, a php file, which parses the picture, based on a variable, which then points to the unique ID of the picture.
My problem is:
Since I do this, my <img> tag will look something like this:
[img]picture.php?pid=404[/img]
I know google searches both the filename of the image, as well as the alt property in the <img> tag.
To maximize my hits on my pictures, can I make some "fake" filename in the end of the SRC property of the <img> tag? eg. [img]pictures.php?pid=404&cheattext=<this text will cheat google>[/img]" />
I hope you understand what I mean.. I wonder if a "fake" variable will fool google to think that the filename is the <this text will cheat google>, aswell as the real filename and the PID variable (unique ID for the picture).
I think it's not nice to display too much information in the ALT property in the <img> tag, so I want google to find the picture not only based on the title (which I'll use for ALT), but also on the text for the image (input by user on upload).
An example of how I wonder if I can do it:
The user uploads a picture of a pizza, the pizza picture gets the pid 1919.
When someone browses the site, they see the image, based on the HTML code:
[img]picture.php?pid=1919&cheattext=Check out this pizza man! It's hella dope! 15 inches in diameter!![/img]
Will this image then get hits on searches for "Pizzaking" +"15 inches" on the image search?
should I also "spoof" a fake extension, like .jpg?
eg: [img]picture.php?pid=1919&cheattext=Check out this pizza man! It's hella dope! 15 inches in diameter!!&fakeext=.jpg[/img]
Any comments welcome :)
|