PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Is it possible to use a http address as a variable?
I am entirely new to PHP and I am wanting to make it a bit easier to update information.
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Images cannot be sent in the same data stream as HTML. Require() will read and attempt to interpret the file given to it as PHP. Since an image clearly isn't a PHP file, you may want to use something else.
have also tried that function and doesn't seem to be working either. Don't know whether it is because of the <img tag or not. Can php be put in an img tag?
Obviously i am using firefox intially to test the page but when i go onto copy image location this is what comes up file:///f:/Web%20Stuff/Ebay%20Templates/%3C?php%20echo%20$titledescription;%20?%3E instead of the image location listed in the variable.
Is this file being processed by PHP? "echo" is one of the most basic and fundamental constructs of PHP. If it doesn't work, you've got something screwy.
If you view the source of the page this is in, do you see the PHP code? If so, the file isn't being processed by PHP.
D3Z wrote:Obviously i am using firefox intially to test the page but when i go onto copy image location this is what comes up file:///f:/Web%20Stuff/Ebay%20Templates/%3C?php%20echo%20$titledescription;%20?%3E instead of the image location listed in the variable.
That would tell me that you aren't viewing the files through a web server. Have you installed Apache or IIS or some other web server?