26

(7 replies, posted in General discussion)

around 77,000 enties you can find it in this file

http://www.maxmind.com/download/geoip/d … tryCSV.zip


This is CSV, Though this is free, please visit the site before you use it for licensing issues....  http://www.maxmind.com/app/geolitecity

27

(7 replies, posted in General discussion)

Here is an another link to get more idea about the Country IP... http://www.maxmind.com/app/country

28

(1,382 replies, posted in General discussion)

flies

29

(1,382 replies, posted in General discussion)

vc++

succubiss wrote:

http://www.hoursafter.net

i had to make some changes for it to work.

Got this following error when i chekd your site

URL : http://www.hoursafter.net/message.php?msg=907

"Message : Plug-in not loaded (#907)
An error occured while attempting to load this plug-in, file(s) missing ?"

31

(19 replies, posted in General discussion)

Thanks snapsolutions, its simple solution...

32

(7 replies, posted in General discussion)

If it works for you in any way.. you can use this code..

findip.php

<?
function get_ip($url){
$search_string="<br><br><center>The IP address ";
$search_string1="<br><br><center>Sorry, ";

$url=trim($url);
        $fcontents = file ($url);
        
        if(is_array($fcontents)){
            $max=count($fcontents);

            foreach ($fcontents as $k=>$line) {
                    $line=trim($line);
                    if(eregi($search_string,$line) || eregi($search_string1,$line)){
                        $ip=str_replace("</center>","@",$line);
                        $ip=str_replace("<center>","@",$ip);
                        $ip=str_replace("<img src=gfx","<img src=http://www.selfseo.com/gfx",$ip);
                        $tok=strtok($ip,"@");
                        $country_ip=strtok("@");
                        $k=$max;
                    }
            } //End of foreach/while

        } //End of is Array?

    return($country_ip);

}

if($_POST['submit']){
    $url="http://www.selfseo.com/ip_to_country.php?ip=$ip";
    echo "<br><b>URL :</b> $url";
    echo "<br><b>Searching for :</b> $ip<br>";
    $country_ip=get_ip($url);
    echo "$country_ip<br><br>";

}

?>
<html>
<head>
<style>
BODY {font-family:verdana,arial; font-size:10px;font-color:#333333;}
XMP {font-family:verdana,arial; font-size:12px;font-color:#333333;}
A:link   {font-family:Verdana,Arial,Helvetica;font-size:11px;text-decoration:none;color:#336699;}
A:visited{font-family:Verdana,Arial,Helvetica;font-size:11px;text-decoration:none;color:#008800;}
A:active {font-family:Verdana,Arial,Helvetica;font-size:11px;text-decoration:none;color:#009999;}
A:hover  {font-family:Verdana,Arial,Helvetica;font-size:11px;text-decoration:none;color:#ff6600;}
.sel {background-color:#ffffff;border-bottom:#ffcc99 1px solid;border-left:#ffcc99 1px solid;border-right:#ffcc99 1px solid;border-top:#ffcc99 1px solid;color:#000000;font-family:verdana, arial;font-size:11px;font-weight:normal;}
.inp {background-color:#ffffff;border-bottom:#ffcc99 1px solid;border-left:#ffcc99 1px solid;border-right:#ffcc99 1px solid;border-top:#ffcc99 1px solid;color:#000000;font-family:verdana, arial;font-size:11px;font-weight:normal;}
.tin {background-color:#ffffff;border-bottom:#ffcc99 1px solid;border-left:#ffcc99 1px solid;border-right:#ffcc99 1px solid;border-top:#ffcc99 1px solid;color:#000000;font-family:verdana, arial;font-size:11px;font-weight:normal;}
.but {background-color:#ffcc99;border-bottom:#cc6600 1px solid;border-left:#cc6600 1px solid;border-right:#cc6600 1px solid;border-top:#cc6600 1px solid;color:#cc6600;font-family:verdana, arial;font-size:11Px;font-weight:bold;width:80px;}

</style>
</head>
<body>
<center>
<FORM name="search" method="post" action="<? echo $PHP_SELF ?>">
Enter IP: <INPUT type="text" name="ip" size=40 value="<? echo $ip; ?>" class="textbox"> 
<INPUT type="submit" name="submit" value="Find Country" class="button">
</form>
</center>
<?
    echo "$list";
?>
</body>
</html>

33

(7 replies, posted in General discussion)

I too tried, and downloaded  one sw, it shows wrong Address. I checked for my country(india) and got it worong as france. Then i got the site, to check the IP for the country... And i'm using this site for checking http://www.selfseo.com/

34

(132 replies, posted in General discussion)

Flat screen idea is good... smile

35

(5 replies, posted in General discussion)

Personally I feel, copper mine ll be a good chice.

36

(3 replies, posted in General discussion)

Such a long domain name... My Gosh!...

37

(5 replies, posted in Programming)

Thank you elbekko, it works fine for me... smile

Do u suggest some good site for GD lib usage...

38

(5 replies, posted in Programming)

Also I would like to keep it in function so that can access it anytime i want using the fu name like...

make_image("text-string","width","height");

39

(5 replies, posted in Programming)

Hi,

I would like to create image using php and display on the browser. The text for the image will be taken from database. I created one, but for the next image, i dont know how to proceed. It simply shows only one image. I want to print list of images 1 below the other, Example; List of Albums Names. If anyone know about image creation in PHP, do suggest.


here is my simple code.

<?
    $text="Topic Heading / Sub-Heading";
    $x=10;
    $y=20;
    $w=500;
    $h=27;
    $size=10;
    
    $fontfile="VERDANA.TTF";
    $angle=0;

    header ("Content-type: image/png");
    $im = @imagecreate ($w, $h) or die ("Cannot Initialize new GD image stream");
    
    $background_color = imagecolorallocate ($im, 251, 121, 34);
    $text_color1 = imagecolorallocate ($im, 0, 0 ,  0);
    $text_color2 = imagecolorallocate ($im, 255, 255,  255);
    
    ImageTTFText ($im, $size, $angle, $x+1, $y+1, $text_color2, $fontfile, $text);
    ImageTTFText ($im, $size, $angle, $x, $y, $text_color1, $fontfile, $text);
    imagepng ($im);
    imagedestroy ($im);
?>

40

(4 replies, posted in Programming)

Thanks, but, is it possible to do without sessions... we need to store the user id in server right? is there any other method left?

41

(4 replies, posted in Programming)

Hi all,

   I need to send a code for reference through the browser session, how can i do that?
   code is nothing but a string. in othe words id number

Example:
    If someone cliks "my web link" from someother website(referring mysite) I ll get a code from that site say "...com/index.php?action=main&code=XYZ123" I want the code to be carried in all the pages. If that person registers with my site, i ll avail discount to that person, if not i should not.

I want to store the code and retriew whenever i want. Is there any smart way to do it.

Thanks in ADv.

42

(9 replies, posted in General discussion)

Thank you Strofanto, finally its fixed, one of my friend, suggested me to open a new file and paste the code alone removing tabs and (extra)spaces. I did the same. Now its working fine.

Stil i Dont have the clue - why i got that error? but what I think is, there may be some hidden character while creation of file.

thanks alot for your support Strofanto.

43

(9 replies, posted in General discussion)

In between the two comment lines, i am getting "?" in the source after execution

Pages without error shows

<!--  header_end -->
<!-- Content_beigns -->

pages with error shows

<!--  header_end -->
?<!-- Content_beigns -->

In header.php / main.inc, there is no such character.

44

(9 replies, posted in General discussion)

if the problem is with header, then i should get error in all the pages know. But I am getting this error in few pages only.. and the space in the Header is ok. Coz i removed the image below that. If not i have to upload the image and all...

Regarding Meta Tags, we usually use META in html pages. i think it ll not affect the page / code.

Do you think that, it will have some impact on the code?

45

(9 replies, posted in General discussion)

My code looks like this... Do i need to change the Doctype?

header.php

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My page Title</title>
<META NAME="Title" CONTENT="" />
<META NAME="Author" CONTENT="General Manager" />
<META NAME="Description" CONTENT="" />
<META NAME="Keywords" CONTENT="" />
<META NAME="Identifier" CONTENT="" />
<META NAME="organization-email" CONTENT="" />
<META NAME="Copyright" CONTENT="" />
<META NAME="coverage" CONTENT="Global" />
<META NAME="Robots" CONTENT="Index, Follow" />
<META NAME="revisit" CONTENT="30 days" />
<META http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
<link href="sns/style.css" rel="stylesheet" type="text/css">
<link href="sns/report.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="sns/jscripts.js"></script>
</head>
<body style="background-color:#ffffff; ">
<div class="wrap">
<!--  header_begin -->
   <div id="header">
      Header Here. . . .<br>
     <br style="line-height:56px ">
   </div>
<!--  header_end -->

main.inc

  <div id="content">
    <div style="width:678px; height:50px; margin-left:34px; margin-top:26px;">
    <div style="width:678px; height:50px; float:left;">        
        Home page
        
                asasdlasjdlasjdlas laskdjalsjkdaslkdjaskld
        GOTO <a href="index.php?action=search">Search Page</a>
                    
        </div>
    </div>
  </div>

footer.php

<!--  footer_begin  -->
   <div id="footer" >
   <div style="text-align:center;padding-top:10px " class="policy"><b>Powered by:</b></font><a target="_blank" href="#"><font color="#A8B2AF">xyz.com</font></a></div>
  </div>
<!--  footer_end  -->
</div>
</body>
</html>

46

(9 replies, posted in General discussion)

Hi all,
  I am building a website using php, I split the layout into 3

1. header.php
2. $action.inc
3. footer.php

here $action keep changing and loads the desired content.

The problem:

When the page loads, it shows a gap in between header and content(main.inc or any othr file)

I have checked all the div tags, all are open and closed properly.
few pages are executingit properly, but rest of the pages shows this gap. Wheni looked at the soure(html- view source) I found "?" in that gap. but its not displaying anythingin the browser except a line gap.

could you pls let me know what will be the error?.

Thanks in Adv

47

(4 replies, posted in General discussion)

For every action there is an equal and opposite reaction.. Hoping for the best smile

48

(10 replies, posted in General discussion)

Thank you for sharing this info guys... Still we can enjoy! smile

49

(3 replies, posted in Programming)

You want a Script for the program? or just a short-cut key for that?, mean.. would u like to use it in ur program.

50

(1,382 replies, posted in General discussion)

newsweek