Thursday, September 26, 2013

join table delete result msyql query

DELETE  FROM `node_revisions`
WHERE   vid IN (
            SELECT  vid
            FROM    node
            WHERE   type = 'features_test'
        )

Tuesday, September 10, 2013

PHP CSV IMPORT AND DELETE ENTRIESE

PHP CSV IMPORT AND DELETE ENTRIESE

PHP Magic methods

In oops Magic Methods

oops auto function like __construct(), __destruct(), __call(), __callStatic(), __get(), __set(), __isset(), __unset(), __sleep(), __wakeup(), __toString(), __invoke(), __set_state() and __clone(6)  are called magical in PHP classes. You cannot create functions with these names in any of your classes unless you want the magic functionality associated with them.

Monday, September 9, 2013

php post data script

this is php post script, with this script you can send data to other server easly mostly this script used in payment getway and sms getway.

Wednesday, August 14, 2013

drupal 7 create tpl.php file

first insert below code in template.php file

function garland_preprocess_page(&$vars) {

  if(arg(1) == 17){
    $vars['theme_hook_suggestions'][] = "page__homepage";
  }


and create page--homepage.tpl.php file

then it will work and give if condition node 17 and please change on which page you want to show here

Thursday, July 18, 2013

Sunday, March 17, 2013

drupl 6 open_basedir restriction in effect

drupl 6 open_basedir restriction in effect
i got this problem many time but now m get the solution

warning: tempnam(): open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/vhosts/hiltenfingen.de/:/tmp/) in /var/www/vhosts/hiltenfingen.de/httpdocs/includes/file.inc on line 815.


answer: go admin->site cofiguration->setting and set the site/default/fils