Jump to content

Alken Jarge

  • Posts

  • Joined

  • Last visited

About Alken Jarge

  • Birthday 02/19/1990

Contact Methods

  • Website URL
  • Skype

Profile Information

  • Location
    Noida sector 62
  • Interests
    Learn advance Php ,Quality zone infotech is the best eCommerce website design and development Provider company in India,

Alken Jarge's Achievements


Newbie (1/7)



  1. mysql_connect("localhost","root",""); mysql_select_db("database name");
  2. &&&&&&&&&&&&&&&&&&&&&&&&&&& USE IT &&&&&&&&&&&&&&&&&&&&&&&&&&&&& <form name= "reg" id="reg" method="POST" action="" onsubmit="return validate()"> <input id="first" name="first" type="text" value="" placeholder="first"><br /><input id="email" name="email" type="text" value="" placeholder="email"><br /><textarea id="message" name="message" placeholder="message" ></textarea><br /> <input type="submit"></button></form><script type="text/javascript">function validate(){ var formIsValid = true; var first=document.forms["reg"]["first"]; if(first.value == null || first.value == ""){ first.style.borderColor = "red"; formIsValid = false; } var email=document.forms["reg"]["email"]; if(email.value == null || email.value == ""){ email.style.borderColor = "red"; formIsValid = false; } var message=document.forms["reg"]["message"]; if(message.value == null || message.value == ""){ message.style.borderColor = "red"; formIsValid = false; } return formIsValid;}</script>
  3. many time we change the joomla code according to requirement and when site is working fin then no one will update joomla website and if anyone update joomla website so again we have to do this and more code we have change , actually joomla site update means new site with same look and feel so u can use it ..
  4. Use this it will work fine ... <?php// start at the top of the page since we start a sessionsession_name('hit_counter');session_start();//$fn = 'hits_counter.txt';$hits = 0;// read current hitsif (($hits = file_get_contents($fn)) === false){$hits = 0;}// write one more hitif (!isset($_SESSION['page_visited_already'])){if (($fp = @fopen($fn, 'w')) !== false){if (flock($fp, LOCK_EX)){$hits++;fwrite($fp, $hits, strlen($hits));flock($fp, LOCK_UN);$_SESSION['page_visited_already'] = 1;}fclose($fp);}}?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>PHP Hit Counter Code</title></head><body><p>Hits of page</p><div class="counter"><p>This page has <span><?=$hits;?></span> hits</p></div></body></html>
  5. Go to libraries/joomla/application/application.php Comment this line $this->triggerEvent('onUserLoginFailure', array((array) $response)); And set Change Permissions of this file 774 It will work fine and save your time
  6. I also want to become moderator on your website and want to solve perpole Query pls Give me this permission..
  7. Q1. Who is the father of PHP and explain the changes in PHP versions?Ans: Rasmus Lerdorf in 1994Q2. How many ways you can retrieve the date in the result set of mysql using PHP?Ans: We can do it by 4 Ways 1. mysql_fetch_row. , 2. mysql_fetch_array , 3. mysql_fetch_object 4. mysql_fetch_assoc Q3. How can we create a database using php and mysql? Ans: <?php $query =mysql_query( "CREATE DATABASE phpcake"); ?>Q4. What is the difference between mysql_fetch_object and mysql_fetch_array? Ans: 1. object is returned, instead of an array 2. In this you can only access the data by the field names Q5. What are the differences between Get and post methods. Ans: GET Method have some limit like only 2Kb data able to send for request But in POST method unlimited data can we send. Q6. What are the differences between require and include? Ans: Include and require used to include a file but If included file not found Include send Warning where as Require send Fatal Error .Q7. What is the difference between the functions unlink and unset?Ans: unlink() deletes the given file from the file system.unset() makes a variable undefined.Q8. What are the different functions in sorting an array? Ans: Sort(), arsort(),asort(), ksort(),natsort(), natcasesort(),rsort(), usort(),array_multisort(), and uksort(). Q9. How can we know the count/number of elements of an array? Ans: a) sizeof($urarray) This function is an alias of count() count($urarray)Q10. How can we find the number of rows in a table using MySQL? Ans: SELECT COUNT(*) FROM table_name; Q11. How can we know the number of days between two given dates using PHP? Ans: $date1 = date("Y-m-d"); $date2 = "2006-08-15"; $days = (strtotime($date1) - strtotime($date2)) / (60 * 60 * 24); Q12. what are magic methods?Ans: Magic methods are the members functions that is available to all the instance of class Magic methods always starts with "__". Eg. __construct All magic methods needs to be declared as public To use magic method they should be defined within the class or program scope Various Magic Methods used in PHP 5 are: __construct() __destruct() __set() __get() __call() __toString() __sleep() __wakeup() __isset() __unset() __autoload() __clone() Q13. Email function in PHP? Ans: <?php $to = qualityzoneinfotech@gmail.com; $subject = 'Qualityzoneinfotech.'; $body = "<p><strong>Heading...</strong> <br /> <strong>Custmer Name:</strong> <?php $name ;?> </p><br /> <strong>Custmer Email:</strong> <?php $email; ?>l </p><br /> <strong>Order Date:</strong> <?php date; ?>"; $headers = 'MIME-Version: 1.0' . "rn"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "rn"; $headers .= 'From: qualityzoneinfotech.com <qualityzoneinfotech@gmail.com>' . "rn"; $headers .= 'Cc: qualityzoneinfotech@gmail.com' . "rn"; mail($to, $subject, $body, $headers); ?>
  8. -----: Just past this code and use it :------ <div id="fb-root"></div><script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));</script><div class="fb-like" data-href="https://www.facebook.com/qualityzoneinfotech" data-width="50px" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div><script language="javascript">function shinra_fb_count( $url_or_id ) { /* url or id (for optional validation) */ if( is_int( $url_or_id ) ) $url = 'http://graph.facebook.com/' . $url_or_id; else $url = 'http://graph.facebook.com/' . $url_or_id; /* get json */ $json = json_decode( file_get_contents( $url ), false ); /* has likes or shares? */ if( isset( $json->likes ) ) return (int) $json->likes; elseif( isset( $json->shares ) ) return (int) $json->shares; return 0; // otherwise zed}</script><div id="social"><!-- AddThis Button BEGIN --><div class="addthis_toolbox addthis_default_style "><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_pinterest_pinit"></a><a class="addthis_counter addthis_pill_style"></a></div><script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-51572bbd79133ec6"></script><!-- AddThis Button END --></div>
  • Create New...