追趕WAMP伺服器的包容性

反正在家裏寫不了網,公司暫時又沒那麼忙,於是把備份檔抄到公司的電腦內繼續努力。

要在本機測試php碼,就須安裝伺服器。公司的WAMP伺服器是一年多以前David介紹的,版本較我家裏安裝的舊一點。檔案放入一開,立刻有問題。原來兩個伺服器的document_root設定有一點點不同,公司的舊版本在最末沒有「/」,但家裏的卻有。

沒理由公司改完又回家裏改呀,畢竟只是local的問題,基本上與網上付費的伺服器設定無關。於是為了讓設定一致,就去下載並安裝新版本的WAMP。

安裝完後一開檔案,又有bug。原來下載的版本比家裏的又新一點,歸究問題有兩個。

第一,當php的variable要讀取時(可能是從post、get或session等),讓讀取來源沒有任何設定,在舊版本中大概就讀得null,而新版本就出現error警告!於是我只好先檢查數據來源有沒有相關設定,然後才作出真正讀取。

第二,是配合數據庫的query使用時,舊版本接受不加「’」的表達,例如$this_row[name]。但新版本就毫不客氣了,一一把我的庸懶挑出來,必須仔細地逐一寫成$this_row[‘name’]才肯放過我。由於大部分內容都依賴數據庫記錄,所以要改很多行,search and replace又好像不太管用。好不容易改好了,但因為是肉眼檢視,但願沒看漏眼才好。

Posts Tagged with…

Reader Comments

  1. ferragamo belts

    I and also my buddies have already been studying the best thoughts from your web site then at once got a horrible feeling I never expressed respect to you for those tips. My guys ended up absolutely happy to read through them and have in truth been making the most of them. I appreciate you for actually being quite helpful as well as for settling on varieties of superior themes millions of individuals are really desirous to learn about. Our sincere apologies for not expressing gratitude to you sooner.

  2. longchamp

    Thank you so much for providing individuals with such a breathtaking chance to read articles and blog posts from this site. It’s usually so brilliant and stuffed with a good time for me personally and my office mates to visit the blog at minimum 3 times per week to learn the newest guidance you have got. Of course, we’re actually pleased with the brilliant pointers you give. Certain two facts in this posting are particularly the simplest I have ever had.

  3. yeezy boost 350 v2

    I precisely wanted to thank you so much once again. I’m not certain the things that I would’ve undertaken without the strategies discussed by you over such situation. This was the frustrating problem for me personally, however , seeing the expert style you dealt with it made me to jump with fulfillment. Now i am thankful for this information and even hope you comprehend what an amazing job that you’re carrying out teaching other individuals by way of your site. I know that you’ve never come across all of us.

  4. cheap jordans

    Thanks so much for giving everyone such a brilliant possiblity to read critical reviews from this site. It is often so pleasant and packed with fun for me and my office acquaintances to visit the blog not less than 3 times weekly to see the fresh issues you have got. Not to mention, I’m also usually motivated with the very good pointers you serve. Some 2 points in this post are easily the simplest I have had.

  5. birkin bag

    I as well as my pals happened to be digesting the best items from your web blog and so quickly I had a horrible feeling I had not expressed respect to the web blog owner for those secrets. My people had been happy to learn them and already have actually been making the most of those things. Thank you for actually being simply considerate and for figuring out such cool ideas millions of individuals are really needing to learn about. My personal sincere apologies for not expressing appreciation to you sooner.

  6. gucci belts

    I together with my friends appeared to be checking the excellent hints found on your website and so all of the sudden I got a horrible feeling I never thanked the web blog owner for them. Most of the ladies are already as a result thrilled to learn them and have now undoubtedly been loving those things. Appreciate your being well considerate and for deciding on these kinds of very good ideas millions of individuals are really wanting to discover. Our own honest regret for not expressing gratitude to you sooner.

  7. birkin bag

    My wife and i were ecstatic when Michael could carry out his investigation using the precious recommendations he made in your web page. It’s not at all simplistic to simply possibly be offering hints that some others could have been trying to sell. And we all grasp we need the writer to be grateful to for this. The main explanations you have made, the simple website navigation, the relationships your site make it possible to instill – it’s mostly powerful, and it’s really making our son in addition to the family reckon that this content is thrilling, which is incredibly pressing. Many thanks for all!

  8. james harden shoes

    I as well as my buddies appeared to be following the great guides from your web blog then the sudden developed a terrible suspicion I had not expressed respect to the web blog owner for those tips. Those ladies were definitely absolutely warmed to study them and have very much been making the most of them. Appreciation for getting really accommodating and for utilizing this sort of useful guides millions of individuals are really desperate to know about. Our own honest regret for not expressing gratitude to you sooner.

  9. goyard handbags

    I have to express my passion for your kind-heartedness for folks who need assistance with this one area of interest. Your special dedication to getting the message along had become rather helpful and have continuously helped most people much like me to attain their targets. This helpful guidelines means this much a person like me and somewhat more to my colleagues. Thank you; from everyone of us.

  10. kobe 11

    I not to mention my buddies have been analyzing the nice guides located on the blog then suddenly came up with a terrible feeling I never thanked the blog owner for them. My people appeared to be so warmed to learn them and have now unquestionably been loving them. Thanks for truly being very considerate as well as for picking this kind of helpful subject areas millions of individuals are really needing to learn about. My personal sincere regret for not expressing appreciation to sooner.

  11. yeezy boost

    I wish to convey my gratitude for your generosity supporting women who require guidance on in this subject matter. Your special commitment to passing the message throughout appeared to be exceptionally invaluable and have enabled guys and women much like me to arrive at their ambitions. Your entire useful help and advice means so much to me and a whole lot more to my colleagues. Regards; from all of us.

  12. cheap nfl jerseys china

    I have to convey my affection for your generosity for those people that must have assistance with your concept. Your personal commitment to passing the solution all around has been quite productive and have constantly helped regular people much like me to realize their ambitions. This valuable help entails much to me and a whole lot more to my mates. Best wishes; from all of us.

  13. air yeezy

    Thanks a lot for providing individuals with an extremely memorable chance to read in detail from this blog. It is always very sweet and as well , full of a great time for me and my office peers to search your website a minimum of three times per week to see the latest guides you will have. And definitely, I am just usually fascinated with all the beautiful advice you serve. Certain 3 areas on this page are honestly the best we have ever had.

  14. golden goose sneakers

    My wife and i got absolutely peaceful Emmanuel managed to do his investigations through the precious recommendations he acquired out of your web page. It’s not at all simplistic to just always be giving for free procedures men and women could have been making money from. Therefore we recognize we have you to be grateful to because of that. All the illustrations you’ve made, the easy website menu, the relationships you can help to create – it is everything amazing, and it’s really leading our son in addition to us do think that concept is satisfying, which is certainly extremely essential. Thank you for all the pieces!

  15. nike air max

    I definitely wanted to jot down a quick message to be able to appreciate you for those superb solutions you are showing on this website. My time-consuming internet look up has at the end of the day been compensated with extremely good strategies to share with my friends and family. I would point out that most of us website visitors actually are unquestionably fortunate to live in a fantastic site with very many marvellous people with useful points. I feel pretty happy to have discovered the weblog and look forward to plenty of more awesome minutes reading here. Thanks once more for everything.

  16. converse outlet

    Needed to write you this very little observation to give thanks over again with the breathtaking opinions you’ve contributed on this website. It is simply wonderfully generous of you to allow unreservedly all that many individuals could have marketed for an e-book to help with making some money for themselves, notably seeing that you might have tried it if you considered necessary. Those techniques as well acted as a great way to be aware that the rest have a similar dreams much like my very own to understand a good deal more in respect of this issue. I am certain there are numerous more fun periods in the future for people who view your site.

Write a Comment

你的電子郵件位址並不會被公開。