DFILE_OFFSET_BITSphpinfo
phpinfo 时间:2021-01-11 阅读:(
)
SpecialCharacters$sign,422$_COOKIEsuperglobal,413,455$_ENVsuperglobal,413$_FILEsuperglobal,413$_FILESsuperglobal,504–5$_GETmethod,334–36$_GETsuperglobal,413,470,488$_POSTsuperglobal,413,488$_REQUESTsuperglobal,413$_SERVERsuperglobal,413$_SERVERvariable,17$_SESSIONarray,429$_SESSIONsuperglobal,413,464$allowedtypesarray,312$codemethod,60$countriesarray,161,164–65$dataarray,186$daysparameter,262$GLOBALsuperglobal,412$GLOBALSvariable,412,447–48$glueargument,126$hostRegexfunction,378$hoursvariable,228$lengthelement,138,152$lengthparameter,138$matchesarray,358$maxargument,605$messagemethod,60$minutesargument,244$modevariable,387$nameparameter,47$newelement,138$newvarvariable,412$numarray,193$numobject,192$numvariable,152$num_argsvariable,236$offsetargument,151,605$offsetelement,152$offsetvariable,234,242,381$patternvariable,RegExpclass,387$pidpackethandle,541$piecesargument,126$positionargument,138$separatorparameter,getClockTime()method,254$strictparameter,164$thiskeyword,25$timevariable,234,240,242$totalobject,192$twelveparameter,getClockTime()method,253$unitsvariable,227$uppercaseAMPMparameter,getClockTime()method,253$wordsarray,179%%character,strftime()function,221%Acharacter,strftime()function,220%acharacter,strftime()function,371%Bcharacter,strftime()function,221%bor%hcharacter,strftime()function,221%ccharacter,strftime()function,221%dcharacter,strftime()function,220%Dcharacter,strftime()function,221%dcharacter,strftime()function,371%echaracter,strftime()function,221%gcharacter,strftime()function,221%Hcharacter,strftime()function,221%Icharacter,strftime()function,221%jcharacter,strftime()function,221%mcharacter,strftime()function,221%ncharacter,strftime()function,221%pcharacter,strftime()function,221%Rcharacter,strftime()function,221,371%Scharacter,strftime()function,221%tcharacter,strftime()function,221%ucharacter,strftime()function,220%Ucharacter,strftime()function,221,371%Vcharacter,strftime()function,221%Wcharacter,strftime()function,221%xcharacter,strftime()function,221%Ycharacter,strftime()function,221%zor%Zcharacter,strftime()function,221(&)symbol,506*qualifier,352,359*qualifier,360[[:alpha:]]expression,354[[:digi:]]expression,354[[:space:]]expression,353–54+nongreedyqualifier,376+qualifier,352,359+*qualifier,360expression,POSIX,354tag,374element,531Index631element,530==operator,122,135,283===operator,135>character,376qualifier,352,359Aaargument,293acharacter,date()function,203,356a+argument,293tag,379tag,470abstractclasses,50–52abstractkeyword,50abstractmethods,50–52acos()function,105acosh()function,105addauth()method,481addHTMLImage()method,602AddItem()method,534,536–37addslashes()function,506adduser()method,481alterfunction,553AmericanStandardCodeforInformationInterchange(ASCII)characters,369ampersand()symbol,567append()method,309appendChild()method,517–18,520application/excelcontenttype,462application/mswordcontenttype,462application/octet-streamcontenttype,462application/pdfcontenttype,462Apresswebsite,226arguments,variablenumberof,440–41arithmeticoperators,92array()function,122Arraydatatypes,10–11,394arrayfilefunction,300array_average()function,168array_combine()function,159array_count_values()function,162array_display()function,159array_filter()function,170,175–77array_insert()function,138,151array_key_exists()function,164,166array_keys()function,126–28,159array_map()function,169,173–74array_merge()function,132array_multisort()function,186,188–89array_pad()function,141–42array_permutations()function,193array_pop()function,150array_push()function,132array_rand()function,183array_remove()function,150–51,182array_reverse()function,182array_shift()function,150array_slice()function,152array_splice()function,137,150array_sum()function,168array_unique()function,161,193–94array_unshift()function,137array_values()function,126–28,159,161array_walk()function,169–72ArrayIteratorclass,70arraysaddingnewelementstoappendingonearraytoanother,132–35tobeginningofarrays,137comparingarrays,135–36toendofarrays,131–32insertingnewvaluesatarbitrarypointinindexedarray,137–39overview,131applyingfunctionstofilteringarraysusingarray_filter(),175–77overview,169–70usingarray_map(),173–74usingarray_walk(),170–72arrayelementsaccessing,122counting,139–41arraykeys,124,164–66arrayvalues,findingandworkingwithdeterminingwhetherelementisinanarray,164findinggreatestandleastvalues,166–68findingsumandaverageofvalues,168–69obtainingarraykeyswithgivenvalue,165–66overview,162–63testingforexistenceofkeyinarray,164–65creating,122–23findingpermutationsandcombinations,190–94initializingasrangeorsequenceofvalues,124–25outputtingoverview,126asastring,126asatree,128,130–31usingarray_values()andarray_keys()forbackwardcompatibility,126–28overview,5,121–22removingelementsfromcombiningarrays,158–59extractingportionofanarray,152–54extractingvaluesusinglist(),156–57extractingvalueswithextract(),154–56INDEX632firstorlastelement,148–50gettinganddisplayingcountsofarrayvalues,161–62obtainingarraykeysandvalues,159–60oneormorearbitraryelements,150–52overview,147–48workingwithuniquevalues,160–61settingsize,141–44settingup,examplecodefor,5–6sortingbyitskeys,180–81byitsvalues,178–80multidimensionalarrays,186–89multiplearrays,189–90overview,178randomizingarrayusingshuffle(),kshuffle(),andarray_rand(),183reversingarrayusingarray_reverse(),182reversingarrayusingarsort(),181reversingarrayusingkrsort(),182usingcomparisonfunctions,184–85traversingloopingthroughassociativearrayusingforeach,144–45loopingthroughcompactindexedarrayusingforandcount(),145loopingthroughsparsearray,146–47overview,144arsort()function,181,314asin()function,105asinh()function,105asort()function,179,314assignmentoperators,396associativearrays,121–22,131atan()function,105atan2()function,105atanh()function,105atoms,351attributes,creatingandsetting,520–22authenticatinguserscookieauthentication,481–83HTTP-basedauthentication,475–81B\bexpression,355backslashelement,523–26,530bargraphimages,328bargraphs,331base_convert()function190,109bcadd()function,113bccomp()function,113bcdiv()function,113BCMathbinarycalculator,113BCMathfunctions,113bcmod()function,113bcmul()function,113bcpow()function,113bcpowmod()function,113bcscale()function,113bcsqrt()function,113bcsub()function,113binarydata,readingandwriting,301–2bindtypes,567birdCall()method,77bitwiseoperators,192blankcanvas,creating,327–29body()method,GetMailclass,612book_idattribute,526,528boolfclosemethod,296booleandatatype,394Booleandatatypes,10–11browscap.
inifile,467browsers,detecting,467–69Cccharacter,date()function,203,357cachingclass,428calcGrossPay()method,38,42callbackfunction,169Canaryclass,68canvascreatingblankcanvas,327–29writingon,338–39catch_duplicate_chars()function,193cfileclass,305–9characterclasses,353characterdata(CDATA)sections,519characters,gettingnumberofinfiles,304–5charlistargument,279Check()classmethod,cachingclass,426checkandsubmit()function,JavaScript,502CHECKBOXelement,HTMLform,488checkdate()function,199checkdnsrr()function,622chop()function,266classconstructor,24,235classkeyword,24__CLASS__magicconstantconstant,433class_exists()function,62–65class_implements()function,62class_interfaces()function,68class_parents()function,62class-embeddedmethods,9classesabstract,50–52checkingforexistenceof,63–65controllingaccesstoclassmembers,30–33currentlyloaded,listing,69–71determiningwhetherobjectisinstanceof,67–69INDEX633classes(continued)discoveringavailabilityof,12–14extending,43–49gettinginformationabout,61obtainingvariablenames,66overview,22ReflectionAPIobtainingdumpof,73–75overview,71–73performingdynamicclassinstantiation,76–77usingtodeconstructShapeclass,77–82usingclassconstants,37–39,41–43usingclassdestructors,55usingstaticmembersandselfkeyword,33–34clientside,defined,499closedir()function,309–10closingfiles,296–98CML_RSSclass,532code,redundant,437colors,creatingandusingforimages,329–31comma-delimitedfiles,298command-lineinterface(CLI)scripts,396comma-separateddata,298–300comma-separatedvalue(CSV)file,382communicatingwithInternetservices.
SeeInternetservices,communicatingwithcomplexdatatypesencapsulating,425–28storinginsessions,466–67complexvalues,passinginquerystrings,473–75componentselement,228CompuServe,323configurationvariables.
SeeenvironmentandconfigurationvariablesConstclass,414constkeyword,37constant()function,408constantsdiscoveringavailabilityof,12–14using,408–10usingclassconstants,37–43__construct()classmethod,cachingclass,426__construct()methodGetMailclass,24,603RSSdb()class,534__constructconstructor,386constructorscreatinginterfacesusing,24–25default,26–27contentmanagementsystem(CMS),269,311contenttypes,462content-disposition,463content-type,463cookiesauthenticationusing,481–83deleting,456–57overview,453reading,455–56setting,454–55writingandusingacookieclass,457–59copy()function,505copyonwrite,420cos()function,105cosh()function,105count()function,140,145,303createCDATASection()method,518,520createElement()method,517CreateTable()function,401createTextNode()method,518createthumb()function,348curse()method,47–48Ddcharacter,date()function,202\dexpression,355datatypesarrays,5–6complex,encapsulating,425–28discoveringwhatvariables,constants,functions,classes,interfacesareavailable,12–13findingdatatypeofavalue,10–12functions,8–10gettinginformationaboutcurrentscript,14–18numbers,4–5regularexpressions,7–8strings,6–7ofavalue,finding,10–12variables,2–3databases.
SeeMySQLdatabasesdate()function,199–202,204,213,354–55Dateclass,231,250,380constructingandusing,231–50extending,250–63datetype,273date_diff()function,226,375date_difference()function,255date_sunrise()function,199date_sunset()function,199DateExtendedclass,251,262DateExtendedconstructor,253datesandtimesarbitrary,204constructingandusingadateclass,231–50INDEX634convertinghuman-readabledatesintoUnixtimestamps,205–7determiningwhethergivenyearisleapyear,213–14extendingDateclass,250–63findingdateforaweekday,207–11generatinglocalizedGMT/UTCtimeanddatestrings,224–25gettingdayandweekofyear,211–12gettingtimesanddatesoffiles,214–15human-readabledatesandtimes,201–3obtainingdifferencebetweentwodates,225–31inotherlanguages,219–23overview,197–201settingtimezonesandGMT/UTC,216–19sortingfilesby,313–14Date/Timelibrary,functions,199datetimetype,273dbtag,596dc:datetag,537DEBUGconstant,432debug_backtrace()function,431debug_print()function,433debuggingfunctionsusedfor,431variables,431–34_decode_body()method,GetMailclass,612defaultvalues,settingforfunctionparameters,438–39default_mimetypeparameter,inphp.
ini,513define()function,408defined()function,409deg2rad()function,105deletefunction,553deletestatement,561deletingcookies,456–57data,inMySQLdatabase,559–61delimiters,readingrecordswith,382–84demote()method,40__destruct()method,55,603destructors,class,55detectingbrowsers,467–69DFILE_OFFSET_BITSvariable,214,366directoriescurrentdirectory,listingall,310–11overview,309recursivedirectorylisting,generating,314–16DirectoryIteratorobject,316–18display()method,31,34,40–41,45,48displayingresults,fromMySQLdatabase,555–57dl()function,528,542DNSlookups,621–23dns_check_record()function,622dns_get_mx()function,622dns_get_record()function,622DocDocument()object,518DocumentObjectModel(DOM)extension,61usingtogeneratemarkup,516–20DOCUMENT_ROOTargument,18dollar($)sign,393DomainNameSystem(DNS),621domainnames,gettinginformationabout,627–29DomDocument()class,516,520,523,528–29DomElement()class,517,522,526DOMExceptionclass,61DOMXMLextension,516doMyBookSearch()method,548doSpellingSuggestion()method,545Doubledatatypes,10–11dropdb()method,585__dtor()method,534dump_value()function,401dynamicclassinstantiation,76–77dynamicfunctions,creating,449–50dynamicimagingcreatingimagesfromexistingimagesapplyingmodificationstoexistingimages,338–40loadingexistingimages,337–38savingandoutputtingmodifiedimages,340–41creatingimagesfromscratchcolors,329–31creatingblankcanvas,327–29outputtinganimage,334–36shapesandpatterns,331–34imagelibraries,327imagetypesGIFs,323–25JPGs,321–23PNGs,325–27overview,321usingTrueTypefontsapplyingtoimages,343–45creatingandusingdynamicthumbnailclass,345–49loadingfonts,342–43dynamicthumbnailclass,345–49dynamicvariables,421–25Eechostatement,514ECMAScriptStandard,thirdedition,232elapsedelement,228elsestatements,reducingnumberof,421empty()function,395INDEX635enable-shmopparameter,429enable-soapoption,542encapsulatingcomplexdatatypes,425–28environmentandconfigurationvariables,484–85eof()function,615ereg()function,7,354,361,373ereg_replace()function,354eregi()function,354errorargument,$_FILESsuperglobal,505Errorobject,624error-handling,56–59,61errors_to_exceptionsfunction,59escapecharacter,353escapingspecialcharacters,375–77evenfirst()function,184Exceptionobject,59Exceptionsubclass,60exceptions,56–59,61execute()method,567exp()function,100explode()function,265,273,275export()function,73extendingclasses,43–49extendskeyword,46EXTR_REFSoption,155extract()function,154–56extract()option,155FFcharacter,date()function,202falsebooleantype,438fclose()function,295–96,372feof()function,304fgetc()function,293–94,567fgets()function,293–94,372file()function,289,300Fileclass,215fileclasses,creatingandusing,305–9FILEelement,HTMLform,488filetransferprotocol(FTP),614–21__FILE__magicconstantconstant,433file_exists()function,292file_put_contents()function,295filectime()function,314filemtime()function,215,314filesclosing,296–98creatingandusingafileclass,305–9gettingnumberofcharacters,words,orparagraphsin,304–5gettingnumberoflinesin,303gettingtimesanddatesof,214–15listingallofcertaintype,311–12opening,291–93overview,291readingandwritingbinarydata,301–2readingandwritingcomma-separateddata,298–300readingfixed-widthdelimiteddata,300–301readingfrom,293–94sortingbydate,313–14writingto,295–96filesize()function,615firsteven()function,185fixed-widthdelimiteddata,300–301floatdatatype,394fonts,loading,342–43fopen()function,292–93,295,302,372,540,616fopen_wrapper,615format_address()method,603format_address_list()method,603formattingphonenumbers,365–66formsGETvs.
POST,488–90multipage,494–96overview,487preventingmultiplesubmissionsofonclientside,500–502creatingformelementsbasedoncurrenttimeand/ordate,508–10creatingformelementswithmultipleoptions,506–8handlingspecialcharacters,505–6overview,499performingfileuploads,502–5onserverside,499–500redisplayingwithpreservedinformationanderrormessages,496–98superglobalsvs.
globals,490–91validatingforminput,491–93fputs()function,295frand()function,97fread()function,293–94,540FreeTypelibrary,341fromelement,575ftp_alloc()function,FTP,616ftp_cdup()function,616ftp_chdir()function,616ftp_chmod()function,616ftp_close()function,616ftp_connect()function,616–17ftp_delete()function,616ftp_exec()function,616ftp_fget()function,616ftp_fput()function,616ftp_get()function,617ftp_get_option()function,616ftp_login()function,617ftp_mdtm()function,617INDEX636ftp_mkdir()function,617ftp_nb_continue()function,617ftp_nb_fget()function,617ftp_nb_fput()function,617ftp_nb_get()function,617ftp_nb_put()function,617ftp_nlist()function,617,619ftp_pasv()function,617ftp_put()function,617ftp_pwd()function,617ftp_quit()function,617ftp_raw()function,617ftp_rawlist()function,617ftp_rename()function,617ftp_rmdir()function,617ftp_set_option()function,617ftp_site()function,617ftp_size()function,617ftp_ssl_connect()function,617ftp_systype()function,617func_get_args()function,253,441func_num_args()function,235funcnamefunction,171functionkeyword,50functionnames,usingtoreducenumberofif,else,orswitchstatement,421–25__FUNCTION__magicconstantconstant,433functionsaccessingfunctionparameters,437–38accessingglobalvariablefromwithin,447–48discoveringavailabilityof,12–14dynamic,creating,449–50functionparameters,settingdefaultvaluesfor,438–39overview,8–9,437passingvaluesbyreference,439–40returningfailure,445–46returningmorethanonevalue,442–43returningvaluesbyreference,443–45thattakevariablenumberofarguments,440–41variable,calling,446–47fwrite()function,295GGcharacter,date()function,203GDlibrary,327,336gd_info()function,327GD2library,327GeneratePassword()function,99GETmethodandforms,vs.
POSTmethod,488–90get*()method,238get_browser()function,467,468get_class()function,62get_class_methods()function,62,65get_class_variables()function,66get_class_vars()function,62get_declared_classes()function,62,69get_declared_interfaces()function,62,69get_defined_vars()function,155_get_mime_parts()method,GetMailclass,612get_object_variables()function,66get_object_vars()function,28,62get_parent_class()function,62,68getAttribute()method,522getCategoryInfo()method,38,40getClockTime()method,253getConstants()method,79GetContent()function,619getdate()function,199,211,228,231getDifference()method,255GetDistance()function,107getDocComment()method,78getElementsById()function,525getElementsByTagName()function,525getElementsByTagName()method,525–26getemails()method,290getenv()function,484GetFeeds()method,534,536getfile()function,289gethostbyaddr()function,DNSlookup,621gethostbyname()function,DNSlookup,621getHours()method,233GetItems()method,534getlastmod()function,17,214GetMailclass,603,605,607,612getmain.
incfile,605getMatchesfunction,387getMilliseconds()method,238getMonthFullName()method,256getMonthShortName()method,256getmxrr()function,DNS,622getName()method,80getOrdinalDate()method,256getParameters()method,80getPrice()method,29getTime()function,238gettimeofday()function,199,231,237getTimeZoneOffset()function,238gettype()function,10–11,403getUTC*()method,257getUTCHours()method,233GetValue()classmethod,426getwords()method,289globalkeyword,411globalvariable,447–48globallyuniqueidentifiers(GUIDs),362,381–82INDEX637globals,490–91gmdate()function,199,218,257,369gmmktime()function,199,217GMPextension,113GMPfunctions,114gmp_absfunction,114gmp_addfunction,114gmp_cmpfunction,114gmp_comfunction,114gmp_divfunction,114gmp_div_qfunction,114gmp_div_qrfunction,114gmp_div_rfunction,114gmp_divexactfunction,114gmp_factfunction,114gmp_gcdfunction,114gmp_gcdextfunction,114gmp_hamdistfunction,114gmp_init()function,114gmp_initfunction,114gmp_intvalfunction,114gmp_invertfunction,114gmp_jacobifunction,114gmp_legendrefunction,114gmp_modfunction,114gmp_mulfunction,114gmp_negfunction,114gmp_orfunction,114gmp_perfect_squarefunction,114gmp_popcountfunction,114gmp_powfunction,114gmp_powmfunction,114gmp_prob_primefunction,114gmp_randomfunction,114gmp_scan0function,114gmp_scan1function,114gmp_setbitfunction,114gmp_signfunction,114gmp_sqrtfunction,114gmp_sqrtremfunction,114gmp_strval()function,116gmp_strvalfunction,115gmp_subfunction,115gmp_xorfunction,115gmstrftime()function,119,225,353,374GMT/UTC,216–19,224–25GoogleSearch.
wsdlfile,543graphs,331GreatCircleDistance,106greedyexpressions,358–59greedyqualifiers,359grepcommand,354HHcharacter,date()function,203,356hasAttribute()method,522header()function,322,324–26,459,513,520headers()function,605headers()method,603,606HEREDOCnotation,598HIDDENINPUTelement,HTMLform,488historyofPHP,1host,checkingwhetherisalive,623–27HREFattribute,oftag,470.
htaccessfile,475HTMLtags,capturingtextinside,373–75htmlspecialchars()function,375,506HTTPheadersforcingfile"SaveAs"downloads,462–63overview,459redirectingtodifferentlocation,460sendingcontenttypesotherthanHTML,461–62HTTP_REFERERargument,18HTTP_USER_AGENTargument,18HTTP-basedauthentication,475–81hyperbolicfunctions,105hyperlinks,replacingURLswith,377–79HypertextTransferProtocol(HTTP)header,513Iicharacter,date()function,203idate()function,199,353ifclause,arraysusedwith,403ifstatements,reducingnumberof,421imagelibraries,327imagecolorallocate()function,329–30imagecolorallocated()function,322imagecreate()function,322imagecreatefrom…function,337imagecreatefromjpeg()function,338imagedestroy()function,323imagefilledrectangle()function,329imagefontwidth()function,331,343imagegif()function,324–25image/gifcontenttype,462imagejpeg()function,322,324,341imagepng()function,325–26image/pngcontenttype,462imagerectangle()function,322Imagessection,RSSfile,531imagestring()function,325imagettfbbox()function,343–44imagettftext()function,344imaging,dynamic.
SeedynamicimagingIMAP(InternetMessageAccessProtocol)extension,597readingmailwith,602–12imap_8bit()function,612imap_alerts()function,612imap_append()function,612INDEX638imap_base64()function,612imap_binary()function,612imap_body()function,606,612imap_bodystruct()function,612imap_check()function,612imap_clearflag_full()function,612imap_close()function,612imap_createmailbox()function,612imap_delete()function,612imap_delete()method,612imap_deletemailbox()function,612imap_errors()function,612imap_expunge()function,612imap_expunge()method,612imap_fetch_overview()function,612imap_fetchbody()function,606,612imap_fetchheader()function,612imap_fetchstructure()function,606,613imap_get_quota()function,613imap_get_quotaroot()function,613imap_getacl()function,613imap_getmailboxes()function,613imap_getsubscribed()function,613imap_header()function,613imap_headerinfo()function,613imap_headers()function,613imap_last_error()function,613imap_list()function,613imap_listmailbox()function,613imap_listscan()function,613imap_listsubscribed()function,613imap_lsub()function,613imap_mail()function,597,613imap_mail_compose()function,613imap_mail_copy()function,613imap_mail_move()function,613imap_mailboxmsginfo()function,613imap_mime_header_decode()function,613imap_msgno()function,613imap_num_msg()function,613imap_num_recent()function,613imap_open()function,602,613imap_ping()function,613imap_qprint()function,613imap_renamemailbox()function,613imap_reopen()function,613imap_rfc822_parse_adrlist()function,613imap_rfc822_parse_headers()function,613imap_rfc822_write_address()function,613imap_scanmailbox()function,613imap_search()function,614imap_set_quota()function,614imap_setacl()function,614imap_setflag_full()function,614imap_sort()function,614imap_status()function,614imap_subscribe()function,614imap_thread()function,614imap_timeout()function,614imap_uid()function,614imap_undelete()function,614imap_unsubscribe()function,614imap_utf7_decode()function,614imap_utf7_encode()function,614imap_utf8()function,614implementskeyword,53implode()function,126,273implode()stringfunction,265in_array()function,164,175incrementoperator(++),422indexedarrays,121ini_get()function,17,484ini_get_all()function,17,484ini_set()function,17,485,548insertfunction,553,SQLinstanceof()function,395intfile_put_contentsmethod,295intfwritemethod,295Integerdatatypes,10–11,394interfacekeyword,53interface_exists()function,62–65interfacescheckingforexistenceof,63–65creatingusingconstructors,24–25discoveringavailabilityof,12–14listing,65,69–71overview,53using,53,55usingdefaultconstructors,26–27Internetservices,communicatingwithcheckingwhetherhostisalive,623–27gettingandputtingfileswithFTP,614–21gettinginformationaboutadomainname,627–29overview,597performingDNSlookups,621–23readingmailwithIMAPorPOP3,602–12sendingmail,597–602intval()function,89is_functions,11is_*()functions,395is_a()function,63,67,395is_array()function,236,395is_dir()function,309–10is_float()function,88,395is_int()function,88,395is_leap_year()function,252is_null()function,395is_numeric()function,87is_object()function,395is_readable()function,312is_rom()function,176INDEX639is_string()function,395is_subclass_of()function,63is_writable()function,295,312,319isLeapYear()method,252isMatchfunction,387isset()function,14,395Itemsection,RSSfile,531Itemssection,RSSfile,531Jjcharacter,date()function,202–3join()function,266,274joininganddisassemblingstrings,273–76Kkeys,394krsort()function,182kshuffle()function,183ksort()function,180Llcharacter,date()function,202leapyear,213–14lenargument,284lineanchors,352__LINE__magicconstantconstant,433linesinfiles,gettingnumberof,303links,replacingURLswith,377–79list()function,156–57,398listbox,507LISTelement,HTMLform,488ListData()function,420loadHTMLFile()method,523localtime()function,199,353Locationparameter,460log()function,100log10()function,100logarithmsandexponents,100–104log(base)function,100look-ahead,381look-arounds,355loosecomparisonoperators,399ltrim()function,266,279MMcharacter,date()function,202magicconstants,433mail,sending,597–602mail()function,597–99mailfactory,599Mailobject,599Mail_mimeclass,599markupcreatingandsettingattributes,520–22manuallygenerating,514–16overview,513–14parsingXML,523–28transformingXMLwithXSL,528–31usingDOMtogeneratemarkup,516–20usingRSSfeeds,531–38usingSimpleObjectAccessProtocol(SOAP),542–48usingWebDistributedDataExchange(WDDX),539–41Mathclass,116mathlibraries,113–16mathoperationsformattingofnumericdata,108–12formattingtypes,110logarithmsandexponents,100–104mathlibraries,113–16numericdatatypes,85–95randomnumbers,95–100Staticmathclass,116–18trigonometricfunctions,105–8max()function,166md5()function,455md5()-enabledvariable,456membervariable,414metacharacters,351__METHOD__magicconstantconstant,433method_exists()function,63methodsabstract,50–52listing,65overview,22–23microtime()function,199MIMEmessage,601MIMEtypes,462_mimetype()method,GetMailclass,612min()function,166mktime()function,199–200,205,228,240,354modify()function,170modifyingdatainMySQLdatabase,557–59money_format()function,112move_uploaded_file()function,505mt_rand()function,95,100mt_srand()function,95multidimensionalarrays,123multipageforms,494–96MultipurposeInternetMailExtensions(MIME)class,599MYARRAYconstant,410MySQLdatabasesbasicdatabaseconceptsbuildingqueriesonthefly,561–64connectingtoMySQLdatabase,551–52deletingdata,559–61modifyingdata,557–59overview,551queryingthedatabase,553–55INDEX640retrievinganddisplayingresults,555–57mysqlandmysqliextensionsdiscoveringwhichextensionisbeingused,579–80goingfromMySQLtoXMLandXMLtoMySQL,585–96overview,579writingwrapperclasstobridgegapbetween,580–85overview,551mysqlfunction,580mysql_close()function,552mysql_connect()function,551mysql_errno()function,571mysql_error()function,571mysql_fetch_array()function,555,557mysql_fetch_assoc()function,154,596mysql_num_rows()function,561mysql_query()function,553,555mysql_real_escape_string()function,564mysql_select_db()function,555mysqliextensiondisplayinglinkedsearchresults,571–76usingexceptionstohandledatabaseerrors,567–71usingmysqliObject-OrientedAPI,564–67andmysqlextensiondiscoveringwhichextensionisbeingused,579–80goingfromMySQLtoXMLandXMLtoMySQL,585–96overview,579writingwrapperclasstobridgegapbetween,580–85vs.
PHP4MySQLextensiondisplayingresultsinaform,576–78overview,564mysqlifunction,580mysqli_fetch_assoc()function,154mysqltoxml()method,595–96Nncharacter,date()function,202nameargument,$_FILESsuperglobal,505nameproperty,25negativelook-aheads,355negativelook-behinds,355Net_Pingclass,623Net_Whoisclass,628NetworkAddressTranslation(NAT),623NetworkNewsTransportProtocol(NNTP),602nl2br()function,280nogovalue,493nongreedyexpressions,358–59nongreedyqualifiers,360NULLdatatypes,10–11NULLvalue,394num_msg()method,603num_recent()method,603number_format()function,109numbers,4–5numericdatatypes,85–95numericvalues,passinginquerystrings,471–72OOcharacter,date()function,203,356Objectdatatype,394objectsdeterminingwhetherisaninstanceofparticularclass,67–69gettinginformationabout,61obtainingvariablenames,66overview,22settingobjectproperties,27–29opendir()function,309–10openingfiles,291–93ORoperator,353,384ord()function,179orderelement,228ordered(indexed)arrays,126Ppagereaderclass,285–90paragraphs,gettingnumberofinfiles,304–5parentkeyword,46parse()method,234parsing,528valuestofunctions,417–21XML,523–27pascalcasenames,validating,361–62PASSWORDINPUTelement,HTMLform,488passwords,testingcomplexityof,380–81pathinfo()function,312patternscreatingandapplying,331–34matching,vs.
stringmatching,356–58PCRE(Perl-CompatibleRegularExpressions),355–56PCREconstant,387PEARclass,531–32pearinstallmailcommand,599pearinstallMail_mimecommand,599PEAR::DNSclass,621PEARI::Net_Ping,624PEAR::Mailclass,599PEAR::Mail_mimeclass,599PEAR::XMLclass,532PEAR::XML_RSSclass,531–32INDEX641permutations()function,192phonenumbers,formatting,365–66PHPExtensionandApplicationRepository(PEAR),597PHPtags,513–14PHP_SELFargument,18phpcredits()function,14PHP-GTKscripts,396phpinfo()function,14,484php.
inifile,327phpversion()function,16pi()function,105piegraphs,331pingcommand,624pingmethod,627pingprogram,623PNGs,321,325–28positivelook-aheads,355positivelook-behinds,355POSIX(PortableOperatingSystemImplementation),354POSTmethodandforms,vs.
GETmethod,488–90PostOfficeProtocol3(POP3),readingmailwith,602–12pow()function,101preg_match()function,7,290,356,358,373,387preg_match_allfunction,384,387preg_replacemethod,356,387preparemethod,567preparestatement,567priceproperty,25printstatement,514print_r()function,71,130,229,405printf()function,4,31,108,166Privateclass,414privateclassmember,32privateproperty,405promote()method,40–41propertiesoverview,22–23setting,27–29propertyvariable,414Protectedclass,414protectedclassmember,32Publicclass,414publicproperty,32,405putenv()function,217Qqualifiers,352queryingMySQLdatabases,553–55,561–64querystringsoverview,470passingcomplexvaluesin,473–75passingnumericvaluesin,471–72passingstringvaluesin,472–73using,470–71quotes,smartandstraight,380Rrargument,293rcharacter,date()function,203r+argument,293rad2deg()function,105RADIOelement,HTMLform,488rand()function,95randomnumbers,95–100range()function,124ranges,352RDFSiteSummary/RichSiteSummary(RSS)file,514rdftag,531readdir()function,309–10readingbinarydata,301–2comma-separateddata,298,300cookies,455–56environmentandconfigurationvariables,484–85fromfiles,293–94fixed-widthdelimiteddata,300–301mailwithIMAPorPOP3,602–12recordswithadelimiter,382–84recursivedirectorylisting,314–16recursivefunction,316RecursiveDirectoryIteratorobject,316–18RecursiveIteratorIterator,317redattribute,imagecolorallocated()function,322red-green-blue(RGB)spectrum,322redundantcode,437ReflectionAPI,61obtainingdumpof,73–75overview,71,73performingdynamicclassinstantiation,76–77usingtodeconstructShapeclass,77–82Reflectionclass,71,73ReflectionClassclass,73,76ReflectionClass::getDocComment()method,78ReflectionClass::getProperties()method,79ReflectionExceptionclass,73Reflection::export()method,74,79ReflectionExtensionclass,73ReflectionFunctionclass,73ReflectionMethodclass,73,76ReflectionMethod::getDocComment()method,78ReflectionMethod::invoke()method,77INDEX642ReflectionParameterclass,73ReflectionPropertyclass,73ReflectionPropertymethod,79Reflectorinterface,71Regexclass,385RegExpclass,385–90register_globalsvalue,3,490regularexpressionscapturingtextinsideHTMLorXMLtags,373–75creatingownRegExpclass,385–90escapingspecialcharacters,375–77findingallmatchinglinesinafile,371–72findinglineswithoddnumbersofquotes,372–73findingnthoccurrenceofamatch,358findingrepeatedwords,367–68findingwordsnotfollowedbyotherwords,368–69formattingphonenumbers,365–66matchingavalide-mailaddress,369–71matchingGUIDs/UUIDs,381–82matchingvalidIPaddress,360–61matchingwithgreedyvs.
nongreedyexpressions,358–59overview,7–8,351,356PCRE(Perl-CompatibleRegularExpressions),355–56POSIX(PortableOperatingSystemImplementation),354readingrecordswithadelimiter,382–84replacingsmartquoteswithstraightquotes,380replacingURLswithlinks,377–79syntaxcharacterclasses,353escapecharacter,353lineanchors,352ORoperator,353overview,351qualifiers,352ranges,352testingcomplexityofpasswords,380–81usingstringmatchingvs.
patternmatching,356–58validatingpascalcasenames,361–62validatingU.
S.
currency,363–65REMOTE_ADDRargument,18REMOTE_PORTargument,18removeAttribute(),DomElementobject,522replacefunction,387REQUEST_METHODargument,18REQUEST_TIMEargument,18require_once()function,48RESETelement,HTMLform,488Resourcedatatype,10–11,394returnmethod,443reversingstrings,277round()function,108RSSfeeds,531–34,536,538RSSdb()class,534RSSdbclass,538rtrim()function,266,279SScharacter,date()function,202,356\sexpression,355safe_mode_protected_env_varsconfigurationvariable,217safe_sqrt()function,174SaveAsdialogbox,462saveHTML()function,516saveXML()function,516,520savingmodifiedimages,340–41scandir()function,309–11SCRIPT_FILENAMEargument,18SCRIPT_NAMEargument,18SELECTelement,HTMLform,488selectfunction,553selectstatement,561selfkeyword,33–34sendingmail,597–602sendmailprogram,599"sendmail-t-i"defaultvalue,Unixsystem,598sendmail_fromvalue,Windowssystem,598sendmail_pathsetting,Unixsystem,598serialize()function,410,425,473SERVER_PROTOCOLargument,18session_commit()function,429session_destroy()function,465session_start()function,429,465session_write_close()function,429sessionsdetectingbrowsers,467–69implementing,464–65overview,463storingcomplexdatatypesin,466–67storingsimpledatatypesin,465–66set*()method,238,243set_error_handler()function,59set_value()method,414SetAge()method,405setAttribute()method,520–21setCategory()method,40setcookie()function,454,457setDate()method,240,387setHours()method,233setlocale()function,112,220setName()method,44,48setPrice()method,28,44setTime()method,242INDEX643setTimeZoneOffset()method,242settype()function,10–11setUTCMinutes()function,244SetValue()classmethod,cachingclass,426setWidthHeight()function,348Shapeclass,63,73,77–82shapes,creatingandapplying,331–34shmopextensionfunctions,430shmop_close()function,430shmop_delete()function,430shmop_open()function,430shmop_read()function,430shmop_size()function,430shmop_write()function,430ShowChart()function,102shuffle()function,183simpledatatypes,storinginsessions,465–66SimpleMailTransferProtocol(SMTP)mailserver,597SimpleObjectAccessProtocol(SOAP),542–48simplexml_load_file()method,596SIMPLEXMLElementobject,596sin()function,105sinh()function,105SiteUserclass,55sizeargument,$_FILESsuperglobal,505slashdot.
xmlfile,529–31smartquotes,replacingwithstraightquotes,380smtpfactory,599SMTPvalue,Windowssystem,598smtp_portvalue,Windowssystem,598__soapCall()method,544–45SoapClient()class,542–45SoapServer()class,548socketcommunication,597sort()function,178soundex()function,284soundexkey,284specialcharacters,escaping,375–77spiders,285SPLDirectoryIteratorobject,316–18sprintf()function,4,108SQLinjection,561srand()function,95SRCattribute,IMGtag,322,334–36SRCtag,321stat()function,215Staticclass,414statickeyword,33,116staticmathclass,116–18staticmembers,33–34storyelement,523–24,530str_split()function,266,275straightquotes,replacingsmartquoteswith,380strcasecmp()function,284strchr()stringfunction,265strchr()substringfunction,266strcmp()function,266,278,283,389strfmon()function,112strftime()function,199,220strictcomparisonoperators,400Stringdatatype,394stringfgetcmethod,293stringfgetsmethod,293stringfreadmethod,293stringmatching,vs.
patternmatching,356–58strings.
Seealsosubstringscheckinglength,282comparing,283–85controllingcase,277–79creatingandusingstringclass,285–90joininganddisassembling,273–76overview,6,265reversing,277stringvalues,passinginquerystrings,472–73trimmingblankspaces,279–80wrappingtext,280–82strip_tags()function,506stristr()function,265–66,271strlen()function,265,282,394strncasecmp()function,284strncmp()function,283strops()function,266strpos()function,265,268strptime()function,199strrchr()function,265–66,271strrev()function,277strstr()function,265–66,271strtok()function,265,275strtolower()function,266,277strtotime()function,199,205–7strtoupper()function,266,277SUBMITelement,HTMLform,488substr()function,265–66,269–70,301,319substr_count()function,265–68substr_replace()function,265–66,271substringsaccessing,269–70countingoccurrencesof,269functions,266replacing,271–72testingfor,267–69usingsubstringalternatives,270–71superglobals,412–13,447–48,490–91switchstatements,reducingnumberof,421INDEX644T\texpression,355tableelement,520–22tan()function,105tanh()function,105testingcomplexityofpasswords,380–81text,centering,339TEXTINPUTelement,HTMLform,488TEXTAREAelement,HTMLform,488text/plaincontenttype,462thiskeyword,34throwkeyword,59time()function,199–201,353–54times.
Seedatesandtimestitleattribute,527–28tmp_nameargument,$_FILESsuperglobal,505toGMTString()method,246toLocaleString()method,233,246,253__toString()method,60toString()method,238__toStringmethod,387transformingXMLwithXSL,528–31trigonometricfunctions,105–8trim()function,266,279–80,506tRSSFeedtable,534truebooleantype,438TrueTypefontsapplyingtoimages,343–45creatingandusingdynamicthumbnailclass,345–49loadingfonts,342–43typeargument,$_FILESsuperglobal,505typecasting,89,402–7TZvalue,216UUcharacter,date()function,203uasort()function,185ucfirst()function,266,278ucwords()function,266,278Unixtimestamps,200,205–7unserialize()function,425,473unset()function,55,147,396,398,465updatestatement,578UpdateChannel()method,534,536uppercamelcase,361urldecode()function,470urlencode()function,470URLs,replacingwithlinks,377–79U.
S.
currency,validating,363–65usort()function,185/usr/share/localedirectory,220UTC()method,234,382UTCString()method,246utf8_decode()function,540utf8_encode()function,519,539–40UUIDs,381–82Vvalidatelogin()function,438validatingforminput,491–93pascalcasenames,361–62U.
S.
currency,363–65valueOf()method,246valuesparsingtofunctions,417–21passingbyreference,439–40returningbyreference,443–45var_dump()function,130var_export()function,130,160,188variablesassigningandcomparing,396–401debugging,431–34definingvariablescope,411–17discoveringavailabilityof,12–14encapsulatingcomplexdatatypes,425–28environmentandconfigurationvariables,484–85obtainingvariablenames,66overview,2,393parsingvaluestofunctions,417–21sharingbetweenprocesses,429–31typecasting,402–7usingconstants,408–10usingdynamicvariableandfunctionnames,421–25usingvariabletypes,394–96verdana.
ttffile,342–43visibility,32–33Wwargument,293wcharacter,date()function,202\wexpression,355w+argument,293wddx_add_vars()function,539wddx_deserialize()function,539wddx_packet_end()function,539,541wddx_packet_start()function,539,541wddx_serialize_value()function,539wddx_serialize_vars()function,539Webbasicsauthenticatinguserscookieauthentication,481–83HTTP-basedauthentication,475–81overview,475cookiesdeleting,456–57overview,453INDEX645Webbasics(continued)reading,455–56setting,454–55writingandusingacookieclass,457–59environmentandconfigurationvariables,484–85HTTPheadersforcingfile"SaveAs"downloads,462–63overview,459redirectingtodifferentlocation,460sendingcontenttypesotherthanHTML,461–62overview,453querystringsoverview,470passingcomplexvaluesin,473–75passingnumericvaluesin,471–72passingstringvaluesin,472–73using,470–71sessionsdetectingbrowsers,467–69implementing,464–65overview,463storingcomplexdatatypesin,466–67storingsimpledatatypesin,465–66WebDistributedDataExchange(WDDX),539–41weekofyear,211–12weekday,findingdatefor,207–11words,gettingnumberofinfiles,304–5wordwrap()function,281wrappingtext,280–82writingbinarydata,301–2comma-separateddata,298,300cookieclass,457–59tofiles,295–96.
wsdldocument,545–48.
wsdlfile,542–43XXargument,293\xcharacterclass,380x+argument,293,319XMLoutputtingfromMySQLorconvertingtobereadbyMySQL,585–96parsing,523–28transformingwithXSL,528–31XMLtagscapturingtextinside,373–75namesof,362XML_RSSclass,532,534xmltomysql()method,596XSL,transformingXMLwith,528–31XSLTransformations(XSLT),8,528xsltProcessor()function,528YYcharacter,date()function,203ZZcharacter,date()function,203INDEX646
企鹅小屋:垃圾服务商有跑路风险!企鹅不允许你二次工单的,二次提交工单直接关服务器,再严重就封号,意思是你提交工单要小心,别因为提交工单被干了账号!前段时间,就有站长说企鹅小屋要跑路了,站长不太相信,本站平台已经为企鹅小屋推荐了几千元的业绩,CPS返利达182.67CNY。然后,站长通过企鹅小屋后台申请提现,提现申请至今已经有20几天,企鹅小屋也没有转账。然后,搞笑的一幕出现了:平台账号登录不上提示...
对于如今的云服务商的竞争着实很激烈,我们可以看到国内国外服务商的各种内卷,使得我们很多个人服务商压力还是比较大的。我们看到这几年的服务商变动还是比较大的,很多新服务商坚持不超过三个月,有的是多个品牌同步进行然后分别的跑路赚一波走人。对于我们用户来说,便宜的服务商固然可以试试,但是如果是不确定的,建议月付或者主力业务尽量的还是注意备份。HostYun 最近几个月还是比较活跃的,在前面也有多次介绍到商...
现在宝塔面板真的是越来越过分了,删除文件、删除数据库、删除站点等操作都需要做计算题!我今天升级到7.7版本,发现删除数据库竟然还加了几秒的延时等待,也无法跳过!宝塔的老板该不会是小学数学老师吧,那么喜欢让我们做计算题!因此我写了个js用于去除各种计算题以及延时等待,同时还去除了软件列表页面的bt企业版广告。只需要执行以下命令即可一键完成!复制以下命令在SSH界面执行:Layout_file="/w...
phpinfo为你推荐
域名价格什么是域名的商业价值??虚拟主机服务器虚拟主机和站点服务器什么区别linux主机linux优点和缺点有哪些啊?asp主机asp.net虚拟主机怎么样,它和asp虚拟主机是不是一样的,求解释免费国外空间免费国外空间免费域名空间求1个免费空间送域名那种域名备案域名备案需要什么免备案虚拟空间教你怎么看免备案虚拟主机空间php虚拟空间怎样修改php虚拟空间单个文件上传大小限制香港虚拟主机推荐一下香港的虚拟主机公司!
欧洲免费vps softbank官网 谷歌香港 好看qq空间 小米数据库 免费mysql 双拼域名 世界测速 免费测手机号 免费私人服务器 空间登录首页 上海电信测速 东莞主机托管 可外链的相册 买空间网 hostease wordpress空间 privatetracker 新网dns 九零网络 更多