Jump to content

Rhal

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Everything posted by Rhal

  1. php.ini has lots of comments about recommanded settings for production server: So I hope this reconfiguring doesn`t take too much time, but pls correct me if I`m wrong.
  2. http://drupal.org/node/161975 Many sites say that XAMPP is only intended for use as a local test server, but has anyone used it for running real live servers? Sure you need to change php.ini and mysql properties, but is it really that big problem? Or is there any similar program to Xampp that is meant to be used as a production server?
  3. Qcubed is one very good and handy php framework: it uses event-driven approach and you don`t have to write Ajax. Check out the examples: http://examples.qcu.be/
  4. http://www.acunetix.com/vulnerability-scanner/ There is a free edition, that only tests your webpage against Cross Site Scripting (XSS) attacks, but be careful, it adds new entries into DB so backup your DB before running this scan. But do you know any same type of open source altrnatives? This seems to be a great program, but full licence costs a Lot. Found this site: http://sectools.org/vuln-scanners.html but most of those top 10 programs are also commercial software. https://addons.mozilla.org/en-US/firefox/addon/3899/ this is one Firefox add-on, but this doesn`t have an automated scan functionality.
  5. I needed this same solution (wanted to get screen width after user login) and this is what I did: After the login screen user gets redirected to e.g. setwidth.php and at the begging of the code is <SCRIPT LANGUAGE="JavaScript"> c_start = document.cookie.indexOf("width" + "="); if (c_start == -1) { var today = new Date(); var expire = new Date(); var nDays = 0; if (nDays==null || nDays==0) nDays=1; expire.setTime(today.getTime() + 3600000*24*nDays); document.cookie = "width"+"="+escape(screen.width) + ";expires="+expire.toGMTString(); } c_start2 = document.cookie.indexOf("red" + "="); if ( c_start2 == -1 ) { var today2 = new Date(); var expire2 = new Date(); var nDays2 = 0; if (nDays2==null || nDays2==0) nDays2=1; expire2.setTime(today2.getTime() + 3600000*24*nDays); document.cookie = "red"+"="+escape(screen.width) + ";expires="+expire2.toGMTString(); javascript:location.reload(true); //alert("redirect"); } </SCRIPT> after that comes PHP part that includes redirection to main page, but before redirection code has to be if ( $_COOKIE["width"] ) So this file is really small and those redirections doesen`t take much time. Some may say that this is ugly solution, but give me something better...
×
×
  • 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.