View Full Version : how do i call an image like this...
thediablo
July 15th, 2003, 07:57 PM
<img src="http://www.x.com/carpeta/imagen.php">
i try print(); and echo(); and nothing
please help...
Jubba
July 16th, 2003, 01:15 PM
whats the PHP code?
I do something similar with my footer... more details and I'll be able to help :)
Jubba
July 16th, 2003, 01:20 PM
This might help show you how to do it also...
thediablo
July 16th, 2003, 02:04 PM
what might help me? i see no code :P
but here is al live example
http://www.caseyscam.com/potd/thumb.php
if you put that in
<img src="http://www.caseyscam.com/potd/thumb.php">
it displays the image
Jubba
July 16th, 2003, 03:25 PM
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=26988
sorry forgot the link...
and I don't want to see the live example, I want to see your php code so I can see if you are creating and destroying the image correctly...
thediablo
July 16th, 2003, 03:36 PM
i found some code and mix it with mine..
but the server is marking som erros on the last 3 lines...
<?php
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Pragma: no-cache");
header("Content-type: image/jpeg");
$image_path = "/public_html/domain.com/potd/th/";
$images = array("tnimgrxq.jpg",
"tnimgade.jpg",
"tnimgres.jpg",
"tnimgwer.jpg",
"tnimgpon.jpg",
"tnimgsir.jpg",
"tnimgren.jpg",
"tnimgtoe.jpg",
"tnimgtri.jpg",
"tnimgtra.jpg",
"tnimglin.jpg",
"tnimgler.jpg",
"tnimglom.jpg",
"tnimglot.jpg",
"tnimgwot.jpg",
"tnimgtce.jpg",
"tnimgreq.jpg",
"tnimgron.jpg",
"tnimgrse.jpg",
"tnimgrio.jpg",
"tnimgrmi.jpg",
"tnimgrlo.jpg",
"tnimguon.jpg",
"tnimguli.jpg",
"tnimgoni.jpg",
"tnimgore.jpg",
"tnimgoae.jpg",
"tnimgkie.jpg",
"tnimgkol.jpg",
"tnimgkae.jpg",
"tnimgzin.jpg");
$handle = fopen('$image_path$images[$day_of_month]', "r");
fpassthru($handle);
fclose($handle);
?>
i think is something to do with the $handle and the 2 vars i got there..
thediablo
July 16th, 2003, 03:38 PM
after i put the '' 's in the fopen tag this errors came up.
<br />
<b>Warning</b>: fopen("$image_path$images[$day_of_month]", "r") - No such file or directory in <b>/public_html/domain.com/potd/tnpotd.php</b> on line <b>43</b><br />
<br />
<b>Warning</b>: fpassthru(): supplied argument is not a valid File-Handle resource in <b>/public_html/domain.com/potd/tnpotd.php</b> on line <b>44</b><br />
<br />
<b>Warning</b>: fclose(): supplied argument is not a valid File-Handle resource in <b>/public_html/domain.com/potd/tnpotd.php</b> on line <b>45</b><br />
thediablo
July 16th, 2003, 03:43 PM
and if i put the absolute path besides the VARS in fopen it works perfectly..
maybe it has to do with the fopen($vars,"r");
maybe im putting the vars wrong or something..
thediablo
July 16th, 2003, 03:52 PM
LOL!!!!!!!!!!
NEVERMIND!!!!!!!!1
i figure it out..
i accidentally delete the day_of_the_month VAR!
hahaha
how st0pid
thanks!!!!!1
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.