Call to undefined function session_register()
The function is no longer present in PHP 5.4 instead use
$_SESSION['myusername']="something";
PHP Fatal error: Call to undefined function session_register()
This function has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.
http://www.php.net/manual/en/function.session-register.php
Make sure you have session_start()
, as just removing session_register()
and relying on the $_SESSION
assignment won't work.
Call to undefined function session_is_registered()
Instead of
if (!session_is_registered("s_uye_id")) {
type this:
if (!isset($_SESSION["s_uye_id"])) {
Head of script:
<?php
session_start();
$s_uye_id = 0;
$s_uye_tipi = 0;
$s_uye_adi = "";
$s_uye_soyadi = "";
$s_mesaj = "";
$s_sayfa_url = "";
$s_ipimiz = "";
if (!isset($_SESSION["s_uye_id"])) {
$_SESSION["s_uye_id"] =
$_SESSION["s_uye_tipi"] =
$_SESSION["s_uye_adi" =
$_SESSION[s_uye_soyadi"] =
$_SESSION[s_mesaj"] =
$_SESSION[s_sayfa_url"] =
$_SESSION[s_ipimiz"] = 0;
}
// continue ....
Related Topics
How to Use a PHP Includes Across Multiple Directories/Sub Directories with Relative Paths
How to Upload a File Using Jquery's $.Ajax Function with JSON and PHP
How to Connect to the Database in Openshift Application
Add Prefix to Auto-Increment in MySQL Db
Do I Have to Use MySQL_Real_Escape_String If I Bind Parameters
What Is the Fastest Way to Find the Occurrence of a String in Another String
Can PHP Read Text from a Powerpoint File
No Database Selected - PHP & MySQL
How to Access Element Attributes with Simplexml
How to Detect Ambiguous and Invalid Datetime in PHP
Read the Longest String from an Array in PHP 5.3
MySQL Query: Retrieve Current Date Query
Setting Variables on Constructor VS on the Class Definition
Difference Between Pdo->Query() and Pdo->Exec()
Change Pay Button on Checkout Based on Woocommerce Chosen Payment Method
Woocommerce - Overriding Billing State and Post Code on Existing Checkout Fields