Jump to content

hackalive

Members
  • Posts

    652
  • Joined

  • Last visited

Everything posted by hackalive

  1. hackalive

    PDO

    Firstly hoping everyone had a good Christmas, Next, I am trying to use this code https://github.com/geoloqi/oauth2-php And using the PDO I setup the tables etc but cannot link it to my db. In my browser i go http://localhost/server/examples/pdo/addclient.php I need to get it to link to a db but cant. Any help is much appreciated. Cheers in advance.
  2. @AGuyWithAthing: The iPhone does nothing, I was making a statement that I would like to build an API for my service that works LIKE the iOS API layer does, in regards to the prompting of users for information. Thank you for the links Any other help is appreciated guys
  3. hackalive

    API

    Hi guys, I need to develop an API for the web-service I am building. The API needs to work like the Apple iPhone one, when user data is requested the user is prompted by me (forced) the developer does not make the prompt. Anyways, I have no idea where to start in building the API with PHP ect. So any help/suggestions is greatly appreciated. A Merry Christmas and many thanks in advance to you all.
  4. hackalive

    Disappear

    Drongo_III, putting a background color would solve this issue, however, the whole page background is an image, so that is not an option
  5. hackalive

    Disappear

    Hi guys, I have a background image, and then a fixed div. My issue is when i scroll the page, i can see the scrollable content underneath the fixed div (transparent background, because of whole page image background). How can I make the scrollable div content not viewable behind the fixed div? Any method, css, jquery, PHP, is appreciated, cheers in advance.
  6. hackalive

    Stack

    Hi guys, I am using this code http://jsfiddle.net/jtbowden/ykbgT/2/ (link from http://stackoverflow.com/questions/4741880/slide-a-div-offscreen-using-jquery) but want to know how I can stack multiple groupings of the <div>s so this is my code <div id="container"> <div id="row"> <div id="box1" class="box">Div #1</div> <div id="box2" class="box">Div #2</div> <div id="box3" class="box">Div #3</div> <div id="box4" class="box">Div #4</div> <div id="box5" class="box">Div #5</div> </row> <div id="row"> <div id="box1" class="box">Div #1</div> <div id="box2" class="box">Div #2</div> <div id="box3" class="box">Div #3</div> <div id="box4" class="box">Div #4</div> <div id="box5" class="box">Div #5</div> </row> <div id="row"> <div id="box1" class="box">Div #1</div> <div id="box2" class="box">Div #2</div> <div id="box3" class="box">Div #3</div> <div id="box4" class="box">Div #4</div> <div id="box5" class="box">Div #5</div> </row> </div> I essentially need the rows to stack one underneath the other, like rows in a table. Many many thanks in advance
  7. I need to know the time diff in hours, mins and seconds (pref as three separate variables)
  8. Hi guys, How can I compare 2011-12-17T12:00:06+0000 with a current date('c')? cheers in advance
  9. Hi Guys, I am using the PHP Facebook code with my app; <?php $app_id = ""; $app_secret = ""; $my_url = ""; session_start(); $code = $_REQUEST["code"]; if(empty($code)) { $_SESSION['state'] = md5(uniqid(rand(), TRUE)); //CSRF protection $dialog_url = "https://www.facebook.com/dialog/oauth?client_id=" . $app_id . "&redirect_uri=" . urlencode($my_url) . "&state=" . $_SESSION['state']; echo("<script> top.location.href='" . $dialog_url . "'</script>"); } if($_REQUEST['state'] == $_SESSION['state']) { $token_url = "https://graph.facebook.com/oauth/access_token?" . "client_id=" . $app_id . "&redirect_uri=" . urlencode($my_url) . "&client_secret=" . $app_secret . "&code=" . $code; $response = @file_get_contents($token_url); $params = "user_questions"; parse_str($response, $params); $graph_url = "https://graph.facebook.com/me?access_token=" . $params['access_token']; $user = json_decode(file_get_contents($graph_url)); echo("Hello " . $user->name); } else { echo("The state does not match. You may be a victim of CSRF."); } ?> However I am having issues with the permissions, I can only ever get it to ask for "Yout basic info" when it needs to ask for more than that. Any ideas why? Cheers in advance.
  10. A number of them say Even if they support 5.3!
  11. Hi guys I am trying to find a host who supports json_decode, most appear not to, so any ideas on ones which definitely do?
  12. Hi guys, I am trying to access the 90second preview for iTunes for songs, but cannot find anything in the API for it, any ideas how I achieve this? I know it is possible but not how. Cheers in advance.
  13. Hi guys, I am trying to vertical center a div of which i know the height (height: 4in;) I cannot seem to get it to work. PS it MUST use "inches" as the unit of measurement, any help is greatly appreciated. Cheers in advance.
  14. yes sorry, i do realize (now) i have posted it in the wrong spot, so feel free to shift it my bad, sorry
  15. Hi guys, is there any jquery/HTML5 framework that widely supports multitouch? Cheers in advance.
  16. I just found https://www.maestro.fm So im thinking as long as its only you who as access to the music its ok to upload? Others opinions are welcome
  17. Hi thorpe, I looked at iCloud, but could find no API for accessing the stored music? Ive built my own music player, so if iCloud has an API then I could use it (or some way to access the music files), do you know of any such thing thorpe? Cheers
  18. Thanks KingPhillip Of course I understand your no lawyer
  19. hackalive

    iTunes

    Hi guys, I have a question, if I have purchased music through the iTunes store, can I upload it to a shared web server (NB: its a shared webserver, but only I have access to the folder and music in it, no other users do) is this legal? What are your opinions? Cheers in advance.
  20. can find plenty of generators but not PHP decorders
  21. do you have any clues as to a PHP reader for QRcode?
  22. I have it working, sort of, based on the link you gave. Can I ask where you found that link and are there any instructions on sizing?
  23. This is the current code <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> <script type="text/javascript" src="../js/qrcode.js"></script> <?php header("Content-type: image/png"); ?> <div id="qrcode"></div> <script> jQuery('#qrcode').qrcode({ width: 60, height: 60, text : "1" }); </script> If i was to visit http://mysite.com/qr.php I see the QRcode if i try to use <img src="http://mysite.com/qr.php"> it does not work!
  24. If we were to do a save, it would need to be server side.
×
×
  • 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.