php342
1. 如何用php得到一個給定IP是屬於哪個國家地區 - 技術問答
純真IP資料庫,能不能說明白點,要不你給我把代碼看一下錯在哪裡.
2. PHP 位運算符
$h=16,$c=4,表達式16<<4的值為256,因為16(即二進制的00010000)向左移四位等於256(即二進制的100000000)
3. centOS 安裝php5.3.28時報錯
解決方法:
1.換成php版本5.3.27試試
2.或者在使用./confingure編繹時,不要載入「--enable-maintainer-zts」參數,「--enable-maintainer-zts」參數的作用是啟用線程安全。
4. C#能不能像PHP一樣定義數組
你可以用ArrayList,裡面是object型,什麼類型都能放,然後按key來取值,key也是object型的。怎麼用都行。
當然也可以用HashTable,HashTable還是線性安全的。
具體的你可以看msdn中關於
System.Collections.ArrayList 和
System.Collections.Hashtable
的資料
5. 如何在php上安裝phalcon
下載phalcon 把phalcon.dll 放到相關目錄,一般是ext裡面 在php.ini中添加 extension=phalcon.dll 重啟環境print_r(preg_grep('/^phalcon/i', get_declared_classes()));
Array
(
[145] => PhalconException
[146] => PhalconDbAdapter
[147] => PhalconDIInjectable
[148] => PhalconDI
[149] => PhalconFormsElement
[150] => PhalconMvcModelValidator
[151] => PhalconValidationValidator
[152] => PhalconCacheBackend
[153] => PhalconDbAdapterPdo
[154] => PhalconDbDialect
[155] => PhalconMvcModelMetaData
[156] => PhalconAnnotationsAdapter
[157] => PhalconLoggerFormatter
[158] => PhalconLoggerAdapter
[159] => PhalconFlash
[160] => PhalconMvcModelBehavior
[161] => PhalconDispatcher
[162] => PhalconMvcModelResultset
[163] => PhalconMvcViewEngine
[164] => PhalconMvcModelException
[165] => PhalconAssetsResource
[166] => PhalconConfig
[167] => PhalconSessionAdapter
[168] => PhalconAclAdapter
[169] => PhalconTranslateAdapter
[170] => PhalconDIFactoryDefault
[171] => PhalconMvcRouter
[172] => PhalconTag
[173] => PhalconAcl
[174] => PhalconDb
[175] => PhalconCacheException
[176] => PhalconCacheMultiple
[177] => PhalconCacheBackendApc
[178] => PhalconCacheBackendFile
[179] => PhalconCacheBackendMongo
[180] => PhalconCacheBackendMemory
[181] => PhalconCacheBackendMemcache
[182] => PhalconCacheFrontendOutput
[183] => PhalconCacheFrontendNone
[184] => PhalconCacheFrontendJson
[185] => PhalconCacheFrontendBase64
[186] => PhalconCacheFrontendData
[187] => PhalconTagSelect
[188] => PhalconTagException
[189] => PhalconPaginatorException
[190] => PhalconPaginatorAdapterModel
[191] =>
[192] =>
[193] => PhalconValidation
[194] => PhalconValidationMessage
[195] => PhalconValidationException
[196] => PhalconValidationMessageGroup
[197] =>
[198] =>
[199] =>
[200] =>
[201] =>
[202] =>
[203] =>
[204] =>
[205] =>
[206] => PhalconDbIndex
[207] => PhalconDbColumn
[208] => PhalconDbAdapterPdosqlite
[209] => PhalconDbAdapterPdoMysql
[210] => PhalconDbAdapterPdoOracle
[211] => PhalconDbAdapterPdoPostgresql
[212] => PhalconDbDialectOracle
[213] => PhalconDbDialectMysql
[214] => PhalconDbDialectSqlite
[215] => PhalconDbDialectPostgresql
[216] => PhalconDbException
[217] => PhalconDbProfiler
[218] => PhalconDbProfilerItem
[219] => PhalconDbReference
[220] => PhalconDbRawValue
[221] => PhalconDbResultPdo
[222] => PhalconAclRole
[223] => PhalconAclResource
[224] => PhalconAclAdapterMemory
[225] => PhalconAclException
[226] => PhalconText
[227] => PhalconKernel
[228] => PhalconSecurity
[229] => PhalconSecurityException
[230] => PhalconVersion
[231] => PhalconSession
[232] => PhalconSessionBag
[233] => PhalconSessionException
[234] => PhalconSessionAdapterFiles
[235] => PhalconFilter
[236] => PhalconDIException
[237] => PhalconDIFactoryDefaultCLI
[238] => PhalconDIService
[239] => PhalconDIServiceBuilder
[240] => PhalconFilterException
[241] => PhalconFlashDirect
[242] => PhalconFlashSession
[243] => PhalconFlashException
[244] => PhalconCLITask
[245] => PhalconCLIRouter
[246] => PhalconCLIConsole
[247] => PhalconCLIConsoleException
[248] => PhalconCLIDispatcher
[249] => PhalconCLIDispatcherException
[250] => PhalconCLIRouterException
[251] => PhalconAnnotationsReader
[252] => PhalconAnnotationsException
[253] => PhalconAnnotationsReflection
[254] => PhalconAnnotationsAnnotation
[255] => PhalconAnnotationsCollection
[256] => PhalconAnnotationsAdapterApc
[257] =>
[258] =>
[259] => PhalconLoader
[260] => PhalconLogger
[261] => PhalconLoaderException
[262] => PhalconLoggerItem
[263] => PhalconLoggerMultiple
[264] => PhalconLoggerException
[265] => PhalconLoggerAdapterStream
[266] => PhalconLoggerAdapterFile
[267] => PhalconLoggerFormatterJson
[268] => PhalconLoggerAdapterSyslog
[269] => PhalconLoggerFormatterLine
[270] => PhalconLoggerFormatterSyslog
[271] => PhalconConfigException
[272] => PhalconConfigAdapterIni
[273] => PhalconFormsForm
[274] => PhalconFormsManager
[275] => PhalconFormsException
[276] => PhalconFormsElementFile
[277] => PhalconFormsElementText
[278] => PhalconFormsElementDate
[279] => PhalconFormsElementHidden
[280] => PhalconFormsElementNumeric
[281] => PhalconFormsElementSubmit
[282] => PhalconFormsElementCheck
[283] => PhalconFormsElementSelect
[284] => PhalconFormsElementPassword
[285] => PhalconFormsElementTextArea
[286] => PhalconCrypt
[287] => PhalconTranslate
[288] => PhalconTranslateException
[289] =>
[290] => PhalconCryptException
[291] => PhalconEscaper
[292] => PhalconEscaperException
[293] => PhalconAssetsManager
[294] => PhalconAssetsException
[295] => PhalconAssetsResourceJs [296] => PhalconAssetsCollection
[297] => PhalconAssetsResourceCss
[298] => PhalconHttpCookie
[299] => PhalconHttpRequest
[300] => PhalconHttpResponse
[301] => PhalconHttpCookieException
[302] => PhalconHttpRequestFile
[303] => PhalconHttpResponseCookies
[304] => PhalconHttpResponseHeaders
[305] => PhalconHttpRequestException
[306] => PhalconHttpResponseException
[307] => PhalconQueueBeanstalk
[308] => PhalconQueueBeanstalkJob
[309] => PhalconMvcUrl
[310] => PhalconMvcView
[311] => PhalconMvcMicro
[312] => PhalconMvcModel
[313] => PhalconMvcApplication
[314] =>
[315] => PhalconMvcCollection
[316] => PhalconMvcController
[317] => PhalconMvcCollectionManager
[318] => PhalconMvcCollectionException
[319] => PhalconMvcDispatcher
[320] => PhalconMvcDispatcherException
[321] => PhalconMvcModelQuery
[322] => PhalconMvcModelRow
[323] => PhalconMvcMicroLazyLoader
[324] => PhalconMvcMicroCollection
[325] => PhalconMvcMicroException
[326] => PhalconMvcModelMessage
[327] => PhalconMvcModelCriteria
[328] => PhalconMvcModelRelation
[329] => PhalconMvcModelManager
[330] => PhalconMvcModelTransaction
[331] => PhalconMvcModelQueryLang
[332] => PhalconMvcModelMetaDataFiles
[333] => PhalconMvcModelMetaDataApc
[334] => PhalconMvcModelQueryStatus
[335] => PhalconMvcModelQueryBuilder
[336] => PhalconMvcModelValidatorUrl
[337] => PhalconMvcModelMetaDataMemory
[338] =>
[339] =>
[340] =>
[341] => PhalconMvcModelValidatorEmail
[342] =>
[343] => PhalconMvcModelValidatorRegex
[344] =>
[345] =>
[346] =>
[347] =>
[348] =>
[349] =>
[350] =>
[351] =>
[352] =>
[353] =>
[354] =>
[355] =>
[356] =>
[357] => PhalconMvcRouterGroup
[358] => PhalconMvcRouterRoute
[359] => PhalconMvcRouterException
[360] => PhalconMvcRouterAnnotations
[361] => PhalconMvcUserPlugin
[362] => PhalconMvcUserMole
[363] => PhalconMvcUrlException
[364] => PhalconMvcUserComponent
[365] => PhalconMvcViewException
[366] => PhalconMvcViewEnginePhp
[367] => PhalconMvcViewEngineVolt
[368] =>
[369] => PhalconEventsEvent
[370] => PhalconEventsManager
[371] => PhalconEventsException)
備註:芝麻背調整理回答。芝麻背調,用技術推動行業進步。
6. php有1,2,3,4個數字,能組成多少個互不相同且無重復數字的三位數都是多少
能組成 A(4,3)=4*3*2=24 個互不相同且無重復數字的三位數
從小到大依次是:
123、124、132、134、142、143、
213、214、231、234、241、243、
312、314、321、324、341、342、
412、413、421、423、431、432
7. bear hug infusion多少錢一瓶
bear hug infusion:CHF 42.00 加 8%的增值稅,加上運輸費用(1 CHF = 8.1408 CNY,所以總計342RMB加8%的增值稅,加上運輸費用)。
一般價位都介於30-50左右瑞士法郎,Birrecco比較貴需要108瑞士法郎。
具體的你可以看一下官網。
參考資料:http://exclusivebottle.com/index.php
8. PHP系列沖洗液應用研究
(一)PHP系列沖洗液護壁機理
PHP是由聚丙烯醯胺(PAM)水解而成,是伸展的長鏈高分子化合物,具有多種非離 子吸附基團,如-CONH2等,可通過氫鍵吸附粘土表面,在岩層表面因多點吸附而形成薄 的吸附膜,不僅對水敏性地層可減輕泥漿濾液對地層的侵蝕作用,而且對破碎地層,也可 因阻止濾液滲入裂縫和多點吸附膜的保護而不易產生坍塌掉塊,故PHP沖洗液具有較好的 護壁性能。
當地層為構造破碎,裂隙發育,有掉塊現象,在PHP加入醇解度99%的聚乙烯醇(PVA),形成PHP+PVA復配型無固相沖洗液,可取得較好護壁效果;當鑽遇礦層頂底板蝕 變帶含有綠泥石等水敏性地層時,可採用由PHP加腐殖酸鉀配製的無固相沖洗液。
(二)應用情況
採用PHP系列無固相沖洗液,在一般破碎地層鑽進,基本能夠解決孔壁穩定、潤滑 和防止WL鑽桿內壁結垢問題,取得較好的使用效果,與過去採用的細分散泥漿相比,平 均台月效率由原來的342m提高到430m,提高幅度達25.7%;孔內事故及停待率由原來的 31.25%下降為20.49%;優質孔率由原來的70%~80%提高到90%以上[62]。