Jump to content

Northern Flame

Members
  • Posts

    816
  • Joined

  • Last visited

    Never

Posts posted by Northern Flame

  1. once again  :'(  :-\  :-[

     

    Warning: move_uploaded_file(pending/nf.gif): failed to open stream: No such file or directory in /my_path/download/thanks.php on line 25

     

    Warning: move_uploaded_file(): Unable to move '/tmp/phplnee6o' to 'pending/nf.gif' in /my_path/download/thanks.php on line 25

     

  2. alright i told me it was uploaded to a temporary folder,

    but once again,

    error message:

     

    Warning: move_uploaded_file(upload/nf.gif): failed to open stream: No such file or directory in /my_path/download/thanks.php on line 25

     

    Warning: move_uploaded_file(): Unable to move '/tmp/phpmfDVem' to 'upload/nf.gif' in /my_path/download/thanks.php on line 25

    Stored in: pending/nf.gif

     

    and it was never stored in the folder "pending/"

  3. I want users of my website to be able to submit songs or images to me,

    so i created an upload form but the script that processes it gives me an

    error message,

     

    heres the error message

    Warning: move_uploaded_file(pending/image/a.JPG): failed to open stream: No such file or directory in /my_path/download/thanks.php on line 19
    
    Warning: move_uploaded_file(): Unable to move '/tmp/phphaMD5R' to 'pending/image/a.JPG' in /my_path/download/thanks.php on line 19
    

     

    Heres the script

     

    <?php
    $type = $_POST['type'];
    
    if($type == 'song'){
    $t_path = 'pending/song/';
    }
    elseif($type == 'image'){
    $t_path = 'pending/image/';
    } else{
    $t_path = 'pending/';
    }
    
    
    $t_path = $t_path . basename( $_FILES['file']['name']);
    
    include('includes/headernf.php');
    
    echo '<div id=body>';
    if(move_uploaded_file($_FILES['file']['tmp_name'], $t_path)){
    echo "     The ".$type." ".basename($_FILES['file']['name'])." has been uploaded! 
    Thank you for contributing to this site!";
    } else{
    echo "     Their was an error when uploading your ".$type.". It is 
    possible that the file was too big. Please try again or <a href='/contact.php'>
    contact us</a>.";
    }
    echo '</div>';
    ?>
    

  4. hello,

    I am trying to order my data by the id,

    but i only want to show the latest 5 that

    were entered. I know how to only display

    5, but it shows the first 5, not the last 5,

    can anyone help?

     

            $limit = 5;
    $query = "SELECT * FROM table ORDER BY id LIMIT $limit";
    $result = mysql_query($query) or die("ERROR " . mysql_error());
    

  5. hello,

    i was just wondering what the main differences between asp and php are.

    I was looking through some asp tutorials and it seems like PHP has a lot

    more features, and asp seems for complicated. Yet I see many websites

    using asp, can anyone let me know what the differences between asp

    and PHP are? What can you do in asp that cannot be done in PHP?

  6. I have a form that uses the method of $_GET,

    I only want certain variables to be used as $_GET

    and the rest as $_POST, how can i do this? I know that

    $_REQUEST works for both, but what I am trying to do

    is only display the email address and their action as

    a part of the URL when they hit "submit", how can

    i get the rest of the variables not to be displayed?

  7. i just want to report my websites news to who ever subscribes to my list,

    i want to have a form on my website where people can subscribe and then i

    just email them from news@mydomain.com

  8. Hi I want to create a mailing list for my website but i have never done this before, I searched on google and all i found was free mailing lists but when a user subscribes, it takes them to the website that provides the free mailing list and it has an ad for them when i send out an email, can anyone help me create my own mailing list?

  9. yea and it worked out better than i though,

    becuase i also wanted my wap site only to be viewable

    to a mobile phone and not a computer,

    so when i try to access that page with a computer

    it doesnt view it, but with a phone it works fine ;D

  10. this did the trick

     

    <?php header('Content-type: application/vnd.wap.xhtml+xml'); ?>
    <?php echo '<?xml version="1.0"?'.'>'; ?>
    <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
    

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