I like making sites, and doing a little scripting.
- Interests
- Web programming, Scripting.
34 Posted Topics
Re: Cause hes not you! Why is IE crap? | |
Re: a simple java based language http://processing.org/. Check it out! | |
Re: ## iPhone Engineer vs Android Engineer ## Three iPhone engineers and three Android engineers are about to board a train to a computer conference. The Android engineers notice that the iPhone engineers bought only one ticket between them. The Android engineers ask the iPhone engineers how they plan on getting … | |
Hi, I am making a game I added a mouselistener in my game class but when i add a mouse listener in my class to make a custom button it doesn't work, so i had to make a variables mousePressed and variables for the mouse location mX and mY but … ![]() | |
Re: This happened to me before you must save all other programs where your page is being stored, like my documents, a browser ect... | |
Hello, how do i add an hour to time with DATE_ADD in DATE_FORMAT? Here is my code : <?php session_start(); include('includes/main_funcs.php'); $db = db(); $reponse = $db->query('SELECT name, message, DATE_FORMAT(time, '%H:%i') AS forTime FROM chat ORDER BY ID DESC LIMIT 0, 10'); while ($donnees = $reponse->fetch()) { echo'['.$donnees['forTime'].'] <strong>'.htmlspecialchars($donnees['name']).'</strong> : … | |
Hello guys, I have some questions : * how can i play a sound when the contentChat.php is new. * How can i make a loading message? > <script type="text/javascript"> > setInterval(function() { > $('#contentChat').load('contentChat.php'); > }, 1000); > </script> Thank you for your help! Sanchixx ![]() | |
I have a text file that i would like to display a part of so i use this code: <?php $page = file_get_contents('news.txt'); echo $page; ?> But in news.txt if i have this code `<?php echo"hello world!"; ?>` It will not display... when i look at the source code of … | |
I have a chat script but when you submit it without writing a message it submits the only the name of a person. How can i stop this? here is the code : <? session_start(); if(isset($_GET['logout'])){ $ip=$_SERVER['REMOTE_ADDR']; //Simple exit message $fp = fopen("log.html", 'a'); fwrite($fp, "<div class='msgln'><i>User ". $_SESSION['name'] ." … | |
Hello, I have a comment system that i wrote in PHP when i have used linebreak: `$area = wordwrap($area, 62,"<br>",1);` to auto break after 67 charectars so my comments don't go over a css box but when i write in uppercase; since the letters are larger it overflows. How can … ![]() | |
Is there a problem with this code? <div id="center"> <ul id="list-nav"> <li><a href="/" >Home</a></li> <li><a href="/articles">Articles</a></li> <li><a href="#">News</a></li> <li><a href="#">Projects</a></li> <li><a href="#">Contact</a></li> </ul> </div> ![]() | |
I would like to split a txt file that i use as a log in a comment system after each 10 comments how can i do that? Here is my code, Sorry for the bad indentation: <?php $act = $_POST['act']; if ($act == "post") { $name = $_POST['name']; $area = … ![]() | |
Hello, I made a first version of a comment system which can be viewed here: http://t-s.bugs3.com/index.php . Could I have some suggestions too inprove it and to know if theres anyway to hack it? If people like it i will make a site where you can download it. By the … | |
How can i reload `$file` with ajax or javascript each 5 seconds? <?php if ('' == file_get_contents($file)) { echo '<div id="shadow">Nobody has commented yet. Be the first? </div>'; } else { include($file); } ?> | |
I am makeing a comment system, i have a string where i remove html code: `$area = stripslashes(htmlspecialchars($area));` But i replace text sometimes by code, but it doesn't work because of the code above: $txtSmileys = array (':-)', ':-('); $imgSmileys = array ('<img src="smiley.jpg" />', '<img src="smiley-sad.jpg" />'); $text = … | |
| |
How can i make a jquery timer that each 3 seconds triggers a php action? | |
How can i replace :), :-),O.o or B) in my a file, that is used to display chat content, by an image. Here is my code: <? session_start(); if(isset($_GET['logout'])){ $ip=$_SERVER['REMOTE_ADDR']; //Simple exit message $fp = fopen("log.html", 'a'); fwrite($fp, "<div class='msgln'><i>User ". $_SESSION['name'] ." has left the chat session.</i><br></div>"); fwrite($fp, "<!-- … | |
I have a chat log in php how can i reload it each 3 seconds? | |
does anyone know how to add one to an integer with bash? I tried ++$i (name of the integer) | |
<html> <body> <?php $i=1; echo"$i"; if(up) ++$i; ?> </body> How can i add one to $i when a button is clicked? | |
I would like to put a scollbar in my page so that people would not see all the comments in my commentbox and would have to scroll down. I **do not** want to add an iframe or a textarea to do this. How can i do this? Sanchixx | |
how can i make this div unresizable in a smaller screen size: #space3 { display:inline margin:auto; font-family:Arial; text-align : left; font-size:16px; width:490px; background-color:#f2f2f2; border-bottom:0px; padding-bottom:0px; padding-top:0px; padding-left:20px; border-style:solid; border-width: 1px; border-top:1px; border-right:0px; right:345px; position:absolute; } #space3 a { -moz-border-radius: 5px 5px 0px 0px; -webkit-border-radius: 0px 0px 5px 5px; font-family:Arial; text-align … | |
How can i stop someone from posting when this form is empty? Here is my form: <form name="message" action="" > <center><input name="usermsg" type="text" id="usermsg" size="63" /> <input name="submitmsg" type="submit" id="submitmsg" value="Send" /></center> </form> Sanchixx | |
Re: Check out proccesing which is a java based languade : proccessing.org. | |
Whenever i make a site my css works fine in all major browsers exept IE. Is it the same for you? | |
Hello, I have a comment box that uses php her is the code: <?php $act = $_POST['act']; if($act == "post") { $name = $_POST ['name']; $area = $_POST ['area']; @$fp = fopen("comments.html", 'a'); if (!$fp) { //The file could not be opened echo "There was an error! Please try again … ![]() | |
How can i upload an image in my php comment box here it is: <?php $act = $_POST['act']; if($act == "post") { $name = $_POST ['name']; $area = $_POST ['area']; @$fp = fopen("comments.php", 'a'); if (!$fp) { //The file could not be opened echo "There was an error! Please try … ![]() | |
Hello, How can i replace a button by an image? Here is my code: <INPUT TYPE="butt <INPUT TYPE="button" NAME="insert" VALUE="Gras" onClick="this.form.area.value=this.form.area.value.concat('<b>Ajouter votre texte en gras ici</b>');">insert" Thank you, Sanchixx | |
Re: Here is a code to refresh a page each second: <html> <head> <script type="text/JavaScript"> <!-- function timedRefresh(timeoutPeriod) { setTimeout("location.reload(true);",timeoutPeriod); } // --> </script> </head> <body onload="JavaScript:timedRefresh(1000);"> </body> </html> Sanchixx | |
Hello, I am making a php comment box (without sql with a file where i post the comments) i'd like that the the time that the comment was posted be written along with the name of the person, but it gives me the current time, here is my php code. … |
The End.