drupal.org - Deprecated - Drupal core http://drupal.org/taxonomy/term/23/0 see the Mailing lists or en Announcement: This forum has been deprecated http://drupal.org/node/261480 <p>This forum is no longer in use.</p> <p>Discussions about Drupal core development now happen in a number of places. </p> <p>Here's a small sample to get you started:</p> <p><a href="http://drupal.org/project/issues/drupal" title="http://drupal.org/project/issues/drupal" rel="nofollow">http://drupal.org/project/issues/drupal</a><br /> <a href="http://groups.drupal.org/improvements-core" title="http://groups.drupal.org/improvements-core" rel="nofollow">http://groups.drupal.org/improvements-core</a><br /> <a href="http://groups.drupal.org/reviewers" title="http://groups.drupal.org/reviewers" rel="nofollow">http://groups.drupal.org/reviewers</a><br /> <a href="http://lists.drupal.org/listinfo/development" title="http://lists.drupal.org/listinfo/development" rel="nofollow">http://lists.drupal.org/listinfo/development</a></p> Deprecated - Drupal core Thu, 22 May 2008 12:21:35 +0000 catch 261480 at http://drupal.org Developer releases -- release early, release often http://drupal.org/node/190901 <p>Proposal: the current core development cycle is releasing a stable (for example Drupal 5), opening up HEAD, hacking for N months and then releasing the next stable (Drupal 6) meanwhile 5.1, 5.2 etc gets released for bugfix. I propose that during the hacking period we do developer releases from time to time, maybe every two weeks, once there is something new that somewhat works. So there will be occassionally Drupal 6.x bugfix releases and more often Drupal 7.x unstable releases.</p> <p>A few scenarios that might happen:</p> <ul> <li>Someone grabs a contrib module and try to update it. Currently it seems like a waste and impossible because HEAD is always changing. It still will be a waste somewhat because surely Drupal 8 (stable) and Drupal 7.3 (developer release) will be different API wise but not all effort is wasted and if some API does not work out for you, here is the chance to voice your concerns. The next "multistep node form" problem maybe won't need three releases to make easy...</li> <li>A consultant might want to do this because then she has a competitive edge -- honestly can tell her clients that she is already getting ready for Drupal 8. Currently noone can say that unless she is actually patching HEAD.</li> </ul><p><a href="http://drupal.org/node/190901" target="_blank">read more</a></p> http://drupal.org/node/190901#comments Deprecated - Drupal core Fri, 09 Nov 2007 22:16:12 +0000 chx 190901 at http://drupal.org Secondary links agains primary link http://drupal.org/node/508958 <p>Setting up Primary Links with Secondary Links dependent on Primary HOW?</p> http://drupal.org/node/508958#comments Deprecated - Drupal core Drupal 6.x Fri, 03 Jul 2009 04:06:00 +0000 shankarreddy 508958 at http://drupal.org How to create node using xml-rpc? http://drupal.org/node/500704 <p>Hello, everybody. I`ve started to work with xml-rpc, just want to public results of desktop programm in auto mode. I have create an xml-rpc server:</p> <p><div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">include(</span><span style="color: #DD0000">"xmlrpcutils/utils.php"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Change these to match your configuration<br /></span><span style="color: #0000BB">$host </span><span style="color: #007700">= </span><span style="color: #DD0000">"site.ru"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$uri </span><span style="color: #007700">= </span><span style="color: #DD0000">"/xmlrpc.php"</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$result </span><span style="color: #007700">= </span><span style="color: #0000BB">xu_rpc_http_concise</span><span style="color: #007700">(<br />&nbsp;&nbsp;&nbsp; array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'method'&nbsp;&nbsp;&nbsp; </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"system.connect"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'host'&nbsp; </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">$host</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'uri'&nbsp; </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">$uri</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'port'&nbsp; </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">80&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; </span><span style="color: #007700">)<br />);<br /><br /></span><span style="color: #0000BB">$result </span><span style="color: #007700">= </span><span style="color: #0000BB">xu_rpc_http_concise</span><span style="color: #007700">(<br />&nbsp;&nbsp;&nbsp; array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'method'&nbsp;&nbsp;&nbsp; </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">'system.listMethods'</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'host'&nbsp; </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">$host</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'uri'&nbsp; </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">$uri</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'port'&nbsp; </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">80&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; </span><span style="color: #007700">)<br />);<br /><br />for (</span><span style="color: #0000BB">$i </span><span style="color: #007700">= </span><span style="color: #0000BB">0</span><span style="color: #007700">; </span><span style="color: #0000BB">$i </span><span style="color: #007700">&lt; </span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">); </span><span style="color: #0000BB">$i</span><span style="color: #007700">++){<br />&nbsp;&nbsp;&nbsp; echo </span><span style="color: #0000BB">$result</span><span style="color: #007700">[</span><span style="color: #0000BB">$i</span><span style="color: #007700">].</span><span style="color: #DD0000">"&lt;br&gt;"</span><span style="color: #007700">;<br />}<br /><br /></span><span style="color: #0000BB">$new_node </span><span style="color: #007700">= array(<br />&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'type' </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"story"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'uid' </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">1</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'name' </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">"mcnet"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'title' </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">'TITLE ' </span><span style="color: #007700">. </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">'Y-m-d H:i:s'</span><span style="color: #007700">,</span><span style="color: #0000BB">time</span><span style="color: #007700">()),<br />&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'body' </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">'BODY ' </span><span style="color: #007700">. </span><span style="color: #0000BB">date</span><span style="color: #007700">(</span><span style="color: #DD0000">'Y-m-d H:i:s'</span><span style="color: #007700">,</span><span style="color: #0000BB">time</span><span style="color: #007700">()),<br />);<br /><br /></span><span style="color: #0000BB">$result </span><span style="color: #007700">= </span><span style="color: #0000BB">xu_rpc_http_concise</span><span style="color: #007700">(<br />&nbsp;&nbsp;&nbsp; array(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'method'&nbsp;&nbsp;&nbsp; </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">'node.save'</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'args'&nbsp; </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">$new_node</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'user' </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">'admin'</span><span style="color: #007700">, <br />&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'pass' </span><span style="color: #007700">=&gt; </span><span style="color: #DD0000">'pass'</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'host'&nbsp; </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">$host</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'uri'&nbsp; </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">$uri</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #DD0000">'port'&nbsp; </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">80&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp; </span><span style="color: #007700">)<br />);<br /><br />for (</span><span style="color: #0000BB">$i </span><span style="color: #007700">= </span><span style="color: #0000BB">0</span><span style="color: #007700">; </span><span style="color: #0000BB">$i </span><span style="color: #007700">&lt; </span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">); </span><span style="color: #0000BB">$i</span><span style="color: #007700">++){<br />&nbsp;&nbsp;&nbsp; echo </span><span style="color: #0000BB">$result</span><span style="color: #007700">[</span><span style="color: #0000BB">$i</span><span style="color: #007700">].</span><span style="color: #DD0000">"&lt;br&gt;"</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div></p> <p>And I have such problem: calling of system.listMethods is working as result I get such list:<br /> system.multicall<br /> system.methodSignature<br /> system.getCapabilities<br /> system.listMethods<br /> system.methodHelp</p> <p><a href="http://drupal.org/node/500704" target="_blank">read more</a></p> http://drupal.org/node/500704#comments Deprecated - Drupal core Drupal 5.x Drupal 6.x Wed, 24 Jun 2009 10:29:57 +0000 sphinks 500704 at http://drupal.org Disabling default forum view and use views http://drupal.org/node/472070 <p>I have a question is it possible to turn of the default forum view of drupal? I created a view for displaying the fora, but when i go to /forum the default forum view will appear and that is unwanted in my situation.</p> <p>Thanks in advanced.</p> http://drupal.org/node/472070#comments Deprecated - Drupal core Drupal 6.x Drupal 7.x Mon, 25 May 2009 09:29:27 +0000 Nr. 18 472070 at http://drupal.org url cleaning http://drupal.org/node/469236 <p>what is url cleaning and how to use url cleaning</p> http://drupal.org/node/469236#comments Deprecated - Drupal core Drupal 6.x Thu, 21 May 2009 15:17:41 +0000 shivam_ohm 469236 at http://drupal.org Video Problem http://drupal.org/node/467792 <p>how to upload drupal video</p> http://drupal.org/node/467792#comments Deprecated - Drupal core Wed, 20 May 2009 06:56:27 +0000 shivam_ohm 467792 at http://drupal.org Help needed for actions and triggers http://drupal.org/node/462390 <p>I want once the comment is approved the notification mail is sent to commentor.</p> http://drupal.org/node/462390#comments Deprecated - Drupal core Drupal 6.x Thu, 14 May 2009 09:46:05 +0000 ashiwebi 462390 at http://drupal.org How to control the item's in drop down filter while using views http://drupal.org/node/460376 <p>Hi,</p> <p> When I have created a view, which basically filter's the node_type and display the nodes according to the node_type, I found that the drop down takes all the node_type. Though I have selected some specific node type. How can I limit this node type? Please help me.</p> <p>Thanks<br /> Rahul</p> http://drupal.org/node/460376#comments Deprecated - Drupal core Drupal 6.x Tue, 12 May 2009 13:38:17 +0000 rahulkamail 460376 at http://drupal.org My Fellow he make block in the admin what i Do http://drupal.org/node/455036 <p>As I have tell you My frind closed my Admin he make block i donno </p> <p>What work is the first time Astal the owner of the magazine and I'm hosting companies</p> http://drupal.org/node/455036#comments Deprecated - Drupal core Drupal 6.x Wed, 06 May 2009 08:43:52 +0000 دكتور كمال محمد محمد 455036 at http://drupal.org Trouble with catching when using drupal as multiple sites with single code base. http://drupal.org/node/451566 <p>Hi, I am using Drupal 6.6 with a single code base and multiple databases for multiple sites (one main + other sub domains). While the sites are working well, I'm having some difficulties with drupal based caching.<br /> Whenever, I clear the cache of any one site (any one sub domain) by using the drupal core performance page clear cache button, I find that the cache of all the sites are getting cleared.<br /> My question is: Is it possible to clear the cache of just one site (sub domain) without disturbing the main site and the other sub domain sites (multi site)?<br /> I shall be grateful if anyone steps forward to help.<br /> Many thanks in advance,</p> <p>PS: Thanks to Drupal developers for creating a wonderful CMS.</p> http://drupal.org/node/451566#comments Deprecated - Drupal core Drupal 6.x Sat, 02 May 2009 14:36:53 +0000 Froggie 451566 at http://drupal.org Help Plz! Birthday module automatic mail is not working http://drupal.org/node/451454 <p>Hi,<br /> I'm using birthday module in one of my project. Automatic email is not working plz help...</p> http://drupal.org/node/451454#comments Deprecated - Drupal core Drupal 5.x Sat, 02 May 2009 10:50:14 +0000 manmohanghai_mca 451454 at http://drupal.org IE7 Drupal Flash Issues http://drupal.org/node/448666 <p>Hello,</p> <p>I am working on a Drupal based site, and I am developing a Nav/SubNav navigation for a separate custom "episode" page. Each page uses the same .php files to build the pages. I love the way this works.</p> <p>Here's the problem. I have to tell the nav where it is in order for the correct tabs to show the page the user is on. I am doing this with Javascript switches and CSS styling that I input in the content area of the Drupal Admin. The rest of the nav pieces/CSS is on the PHP file because it is static.</p> <p>Everything loads correctly - except in IE7. The Flash movie player (the main part of the site) stops loading completely in IE7. </p> <p>Here is a small outline of the situation:</p> <p>JavaScript/CSS inputted through Drupal executes in all browsers<br /> BUT<br /> Flash stops loading completely in IE7<br /> WHEN<br /> Either script or style is inputted through drupal</p> <p>WHEN<br /> IE7 loads without Javascript/CSS inputted through Drupal Flash loads completely</p> <p>If anyone could give suggestions or help, I would greatly appreciate it!</p> <p>Also this is my first post!<br /> D</p> http://drupal.org/node/448666#comments Deprecated - Drupal core Drupal 5.x Wed, 29 Apr 2009 16:49:22 +0000 dieterlich 448666 at http://drupal.org Trouble with login http://drupal.org/node/446694 <p>Hi,</p> <p>I'm a total drupal newbie. I think I removed the login block on my site (on my local server for testing). I've logged out and I can't figure out how to get back in to administrate the site. I tried <a href="http://mwsite.local/username" title="http://mwsite.local/username" rel="nofollow">http://mwsite.local/username</a> but I got 'Not found' page. can anyone tell me how to get back the admin section? I 'm guessing I have to log in through the address bar somehow.</p> <p>Any help would be appreciated. Thanks in advance<br /> Andreas</p> http://drupal.org/node/446694#comments Deprecated - Drupal core Drupal 6.x Mon, 27 Apr 2009 22:24:44 +0000 andreas_dilaveris 446694 at http://drupal.org how to HTML elements will scanned through wysiwyg and tinymce in drupal6 http://drupal.org/node/420272 <p>Hi...</p> <p>I am not sure, where should post my this query..!<br /> I am using drupal6 and facing problem with WYSIWYG and tinymce. When I edit (actually add more image and content) my article and upload more image with content, I want to add new link as</p> <p>'<a href="myimage path to view large" rel="nofollow">View large</a>'. </p> <p>I made the change as follows:</p> <p>File: ibrwser.php<br /> path sites\all\modules\wysiwyg\tinymce\jscripts\tiny_mce\plugins\ibrowser</p> <p>replace line: args.desc = (formObj.pr_desc.value) ? (formObj.pr_desc.value): '';<br /> with new line:<br /> args.desc = (formObj.pr_desc.value) ? (formObj.pr_desc.value + '<a href="myimage path to view large" rel="nofollow">View large</a>') : '';</p> <p>But this output in html format. How can I add a link at the end of content to view large the uploaded image.?</p> <p>Please some reply ....</p> <p>Thanks<br /> Raaj</p> http://drupal.org/node/420272#comments Deprecated - Drupal core Drupal 6.x Wed, 01 Apr 2009 07:26:47 +0000 raajkhurana 420272 at http://drupal.org Attempting to re-run cron while it is already running. http://drupal.org/node/400132 <p>"Attempting to re-run cron while it is already running."</p> <p>I'm using aggregator for over 100 RSS feeds. I get above error many times for the cron job. I guess feeds cause it. what can I do ?</p> http://drupal.org/node/400132#comments Deprecated - Drupal core Drupal 6.x Thu, 12 Mar 2009 21:31:45 +0000 drupallogic 400132 at http://drupal.org Logged in but not able to do anything http://drupal.org/node/395154 <p>Hi,</p> <p>I'm new to this forum and rather new with drupal so I hope I make myself clear and that someone can help.<br /> I've setup a new drupal site and I've been adding modules and edithing themes etc.<br /> Everything semes to be working just fine.<br /> I logged out to see how non-users see the site, nice of course.<br /> Then I try to log in, with the adminster account, and...nothing.<br /> I am logged in so I can see in the topic "who's online" but I cannot go to the adminster menu, not even through a direct url.<br /> Through a direct url I get "Acces Denied", "You are not authorized to access this page.".</p> <p>Can anyone help me. At first everything seems to be working fine but now I cannot even administer my own site!<br /> I've been searching through different forums but I haven't found the answer.<br /> Only that I maybe have to change te setting of the PHP server from CGI to ISAPI.<br /> But my site is hosted and I don't have rights to change this.</p> <p>Hope to hear from anyone.</p> <p>Thanks.</p> <p>Niels</p> http://drupal.org/node/395154#comments Deprecated - Drupal core Drupal 6.x Sun, 08 Mar 2009 13:10:32 +0000 ndenhild 395154 at http://drupal.org Feed seemed not work http://drupal.org/node/379648 <p>I am a user, trying to retrieve some feed information but the system seemed not being able to recognise the web address provided by the information supplier.</p> <p>System Port: only port 80 is open<br /> Application Drupal 6.9<br /> Process: Administration, Feed Aggregator, add Feed<br /> Source Address:<br /> 1. <a href="http://www.smh.com.au/rsschannels/" title="http://www.smh.com.au/rsschannels/" rel="nofollow">http://www.smh.com.au/rsschannels/</a> which has a list of items for subscribing<br /> 2 <a href="http://www.abc.net.au/newsradio/rss/ENVIRONMENT.xml" title="http://www.abc.net.au/newsradio/rss/ENVIRONMENT.xml" rel="nofollow">http://www.abc.net.au/newsradio/rss/ENVIRONMENT.xml</a></p> <p>Problem: </p> <p>1. After enter the web address in the Aggregator and click Update Items, the Drupal 6.9 system feed back a message, "The URL <a href="http://feeds.smh.com.au/rssheadlines/top.xml" title="http://feeds.smh.com.au/rssheadlines/top.xml" rel="nofollow">http://feeds.smh.com.au/rssheadlines/top.xml</a> is invalid. Please enter a fully-qualified URL, such as http://www.example.com/feed.xml" . However the address seemed to be no problem, as by just click an icon MyYahoo next to it, I can see it immediately inside my account with Yahoo.</p> <p>2. I also tried several other Reed providers such as <a href="http://www.abc.net.au/newsradio/rss/ENVIRONMENT.xml" title="http://www.abc.net.au/newsradio/rss/ENVIRONMENT.xml" rel="nofollow">http://www.abc.net.au/newsradio/rss/ENVIRONMENT.xml</a>. But this time, after click Update Items, the Drupal system sent a message said "The feed from City of Sydney seems to be broken, because of error "-110 Connection timed out". </p> <p>They may be related to whether there is a need to get a permision from information service provider, or whether a unique port number needs to be open, but so far there is no clear answer to be found at the Drupal website.</p> <p><a href="http://drupal.org/node/379648" target="_blank">read more</a></p> http://drupal.org/node/379648#comments Deprecated - Drupal core Drupal 6.x Sun, 22 Feb 2009 00:39:27 +0000 atpaust 379648 at http://drupal.org Something about core perfomance http://drupal.org/node/374145 <p>The function <strong>function_exists</strong> are called in Drupal very frequently. For example in <a href="http://api.drupal.org/api/function/url/6" rel="nofollow"><strong>url()</strong></a>:<br /> <div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">...<br />&nbsp; if (</span><span style="color: #0000BB">function_exists</span><span style="color: #007700">(</span><span style="color: #DD0000">'language_url_rewrite'</span><span style="color: #007700">)) {<br />&nbsp;&nbsp;&nbsp; </span><span style="color: #0000BB">language_url_rewrite</span><span style="color: #007700">(</span><span style="color: #0000BB">$path</span><span style="color: #007700">, </span><span style="color: #0000BB">$options</span><span style="color: #007700">);<br />&nbsp; }<br />...<br />&nbsp; if (</span><span style="color: #0000BB">function_exists</span><span style="color: #007700">(</span><span style="color: #DD0000">'custom_url_rewrite_outbound'</span><span style="color: #007700">)) {<br />&nbsp;&nbsp;&nbsp; </span><span style="color: #FF8000">// Modules may alter outbound links by reference.<br />&nbsp;&nbsp;&nbsp; </span><span style="color: #0000BB">custom_url_rewrite_outbound</span><span style="color: #007700">(</span><span style="color: #0000BB">$path</span><span style="color: #007700">, </span><span style="color: #0000BB">$options</span><span style="color: #007700">, </span><span style="color: #0000BB">$original_path</span><span style="color: #007700">);<br />&nbsp; }<br />...<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div></p> <p>And my little exploration on performance. Code:</p> <p><div class="codeblock"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">function </span><span style="color: #0000BB">test_time_1</span><span style="color: #007700">() {<br />&nbsp; if(</span><span style="color: #0000BB">function_exists</span><span style="color: #007700">(</span><span style="color: #DD0000">"function_exists"</span><span style="color: #007700">)) {<br />&nbsp;&nbsp;&nbsp; </span><span style="color: #FF8000">// Nothing done.<br />&nbsp; </span><span style="color: #007700">}<br />}<br /><br />function </span><span style="color: #0000BB">test_time_2</span><span style="color: #007700">() {<br />&nbsp; static </span><span style="color: #0000BB">$yes</span><span style="color: #007700">;<br />&nbsp; if(!isset(</span><span style="color: #0000BB">$yes</span><span style="color: #007700">)) </span><span style="color: #0000BB">$yes </span><span style="color: #007700">= </span><span style="color: #0000BB">function_exists</span><span style="color: #007700">(</span><span style="color: #DD0000">"function_exists"</span><span style="color: #007700">);<br />&nbsp; if(</span><span style="color: #0000BB">$yes</span><span style="color: #007700">) {<br />&nbsp;&nbsp;&nbsp; </span><span style="color: #FF8000">// Nothing done.<br />&nbsp; </span><span style="color: #007700">}<br />}<br /><br /></span><span style="color: #0000BB">$time_start </span><span style="color: #007700">= </span><span style="color: #0000BB">microtime</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br />for(</span><span style="color: #0000BB">$i</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">;</span><span style="color: #0000BB">$i</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">1000000</span><span style="color: #007700">;</span><span style="color: #0000BB">$i</span><span style="color: #007700">++) {</span><span style="color: #0000BB">test_time_1</span><span style="color: #007700">();}<br /></span><span style="color: #0000BB">$time_1 </span><span style="color: #007700">= </span><span style="color: #0000BB">microtime</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">) - </span><span style="color: #0000BB">$time_start</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">$time_start </span><span style="color: #007700">= </span><span style="color: #0000BB">microtime</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br />for(</span><span style="color: #0000BB">$i</span><span style="color: #007700">=</span><span style="color: #0000BB">0</span><span style="color: #007700">;</span><span style="color: #0000BB">$i</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">1000000</span><span style="color: #007700">;</span><span style="color: #0000BB">$i</span><span style="color: #007700">++) {</span><span style="color: #0000BB">test_time_2</span><span style="color: #007700">();}<br /></span><span style="color: #0000BB">$time_2 </span><span style="color: #007700">= </span><span style="color: #0000BB">microtime</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">) - </span><span style="color: #0000BB">$time_start</span><span style="color: #007700">;<br /><br />print </span><span style="color: #DD0000">"time 1: $time_1&lt;/br&gt;"</span><span style="color: #007700">;<br />print </span><span style="color: #DD0000">"time 2: $time_2&lt;/br&gt;"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div></p> <p>Result:<br /> <div class="codeblock"><code>time 1: 8.3456580638885<br />time 2: 4.6089758872986</code></div></p> <p>Conclusion: Code with static variable faster then code with permanent calling of function_exists().</p> <p>May somebody patch a Drupal core?</p> http://drupal.org/node/374145#comments Deprecated - Drupal core Fri, 13 Feb 2009 20:41:18 +0000 drq 374145 at http://drupal.org How to upgrade Drupal 5.15 to version 6.9 http://drupal.org/node/373837 <p>hello all,<br /> How to upgrade Drupal 5.15 to version 6.9</p> <p>Is there a good solution ?</p> http://drupal.org/node/373837#comments Deprecated - Drupal core Drupal 6.x Fri, 13 Feb 2009 08:44:51 +0000 panhongwei 373837 at http://drupal.org Checkbox Required http://drupal.org/node/364166 <p>Hey the problem with Checkboxes being required and be able to be bypassed was fixed right so Checkbox Validate is really no longer needed, right? Just trying to clear things up. And does anyone happen to know what version that was when it was fixed?<br /> Thanks in Advanced!</p> http://drupal.org/node/364166#comments Deprecated - Drupal core Mon, 26 Jan 2009 02:01:56 +0000 ocforum 364166 at http://drupal.org Help Please!!!! http://drupal.org/node/363082 <p>Hi, </p> <p>there I would like to know what modules I will need and how can I use drupal to develop a sexcam ... I need to administrate the time the clients use the cam show... videos of the girls on the site, pictures, chat, and messenger, the system of payment would be paypal, credit and debit card. And pay safecard, any other services you recommend?</p> <p>Thanks + Regards,</p> <p>Codeman1234</p> http://drupal.org/node/363082#comments Deprecated - Drupal core Drupal 6.x Fri, 23 Jan 2009 10:45:49 +0000 Codeman1234 363082 at http://drupal.org dynamic poll http://drupal.org/node/362335 <p>Hi,<br /> How can i create a dynamic poll in my site.The poll question should be pulled out from the database named poll_quest.</p> http://drupal.org/node/362335#comments Deprecated - Drupal core Drupal 6.x Thu, 22 Jan 2009 00:38:36 +0000 arunharshan 362335 at http://drupal.org Anonymous user loses cart contents after login http://drupal.org/node/361387 <p>After login anonymous user loses all his cart content. Unable to fix this bug. Please Help</p> http://drupal.org/node/361387#comments Deprecated - Drupal core Drupal 5.x Tue, 20 Jan 2009 07:23:59 +0000 key2 361387 at http://drupal.org Hidding User Profile Fields in edit mode http://drupal.org/node/356384 <p>Hi,</p> <p> I Want to Hide/locked User Profile Field in User profile edit mode but it should be open in user registration form. Plz Help....</p> http://drupal.org/node/356384#comments Deprecated - Drupal core Drupal 5.x Fri, 09 Jan 2009 06:59:27 +0000 manmohanghai_mca 356384 at http://drupal.org