Current location: Hot Scripts Forums » Programming Languages » PHP » php scripts help


php scripts help

Reply
  #1 (permalink)  
Old 07-27-04, 11:22 AM
kyokusanagi kyokusanagi is offline
New Member
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
php scripts help

I have made a program, and i want to add some securities to it so my program has be authorized before it can be opened. here's wut i did, i made the file name to be the key. in other words, u can only open the file with a authorized file name. now this is the part I need some help, since I'm totally new to php scripts. I want to put a php script on my website as a authorization server (for example, http://mysite.com/auth.php). so when people open the program, it will check the file name with auth.php. so basically i need a php script to store the file name in. i would be appreciated if anyone can help me with that. thx a lot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-27-04, 08:54 PM
infinitylimit's Avatar
infinitylimit infinitylimit is offline
Code Guru
 
Join Date: Jun 2004
Location: Oregon
Posts: 758
Thanks: 0
Thanked 0 Times in 0 Posts
Huh?

Why don't you do what ever sane person does and store the userid and password in mysql database?
__________________
Hawk Enterprises -- Home to PHP games, open-source code, tutorials and free downloads
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-31-04, 07:41 PM
Acecool's Avatar
Acecool Acecool is offline
Aspiring Coder
 
Join Date: Nov 2003
Posts: 506
Thanks: 0
Thanked 0 Times in 0 Posts
Very insecure if you ask me, but here

$The_File_Name_Of_The_Current_File = basename($_SERVER['PHP_SELF']);
echo $The_File_Name_Of_The_Current_File;

Run this from auth.php and $The_File_Name_Of_The_Current_File = auth.php
run it from authsjkdflksdfj.php and $The_File_Name_Of_The_Current_File = authsjkdflksdfj.php
__________________
Check Acecoolco.com for PHP Tutorials, and other tuts
If you plan on contacting me, please read this: Legal Terms & Conditions
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Requests php scripts host service jean-marc91 Script Requests 0 06-14-04 06:57 PM
php nuke opposed to individual scripts babalu PHP 1 12-09-03 01:18 PM
Add Your PHP Scripts OnlyPhp.Com General Advertisements 0 11-09-03 06:26 AM
PHP scripts security khibinite PHP 2 10-23-03 07:13 AM
Running schedule PHP scripts? kdlklm PHP 3 07-30-03 02:33 AM


All times are GMT -5. The time now is 08:34 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.