skym
-
Posts
253 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by 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.
-
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
-
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".
-
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...
-
<style type="text/css">a:link {color: #FF0000}a:visited {color: #00FF00}a:hover {color: # FF00FF}a:active {color: #0000FF}</style>
-
-
try getElementById("b1") instead of getElementByID["b1"]
-
The reason for that is http://php.net/register_globals It's best to have it disabled.
-
Yes, it's the same thing. The browser will always look again for the image file, just like it would have another filename.
-
Try this:<img src="image.jpg?anything=<?php echo rand(1,1000); ?>">
-
$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++; }
-
list-style:circle outside url(img/littleneutron.png);Try replacing 'outside' with 'inside'.
-
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;
-
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.
-
You need session_start() before using the $_SESSION:admincp.php<?phpsession_start();if (isset($_SESSION['cpacaccess']))....
-
Forgot to mention yesterday, might help to use mysql_error() and see the sql error:$result = mysql_query("SELECT * FROM RuneFr_Quete WHERE member=1 ORDER BY quete") or die('SQL error: '.mysql_error());
-
Very probably a query error. What type is `member`? If it's not an integer type, trySELECT * FROM RuneFr_Quete WHERE member='1' ORDER BY quete
-
<a href=”http://blogger-tricks.blogspot.com/2006/10/this-is-individual-post-not-main-page.html/#target">Should be like file.html#targetwithout any slash there.
-
Did not test it, but it will probably work:
<textarea rows="10" cols="30" ID="Textarea1" NAME="Textarea1" onclick="this.innerHTML='';">Type the text here</textarea>
-
<script language="javascript">function changeTxt(obj){where = document.getElementById("here");what = obj.options[obj.selectedIndex].text;where.innerHTML = what;}</script><table border="0"><tr><td><select name="name" onchange="changeTxt(this)"><option value="0"></option><option value="1">some text 1</option><option value="2">some text 2</option><option value="3">some text 3</option></select></td><td><div id="here"></div></td></tr></table>
-
http://dev.mysql.com/doc/refman/4.1/en/sho...ble-status.htmlScroll down and see the Bahadir Malkoc's script (December 5 2005).
-
<?php$link = mysql_connect("localhost","***","***");$sql = "SHOW COLUMNS FROM yourdb.yourtable";$result = mysql_query($sql,$link);while ($row = mysql_fetch_assoc($result)) {echo "<pre>";print_r($row);echo "</pre>";}echo "Number of columns: ".mysql_num_rows($result);mysql_close($link);?>
http://dev.mysql.com/doc/refman/4.1/en/show-columns.htmlhttp://dev.mysql.com/doc/refman/4.1/en/show.html
-
Secure Email
in PHP
What did not work?And if you know what if() is, if you know what $_REQUEST[] is, if you know what isset() is, if you know what the form action is, and you can easily follow the code.Something tells me that really did not work. -
user/pass incorrect probably?...
Auto Linebreaks?
in PHP
Posted
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.