In my php file error will display as Undefine function session_is_register -


this question has answer here:

how correct programme

error display call undefined function session_is_registered() in /home/rajesh/public_html/lib/common.php on line 40 40th line

if(!session_is_registered("u_type")) {     session_register("u_type"); } if(trim($_request['u_type']) != "") {     $_session['u_type'] = trim($_request['u_type']); } 

another error configures.php upload file in domain

mysql_connect(): access denied user 'rajesh'@'localhost' (using password: yes) in /home/rajesh/public_html/lib/configures.php on line 4

<?php require_once "config.php"; require_once "var.inc.php"; $connect = mysql_connect(db_server, db_user, db_password); $link = mysql_select_db(db_name, $connect);   $sql = "select * ".config_table.""; $res = mysql_query($sql); $row = mysql_fetch_array($res); 

any 1 me correct file , send mail id contact

session_is_registered() deprected on php 5.3.0 , removed on php 5.4.0 bet running php 5.4.0

you can easilly find out version of php calling phpinfo();

regarding mysql issue... have user permission issue: check:

  • that mysql username has access computer. if mysql running on same machine php server, must have db_user name using @localhost. in mysql user username@% wildcard not include localhost.

  • make sure mysql user has been granted access db. , again, username@localhost different username@%.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -