Jump to content

Developing my site ...Basic questions please ?


hugzzz

Recommended Posts

Hello,

I'm currently developing my site and want to ask some questions :

 

1 - Users post articles that can be purchased , I want to let the buyer read it without being able to copy it ... article will not be in English , can I make a pic of this article using GD library or so to let him read and not to copy ? if yes , how please ? if no , is there any other means ?

 

2 - I want to make it secure , there is an Admin panel that I want to protect , members area and other attacks ... can you advice me on how to build them securely please ?

 

3 - some basic questions on MySQL : 

3-1 : If I have 100,000 records , I searched for records with ID = 5 , let's assume there are 100 of them , how much time will that takes ?

3-2 : If I have a field that takes three options  ( accept , refuse , on hold ) , can I set it to varchar ?

 

3-3 : INT length of 3 , how long numbers can be ?

 

1. I don't suggest using that method, just show a brief part of it.

2. Just protect the folder of the admin panel with a username or password

3-1. Depends on how fast your mySQL server is, could be .05 seconds or could be 5 seconds

3-2. Yes, you should just set it to an INT 1, option 1 = accept, option 2 = refuse, option 3 = on hold

3-3. INT(3) = 000-999

better solution:

create a field on the user table that is to track if they are banned:

ALTER TABLE ADD `banned`INT(1) NOT NULL DEFAULT VALUE='0';

if you ban someone, you just have the script change thier banned value to 1, and add a check to the login that says

.... AND `banned` != 1;

better solution:

create a field on the user table that is to track if they are banned:

ALTER TABLE ADD `banned`INT(1) NOT NULL DEFAULT VALUE='0';

if you ban someone, you just have the script change thier banned value to 1, and add a check to the login that says

.... AND `banned` != 1;

 

This is good but will only work if users register with their ID's or Credit Cards that must be unique for every person ,, but problem is , he can make another account with another email in 3 minutes and cheat me .. so , I assume real address , name will be unique ( he should  enter them so, or he won't be able to receive article payment )  ... so , I want to compare them ( knowing that he can add a letter , remove one ,, changing alittle in the address , so , if he is smart , his provided addresses will not be identical )

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.