【1】页面之间无法传递变量 get,post,session在最新的php版本中自动全局变量是关闭的,所以要从上一页面取得提交过来得变量要使用$_GET['foo'],$_POST['foo'],$_SESSION['foo']来得到,当然也可以修改自动全局变量为开(php.ini改为register_globals = On);考虑到兼容性,还是强迫自己熟悉新的写法比较好。
【2】Win32下apache2 用get方法传递中文参数会出错
test.php?a=你好&b=你也好,传递参数是会导致一个内部错误
解决办法:"test.php?a=".urlencode(你好)."&b=".urlencode(你也好)
【3】win32下的session不能正常工作
php.ini默认的session.save_path = /tmp
这显然是linux下的配置,win32下php无法读写session文件导致session无法使用,把它改成一个绝对路径就可以了,例如session.save_path = c:windows emp.
【4】显示错误信息
当php.ini的display_errors = On并且error_reporting = E_ALL时,将显示所有的错误和提示,调试的时候最好打开以便纠错,如果你用以前php写法错误信息多半是关于未定义变量的。变量在赋值以前调用会有提示,解决办法是探测或者屏蔽
例如显示$foo,可以if(isset($foo)) echo $foo 或者echo @$foo
【5】Win32下mail()不能发送电子邮件
在linux下配置好的sendmail可以发送,在win32下需要调用smtp服务器来发送电子邮件 ,修改php.ini的SMTP = ip //ip是不带验证功能的smtp服务器(网上很难找到),php发送邮件的最好解决方法是用socket直接发送到对方email服务器而不用转发服务器
【6】初装的mysql如果没有设置密码,应该使用
update mysql.user set password="yourpassword" where user="root",修改密码
【7】header already sent
这个错误通常会在你使用HEADER的时候出现,他可能是几种原因:1,你在使用HEADER前PRING或者ECHO了2.你当前文件前面有空行3.你可能INCLUDE了一个文件,该文件尾部有空行或者输出也会出现这种错误。!
【8】更改php.ini后没有变化
重新启动web server,比如IIS,Apache等等,然后才会应用最新的设置
【9】php在2003上面安装(ISAPI的安装方法恳请高手指教)
PHP4的php4isapi.dll好像和2003有些冲突,只能用CGI模式安装
波比源码 » PHP初学者头疼问题总结
brand levofloxacin 250mg cheap levofloxacin
avodart price flomax 0.2mg drug order zofran 4mg online
buy aldactone 25mg pill buy propecia diflucan 100mg uk
ampicillin 250mg without prescription cephalexin online buy buy erythromycin 500mg online
fildena buy online tamoxifen 20mg price methocarbamol 500mg ca
order sildenafil 100mg generic aurogra 100mg cheap order estradiol 1mg for sale
lamictal 200mg pills order vermox 100mg without prescription buy retin gel generic
tadalis canada generic avana 200mg buy diclofenac 100mg sale
accutane 40mg usa isotretinoin 20mg us order azithromycin 500mg
indocin 75mg for sale lamisil price trimox 250mg oral
tadalafil 10mg uk Overnight canadian viagra viagra 200 mg
prednisone 5mg cheap how to buy cialis order generic viagra 100mg
accutane ca cost azithromycin 500mg ivermectin where to buy for humans
ramipril drug clobetasol uk buy azelastine 10 ml for sale
purchase hytrin generic azulfidine online buy azulfidine cost
alendronate 70mg pill motrin 600mg for sale order famotidine 20mg online
order olmesartan pills calan drug order diamox online cheap
prograf 1mg over the counter buy ursodiol sale urso 300mg oral
imdur us buy digoxin 2250 mg pill oral telmisartan
order zyban 150 mg sale bupropion ca order seroquel 50mg without prescription
order molnunat online omnicef 300mg cheap buy prevacid 15mg pills
imuran 100mcg drug imuran pills sildenafil 50mg price
order medroxyprogesterone 5mg generic hydrochlorothiazide order online generic periactin
purchase modafinil best online pharmacy ivermectin 2mg
buy luvox 100mg pill buy cymbalta 20mg online glucotrol pill
order piracetam 800mg generic sildenafil overnight shipping usa cheap sildenafil without prescription
order azithromycin pill order neurontin 800mg order gabapentin 100mg for sale
cialis india buy viagra 100mg online cheap sildenafil 50mg usa
buy furosemide order doxycycline pill brand hydroxychloroquine 400mg
buy glycomet 500mg online cheap buy tadalafil generic buy tadalafil 40mg for sale
purchase amlodipine online cheap tadalafil women cialis 40mg pills
buy linezolid 600 mg online cheap buy linezolid sale slots games free
order prilosec 10mg omeprazole for sale online poker sites
metoprolol uk vardenafil pills buy vardenafil 10mg
dissertation writers online cheap essay writing online money poker
order vardenafil 10mg online cheap pregabalin 150mg sale medrol 4mg over counter
purchase clomid sale buy generic ventolin 4mg play poker online free
cialis 5mg canadian cialis viagra australia
buy aristocort 4mg online cheap buy loratadine for sale clarinex canada
order dapoxetine 60mg sale buy misoprostol for sale purchase levothyroxine pills
orlistat order online zovirax medication cheap zovirax 800mg
cheap generic cialis order generic inderal 10mg order plavix 150mg generic
purchase methotrexate pills order warfarin 5mg generic metoclopramide uk
motilium 10mg brand purchase cyclobenzaprine online cheap cyclobenzaprine tablet
sumatriptan 25mg drug avodart 0.5mg brand avodart online order
colchicine over the counter free blackjack online casino roulette
ranitidine pills cost ranitidine 150mg order celebrex 200mg pill
play casino slots play casino slots play poker online free
generic tamsulosin 0.4mg spironolactone pill order aldactone pills
cialis buy online acillin pill buy generic cipro
simvastatin sale purchase zocor online cheap buy finasteride 5mg pills
cephalexin medication order cleocin 150mg pill erythromycin 500mg tablet
cialis 10mg tadalafil 20mg pill sildenafil for sale online
poker online cash order cialis 20mg sale tadalafil 5mg without prescription
sildalis sale sildenafil 50mg price buy lamotrigine 50mg without prescription
deltasone 40mg ca generic amoxil 1000mg cost amoxicillin
slot games online free order tadalafil 20mg online cheap tadalafil drug
order generic azithromycin 500mg gabapentin 100mg ca gabapentin brand
best online blackjack order stromectol 6mg online cheap provigil over the counter
purchase furosemide without prescription furosemide 100mg generic hydroxychloroquine canada
fildena 50mg cheap fildena 50mg for sale budesonide for sale
deltasone 40mg without prescription deltasone 20mg drug purchase mebendazole for sale