<br><br><div class="gmail_quote">On Thu, Aug 4, 2011 at 6:42 AM, Md Ashickur Rahman Noor <span dir="ltr"><<a href="mailto:ashickur.noor@gmail.com">ashickur.noor@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Edit your /etc/php5/apache2/php.ini file in line number 531 make that line like <br><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex" class="gmail_quote">display_errors = On<br clear="all">


</blockquote><div>which may be by default like <br><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex" class="gmail_quote">display_errors = Off</blockquote><div><br>

and 542 number line <br><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex" class="gmail_quote">display_startup_errors = On</blockquote><div>which may be by default like <br>



<blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex" class="gmail_quote">display_startup_errors = Off</blockquote>
<br> then restart your apache server by <br><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex" class="gmail_quote">/etc/init.d/apache2 restart<br></blockquote><div>

<br>Now browse  localhost/directoryName<br><br>If there is any error, it will be shown.                                                     yes it is showing the error as:<br></div></div></div></div></blockquote><div>    <span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">Fatal error: Call to undefined function mysql_connect() in /var/www/GNDEC-SMS-Service/functions.php on line 13</span></div>
<div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><span class="Apple-style-span" style="font-family: arial; font-size: small; "><br></span></span></div><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><span class="Apple-style-span" style="font-family: arial; font-size: small; ">   Mysql is installed and database exist there.The  </span></span></div>
<div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><span class="Apple-style-span" style="font-family: arial; font-size: small; ">   funtions.php file  looks like. </span></span></div>
<div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><span class="Apple-style-span" style="font-family: arial; font-size: small; "><br></span></span></div><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><span class="Apple-style-span" style="font-family: arial; font-size: small; ">  <?php</span></span></div>
<div>/*************************************************************</div><div> *  THE ADDRESS BOOK  :  version 1.04d</div><div> *  </div><div> * </div><div>  *************************************************************</div>
<div> *  functions.php</div><div> *  Defines functions to be used within other scripts.</div><div> *</div><div> *************************************************************/</div><div>session_start();</div><div>include_once('config.php');</div>
<div>$conn = mysql_connect("localhost",$db_username,$db_password);</div><div>function chronometer($msg) {</div><div>global $elapsed;</div><div>global $CHRONO_STARTTIME;</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>$now = microtime(TRUE);</div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>if ($CHRONO_STARTTIME > 0){</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>$elapsed = "$msg: ".round($now * 1000 - $CHRONO_STARTTIME * 1000, 3)." milli seconds";</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>$CHRONO_STARTTIME = 0;</div><div><span class="Apple-tab-span" style="white-space:pre">       </span>return $elapsed;</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>}else {</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>$CHRONO_STARTTIME = $now;</div><div> <span class="Apple-tab-span" style="white-space:pre">   </span>}</div><div> } </div><div> ?></div><div><br></div><div>
<br></div><div> LIne no 13 says :</div><div>  </div><div>   mysql_connect("localhost",$db_username,$db_password);</div><div> </div><div> </div></div>-- <br> Thank you !!<br> <br> Regards<br> Amrit Pal <br><br><a href="http://amritpalpathak.blogspot.com" target="_blank"> amritpalpathak.blogspot.com</a><br>
<br>