Hi All,
I am doing a project in cakephp. What my problem is when ever i close my browser and when i reopen it, session id(i.e userAgent) in cakephp is not changing. I want to use this session id for tracking visitor counts. But when i close the browser and open again, session id is not changing...
I get the session id using this
print_r($this->Session->read());
in AppController. Any help would...
User Profile
Collapse
-
Session id is not expiring in cakephp
-
URL rewrite in htaccesss
Hi all,
I have a doubt in redirecting a url in htaccess file. for example,
http://example.com/subfolder1/subfolder2 to http://www.example.com/subfolder1/subfolder2
How can do that in htaccess. I have tried in google but still not able to find a
proper solution. Anybody else pls help me
I am using cakephp for my application. And one more problem for me is if i type... -
Finding Every 2 days in a month
In my project i have to mail for every two days in a month. How do i code it?
Please help me... -
I hope this code might help u. pls check it
...Code:<?php $con=mysql_connect("localhost", "root", "simply123") or die("Could not connect: " . mysql_error()); mysql_select_db("minedb"); echo "Epoch is ".$epoch = date(U); $uploadDir="uploads/"; if($_REQUEST['add']) { if (isset($_FILES['photo1']['name'])) -
...Code:<script type="text/javascript"> function add_row(idx) { var table = document.getElementById('tbl'); var row = table.getElementsByTagName('tr')[idx]; var new_row = row.cloneNode(true); table.getElementsByTagName('tbody')[0].appendChild(new_row); } function add_row_event(e) { var val;Leave a comment:
-
...Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT="">
Leave a comment:
-
-
Hi,
Dont use 0 inside $_SESSION['']. I think '0' or '1' indicates true or false. This might be the problem. Instead of 0 I used the variable value inside session, now it is displaying the set.
This code works.
...Code:<?php session_start(); $_SESSION["value"] = "Tested" ; echo "Session value is ".$_SESSION["value"]; echo "<BR>";
Leave a comment:
-
Help in mysql query
Hi,
I have two tables channels and subscribers. Channels has fields like channelid, channelname,use rid,added_time etc. The subscriber table has id,channelid,su bscriber_id.
Now i want to pick the channels which has userid=1 and subscriber_id from tbl_subscribers where subscriber_id=1 .
I have tried the following query.
select t1.channel_name ,t2.channelid from tbl_create_chan nel... -
Hi,
Here i m giving a example for deleting all records and also u can delete a single record. U check it and if u have any doubt u pls message me. If you press all button in the headings, it will delete all records.
Sample Codings:
<?php
$con=mysql_conn ect("localhost" ,"root","simply 123") or die(mysql_error ());
mysql_select_db ("databasename" ,$con)...Leave a comment:
-
Hi,
This is the coding i got in net. But it works well.
[CODE=php] <?php
$_SERVER['FULL_URL'] = 'http';
if($_SERVER['HTTPS']=='on'){$_SERVE R['FULL_URL'] .= 's';}
$_SERVER['FULL_URL'] .= '://';
if($_SERVER['SERVER_PORT']!='80') $_SERVER['FULL_URL'] .= $_SERVER['HTTP_HOST'].':'.$_SERVER['SERVER_PORT'].$_SERVER['SCRIPT_NAME'];
else
$_SERVER['FULL_URL'] .= $_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];...Leave a comment:
-
Hi,
You can delete selected records in php. For example,
If you are using a file called test.php,
<input type="checkbox" name="delete" value="<?=$resu lt['id']?>" onClick="return DeleteThisData( this.value);">
This is the checkbox you are using while retrieving datas from the database.
I am calling a javascript function called DeleteThisData( );...Leave a comment:
-
how to schedule a task from a php page?
Hi ,
is it possible to assign a task to windows scheduled task manager from PHP web Page apart from doing it in the control panel. My task is to set an alert in the windows scheduled task manager.So that it can execute any process? -
Google Housing API
How to view and search the housing details in our sites? Its Urgent pls.Last edited by pbmods; Jul 6 '07, 02:06 PM. Reason: Bold is for emphasis, not your entire post. Thanks! -
drop down box problem
Hi,
In my php page i have combo box which has problem numbers.
Eg:
Select the Problem ID to view the Problems :
...Code:<select name="proid" onChange="dispValues()"> <option value="">Please Select</option> <option value="PROB001">PROB001</option> <option value="PROB002">PROB002</option>
No activity results to display
Show More
Leave a comment: