Hongmu Notes
Home Summary of pitfalls

Summary of pitfalls

A summary of common mistakes encountered when building websites... This list isn't exhaustive; it merely records the issues I faced during my own development projects.

How to change the PHP version used by Composer on Linux?

How to change the PHP version used by Composer on Linux? Summary of pitfalls

While using Composer, I suddenly realized that the package required a higher version of PHP. So, I looked up the relevant information. Since I was using the Baota Panel, I made the following specific adjustment: I logged into my terminal and checked the version of PHP currently being used by Composer with the command `ls-l /usr/bin/php`. The output showed that the version was PHP 7.2: `lrwxrwxrwx 1 root root 26 Oct 18 2021 /usr...`
👁 356
Website optimization adds a music player

Website optimization adds a music player Summary of pitfalls

Plug-in effect: It is used to improve website user experience, such as Baidu ranking. If you install this plug-in, your website's bounce rate may be reduced, which is naturally good for rankings. You know what you know. I had nothing to do today and found a music player website. It only needs a piece of js code to let you play music. It is quite powerful. You only need to go to their website to register and get the js code. So I installed it and played it. The result was not bad, but the main website was too stuck...
👁 155
Firefox web development and debugging enable forced refresh cache mode

Firefox web development and debugging enable forced refresh cache mode Summary of pitfalls

Clearing the cache in Fox Browser can be tricky; using shortcuts like Ctrl+F5 or Ctrl+R doesn't work in Google Chrome or Internet Explorer. Clearing the cache in Firefox is also quite cumbersome—the default shortcut (Ctrl+Shift+Del) opens a pop-up window for selective cleanup, requiring additional clicks to confirm; this is very inconvenient and not ideal for web development and debugging. To disable local caching in Firefox, you need to go to its Preferences and configure the settings accordingly: Firefox Browser...
👁 322
Commonly used regular filters for locomotive collection

Commonly used regular filters for locomotive collection Summary of pitfalls

To obtain standardized content, significant effort must be devoted to data collection – it's essential to carefully define your collection rules. My criteria for measuring standardized content: Each paragraph should be enclosed within <p> and </p> tags; there should be no redundant HTML tags or characters unrelated to the topic. Data extraction method: Use regular expression extraction, then combine the results into <p>[Parameter 1]</p>; note that some content may not have a clear beginning or end...
👁 356
Web pages prohibit ireame nested code

Web pages prohibit ireame nested code Summary of pitfalls

js method: <script type="text/javascript"> if(self != top) { top.location = self.location; } </s…
👁 134
form form submission jumps out of the frame

form form submission jumps out of the frame Summary of pitfalls

In fact, it is very simple. Add a target parameter  target="_parent" in the form.
👁 134
Solution to reinstall msvcp140.dll (dll file missing repair)

Solution to reinstall msvcp140.dll (dll file missing repair) Summary of pitfalls

msvcp140.dll is the default library file for programs compiled with Visual Studio 2010. This DLL can resolve a range of issues that may arise when certain large-scale games or applications fail to run due to the absence of this DLL in the Visual Studio 2010 compilation environment. msvcp140.dll is an essential DLL required for the execution of programs developed with Visual Studio 2010. Many users have encountered difficulties determining how to obtain or install msvcp140.dll...
👁 178
Empire website url Baidu api push code

Empire website url Baidu api push code Summary of pitfalls

Baidu Push Code for EmpireCMS – I personally use this code; if you don't know how to use it, don't try to modify it casually. You will need to adjust the URL, modify the database table, and change the Baidu API key. <?php define('EmpireCMSAdmin', '1'); require('e/class/connect.php');...
👁 166
Back to top side button

Back to top side button Summary of pitfalls

1.html &lt;dl class=&quot;toolbar&quot;&gt; &lt;dd class=&quot;qq&quot;&gt;&lt;a href=&quot;tencent://message/?uin=123456&amp;Menu=yes&quot;&gt;&lt;i&…
👁 219
curl post submission example

curl post submission example Summary of pitfalls

<?php $host = '"/"; $path =' "/wyc/title&quot;; $method = '"POST&quot;; $apikey =' "The API key you wish to use&quot;; $headers = array();...
👁 175
1 10 11 12 13 14