Jump to content

GB_001

Members
  • Posts

    187
  • Joined

  • Last visited

    Never

Everything posted by GB_001

  1. Hello, I am currently going to purchase a reseller account that allows WHM and Admin access. Would it be possible for me to make a public folder (read only) on the server that contains PHP files that can access the other sites located on the server and vice-versa? Also what about sites not located on the server, what type of authentication would I need?
  2. Hello, I'm trying to set up a dynamic virtual host for the first time. Is it posible for be to implement some sort of folder sorting system? For example the first ten sites are in: /Vhosts/1/ The next ten in : /Vhosts/2/ And so on, in order to reduce indexing load and having 400 folders in one directory.
  3. How would I be able to do it via .htaccess? Also users would only be able to edit their PHP files via editor I provide them so I don't think they'd be able to edit the .htaccess.
  4. That'd work if I were using virtual hosts, but I'm not as I'm just using a different folder per User where their individual PHP files are kept.
  5. So basically I'd have to do something like: [PATH=/path/to/Users/] open_basedir = /path/to/Users/ If so, wouldn't the Users be able to possibly access another User's folder?
  6. Hi, I was wondering how I would go about stopping PHP files from altering things outside of it's directory. Say [user X] creates a PHP script that script automatically saves to [user X]'s folder located within Localhost/Users/ where all user folders are located. But none of [user X's] files can access access any folder above it's own. How would I be able to specify this in PHP or the PHP.ini? Example Things like "$fp=fopen($_SERVER['DOCUMENT_ROOT'] ."/Users");" would be bad. Thankyou, GB.
  7. Hello, how would I be able to calculate screen.availheight without the inclusion of the address bar/toolbar height? Because right now screen.availheight is giving me my full vertical screen res (Address bars and all). Thankyou, -GB. Note: (I can't use $(window).height() because I need the maximum available height of the browser window).
  8. Hello, On my site I am allowing users to post HTML and I'm in the planning phase. I'm already written REGEX to get rid of <script> and <frame> tags, but I have ran into a problem regarding <embed> it seems as though in browsers such as chrome <embed> acts like an <iframe> tag. The problem is that with this sort of behavior users may link to potentially harmful sites like infinite alert boxes ect. How will I bee able to make sure users don't embed websites instead of flash? Alternate Question: Also if I do allow users to include websites, how could I disable alert boxes?
  9. Just in case I have alot of entries, it's just a precaution to prevent query slowdowns because this table will be accessed the most.
  10. Hi, I'm working on a project which may be trying if it had alot of users and I'm wondering if this is an efficient way to partition the tables: Short Story of what I did: I converted the usernames into "numbers" using an algorithm, then found the standard deviation and the highest number using a random name generator and another algorithm I made. After that I made the table code and partitioned by range using the standard deviation, with this I was able to get 10 partitions. Do you think this would be efficient enough if I had say 50 million user entries? example: mysql_query("CREATE TABLE XXXXX ( ID INT AUTO_INCREMENT PRIMARY KEY, XXXXXXX VARCHAR(32), XXXXX VARCHAR(32), XXXXX TEXT, XXXXXXX VARCHAR(32), XXXX INT, ) ENGINE = MYISAM PARTITION BY RANGE(XXXXX) ( PARTITION p0 VALUES LESS THAN(40), PARTITION p1 VALUES LESS THAN(80), PARTITION p2 VALUES LESS THAN(120), PARTITION p3 VALUES LESS THAN(160), PARTITION p4 VALUES LESS THAN(200), PARTITION p5 VALUES LESS THAN(240), PARTITION p6 VALUES LESS THAN(280), PARTITION p7 VALUES LESS THAN(320), PARTITION p8 VALUES LESS THAN(360), PARTITION p9 VALUES LESS THAN(MAXVALUE) )"); Thankyou, GB.
  11. Hi, is it possible for me to inject html like <html><head></head><body></body> into an iframe src, instead of make the src an actual file? Thankyou, -GB.
  12. Probably sometime in June, mostly due to the fact that it needs polish and that I have to gain funds to host the website on a server that can handle it.
  13. Hi, my website isn't open to the public yet but I made a promo video to try and show off it's features. I'm not sure about it's effectiveness though. Video: Thankyou. -GB.
  14. Hello, how would I go about capturing the page anchor in the address bar without the onload function and without page refresh? Thankyou, -GB.
  15. Thankyou, I found an excellent way of parsing AJAX url params to PHP via Jquery.
  16. Hello, The number sign does not seem to be showing up after a GET request. I've set up a script for an example: text.php: <?php session_start(); mysql_connect("localhost", "*****", "*******************9") or die(mysql_error()); mysql_select_db("*****") or die(mysql_error()); function safe($var) { $var=mysql_real_escape_string(addslashes(htmlspecialchars($var, ENT_QUOTES, 'UTF-8'))); return $var; } $N=safe($_GET['N']); echo"$N"; ?> Say the url is text.php?N=### None of the symbols show up. Thankyou, GB.
  17. Basically I'm trying to apply hiding everything under "Stuff" using javascript to manipulate the dom too change them to display:none. I want to how to do this universally cause different containers have different number of divs under "stuff".
  18. Hi, how would I go about Hiding everything below div within a container div? example: <div>Container <div>Stuff</div> <div>stuff2</div> <div>stuff3</div> </div> How would I be able to hide everything below "Stuff" and apply it to any other div of the same type universally? Preferably using Jquery. Thankyou, -GB.
  19. Hello, I created a system where emails get encrypted with a random key that gets stored in a database, what are the odds of the Hashes Colliding? Part of the code: function genRandomString($num) { $length = $num; $characters = '0123456789abcdefghijklmnopqrstuvwxyz'; $string = ""; for ($p = 0; $p < $length; $p++) { $string .= $characters[mt_rand(0, strlen($characters))]; } return $string;}$Key=genRandomString(10);$email_s=hash_hmac('ripemd160', $email, $Key); Thankyou, GB.
  20. Thankyou, I'd rather create my own image though as it might interfere with the design.
  21. Hello, How would I be able to put a box around the cursor using javascript? Thankyou, GB
  22. Why don't you try document.getElementById('imageID').src="/newimage.gif";?
  23. Hello, How would I go about simulating Ctrl+Mousewheel, Ctrl++ or C+- into a button? Thanks, GB.
  24. Thanks! I am using linux. That one seems like it'll work. Thankyou very much.
×
×
  • 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.