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 ....
Call to undefined function session_register()
The function is no longer present in PHP 5.4 instead use
$_SESSION['myusername']="something";
Related Topics
What Is the Size Limit of a Post Request
Htmlentities() Vs. Htmlspecialchars()
How to Convert Xml into Array in PHP
How to Convert Json String to Array
PHP Display Image Blob from MySQL
PHP - Should I Call Exit() After Calling Location: Header
How to Make Asynchronous Http Requests in PHP
Sort Array of Objects by One Property
How to Retrieve Images from MySQL Database and Display in an HTML Tag
Detect Encoding and Make Everything Utf-8
Stacking Multiple Ternary Operators in PHP
Reference: What Is a Perfect Code Sample Using the MySQL Extension
Is There a Function to Extract a 'Column' from an Array in PHP
How to Get File_Get_Contents() to Work With Https
PHP File_Get_Contents() Returns "Failed to Open Stream: Http Request Failed!"