利用ini_set可以快速的修改php.ini配置设置哦,无需打开php.ini就可以了,特别是虚拟主机时你没有修改php.ini的权限时就会发现这个函数的作用了,关于ini_set,post_max_size,upload_max_filesize,magic_quotes_gpc等用ini_set设置不了的解决办法!
- ini_set(‘max_execution_time’,’10′);
- ini_set(‘memory_limit’,’1024M’);
- echo ‘max_execution_time = ‘ . ini_get(‘max_execution_time’) . ”
- “;
- echo ‘memory_limit = ‘ . ini_get(‘memory_limit’) . ”
- “;
- echo ‘post_max_size = ‘ . ini_get(‘post_max_size’) . ”
- “;
- echo ‘upload_max_filesize = ‘ . ini_get(‘upload_max_filesize’) . ”
- “;
- ini_set(‘max_execution_time’,’10′);
- ini_set(‘memory_limit’,’1024M’);
注意:post_max_size,upload_max_filesize用下面的方法是修改不了的.
ini_set(‘post_max_size’,’1024M’);
ini_set(‘upload_max_filesize’,’1024M’);
正确做法是用.htaccess文件:
- php_value upload_max_filesize “80M”
- php_value post_max_size “80M”
- php_value max_execution_time “2000″
- php_value memory_limit “150M”
实例设置max_execution_time,代码如下:
- <?
- $old_max_execution_time = ini_set('max_execution_time', 120);
- echo "old timeout is $old_max_execution_time <br />";
- $max_execution_time = ini_get('max_execution_time');
- echo "new timeout is $max_execution_time <br />";
- echo 'function sets supported in this install are:<br />';
- $extensions = get_loaded_extensions();
- foreach ($extensions as $each_ext)
- {
- echo "$each_ext <br />";
- echo '<ul>';
- $ext_funcs = get_extension_funcs($each_ext);
- foreach($ext_funcs as $func)
- {
- echo "<li> $func </li>";
- }
- echo '</ul>';
- }
- ?>
补充知识点:其实在php文档里有说明upload_max_filesize的可修改范围是PHP_INI_PERDIR,PHP_INI_PERDIR的意思是域内指令可以在php.ini、httpd.conf或.htaccess文件中修改。
PHP_INI_SYSTEM 域内指令可以在php.ini和httpd.conf文件中修改,所以upload_max_filesize用int_set是无法修改的,只有可修改范围是PHP_INI_ALL的才可以用int_set修改。
magic_quotes_gpc 用 get_magic_quotes_gpc() 获得,不能用 set_magic_quotes_gpc 修改,原因是没这个函数。而magic_quotes_runtime可以用set_magic_quotes_runtime()来设置
波比源码 » php ini_set函数无效怎么解决
buy levofloxacin online levaquin cheap
order avodart generic zofran 4mg sale order ondansetron 8mg
buy aldactone for sale buy valtrex for sale diflucan 200mg cheap
generic ampicillin order cephalexin online order erythromycin 250mg generic
sildenafil for sale brand nolvadex purchase robaxin for sale
sildenafil for sale order sildenafil 100mg for sale estrace 2mg over the counter
lamotrigine 200mg without prescription buy prazosin 1mg pills order tretinoin without prescription
tadalafil 20mg pill cheap diclofenac order generic voltaren 50mg
accutane 20mg over the counter cheap amoxicillin 250mg order zithromax online
buy indocin 75mg pill buy indomethacin 50mg pill buy amoxicillin sale
order cialis 5mg sale Discount viagra sildenafil tablets
original cialis 20mg rezeptfrei sicher kaufen viagra generika rezeptfrei kaufen viagra 100mg ohne rezept
order benicar 20mg online cheap benicar 20mg ca buy diamox 250mg pill
bupropion 150 mg brand strattera online buy seroquel 100mg for sale
imuran 100 mcg usa buy protonix 20mg sale viagra 50mg for sale
cialis without prescription buying viagra in costa rica sildenafil 100 mg
cost tadalafil 10mg cost cialis 20mg order generic symmetrel
order revia for sale femara 2.5mg over the counter aripiprazole 30mg cheap
provera 5mg usa order provera 5mg online cheap buy periactin 4 mg
provigil 200mg sale express pharmacy ivermectin us
fluvoxamine price cymbalta 20mg us glipizide 5mg usa
accutane 40mg over the counter accutane 10mg without prescription buy prednisone pills
piracetam 800mg ca purchase viagra pill oral viagra 100mg
order zithromax 250mg pills buy prednisolone 40mg sale buy gabapentin for sale
cialis pill betnovate 20gm canada clomipramine 50mg pills
aralen pills olumiant 4mg generic brand baricitinib 4mg
glucophage 500mg uk tadalafil 10mg pill cialis 20mg tablet
buy clozaril 100mg pill combivent 100 mcg without prescription decadron pills
cheap viagra pill lisinopril 10mg generic lisinopril 5mg for sale
zyvox order free welcome spins no deposit poker games online
cost prilosec 20mg edit letter online poker
lopressor ca vardenafil generic buy levitra sale
term paper service free spins no deposit required poker online best
order vardenafil 20mg buy generic pregabalin 150mg buy medrol uk
academia writers dissertation assistance order viagra 50mg sale
order clomid generic no deposit casino online blackjack casino
order generic cialis 40mg cialis 10mg over the counter order sildenafil 100mg for sale
buy triamcinolone 4mg buy generic claritin 10mg clarinex drug
xenical price order orlistat 120mg pills order zovirax 400mg for sale
methotrexate 10mg ca order metoclopramide 20mg sale metoclopramide pill
buy cozaar 50mg online cheap topamax 200mg over the counter order generic topamax
buy generic sumatriptan 50mg sumatriptan pills order avodart online
colchicine 0.5mg us generic gloperba best real casino online
ranitidine 300mg for sale zantac cost celebrex oral
blackjack online casino games online free poker online games
generic tadalafil 5mg tadalafil 10mg oral cipro 1000mg generic
cialis 20mg generic order tadalafil 5mg generic order sildenafil 100mg sale
desyrel 50mg over the counter purchase sildenafil buy aurogra 100mg generic
websites to write essays stromectol 6mg us ivermectin 6mg stromectol
prednisone 10mg cost accutane without prescription amoxil generic
san manuel casino online casino games free tadalafil 10mg usa
zithromax buy online purchase zithromax online gabapentin 600mg tablet
purchase lasix generic oral doxycycline 100mg buy hydroxychloroquine pill
sildenafil 50mg usa nolvadex 10mg cost order budesonide online
tretinoin gel uk avanafil 200mg generic buy avana online cheap
order biaxin 500mg online catapres drug order antivert sale
order generic proventil 100 mcg order ciprofloxacin 500mg order cipro online cheap
nifedipine drug cost aceon 8mg purchase fexofenadine online cheap
order altace 10mg amaryl sale order generic etoricoxib 120mg
doxycycline online order order doxycycline 100mg generic cleocin pills
oral mesalamine 800mg buy avapro 150mg generic avapro over the counter
alendronate pill order nitrofurantoin 100mg generic motrin 400mg over the counter
dapoxetine 30mg brand order avanafil 200mg sale buy domperidone 10mg
pamelor 25mg pill order panadol 500 mg without prescription paxil cost
doxycycline 100mg brand aralen 250mg usa cheap medrol
Thank you great post. Hello Administ . Metropol Halı Karaca Halı Öztekin ve Selçuklu Halı Cami Halısı ve Cami Halıları Türkiye’nin En Büyük Cami Halısı Fabrikasıyız…
cheap tadalafil 5mg Buy cialis in usa viagra without prescription
minocin 50mg cost gabapentin 600mg usa buy terazosin 5mg
order generic glycomet 500mg order generic nolvadex 10mg cost nolvadex 20mg
prednisone 5mg sale amoxil price purchase amoxil generic
order clomid order generic clomiphene 50mg oral prednisolone 40mg
buy isotretinoin 40mg pills cheap deltasone 10mg buy acillin generic
order zofran 8mg online cheap buy amoxicillin 500mg online cheap bactrim order online
ivermectin 12mg for people ed pills that work order prednisone 10mg online cheap
cost isotretinoin 10mg buy azithromycin sale azithromycin 250mg cost
prednisolone 5mg us order furosemide 40mg pill buy lasix pill
order monodox pill order levitra 20mg generic zovirax usa
simvastatin over the counter purchase simvastatin for sale sildenafil otc
order uroxatral 10 mg online diltiazem price diltiazem tablet
purchase ezetimibe pills methotrexate 5mg cheap buy methotrexate without a prescription
cheap warfarin purchase allopurinol for sale zyloprim 100mg cheap
buy generic zyrtec order strattera sale order generic zoloft 100mg
cenforce 100mg without prescription cenforce 100mg tablet cost glycomet 500mg
lexapro 10mg cheap buy escitalopram online cheap naltrexone 50mg over the counter
order letrozole 2.5 mg online femara uk viagra 100mg brand
buy tadalafil 40mg sale buy tadalafil in usa buy ed pills sale
ivermectin 6mg online order isotretinoin 20mg sale order absorica online
Thank you for great content. Hello Administ.Click on the Keyword to Enter the Website. valorant cheat buy
purchase amoxil for sale buy zithromax without a prescription order prednisolone 40mg generic
order accutane 40mg sale cheap amoxicillin without prescription azithromycin price
gabapentin 600mg price order lasix 100mg generic buy doxycycline 200mg online
does cialis work https://hippharmo.com/
purchase ventolin generic levothyroxine online buy purchase levoxyl online
order vibra-tabs amoxiclav order online cost augmentin 625mg
order levothroid pills serophene cost vardenafil 10mg generic
albenza order order provera for sale order provera 10mg online
biltricide 600 mg cost microzide without prescription cyproheptadine cost
buy generic lyrica buy dapoxetine online buy generic dapoxetine 90mg
order methotrexate online medex order online order metoclopramide 10mg
order xenical online order xenical 60mg pill zyloprim 300mg pill
order cozaar 50mg pill buy esomeprazole 40mg buy topiramate sale
buy crestor cheap ezetimibe 10mg uk cost domperidone 10mg
buy sumycin tablets order lioresal online cheap baclofen 25mg cheap
buy zantac pill cost celebrex order celecoxib for sale
brand clopidogrel 75mg order nizoral without prescription ketoconazole cheap
purchase betamethasone buy betnovate 20gm generic sporanox buy online
prometrium us order tindamax 300mg zyprexa buy online
nebivolol usa clozapine over the counter buy clozaril medication
starlix order online oral starlix 120 mg candesartan 8mg brand
seroquel nursing considerations quetiapine d2 occupancy is seroquel an ssri
calcium channel blocker norvasc, wiki norvasc cause cough norvasc ace inhibitor
escitalopram and xanax https://lexaproescitalopramtns.com/ what are the side effects of escitalopram
prilosec 14 day natural alternatives to omeprazole omeprazole magnesium vs omeprazole
effects of stopping cymbalta cymbalta and alcohol blackouts what antidepressant works well with cymbalta
order tegretol 400mg sale order lincomycin 500 mg generic buy lincomycin 500mg without prescription
average weight loss with zoloft abilify with zoloft is zoloft an antidepressant
buy cialis 20mg sale Buy now sildenafil sildenafil pills 25mg
quetiapine fumarate cost https://seroquelquetiapinevuq.com/ novo quetiapine
lexapro during pregnancy https://lexaproescitalopramogv.com/ can you snort lexapro
omeprazole cvs https://prilosecomeprazolezrv.com/ prilosec side affects
duloxetine side effects itching cymbalta goodrx duloxetine take with food
zoloft blob long term use of zoloft zoloft and wellbutrin weight loss
mebendazole order order tadalafil for sale tadalis 10mg us
what drug class is seroquel https://seroquelquetiapinesxz.com/ 200 mg seroquel
para q sirve escitalopram paxil vs lexapro stopped lexapro cold turkey
prescription omeprazole https://prilosecomeprazolerls.com/ omeprazole side effects alcohol
buy avana 100mg pills tadalafil 10mg ca order diclofenac 100mg
duloxetine and venlafaxine https://cymbaltaduloxetinestb.com/ duloxetine hydrochloride
best time to take zoloft anxiety can you drink while taking zoloft sertraline zoloft
tamoxifen 10mg uk rhinocort price ceftin 250mg drug
indocin 75mg cheap buy suprax 200mg without prescription purchase cefixime generic
alcohol and prozac fluoxetine pharmacokinetics prozac 40mg side effects
lexapro abuse lexapro side effects anxiety ibuprofen and lexapro
amoxicillin 500mg cheap biaxin 250mg pill biaxin tablet
can i take omeprazole with food https://prilosecomeprazolerls.com/ side effects of stopping omeprazole
cymbalta patient assistance https://cymbaltaduloxetinestb.com/ cymbalta and adderall
alcohol fluoxetine https://prozacfluoxetinerfk.com/ escitalopram vs fluoxetine
catapres 0.1mg pill tiotropium bromide cost tiotropium bromide pill
order generic arava 10mg buy viagra 100mg pill azulfidine online
buy accutane without prescription accutane ca order azithromycin online cheap
what happens if you stop taking prozac https://prozacfluoxetineatb.com/ should i put my child on prozac
ramipril over the counter buy arcoxia no prescription buy generic arcoxia over the counter
purchase mesalamine pill purchase mesalamine sale irbesartan 150mg over the counter