Apache cannot start after php is configured, please help me!
After installing apache, It Works also appears! Then I configured and added the following code to the Apache file according to the online video: LoadModule php5_module “D:/amp/php/php5apache2_4.dll” setHandler application/x-httpd-php Then restart apache and it cannot start, and the following situation occurs. Some people on the Internet said that they need to download Vc++2008. I also installed it, but it seems useless. It is just a software! Looking for experts! The rookie expressed his frustration Reply to the discussion ( Solution) That’s very clear! \xb2\xbb\xca\xc7\xd3\xd0\xd0\xa7\xb5\xc4 Win32 \xd3\xa6\xd3\xc3\xb3\xcc\xd0\xf2\xa1\xa3 No Valid Win32 application. My PHP7 has been configured successfully! ! It means that your php5apache2_4.dll does not match your version. Newbies are advised to use the next integrated package. It is easy to cause problems if you install each one by yourself. Recommended upupw. It’s done, I changed it to Apache 32-bit, thank you for your help! !
[PHP String] I encountered a very magical problem today, please help me
Error one: echo ‘echo $rst4[$i][“tb_restore_content”]:’;echo $rst4[$i][‘tb_restore_content ‘].””;echo ‘echo $rst4[$i][“tb_restore_content”] content:’;echo ‘【Reply: sasasa】 【Reply: sasasa】 0 1 2 ‘; Run results Because some tags are not parsed when directly outputting variable a , because double quotes were added to it, the following error occurredError 2 echo is_string($rst4[$i][‘tb_restore_content ‘]);echo “$rst4[$i][‘tb_restore_content’]”; Results Reply to discussion (solution) Why? I can’t see it. Have you found out the reason? It’s amazing! For error one, the magic is that you didn’t explain the problem clearlyFor error two, the magic is that you didn’t write according to PHP writing rulesecho “$rst4[$i][‘tb_restore_content’] “; should be writtenecho “{$rst4[$i][‘tb_restore_content’]}”; orecho $rst4[$i][‘tb_restore_content’] ; It’s amazing! For error one, the magic is that you didn’t explain the problem clearlyFor error two, the magic is that you didn’t write according to PHP writing rulesecho “$rst4[$i][‘tb_restore_content’] “; should be writtenecho “{$rst4[$i][‘tb_restore_content’]}”; orecho $rst4[$i][‘tb_restore_content’] ; Yes, I didn’t notice it for a while Why? I can’t see it. Have you found out the reason? ? Error 2 is what you said. Error 1 means that there is a tag in a string, but it does not parse when I output this variable. It’s amazing! For error one, the magic is that you didn’t explain the…
If you are familiar with phpexcel, please help me.
In this export, only the first line has a value, but if I delete the code in the first red box, the second, third, fourth… lines will have values. The value in the first row is the title, such as gender, age, etc. The second, third, fourth… rows are the corresponding values for gender, age, etc. Please help,,, urgently needed. . . Reply to discussion (solution) The picture is too small to see clearly Can’t you post the code? for($m_k=0,$column_num0=’A’;$m_k<$column_max,$column_num0getActiveSheet()->getColumnDimension($column_num0)->setWidth(10); //$objectPHPExcel->setActiveSheetIndex(0)->setCellValue($column_num0.’ 1′,$m_arr[$m_k]); //$objectPHPExcel->getActiveSheet()->getStyle((string)($column_num0.’1′)->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER); } for($key_num=0;$key_num$v) { foreach($m_arr as $k1=>$v1) { if(!isset($d_arr[$v1])) { $d_arr[$v1]=’ ‘; } } } ksort($d_arr); $d_arr=array_values($d_arr); for($column_num=’A’,$column_num2=1;$column_num<'ZZ',$column_num2$v) { if($k==($column_num2-1)) { $objectPHPExcel->getActiveSheet()->setCellValue($column_num.$row_num,$v); $objectPHPExcel- >getActiveSheet()->getStyle((string)($column_num.$row_num))->getAlignment()->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER); } } } } header(‘Content-Type: application/vnd.ms -excel’); header(‘Content-Disposition: attachment;filename=”‘.date(‘Ymd-His’).’.xls”‘); header(‘Cache-Control: max-age=0’); $objWriter = PHPExcel_IOFactory::createWriter($objectPHPExcel, ‘Excel5’); $objWriter->save(‘php://output’); @ The picture is too small to see clearly Can’t you post the code? Moderator “Those three lines were commented out during my test. Please help me take a look. Picture too It’s small and can’t be seen clearly Can’t you post the code? The first for loop is to set the value of the first row The second for loop is Set the values of the second, third, fourth… lines In this way, only the first line…
IE9 can’t open the php page, please help me
I write code in WAMP environment, and every time IE9 runs the php page, a download dialog pops up, but I can parse it normally with 360 browser! In addition, my IE9 always pops up a download dialog box for all other PHP pages on the Internet, but the 360 can be displayed normally! What is the reason for this? I can’t find the reason after searching online. Can anyone help me? ? ? ? ? ? Reply to discussion (solution) Content-type is not configured How about Firefox? How to access? Have the php files been placed in the same directory? There must be no problem with the location of the file on the apache server, because it can be accessed by 360 browsers, and not only the one I wrote cannot be opened, but other PHP pages on the Internet can also be opened. not open! But 360 browser can! I haven’t tried Firefox, but since it can be opened with a browser, it’s not a problem with the web page. Maybe IE9 is missing something, but I can’t find what it is. I like PHP, my first reply. Content-type is not configured I don’t know if the no…
Please help me, how can I create a webpage similar to the one below and synchronize it with Weibo? Is it PHP?
Reply to discussion (solution) Take a look at the SDK of Tencent Weibo open platform. This function has nothing to do with the language in which it is implemented. This thing does not need to be implemented at all. It is just a widget of an open platform. Tencent Weibo can just plug in a plug-in. Generally it is just a js that returns data by calling some interfaces. Officially provided js sdk
There is a problem with PHPCMS, please help me! ! !
HTML phpcms php The website made with phpCMS has been online. When I helped to modify it, the page was basically fine. The URL localhost\… was opened, and a subpage was opened (when showing the page) to jump. Go to 192.168….The website is opened, but the result cannot be displayed. This IP cannot be accessed. This IP is not local. What is the reason? Reply to the discussion (solution) Possible problems: 1. You still jump back to your local file and replace 192.168…. with localhost 2. Maybe you jump to other websites. Then their server crashed. Try clearing the cache. 2nd floor. My system configuration files have been changed to localhost. Part of the links on the generated homepage show localhost, and part of them shows 192.168…. Try clearing the cache. Tried to no avail
My php login interface always shows that my account password is wrong. . . I can’t find the error, please help me
Interface php Welcome<?phpif(!$_POST["user"]){ echo "”;?>User loginEnter username:Enter password:<?php}else{ include "config.php"; $user=$_POST["user"]; $user=$_POST["pass"]; $sql="SELECT COUNT(id) FROM $db_examsystem_user WHERE name='$user' AND pass ='$pass'"; $result=mysql_query($sql,$my_con); $num=mysql_fetch_row($result); if($num[0]==0) { echo "The username or password is wrong, please check !”; echo “Click here to log in again”; echo “Click here to register”; } else { setCOOKIE(“user”,$user); echo “Login successful”; echo “Single machine enters the system here”; }}?>
The foreach problem of the PHPthinkphp framework is counted as an algorithm, please help me
thinkphpphp Orders are distributed to customer service, the requirement is an average scoreFor example, if 10 orders are distributed to 3 customer service personnel, the final result is that the first customer service has 4 orders and the remaining two customer service personnel have 3 orders OrdersIf there are fewer orders each time, one at a time, then the first customer service will always get the most ordersWhat I have to do now is to record who I gave the last order to and then this time follow the last time The customer service then sub-picture description
Server – PHP master, please help me, urgently need help – PHP tutorial
Server php After transferring the php project to the cloud server, the following error occurs when accessing the ip, please tell me how to solve it, thank you! ! ! ! ! ! ! ! ! ! ! ! !
Cloud database-php project, please help me, urgently
php cloud database My php project is on Alibaba Cloud. Entering the ip will access the main page, but I have to click the button in the first picture to access the second page. I want to enter directly The ip gets the second page, and the third page is its link. Can someone who understands php help me, how can I set it on the cloud database, or how can I directly access the page in the second picture? First aid ! ! !