Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 13-05-2002, 03:48 PM
Novice Webmaster
 
Join Date: Jul 2001
Location: Kuala Lumpur
Posts: 20
Rep Power: 0
tedbundyjr is on a distinguished road
Send a message via AIM to tedbundyjr Send a message via Yahoo to tedbundyjr
Post Write Secure Scripts with PHP 4.2!

i've found one intresting article regarding new feature on php 4.2.

here's some intro about it.

For the longest time, one of the biggest selling points of PHP as a server-side scripting language was that values submitted from a form were automatically created as global variables for you. As of PHP 4.1, the makers of PHP recommended an alternate means of accessing submitted data. In PHP 4.2, they switched off the old way of doing things! As I'll explain in this article, these changes have been made in the name of security. Together, we'll explore the new features of PHP for handling form submissions and other data, and how they can be used to write more secure scripts.

more info
__________________
trashlyme®
tedbundyjr.com

Last edited by tedbundyjr; 13-05-2002 at 03:54 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 13-05-2002, 05:37 PM
Senior Webmaster
 
Join Date: Jul 2001
Location: OCed
Posts: 252
Rep Power: 95
malayneum is on a distinguished road
i'm just testing it yesterday ... yes based on that article :P

basically there is nothing to worry about ... just add some simple variable to your old script, it will compatible with php 4.2.0 (afaik).

something that interest me is, we actually can choose how to read the variable that send from browser ... either $_request, $_get, or $_post ... in this way if we use $_post['somevalue']; people cannot submit the data via inline url (am i right ?) eg domain.com?xx=xx ... php dont read that because we choose to read from form that use post method. that way we can force user to use form (haha .. i like this!)

ps : it isn't actually made for us to choose ... it's for security reason i just use the word "choose" because i feel it like that.
__________________
I can't affod to have a signature here, can somebody sponsor me a signature ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 18-05-2002, 08:38 PM
Novice Webmaster
 
Join Date: Nov 2001
Location: MLK
Posts: 94
Rep Power: 87
r0kawa is on a distinguished road
Send a message via Yahoo to r0kawa
aku rasa sama jer, dalam konsep secure programming, aku nengok dalam kevin yank punya tips, kurang lagi.

Cuba nengok, kalau kita guna data dari get method pun

contoh url tu

bla.com/index.php?bla=ayam

dalam file index.php

<?php

$bla = "kucing";

$sql = "insert into bla values (data) values ('$bla')";

?>

tetap masukkan data $bla = "kucing";


aku pun kurang pasti, time bila dia unsecure, ada sapa2 boleh tunjukkan aku tak?

ohhh.. ada satu artikel lagi best mengenai security dalam programming

http://softwaredev.earthweb.com/scri...918141,00.html

Last edited by r0kawa; 18-05-2002 at 08:47 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 18-05-2002, 08:47 PM
Senior Webmaster
 
Join Date: Jul 2001
Location: OCed
Posts: 252
Rep Power: 95
malayneum is on a distinguished road
aku pun tatau ... tapi maybe dia jadik unsecure bila user yg write script tuh terus jerk coding tanpa pikirkan soal security dia .. mcm phpbb yg boleh masuk admin page ... phpnuke yg bleh change admin password .. etc etc.

mcm contoh yg kevin yank tunjuk tuh ... for the first time aku coding .. aku tak pakai cara tuh .. so kevin tuh just gunakan coding tuh sebagai contoh utk menunjukkan betapa unsecurenya nya jerlah ...

itulah pendapat aku.
__________________
I can't affod to have a signature here, can somebody sponsor me a signature ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freelance write for article re-write project neverknow1 Looking To Hire 3 07-10-2007 10:55 AM
Write a Slogan, Win a Tee Shirt TheEditor Other Webmaster-related Services and Promotion 0 23-12-2006 01:26 AM
Write To A File koisempoi Website Programming 3 07-05-2005 06:15 PM
How to write a privacy statement ? lcf Mamak Stall 2 27-04-2005 10:30 AM
I Write Free PHP Script! lcf Job Vacancies 11 02-03-2004 04:12 PM



All times are GMT +8. The time now is 08:21 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60