首页 \ 问答 \ PHP线程安全和非线程安全的Windows(PHP Thread Safe and Non-Thread Safe for Windows)

PHP线程安全和非线程安全的Windows(PHP Thread Safe and Non-Thread Safe for Windows)

我正在为Windows下载PHP 我在网站上有2个选项。

  1. PHP线程安全
  2. PHP非线程安全

请回答以下问题:

  1. 两者有什么区别? 相互有什么优缺点?
  2. 我正在开发一个电子商务网站,交通量很大,哪一个更受推荐,为什么?

I am downloading PHP for Windows. I got 2 options on the website.

  1. PHP Thread Safe
  2. PHP Non-Thread Safe

Please answer the following questions:

  1. What is the difference between the two? What are the advantages and disadvantages over one another?
  2. I am developing an e-commerce website which will have heavy traffic, which one is more recommended and why?

原文:https://stackoverflow.com/questions/7204758
更新时间:2023-06-15 11:06

最满意答案

您应该为打印介质使用单独的css。 这允许您在打印页面时隐藏/显示部分页面。

html:

<div class="dont-print-that">
   blah
</div>
print this!

包括:

<link rel="stylesheet" type="text/css" media="print" href="print.css" />

print.css

.dont-print-that{display:none;}

另一种解决方案是打开一个只有你想打印的内容的新窗口。 你可以在弹出窗口或iframe中做到这一点。 就我个人而言,我发现CSS解决方案更加优雅,但这取决于您。


You should use a separate css for the print media. This allows you to hide/show portions of the page when it gets printed.

html :

<div class="dont-print-that">
   blah
</div>
print this!

include:

<link rel="stylesheet" type="text/css" media="print" href="print.css" />

print.css

.dont-print-that{display:none;}

The other solution is to open a new window with only the content you want to print. You could either do that in a popup or an iframe. Personally I find the CSS solution more elegant, but that's up to you.

相关问答

更多
  • 我会这样说: Print Test Page