Jump to content

SandySynaptik

Members
  • Content Count

    100
  • Joined

  • Last visited

Community Reputation

6 Neutral

About SandySynaptik

  • Rank
    Member
  • Birthday 10/12/1996

Previous Fields

  • Languages
    (X)HTML, CSS, JavaScript, PHP,

Contact Methods

  • ICQ
    0
  • Yahoo
    sandysynaptik@rocketmail.com

Profile Information

  • Location
    In Front of my PC
  • Interests
    Web Development, Web Designing..
  1. Is it important to define body element first before defining div elements? like: body { background : #123456;} #div1 { foo: bar;} or is it also valid if div element is written first, like: #div1 { foo: bar;} body { background : #123456;}
  2. How can it effect if I don't include character encoding i.e.<meta http-equiv="Content-Type" content="text/html; charset=utf-8">(the above line) on my html page.
  3. I want to define http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js as $jquerylink in a variable, so that I can link them by just typing $jquerylink.
  4. How can I cut down/shorten the following code? looks like I have used too many PHP tags. <!DOCTYPE html><html lang="en-us"><head> <meta charset="utf-8"></head><body><?php$IP = $_SERVER["REMOTE_ADDR"];$geodata = file_get_contents('http://api.geoio.com/q.php?key=6wVGBk7TshKizPJI&qt=geoip&d=comma&q=$IP');$pieces = explode(",", $geodata);echo $geodata;?><br />Your city : <?php echo $pieces[0];?><br />Your State: <?php echo $pieces[1];?><br />Your Country: <?php echo $pieces[2];?><br />Your Location (Lat): <?php echo $pieces[4];?><br />Your Location (Long): <?php echo $pieces[5];?><br />Your Location: <a href="http://maps.google.com/?q=<?php echo $pieces[4],", ", $pieces[5];?>"><?php echo $pieces[4],", ", $pieces[5];?></a><br />Your Country Code: <?php echo $pieces[6];?><br /><br />* I can't guaranty geolocational data, don't rely on them.</body></html>
  5. Oh ######! I posted wrong thing. Actually I was trying to put a comma and space between pieces[4] and pieces[5] and the code was something like this <?php echo $pieces[4],", " $pieces[5];?>
  6. What is wrong in this script? <?php echo $pieces[4], $pieces[5];?> I am trying to echo 2 variable in same line.
  7. The problem is how do i sent this request for each of them who visits this page?Below is something I am up to: <!DOCTYPE html><html lang="en-us"><head><meta charset="utf-8"></head><body><?php$ip = $_SERVER["REMOTE_ADDR"];?></body></html>
  8. I am using a web service called Geo I/O which lets me locate an IP address and get their Country, State, City and Latitudinal and Longitudinal status.The request that is sent is something like:http://api.geoio.com/q.php?key=YOUR TOKEN&qt=&d=comma&q=IP ADDRESS The above request sent gives a string like:Calcutta,West Bengal,India,Bcl East,22.5697,88.3697,IN Now I want the above string arranged something like this in the webpage:City: CalcuttaState: West BengalCountry: IndiaLatitude: 22.5697Longitude: 88.3697 Please help me out.
  9. I know I know that I don't need to know about their browser to show their IP address. Showing IP address is just a part of that. Till now I have extended that page to show. User's IP address User's Browser User's Screen Resolution and user's User Agent I want to add more details as possible.
  10. I am trying to make my own "What's Your IP Address" page. There is nothing technical. So, how can I?
  11. I want to have the browser's version in a variable and show it somewhere on the page. Every browser have different version pattern I think. How can I do so?
  12. Problem is solved, what is HTTP_X_FORWARDED_FOR?
  13. The problem still exists. See the attachment.send.php
  14. I am using something like this for echoing: <ul><?phpecho '<li><strong>Browser:</strong> <span>'.$browser.'</span></li>';?></ul> But getting an error about Notice: Undefined variable: browser in...
×
×
  • Create New...