Introduction: This is a detailed page for configuring the clean URL of Drupal. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 332640 'rolling = 'no'>
1. Cancel comments before "loadmodule rewrite_module modules/mod_rewrite.so" in Apache httpd. conf.
2. Find
Add in
Rewriteengine onrewritebase/rewritecond % {r
Introduction: This is a detailed page of Drupal template naming rules. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 337294 'rolling = 'no'>
Path
TPL
/(Homepage)
Page-front.tpl.php
Node/%/edit (Edit page)
Page-node-edit.tpl.php
/htdocs"Servername localhostDirectoryindex index. php
Jeff in Seattle » Login or register to post comments
Very helpful guideshaunak-March 13,200 9-
Very helpful post.
I wowould also like to add that you also may have to set the "AllowOverride" directive to "all" [around line 224 in the httpd. CONF file] to allow directives in. htaccess to work.
Around that line, you can see,
Options followsymlinksAllowOverride allOrder deny, allowDeny from allSatisfy all
--Cheers,Shaunak. Log
Drupal Install CKEditor text Editor, and configure the image upload function method one describes the CKEditor installation and configuration method, in fact, there is another new method, not IMCE module. But need Ckfinder JS Library, can go to http://ckfinder.com/download download, download and put to Ites\all\modules\contrib\ckeditor folder,Then go to admin/config/content/ckeditor/edit/full and configure it.It's all right.Drupal installs the CKEdito
Install tomcat: The code is as follows:Copy code Apt-get updateApt-get install tomcat6 tomcat6-admin Download and install apachesolr: The code is as follows:Copy code Wget http://mirrors.cnnic.cn/apache/lucene/solr/4.7.2/solr-4.7.2.tgzTar-vxf solr-4.7.2.tgzMkdir/opt/solrSolr-4.4.0/example/solr/*/opt/solr/Cp solr-4.4.0/example/webapps/solr. war/opt/solr/Cp-r solr-4.4.0/example/lib/ext/*/var/lib/tomcat6/shared/ Edit the apachesolr configuration file: The code is as follows:Copy code
Related article: Drupal module explain-authcache caching principle detailed tutorial
This article is about how to implement the personalized content of a cached page if you modify Authcache's core code.Advanced application authcache-Dynamic loading content tutorial "/>Common cache, more or less to be personalized processing, such as user name display, dynamic loading of user information, user friends and so on.In general, this kind of local personali
The status is as follows:1, click the Security button, can not go to the normal page, a blank page appears;
2, refresh the page, issued a number of navigation items have not been, but also the existence of the item can not be clicked into the normal page.
Tested a number of times did not find any problems, many times reload, test, finally appeared a error page hint: "Drupal Maximum execution time seconds exceeded database In/mysqli.inc", A look at thi
Small and medium site simple backup strategy
Based on Drupal's small and medium line website, we can use the Backup_migrate module, which provides the function of the regular backup, the backup time, how many backup and so on, and so on, after setting up, the regular cron can backup successfully. The General Drupal Station, we only need to use SVN can, on the server side, we put back the good data to SVN, we can achieve the purpose of the backup. Bec
every problem, no need to adjust, but the current host space because of the use of php5.1.x, so some features are not supported or changed, including:
sites/default/settings.php file in the $base_url, because the php5.1.x environment in IE browser can not get $_server[' http_host '] variables, so there will be problems, and changed to:
$base _url = isset ($_server[' http_host '))? ' http://'. $_server[' Http_host ']: ' http://imysql.cn ';
Another place is the Str_replace function, and the re
this loophole was found in 2014, in the spirit of learning, I will do a detailed analysis. Although the vulnerability is early, the new version of Drupal has even changed the way the framework is organized. However, the analysis of the vulnerability is not affected at all. This is a classic use of PDO, but improperly handled, resulting in SQL statement stitching resulting in injection problems. Judging from this and many of the loopholes I've seen in
1, modify the httpd.conf configuration file, the port listening to more than, I listen to the 80 port and 8080 port, you can use the password from the command prompt tool input netstat-n-A to see if the port started;
#Listen
$response->send ();is to call the header some variablesSetcookieEcho $contentAnd so on some operations$autoloader = Require_once ' autoload.php ';Gets the Load class object$kernel = new Drupalkernel (' prod ', $autoloader);Get Drupalkernel
Add a function to the template/sites/all/themes/liuzhiliang.com/template.php file
The code is as follows
Copy Code
/*** Mynodeprevnext* Article on an article next* $nid-Node ID* $type-node type*/function Mynodeprevnext ($
The following is an example:Copy codeThe Code is as follows:/** Convert the pseudo address to the original address (url_alter)*/Function example_url_inbound_alter (& $ path, $ original_path, $ path_language){If (preg_match ('| ^ article (/. *) |', $
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.