Jump to content

solarisuser

Members
  • Posts

    122
  • Joined

  • Last visited

    Never

Posts posted by solarisuser

  1. You should probably post your code and tell everyone what you're trying to do...

     

    i dont want to make another topic so will this unset the post or i will nees to refresh the page?

     

    
    $email=$_POST['email'];
    $password=$_POST['password'];
    $password2=$_POST['password2'];
    
    
    $checkuser=register($email,$password,$password2);
    if($checkuser=='Done'){
    
    unset($_POST);
    }
    

  2. Just to get a hand of how things work, try something simple like this and then expand...

     

    <?

     

    if(isset($_POST['submit']))

    {

    print_r($_POST); exit(0);

    }

     

    echo "<form method=post action=''>";

    echo "<input type=text name=blah1><br><br>";

    echo "<input type=text name=blah2><br><br>";

    echo "<input type=submit name=submit value=submit>";

    echo "</form>";

     

    ?>

     

     

    (P.S - Using an image for a submit button can mess up $_POST['submit'], and instead cause it to submit $_POST['submit_x'] and $_POST['submit_y'] (coordinates)...  )

  3. While you (your uid/gid) can touch a file, the web server probably doesn't have permission because it runs as apache or nobody.

     

    If you 'tail -f <path/to/apache/error_log>', you might see the error, or php's error_log (defines in /etc/php.ini).

     

    If you can't find any of those files and don't care about security, just 'chmod -R 777 ~', and it should be able to write anywhere in your directory,  but other users will too.

  4. Maybe you can assume what the average file of the image would be (lets say the limit you allow is 2MB).  Lets say the total comes out to 50GB for the total amount of files you're comfortable with.  You can then partition your hard drive and create various partitions 50GB large, eliminating the problem.

     

    Also, if you're worried about performance, then look at your I/O, as its usually the biggest bottleneck.  This means using RAID 1+0 for speed and redundancy, using ENGINE=memory for temporary data in MySQL, etc.

  5. I'd like to modify the request. 

     

    Using this regex:

    \b(??:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b

     

    I'd like to modify it to allow commas, followed by an additional IP, up to an unlimited amount of times, without having a comma at the end.

     

    For example: 192.168.1.1,192.168.1.2,192.168.1.3          , or just 192.168.1.1

     

    Thanks - its been a tough one for me to try and figure out!

  6. Hi All,

     

    I'm asking for someone to enter a mac address, and it has to be in the format NN-NN-NN-NN-NN-NN

     

    They are entering the data in an <input type=text> field, and I was wondering if JS is the right solution to enforce this input as the user types it in (client-side validation).  I'm doing client-side validation but I also would like client-side.

     

    Thanks

  7. make sure the clients internet access is filtered to block all other ports, or a client could use an anonymous proxy on a port like 23 to bypass your content filtering

     

    23 is reserved for telnet, but anonymous proxies can listen to whatever port their configured for

  8. Hello All,

     

    I have data in the form of "0:1:22:33:44:55" and "00:11:22:33:44:55".

    What I would like to figure out is how to have regex modify the first example to add a "0" in front of any single digit or alpha character, and leave the parts with two numbers or alphas alone.  The ":" is always going to be a delimiter.

     

    For example, the first example above should convert to "00:01:22:33:44:55".

     

    Any assistance would be appriciated - I have basic regex experience and use google to figure out basic stuff but I dunno how I would start this.

     

    Thanks

  9. Hello All,

     

    I can't get this to work right,  $aResults should be ~200 records

    (mysql query is correct)...

     

    $aResults = array();
    $get = mysql_query("SELECT id as id,tool as value,pan as info FROM s.tb1 LIMIT 0,200");
    $row = mysql_fetch_array($get);
    $num = mysql_num_rows($get);
    
    for ($i=0;$i<count($num);$i++)
    {
    $aResults[$i]['id'] = $row['id'];
    $aResults[$i]['value'] = $row['value'];
    $aResults[$i]['info'] = $row['info'];
    }
    
    var_dump($aResults);
    

     

    Thanks!

×
×
  • 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.