Page 1 of 1

call image into another page?[SOLVE]

Posted: Thu May 24, 2012 3:00 am
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..

Re: call image into another page?

Posted: Thu May 24, 2012 3:20 am
by requinix
It's just an image.

Code: Select all

<img src="whatever the URL for the image is" />

Re: call image into another page?

Posted: Thu May 24, 2012 3:54 am
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:

Re: call image into another page?

Posted: Thu May 24, 2012 6:43 am
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.

Re: call image into another page?

Posted: Thu May 24, 2012 7:35 pm
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.