Jump to content
xisto Community

matak

Members
  • Content Count

    419
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by matak


  1. If you try to put a link that has an & in your xHTML strict page, you need to change & to & in order for the page to be xHTML Strict..

     

    eg..

     

    BAD LINK:

    http://jasamza.korisnik.com/forums/viewtopic.php?f=19&t=7&sid=6c2e9120dcff6e0b83698c4aa7be929a
    GOOD LINK:
    http://jasamza.korisnik.com/forums/viewtopic.php?f=19&t=7&sid=6c2e9120dcff6e0b83698c4aa7be929a

    copy pasted &

  2. Ultimately simple script that allows you getting google search results to your localhost. This is the first part of the Crawler script i'm developing, and if you are interested in developing the script with me, IM me @icq328866661@msn/evil_matak/a\hotmail-com.

     

    Here's the form part...

     

    <form action="search.php" method="POST">

    <input type="text" name="search">

    <input type="submit" value="Search">

    </form>

    search.php

     

    <?php

     

    if (@$_POST['search']==""){

    echo "What are you doing?";

    }

    else{

    $query = file_get_contents("https://www.google.com/search?q($_POST['search'])."&num=100&hl=en&ie=UTF-8&filter=2");

     

    //needs to be added with more queries

    $replace_array = array('/\n/','/<head>(.*)<\/head>/','/(.*)<div id=res>/','/<br clear=all>(.*)/');

    //pregraplacing unneeded parts

    $results = preg_replace($replace_array, '', $query);

    echo $results;

    }

    ?>

    NOTE: This script shouldn't be used for public services, couse it is against google TOS. This should only be used for learning purposes. Also beacouse of those facts i added limits to the script so that you can't use it for all searches.

     

    Also google has custom search engines like the one I created here where you can help with adding good pages, and labeling bad pages. Join the community and help us make google even better search engine!


  3. Here's a sloppy 3 files login script. First file is Login file that looks like this

     

    login.php

    <form action="check.php" method="post">Username: <input type="text" name="username1"><br />Password: <input type="password" name="password1"><br /><input type="submit" value="Login"></form>

    Basicly that is HTML form that's used for input

     

    Second part of the script is the check.php that we call from our login.php form

     

    <?php

    //array that contains usernames and passwords

    $userpass = array ("user1" => "123456");

    //script that validates usernames and passwords

    if ( array_key_exists($_POST['username1'], $userpass)

    &&

    $userpass[$_POST['username1']] == $_POST['password1']

    )

     

    {

    session_start();

    //part which redirects to page if username and password are correct

    $_SESSION['user'] = $_POST['username1'];

    $_SESSION['pass'] = $_POST['password1'];

    echo "<a href=\"toview.php\">Registered Users Page</a>";

    }

    else {

    //part that redirects to index.php or register.php

    echo "Please register!<br />";

    echo "<a href=\"login.php\">How to Register</a>";

    }

    ?>


    Third part is toview.php, which we are loging in to.

    <?php session_start();

     

    @$approve = $_SESSION['user'];

     

    if ($approve == NULL):

    echo "Please register!<br />";

    echo "<a href=\"login.php\">How to Register</a>";

    else:

     

    ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://forums.xisto.com/no_longer_exists/;

    <html>

    <head>

    <title></title>

     

    </head>

    <body>

    <?php echo 'Welcome '.$_SESSION['user']; ?>

    </body>

    </html>

    <?php endif; ?>


    I call it sloppy couse this @ in code

     

    @$approve = $_SESSION['user'];

    is used to disable error reporting, which is generated if $approve variable isn't set. That error apears only if user directly tries to reach toview.php part, and if $_SESSION is NULL we don't approve that, and just echo the login PHP part.

     

    Hope u find this useful

     

    mAtAk


  4. I lost 117 credits. If i knew i would probably transfered them to one of my friends here. Guess it's to LATE NOW!!

     

    I haven't seen the warning anywhere. I canceled hosting couse now i have to study for my college, and right after my exams are through (about month and a half), i'm going to work far away from home to finish my "specialization" part of college.

     

    Loosing that much is a shame but, what can you do. Win some lose a lot.. Posted Image

     

    It would be good that someone EDITS this post, to put this warning inside..

    http://forums.xisto.com/topic/48270-cancel-my-hosting-account-resolved/#


  5. Really nice list of commands. I use some of them now and then (msconfig). There are also few commands that you can use..

    Winkey+R to start "Run" Prompt

    iexplore -> Starts internet explorer (use it to test your websites) I hide iexplorer icons so that other ppl using computer don't start it by mistake :)telnet -> access telnet (sometimes used to configure routers)

    usefull command you can use from command prompt
    ipconfig -> shows your your current IP subnetmask and gateway to router, and similar to all other network devices, usefull when configuring networks



  6. I saw pirates few days ago, and although it wasn't as good as the 2nd part i still like the movie. It's hard to make such a great movie like the 2nd part was, but there were some great scenes in movie that really make you wonder. I hope that this will not be the last pirates, but also it would be good if they take at least 10 year break before making 4th ore more sequals. Comments from people when movie ended were mostly "i wish they stayed only on 1st part", "this is not that great" etc, so maybe for people who didn't feel so good when watching the second part this part is going to be bad.I'm huge johnny depp fan, and whole that pirates story and feeling, so my report can't be taken for real.


  7. Really nice looking website. I was searching for that "Old paper" background for quite some time, and now i see you found one really great looking. Thanks for that :).Looks like IE doesn't display your page correct so u might try to work on that. validator.w3.org shows some errors on your HTML 4.01 transitional encoding, i would suggest you to fix that.Also i suggest that you use xHTML strict encoding. It's great for getting rid of most Quirks modes both in IE and Firefox, and your Google rank is higher when using that encoding.GFX on website is really nice, and shows that you have sense for design.


  8. I heard of a floppy install for XP a while back. I had to do a search but there is a fair amount of info out there.Check out this article on Installing XP with a floppy disk.


    that is about Boot floppy disk to install windows XP. Older computers didn't have ability to reckognize CD-Rom as boot device, so u needed to make boot floppy disk, that would than after boot have the ability to boot from CD-Rom. I think that problem from the first topic was installing windows without any CD-Rom device. Although i'm not sure what author wanted to say...

  9. I posted this couse i'm sure that Xisto forum quality doesn't depend only beacouse of the hosting feature that same provides. Also there is several pros and cons for this idea. If you look at the number 3 posts a day, i guess it's most average number of posts on Xisto forums. Most members that are new rush on to gather as much credits as possible to ensure themselves a default hosting package. Some of the forums that are most useful in achieving that goal is Introduction, an My Theories Possibilities and Inovations.@SM you speak of Xisto forums, only reason for quality is credits-hosting system, but i think that there are plenty members here who are just that- members and who really don't care about hosting credits, as they are not hosted. Also lot's of members use Xisto as start for serious website, and soon as they exceed limit, their website is popular enough to sustain hosting expenses on its own.Also some members are not regular on forums, couse they gather enough credits for maybe month or two, and then set their alarm clock when they expire, and then get back on forums, looking for topics and answering mostly outdated subjects in order to gather their credits supply for another few months.Maybe 3 posts a day limit, and maybe few days transfer if you really can't get it, could force member to be more regular on forums. And that is quite important factor too.But like i said, i'm maybe wrong about this, and most hosted users here would agree, but this community is not only built of hosted members who strive for credits, but also from regular members who just enjoy high quality of moderation of the forums.Note:You wouldn't be limited to POST only 3 posts, you could a same post 10 or 20 or 100 posts a day, it's just that 3 posts would be counted in for credits, as it is average of most members on forums. Maybe even 5 posts a day. But you could still write another 10 posts if you feel like, it's just that it wouldn't be counted for credits.And i really don't think that your analogy with water holds water on this matter. Like i noted above, you could post how much you want, but you would only be credite for 3 posts.


  10. I think that i'm misinterpreted, probably beacouse i didn't explain right.I'm not suggesting that posts are limited to 3 credits, but that only 3 posts a day can get creditsEDIT: I'm rereading my posts, and still don't get how should i put it, so that it can be understood. So i repeat, it's not about limiting POST CREDITs to 3, but limiting NUMBER of POSTS that can get CREDITS in one day, at 3 POSTS.Um.. Is that right now


  11. are you serious? personally i don't like it. :) what's your reason? i have to hear your reason first. :)

    reason for limiting number of "sponsored" posts is to improve post quality even more. community is great, and that, but posts that deserve credits should be really awesome. Also limiting credit sponsored posts would maybe force users to write couple of longer posts a month, that have some greater value, like tutorials and stuff, which would then score some good credits for them

  12. Here's my 2 cents..

     

    Circle is geometry construct, like dot, line triangle, and square, cube, sphere. When you look at geometry (Euclid 3D space) first you start with dot. Dot is definition of 1 dimension. Then you add, 2 dimensional space by adding plane. Plane is defined by one dot and 1 line that doesn't lie on that dot. Imagine it like paper without thickness. If you have dot on 1 place, and line on another, and that dot and line have no crossings or don't lie on each other, when you put that paper so that line lies on the paper and that paper touches dot, you got 2d plane.

     

    Circle is 2 dimensional geometry construct, and can be drawn on that plane we got from line and a dot. It's defined by center and radius. if you define center as one dot and radius like one line of defined lenght eg 3cm, and you put one end of the line on dot, and rotate the other end of the line for 360°, trail which that end leaves is called a circle.

     

    Most interesting number which you get from a circle is called Pi. (link)

     

    Pi or π is a mathematical constant and a transcendental (and therefore irrational) real number, approximately equal to 3.14159, which is the ratio of a circle's circumference to its diameter in Euclidean geometry, and has many uses in mathematics, physics, and engineering. It is also known as Archimedes' constant (not to be confused with an Archimedes number) and as Ludolph's number.

    Pi is used to calculate circles area.

     

    Maybe you are confused with circles, beacouse you don't understand that number, and for further reading on mathematics, i would suggest you that you read about it, so that you don't start with some "crazy" inventions of your own :)

     

    As for the 3d space, maybe later... :)

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.