Search results

  1. as4s1n

    Are Session Variables Vulnerable

    Assuming this is sometime after a login script, as long as you check the user input value there, you should not have any problems later on.
  2. as4s1n

    PHP task scheduling

    To this effect: $curDate = date('h'); $dateToRun = "12"; $run = 1; if($curDate == $dateToRun && $run == 1) { # ... Run task ... # ... Set run to 0 }
  3. as4s1n

    PHP task scheduling

    I have a question about scheduling tasks. If I have a task scheduled on a PHP page, but that page is never called/referenced, would it still run at the scheduled time?
  4. as4s1n

    Issues regarding Mysql Injection and PDO

    1) There should be no difference. mysqi_real_escape_string() does a pretty good job of taking care of SQL injections but PDO handles it cleaner. 2) I don't think that makes a difference, but how do you initiate your query without mysql_query()? It reduces the chance but nothing is 100% safe...
  5. as4s1n

    'Random Question' Script

    Why not just use Captcha?
  6. as4s1n

    PHP mysqli_real_escape_string PDO equivilent

    Oh, well the book I read on it says that that protects from SQL injection because it keeps it in order and if its not then it will input the whole one statement and ignore the rest... But now I'm not sure.
  7. as4s1n

    PHP mysqli_real_escape_string PDO equivilent

    Does that mean it would be unneccessary to include the fields in the query E.G. $sth = $dbh->prepare("INSERT INTO table_name(field1,field2,field3, ...etc) VALUES ...");
  8. as4s1n

    Display all that would be secret while Mysql is broken

    You know, I tried that, but when I tried that (using PDO) it still showed my information. So I just put under the catch statement a function that writes the error to a file and displays custom error text I.E. "Cannot connect to server."
  9. as4s1n

    PHP mysqli_real_escape_string PDO equivilent

    Oh OK, it really didn't explain it well on the site so I wanted to see. BTW: Does the query() statement have the same protection as the prepare?
  10. as4s1n

    PHP PM send message help

    1) This is supposed to insert a row in the database to simulate an email 2) I do not know the problem, but my assumption is it has something to do with the 'to' input into the database 3) I tried a try/catch but it didn't help 4) My guess is the 'to' 5) Try/catch
  11. as4s1n

    PHP PM send message help

    I am working on a PM system for my website, not unlike the one on the forums, and I ran into a big problem I just can't figure out what it is. Form: <form action="index.php" method="post"> <table border="0"> <tr> <td>To:</td><td><input type="text" name="toUser" size="50" /> * Separate...
  12. as4s1n

    PHP mysqli_real_escape_string PDO equivilent

    I was wondering whether PDO had a function equivilent of the mysqli_real_escape_string to prevent SQL injections, or is there some specific code to prevent SQL injections which would mirror the effect of the mysqli_real_escape_string()?
  13. as4s1n

    Iframes

    Those were just for reference. replace the srcs with the LocationOfFile/fileName.filetype
  14. as4s1n

    Iframes

    Iframes are pretty simple actually. <iframe src="location of iframe" width="width of iframe" height="height of iframe" scrollbars="Use scrollbars or not"></iframe> As for applying your own links to other website, you could use frames like google images, but you have to create a new page and...
  15. as4s1n

    Please review my site

    So I want the column to fall under the other when it gets shrinked?
  16. as4s1n

    PHP script only shows when admin is loggedin

    Admin: Sees profile picture, sign-out and admin page User: Sees profile picture and sign-out Guest: Sees Log-in and Register It works now though.
  17. as4s1n

    Please review my site

    I did make it myself. Actually, it's just a beta test right now but I will add moderating. The SL logo will be an image but I should still remove the home link? What about the people who don't realise that? Also for some reason my right column doesn't go all the way down, and I have no idea how...
  18. as4s1n

    PHP script only shows when admin is loggedin

    Edit: Everything checks out and it should work. Please help? Edit 2: It must have been the server move because it works fine now.
  19. as4s1n

    Please review my site

    My site is a user submission site and I want to see how good others think it looks and see what needs improvement. URL: http://sikuneh.x10hosting.com/New%20SL/
  20. as4s1n

    mySql : Select into file

    Is the duplicate columns result from the fwrite method or the OUTPUT clause in the query?
Top