phpParseerror:syntaxerror,unexpectedT_STRING, how to deal with it

php Parse error: syntax error, unexpected T_STRINGParse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in D:\inetpub\vhosts\jszy.hebut.edu.cn\httpdocs\admin \common\mysql.class.php on line 11 The eleventh line of code is: private $host; How come such an error is reported? Is it because the version of php is wrong? ——Solution——————– Private is only available after php5Yours is php4, right? If it is php5, please post the first 11 lines of code ——Solution——————– To be precise, const only became available after 5.3

phpMyAdmin, how to deal with it

phpMyAdminI recently received a project that uses phpMyAdmin to operate the database. Because there are permissions and other operations on the navigation bar, I need to change the navigation bar. I searched online for a long time and couldn’t find any information. Can anyone tell me if I can change it? In which file should I change it? Thank you all (the environment is SUSE+apache+php+mysql, the version is phpMyAdmin.v3.3.9.0.Final) —— Solution——————– main.php ./libraries/server_links.inc.php ——Solution——————–Change Okay, share it, I want to know too! ——Solution——————– No Understand…

Looking for a PHP development environment with 100 points, how to deal with it

Looking for a PHP development environment with 100 pointsI just started learning PHP, what software should I download? I’m looking for experts, but don’t integrate… I am engaged in one-stop development, testing and releaseDon’t copy and paste ——Solution– —————— I just started learning. I use apache2.2, PHP5.4, Mysql5.5, and the development tool is Zend Studio 9.0.2. My QQ number is 2575676779. You can add me as a friend. ——Solution——————– If you are engaged in C#, you naturally have iis and .net environmentsJust download the php package, preferably php for .netThis way you will not lose your original resources For a new installation, the best combination is naturally apache + php + mysqlJust download it from the download area of ​​the corresponding official website ——Solution——————– apache www.apache.org php http://windows.php.net/downloads/releases/archives/php-5.3.5-Win32-VC6-x86 .msi zendstudio 9.x windwos xp/7/8

phpsql2000 connection, how to deal with it

php sql2000 connectionappserv environment How to connect php sql2000 ; extension=php_mssql.dll has been removed; number —- –Solution——————–mssql_connect(server, username, password); ——Solution——————– XCII. Microsoft SQL Server Functions Introduction These functions allow you to access MS SQL Server database. Requirements Requirements for Win32 platforms . The extension requires the MS SQL Client Tools to be installed on the system where PHP is installed. The Client Tools can be installed from the MS SQL Server CD or by copying ntwdblib.dll from \winnt\ system32 on the server to \winnt\system32 on the PHP box. Copying ntwdblib.dll will only provide access. Configuration of the client will require installation of all the tools.

Looking for a PHP source code, how to deal with it

Ask for a PHP source codeFunction similar to this website (http://b.ezeem.com/):After the member is registered, the administrator will review it in the background. If the review is passed, commercial information can be published on the website. , business information visitors can comment. The main functions of the backend are: member review (preferably with grouping function), industry classification. The most important thing for source code is to be safe ——Solution———– ———It would be nice to write it yourself… ——Solution——————–Buy This PHP case book will definitely have the source code of this kind of shopping website

PHP paging, how to deal with it

PHP paging <?php $pageCount = 9;//Total number of pages $pageNow = 3;//Number of pages entered by the user $i = 3; //The number of pages displayed $j = $pageCount/$i; //The number of times that can be scrolled $arr=array() ; / /Control the number of scrolls for($k=0;$k<$j;$k++) { //Control page turning if($pageNow==3 *$k) { for($e=($k*3)+1;$e<=3*($k+1);$e++) { $arr[] = $e; //echo $e; } //echo ““; }else { //Output the number of pages currently displayed for($a=0;$a<$i;$a++) { $arr[$a]; } } } ?>Please help me, there is something wrong. ——Solution———- ———- PHP code $pageCount = 9; //Total number of pages $pageNum = 3;//The number of pages displayed $pageNow = $_GET[‘page’] ? $_GET[‘page’] : 1;//The number of pages entered by the user if( $pageNow == $pageCount ) $pageNow = 1; //Cycle scrolling, add this sentence $pageStart = floor($pageNow / $pageNum) * $pageNum + 1; //Displayed starting page number $pageEnd = $pageStart + $pageNum;//Displayed end page number + 1 for($i=$pageStart; $i<$pageEnd; $i++) { echo " [$i] "; }

PHP pseudo-static correlation, how to deal with it

PHP pseudo-static relatedhttp://192.168.1.103/search.php?Area=1&Menu=1&Age=3 I want to change the browser address to: http://192.168. 1.103/search-1-1-3.html How to do it? ? ? Online=Answer! ——Solution——————– If you are using APACHE, you can set the httpd.conf in APACHE and query it on GOOGLE. ——Solution——————– In fact, Baidu and Google explain it quite comprehensively. After checking and practicing, it can basically be solved

Youmustchmod755concrete/libraries/3rdparty/htmldiff.pyanddisablePHPsafe, how to deal with it

You must chmod 755 concrete/libraries/3rdparty/htmldiff.py and disable PHP safeYou must chmod 755 concrete/libraries/3rdparty/htmldiff.py and disable PHP safe appears when installing concrete5.4.2.1. How to solve it? ——Solution——————– Isn’t this prompt very clear?Give this file the corresponding 755 permissions.

php, how to deal with it

php, if(){} else { echo “”;……php code, omitted here} The result I want is that the css of the captcha class in the page is hidden when else is executed. But the code written above seems wrong. How should I add jquery code to the PHP judgment statement? ——Solution——————–If there is no problem with the code PHP code echo << (function($){ $('.captcha').show(); })(jQuery); HTML; $error_msg = elgg_echo('loginerror'); ——Solution——————– Discuss The third floor is wrong, ——Solution——————–This Easy <?phpif(){ }else?> <?php }?> ——Solution——————–” ; If you have more of this, please give me extra points. I don’t have enough points. ——Solution——————–This The JS code should be placed after the introduction of the jquery.js file The key to the problem is, what is the html code that is ultimately output to the client? ——Solution——————–Me I have already told you But remember, this output must be controlled after your captcha has been output normally, otherwise it will be invalid. So actually you should do this. PHP outputs a hidden value, for exampleecho ”; After the entire page is loaded, the corresponding operation will be performed based on this value. JScript code $(document).ready(function() { if ($(‘#fool’).val()==’false’){ //Execute code $(‘.captcha’).show(); } }); ——Solution——————– Discuss else {?>…

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: [email protected]

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索