Results 1 to 16 of 16

Thread: PHP -

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Android 4.1 User Athlonio's Avatar
    Join Date: Oct:2005
    Location: 90
    Posts: 288

    PHP -

    - , .
    , , . rename(); copy(); , . . ??
    comp: GB B85M-D3H /1150 | Pentium G3420 3.2GHZ/3M/1150 | 2 X 4 GB DDR3 Kingston HyperX 1600 | 500GB WD BLUE SATA2 | Asus nVidia 9600GT | LG 8.5GB DVDRW Black GSA-4163-B retail | FOXCONN 3GTH002//FSP 400W PFC | Phillips 190X6FB | Logitech X-530

  2. #2
    دارس وعامل Siemens's Avatar
    Join Date: Jul:2003
    Location:
    Posts: 1,576
    , ?
    ?

    error_reporting(E_ALL);

  3. #3
    White awesomeness z0ne's Avatar
    Join Date: Feb:2002
    Location: o
    Posts: 13,331
    Quote Originally Posted by Athlonio View Post
    - , .
    , , . rename(); copy(); , . . ??
    , . PHP.net.

    Code:
    @copy("old.jpg", "new.jpg");
    :

    trigger_error();

  4. #4
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    ?
    copy() ?
    .
    , , , , .

  5. #5
    ! vbTheKing's Avatar
    Join Date: Sep:2003
    Location:
    Posts: 4,138
    , copy() ?
    ''? * *
    - !
    ...

  6. #6
    Registered User fly's Avatar
    Join Date: Jun:2005
    Location:
    Posts: 803
    , - .

  7. #7
    Android 4.1 User Athlonio's Avatar
    Join Date: Oct:2005
    Location: 90
    Posts: 288
    - , .

    Code:
    $file = $_FILES[$i]['name'];  //  proba.jpg
    $filenameorig = "/httpdocs/gal/Gallery/".$_FILES[$i]['name']; //  /httpdocs/gal/Gallery/proba.jpg
    		
    $newfilename = "/httpdocs/gal/Gallery/_thb_".$_FILES[$i]['name']; //  /httpdocs/gal/Gallery/_thb_proba.jpg
    			
    chmod($filenameorig, 0777);
    
    if (!copy($filenameorig, $newfilename)) {
        echo "   $file...\n";
    }
    , - , ( ).
    comp: GB B85M-D3H /1150 | Pentium G3420 3.2GHZ/3M/1150 | 2 X 4 GB DDR3 Kingston HyperX 1600 | 500GB WD BLUE SATA2 | Asus nVidia 9600GT | LG 8.5GB DVDRW Black GSA-4163-B retail | FOXCONN 3GTH002//FSP 400W PFC | Phillips 190X6FB | Logitech X-530

  8. #8
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    .
    , , , , .
    , ..

    , . , , ..


    move_uploaded_file( $_FILES['userfile']['tmp_name'], $newfilename )

    .
    $_FILES temp , .

  9. #9

  10. #10
    Android 4.1 User Athlonio's Avatar
    Join Date: Oct:2005
    Location: 90
    Posts: 288
    , , , /httpdocs/gal/Gallery/
    , .
    comp: GB B85M-D3H /1150 | Pentium G3420 3.2GHZ/3M/1150 | 2 X 4 GB DDR3 Kingston HyperX 1600 | 500GB WD BLUE SATA2 | Asus nVidia 9600GT | LG 8.5GB DVDRW Black GSA-4163-B retail | FOXCONN 3GTH002//FSP 400W PFC | Phillips 190X6FB | Logitech X-530

  11. #11
    دارس وعامل Siemens's Avatar
    Join Date: Jul:2003
    Location:
    Posts: 1,576
    - - ...
    - i for , .
    foreach($_FILES as $i) .
    :
    http://www.php.net/manual/en/feature...d.multiple.php
    .. :
    $_FILES['userfile']['name'][$i]

    .. - , . error_reporting(E_ALL) notice .

    :
    $path1 = '/path/to/something';
    $path2 = '/path/to/other/thing/';
    copy($path1,$path2);

  12. #12
    Android 4.1 User Athlonio's Avatar
    Join Date: Oct:2005
    Location: 90
    Posts: 288
    admin- 5 , (1,2,3,4 5). , .

    ---------- 13:06 ---------- 13:04 ----------

    Quote Originally Posted by tedych View Post
    copy disabled ..
    phpinfo(); ?

    ---------- 13:08 ---------- 13:06 ----------

    Quote Originally Posted by Siemens View Post
    error_reporting(E_ALL) notice .
    ??
    comp: GB B85M-D3H /1150 | Pentium G3420 3.2GHZ/3M/1150 | 2 X 4 GB DDR3 Kingston HyperX 1600 | 500GB WD BLUE SATA2 | Asus nVidia 9600GT | LG 8.5GB DVDRW Black GSA-4163-B retail | FOXCONN 3GTH002//FSP 400W PFC | Phillips 190X6FB | Logitech X-530

  13. #13
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    .

    .
    - , $_FILES , chmod() , , copy() . copy disabled ..

    Siemens, foreach ($_FILES as $i) , - foreach ($_FILES as $i=>$value)

  14. #14
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    phpinfo?!
    disable_functions . .

    , copy . .

  15. #15
    Android 4.1 User Athlonio's Avatar
    Join Date: Oct:2005
    Location: 90
    Posts: 288


    Code:
    $path = "../gal/Gallery/";
    
    $filenameorig = $path . basename($_FILES[$i]['name']);
    $newfilepath = $path . "_thb_" . basename($_FILES[$i]['name']);
    
    if (!copy($filenameorig, $newfilepath)) {
       
        echo "   $file...\n";
    }
    : ?
    comp: GB B85M-D3H /1150 | Pentium G3420 3.2GHZ/3M/1150 | 2 X 4 GB DDR3 Kingston HyperX 1600 | 500GB WD BLUE SATA2 | Asus nVidia 9600GT | LG 8.5GB DVDRW Black GSA-4163-B retail | FOXCONN 3GTH002//FSP 400W PFC | Phillips 190X6FB | Logitech X-530

  16. #16
    Registered User tedych's Avatar
    Join Date: Nov:2003
    Location:
    Posts: 17,654
    , basename , , , .

    , , , Image , imagecopyresampled()..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |