Brother, I installed WIN7 from the home version to the ultimate version and cannot open PHP files.
The WIN7 I installed cannot open PHP files after upgrading from the home version to the ultimate versionThe WIN7 I installed cannot open PHP files after upgrading from the home version to the ultimate versionIIS can be used and can open HTML and other files. But I just can’t use the PHP web page and I don’t know how to deal with it. ——Solution——————–What did you use to open it? Can it be accessed in a browser? ——Solution——————–Re- Configure IIS.
Brother, I use NETBEANS to connect to the SVN on thinkphp official website. How to operate it?
How do I use NETBEANS to connect to the SVN on the thinkphp official website? How do I use NETBEANS to connect to the SVN on the thinkphp official website? ——Solution——————–Those updates don’t mean much. Can be done manually. ——Solution——————–NETBEANS I don’t know how to use svn. Use TortoiseSVN directly,or zend studio
Brother, why do I use php code to insert data into mysql and it is displayed as empty?
Why do I use php code to insert data into mysql and it is displayed as empty?Why when I use php code to insert data into mysql, some fields are displayed as empty and some can show the inserted value. My code is as follows <?php include(“conn.php”); if ($_POST[‘submit’]){ $ sql=”insert into message (id,user,title,content,lastdate) ” . “value (”,’$_POST[user]’,’$_POST[title]’,’$_POST[content ]’,now())”; mysql_query($sql); echo “Published successfully”; } ?> /> User: Title: Content: The content in phpmyadmin id user title content lastdate 1 My A title my PHP 2012-04-15 2 _ My content your PHP 2012-04-15 ——Solution——————–mysql_query($sql) or die(mysql_error());Submit the result!Maybe you already know what’s going on without posting it ——Solution——————–values Do you have any other questions? ——Solution——————–User : The text is wrong
The text encoding output by the PHPfwrite function is ANSI, brother, I need UTF-8
The text encoding output by the PHP fwrite function is ANSI, and I need UTF-8 $xmlCOntent= ‘Assume that this string is a well-formed XML text message that includes special characters’; // mb_detect_encoding($xmlContent) is used here; the output result is UTF-8 // Write file$xmlFile = fopen(“file.xml” ,”w”);fwrite($xmlFile,$xmlContent);fclose($xmlFile); In addition, the referenced global configuration file is as follows Set header(“Content-Type:text/html; charset=UTF-8”); Open the file.xml file with Notepad and save it as. The ANSI encoding is displayed I need to save file.xml as UTF-8, how to change the code? ——Solution——————– Indeed, I have tested your code. No problem on my end. . Check it carefully. PHP file, echo mb_detect_encoding($xmlContent); whether it is utf-8
Brother, I input Chinese characters in the text box, but when reading the data in the php program, it prompts garbled characters.
I enter Chinese characters in the text box, but when the data is read in the PHP program, it prompts garbled characters I enter Chinese characters in the text box, but when the data is read in the PHP program, it prompts garbled characters. Additional questions: My database and A different encoding is used on the web page. The code also uses an iconv() function for conversion, but when debugging, it still prompts garbled characters. Please tell me how to solve it? ——Solution——————–Modify the browser’s encoding, determine the header encoding, and determine the encoding of the php file. ——Solution——————–Please Give the main code snippet
Brother, why is my php link to the database always successful?
Why is my php connection to the database always successful? My environment, Windows 2008, SQL Server 2000, php5.2.17. The code for my linked database is as follows:<?php echo “\nEnter mssql\n”; //File containing database informationinclude(‘db/mssql.inc’); //The link is successful and a link ID is returned. If it fails, FALSE is returned$my_cOnn= mssql_connect($db_server,$db_user_name,$db_password,true); if(! $my_conn){ //Equivalent to exit die(‘Failed to connect to database!’);}else{ echo “Link to SQL Server successfully!\n”; //Close the SQL link mssql_close($my_conn);}echo “Leave mssql\n\n”;?> Among them, the file mssql.inc containing the database information, I now put the database The user and password have been changed to incorrect ones, but the link is still displayed normally. The display is as follows:Enter mssqlLink to SQL Server successfully! Leave mssql Why is this? ? ? Thank you for your guidance, I have just started learning. ——Solution——————–I think…that only means that your judgment conditions are reversed…that is to say, you have never successfully connected to the db so far… Look at you What is in the error_log in php. ——Solution——————–No Troubleshoot your browser cache ——Solution——————–Connection It’s not turned off at all! ——Solution——————–Okay It hurts. Someone asked why it always failed and now it always succeedsIt seems there is no problem. Before if(!$my_conn) var_dump($my_conn); look…
Brother, I want to learn PHP and MySQL. What books should I read?
I want to learn PHP and MySQL. What books should I read? I like programming and have just started learning C language, but I also want to learn PHP and MySQL. Should I learn HTML and CSS first? Then start learning PHP and MySQL? Also, what textbooks do you recommend? ——Solution——————–HTML and CSS are relatively simple and can be learned together. You don’t have to learn it yet, but you will definitely understand it in the future. It’s not difficult. As for books, here are my recommendationshttp://blog.csdn.net/phpnewnew/article/details/6896582 ——Solution——————–Complete sure. The w3c website is good.
Brother, I encountered a BUG in PHP?
I encountered a PHP BUG? ? ? PHP code $array[‘tt’] = “xx”; $array[‘current-value’] = “abcde”; echo http_build_query($array); It should be displayed Assembly code tt=xx¤t-value=abcde But now when running it displays Assembly code tt=xx¤t-value=abcde I encountered a PHP keyword BUG? ? ? ——Solution——————–I ran your code and the result you mentioned did not appear. The output result istt=xx¤t-value=abcde ——Solution——————–No The bug in php is that ¤ is escaped by html in the browserThere is no problem when executing it from the command line ——Solution——————–Owner Take a look at the array print_a. ——Solution——————–You In this way, the echo will be parsed by the browser. The question is why you want to output this thing directly. It is usually used to splice parameters to make http requests. PHP code echo “¤”; echo “>”; echo “<”;
Brother, I used the zend cracking tool to decrypt a PHP file, which is a little suspicious.
Help: I used the zend cracking tool to decrypt a PHP file, but there is a slight problemHelp: I used the zend cracking tool to decrypt a PHP file, and there are some syntax errors. For example, there are too many spaces after decryption, and I don’t understand it very well. PHP Please ask friends who have time to check it, it is a syntax error, the code cannot be pasted. There are about 300 lines. If anyone can help, please add me at 12862-78779. If you have time, please help me figure it out. Many thanks. ——Solution——————–What’s wrong. You just need to modify it according to its prompts. ——Solution——————– There are some illegal characters generated after decryption. It seems to be a database operation class and some database operations. Is it of any value? I also don’t know whether cleaning up those illegal characters will affect the operation of the original program, because I don’t know if the illegal characters are characters that have not been restored. Sent back to you
Brother, it’s so slow for me to enter PHPCLASSES. Is there any way?
My entry into PHPCLASSES is very slow, is there any way?The company’s network is quite good, but when I open http://www.phpclasses.org/, only the header appears, and the following ones take a long time to load. , are you going to get an agent or something? ——Solution—————- —-After the test is completed, open the Netcom line within 5 seconds.