I have an application that, at one point, uses an href in a menu list to call a secure page. The calling module uses $_SESSION variables but they get lost causing the called module to fail and I see the message, above, in my debug console. I use "session_start()" correctly.
Any ideas???
My Answer:
the current date and time in PHP can be done using the `date()` function. Here is an example code snippet that will output the current date and time:
php
$currentDateTime = date('Y-m-d H:i:s');
echo $currentDateTime;
This code will output the current date and time in the format `YYYY-MM-DD HH:MM:SS`. You can customize the format of the date and time by changing the format string passed to the `date()` function.
Rate this post
3 of 5 based on 8544 votesComments