You are viewing our Forum Archives. To view or take place in current topics click here.
in need of a php coder
Posted:

in need of a php coderPosted:

bbronisz11
  • New Member
Status: Offline
Joined: Apr 01, 201311Year Member
Posts: 7
Reputation Power: 0
Status: Offline
Joined: Apr 01, 201311Year Member
Posts: 7
Reputation Power: 0
i need help coding a script to store java scripts on a database. its a script delivery network that will add scripts to members on my forums if they click to add them. i already built the html/css page just need help with the css.

add me on skype : arathorn185
#2. Posted:
Imp
  • Blind Luck
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
Status: Offline
Joined: Jan 01, 201113Year Member
Posts: 1,957
Reputation Power: 401
bbronisz11 wrote i need help coding a script to store java scripts on a database. its a script delivery network that will add scripts to members on my forums if they click to add them. i already built the html/css page just need help with the css.

add me on skype : arathorn185


Are the scripts for use in your site only?

If they are,

really the best method is to have the scripts stored in a folder on your site,

the Database will store if the members have access to the script,

Then the site can handle the access to the scripts.

If you have a large scripts, or hundreds of smaller scripts, the database could become un-managable.
#3. Posted:
DoGood
  • Junior Member
Status: Offline
Joined: Apr 15, 201311Year Member
Posts: 66
Reputation Power: 2
Status: Offline
Joined: Apr 15, 201311Year Member
Posts: 66
Reputation Power: 2
I'm not sure why my post was removed, but as I was saying he shouldn't do that because if he is selling the scripts or something then they can easily exploit the fact that the scripts are stored right in a folder.

if he used MySQL he could put the scripts in a very weird folder ex; /5145/gasf/41t125/afvwe/ but the URL would appear as ?file=1
#4. Posted:
iyop45
  • Prospect
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
Status: Offline
Joined: Apr 15, 201113Year Member
Posts: 614
Reputation Power: 83
Doug404 wrote I'm not sure why my post was removed, but as I was saying he shouldn't do that because if he is selling the scripts or something then they can easily exploit the fact that the scripts are stored right in a folder.

if he used MySQL he could put the scripts in a very weird folder ex; /5145/gasf/41t125/afvwe/ but the URL would appear as ?file=1


You can always redirect the users of whom don't have the acquired privileges to see the script...

<?php
     if(checkprivileges($_SESSION['username']) == true) {
   echo "script";
     }else{
      header('Location: http://example.com');
     }
?>
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.