I have a little PHP application:
/index.php:
<?php
session_start();
$_SESSION["test"] = "hi";
?>
/test.php:
<?php
session_start();
var_dump($_SESSION);
?>
/subfolder/test.php:
<?php
session_start();
var_dump($_SESSION);
?>
Any idea why a session is only available within the root directory?
/test.php perfectly dumps the content of the session while /subfolder/test.php is
Again, there really is nothing out on the interwebs on this one.
My LiteSpeed, PHP 5.3, Zend Guard host is having trouble displaying my home page.
The homepage has a little php that require()s another php with only:
session_start();
if (!isset($_SESSION['LAST_ACTIVITY'])) {
$_SESSION['LAST_ACTIVITY'] = time();
exit();
} else if (time() - $_SESSION['LAST_ACTIVITY'] > 60) {
sessio
I have the following type of folder structure containing thousands of folders.
The folder names are as such with different names etc
.test
.test.subfolder
.test.subfolder.subsubfolder
.folder
.folder.one
.folder.two
.folder.one.one
What I need to achieve is the following
i want the folders to be renamed eg.
One of my clients has come across multiple breakdowns in their websites with the following error
PHP Code:
Warning: session_start() [function.session-start]:open(/tmp/sess_1d6616afe1b8a0d91a8d9ec29254b453, O_RDWR) failed: No space left on device (28) in
/home/***/public_html/system/library/session.php on line 11Warning: session_start() [function.session-start]: Cannot send session cookie - header
Recently I have purchased a VDH package and need to be able to communicate between sub domain with the $_SESSION array. The system has been build with this is mind.
Is there a better way to do this? I can't find a way to nest or apply boolean operators to conditions in nginx.
Basically if there is a cookie set(non-anonymous user) we want to hit the server.
I have an issue with sendmail on my server (ubuntu 12.10) with php, mysql,and wordpress installed. Basically I want to create a contact form in my blog to receive emails from visitors directly into my gmail account but it doest work!
I am having strange problems on my server in the last days. When the problems happen, all domains hosted on this server present an error.
I am creating website in which a user can download .vcf file on its mobile phone.The file is not stored on my browser, but is generated using the stored data in my database.
Suppose I have a file abc.php:
<?php session_start();
?>
<?php
if($_SESSION[abc] != some_value)
{
echo "not ok";
exit();
}
else
{
header("Content-Description: File Transfer");
header("Content-Type: te