Tolong pilih kategori sesuai, jenis posting (diskusi atau bukan) dan sertakan tag/topik yang sesuai seperti komputer, java, php, mysql, dll. Promosi atau posting tidak pada tempatnya akan kami hapus!
- Bagi Anda yang ingin mendaftar, baca link berikut:
http://diskusiweb.com/discussion/50491/how-to-registrasi-diskusiweb-com-baca-ini-terlebih-dahulu
- Cara menyisipkan kode program supaya tampil rapi dan terformat dengan baik di diskusiweb.com: http://www.diskusiweb.com/discussion/50415/cara-menyisipkan-kode-program-di-diskusiweb-com
- Cara posting gambar/image di post Anda: http://www.diskusiweb.com/discussion/47345/cara-menyisipkan-menyertakan-image-pada-posting/p1

kok link nya ndak bisa jalan ya????

mau nanya lagi nieh, tadi pagi saya buat hosting ma domain di phpnet.us.... web nya kok ndak jalan seperti waktu di localhost padahal database nya juga sudah saya upload, yang tampil cuman halaman index terus, link-linknya yang musti ke halaman lain kok ndak bisa jalan ya, kira-kira problemnya apa nieh...

bisa dilihat di http://ambulan.phpnet.us

http://te.ugm.ac.id/~pendadaran/

jadi bingung kok ndak bisa?????

Comments

  • Terus cara ngatasinya gimana mas goku?
  • Kayaknya masalah register global. Register global di hosting di set off
  • Ya di halaman yang memerlukan variabel $id dan $type
  • Sebenarnya bisa saja di set on lewat htaccess

    Namu untuk security sebaiknya tetap off. Jadi ya harus edit semua filenya :D
  • semua link perlu itu, jadi semuanya ya? kalau cara lain yang ndak perlu merubah script lagi ada ndak mas?
  • Itu script dimasukin dimana mas? di script koneksi database nya ya? apa dimana?

    maklum lagi pertama upload nieh......
  • $id=$_GET
    $type=$_GET
  • wuah bingung mas... mau taruh dimana tuh script, kalo hosting yang bisa nanganin masalah itu ada ndak ya mas?
  • tetep bingung naruhnya :s

    ini script index.php


    <?
    require_once("kontrol_tampilan.php");


    if(!(isset($id))) {
    $id = 1;
    $type = "home";

    }
    ?>

    <html>
    <head>
    <title>zaidan_hadi_06/197135/ET/05094</title>
    <style><!--
    .style6 {
    font-family: "Courier New", Courier, monospace;
    font-size: 11px;
    color: #FFFF00;
    }
    #wrapper {
    background-image: url(images/wrapper_03.gif);
    background-repeat: repeat-y;
    position: relative;
    width: 770px;
    height: auto;
    margin-right: auto;
    margin-left: auto;
    background-position: center center;
    top: 25px;
    }
    body {
    background-color: #ffffff;
    background-image: url(images/logo_ugm.gif);
    margin: 0px;
    }
    #wrapper2 {
    background-image: url(images/downwrapper_03.gif);
    height: 20px;
    width: 770px;
    margin-right: auto;
    margin-left: auto;
    background-repeat: no-repeat;
    top: 0px;
    position: relative;
    }-->
    </style>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <meta Name="Coverage" Content="Worldwide">
    <meta Name="ROBOTS" Content="ALL">
    <meta name="keywords" content="web content management,enterprise web content management,web site content management,web content management software,web content management tool,web site content management tool, php web content management system,web based content management">
    <meta name="description" content="web content management for your website written in php">

    <link rel="stylesheet" href="style.css" type="text/css">
    </head>

    <body>
    <div id="wrapper"><img src="images/topwrapper_03.gif" width="770" height="21" />
    <center>
    <table width="95%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="100%" align="center" valign="center"><img src="images/header.jpg" width="730" height="100" /></td>
    </tr>
    <tr>
    <td height="5"></td>
    </tr>
    </table>
    <table width="95%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="50%" height="18" align="left" bgcolor="#0000FF"><span class="style6"><script language="javascript" type="text/javascript" src="modul/tanggal.js"></script></span></td>
    <td width="50%" height="18" align="right" bgcolor="#0000FF"><a href="logincms.php" class="login">login&nbsp;</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="kontak-kita.php" class="login">Contacts Us</a>&nbsp;</td>
    </tr>
    <tr>
    <td height="5"></td>
    </tr>
    </table>
    <table width="95%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="15%" valign="top" bgcolor="#980098" ><p>
    <? halaman_home(); ?>
    <? menu_primer(); ?>
    </p>
    <p>&nbsp;</p><p><?include("modul\ym.php")?></p><p><?include("modul/deteksi_ip_proxy.php")?></p></td>
    <td width="1%" valign="top" bgcolor="#ffffff">
    </td>
    <td width="84%" valign="top" bgcolor="#FBF3CB">
    <? halaman($type,$id)?>
    </td>
    </tr>
    </table>
    <table width="95%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td height="5"></td>
    </tr>
    <tr>
    <td width="50%" height="15" bgcolor="#0000FF" align="center" valign="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"; width="740" height="15">
    <param name="movie" value="flash/text.swf" />
    <param name="quality" value="high" />
    <embed src="flash/text.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"; type="application/x-shockwave-flash" width="740" height="15"></embed>
    </object></td>
    </tr>
    <tr>
    <td width="100%" align="center" bgcolor="#FFffff" height="10" valign="center"><font color="#000000" size="2">Zaidan Hadi (06/197135/ET/05094)</font></td>
    </tr>
    </table>
    <table width="95%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td><div id="wrapper2"></div></div></td>
    </tr>
    </table>
    </center>
    </body>
    </html>


    nah ditaruh dibagian mana mas?
  • Setelah saya periksa ternyata cukup di index.php saja
  • Coba posting juga kontrol_tampilan.php
  • kontrol_tampilan.php


    <?
    ob_start();
    include("include/koneksi_database.php");
    include("include/seleksi_halaman.php");

    //menampilkan halaman home
    function halaman_home() {

    $sql = "select distinct kategori from menu where hapus='0' and penempatan='home' order by katpos ASC, posisi ASC";
    $query=mysql_query($sql)or die("query pada database tidak berhasil dilakukan. --function halaman_home--kontrol_tampilan.php--<br>". mysql_error());

    while($result=mysql_fetch_array($query)) {
    $kategori=stripslashes($result["kategori"]);

    $sql2="select *from menu where kategori='$kategori' and hapus='0' order by posisi ASC";
    $query2=mysql_query($sql2) or die ("query gagal dilakukan.--function halaman_home//query2//--kontrol_tampilan.php--<br>". mysql_error());

    while($result=mysql_fetch_array($query2)) {
    $id=stripslashes($result["id"]);
    $type=stripslashes($result["jenis"]);
    $nama=stripslashes($result["nama"]);

    $link_home="page$id-$type.htm";

    echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><br>
    <tr>
    <td align='middle' class = 'catmenu'><a href='index.php' class = 'homelink'>$nama</a></td>
    </tr>
    </table><br>";

    } // end while
    }
    }// end function


    // show primary menu
    function menu_primer() {

    $sql = "SELECT distinct kategori FROM menu WHERE hapus='0' and penempatan = 'primary' and enabled = 'yes' ORDER BY katpos ASC, posisi ASC";
    $query = mysql_query($sql) or die("Cannot query the database.--function menu_primer--kontrol_tampilan.php<br>" . mysql_error());

    while($result = mysql_fetch_array($query)) {
    $kategori = stripslashes($result["kategori"]);


    //echo "<b><font size='1' face='Verdana, Arial, Helvetica, sans-serif'>$cat</font></b><br>";
    //echo "<span class='catmenu';'>$cat</span><br>";
    echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>
    <tr>
    <td class = 'catmenu'>&nbsp;&nbsp;$kategori </td>
    </tr>
    </table>

    ";

    $sql2 = "SELECT * FROM menu WHERE kategori = '$kategori' and hapus='0' and enabled = 'yes' ORDER BY posisi ASC";
    $query2 = mysql_query($sql2) or die("Cannot query the database.--function menu_primer//query2//--kontrol_tampilan.php<br>" . mysql_error());

    $num_rows = mysql_num_rows($query2);
    $ic = 0;

    while($result = mysql_fetch_array($query2)) {
    $id = stripslashes($result["id"]);
    $type = stripslashes($result["jenis"]);
    $nama = stripslashes($result["nama"]);

    //echo "<br>";
    $nama = ucfirst($nama);
    $ic = $ic + 1;

    if($ic == $num_rows ){
    $brkk2 = "<br>";
    } else {
    $brkk2 = "";
    }//end if

    $link = "page$id-$type.htm";
    //echo "&nbsp;&nbsp;&nbsp;<a href='index.php?id=$id&type=$type'><font size=1' face='Verdana, Arial, Helvetica, sans-serif'>$name</font></a>";
    echo "&nbsp;&nbsp;&nbsp;<a href='index.php?id=$id&type=$type' class = 'menulink' >$nama</a>";
    echo "<br>";
    echo $brkk2;

    } // end while
    }
    }// end function

    // show secondary menu
    function menu_sekunder() {

    $sql = "SELECT distinct kategori FROM menu WHERE hapus='0' and penempatan = 'secondary' and enabled = 'yes' ORDER BY katpos ASC, posisi ASC";
    $query = mysql_query($sql) or die("Cannot query the database.<br>" . mysql_error());

    while($result = mysql_fetch_array($query)) {
    $kategori = stripslashes($result["kategori"]);


    //echo "<b><font size='1' face='Verdana, Arial, Helvetica, sans-serif'>$cat</font></b><br>";
    //echo "<span class='catmenu';'>$cat</span><br>";
    echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>
    <tr>
    <td class = 'catmenu' >$kategori </td>
    </tr>
    </table>

    ";

    $sql2 = "SELECT * FROM menu WHERE kategori = '$kategori' and hapus='0' and enabled = 'yes' ORDER BY posisi ASC";
    $query2 = mysql_query($sql2) or die("Cannot query the database.<br>" . mysql_error());

    $num_rows = mysql_num_rows($query2);
    $ic = 0;

    while($result = mysql_fetch_array($query2)) {
    $id = stripslashes($result["id"]);
    $type = stripslashes($result["jenis"]);
    $nama = stripslashes($result["nama"]);

    //echo "<br>";
    $nama = ucfirst($nama);
    $ic = $ic + 1;

    if($ic == $num_rows ){
    $brkk2 = "<br>";
    } else {
    $brkk2 = "";
    }//end if

    $link = "page$id-$type.htm";
    //echo "&nbsp;&nbsp;&nbsp;<a href='index.php?id=$id&type=$type'><font size=1' face='Verdana, Arial, Helvetica, sans-serif'>$name</font></a>";
    echo "&nbsp;&nbsp;&nbsp;<a href='index.php?id=$id&type=$type' class = 'menulink' >$nama</a>";
    echo "<br>";
    echo $brkk2;

    } // end while
    }
    }// end function

    //show title

    //menampilkan judul pada munu utama/home

    function judul($id,$type) {
    global $type, $id;


    $sql = "SELECT * FROM $type WHERE id ='$id'";
    $query = mysql_query($sql) or die("Cannot query the database. --penampilan judul--kontrol_tampilan.php<br>" . mysql_error());

    while($result = mysql_fetch_array($query)) {
    $judul = stripslashes($result["judul"]);

    }

    echo $judul;

    }//end function

    //menampilkan gambar
    function img($id,$type) {
    //global $type, $id;


    $sql = "SELECT * FROM $type WHERE id ='$id'";
    $query = mysql_query($sql) or die("Cannot query the database.--penampilan gambar--kontrol_tampilan.php<br> " . mysql_error());

    while($result = mysql_fetch_array($query)) {
    $img = stripslashes($result["img"]);
    $link = stripslashes($result["link"]);

    }

    if($img == "none"){
    $path1 = "";
    } else {

    if($lnk1 == "#"){
    $path1 = "<img src='images/$img'>";

    }else {//end bif
    $path1 = "<a href='$link'><img src='images/$img' border = '0' alt = '$img'></a>";
    }
    }

    echo $path1;

    }//end function

    //menampilkan diskripsi1

    function diskripsi1($id,$type) {
    global $type, $id;


    $sql = "SELECT * FROM $type WHERE id ='$id'";
    $query = mysql_query($sql) or die("Cannot query the database.--penampilan diskripsi1--kontrol_tampilan.php<br>" . mysql_error());

    while($result = mysql_fetch_array($query)) {
    $diskripsi1 = stripslashes($result["diskripsi1"]);

    }

    echo $diskripsi1;

    }//end function

    //menampilkan diskripsi2

    function diskripsi2($id,$type) {
    global $type, $id;


    $sql = "SELECT * FROM $type WHERE id ='$id'";
    $query = mysql_query($sql) or die("Cannot query the database.--penampilan diskripsi2--kontrol_tampilan.php<br>" . mysql_error());

    while($result = mysql_fetch_array($query)) {
    $diskripsi2 = stripslashes($result["diskripsi2"]);

    }

    echo $diskripsi2;

    }//end function

    function nama($id,$type) {
    global $type,$id;

    $sql = "SELECT * FROM $type WHERE id ='$id'";
    $query = mysql_query($sql) or die("Cannot query the database.--penampilan nama--kontrol_tampilan.php<br>" . mysql_error());

    while($result = mysql_fetch_array($query)) {
    $nama = stripslashes($result["nama"]);
    }
    echo $nama;
    }//end function

    function alamat($id,$type) {
    global $type, $id;

    $sql = "SELECT * FROM $type WHERE id ='$id'";
    $query = mysql_query($sql) or die("Cannot query the database.--penampilan alamat--kontrol_tampilan.php<br>" . mysql_error());

    while($result = mysql_fetch_array($query)) {
    $alamat = stripslashes($result["alamat"]);
    }
    echo $alamat;
    }//end function
    ?>

    itu mas kontrol_tampilan.php nya
  • Walah isinya function saja toh


    $id=$_GET;
    $type=$_GET;

    if(empty($id))) {
    $id = 1;
    $type = "home";
    }
  • ternyata bener saran mas yang pertama tadi, tambahin
    $id=$_GET
    $type=$_GET

    udah jalan sekaranga mas, makasih...

    tapi nie nanya lagi ya? <--- kokean tanya :D

    kok tampilan status ym ku ndak tampil ya??, trus gimana biar tampil mas?? kalau pas jalan di localhost n itu connect ke internet tampil tuh :O
  • maksudnya web saya yang mas liat di t4 nya mas tampil ya? trus pendeteksi ip ma proxy nya jalan ndak mas? atau karena saya pake proxy ya?
  • semuanya, kayak kosong.....

    scriptnya kaya gini :


    <?
    echo '<font face="Verdana, Arial, Helvetica, sans-serif" size="1" color="#ffffff">';
    echo "<div align=\"center\"><p>";
    $daftar_idyahoo="bentobentoasyik";
    $proses=explode(",",$daftar_idyahoo);
    reset($proses);
    foreach ($proses as $tujuan) {
    echo ("
    $tujuan<br>
    <a href=\"http://messenger.yahoo.com/edit/send/?.target=$tujuan\">;
    <img border=0 src=\"http://opi.yahoo.com/online?u=$tujuan&m=g&t=2&l=us\"></a><br>";);
    }
    ?>


    gmana ya?
  • terus apa yang salah ya mas, kemungkinannya?
  • Emang nggk ada. Tapi saya paste skripmu jalan.
  • Nggk tampil iconnya?
  • Tempat saya jalan kok

    idymgp5.jpg
  • Loh kok ip ? Katanya YM :D
  • Udah jalan mas, ternyata path"slash"nya kebalik :D

    coba mas script ini, untuk ndeteksi proxy ma ip, jalan ndak ya di t4 nya mas


    <?
    echo "<html><head><title>Mendeteksi IP dan Proxy</title></head>";
    echo '<font face="verdana" size="1">';
    echo '<center>';
    if ($HTTP_X_FORWARDED_FOR)
    {
    echo "Proxy:...<br><br>";
    echo "Terhubung melalui : " . $HTTP_VIA . " - " . $REMOTE_ADDR;
    $ip=$HTTP_X_FORWARDED_FOR;
    echo "<br>IP: <b>$ip</b>";
    }
    else
    {
    echo "No proxy<br>";
    $host = gethostbyaddr($REMOTE_ADDR);
    $ip2=$REMOTE_ADDR;
    echo "IP: <b>$ip2</b>" ;
    echo "&nbsp;($host)";
    echo '</center>';
    }
    ?>

    di punya saya ndak jalan je . . .
  • yang ym nya dah jalan, kebalik "slash" nya :D
Sign In or Register to comment.