Click here to Skip to main content
15,890,506 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: Shared Cookie Pin
cjoki8-Oct-10 5:02
cjoki8-Oct-10 5:02 
AnswerRe: Shared Cookie Pin
FeRtoll7-Oct-10 7:41
FeRtoll7-Oct-10 7:41 
GeneralRe: Shared Cookie Pin
Luc Pattyn7-Oct-10 8:05
sitebuilderLuc Pattyn7-Oct-10 8:05 
GeneralRe: Shared Cookie Pin
FeRtoll7-Oct-10 8:22
FeRtoll7-Oct-10 8:22 
GeneralRe: Shared Cookie Pin
Luc Pattyn7-Oct-10 8:42
sitebuilderLuc Pattyn7-Oct-10 8:42 
QuestionNeed Help on Outlook + Python Pin
AminJigar6-Oct-10 23:33
AminJigar6-Oct-10 23:33 
Questionincrease index of array on every refresh of page Pin
Blue_Boy6-Oct-10 23:23
Blue_Boy6-Oct-10 23:23 
AnswerRe: increase index of array on every refresh of page Pin
Gerben Jongerius7-Oct-10 4:13
Gerben Jongerius7-Oct-10 4:13 
To do this you will need to store the index that you are currently visiting in the session of the user, unless you want to include it in every link which won't cover a refresh (F5 button).

Storing it in the session could be done simply by:
  session_start();

  if ( !isset($_SESSION['index']) ) {
    $_SESSION['index'] = 0;
  }

  $_cur_index = $_SESSION['index'];

//.. do your stuff

  $_SESSION['index'] = ++$_cur_index;


Note that if a browser uses caching this might not work, as the browser may never issue a request to the server.
QuestionBeginner ask some questions ? Pin
Honeyboy_205-Oct-10 1:34
Honeyboy_205-Oct-10 1:34 
AnswerRe: Beginner ask some questions ? Pin
User 17164925-Oct-10 3:23
professionalUser 17164925-Oct-10 3:23 
GeneralRe: Beginner ask some questions ? Pin
Honeyboy_205-Oct-10 4:42
Honeyboy_205-Oct-10 4:42 
GeneralRe: Beginner ask some questions ? Pin
User 17164925-Oct-10 5:05
professionalUser 17164925-Oct-10 5:05 
Questionlinux Pin
sheronici3-Oct-10 6:13
sheronici3-Oct-10 6:13 
AnswerRe: linux Pin
LloydA11111-Dec-10 10:13
LloydA11111-Dec-10 10:13 
AnswerRe: linux Pin
LloydA11120-Dec-10 6:46
LloydA11120-Dec-10 6:46 
AnswerRe: linux Pin
Iranian MM7-Sep-11 6:41
Iranian MM7-Sep-11 6:41 
QuestionSend attachment through email Pin
DinoRondelly22-Sep-10 7:50
DinoRondelly22-Sep-10 7:50 
AnswerRe: Send attachment through email Pin
DinoRondelly22-Sep-10 8:45
DinoRondelly22-Sep-10 8:45 
QuestionHow to execute a URL in cron job at Linux Server Pin
Varun Sareen21-Sep-10 18:52
Varun Sareen21-Sep-10 18:52 
AnswerRe: How to execute a URL in cron job at Linux Server Pin
cjoki22-Sep-10 4:51
cjoki22-Sep-10 4:51 
GeneralRe: How to execute a URL in cron job at Linux Server Pin
Varun Sareen22-Sep-10 21:14
Varun Sareen22-Sep-10 21:14 
GeneralRe: How to execute a URL in cron job at Linux Server Pin
cjoki23-Sep-10 5:58
cjoki23-Sep-10 5:58 
GeneralRe: How to execute a URL in cron job at Linux Server Pin
Varun Sareen23-Sep-10 7:25
Varun Sareen23-Sep-10 7:25 
GeneralRe: How to execute a URL in cron job at Linux Server Pin
cjoki23-Sep-10 11:58
cjoki23-Sep-10 11:58 
GeneralRe: How to execute a URL in cron job at Linux Server Pin
Varun Sareen23-Sep-10 18:47
Varun Sareen23-Sep-10 18:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.