You are here: intersesting problem « All PHP « IT news, forums, messages
intersesting problem

Posted by steve on 06/05/07 13:20

Hi,

I'm using php 5 zend and oracle.


I get a picture into the page using:

<img src="dopic.php?image=REPLIC100450797">



in my dopic.php , which incidentally took several days to get working.
I have:


<?php
//DO NOT ADD ANYTHING TO THIS OR REMOVE IT OR ELSE THE PICTURES WILL BREAK!!
//EVEN AN "INCLUDE" WILL MESS IT UP
//include('SitePHP/buildXHTML.php'); // our call out library


if (!isset($_GET['image'])) {
die();
}
else{
$image = $_GET['image'];
$db_conn = OCILogon("zzzzzzz", "zzzzzzzzz", "zzzzzzz");
if ( ! $db_conn ) {
echo "Unable to connect: " . var_dump( OCIError() );
die();
}
$cmdstr = "select THUMB_NAIL from MASTERS.PLUGS where
rep_index='".$image."'";
$parsed = OCIParse($db_conn, $cmdstr);
OCIExecute($parsed, OCI_DEFAULT);
// header ("Pragma: no-cache\n");
header("Content-type: image/jpg");
OCIFetch($parsed);
echo(ociresult($parsed, "THUMB_NAIL")->load());
OCILogoff($db_conn);

}
?>


but i find even if i add "include('SitePHP/buildXHTML.php'); " at the start
of the code , then the routine stops working. ( no errors , but i suspect
the content is messed up, even if the include file is empty)

any ideas



Steve

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация