call image into another page?[SOLVE]

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!

Moderator: General Moderators

Post Reply
User avatar
jayson.ph
Forum Contributor
Posts: 165
Joined: Mon Jan 02, 2012 9:20 am
Location: MP
Contact:

call image into another page?[SOLVE]

Post by jayson.ph »

hi all,

how to call an image that already in another page.. sample like an <?php include "###.php";?> but the difference include is calling the whole page under inside of include. and now for me is i want only to call an image inside the ###.php

Please help if how to do in php..
Last edited by jayson.ph on Thu May 24, 2012 8:07 pm, edited 1 time in total.
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: call image into another page?

Post by requinix »

It's just an image.

Code: Select all

<img src="whatever the URL for the image is" />
User avatar
jayson.ph
Forum Contributor
Posts: 165
Joined: Mon Jan 02, 2012 9:20 am
Location: MP
Contact:

Re: call image into another page?

Post by jayson.ph »

What i mean is how to do in php script? and im trying this code:

Code: Select all

<?php include "images/logo.gif";?>
but not work. :mrgreen:
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: call image into another page?

Post by Celauran »

Are you trying to use PHP to manipulate the image somehow? Why are you trying to do this in PHP? If all you want to do is display the image, you were already given the answer.
User avatar
jayson.ph
Forum Contributor
Posts: 165
Joined: Mon Jan 02, 2012 9:20 am
Location: MP
Contact:

Re: call image into another page?

Post by jayson.ph »

i want to explore my self and php before i go to the real use of php, i know that it can make a simple html code but i want to simplify complicated things.
Post Reply