User Profile

Collapse

Profile Sidebar

Collapse
oliverjohnstone
oliverjohnstone
Last Activity: Feb 11 '09, 11:25 PM
Joined: Feb 1 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • oliverjohnstone
    replied to sql injection prevention
    in PHP
    thank you

    thank you that was a big help its grate that you have taken the time to explain it to me and i know understand how it works

    Thank you
    See more | Go to post

    Leave a comment:


  • oliverjohnstone
    started a topic sql injection prevention
    in PHP

    sql injection prevention

    hi im really new to sql and php but i was told that i needed to prevnt mysql injection and i dont really want to get it wrong i have done some reserch and aparently mysql_real_esca pe_string() should prevent it but im not quite sure were to put it if anyone could help me pls do thank you

    here are my scripts

    login
    [code=php]
    <?php
    include 'dbc.php';

    $full_name = mysql_real_esca pe_string($_POS T['email']);...
    See more | Go to post
    Last edited by Atli; Feb 5 '09, 08:52 PM. Reason: Added [code] tags.

  • oliverjohnstone
    replied to php folder create
    in PHP
    thank you that was a big help
    See more | Go to post

    Leave a comment:


  • oliverjohnstone
    replied to php folder create
    in PHP
    sorry im relly new to php
    heres the fulll code
    [code=php]
    <?php
    session_start() ;


    include ('dbc.php');


    if ($_POST['Submit'] == 'Register')
    {
    if (strlen($_POST['email']) < 5)
    {
    die ("Incorrect email. Please enter valid email address..");
    }
    if (strcmp($_POST['pass1'],$_POST['pass2']) || empty($_POST['pass1'])...
    See more | Go to post
    Last edited by Atli; Feb 1 '09, 11:30 PM. Reason: Added [code] tags.

    Leave a comment:


  • oliverjohnstone
    started a topic php folder create
    in PHP

    php folder create

    hi

    i have created a script that creates a user in a mysql db and i need it to create a folder for that user. the snipit of code that should do this i think is this

    mkdir("/var/www/hosts/$full_name");

    it is suposed to create a folder called the full name of a user entered into a form
    can anyone please tell me what i am doing wrong
    p.s i have made sure the perms are correct
    See more | Go to post
No activity results to display
Show More
Working...