Jump to content

gristoi

Members
  • Posts

    840
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by gristoi

  1. it dosent matter that you have put your file in the var/www file. if you do not have php installed on the server then you have nothing to compile the php. your image shows that you are seeing a raw text page with php tags in it. if it was compiled properly you would not see:

    <?php
    echo 'test';
    ?>

    you would see:

    test

  2. I havent had a chance to look through your code lilne by line, but one thing that stands out as a possibility is your comparison operator:

    <?php
    ($image->validate_code($_POST['validate']) ? "true" : "false") == "false")
    

    try:

    <?php
    ($image->validate_code($_POST['validate']) ? true : false) === false)
    

  3. Your internet speed is completely dependant on a multitude of different factors:

    • How far you are from your phone exchange
    • The  physical quality of your phone line
    • the SNR ( signal to noise ratio ) and attenuation on your line.
    • The amount of incoming and outgoing connection on your pc ( the more crap / spyware / torrents / active p2p on your pc = the more badwidth is taken up
    • The quality of your router

     

    Please remeber, even though these will more than likely apply to you, I am basing these on a U.K ADSL connection.

    And as ManiacDan stated you should call your provider, but using the quoted speed complaint will get you nowhere, as most ISP's state the speed quoted is UPTO and not a given. Dependant on which country u are in there are tools that can tell you all you need to know about your local phone exchange

     

  4. your problem was with:

    mysql_connection("localhost","root","admin") or die(mysql_error());
    
    should have been 
    
    mysql_connect("localhost","root","admin") or die(mysql_error());
    

    if you werent getting any warnings or errors showing then you will need to turn on your error checking. to do this you can put this at the very top of your page:

    <?php
    ini_set("display_errors","1");
    ERROR_REPORTING(E_ALL);
    

     

    this will help you a lot, by showing you all of the errors and warnings that your code makes.

     

    good luck

  5. ok, couple of things,  why do you need a database connection for this? and is this posting back to index.php, or is index.php another file?.  try this:

    <html>
    <body>
    
    <form action="index.php" method="POST" enctype="multipart/form-data">
    Image: 
    <input type="file" name="myImage">
    <input type="submit" value="Upload">
    
    </form>
    
    <?php 
    if($_FILES){
    
      echo "Name: " . $_FILES["myImage"]["name"] . "<br />";
      echo "Size: " .  ( $_FILES["myImage"]["size"] /1024) . "Kb<br />";
      echo "Type: " . $_FILES["myImage"]["type"]  . " <br />";
      echo "temp Directory: " . $_FILES["myImage"]["tmp_name"];
    }
    ?>
    </body>
    </html>
    
    

  6. when you say complex and require huge file uploads, what exactly do you mean? and what language are you talking about? javascript / php/ sql ......?

     

    what exactly do the scripts do, and have you tried uploading the files using something other than dreamweaver?

  7. Hope this points you in the right direction:

    <?php
    $query  = "SELECT `ID`,`Product_Name`,  `Product_Descriptions` FROM table_1 ";
    $result = mysql_query($query);
    
    $form = '<form action="...php" method="post" name="search_form" onsubmit="return Checkckeckboxes(this);">';
    
    while($row = mysql_fetch_assoc($result)){
    $form .='<input type="checkbox" name="'.$row['Product_Name'].'" value="'.$row['Product_Description'].'" id="'.$row['ID'].'"/> "'.$row['Product_Description'].'"<br/>';
    }
    $form.='<input type="submit" value="search"/>';
    $form.='</form>';
    
    echo $form;
    

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