• //the new name will be containing the full path where will be stored (images folder)

     $newname="images/".$image_name;

    //we verify if the image has been uploaded, and print error instead

     $copied = copy($_FILES['upload_'.$i]['tmp_name'], $newname);

    Tags:
    PHP
  • /*
       * This Function Help to Genrate Weeks Between Two dates....
       */
    function _genWeek($start,$end){
       
        $increment=1;
        $startdate = strtotime($start);
        $enddate = strtotime($end); 
        $day=date("w", $startdate);
        $day1=date("w",$enddate );
        $current_week = mktime(0,0,0,date("m",$startdate),date("d",$startdate),date("Y",$startdate));
        $current_week1 = mktime(0,0,0,date("m",$startdate),date("d",$startdate)-$day,...

    Tags:
    PHP
  • define('PREG_CLASS_SEARCH_EXCLUDE',
    '\x{0}-\x{2f}\x{3a}-\x{40}\x{5b}-\x{60}\x{7b}-\x{bf}\x{d7}\x{f7}\x{2b0}-'.
    '\x{385}\x{387}\x{3f6}\x{482}-\x{489}\x{559}-\x{55f}\x{589}-\x{5c7}\x{5f3}-'.
    '\x{61f}\x{640}\x{64b}-\x{65e}\x{66a}-\x{66d}\x{670}\x{6d4}\x{6d6}-\x{6ed}'.
    '\x{6fd}\x{6fe}\x{700}-\x{70f}\x{711}\x{730}-\x{74a}\x{7a6}-\x{7b0}\x{901}-'.
    '\x{903}\x{93c}\x{93e}-\x{94d}\x{951}-\x{954}\x{962}-\x{965}\x{970}\x{981}-'.
    '\x{983}\x{9bc}\x{9be}-\x{9cd}\x{9d7}\...

    Tags:
    PHP

Pages

X