IT Support, IT Maintenance, CCTV, Intallasi Jaringan LAN / FO / Wireless, Pemasangan Wifi, Networking, Wifi, Router Mikrotik.

ScreenShot106Tunick service membuat web gratisan untuk menyimpan gambar-gambar yang di posting di blog yaitu news.putunik.com ini bertujuan agar load blog Algorimanew (news.putunik.com) bisa lebih cepat,
berikut ini beberapa scrtip yang di pergunakan untuk menampilkan gambar pada imageserv.tk jadi gambar yang di host di hosting tersebut bisa juga di access melalui url imageserv.tk,

langsung saja berikit ini beberapa source yang di pergunanakan untuk halaman yang secara otomatis meng gendrit link, dan menampilkan gambar pada halaman imageserv.tk

Halaman Utama (Index.php)

<?php
require_once(‘functions.php’);
$title = $_GET[file];
if(!$title)
$title = “Welcome and Image Service”;
?>
<html>
<head>
<title><?php echo $title ?></title>
<link href=”style.css” type=”text/css” rel=”stylesheet”/>
</head>
<body>

<div id=”all”>
<div>
<a href=”http://www.putunik.com”><img src=”http://www.putunik.com/iklan.png” alt=”” width=”445px” /></a><br /><br />
<?php echo $title ?></div>
<div></div>
<div>
<a href=”http://www.putunik.com”><img src=”logo.png” alt=”” width=”350px” align=”center” /></a>
&raquo; Web Design<br />
&raquo; Web Development<br />
&raquo; Web Programming<br />
<br />
<center style=”font-size:24″><b>Contact US</b></center>
&raquo; Putu Nick<br />
&raquo; 0819 1616 2221 / 085 333 767671<br />
&raquo; info@putunik.com<br />
&raquo; www.putunik.com<br />
<center><a href=”ymsgr:sendIM?tunick.kutuh”><img src=”http://opi.yahoo.com/yahooonline/u=tunick.kutuh/m=g/t=14/l=us/opi.jpg” width=”” height=”” /></a></center>
</div>
<div>
<?php
img();
?>
</div>
<div id=”clc”></div>
<div>Design By <a href=”http://www.putunik.com”>Tunick Service</a></div>
</div>

</body>
</html>

Bagian Function (fungsi)

function img()
{
chdir(“Images”);
$cwd = getcwd(); // mengambil current direktory
$dirhandle = opendir($cwd);
while(FALSE !== ($file = readdir($dirhandle)))
{ if(is_file($file)){
if(is_file($file) && substr($file, -4) != “.php” || substr($file, -4) != “.htm” || substr($file, -4) != “html”){
$fsize = ceil(filesize($file)/1024/1024);
echo “<a href=\”Images/$file\”><img src=\”Images/$file\” alt=\”\” width=\”160px\” height=\”160px\” /></a>”;
} }
}
}

 

Kurang lebin seperti itu souce yang di pergunakan sehingga menghasilkan halaman seperti imageserv.tk

 

By Tunick Service

Related Post :


Follow at Facebook

Follow at Instagram

@tunicks

Contact Us »

Email.
  info@putunik.com
  info@tunickservice.com
Hp.
  0819 1616 2221 /
  085 333 767671 /
Adddress.
  Gg. Bangau XI No.33, Batubulan

Our Services »

Internet Wifi
Pemasangan Wifi
IT Maintenance
IT Konsultan
Service Computer/Laptop
Hardware/Software
Networking
Jaringan Komputer
Server Internet
Mikrotik
Access Point

ADS