Forum Index » Technology » Programming

» PHP dot Net

 
Author Message
ZeDs
Junior Member


ZeDs's Userpic
Sat, 09 Jun 07 23:37 - Subject: PHP dot Net  

PHP dot Net

ZeDs
Offline Send Message Email Homepage Report Quote
Ardni
Junior Member


Ardni's Userpic
Sat, 16 Jun 07 22:33 - Subject: Re: PHP dot Net  

<?php
echo "PHP dot NET";
?>

.::Ardni.com::.
Offline Send Message Email Homepage Report Quote
Ardni
Junior Member


Ardni's Userpic
Sun, 01 Jul 07 10:17 - Subject: Re: PHP dot Net  

Untuk menampilkan waktu WIB (GMT +7):

<?php

$timezone = +7;
$time = gmdate("D, d M y H:i", time() + ($timezone * 3600));
echo$time;

?>



[Last edited by Ardni on Sun, 06 Jan 08 22:29, edited 2 times in total]

.::Ardni.com::.
Offline Send Message Email Homepage Report Quote
Ardni
Junior Member


Ardni's Userpic
Sun, 06 Jan 08 23:09 - Subject: Re: PHP dot Net  


.::Ardni.com::.
Offline Send Message Email Homepage Report Quote
ZeDs
Junior Member


ZeDs's Userpic
Tue, 08 Jan 08 15:08 - Subject: Re: PHP dot Net  

Test bbcode lg..

Enesis.org
Enesis.org
Enesis.org

ZeDs
Offline Send Message Email Homepage Report Quote
RAMD
Newbie Member


RAMD's Userpic
Tue, 13 May 08 20:24 - Subject: Re: PHP dot Net  

Jd mksd thread ini apa neh ? php dot net ? Apa descriptionnya?
Offline Send Message Email Homepage Report Quote
raden
Junior Member


raden's Userpic
Fri, 20 Jun 08 20:49 - Subject: Re: PHP dot Net  

test
Offline Send Message Email Report Quote
grazzer
Newbie Member


grazzer's Userpic
Thu, 26 Jun 08 12:37 - Subject: Re: PHP dot Net  

#Buat bikin Kalkulator,
simpan dgn nama "calculator.php"#
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf=8"> <title>GRAZZER Calculator</title></head><body>KALKULATOR<br><form action="./test.php" method="post">
Angka 1:<br><input type="text" name="a" format="*N"/>
<select name="option">
<option value="s">+
<option value="v">-
<option value="u">&#215;
<option value="d">&#247;
</select>
<br>
Angka 2:<br><input type="text" format="*N" name="b"><br>
<input type="submit" value="=">
</form> <?
/*Powered by GRAZZER site grazzer.0fees.net*/
$a=$_POST['a']; $b=$_POST['b'];
$v=($a-$b);
$s=($a+$b);
$u=($a*$b);
$d=($a/$b);
echo "<b> Hasilnya: ", $$_POST['option'], "</b><br>n";
echo '<br><a href="/index.php">Main menu</a>';
?> <br> &copy; grazzer 2008
</body></html>
Offline Send Message Email Report Quote
ZeDs
Junior Member


ZeDs's Userpic
Thu, 26 Jun 08 14:37 - Subject: Script utk hitung persamaan linear  

Buat ngitung persamaan linear.
Boleh nyomot dr blog org, cm lupa alamatnya..

<html>
<head>
<title>Solusi Persamaan Linear</title>
</head>
<body>
<center>
<h2>Solusi Persamaan Linear</h2>
<?php
if ($_POST['langkah2']) {

$n = $_POST['n'];
for ($l=1; $l<=$n; $l++) {
for ($c=1; $c<=($n+1); $c++) {
$inp = "a$l$c";
$a[$l][$c]= $_POST[$inp];
}
}

for ($k=1; $k<$n; $k++) {
if ($a[$k][$k] != 0) {
$akk = $a[$k][$k];
for ($j=($k+1); $j<=($n+1); $j++) {
$a[$k][$j] = $a[$k][$j]/$akk;
for ($i=($k+1); $i<=$n; $i++) {
$a[$i][$j] = $a[$i][$j] - ($a[$i][$k] * $a[$k][$j]);
}
}
}
}

if ($a[$n][$n] != 0) {
$x[$n] = ($a[$n][$n+1])/$a[$n][$n];
} else {
$x[$n] = 0;
}

for ($k=($n-1); $k>=1; $k--) {
$x[$k] = $a[$k][$n+1];
for ($j=($k+1); $j<=$n; $j++) {
$x[$k] = $x[$k] - ($a[$k][$j] * $x[$j]);
}
}

echo "Solusi untuk persamaan linear tersebut adalah:";
echo "<br />";
for ($z=1; $z <= $n; $z++) {
echo "X<sub>$z</sub> = ". $x[$z] . "<br />";
}
echo "<br />Klik <a href="index.php">disini</a> untuk kembali.";

} else if ($_POST['langkah1']) {
$n = $_POST['n'];

if ($n>0) {
echo "<form action="index.php" method="post">";
for ($l=1; $l<=$n; $l++) {
for ($c=1; $c<=($n+1); $c++) {
echo "<input type="text" size="2" name="a$l$c" />n";
if ($c<=$n) echo "X<sub>$c</sub>";
if ($c<$n) echo " + ";
if ($c==$n) echo " = ";
}
echo "<br />n";
}
echo "<input type="hidden" name="n" value="$n" />
<input type="submit" value="Hitung" name="langkah2" />
</form>";
echo "<br />Klik <a href="index.php">disini</a> untuk kembali.";

} else {
echo "Nilai n harus bilangan asli. Klik <a href="index.php">disini</a> untuk kembali.";
}
} else {
?>
<img src="persamaan.jpg" alt="Persamaan Linear" border="0"><br /><br />
<form action="index.php" method="post">
<strong>Masukkan nilai n<br />n = </strong><input type="text" size="2" name="n">
<input type="submit" value="Lanjut" name="langkah1">
</form>
<?php
}
?>
</center>
</body>
</html>



[Last edited by ZeDs on Thu, 26 Jun 08 15:01, edited 2 times in total]

ZeDs
Offline Send Message Email Homepage Report Quote
Neo
Junior Member


Neo's Userpic
Wed, 17 Sep 08 19:59 - Subject: Re: PHP dot Net  

Wew puyenk amat liat scriptna mas... Ajarin bikin session ma set cookies dunk mas..
Offline Send Message Email Homepage Report Quote
 
  • This topic viewed 4556 times and has 12 post.

    You cannot post new topic
    You cannot post new reply
    You cannot edit your posts
    You cannot delete your posts
    You cannot post attachments
  • 12>»

    Post Reply