I have a little problem ... my menu.php does not work and i dunno why heres my index: <html> <?php function writeOut($pageName) { $buffer = fopen($pageName, r); $data = fread($buffer, filesize($pageName)); fclose($buffer); echo($data); } writeOut('head.html'); echo('<body><div id="top">'); writeOut('top.html'); echo('</div>'); /* in case of anomalies ob_start(); include 'menu.php'; $result = ob_get_clean(); */ include 'menu.php'; echo(''); // reserved for content echo(''); writeOut('right.html'); echo('</body>'); ?> </html> and my menu.php: <?php /* Example in menu_skuska.html */ $buffer = ''; function addMenuHeader($header_name,$id,$distance_from_top,$distance_from_left) { $buffer = $buffer + '<div style="position:absolute; top:' + $distance_from_top + '; left:' + $distance_from_left + ';">'; $buffer = $buffer + '<p onClick="toggleMenu(' …

Member Avatar
Member Avatar
+0 forum 5

So this is my code: <?php // Example in menu_skuska.html $buffer = ''; function addMenuHeader($header_name,$id,$distance_from_top,$distance_from_left) { global $buffer; $buffer = $buffer + '<div style="position:absolute; top:' + $distance_from_top + '; left:' + $distance_from_left + ';">'; $buffer = $buffer + '<p onClick="toggleMenu(' + $id + ')" id="menu_header">' + $header_name + '</p>'; $buffer = $buffer + '<div id="' + $id + '" style="visibility:hidden;">'; } function addMenuItem($item_name,$link) { global $buffer; $buffer = $buffer + '<a href="' + $link + '">' + $item_name + '</a><br>'; } function finalizeMenu() { global $buffer; $buffer = $buffer + '</div></div>'; } function printMenu() { global $buffer; echo($buffer); } addMenuHeader('Click …

Member Avatar
Member Avatar
+0 forum 1

Help me to choose between Back|Track 5 and BlackBuntu pls... what are the differences

Member Avatar
Member Avatar
+0 forum 1

Hi everybody, can someone help me pls finding a goot RATing tutorial for a beginner??? I wanna code a rat in python but i have no sources.

Member Avatar
Member Avatar
-2 forum 2

[CODE] from tkinter import * ... program ... frame = Frame(width=640,height=480) frame.pack() ...program... #now to change the frame size frame.configure(width=800) [/CODE] doesn`t work ... I tryed from.config() too but it doesnt work

Member Avatar
Member Avatar
+0 forum 1

My online chat uses a php script. There`s the part I need to correct [CODE][COLOR="Red"][COLOR="red"]if(isset($_SESSION['name']) && $_POST['text'] != ""){ $search = ""; $aname = $_SESSION['name']; function find_value($input) { $handle = fopen("online.html", "r"); if ($handle) { while (!feof($handle)) { $entry_array = explode(" ",fgets($handle)); if ($entry_array[0] == $input) { $search = $entry_array[0]; } } fclose($handle); } RETURN NULL; } find_value($aname); if($search == "") { $handle = fopen("online.html",'r'); $contents = fread($handle,filesize("online.html")); fclose($handle); $handle = fopen("online.html",'w'); fwrite($handle,$contents." <BR> ".$_SESSION['name']); fclose($handle); }[/COLOR][/COLOR][/CODE] My problem is, so when somebody submits a message, his name is written into online.html as many times, as he writes something. But …

Member Avatar
Member Avatar
+0 forum 3

[CODE]tomashqooo@Tomashqooo:~$ python Python/tcrack.py File "Python/tcrack.py", line 86 ostring2 = ostring2' -c 'station' mon0' ^ SyntaxError: invalid syntax[/CODE] That`s my error message when ostring2 and station are string variabiles and ' -c ' and ' mon0' is text. Please help me what`s the problem here???

Member Avatar
Member Avatar
+0 forum 2

Hi guyz. I need some help. I don`t kno what to do now. I updated my blackbuntu and my bb theme has been lost. What to do now?

Member Avatar
+0 forum 0

The End.