Thread: PHP
View Single Post
Old 2012-02-18, 10:15 AM   #1
jollyhumper
That's what she said
 
jollyhumper's Avatar
 
Join Date: Feb 2012
Location: Norway
Posts: 2,627
Send a message via ICQ to jollyhumper
PHP

HI have this Script:

Code:
  <?php

$INDEXshow="1";

include("h.php");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Test Test Test</title>
</head>


<?php
$date = date('Y-m-d');
if(!is_dir("gallery/".$date)){$date="default";}
function fcheck($name){
if(@file_exists("gallery/".$date."/".$name)){
return "gallery/".$date."/".$name;
}else{
return "gallery/".$date."/".$name;
}}

?>



<body>
<center>
<table width="500" border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td colspan="4" align="center"><h2>Our Honored guest this month:</h2></td>
    </tr>
  <tr>
    <td height="29" colspan="4" align="center"><a href="http://nudes.hegre-art.com/hit/1/5/114279/102/2248" title="Hegre-art @ porn pitstop" target="_Blank"><img src="gallery/hegreLogo.png"></a></td>
    </tr>
  <tr>
    <td align="center"><a href="xpic01.php"><img src="gallery/<?php echo $datetoday; ?>/001.jpg"></a></td>
    <td align="center"><a href="xpic02.php"><img src="gallery/<?php echo $datetoday; ?>/002.jpg"></a></td>
    <td align="center"><a href="xpic03.php"><img src="gallery/<?php echo $datetoday; ?>/003.jpg"></a></td>
    <td align="center"><a href="xpic04.php"><img src="gallery/<?php echo $datetoday; ?>/004.jpg"></a></td>
  </tr>
  <tr>
    <td align="center"><a href="xpic05.php"><img src="gallery/<?php echo $datetoday; ?>/005.jpg"></a></td>
    <td align="center"><a href="xpic06.php"><img src="gallery/<?php echo $datetoday; ?>/006.jpg"></a></td>
    <td align="center"><a href="xpic07.php"><img src="gallery/<?php echo $datetoday; ?>/007.jpg"></a></td>
    <td align="center"><a href="xpic08.php"><img src="gallery/<?php echo $datetoday; ?>/008.jpg"></a></td>
  </tr>
  <tr>
    <td colspan="4" align="center"><p>&nbsp;</p></td>
    </tr>
  <tr>
    <td align="center"><a href="xpic09.php"><img src="gallery/<?php echo $datetoday; ?>/009.jpg"></a></td>
    <td align="center"><a href="xpic10.php"><img src="gallery/<?php echo $datetoday; ?>/010.jpg"></a></td>
    <td align="center"><a href="xpic11.php"><img src="gallery/<?php echo $datetoday; ?>/011.jpg"></a></td>
    <td align="center"><a href="xpic12.php"><img src="gallery/<?php echo $datetoday; ?>/012.jpg"></a></td>
  </tr>
  <tr>
    <td align="center"><a href="xpic13.php"><img src="gallery/<?php echo $datetoday; ?>/013.jpg"></a></td>
    <td align="center"><a href="xpic14.php"><img src="gallery/<?php echo $datetoday; ?>/014.jpg"></a></td>
    <td align="center"><a href="xpic15.php"><img src="gallery/<?php echo $datetoday; ?>/015.jpg"></a></td>
    <td align="center"><a href="xpic16.php"><img src="gallery/<?php echo $datetoday; ?>/016.jpg"></a></td>
  </tr>
  <tr>
    <td colspan="4" align="center"><a href="http://nudes.hegre-art.com/hit.php?s=1&p=5&w=114279&t=0&c=0&cs=0"><img src="http://cdn.newnudecash.com/banners/1/std026_en.jpg" border="0"></a></td>
    </tr>
  <tr>
    <td colspan="4" align="center">&nbsp;</td>
  </tr>
</table>

</td></center>

<?php

$INDEXshow="1";

include("f.php");
?>

</body>
</html>
It does what's needed.

Now I want to use it in a template for some easy galleries.


SO any one know how I can use same techncique to pull text out of a prefedined file, read it and place it on the page?

Mrten
jollyhumper is offline   Reply With Quote