User Profile

Collapse

Profile Sidebar

Collapse
thefox149
thefox149
Last Activity: Sep 11 '08, 10:59 PM
Joined: Mar 27 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • thefox149
    replied to Extend Session Timeout Depending on users
    in PHP
    The Servant that is pretty much my script

    I like the check ip address suggestion. On every page, as apart of a security stragety I check to to see if the session is active. I could (if I understand correctly) check how long that session has been going for and kick them out if they have been around longer than 15 mins and from an external ip....
    See more | Go to post

    Leave a comment:


  • thefox149
    started a topic Extend Session Timeout Depending on users
    in PHP

    Extend Session Timeout Depending on users

    Hi All

    I know I can set the php.ini timeout to increase to what ever I like
    I also know I can do it from a php script.

    My question is if I can change it from the script will it extend the seesion for all users or only the user who intiated the call from the script?

    If not how can I set intranet users to have a time out of 1hr and internet users 15mins

    any help would be greatly ap...
    See more | Go to post

  • thefox149
    replied to Where to Start
    in PHP
    Read Books

    The best php mysql book i ever read was the apress
    Learn PHP5 from novice to professional. give you a great all round understanding
    See more | Go to post

    Leave a comment:


  • thefox149
    replied to Smarty PHP Question
    in PHP
    [php]// required connect
    SmartyPaginate: :connect();
    // set items per page
    SmartyPaginate: :setLimit(15);
    $sql = "Your Sql goes here";
    // assign your db results to the template
    $smarty->assign('make ', get_db_results( $sql));
    // assign {$paginate} var
    SmartyPaginate: :assign($smarty );
    // display results
    // display results
    ...
    See more | Go to post

    Leave a comment:


  • thefox149
    replied to Need Help with Query
    in PHP
    We do a similar thing with urls in an email
    the url looks somthing like this

    http://youdomain.com/product.php?id= 23&emailview=Y

    this way we can test the $_GET['emailview'] and do something.

    why not create a transation table that purely counts the views of that particular resume rather than increment or
    $emailview = $_GET['emailview'];
    if($emailview == "Y"){
    ...
    See more | Go to post

    Leave a comment:


  • thefox149
    replied to Smarty PHP Question
    in PHP
    I only started using paginate the other day I followed this

    http://www.phpinsider. com/php/code/SmartyPaginate/

    and worked first time..
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...