fatah 0 Report post Posted February 21, 2005 (edited) ni ha~ contoh encrypt php newbie tahap petala langit pertama~baik server side scripting mahupun client side scripting..<HTML> <?php /************************************************************ function mypercentencoded($data) { $buf = ""; for($i =0; $i < strlen($data); $i++) $buf .= sprintf("%%%s",bin2hex($data[$i])); return $buf; } function urlencprint($data, $echo = 1) { $buf = "<script>\ndocument.write(unescape('"; $buf .= mypercentencoded($data); $buf .= "'));\n</script>\n"; if($echo) echo $buf; return $buf; } $author = "fatah[at]myseq[dot]com"; urlencprint(<<<EOD <HEAD><TITLE>Client Side Code Secured by fatah</TITLE> <script> // TODO </SCRIPT> </HEAD>\n <BODY> <CENTER> <h1>Client Side Code Secured by</h1><br/> {$author}<br/> </CENTER> </BODY>\n EOD ); ***********************************************************/ eval( stripslashes( base64_decode( "ZnVuY3Rpb24gbXlwZXJjZW50ZW5jb2RlZCgkZGF0YSkNCnsNCgkkYnVmID0gXCJcIjsNCgl". "mb3IoJGkgPTA7ICRpIDwgc3RybGVuKCRkYXRhKTsgJGkrKykNCgkJJGJ1ZiAuPSBzcHJpbn". "RmKFwiJSUlc1wiLGJpbjJoZXgoJGRhdGFbJGldKSk7DQoJcmV0dXJuICRidWY7DQp9DQoNC". "mZ1bmN0aW9uIHVybGVuY3ByaW50KCRkYXRhLCAkZWNobyA9IDEpDQp7DQoJJGJ1ZiA9IFwi". "PHNjcmlwdD5cXG5kb2N1bWVudC53cml0ZSh1bmVzY2FwZShcJ1wiOw0KCSRidWYgLj0gbXl". "wZXJjZW50ZW5jb2RlZCgkZGF0YSk7DQoJJGJ1ZiAuPSBcIlwnKSk7XFxuPC9zY3JpcHQ+XF". "xuXCI7DQoJaWYoJGVjaG8pIGVjaG8gJGJ1ZjsNCglyZXR1cm4gJGJ1ZjsNCn0NCg0KJGF1d". "GhvciA9IFwiZmF0YWhbYXRdbXlzZXFbZG90XWNvbVwiOw0KDQp1cmxlbmNwcmludCg8PDxF". "T0QNCg0KPEhFQUQ+PFRJVExFPkNsaWVudCBTaWRlIENvZGUgU2VjdXJlZCBieSBmYXRhaDw". "vVElUTEU+DQo8U0NSSVBUPg0KLy8gVE9ETw0KPC9TQ1JJUFQ+DQo8L0hFQUQ+XFxuDQo8Qk". "9EWT4NCjxDRU5URVI+DQo8aDE+Q2xpZW50IFNpZGUgQ29kZSBTZWN1cmVkIGJ5PC9oMT48Y". "nIvPg0KeyRhdXRob3J9PGJyLz4NCjwvQ0VOVEVSPg0KPC9CT0RZPlxcbg0KDQpFT0QNCik7" ) ) ); ?> </HTML>salam ceria Edited February 21, 2005 by fatah Share this post Link to post Share on other sites
mimosa 0 Report post Posted March 1, 2005 Assalamualikum...saya ni member baru... nak tanya sikit la pasal PHP ni.... maklum la budak baru belajar ni....saya nak tanya pada sesapa yang expert dan ada pengalaman... sekarang ni saya tgh belajar2 buat php.. dah install xampp.... bila nak test php.. tetiba dia kuar page tu kejap je lepas tu browser terus killed/terminated... both kat IE dan Netscape, sama je... tak tau la mugkin ada setting yang tak betul kot...lagi satu, saya tak paham satu step ni.. "Must I connect to the internet to use XAMPP? NO! XAMPP uses a proxy server ... Please configure your browser to go around local addresses. XAMPP uses a firewall ... So open port 80 (HTTP) and 3306 (MySQL) for internal connections."macamana naksetup proxy tu? kalau HTTP=80 tau la kot.. tapi kalau MySQL=3306 tak adaa pula kat proxies setting tu... Share this post Link to post Share on other sites
kami24 0 Report post Posted March 7, 2005 hai.....saya ni baru jer belajar php ni.saya buat satu sistem dalam php/mysql. dalam sistem ni saya upload file. masalahnya ialah bila saya nak retrieve balik fail yang saya upload untuk dibuka atau disimpan tetapi tak boleh.lagi satu masalah saya ialah multple select dimana field yang saya select tu dan value field itu akan simpan dalam table dimana row akan bertambah dalam table itu bedasarkan multiple select dalam select box itu.sesiapa boleh bantu saya. penting sangat. sekian terima kasih. Share this post Link to post Share on other sites
cade 0 Report post Posted June 28, 2005 (edited) aku pakai easy php, EASY PHP senang gaks pakai nih jer, takyah nak pikir² pasal mysql, sbb dah ader sumer dah.. pasal nak connection antara mysql ngan php pon senang.. kat webmonkey boleh ajar sumer.. ←aku just downloaded easy php nih(version 1.8)..Lepas install benda nih, boleh ker kiter just terus start develop laman web with extension .php. Pastuh access htp://localhost/test.phpEasyPHP nih include kan sumer sekali ker, i mean, Apache, php, mySQL dah siap ada kat dalam tu ker???Adakah kite kena uninstall IIS and mySQL sekali. Sebab aku ada install mySQL(ver 4.0.9) kat winXPSP2. Pastuh aku guna DBManager untuk manage database yg ada kat dalam mySQL.P/S: Aku tak sempat nak explore benda nih lagi.... Edited June 28, 2005 by cade Share this post Link to post Share on other sites
gulhalim 0 Report post Posted July 1, 2005 aku ada masalah dengan phpnuke. 1 selepas aku install phptraid dan copy fail phpnuke ke htdocs,create databasa dan open fail nuke.sql apabila aku buka http://localhost aku hanya nampak yang ada dekat htdosc kau orang tahu tak apa yang aku perlu buat Share this post Link to post Share on other sites
cade 0 Report post Posted July 2, 2005 (edited) 1) Camna nak paging kan dalam php...ada sample website yang dapat tunjuk tutorial utk ni tak????2)Apa maksud undefined index dalam php?Minta expert2 dlm forum untuk tunjuk ajar Edited July 4, 2005 by cade Share this post Link to post Share on other sites
cade 0 Report post Posted July 5, 2005 ala hai....tak da sapa berminat utk bantu ker? Takpa la .... lupakan msg kat atas nih... ni ha ada soalan baru... 1)camna nak gunakan text/gambar yg dapat berfungsi sama seperti button utk form. Aku ada cuba tapi takda idea camna nak kasi dia send sume string yg ada kat dalam form?thanks Share this post Link to post Share on other sites
dekzorro 0 Report post Posted July 6, 2005 ala hai....tak da sapa berminat utk bantu ker? Takpa la .... lupakan msg kat atas nih... jgn le cedihhh...tak metal lerr... Share this post Link to post Share on other sites
cade 0 Report post Posted July 6, 2005 kalo tidak, nanti takda respon..... Share this post Link to post Share on other sites
cade 0 Report post Posted July 13, 2005 aku ada satu script nak display date and time, aku nak papar kan dia sebiji macam putera.com buatcontoh:kalo user post a msg pada hari ini, date and time will display "today"...and also kalo user tu baru 2 jam lepas post entry, php akan display "2 hours ago"...mcm mana nak bina algo dia dlm php?if (date()==$row['masa']) echo "today";setakat ni jer aku dpt pikir kan dulu...sbb utk yg lain tu aku dah hadap berpuluh puluh kali kegagalan.... Share this post Link to post Share on other sites
dekzorro 0 Report post Posted July 18, 2005 waaa..ko betul² PHP fanatik la..hehehebaguss..keep on babeh.. Share this post Link to post Share on other sites