<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1524706475562594705</id><updated>2012-02-06T12:21:06.708-08:00</updated><title type='text'>PHP CMS SOLUTIONS</title><subtitle type='html'>This website describes about php,joomla,drupal, cms,ajax.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>24</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-6838845072110921617</id><published>2011-02-10T00:32:00.000-08:00</published><updated>2011-02-10T00:34:15.811-08:00</updated><title type='text'>Read Text file Using PHP</title><content type='html'>Please find the logic:&lt;br /&gt;&lt;?php&lt;br /&gt;$file_handle = fopen("file.txt", "rb");&lt;br /&gt;  while (!feof($file_handle) ) {&lt;br /&gt;&lt;br /&gt;  $line_of_text = fgets($file_handle);&lt;br /&gt;&lt;br /&gt;  $parts = explode(' ', $line_of_text);&lt;br /&gt;  foreach ($parts as $keys){&lt;br /&gt;   if($keys != ''){&lt;br /&gt;    $query_data[] =$keys; &lt;br /&gt;   }else{&lt;br /&gt;    $query_data[] ="NULL";&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt;  &lt;br /&gt;  echo $str = implode(',', $query_data);&lt;br /&gt;?&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-6838845072110921617?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/6838845072110921617/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2011/02/read-text-file-using-php.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/6838845072110921617'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/6838845072110921617'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2011/02/read-text-file-using-php.html' title='Read Text file Using PHP'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-8320477963274221292</id><published>2011-02-03T02:07:00.000-08:00</published><updated>2011-02-03T02:08:29.993-08:00</updated><title type='text'>Export to Excel Using PHP</title><content type='html'>Hi&lt;br /&gt;Use the Code :&lt;br /&gt;# file name for download  Using Headers&lt;br /&gt;$filename = "urfile_data_" . date('Ymd') . ".xls"; &lt;br /&gt;header("Content-Disposition: attachment; filename=\"$filename\"");&lt;br /&gt;header("Content-Type: application/vnd.ms-excel"); &lt;br /&gt;&lt;br /&gt;$flag = false; &lt;br /&gt;$result = mysql_query($sql) or die('Query failed!'); &lt;br /&gt;while(false !== ($row = mysql_fetch_assoc($result))) { &lt;br /&gt; if(!$flag) { &lt;br /&gt;  # display field/column names as first row &lt;br /&gt;  echo implode("\t", array_keys($row)) . "\n"; &lt;br /&gt;  $flag = true; &lt;br /&gt; } &lt;br /&gt; array_walk($row, 'cleanData'); &lt;br /&gt; echo implode("\t", array_values($row)) . "\n";&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function cleanData(&amp;$str) {&lt;br /&gt; $str = preg_replace("/\t/", "\\t", $str);&lt;br /&gt; $str = preg_replace("/\r?\n/", "\\n", $str); &lt;br /&gt; if(strstr($str, '"')) &lt;br /&gt;  $str = '"' . str_replace('"', '""', $str) . '"'; &lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-8320477963274221292?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/8320477963274221292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2011/02/export-to-excel-using-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/8320477963274221292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/8320477963274221292'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2011/02/export-to-excel-using-php.html' title='Export to Excel Using PHP'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-6331438867046413023</id><published>2010-07-02T00:22:00.000-07:00</published><updated>2010-07-02T00:41:04.314-07:00</updated><title type='text'>Passing Values from PHP to Javascript</title><content type='html'>Hi Developers,&lt;br /&gt;We can able to send values from php to javascript using php coding without submit the form using submit button.&lt;br /&gt;I think most of you are having knowledge to send values from php to javascript but i am posting for new buddies &amp; myself &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1)Create a New PHP page(sample.php) and Copy &amp; Paste it.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  echo "&lt;a href='test.php?id=$a'&gt;Hello &lt;/a&gt;"; &lt;br /&gt;  echo "&lt;br&gt;";&lt;br /&gt;  echo "&lt;a href=\"test.php?id=$a\"&gt;Hello &lt;/a&gt;";&lt;br /&gt;  echo "&lt;br&gt;";&lt;br /&gt;  echo "&lt;a href=\"javascript:test('test.php?id=$a')\"&gt;Hello &lt;/a&gt;"; &lt;br /&gt; And ADD SCRIPT TAGS&lt;br /&gt; function test(url) {&lt;br /&gt; var chk = confirm ("Can i proceed?");&lt;br /&gt; if(chk){&lt;br /&gt;  location.href=url;&lt;br /&gt; }else{&lt;br /&gt;  alert('oooppppppppps');&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;Close SCRIPT TAGS.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;2)Create a other New PHP page(test.php) and Copy &amp; Paste it.&lt;/span&gt;&lt;br /&gt;  echo $_GET['id'];&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Execute the code in the browser that php values are passed to javascript :)&lt;br /&gt;&lt;br /&gt;Example Application:&lt;br /&gt;Basic functionality for any appication in website i.e Delete a record in the database.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Gud Luck :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-6331438867046413023?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/6331438867046413023/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/07/passing-values-from-php-to-javascript.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/6331438867046413023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/6331438867046413023'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/07/passing-values-from-php-to-javascript.html' title='Passing Values from PHP to Javascript'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-6710534131303334221</id><published>2010-06-25T10:45:00.001-07:00</published><updated>2010-06-25T10:51:06.451-07:00</updated><title type='text'>Display a Triangle format Numbers using PHP code</title><content type='html'>Hi All,&lt;br /&gt;Program to Display following using php code:&lt;br /&gt;1&lt;br /&gt;2 3&lt;br /&gt;4 5 6&lt;br /&gt;7 8 9 10&lt;br /&gt;11 12 13 14 15&lt;br /&gt;&lt;br /&gt;CODE:&lt;br /&gt;Start php here&lt;br /&gt; $k=1;&lt;br /&gt; for($i=0;$i&lt;5;$i++){&lt;br /&gt;  for($j=0;$j&lt;=$i;$j++){&lt;br /&gt;    echo $k." ";&lt;br /&gt; $k++;&lt;br /&gt;  }&lt;br /&gt;  echo "&lt;br&gt;";&lt;br /&gt; }&lt;br /&gt;End php tag&lt;br /&gt;&lt;br /&gt;Check out the output...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All d best&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-6710534131303334221?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/6710534131303334221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/06/display-triangle-format-numbers-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/6710534131303334221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/6710534131303334221'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/06/display-triangle-format-numbers-using.html' title='Display a Triangle format Numbers using PHP code'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-1463208920679824669</id><published>2010-06-24T02:27:00.000-07:00</published><updated>2010-06-24T02:39:50.261-07:00</updated><title type='text'>CKEDITOR configuration to change Default settings</title><content type='html'>Hi All,&lt;br /&gt;I need to modify a default setting in CKEDITOR for changing paragraph format in the editor to except "DIV" tags.&lt;br /&gt;So i googled &amp; worked on the configuration of CKEDITOR,finally i got a file i.e "ckeditor.js" located (ckeditor/ckeditor.js) and&lt;br /&gt;&lt;br /&gt; Default Setting&lt;br /&gt; enterMode:1&lt;br /&gt; We need to modify &lt;br /&gt; enterMode:3 &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Now check ur output i will set to "Normal(div)" format.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;All d Best&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-1463208920679824669?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/1463208920679824669/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/06/ckeditor-configuration-to-change.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/1463208920679824669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/1463208920679824669'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/06/ckeditor-configuration-to-change.html' title='CKEDITOR configuration to change Default settings'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-1277497842421161923</id><published>2010-06-14T10:13:00.000-07:00</published><updated>2010-06-14T10:30:37.273-07:00</updated><title type='text'>Validation for Radio Button in Javascript</title><content type='html'>Hi Programmers,&lt;br /&gt;I just faced little difficult to validate radio box element using java script but i think most of the developer had done lot of script on radio box validation.&lt;br /&gt;&lt;br /&gt;For my sake i am posting blog on validation on radio box.&lt;br /&gt;&lt;br /&gt; function valButton(btn) {&lt;br /&gt; var cnt = -1;&lt;br /&gt; for (var i=btn.length-1; i &gt; -1; i--) {&lt;br /&gt;    if (btn[i].checked) {cnt = i; i = -1;}&lt;br /&gt;    }&lt;br /&gt; if (cnt &gt; -1) return btn[cnt].value;&lt;br /&gt; else return null;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;   function valForm(form) {&lt;br /&gt;  var btn = valButton(form.group1);&lt;br /&gt;  if (btn == null) alert('No radio button selected');&lt;br /&gt;  else alert('Button value ' + btn + ' selected');&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;&lt;form name="myform" action="#"&gt;&lt;br /&gt;                  &lt;label for="r1"&gt;&lt;input name="group1" id="r1" value="1" type="radio"&gt; button one&lt;/label&gt;&lt;br&gt;&lt;br /&gt;                  &lt;label for="r2"&gt;&lt;input name="group1" id="r2" value="2" type="radio"&gt; button two&lt;/label&gt;&lt;br&gt;&lt;br /&gt;                  &lt;label for="r3"&gt;&lt;input name="group1" id="r3" value="3" type="radio"&gt; button three&lt;/label&gt;&lt;br&gt;&lt;br /&gt;                  &lt;input value="Validate" onclick="valForm(myform); return false;" type="button"&gt;&lt;br /&gt; &lt;/form&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-1277497842421161923?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/1277497842421161923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/06/validation-for-radio-button-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/1277497842421161923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/1277497842421161923'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/06/validation-for-radio-button-in.html' title='Validation for Radio Button in Javascript'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-6542040603666573241</id><published>2010-05-28T02:50:00.000-07:00</published><updated>2010-05-28T02:52:30.367-07:00</updated><title type='text'>Module Positons in Joomla in 1.0 and 1.5</title><content type='html'>How to create New positions in joomla:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Joomla 1.0.X version:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In joomla 1.0.X versions we will create the new module positions like this&lt;br /&gt;&lt;br /&gt;go to site-&gt;template manager-&gt;module position&lt;br /&gt;&lt;br /&gt;in that create new module position and save it by clicking the save button on the top right of the screen&lt;br /&gt;Now your new module position is published.&lt;br /&gt;&lt;br /&gt;then go to the content-&gt;section manager. create a new section by clicking the new button on the top right of the screen. and save it.&lt;br /&gt;&lt;br /&gt;then go to the content-&gt;category manager. create a new category by clicking the new button on the top right of the screen. and save it.&lt;br /&gt;&lt;br /&gt;For example i have created a section “test” and created a category “test”, then in order to create a content &lt;br /&gt;&lt;br /&gt;go to content-&gt;content by section-&gt;test-&gt;test items&lt;br /&gt;&lt;br /&gt;in that click the new button on the top right create the name of your content and section and category.&lt;br /&gt;&lt;br /&gt;Then in the content area write these lines to publish your module in the desired page.&lt;br /&gt;&lt;br /&gt;{mosloadposition MODULE}&lt;br /&gt;&lt;br /&gt;this “MODULE “ is the position name you have created in moduleposition.&lt;br /&gt;&lt;br /&gt;Go to module manager and select your module and give the position as “MODULE”&lt;br /&gt;&lt;br /&gt;So that your module that was created by you or the installed module will be displayed in the desired page and location.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Joomla 1.5.X version:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In joomla 1.5.X versions we will create new module position like this&lt;br /&gt;&lt;br /&gt;Install the module and copy the module by selecting the module and clicking the copy button on the top right corner of the screen.&lt;br /&gt;&lt;br /&gt;then the copy module name will be "copy of module"&lt;br /&gt;&lt;br /&gt;click on the "copy of module" change the module name and there is a column called position dropdown box will be there.&lt;br /&gt;&lt;br /&gt;Generally we need to select the position from the dropdown box. But in this case it is an editable box even though it is a dropdown.&lt;br /&gt;&lt;br /&gt;Give the name of the new position that should not be there in the dropdown. and enable it..&lt;br /&gt;&lt;br /&gt;Now the new position name is let us say "MODULE"&lt;br /&gt;&lt;br /&gt;i want to publish this module in my article page..&lt;br /&gt;&lt;br /&gt;Go to the content-&gt;section manager. create a new section by clicking the new button on the top right of the screen. and save it.&lt;br /&gt;&lt;br /&gt;then go to the content-&gt;category manager. create a new category by clicking the new button on the top right of the screen. and save it.&lt;br /&gt;&lt;br /&gt;For eample i have created a section test and created a category test.then in order to go to content.&lt;br /&gt;&lt;br /&gt;Go to Content-&gt;article manager. create a new article by clicking the new button on the top right corner of the screen.&lt;br /&gt;&lt;br /&gt;give the name of the article and section and category.&lt;br /&gt;&lt;br /&gt;write these lines where ever you want the module to be published on the page&lt;br /&gt;&lt;br /&gt;{loadposition MODULE}      MODULE is the name of the new module position.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;&lt;br /&gt;Troubleshooting for joomla 1.5.X:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;if the module is not shown on the desired page. check the plugin like this&lt;br /&gt;&lt;br /&gt;Go to extensions-&gt;plugin manager. in that check whether Content - Load Module is published or not...,&lt;br /&gt;&lt;br /&gt;If it is not published publish by clicking the 'x' mark in the  enable column.&lt;br /&gt;&lt;br /&gt;Once it is published then click on Content - Load Module. change the plug-in parameters.&lt;br /&gt;&lt;br /&gt;In plug-in parameters there will be style dropdown..., click on the dropdown and select "No Wrapping(raw output)".&lt;br /&gt;&lt;br /&gt;Blog by Satish M&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-6542040603666573241?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/6542040603666573241/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/05/module-positons-in-joomla-in-10-and-15.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/6542040603666573241'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/6542040603666573241'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/05/module-positons-in-joomla-in-10-and-15.html' title='Module Positons in Joomla in 1.0 and 1.5'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-1431792329505798254</id><published>2010-05-24T03:49:00.000-07:00</published><updated>2010-05-24T04:33:39.517-07:00</updated><title type='text'>Generate PDF using html2pdf Zip.</title><content type='html'>Hi Developer,&lt;br /&gt;I got a requirement to generate pdf using php... Luckily with the help of my Innocent Boy i finished the task &amp; posting blog to all. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Generating PDF:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There are many pdf libraries which can be used to generate pdf files.&lt;br /&gt;Here I have used html2fpdf which internally uses fpdf library to convert html to pdf. We will add header and footer to the generated pdf also.&lt;br /&gt;&lt;br /&gt;A sample project can be downloaded here &lt;a href="http://www.macronimous.com/resources/html2pdf_sample.zip"&gt;http://www.macronimous.com/resources/html2pdf_sample.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;First Let us generate basic pdf file.&lt;br /&gt;&lt;br /&gt;Please find the index.php file in the extracted zip.&lt;br /&gt;&lt;br /&gt;&lt;?php&lt;br /&gt;require('html2fpdf.php');&lt;br /&gt;$pdf=new HTML2FPDF(); &lt;br /&gt;$pdf-&gt;AddPage(); &lt;br /&gt; &lt;br /&gt;$html = “Your HTML HERE”; &lt;br /&gt;$output=($html); &lt;br /&gt;$pdf-&gt;WriteHTML($output); &lt;br /&gt;$pdf-&gt;Output("sample.pdf"); &lt;br /&gt;header("Content-type: application/pdf"); &lt;br /&gt;header("Content-Disposition: attachment; filename=download.pdf"); &lt;br /&gt;readFile("sample.pdf");&lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;Above sample code will generate a pdf with text “Your HTML HERE” and prompt user to download the generated pdf.&lt;br /&gt;&lt;br /&gt;To add header and footer you can use already available functions.They are called automatically. They already exist in the FPDF class but do nothing, therefore we have to extend the class and override them. &lt;br /&gt;&lt;br /&gt;&lt;?php &lt;br /&gt; &lt;br /&gt;require('html2fpdf.php'); &lt;br /&gt;class PDF extends HTML2FPDF &lt;br /&gt;{ &lt;br /&gt;function Header() &lt;br /&gt;{ &lt;br /&gt;    $this-&gt;Image('header.gif',10,8); &lt;br /&gt;} &lt;br /&gt; &lt;br /&gt;function Footer() &lt;br /&gt;{ &lt;br /&gt;    $this-&gt;Image('ourpeople.jpg',10,250,33); &lt;br /&gt;} &lt;br /&gt; &lt;br /&gt;} &lt;br /&gt; &lt;br /&gt;$pdf=new PDF(); &lt;br /&gt;$pdf-&gt;AddPage();  &lt;br /&gt;$html = “Your HTML HERE”; &lt;br /&gt; $output=($html); &lt;br /&gt; $pdf-&gt;WriteHTML($output); &lt;br /&gt;$pdf-&gt;Output("sample.pdf"); &lt;br /&gt;header("Content-type: application/pdf"); &lt;br /&gt;header("Content-Disposition: attachment; filename=download.pdf"); &lt;br /&gt;readFile("sample.pdf"); &lt;br /&gt;?&gt;&lt;br /&gt;&lt;br /&gt;Now header and footer will be added to the generated pdf.&lt;br /&gt;&lt;br /&gt;There are lot more functions in FPDF and we cannot cover all those.&lt;br /&gt;To learn FPDF, please browse &lt;a href="http://www.fpdf.org"&gt;http://www.fpdf.org&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;NOTE : GIF image solution&lt;/span&gt;&lt;br /&gt;I think you face problem while using gif image in the pdf generation.so to avoid use link&lt;br /&gt;&lt;a href="http://code.google.com/p/html2pdf/issues/detail?id=2#c5"&gt;http://code.google.com/p/html2pdf/issues/detail?id=2#c5&lt;/a&gt; and download the gif.php and replace gif.php in html2pdf directory.&lt;br /&gt;&lt;br /&gt;Gud Luck Developers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-1431792329505798254?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/1431792329505798254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/05/generate-pdf-using-html2pdf-zip.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/1431792329505798254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/1431792329505798254'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/05/generate-pdf-using-html2pdf-zip.html' title='Generate PDF using html2pdf Zip.'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-1930916962671395363</id><published>2010-05-16T23:42:00.000-07:00</published><updated>2010-05-16T23:47:49.789-07:00</updated><title type='text'>Working on CustomPage Module in Drupal 6.x</title><content type='html'>Custom Page:&lt;br /&gt;&lt;br /&gt;Custom Page is an advanced theming tool, allowing developers to easily create pages with custom templates and maintain full control over the output.&lt;br /&gt;&lt;br /&gt;This module can be downloaded from http://drupal.org/project/custompage.&lt;br /&gt;&lt;br /&gt;Once, downloading is done extract and place in your modules folder.&lt;br /&gt;&lt;br /&gt;To add a custom page go to Administration &gt; Site building &gt; Custom pages &lt;br /&gt;List of available templates will be listed here. As we did not add any yet, none will be seen.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8G9k92ilt3g/S_DlzZmkNwI/AAAAAAAAADI/VcW8SqUywGI/s1600/first.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 146px;" src="http://4.bp.blogspot.com/_8G9k92ilt3g/S_DlzZmkNwI/AAAAAAAAADI/VcW8SqUywGI/s400/first.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5472126218463885058" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Click on 'Add a custom page or block', below screen will be seen.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8G9k92ilt3g/S_Dl60kf98I/AAAAAAAAADQ/tSOdrPJvOy4/s1600/second.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 211px;" src="http://1.bp.blogspot.com/_8G9k92ilt3g/S_Dl60kf98I/AAAAAAAAADQ/tSOdrPJvOy4/s400/second.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5472126345962059714" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Note: If above screen is not seen, make sure 'Custom Page Admin UI' module is enabled which is bundled with this module.&lt;br /&gt;&lt;br /&gt;Type in the Title, URL path and Key attributes for a custom page. "Key" is the name of a template file which you want to assign. For example, if 'test' is given as key and 'test' is given in URL Path, Now when link 'test' is being accessed from site, it looks for test.tpl.php file for the template.&lt;br /&gt;You can disable a page/block during development by unchecking the check box. Only users with 'administer custompage' permission can access the page when it is disabled.&lt;br /&gt;&lt;br /&gt;Once you are done with filing in the fields, click on 'Add Component' button. Now page is created succesfully.&lt;br /&gt;&lt;br /&gt;Next, we need to create the template file which was given while creating page. In our example key is 'test' so create 'test.tpl.php' in your current themes folder. Components now need to be inserted into the template file. &lt;br /&gt;A node can be inserted into the page using &lt;br /&gt;print custompage_node_tile( $key, $type = '', $teaser_only = FALSE ); &lt;br /&gt;where $key can be a node's node id (nid), in which case $type parameter is ignored, or it can be node's title, in which case the node_type needs to be indicated in the second $type parameter. You can insert just a teaser part of the node by passing $teaser_only = TRUE&lt;br /&gt;&lt;br /&gt;Similarly views, webforms, Regions, menus can be inserted to the template and theming can be done to make it display as per your wish.&lt;br /&gt;&lt;br /&gt;I have added a node with node id '3' by giving &lt;br /&gt;print custompage_node_tile(3, $type = '', $teaser_only = FALSE ); A page with node id 3 is already available in my site.&lt;br /&gt;&lt;br /&gt;Clear cache and access the URL 'test'. You can see the content part  replaced with the content in the page with node id '3'.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8G9k92ilt3g/S_DmMzdWDQI/AAAAAAAAADY/vqzvB2bRisM/s1600/last.JPG"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 165px;" src="http://4.bp.blogspot.com/_8G9k92ilt3g/S_DmMzdWDQI/AAAAAAAAADY/vqzvB2bRisM/s400/last.JPG" border="0" alt=""id="BLOGGER_PHOTO_ID_5472126654901259522" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In this way custom pages can be created with already available nodes, views, menus etc with custom theme.&lt;br /&gt;&lt;br /&gt;For furthur information http://drupal.org/node/286219 can be accessed. &lt;br /&gt;&lt;br /&gt;We help my innocent i'm able to post the article on custom page module in drupal.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-1930916962671395363?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/1930916962671395363/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/05/working-on-custompage-module-in-drupal.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/1930916962671395363'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/1930916962671395363'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/05/working-on-custompage-module-in-drupal.html' title='Working on CustomPage Module in Drupal 6.x'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_8G9k92ilt3g/S_DlzZmkNwI/AAAAAAAAADI/VcW8SqUywGI/s72-c/first.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-2591056142404524772</id><published>2010-04-30T22:07:00.000-07:00</published><updated>2010-04-30T22:19:22.782-07:00</updated><title type='text'>Include javascript in windows application in N2CMS</title><content type='html'>Hi Techies,&lt;br /&gt;&lt;br /&gt;I google lot of forums ,blogs etc....but i did not find any solution for include javascript file in N2CMS frame work i.e DOTNET&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So i finally got any idea with the help of my colleague and placed js file at the bottom of the window form page in N2CMS files or any windows form page.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Finally we will include js file &amp; javascript function will fires...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;gud luck all&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-2591056142404524772?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/2591056142404524772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/04/include-javascript-in-windows.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/2591056142404524772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/2591056142404524772'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/04/include-javascript-in-windows.html' title='Include javascript in windows application in N2CMS'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-322655340783590043</id><published>2010-03-22T22:15:00.000-07:00</published><updated>2010-03-22T22:39:19.968-07:00</updated><title type='text'>Multiple Selection Of Checkboxes Using Basic Javascript</title><content type='html'>&lt;pre&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;br /&gt;&lt;br /&gt;function checkUncheckAll(formName, groupName, key){  &lt;br /&gt; var groupParentName = groupName + '-parent'; &lt;br /&gt; var groupSuperParentName = groupName + '-parentsuper'; &lt;br /&gt; &lt;br /&gt; if(key == "super"){&lt;br /&gt;  if(document.getElementById(groupSuperParentName).checked){&lt;br /&gt;   document.getElementById(groupParentName).checked = true;&lt;br /&gt;  }else{&lt;br /&gt;   document.getElementById(groupParentName).checked = false;&lt;br /&gt;  }&lt;br /&gt; }else{&lt;br /&gt;  if(document.getElementById(groupParentName).checked){  &lt;br /&gt;   document.getElementById(groupSuperParentName).checked = true;&lt;br /&gt;  }else{&lt;br /&gt;   document.getElementById(groupSuperParentName).checked = false;&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt; checkUncheckChildren(formName, groupName, document.getElementById(groupParentName).checked);&lt;br /&gt; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function checkUncheckParent(formName, groupName){  &lt;br /&gt; var groupParentName = groupName + '-parent';&lt;br /&gt; var groupSuperParentName = groupName + '-parentsuper'; &lt;br /&gt; var childCheckFlag = false;&lt;br /&gt;&lt;br /&gt; objForm = document.getElementById(formName);&lt;br /&gt; for(i=0; i &lt; objForm.elements.length; i++){&lt;br /&gt;  if(objForm.elements[i].type == "checkbox" &amp;&amp; objForm.elements[i].name == groupName){      &lt;br /&gt;   if(objForm.elements[i].checked == true){&lt;br /&gt;    childCheckFlag = true;    &lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt; if(childCheckFlag == true){&lt;br /&gt;  document.getElementById(groupParentName).checked = true;&lt;br /&gt;  document.getElementById(groupSuperParentName).checked = true;&lt;br /&gt;&lt;br /&gt; }else{&lt;br /&gt;  document.getElementById(groupParentName).checked = false;&lt;br /&gt;  document.getElementById(groupSuperParentName).checked = false;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function checkUncheckChildren(formName, groupName, checkAllChildren){&lt;br /&gt; objForm = document.getElementById(formName);&lt;br /&gt; for(i=0; i &lt; objForm.elements.length; i++){&lt;br /&gt;  if(objForm.elements[i].type == "checkbox" &amp;&amp; objForm.elements[i].name == groupName){   &lt;br /&gt;   if(checkAllChildren){&lt;br /&gt;    objForm.elements[i].checked = true;&lt;br /&gt;   }else{&lt;br /&gt;    objForm.elements[i].checked = false;&lt;br /&gt;   }&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-322655340783590043?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/322655340783590043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/03/multiple-selection-of-checkboxes-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/322655340783590043'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/322655340783590043'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/03/multiple-selection-of-checkboxes-using.html' title='Multiple Selection Of Checkboxes Using Basic Javascript'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-9209626788432945180</id><published>2010-03-11T21:12:00.000-08:00</published><updated>2010-03-12T07:18:01.758-08:00</updated><title type='text'>Install Drupal with XAMPP in Ubuntu</title><content type='html'>Hi New Buddies/Developer,&lt;br /&gt;&lt;br /&gt;I'm assuming that you already install xampp in ubuntu machine,if not please install xampp in ubuntu machine by following &lt;a href="http://phpcmsworks.blogspot.com/2010/03/basic-ubuntu-os-command-for-working-php.html"&gt;link&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Requirments to Install Drupal&lt;br /&gt; 1) Please download latest drupal tar from &lt;a href="http://drupal.org"&gt;drupal.org&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong font='color:red'&gt;Note&lt;/strong&gt; I am considering drupal-6.12.tar.gz here,so you can change to latest version.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Install Drupal&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Let’s install Drupal by extracting its content to “opt/lampp/htdocs”:&lt;br /&gt;&lt;br /&gt;   1. Locate the file drupal-6.12.tar.gz.&lt;br /&gt;   2. If it’s not on your Desktop, move the file there.&lt;br /&gt;   3. Open the Terminal, enter the following command:&lt;br /&gt;&lt;br /&gt;sudo tar xvfz Desktop/drupal-6.12.tar.gz -C /opt/lampp/htdocs&lt;br /&gt;&lt;br /&gt;   1. Let’s rename “drupal-6.12″ folder to a cleaner name, “drupal”.&lt;br /&gt;   2. Enter the following command:&lt;br /&gt;&lt;br /&gt;sudo mv /opt/lampp/htdocs/drupal-6.12 /opt/lampp/htdocs/drupal&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Test Drupal&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Okay, we can now verify whether Drupal has installed correctly:&lt;br /&gt;&lt;br /&gt;   1. Open your web broswer.&lt;br /&gt;   2. Enter the following address:&lt;br /&gt;&lt;br /&gt;http://localhost/drupal&lt;br /&gt;&lt;br /&gt;You should see this page:&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8G9k92ilt3g/S5nZDcUvbJI/AAAAAAAAACY/27BvokYzt1I/s1600-h/drupal1.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 199px;" src="http://4.bp.blogspot.com/_8G9k92ilt3g/S5nZDcUvbJI/AAAAAAAAACY/27BvokYzt1I/s400/drupal1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5447623877447347346" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Drupal Setup&lt;br /&gt;Create a Database&lt;br /&gt;&lt;br /&gt;In this section, we create a new database for Drupal to store data:&lt;br /&gt;&lt;br /&gt;   1. Open your web browser.&lt;br /&gt;   2. Enter the following address:&lt;br /&gt;&lt;br /&gt;http://localhost/phpmyadmin/&lt;br /&gt;&lt;br /&gt;   1. In the Create new database text box, type in a name for your database (I named mine “creativebushido”.)&lt;br /&gt;   2. Click the Create button.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Configure Drupal&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Having completed the installation of XAMPP, Drupal, and a brand spanking new database, we can finally go ahead and configure Drupal:&lt;br /&gt;&lt;br /&gt;   1. Open your web browser.&lt;br /&gt;   2. Enter the following address:&lt;br /&gt;&lt;br /&gt;http://localhost/drupal&lt;br /&gt;&lt;br /&gt;   1. Click the Install Drupal in English link.&lt;br /&gt;   2. You will be likely to ecounter the following page:&lt;br /&gt; &lt;a href="http://3.bp.blogspot.com/_8G9k92ilt3g/S5nZi0HowHI/AAAAAAAAACo/5t3mge_6FRs/s1600-h/drupal2.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 224px;" src="http://3.bp.blogspot.com/_8G9k92ilt3g/S5nZi0HowHI/AAAAAAAAACo/5t3mge_6FRs/s400/drupal2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5447624416410779762" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Don’t fret! First, we make a copy of default.settings.php and rename it to settings.php.&lt;br /&gt;&lt;br /&gt;   1. Open the Terminal, enter the following command:&lt;br /&gt;&lt;br /&gt;sudo cp /opt/lampp/htdocs/drupal/sites/default/default.settings.php /opt/lampp/htdocs/drupal/sites/default/settings.php&lt;br /&gt;&lt;br /&gt;Next, we need to grant permissions to the settings.php file so that it’s writeable:&lt;br /&gt;&lt;br /&gt;   1. Enter the following command (press Enter after each line):&lt;br /&gt;&lt;br /&gt;cd /opt/lampp/htdocs/drupal/sites&lt;br /&gt;&lt;br /&gt;sudo chmod a+w default&lt;br /&gt;&lt;br /&gt;sudo chmod a+w default/settings.php&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That should have solved all the problems! Okay, now you should be able to see the Database configuration page in your browser:&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_8G9k92ilt3g/S5nbWo-7gmI/AAAAAAAAADA/1h6EzOgIhBY/s1600-h/drupal6.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 241px;" src="http://1.bp.blogspot.com/_8G9k92ilt3g/S5nbWo-7gmI/AAAAAAAAADA/1h6EzOgIhBY/s400/drupal6.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5447626406286295650" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Notice that I have entered a name for my database, the same name I’d used earlier. Make sure you do the same.&lt;br /&gt;&lt;br /&gt;Once you clicked the Save and continue button on the Set up database page, you will be directed to the Configure site page, like the picture below:&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_8G9k92ilt3g/S5nZXij2LVI/AAAAAAAAACg/o41t-GKnuCA/s1600-h/drupal5.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 241px;" src="http://4.bp.blogspot.com/_8G9k92ilt3g/S5nZXij2LVI/AAAAAAAAACg/o41t-GKnuCA/s400/drupal5.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5447624222718700882" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;For security purposes, it tells you to remove write permissions to the settings.php file. Let’s do that:&lt;br /&gt;&lt;br /&gt;   1. Open the Terminal, enter the following command:&lt;br /&gt;&lt;br /&gt;sudo chmod a-w /opt/lampp/htdocs/drupal/sites/default/settings.php&lt;br /&gt;&lt;br /&gt;Finally! You are now ready to enter some important informations for your new web site.&lt;br /&gt;&lt;br /&gt;Fill out the the required information for the Site information and Administration account sections. Make sure you remember the username and password you’ve entered!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8G9k92ilt3g/S5naVAvfoZI/AAAAAAAAACw/5pl3yj2LHRQ/s1600-h/drupal3.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 228px;" src="http://3.bp.blogspot.com/_8G9k92ilt3g/S5naVAvfoZI/AAAAAAAAACw/5pl3yj2LHRQ/s400/drupal3.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5447625278792638866" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Once all the informations are filled out, click the Save and continue button.&lt;br /&gt;&lt;br /&gt;Voila! Give yourself a pat on the back! You have just completed installing Drupal on your computer!&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_8G9k92ilt3g/S5nbKKkj0VI/AAAAAAAAAC4/TbfzDmHdbZE/s1600-h/drupal4.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 212px;" src="http://3.bp.blogspot.com/_8G9k92ilt3g/S5nbKKkj0VI/AAAAAAAAAC4/TbfzDmHdbZE/s400/drupal4.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5447626191964197202" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I hope this has been useful. If you have any technical issues, Please feel free to post your error to me.&lt;br /&gt;&lt;br /&gt;I'm glad to creativebushido.wordpress.com blogs for to post this blog :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-9209626788432945180?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/9209626788432945180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/03/install-drupal-with-xampp-in-ubuntu.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/9209626788432945180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/9209626788432945180'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/03/install-drupal-with-xampp-in-ubuntu.html' title='Install Drupal with XAMPP in Ubuntu'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_8G9k92ilt3g/S5nZDcUvbJI/AAAAAAAAACY/27BvokYzt1I/s72-c/drupal1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-5337289956615146311</id><published>2010-03-10T23:15:00.000-08:00</published><updated>2010-03-11T02:10:28.949-08:00</updated><title type='text'>Deprecate function Problem for Drupal/Joomla in PHP 5.3.x</title><content type='html'>Hi Developers,&lt;br /&gt;I googled or searched a lot of forums and website to resolve the issue Deprecate Function error when installing Drupal CMS in PHP 5.3.x version but finally a got a forum i.e &lt;a href="http://drupal.org/node/514334"&gt;Click it &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution Type 1:&lt;/span&gt;&lt;br /&gt; Deprecate warning  while installing Drupal framework in php 5.3 version.&lt;br /&gt;If you prefer to keep PHP 5.3, you can always suppress the errors. In Drupal's  includes/common.inc, find line 620(nearly). &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;It should be listed as:&lt;br /&gt;if ($errno &amp; (E_ALL ^ E_NOTICE ^ E_DEPRECATED)) { &lt;br /&gt;Replace this line with:&lt;br /&gt;if ($errno &amp; (E_ALL &amp;  ~E_NOTICE &amp; ~E_DEPRECATED)) { &lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After doing above change in include/common.inc drupal folder,check the installing drupal, if you get again error then you need to Change in php.ini file also&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;It should be listed as:&lt;br /&gt;error_reporting=E_ALL | E_STRICT | E_DEPRICATED&lt;br /&gt;Replace this line with:&lt;br /&gt;error_reporting=E_ALL &amp; ~E_DEPRICATED &amp; ~E_STRICT&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After finishing above change in php.ini,Please Restart your Webserver and Check the installation of drupal.&lt;br /&gt;&lt;br /&gt;Note that every time you update Drupal  you'll have to manually make this change until they finally patch them to deal properly with php 5.3  &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Solution Type 2:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note :If you Still get Deprecate Error after changing all above setting, while Installing Drupal in PHP 5.3.x.&lt;br /&gt; I got solution by &lt;span style="font-weight:bold;"&gt;My Colleague(Innocent )&lt;/span&gt;&lt;br /&gt;  Remove all above changes and modify following Line no 902 in includes/file.inc  in drupal it resolve the deprecate error.&lt;br /&gt; &lt;br /&gt; &lt;span style="font-weight:bold;"&gt;&lt;br /&gt; It should be listed as:&lt;br /&gt; elseif ($depth &gt;= $min_depth &amp;&amp; ereg($mask, $file)) {&lt;br /&gt; Replace this line with:&lt;br /&gt; elseif ($depth &gt;= $min_depth &amp;&amp; @ereg($mask, $file)) {&lt;br /&gt; &lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-5337289956615146311?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/5337289956615146311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/03/deprecate-function-problem-for.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/5337289956615146311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/5337289956615146311'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/03/deprecate-function-problem-for.html' title='Deprecate function Problem for Drupal/Joomla in PHP 5.3.x'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-6629244005320164999</id><published>2010-03-05T01:48:00.000-08:00</published><updated>2010-03-05T03:23:12.029-08:00</updated><title type='text'>Basic Ubuntu OS Command for Working PHP application</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Start Up&lt;/span&gt;:&lt;br /&gt;When i started working on the ubuntu machine(i.e march 2nd 2010) i am little scared &amp; tensed..but now it seems cool &amp; great... :)&lt;br /&gt;&lt;br /&gt;Now i am not providing all command which ubuntu support.&lt;br /&gt;&lt;br /&gt;New Buddies like me want to work on ubuntu machine similary to windows machine.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;My Problems on Ubuntu &amp; Solution&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;font color='red'&gt;Note &lt;/font&gt;:When you logged into ubuntu machine your not root user to the machine so you use &lt;span style="font-weight:bold;"&gt;SUDO&lt;/span&gt; command to perform operations(read/write/create/execute).&lt;br /&gt;&lt;br /&gt;1)Unable to find terminal?&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans&lt;/span&gt;: Click on Application-&gt;system tools-&gt;terminal&lt;br /&gt;2)Unable to minimize all windows opened using keyboard? &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans&lt;/span&gt;: Press ctrl+alt+d keys&lt;br /&gt;3)Navigation of windows using keyboard?&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans&lt;/span&gt;: Press alt+Tab keys &lt;br /&gt;4)Unable to create (php,html,js)files etc using vi command in terminal?&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans&lt;/span&gt;: Use Text Editor for create/write/read files and to enable highlighting code in the Text Editor,first open Text Editor and click on the edit menu -&gt;perferences-&gt;enable php code &lt;br /&gt;5)Configuration xampp server??&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans&lt;/span&gt;:&lt;br /&gt;XAMPP for Linux Download – http://www.apachefriends.org/en/xampp-linux.html&lt;br /&gt;Pre-Installation&lt;br /&gt;&lt;br /&gt;By now, you should have already downloaded the following file:&lt;br /&gt;&lt;br /&gt;   1. xampp-linux-1.7.1.tar.gz&lt;br /&gt;&lt;br /&gt;Note: Unless you know what you’re doing, it’s recommended that you’re using the same files to avoid any confusion. If, for example, when newer versions are released, simply type in the correct file name when installing in the “Install XAMPP”.&lt;br /&gt;&lt;br /&gt;Now, this tutorial is done on a Linux system (Ubuntu), not Windows. Remember earlier when I told you the tools I’d use are all free? Well, Ubuntu is an excellent alternative operating system to Windows! Give it a try, you may like it!&lt;br /&gt;Install XAMPP&lt;br /&gt;&lt;br /&gt;We install XAMPP by extracting its content to a folder named “opt”:&lt;br /&gt;&lt;br /&gt;   1. Locate the file xampp-linux-1.7.1.tar.gz you’ve just downloaded.&lt;br /&gt;   2. If it’s not on your Desktop, move the file there use cd ~ command Press enter.&lt;br /&gt;   3. Open the Terminal, enter the following command:&lt;br /&gt;&lt;br /&gt;sudo tar xvfz Desktop/xampp-linux-1.7.1.tar.gz -C /opt&lt;br /&gt;Start XAMPP&lt;br /&gt;&lt;br /&gt;You installed XAMPP in the previous section, now it’s time to start it:&lt;br /&gt;&lt;br /&gt;   1. Open the Terminal, enter the following command:&lt;br /&gt;&lt;br /&gt;sudo /opt/lampp/lampp start&lt;br /&gt;&lt;br /&gt;You should see the following lines in the terminal if everything is done correctly:&lt;br /&gt;&lt;br /&gt;    XAMPP: Starting Apache with SSL (and PHP5)…&lt;br /&gt;    XAMPP: Starting MySQL…&lt;br /&gt;    XAMPP: Starting ProFTPD…&lt;br /&gt;    XAMPP for Linux started.&lt;br /&gt;&lt;br /&gt;Test XAMPP&lt;br /&gt;&lt;br /&gt;Okay, so how do you know if XAMPP is currently active?&lt;br /&gt;&lt;br /&gt;   1. Open your favourite web broswer.&lt;br /&gt;   2. Enter the following address:&lt;br /&gt;&lt;br /&gt;http://localhost.&lt;br /&gt;It will open XAMPP Start Up Page.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans&lt;/span&gt;:&lt;br /&gt;6)Mail Configuration in Ubuntu?&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans&lt;/span&gt;:Install sendmail server in ubuntu machine &lt;br /&gt;7)Execution php files in the XAMPP?&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Ans&lt;/span&gt;:Use following commands:&lt;br /&gt;[username@localhost ~]$cd / press enter&lt;br /&gt;[username@localhost ~]$cd /opt/lampp/htdocs/ press enter&lt;br /&gt;[username@localhost ~]$sudo mkdir examples  press enter&lt;br /&gt;[username@localhost ~]$sudo chmod 777 examples press enter&lt;br /&gt;Now Go to filesystem (root/opt/lampp/htdocs/examples) and create php file(i.e test.php) in the folder.&lt;br /&gt;Next Step:&lt;br /&gt;browser the link http://localhost/examples/test.php&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-6629244005320164999?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/6629244005320164999/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/03/basic-ubuntu-os-command-for-working-php.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/6629244005320164999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/6629244005320164999'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/03/basic-ubuntu-os-command-for-working-php.html' title='Basic Ubuntu OS Command for Working PHP application'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-6077846423516790684</id><published>2010-01-21T01:23:00.000-08:00</published><updated>2010-01-21T01:26:29.241-08:00</updated><title type='text'>Sending Mail using IIS server with PHP</title><content type='html'>Using mail() function to send email from IIS server:&lt;br /&gt;This is url &lt;a href="http://www.ruhanirabin.com/php-sendmail-setup-with-smtp-iis-and-windows-servers/" target="_blank"&gt;Read it&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-6077846423516790684?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/6077846423516790684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/01/sending-mail-using-iis-server-with-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/6077846423516790684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/6077846423516790684'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/01/sending-mail-using-iis-server-with-php.html' title='Sending Mail using IIS server with PHP'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-6864371904697450307</id><published>2010-01-20T02:54:00.000-08:00</published><updated>2010-01-20T20:30:21.532-08:00</updated><title type='text'>Installation PHP&amp;MYSQL in IIS SERVER</title><content type='html'>&lt;span style="font-weight:bold;"&gt;TUTORIAL: PHP Application runs on IIS SERVER&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;There are 3 steps to Configure php,mysql,iis server in windows xp.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 1:&lt;/span&gt;&lt;br /&gt;Enable IIS Server:&lt;br /&gt;  a)If you don't install iis server in windows xp then goto start-&gt;settings-&gt;controlpanel-&gt;Add or Remove Programs-&gt;Add/Remove Windows Component and&lt;br /&gt;enable Internet Information Services(IIS) checkbox and proceed installation(need I386 folder in windows xp to complete installation).&lt;br /&gt; b)After successful installation,open IE browser and click http://localhost it will display startup page of iis server.&lt;br /&gt;This is completes IIS server Configuration in Windows.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 2:&lt;/span&gt;&lt;br /&gt;Configuration PHP in IIS Server:&lt;br /&gt;  a)Download latest php zip from this &lt;a href="http://www.php.net/downloads.php"&gt;url&lt;/a&gt; and extract the zip and place in temporary like (C:\php).&lt;br /&gt;  b)Copy php-ini-recommended file and rename to php.ini place it in c:\WINDOWS folder,if php.ini is presented means please take backup and overwrite the file.&lt;br /&gt;  c)Make the change extension_dir = "C:\php\ext" in php.ini file.&lt;br /&gt;  d)Configure IIS DLL for executing php on iis server.&lt;br /&gt;  &lt;span style="font-weight:bold;"&gt;Do Following thing&lt;/span&gt;:-- &lt;br /&gt;  Start&gt;control panel&gt;administrative tools&gt;Internet Information Service Expand the + buttons on the left side area if any and Right click the label saying default web site. You will get a list of items in the menu and then go to properties section. &lt;br /&gt;  &lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8G9k92ilt3g/S1fXnKcGnYI/AAAAAAAAAA8/2Tx55wzYytk/s1600-h/iis.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 221px; height: 346px;" src="http://4.bp.blogspot.com/_8G9k92ilt3g/S1fXnKcGnYI/AAAAAAAAAA8/2Tx55wzYytk/s400/iis.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5429044943635520898" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8G9k92ilt3g/S1fXt-pMWhI/AAAAAAAAABE/t4xcpU0qb9g/s1600-h/iis+configuration.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 397px; height: 400px;" src="http://1.bp.blogspot.com/_8G9k92ilt3g/S1fXt-pMWhI/AAAAAAAAABE/t4xcpU0qb9g/s400/iis+configuration.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5429045060728281618" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_8G9k92ilt3g/S1fXz3yggZI/AAAAAAAAABM/7qylKqG-Et0/s1600-h/iis+configuration1.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 234px;" src="http://1.bp.blogspot.com/_8G9k92ilt3g/S1fXz3yggZI/AAAAAAAAABM/7qylKqG-Et0/s400/iis+configuration1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5429045161967518098" /&gt;&lt;/a&gt;&lt;br /&gt;Now you can execute PHP code using IIS webserver&lt;br /&gt; Create a file info.php in C:\Inetpub\wwwroot with following code&lt;br /&gt;  &lt;?php&lt;br /&gt;   phpinfo();&lt;br /&gt;  ?&gt;&lt;br /&gt; Now execute the info.php file in browser using http://localhost/info.php ,then you will observe php configuration in the browser.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Note:&lt;/span&gt; Currently You cannot execute Mysql commands in php application.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Step 3:&lt;/span&gt;&lt;br /&gt;Install Mysql in php&lt;br /&gt; a)Download MYSQL from this &lt;a href="http://dev.mysql.com/downloads/"&gt;url&lt;/a&gt; and install by click on the .exe through wizards.&lt;br /&gt; b)Copy libmysql.dll file and place it in c:\WINDOWS\SYSTEM32 folder.&lt;br /&gt; C)Edit php.ini from c:\WINDOWS folder to enable mysql library to php&lt;br /&gt;    Remove ; (mark) for this two dll's&lt;br /&gt;    extension=php_mysql.dll&lt;br /&gt;    extension=php_mysqli.dll&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now you can execute php+mysql application.&lt;br /&gt;&lt;br /&gt;Good Luck&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-6864371904697450307?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/6864371904697450307/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/01/installation-php-in-iis-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/6864371904697450307'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/6864371904697450307'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/01/installation-php-in-iis-server.html' title='Installation PHP&amp;MYSQL in IIS SERVER'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_8G9k92ilt3g/S1fXnKcGnYI/AAAAAAAAAA8/2Tx55wzYytk/s72-c/iis.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-876584394048519978</id><published>2010-01-11T22:21:00.000-08:00</published><updated>2010-01-14T23:48:16.109-08:00</updated><title type='text'>Module Development In Joomla 1.5x</title><content type='html'>&lt;a href="http://bogeyman2007.blogspot.com/2009/05/joomla-15-creating-you-own-guestbook.html"&gt;TUTORIAL FOR COMPONENT&lt;/a&gt;&lt;br /&gt;This article will discuss about the basic of module development in Joomla! 1. we are going to create a module which will randomly display the comment from guestbook comonent.&lt;br /&gt;&lt;br /&gt;Preparation&lt;br /&gt;&lt;br /&gt;For the preparation, you can use this insert statement to register your new module to Joomla! database.&lt;br /&gt;&lt;br /&gt;INSERT INTO `jos_modules` (`title`, `ordering`, `position`, `published`, `module`, `showtitle`) VALUES&lt;br /&gt;('Comment', 19, 'left', 1, 'mod_comment', 1);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Write The Code&lt;br /&gt;&lt;br /&gt;Developing module is simpler than developing component. For the start, you just need one file to store your PHP code. So, create a new folder called mod_comment under modules folder inside your Joomla! root folder.&lt;br /&gt;&lt;br /&gt;Then, create a new file inside your new folder and name it mod_comment.php. With this file, we're going to display a random comment from guestbook including the sender name and the sending date.&lt;br /&gt;&lt;br /&gt;&lt;textarea cols='25' rows='25'&gt;&lt;?php&lt;br /&gt;## NO DIRECT ACCESS ##&lt;br /&gt;defined('_JEXEC') or die("Restricted access.");&lt;br /&gt;&lt;br /&gt;## GET THE DATABASE OBJECT ##&lt;br /&gt;$db=JFactory::getDBO();&lt;br /&gt;&lt;br /&gt;/*** THE MODIFIED CODE STARTS HERE ***/&lt;br /&gt;if($params-&gt;get("start_date", "")!="" &amp;&amp; $params-&gt;get("end_date", "")!=""){&lt;br /&gt;    $queryCount="SELECT COUNT(*) FROM #__guestbook WHERE DATE(datetime) BETWEEN '".$db-&gt;getEscaped($params-&gt;get("start_date", ""))."' AND '".$db-&gt;getEscaped($params-&gt;get("end_date", ""))."'";&lt;br /&gt;    $querySelect="SELECT name, comment, datetime FROM #__guestbook WHERE DATE(datetime) BETWEEN '".$db-&gt;getEscaped($params-&gt;get("start_date", ""))."' AND '".$db-&gt;getEscaped($params-&gt;get("end_date", ""))."'";&lt;br /&gt;}&lt;br /&gt;else{&lt;br /&gt;    $queryCount="SELECT COUNT(*) FROM #__guestbook";&lt;br /&gt;    $querySelect="SELECT name, comment, datetime FROM #__guestbook";&lt;br /&gt;}&lt;br /&gt;/*** THE MODIFIED CODE ENDS HERE ***/&lt;br /&gt;&lt;br /&gt;$db-&gt;setQuery($queryCount);&lt;br /&gt;$total=$db-&gt;loadResult();    &lt;br /&gt;$start=rand(0, ($total-1));&lt;br /&gt;&lt;br /&gt;$db-&gt;setQuery($querySelect, $start, 1);&lt;br /&gt;$row=$db-&gt;loadObject();&lt;br /&gt;?&gt;&lt;br /&gt;&lt;div style="margin-left:5px"&gt;&lt;br /&gt;        &lt;?php&lt;br /&gt;        if($row!=null){&lt;br /&gt;            ?&gt;&lt;br /&gt;            &lt;div style="font-weight:bold"&gt;&lt;?php echo $row-&gt;name ?&gt;&lt;/div&gt;&lt;br /&gt;            &lt;div style="margin-left:10px"&gt;&lt;br /&gt;                &lt;div style="font-style:italic"&gt;"&lt;?php echo $row-&gt;comment ?&gt;"&lt;/div&gt;&lt;br/&gt;&lt;br /&gt;                &lt;div style="text-align:right;font-size:10px"&gt;&lt;?php echo JHTML::Date($row-&gt;datetime) ?&gt;&lt;/div&gt;&lt;br /&gt;            &lt;/div&gt;&lt;br /&gt;            &lt;?php&lt;br /&gt;        }&lt;br /&gt;        else{&lt;br /&gt;            ?&gt;&lt;br /&gt;            &lt;i&gt;No comment to be displayed.&lt;/i&gt;&lt;br /&gt;            &lt;?php&lt;br /&gt;        }&lt;br /&gt;        ?&gt;&lt;br /&gt;&lt;/div&gt;&lt;/textarea&gt;&lt;br /&gt;Run It&lt;br /&gt;&lt;br /&gt;Now, open your Joomla! web, you will got a randomize comment displayed on your module. You can refresh your page to see if it works. You can also manage its placement from the Joomla! administration page.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-876584394048519978?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/876584394048519978/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/01/module-development-in-joomla-15x.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/876584394048519978'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/876584394048519978'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/01/module-development-in-joomla-15x.html' title='Module Development In Joomla 1.5x'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-5410719657793221020</id><published>2010-01-05T03:16:00.000-08:00</published><updated>2010-01-05T03:58:14.469-08:00</updated><title type='text'>Generate Portal using with PHP+MYSQL in Liferay</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Implementation Of Portal in Liferay Using PHP: &lt;/span&gt;&lt;br /&gt;According to the Post Number 13 from http://www.liferay.com/web/guest/community/forums/-/message_boards/message/214438;jsessionid=D538D102BA519B77651E1B65235D6A23?_19_threadView=flat&lt;br /&gt;&lt;br /&gt;Assuming that you install/configure LIFERAY Portal setup in windows machine and Unable to access administration panel like this &lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_8G9k92ilt3g/S0MhtzyhNfI/AAAAAAAAAAs/seteZaHxvMc/s1600-h/liferay1.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 188px;" src="http://2.bp.blogspot.com/_8G9k92ilt3g/S0MhtzyhNfI/AAAAAAAAAAs/seteZaHxvMc/s400/liferay1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5423215447164138994" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;STEPS:&lt;/span&gt;&lt;br /&gt;1)Here i am using default php portal i.e sample-php-portlet (location c://liferay-portal-5.2.3\tomcat-5.5.27\webapps\sample-php-portlet) &lt;br /&gt;2)Now add below code the index.php after $_POST[];&lt;br /&gt; -------------------------------------------------&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;//CONNECTION STRING FOR MYSQL DATABASE: &lt;/span&gt; &lt;br /&gt;$dbh = new PDO('java:comp/env/jdbc/MySQLDatabase');&lt;br /&gt;      if ($dbh) {&lt;br /&gt;                   &lt;br /&gt;      $sql="SELECT *FROM emp WHERE name = '".$usr."'";&lt;br /&gt;       foreach ($dbh-&gt;query($sql) as $row) {&lt;br /&gt;                         echo "&lt;h2&gt;".$row['name'] . "&lt;/h2&gt;&lt;br&gt;";&lt;br /&gt;      &lt;br /&gt;                      }&lt;br /&gt;&lt;br /&gt; ------------------------------------------------------------------------&lt;br /&gt; 3)Add Configuration setting at the end &lt;servlet-mapping&gt;&lt;/servlet-mapping&gt; tag in&lt;br /&gt;  c:\\liferay-portal-5.2.3\tomcat-5.5.27\webapps\sample-php-portlet\WEB-INF\web.xml file&lt;br /&gt;  ----------------------------------------------------------------------- &lt;br /&gt;  &lt;resource-ref&gt;&lt;br /&gt;  &lt;description&gt;DB Connection&lt;/description&gt;&lt;br /&gt;  &lt;res-ref-name&gt;jdbc/MySQLDatabase&lt;/res-ref-name&gt;&lt;br /&gt;  &lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;&lt;br /&gt;  &lt;res-auth&gt;Container&lt;/res-auth&gt;&lt;br /&gt;  &lt;/resource-ref&gt;&lt;br /&gt;  -----------------------------------------------------------------------&lt;br /&gt; 4)Add Configuration to map the database to the portal in   c:\\liferay-portal-5.2.3\tomcat-5.5.27\webapps\sample-php-portlet\META-INF\context.xml file.&lt;br /&gt;-------------------------------------------------------------------------------&lt;br /&gt;&lt;Context path="/FOO" docBase="FOO"&lt;br /&gt;debug="5" reloadable="true" crossContext="true"&gt;&lt;br /&gt;&lt;br /&gt;&lt;Resource name="jdbc/MySQLDatabase" auth="Container" type="javax.sql.DataSource"&lt;br /&gt;maxActive="10" maxIdle="5" maxWait="10000"&lt;br /&gt;username="root" password="kmipl" driverClassName="com.mysql.jdbc.Driver"&lt;br /&gt;url="jdbc:mysql://localhost:3306/test?useUnicode=true&amp;amp;characterEncoding=UTF-8"/&gt;&lt;br /&gt;&lt;/Context&gt;&lt;br /&gt;-----------------------------------------------------------------------------------&lt;br /&gt;  &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;NOTE:&lt;/span&gt;&lt;br /&gt;If context.xml is not available means, Please add a context.xml under META-INF with above content. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Adding PHP Portal using Liferay Interface&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;ADD PHP PORTAL TO LIFERAY SITE&lt;/span&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_8G9k92ilt3g/S0MlZw6lf0I/AAAAAAAAAA0/vlxFiO8zXYo/s1600-h/liferay2.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 154px;" src="http://2.bp.blogspot.com/_8G9k92ilt3g/S0MlZw6lf0I/AAAAAAAAAA0/vlxFiO8zXYo/s400/liferay2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5423219500841795394" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; 1)Click on the Add Application&lt;br /&gt; 2)Select sample-php-portal in the administration section and&lt;br /&gt; 3)Click on add link and portal will be enable on the website.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-5410719657793221020?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/5410719657793221020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/01/generate-portal-using-with-phpmysql-in.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/5410719657793221020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/5410719657793221020'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/01/generate-portal-using-with-phpmysql-in.html' title='Generate Portal using with PHP+MYSQL in Liferay'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_8G9k92ilt3g/S0MhtzyhNfI/AAAAAAAAAAs/seteZaHxvMc/s72-c/liferay1.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-76334247006889503</id><published>2010-01-04T20:57:00.000-08:00</published><updated>2010-01-04T21:03:11.802-08:00</updated><title type='text'>Generate Week Date Using Date &amp; Strtotime Function</title><content type='html'>I published on 2010-01-05 date.&lt;br /&gt;So Output we be as follow :&lt;br /&gt; &lt;br /&gt;$current_day = date("N"); //numeric representation of the day of the week : 2       for(Tuesday)&lt;br /&gt;&lt;br /&gt;$days_to_friday = 5 - $current_day; // print 3 output&lt;br /&gt;$days_from_monday = $current_day - 1; //print 1 output&lt;br /&gt;$monday = date("Y-m-d", strtotime("- {$days_from_monday} Days"));&lt;br /&gt;$friday = date("Y-m-d", strtotime("+ {$days_to_friday} Days"));&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$timestampoffrom = strtotime($monday);&lt;br /&gt;$timestampofto = strtotime($friday);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-76334247006889503?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/76334247006889503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/01/generate-week-date-using-date-strtotime.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/76334247006889503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/76334247006889503'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/01/generate-week-date-using-date-strtotime.html' title='Generate Week Date Using Date &amp; Strtotime Function'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-2785857571042064329</id><published>2010-01-04T04:26:00.000-08:00</published><updated>2010-01-05T02:30:56.036-08:00</updated><title type='text'>Mutlisites Using Drupal6.x</title><content type='html'>Running multiple sites on a local PC (localhost) from a single codebase, using Windows&lt;br /&gt;REF.  http://drupal.org/node/32715 &lt;br /&gt;http://drupal.org/node/53705 &lt;br /&gt;&lt;br /&gt;Here's how to get mutltiple sites working on localhost using Windows XP. NB: This post was originally written for Drupal 4.6.x but has been updated for 6.x so some of the comments below are now obsolete. &lt;br /&gt;Preparation&lt;br /&gt;Assume you're starting with a working D6.x installation, have followed the installation instructions and got the default site up and running. If not, start here http://drupal.org/getting-started/install.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Multi-site setup&lt;/span&gt;&lt;br /&gt;OK, to set up multi-sites there are four stages to go through, but it's not difficult:&lt;br /&gt;1. Set up your databases, one for each website&lt;br /&gt;2. Set up each site in Drupal&lt;br /&gt;3. Edit the virtual host settings in Apache&lt;br /&gt;4. Update the Windows hosts file&lt;br /&gt;In the following example we will add a local site"http://testsite1" in addition to the default site. We'll assume Drupal is installed in c:/www (and that your web root is set to c:/www in the apache config file, apache\conf\httpd.conf).&lt;br /&gt;1. Databases&lt;br /&gt;Firstly we will set up a new database for 'testsite1'&lt;br /&gt;1. Use SQLyog and log into your DB server at localhost.&lt;br /&gt;2. Ctrl+D to create a new database. Type a name for your database in the 'create database' textbox ('testsite1' is as good as anything) then click the create button. A new database outline will be added.&lt;br /&gt;3. Repeat for each additional site you want to set up. &lt;br /&gt;&lt;span style="font-weight:bold;"&gt;2. Drupal&lt;/span&gt;&lt;br /&gt;1. Create a new folder /sites/testsite1. i.e. you should now have two folders in your sites folder, default and testsite1.&lt;br /&gt;2. Make sure the folder /sites/default contains an unmodified copy of the file default.settings.php. The installer script will look for this file when installing your new site and the install will fail if it ain't there. If necessary, extract a copy from the drupal install package.&lt;br /&gt;3. Also place a copy default.settings.php in the testsite1 folder and rename it settings.php. Make sure the file is writeable (i.e. the 'read only' attribute is not set) because Drupal will modify this file as part of the installation process.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;3. Apache&lt;/span&gt;&lt;br /&gt;Important to enable # Virtual hosts in httpd.conf in apache/conf&lt;br /&gt;1. Open the apache config file '\apache\conf\extra\httpd-vhosts.conf'.&lt;br /&gt;2. Scroll to the end of the file, where you will find the virtual hosting setup. Assuming your websites are all located in the folder c:/www then add the following lines (edit the paths as necessary)&lt;br /&gt;NameVirtualHost *:80&lt;br /&gt;&lt;br /&gt;&lt;VirtualHost *:80&gt;&lt;br /&gt;   DocumentRoot c:/wamp/www/&lt;br /&gt;   ServerName localhost&lt;br /&gt;&lt;/VirtualHost&gt;&lt;br /&gt;&lt;br /&gt;&lt;VirtualHost *:80&gt;&lt;br /&gt;   DocumentRoot c:/wamp/www/drupal6&lt;br /&gt;   ServerName testsite1&lt;br /&gt;&lt;/VirtualHost&gt;&lt;br /&gt;There are lots of other things you can add into your VHost settings - see the Apache documentation.&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;4. Windows&lt;/span&gt;&lt;br /&gt;We now need to tell Windows that the domain 'testsite1' is hosted locally, i.e. not to look on the Internet for it. Open the 'hosts' file with notepad. It can usually be found in c:/windows/system32/drivers/etc&lt;br /&gt;Edit the end of the file to read:&lt;br /&gt;127.0.0.1 localhost&lt;br /&gt;127.0.0.1 testsite1&lt;br /&gt;Save the file.&lt;br /&gt;Apache, again&lt;br /&gt;OK, that's (almost) it. All that is left is to restart the Apache webserver. You could reboot your computer but a better way is to open a command prompt window and type 'net stop apache'. When the service has stopped, restart it using 'net start apache'. If you're using XAMPP then use 'xampp stop' and 'xampp start'.&lt;br /&gt;Now when you open your favourite browser and enter 'http://testsite1' you should see the installation page for your new Drupal site. Enter the database details you created earlier and let the installer script set up the tables for you.&lt;br /&gt;You can add as many sites as you need by following the process above.&lt;br /&gt;Optional additional configuration&lt;br /&gt;Although not essential, here are some things to help keep things tidy in a multi-site setup.&lt;br /&gt;Use a separate files folder for each site&lt;br /&gt;By default, all images and other uploaded files are kept in a single folder. Whilst this works, its a bit messy and better to set up a separate files folder for each site.&lt;br /&gt;• Set up a separate 'files' and 'files/tmp' folders by creating the folders in your sites directory, i.e. sites/testsite1/files and sites/testsite1/files/tmp, sites/testsite2/files, sites/testsite2/files/tmp etc. &lt;br /&gt;• Update the settings for each site by visiting 'admin/file system' and changing the path for the files and temp folders to sites/testsite1/files, sites/testsite1/files/tmp...etc. &lt;br /&gt;Consider the best place to install modules and themes&lt;br /&gt;• If you have modules or themes that you want to share between all sites then store them in sites/all/modules and sites/all/themes respectively. &lt;br /&gt;• If you want them to be available only to one site then store them in sites/testsite1/modules and sites/testsite1/themes (replacing 'testsite1' with your actual site name)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-2785857571042064329?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/2785857571042064329/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/01/mutlisites-using-drupal6x.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/2785857571042064329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/2785857571042064329'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/01/mutlisites-using-drupal6x.html' title='Mutlisites Using Drupal6.x'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-9045448911584341070</id><published>2010-01-02T02:18:00.000-08:00</published><updated>2010-01-04T04:33:31.848-08:00</updated><title type='text'>Testimonial Functionality Using Drupal6.x</title><content type='html'>Slide the content in the Block(Without Testimonial module ) using Drupal6.x&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Modules Required&lt;/span&gt;&lt;br /&gt; 1)cck &lt;br /&gt; 2)views&lt;br /&gt; 3)views slideshow&lt;span style="font-weight:bold;"&gt;&lt;br /&gt;Installation&lt;/span&gt;&lt;br /&gt; Login as a administer user into the site&lt;br /&gt; Enable the CCK,Views, Views slideshow.&lt;br /&gt; Enable modules in the image also. &lt;br /&gt; &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_8G9k92ilt3g/Sz8knMqgAuI/AAAAAAAAAAM/n0k6TJ8BCv0/s1600-h/slideshow.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 145px;" src="http://2.bp.blogspot.com/_8G9k92ilt3g/Sz8knMqgAuI/AAAAAAAAAAM/n0k6TJ8BCv0/s320/slideshow.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5422092732210348770" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Create a testimonial content type from content management section in administer section.&lt;br /&gt;&lt;br /&gt;Add content to that content type.&lt;br /&gt;&lt;br /&gt;Create a block using view on the content type testimonial.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8G9k92ilt3g/Sz8nzFsCCoI/AAAAAAAAAAU/TcyoWE7uQD4/s1600-h/view.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 182px;" src="http://4.bp.blogspot.com/_8G9k92ilt3g/Sz8nzFsCCoI/AAAAAAAAAAU/TcyoWE7uQD4/s400/view.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5422096235031038594" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Important configuration to slide the content/text. &lt;br /&gt;click on the style property in the Basic Settings in view Node and enable slideshow radio button and click on the settings link,then select effect option to bottom.&lt;br /&gt;Check the image below.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_8G9k92ilt3g/Sz8qAvIGanI/AAAAAAAAAAc/dzfgXSZCKm0/s1600-h/setting.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 290px;" src="http://2.bp.blogspot.com/_8G9k92ilt3g/Sz8qAvIGanI/AAAAAAAAAAc/dzfgXSZCKm0/s400/setting.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5422098668516174450" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_8G9k92ilt3g/Sz8qI75f6uI/AAAAAAAAAAk/03s193l0qi4/s1600-h/conf.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 362px; height: 400px;" src="http://4.bp.blogspot.com/_8G9k92ilt3g/Sz8qI75f6uI/AAAAAAAAAAk/03s193l0qi4/s400/conf.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5422098809383545570" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Final Section:&lt;br /&gt;&lt;/span&gt;Enable Block testimonial in the block section&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-9045448911584341070?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/9045448911584341070/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2010/01/testimonial-functionality-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/9045448911584341070'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/9045448911584341070'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2010/01/testimonial-functionality-using.html' title='Testimonial Functionality Using Drupal6.x'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_8G9k92ilt3g/Sz8knMqgAuI/AAAAAAAAAAM/n0k6TJ8BCv0/s72-c/slideshow.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-3110128728110098444</id><published>2009-12-31T03:29:00.000-08:00</published><updated>2009-12-31T03:39:42.784-08:00</updated><title type='text'>Generate Weeks Date using PHP Code</title><content type='html'>$month=date("m");  //Present Month Number 01-12&lt;br /&gt;$date=date("d");    // Present Date Number     01-31&lt;br /&gt;$year=date("Y");  // Present Year Number      1970-xxxx&lt;br /&gt;$date = mktime(0, 0, 0, $month, $date, $year);  // Time stamp&lt;br /&gt;$week = (int)date('W', $date);  // Gives Week Number&lt;br /&gt;$year = (int)date('Y', $date);   // Gives Year Number&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;for($i=1;$i&lt;5;$i++) {&lt;br /&gt;date("Y-m-d", strtotime("{$year}-W{$week}-$i"));  // Gives 2009-12-28 t0 2009-01-01&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-3110128728110098444?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/3110128728110098444/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2009/12/generate-weeks-date-using-php-code.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/3110128728110098444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/3110128728110098444'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2009/12/generate-weeks-date-using-php-code.html' title='Generate Weeks Date using PHP Code'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-3803594652439631425</id><published>2009-12-29T01:19:00.000-08:00</published><updated>2009-12-29T01:25:11.131-08:00</updated><title type='text'>Create A Video Streaming In Drupal6</title><content type='html'>Video Streaming using Drupal6.x Using Kaltura Module.&lt;br /&gt;&lt;br /&gt;List of module&lt;br /&gt;&lt;br /&gt;1)cck module(http://drupal.org/project/cck)&lt;br /&gt;2)kaltura module (http://drupal.org/project/kaltura)&lt;br /&gt;3)Views module (http://drupal.org/project/views)&lt;br /&gt;&lt;br /&gt;Installation&lt;br /&gt;&lt;br /&gt;1)Copy all the above module in sites/all/modules/  location&lt;br /&gt;2)Browser the website and Log on as adminuser and navigate to http:/localhost/sitename/admin/build/modules.&lt;br /&gt;3)Enable kaltura, views module &amp;amp; cck module under module section.&lt;br /&gt;4)goto http:/localhost/sitename/admin/settings/kaltura link&lt;br /&gt;   i)Making all the Server Status OK in Server Integration Settings page&lt;br /&gt;      a)Drupal to Kaltura Session Test :&lt;br /&gt;         By default it will be OK status.&lt;br /&gt;      b)Cron-Job Status:&lt;br /&gt;         It will not be in OK status.so just run cron job manually,then status will be changed to OK status.&lt;br /&gt;      c)CrossDomain.xml Status:&lt;br /&gt;         It will not be in OK status.So just create a folder keys in the wamp server(c:/wamp) location and execute.&lt;br /&gt;&lt;br /&gt;  ii)Partner Info:&lt;br /&gt;     Place your kaltura Partnerid,Emailid and Password.&lt;br /&gt;4)Most important step to configure upload functionality in kultura module is&lt;br /&gt;    Make sql mode to TRADITIONAL in mysql section&lt;br /&gt;    Add These lines in my.in files&lt;br /&gt;    [mysql]&lt;br /&gt;     default-character-set=utf8&lt;br /&gt;     Modify to&lt;br /&gt;    [mysql]&lt;br /&gt;     sql-mode=TRADITIONAL&lt;br /&gt;     default-character-set=utf8&lt;br /&gt;              &lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;    [mysqld]&lt;br /&gt;     port=3306&lt;br /&gt;     Modify to&lt;br /&gt;    [mysqld]&lt;br /&gt;    port=3306&lt;br /&gt;    sql-mode=TRADITIONAL &lt;br /&gt;&lt;br /&gt;Uploading Image/video/Audio Functionality.&lt;br /&gt; 1)Goto create content and link on Kaltura Media Node type to upload Image/video/Audio file.&lt;br /&gt;&lt;br /&gt; After successufully uploading file in the site.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Browser the line  http:/localhost/sitename/kaltura/entries to find the list of files.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-3803594652439631425?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/3803594652439631425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2009/12/create-video-streaming-in-drupal6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/3803594652439631425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/3803594652439631425'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2009/12/create-video-streaming-in-drupal6.html' title='Create A Video Streaming In Drupal6'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1524706475562594705.post-5881570012793302938</id><published>2009-12-28T22:12:00.000-08:00</published><updated>2009-12-28T22:14:15.961-08:00</updated><title type='text'>Image Gallery In Drupal</title><content type='html'>&lt;div class="post-content right-col"&gt;      &lt;h2&gt;&lt;a href="http://jamestombs.co.uk/2009-03-18/create-a-simple-image-gallery-in-drupal-6-using-cck-and-views/996" rel="bookmark" title="Create a simple image gallery in Drupal 6 using CCK and Views"&gt;Create a simple image gallery in Drupal 6 using CCK and Views&lt;/a&gt;&lt;/h2&gt;      &lt;p&gt;This tutorial will guide you through how to create a simple gallery within Drupal 6 using CCK, Views and a few more custom modules. You can see an example of what the tutorial will create by visiting &lt;a href="http://gallery.jamestombs.co.uk/"&gt;http://gallery.jamestombs.co.uk/&lt;/a&gt;&lt;/p&gt; &lt;p&gt;This tutorial was written with the following versions of Drupal and modules:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;a href="http://drupal.org/drupal-6.10"&gt;Drupal 6.10&lt;/a&gt; &lt;/li&gt;&lt;li&gt;&lt;a href="http://drupal.org/project/cck"&gt;CCK (Content Construction Kit) 6.x-2.1&lt;/a&gt; (6.x-2.2) &lt;/li&gt;&lt;li&gt;&lt;a href="http://drupal.org/project/views"&gt;Views 6.x-2.3&lt;/a&gt; (6.x-2.5) &lt;/li&gt;&lt;li&gt;&lt;a href="http://drupal.org/project/filefield"&gt;Filefield 6.x-3.0-beta1&lt;/a&gt; (6.x-3.0-rc1) &lt;/li&gt;&lt;li&gt;&lt;a href="http://drupal.org/project/imagefield"&gt;Imagefield 6.x-3.0-beta1&lt;/a&gt; (6.x-3.0-rc1) &lt;/li&gt;&lt;li&gt;&lt;a href="http://drupal.org/project/imageapi"&gt;ImageAPI 6.x-1.5&lt;/a&gt; (6.x-1.6) &lt;/li&gt;&lt;li&gt;&lt;a href="http://drupal.org/project/imagecache"&gt;Imagecache 6.x-2.0-beta8&lt;/a&gt; (6.x-2.0-beta9) &lt;/li&gt;&lt;li&gt;&lt;a href="http://drupal.org/project/lightbox2"&gt;Lightbox2 6.x-1.9&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; Modules have been updated to the latest versions as of 20 April 2009, version numbers are in brackets after the links above.&lt;/p&gt;  &lt;p&gt; &lt;span id="more-996"&gt;&lt;/span&gt; &lt;/p&gt; &lt;h3&gt;Installation&lt;/h3&gt; &lt;p&gt;Install Drupal as you normally would and extract each of the modules to the /sites/all/modules directory. You should have a directory structure like the following:&lt;/p&gt; &lt;p&gt;&lt;img style="border-width: 0px; display: inline;" title="directory_structure" alt="directory_structure" src="http://jamestombs.co.uk/wp-content/uploads/2009/03/directory-structure.jpg" border="0" height="361" width="251" /&gt;&lt;/p&gt; &lt;p&gt;When logged in go to /admin/build/modules and enable the following modules:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Content &lt;/li&gt;&lt;li&gt;Filefield &lt;/li&gt;&lt;li&gt;Imagefield &lt;/li&gt;&lt;li&gt;ImageAPI &lt;/li&gt;&lt;li&gt;ImageAPI GD2 (unless your server is configured for Imagemagick, then enable the ImageMagick module instead) &lt;/li&gt;&lt;li&gt;ImageCache &lt;/li&gt;&lt;li&gt;ImageCache UI &lt;/li&gt;&lt;li&gt;Lightbox &lt;/li&gt;&lt;li&gt;Views &lt;/li&gt;&lt;li&gt;Views UI &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Once you have ticked the modules, press Save configuration.&lt;/p&gt; &lt;h3&gt;Imagecache&lt;/h3&gt; &lt;p&gt;We need to create 2 presets for our images, one will be a thumbnail to show in the gallery and a second to show within the lightbox.&lt;/p&gt; &lt;p&gt;Navigate to /admin/build/imagecache and click Add new preset.&lt;/p&gt; &lt;p&gt;Set the preset Namespace to thumbnail. Click Add Scale and Crop, set the width to 180 and the height to 120.&lt;/p&gt; &lt;p&gt;Then create a new imagecache preset with the name lightbox. This time select Add Scale and set the width to 800 and the height to 600.&lt;/p&gt; &lt;h3&gt;CCK Imagefield&lt;/h3&gt; &lt;p&gt;First we will set up a new content type for our images which we will call Image. Navigate to /admin/content/types and click Add content type.&lt;/p&gt; &lt;p&gt;Set the name to Image and the type to image.  You may enter a description if you wish.&lt;/p&gt; &lt;p&gt;Under Submission form settings, delete the text from the Body field.&lt;/p&gt; &lt;p&gt;Depending on how you want to set up the gallery, you can change the Workflow settings so that images aren’t automatically added but are added to an approval list, for this tutorial we will make all images published, so untick Promoted to frontpage and leave Published ticked.&lt;/p&gt; &lt;p&gt;Under Comment settings, set comments to disabled.&lt;/p&gt; &lt;p&gt;Save the content type.&lt;/p&gt; &lt;p&gt;Next to the Image content type click manage fields. In the Add New field area, set the label to Image and the field name to image (to make it field_image), for the Type of data to store, select File then for Form element select Image.  Press Save.&lt;/p&gt; &lt;p&gt;&lt;a href="http://jamestombs.co.uk/wp-content/uploads/2009/03/content-type.jpg"&gt;&lt;img style="border-width: 0px; display: inline;" title="content_type" alt="content_type" src="http://jamestombs.co.uk/wp-content/uploads/2009/03/content-type-thumb.jpg" border="0" height="122" width="420" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Under Global settings, tick the Required box and set the Number of values to 1.  Leave the List field and Description field to Disabled.&lt;/p&gt; &lt;p&gt;&lt;a href="http://jamestombs.co.uk/wp-content/uploads/2009/03/imagefield.jpg"&gt;&lt;img style="border-width: 0px; display: inline;" title="imagefield" alt="imagefield" src="http://jamestombs.co.uk/wp-content/uploads/2009/03/imagefield-thumb.jpg" border="0" height="180" width="420" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Then press the Save field settings button.&lt;/p&gt; &lt;p&gt;Now click the Display fields tab at the top of the page.&lt;/p&gt; &lt;p&gt;Set the Label to Hidden and set both the Teaser and Full node to Lightbox2: thumbnail-&gt;lightbox.&lt;/p&gt; &lt;p&gt;&lt;a href="http://jamestombs.co.uk/wp-content/uploads/2009/03/imagedisplay.jpg"&gt;&lt;img style="border-width: 0px; display: inline;" title="imagedisplay" alt="imagedisplay" src="http://jamestombs.co.uk/wp-content/uploads/2009/03/imagedisplay-thumb.jpg" border="0" height="39" width="420" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Now under /node/add/image we can add an image to go in to our gallery.&lt;/p&gt; &lt;p&gt;&lt;a href="http://jamestombs.co.uk/wp-content/uploads/2009/03/newimage.jpg"&gt;&lt;img style="border-width: 0px; display: inline;" title="newimage" alt="newimage" src="http://jamestombs.co.uk/wp-content/uploads/2009/03/newimage-thumb.jpg" border="0" height="192" width="420" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;For now create 3 or 4 images.&lt;/p&gt; &lt;p&gt;Under /admin/content/node you should now have some nodes.&lt;/p&gt; &lt;p&gt;&lt;a href="http://jamestombs.co.uk/wp-content/uploads/2009/03/nodes.jpg"&gt;&lt;img style="border-width: 0px; display: inline;" title="nodes" alt="nodes" src="http://jamestombs.co.uk/wp-content/uploads/2009/03/nodes-thumb.jpg" border="0" height="88" width="420" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Now we will set up a view to display these nodes in a gallery.&lt;/p&gt; &lt;h3&gt;Views&lt;/h3&gt; &lt;p&gt;Navigate to /admin/build/views and click the Add tab at the top of the page. Set the view name to something like gallery. Leave View type set to Node.&lt;/p&gt; &lt;p&gt;Set the title to Gallery. For Style set to Grid then chose 4 columns and set Alignment to Horizontal.&lt;/p&gt; &lt;p&gt;For Use pager set to Full pager.  Then for Items per page, set to a multiple of 4, I am going to use 16 to give us a 4×4 grid of images. If you wish, you can set Use AJAX to Yes to stop the whole page being loaded on the pager.&lt;/p&gt; &lt;p&gt;Add the following Filters:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Node: Published = On &lt;/li&gt;&lt;li&gt;Node: Type = Image &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Under Fields select Content: Image (field_image). Set Label to None and change Format to Lightbox2: thumbnail-&gt;lightbox.&lt;/p&gt; &lt;p&gt;Under Sort criteria you can set this to what you want.  I am going to set them to newest first. Select Node: Post date and set to Descending.&lt;/p&gt; &lt;p&gt;&lt;a href="http://jamestombs.co.uk/wp-content/uploads/2009/03/galleryunsaved.jpg"&gt;&lt;img style="border-width: 0px; display: inline;" title="galleryunsaved" alt="galleryunsaved" src="http://jamestombs.co.uk/wp-content/uploads/2009/03/galleryunsaved-thumb.jpg" border="0" height="186" width="420" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;On the left select Page from the drop down and click Add display.&lt;/p&gt; &lt;p&gt;Under Path set to gallery.&lt;/p&gt; &lt;p&gt;&lt;a href="http://jamestombs.co.uk/wp-content/uploads/2009/03/viewpage.jpg"&gt;&lt;img style="border-width: 0px; display: inline;" title="viewpage" alt="viewpage" src="http://jamestombs.co.uk/wp-content/uploads/2009/03/viewpage-thumb.jpg" border="0" height="186" width="420" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Press Save.&lt;/p&gt; &lt;p&gt;Now if you navigate to /gallery you can see your gallery in action.&lt;/p&gt; &lt;p&gt;&lt;a href="http://jamestombs.co.uk/wp-content/uploads/2009/03/gallery.jpg"&gt;&lt;img style="border-width: 0px; display: inline;" title="gallery" alt="gallery" src="http://jamestombs.co.uk/wp-content/uploads/2009/03/gallery-thumb.jpg" border="0" height="141" width="420" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Once you upload more than 16 images which we set our Items per page to, a pager will appear.&lt;/p&gt; &lt;p&gt;&lt;a href="http://jamestombs.co.uk/wp-content/uploads/2009/03/full-gallery.jpg"&gt;&lt;img style="border-width: 0px; display: inline;" title="full_gallery" alt="full_gallery" src="http://jamestombs.co.uk/wp-content/uploads/2009/03/full-gallery-thumb.jpg" border="0" height="266" width="420" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;You can see a working example of the gallery in action at &lt;a href="http://gallery.jamestombs.co.uk/gallery"&gt;http://gallery.jamestombs.co.uk/gallery&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Update:&lt;/strong&gt; There may be cases where the image isn’t uploaded to the image type when a user submits the node add form without uploading the image. This will show up as an empty section within the gallery and the node will be submitted with no image, but Imagefield will not tell the user that this is a problem even if it is a required field.&lt;/p&gt; &lt;p&gt;To stop these empty image types showing in the gallery, you will need to add a relationship for the image and set it to a required relationship. This way the image node will not appear in the gallery unless there is an image attached. You could then set up an additional view to find out which image nodes don’t have an image attached.&lt;/p&gt; &lt;p&gt;&lt;a href="http://jamestombs.co.uk/wp-content/uploads/2009/04/relationship.jpg"&gt;&lt;img style="border-width: 0px; display: inline;" title="relationship" alt="relationship" src="http://jamestombs.co.uk/wp-content/uploads/2009/04/relationship-thumb.jpg" border="0" height="313" width="420" /&gt;&lt;/a&gt;&lt;/p&gt; &lt;!-- Social Bookmarking Reloaded BEGIN --&gt;&lt;div class="social_bookmark"&gt;&lt;em&gt; &lt;/em&gt;&lt;/div&gt;&lt;div id="respond"&gt;&lt;form action="http://jamestombs.co.uk/wp-comments-post.php" method="post" id="commentform"&gt;  &lt;!--&lt;p&gt;&lt;small&gt;&lt;strong&gt;XHTML:&lt;/strong&gt; You can use these tags: &lt;a href="&amp;quot;&amp;quot;" title="&amp;quot;&amp;quot;"&gt; &lt;abbr title="&amp;quot;&amp;quot;"&gt; &lt;acronym title="&amp;quot;&amp;quot;"&gt; &lt;b&gt; &lt;blockquote cite="&amp;quot;&amp;quot;"&gt; &lt;cite&gt; &lt;code&gt; &lt;del datetime="&amp;quot;&amp;quot;"&gt; &lt;em&gt; &lt;i&gt; &lt;q cite="&amp;quot;&amp;quot;"&gt; &lt;strike&gt; &lt;strong&gt; &lt;pre lang="&amp;quot;&amp;quot;" line="&amp;quot;&amp;quot;" escaped="&amp;quot;&amp;quot;"&gt; &lt;/small&gt;&lt;/p&gt;--&gt;  &lt;input name="comment_post_ID" value="996" id="comment_post_ID" type="hidden"&gt; &lt;input name="comment_parent" id="comment_parent" value="0" type="hidden"&gt;  &lt;/form&gt;    &lt;/div&gt; &lt;!-- end #respond --&gt;                  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1524706475562594705-5881570012793302938?l=phpcmsworks.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://phpcmsworks.blogspot.com/feeds/5881570012793302938/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://phpcmsworks.blogspot.com/2009/12/image-gallery-in-drupal.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/5881570012793302938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1524706475562594705/posts/default/5881570012793302938'/><link rel='alternate' type='text/html' href='http://phpcmsworks.blogspot.com/2009/12/image-gallery-in-drupal.html' title='Image Gallery In Drupal'/><author><name>php developer</name><uri>http://www.blogger.com/profile/04518357347249249999</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
