Jump to content


  • Posts

  • Joined

  • Last visited

Posts posted by BK87

  1. So basically I have a ajax call from Server A to Server B, passing some 'session keys', once those keys get to server B, it gets authenticated and sessions get set.  The problem I'm having is that as soon as I make another call to same URL the sessions disappear from Server B. 


    here is some code,

    header("Access-Control-Allow-Origin: http://domain.com");
    $f = new MyClass();
    var_dump($_SESSION); //empty everytime
    if (isset($_GET["sessionid"]) && isset($_GET["secretkey"]) && !isset($_SESSION["user_id"])) {
        $f->authSession($_GET["sessionid"], $_GET["secretkey"]);
    var_dump($_SESSION); //sessions are set as expected

    The servers are on different machines.


    Let me know if you guys have any input, thank you.

  2. Hello freaks!


    So I'm trying to build an app which requires to have recurrent events, such as repeat, every week on mon wed fri at specific time with occurrences limit, or limited by date ranges.  Perfect example is Mozilla Sunbird or Google Calendar and their repeat features, especially Sunbird, which has an 'exception' feature which I direly need.  I've been kind of stuck with the database design ideas.  I've done a numerous amount of research, even as much as trying to sort through Sunbird's sources for table schemas, but I can't seem up fully understand how to make this PROPERLY.


    I will greatly appreciate some guidance!


    Thank you in advance guys!



  3. Hello!  Haven't been on this forum for quiet sometime!  But, I have some free time on my hands and looking to do some php work =D


    Let me know if you have anything that needs to be done.  All work is done on project basis, not hourly.  You don't pay in full until it works =)




    ps. also looking for web designers who want to partner up with development.

  4. <?php
    $value_one=26; //integer
    $value_two="26"; //string
    if($value_one == $value_two){
        echo "the values are identical"; //they are both `26` --- string or integer
    * this next example featuring "===" (explicit) will never process because $value_one is an integer and $value_two is a string, yet they have the same value of `26`
    * comparing two strings with explicit isn't necessary
    * good practice is to compare TRUE and FALSE statements this way.
    * to make sure that "true" (string) isn't the same as TRUE (boolean)
    if($value_one === $value_two){
        echo "the values are identical";


    i hope I got that right.

  5. I think looks and works just fine. I like it.


    Watched your entire run too.


    As for the white, most video hosts quickly see that the bandwidth is crucial, so less crap to load the better, examples would be wisevid and zshare, I remember wisevid was all sleek and fancy, they changed that in a hurry.



    Thanks! =D


    This design is about 3 years old.  I started this site although never finished it due to college.  Got some energy to sit down and try to finish it.  I'm focusing on video quality and not too much worried about the footer and how it looks. (I've updated some video quality settings for future videos) I'm expecting this site to be somewhat popular among the motorcycle community although not as big as youtube.  Although who knows. =D



  6. Agreed with ignace on preloading the images.


    I think the footer needs something to help tie it in. The bottom (well, most of the content area too) seems very blah with just a standard white. Perhaps add a light texture and defined footer?



    BTW - you've got some balls. I doubt I'll ever take my bike to the track ;)


    =D Believe it or not... Track is safer.  Although its very addicting.

  7. Need some criticism.  Site is not 100% functional yet, although about 10% left to do.  Anyway

    Things you should know. Uploads work, although video conversion is not automatic! (because currently looking for some of the top mimetype to support, so upload away!)  Search not fully working!


    Currently on a 1gige port, speed seems to be nice =D


    Also, all videos that have a bike number #911 or a funky colored suit.  (green/red/yellow) thats is actually ME! (http://www.motohd.com/watch/S5Kb7lkpi7/) just skip to about 1:30 =D





    Thanks fellas! 

  8. <?php
    echo ini_get( 'session.save_path');


    whats where all the sessions are stored.. Just make a script to calculate how many files are in that folder... thats how many active sessions there are.


    That won't get you 'who' is logged in. The method denno020 suggested is the typical method used. You simply update a timestamp every time a user hits a page. You then (where you want to display the logged in users) query for all users with a timestamp within the last ten minutes and display them, the rest can be removed (all in this same process).


    ahh yes, didn't fully read his post... you're right

  9. <?php
    include 'include/config.php';
    $sql = mysql_query(" SELECT * FROM logos ");
    while($row = mysql_fetch_assoc($sql)) 
    echo $row['image'];
           echo "  ";
    echo "<br />";



    not tested. but should work

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.