Dedicated Servers
Managed Dedicated Servers
Semi-Dedicated Hosting
Cheap Dedicated Servers
Hyper-V VPS Hosting
Hyper-V Virtual Private Servers
Linux VPS Hosting
VPS Hosting with Root Access
Windows VPS Hosting
Windows VPS Web Hosting
Reseller Hosting
Reseller Hosting India
cPanel Shared Hosting
Linux Shared Web Hosting
Windows Hosting
Windows Shared Web Hosting
Web Hosting Blog
Web Hosting Blog India
Hosting Knowledgebase
Web Hosting Knowledgebase




  #11 (permalink)  
Old 11-26-2003, 11:57 PM
Senior Member
 
Join Date: Jun 2004
Posts: 102
Default

PHP Sessions Test script

Add the following script to your test.php page and keep refreshing the page in browser, this will show you the working of session. The session variable "count" is getting incremented with each refresh.

Code:
<?php
session_start();
// Use $HTTP_SESSION_VARS with PHP 4.0.6 or less
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
} else {
$_SESSION['count']++;
}
echo "Count: =$count";
?>
Reply With Quote
  #12 (permalink)  
Old 01-08-2004, 06:10 AM
Senior Member
 
Join Date: Jun 2004
Posts: 102
Default

TEST CGI SCRIPT

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "This is a test file \n\n";
Reply With Quote
Reply

Bookmarks
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT. The time now is 05:33 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0