Jump to content


  • Posts

  • Joined

  • Last visited

About skym

  • Birthday 08/21/1980

Contact Methods

  • Website URL
  • ICQ

Profile Information

  • Location
    Oradea, Romania

skym's Achievements


Member (2/7)



  1. skym

    Auto Linebreaks?

    nl2br() actually adds <br /> to \r\n (or to \n or to \r), it does not replace them. When counting the length of the resulting string, it will always be 6 characters longer.
  2. skym


    Hmm, looks like that Snoopy appends the port to the host in the headers he is sending: GET / HTTP/1.0 User-Agent: Snoopy v1.2.3 Host: laptops.lookup.nl:80 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Changing Host: laptops.lookup.nl:80 to Host: laptops.lookup.nl seems to solve the problem.
  3. skym


    Anybody familiar with Snoopy? http://snoopy.sourceforge.net/I'm using Snoopy v1.2.3 for a month and have recently come to a problem with a particular site. When trying to fetch http://laptops.lookup.nl/, all I get is the first few rows, just exactly a javascript code that is in the beginning of the page. At first I have thought the problem might be about code (Urchin, Google Analytics), but a few other subdomains work very well with the same JS code at the beginning.Then realized that the fetch result I get is the source you get when accessing http://lookup.nl/ (the page will show blank, but if you check the source you can see the Urchin code). http://lookup.nl/ is fetched instead of http://laptops.lookup.nl/? The problem persists with http://laptops.lookup.nl/ and other subdomains, and everything works with some subdomains (like http://computeronderwerpen.lookup.nl/) and with http://www.lookup.nl/.ALL pages are read correctly when using fopen(), file_get_contents(), fsockopen() or file(), used separately in a testing script. Snoopy is using fsockopen().Thanks
  4. You mean the logo? The src for the logo is "edesigner/edesignerlogo.jpg", change it to "edesignerlogo.jpg", since it's in the same folder as the HTML file. If you want it relative to the root of the web server, put a slash at the beginning "/edesigner/edesignerlogo.jpg".
  5. I had a similar problem long ago, when experimenting a CMS. If for some reason you are replacing all spaces with and everything looks normal in the textarea, the words will not wrap. For the browser it's still just one long word. Hello world, how are you today...
  6. <style type="text/css">a:link {color: #FF0000}a:visited {color: #00FF00}a:hover {color: # FF00FF}a:active {color: #0000FF}</style>
  7. skym

    PHP Form

    Single or double quotes, doesn't matter.mihalism is right, you need the underscore in the php part, but it is not necessary in the html, php will automatically convert spaces to underscores.Also don't forget to specify the method in the form tag (it is GET by default).
  8. try getElementById("b1") instead of getElementByID["b1"]
  9. The reason for that is http://php.net/register_globals It's best to have it disabled.
  10. Yes, it's the same thing. The browser will always look again for the image file, just like it would have another filename.
  11. Try this:<img src="image.jpg?anything=<?php echo rand(1,1000); ?>">
  12. $i doesn't depend on the length of $para in your code. It probably does seem to work if the notices are not displayed. Put the following code in the beginning of the script:ini_set('display_errors', 1);error_reporting(E_ALL);And try again. If you want the loop to stop right at the end of the array, you can use:...while($i < count($para)) { echo stripslashes($para[$i]); $i++; }
  13. skym

    Indenting lists

    list-style:circle outside url(img/littleneutron.png);Try replacing 'outside' with 'inside'.
  14. Does it work? From my point of view, the first while() loop outputs the first two paragraphs, $para[0] and $para[1] (instead of only the first) and the second while() loop will go forever throwing Undefined Index notices when $i exceeds the lenght of the $para array.There's also a limit parameter for the explode function, I think I would use something like: ...list($para1,$rest) = explode("<br>",stripslashes(nl2br($row['contentText'])),2);echo $para1.'<br>'; //if you want a <br> between the first paragraph and the imageecho $pic;echo $rest;
  15. Most probably an SQL error. Use$query = mysql_query("SELECT * FROM armies WHERE username=".$_SESSION['username']."") or die('SQL error: '.mysql_error());to see what the error is.
  • Create New...