Jump to content

dflow

Members
  • Posts

    631
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

dflow's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. iDiv.appendChild(innerDiv); was causing the error
  2. obviously I did, but then: document.getElementById("5050").src ="http://example.com/tracker/"+ a +'/' + b; isn't executed for some reason
  3. This code works: How can I execute this in one script tag? <script> var urlParams; (window.onpopstate = function () { var match, pl = /\+/g, // Regex for replacing addition symbol with a space search = /([^&=]+)=?([^&]*)/g, decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); }, query = window.location.search.substring(1); urlParams = {}; while (match = search.exec(query)) urlParams[decode(match[1])] = decode(match[2]); })(); var a = urlParams["a"]; var b = urlParams["b"]; // var url = "http://example.com/tracker/"+ a +'/' + b; var iDiv = document.createElement('img'); iDiv.id = '5050'; iDiv.src = +url; iDiv.width = '14'; iDiv.height = '14'; document.getElementsByTagName('body')[0].appendChild(iDiv); iDiv.appendChild(innerDiv); </script> <script> document.getElementById("5050").src ="http://example.com/tracker/"+ a +'/' + b; </script>
  4. I played around with laravel 3 for a while, liked the lean aspect of the framework Is the community still active? and is it growing? It seems to me that it is quite quiet. thanks
  5. I managed to get it working, thanks for the input
  6. I used a quick script I found, I removed the $check and still I the <img> is not logged and no errors, the log works when I reload pixelimage.php
  7. even with $log defined It isn't logged via the remote page.
  8. I have the following <img> on a completed.php after a signup.php <img src="http://example.com/pixelimage.php?AffID=98798" width="1" height="1"> the pixel is generated here pixelimage.php <?php // Create an image, 1x1 pixel in size $im=imagecreate(1,1); // Set the background colour $white=imagecolorallocate($im,255,255,255); // Allocate the background colour imagesetpixel($im,1,1,$white); // Set the image type header("content-type:image/jpg"); // Create a JPEG file from the image imagejpeg($im); // Free memory associated with the image imagedestroy($im); if (isset($_GET['AffID'])) { // $query_add="UPDATE auth_table SET etat = replace(etat,'$anc','$nv') where user_id LIKE // '%$log%'"; // $query_exec=mysql_query($query_add) or die(mysql_error()); // <script language='JavaScript'>alert('Activation termine')</script> echo $AffID = $_GET['AffID']; $date = date("Y-d-m"); $hour = date("H:i"); $op=$date.$hour.'Affiliate ID : '.$AffID; $op .= "\n"; $file = 'log.txt'; $search = file_get_contents($file); $check = strpos($search, $log); if ($check === FALSE) { $fp = @fopen($file, 'a'); $write = @fputs($fp, $op); @fclose($fp); } } ?> the image is generated but the action does not get logged. I can only get it logged when I reload the completed.php page. what did I mess up?
  9. How would you approach normalizing multiple webs ervices into one hotel availability search engine? I understood that combining Redis for speed and mysql for organization should do the trick. I have many service I batch data from , how would you structure it? Get available hotel room dates into one Redis table and run queries on that? your advise even a simple example will help
  10. i have several webservices i would like to perform bookings availability search on. my approach is to cronjob each service each day into a local XML file and then search availability on it. Live search on al services is too slow. your advise appreciated.
  11. I'm looking into how to Get mouse location on page per screen resolution. for example : I want to mark a specific point in a long article and save that location thanks
  12. i'm having an issue with passing app_data after a new app install redirect using the `Facebook PHP SDK` $loginUrl = $facebook->getLoginUrl( array( 'scope' => 'email,manage_pages', 'redirect_uri' => $fbconfig['appPageUrl'], ) ); $decodedSignedRequest = parse_signed_request($_REQUEST['signed_request'], $fbconfig['secret']); if (isset($decodedSignedRequest['app_data'])){ echo $app_data=$decodedSignedRequest['app_data']; header("Location: success.php?id=$app_data"); die();} if the app is installed i get app_data from the signed_request without a problem any suggestions? thanks
  13. It means you have http links on a https page. Change it to (note the missing http:): '<script type="text/javascript" src="//bp.yahooapis.com/2.4.21/browserplus-min.js"></script>'. '<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>'. for example the yahoo api cannot be called with https
  14. im getting Chrome "This page has insecure content." issue any fixes? i have mixed css and javascripts being called for example '<script type="text/javascript" src="http://bp.yahooapis.com/2.4.21/browserplus-min.js"></script>'. '<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>'. calling them with https doesn't work very annoying
×
×
  • 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.