Today, I encountered such a problem: the company's ecshop template online shop. Print the quotation page. The local test shows the product price information. However, when you click to print a quote on the server, the page is blank.None. The local system is as follows:Windows XP + IIS 5.0 + PhP 5.0;The server isWindows Server 2003 + IIS 6.0 + PhP 5.0.
I searched the internet for two possible reasons:
1、in data, there is a page named quotation_print.html.
2,Quotation_print.htmlWhether the page has sufficient permissions.
I checked according to the information on the Internet. None of my situations are due to these two reasons.
I suddenly remembered that a PHP system was created the day before yesterday. Due to Path Problems, images could not be uploaded. Why is this?
So I tested it and found that it was still the problem. The following is my modification method.
First findSchemdes/cls_template.phpAnd then find"Fetch ($ filename, $ cache_id = '')"This function,
In the followingCode
If ($ this-> _ checkfile) <br/>{< br/> If (! File_exists ($ filename) <br/>{< br/> $ filename = $ this-> template_dir. '/'. $ filename; <br/>}< br/> else <br/>{< br/> $ filename = $ this-> template_dir. '/'. $ filename; <br/>}
Add the following sentence:
/* absolute Windows System directory */
$ filename = substr (_ file __, 0, strrpos (_ file __, " //")). "//". $ filename ;
in this way, the PHP running path on Windows is really a big problem.