Jump to content

fusilli_jerry89

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

fusilli_jerry89's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you, but I was actually wondering if someone could explain the browscap.ini file. Does a server just compare the information stored in its browscap.ini file with the information that the browser is sending to the server in its request packets? Is this information reliable? Like, couldn't a telnet connection send firefox-like information and trick the server into thinking it's firefox instead of telnet?
  2. Hi, I am just wondering how the get_browser() function works? How does it know whether firefox, or internet explorer, or telnet is being used?
  3. Hello. I am having a bit of a problem with iframing. For some reason, it is working perfectly fine on Safari, but on FireFox, it isn't. Basically I am trying to get a page called page1.php to display an iframe. In that iframe, I want it to display page1.php as well. So basically I want a page to have an iframe of itself, but only once, not infinite times. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <title>Selected Video Clips</title> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <p>Page 1</p> <?php $referer = $_SERVER['HTTP_REFERER']; if ($referer != "http://localhost/test.php") echo '<iframe id="frame" src="http://localhost/test.php">No</iframe>'; ?> </body> </html> Basically, I know the iframe is not even loading because the onload event doesn't ever trigger on Firefox. Any ideas? Thanks!
  4. I have realized that there is 2 ways to do this. GET and POST. I don't want to have the variables in the url, though. Is there a way to have some sort of an auto form that will send something automatically without having to have the user press the submit button?
  5. So basically, I want to have 3 pages. The first one will send the user to the second page. The second page will only send the user to the third page if they went through page 1. Is this possible by using header("Location: ) or something like that? I know of double meta refresh but that uses javascript or something? I know that you can pass variables through forms and such, so shouldn't there be an easy way to pass a variable without a form (just automatically) to the 2nd page? Then the 2nd page could check if it was set or not, and whether to send user to page 3. I don't have openSSL on my shared hosting.
  6. Thank you but I try this: $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); //Set curl to return the data instead of printing it to the browser. curl_setopt($ch, CURLOPT_URL, $url); $data = curl_exec($ch); curl_close($ch); return $data; } $d = file_get_contents_curl("http://ipinfodb.com/ip_query.php?ip=$ip&output=xml"); but I still get same error. edit: Actually, now I don' get any error at all, but it still doesn't work.
  7. Hello all. I am having a little problem and I was wondering if someone could help me? So basically, I have a hosting account with hostgator. On my website, I used the php function file_get_contents() in order to get the ip address from a website. It worked for the past week, but just suddenly I am getting a "failure to connect to socket" error message. Here is all that I am trying to do: $d = file_get_contents("http://ipinfodb.com/ip_query.php?ip=$ip&output=xml"); I tried without the "&output=xml" and it still doesn't connect. All I can think of is that something got blocked.. But I didn't do anything so maybe it was my host? If anyone has any ideas, it would be very much appreciated. Thanks!
×
×
  • 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.