永夜 Blog

更新客户端缓存失败! 0

Integrate PHPCMS_V9.5.8_UTF8 in ucenter_1.6.0_sc_utf8, update the solution to the client cache failure!

Post Views: 14 Solution process: Add the following method to phpsso_server/api/uc.php class uc_note: //update client cache function updateClient($get, $post) { if(!api_updateClient) { return api_return_forbidden; } $cacheFile = dirname(__file__)./uc_client/data/cache/settings.php; $fp = fopen($cachefile,w); $s = “<?php\r\n”;...

解决之后,截图如下 0

After the integration of TiPask_V2.5_UTF8_20140606 and UCenter_1.6.0_SC_UTF8, the solution to the avatar cannot be displayed!

Post Views: 10 The screenshot of the avatar cannot be displayed, on the active user page,http://zhidao.hmwis.com/user/activelist.html: Solution: lib/global.func.php function get_avatar_dir //return $setting[‘ucenter_url’]./avatar.php?uid=. $UID .&size=middle; @Include TiPask_root ./data/ucconfig.inc.php; return UC_API ./avatar.php?uid=. $UID .&size=middle; The reason...

在phpcms中退出提示退出成功,查看源代码,可以看见已经发现同步js通知 0

Integrate PHPCMS and TiPask under ucenter, and find that logging in through phpcms can be synchronized to tipask, but quit through phpcms, it cannot be synchronized to the solution of tipask!

Post Views: 10 Analyze the code execution process: 1. kchmc.net/phpcms/modules/member/index.php $SynLogoutstr = $this->client-> ps_member_synlogout(); 2. kchmc.net/phpcms/modules/member/classes/client.class.php Modified to be as follows: /** * Synchronized exit * @param string $UID * @return string javascript user...

Apache 欢迎界面 0

Windows 8.1 64-bit installation and configuration Apache 2.2.25+mysql-5.5.28+php-5.3.5+phpmyadmin-4.2.9.1 server environment detailed process!

Post Views: 13 First, the installation steps of Apache are as follows: 1. Prepare the installation file of apache. Its download address is:http://mirrors.hust.edu.cn/apache/httpd/binaries/win32/,其文件名称为:httpd-2.2.25-win32-x86-no_ssl.msi。其中2.2.25表示Apache服务器的版本号;win32-x86表示此安装文件是专门为Windows操作系统提供的;no_ssl表示此安装文件不支持安全套接层协议SSL。 2. Double-click the installation file “httpd-2.2.25-win32-x86-no_ssl.msi” to start the installation, as...

Incorrect key file for table '*.MYI'; try to repair it 0

Incorrect key file for table*.MYI; try to repair it

Post Views: 8 Recently found to open every timehttp://www.leshisz.com/的时候,总是出现如下界面: The error message means that the table is incorrect. It is recommended to repair the table. The solution used is to enter phpmyadmin, select the...

更新远程数据! 0

Replace the implementation of file_get_contents with curl!

Post Views: 14       The code is as follows:                     //$data1 = file_get_contents(http://bbs.chengdu.cn/i_index_newdata.php?fids=202,238,239,240,241,242,259,271); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,http://bbs.chengdu.cn/i_index_newdata.php?fids=202,238,239,240,241,242,259,271); curl_setopt($ch, CURLOPT_RETURNTTransfer, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 50); $data1 = curl_exec($ch); curl_close($ch);...