231 Posted Topics
Re: Check out [URL="http://www.howtoforge.com/recover-deleted-files-with-scalpel"]Scalpel[/URL] | |
Re: Pretty much any CD/DVD burner will work with a Linux system. You should just double check that there is a linux-supported driver for it. | |
Re: Yes it's possible. Although it may take some time to code (and render) each graph. I'd look at [URL="fusioncharts.com"]fusioncharts[/URL]. They provide a free trial which have the best PHP-driven charts. Alternatively, if you can generate images of these graphs (or if they don't need to be dynamic) then simply display … | |
Re: You have a couple of options here. 1. [URL="http://www.cygwin.com/"]Cygwin[/URL] - a collection of tools which provide a Linux look and feel environment for Windows. This runs on top of windows as a linux OS. (I'd probably start with this). 2. [URL="http://www.virtualbox.org/"]VirtualBox[/URL] - run a number of virtual machines inside windows. … | |
Re: 1. I use Gnome, but KDE is just as good. I personally don't prefer one over the other. 2. The partitioning software on disk will work fine. Just make sure you know a bit about the partitioning formats to use for linux and windows as some provide more benefits over … | |
![]() | Re: The $_SERVER superglobals provide a load of useful information. [CODE] $ip = $_SERVER['REMOTE_ADDR']; // The IP address from which the user is viewing the current page. $time = $_SERVER['REQUEST_TIME']; // The timestamp of the start of the request. $port = $_SERVER['REMOTE_PORT']; // The port being used on the user's machine … ![]() |
Re: I presume you're using a wireless card for the connection? If so, make sure that Ubuntu has the driver support for you wireless card. I remember being stuck for days with this problem... You should check this with your wireless card manufacturer website | |
Re: First of all, you can't 'convert' or 'rewrite' this as php. Why don't you just put it all in one PHP function? [CODE] <?php function stuff() { ?> //html and stuff here <?php } ?> [/CODE] | |
Re: Either: 1 - PHP isn't installed correctly: create a script like this, save it as info.php or something and test it in the same way you have been doing [CODE]<?php phpinfo(); ?>[/CODE] 2 - You haven't placed <?php ?> tags around your script. 3 - Could be some other content-type … | |
Re: You could start with a really simple distro and hack/mod the crap out of it! A good starting place is [URL="http://www.linuxfromscratch.org/"]Linux From Scratch [/URL] Another good distro could be [URL="http://www.debian.org/CD/netinst/"]Debian netinst[/URL] | |
Re: Have you tried replacing the underscores with its html entity code? In this case underscore is: [CODE]& # 9 5 ;[/CODE] (without the spaces) See [URL="http://www.quackit.com/html/html_special_characters.cfm"]here[/URL] Might be worth a try... | |
Re: [I]"the return() statement immediately ends execution of the current function"[/I]. See [URL="http://php.net/manual/en/function.return.php"]here[/URL] Therefore, the first line of code being executed in your function is returning the session variable and returning back to the area of code that the function was originally called from. | |
Re: It all depends, but Perl would be a suitable programming language to knock up a quick and dirty script that will pattern match and insert into your database. See [URL="http://www.developingwebs.net/perl/file_handling.php"]here[/URL] for opening file handles: See [URL="http://www.cs.tut.fi/~jkorpela/perl/regexp.html"]here[/URL] for regular expressions - (Formulate these in order to match the strings you are … | |
Re: Does that command run in your terminal? If it does then all you need to do is to to edit crontab and add the format to schedule the backup. How often do you want to run the command? [URL="http://adminschoice.com/crontab-quick-reference"]See here[/URL] for the format to use for scheduling tasks in crontab | |
Re: Well an .exe is an executable built for the windows environment, so getting it to run on any linux box isn't always possible. However, there is some emulation software you can try. The most well known is [URL="https://help.ubuntu.com/community/Wine"]Wine[/URL]: Wine is a program that offers a compatibility layer allowing Linux users … | |
Re: The thumbnails you're creating don't have the correct permissions to be written/read from your web server. Are you using a local server or a web hosting service? | |
Re: It all depends on the application. Just to name a few testing procedures: - CSS/HTML validation - Performance testing - Link validation - Cross-browser compatibility Here's a link that provides tools you can use to do this: [url]http://www.graphicrating.com/2009/08/11/15-tools-for-testing-your-website/[/url] | |
Re: g++ is a C compiler. Use this command through your terminal to install it. [CODE]sudo apt-get install build-essential[/CODE] | |
Re: It looks like your DNS configuration may need changing as your URL isn't being resolved across the LAN. Check your named.conf file and set up your forward and reverse lookup zones. [URL="http://www.linuxquestions.org/questions/linux-server-73/configure-dns-server-to-point-correct-ip-to-your-website-842851/"]This link[/URL] seems to answer what you're asking :) | |
![]() | Re: I'm not sure, but maybe try using if ($choice == 'yes') ![]() |
Hi all, Does anyone know of any software/classes that can be used to generate images of network diagrams? We are using a tool called Graphviz using Perl at the moment but the diagrams are looking a little bit dated! The networks will be pretty small, consisting of 3 or 4 … | |
Re: I can't give a specific solution based on what you've provided. What are you using to generate your graph? Is your character encoding set to UTF-8? Have a look into 'Fusion Charts' which is pretty good for graphing in PHP and AJAX. | |
Re: I'll have a look into this tomorrow, but have a read here in the mean time: [url]https://help.ubuntu.com/community/MountingWindowsPartitions[/url] | |
Re: Your php.ini settings are probably incorrect. You should use include('dbconnect.php'); rather than include=dbconnect.php; | |
Re: It all depends. What are your requirements? What do you want to achieve? | |
Re: If your using a virtual machine, I'd use [URL="http://www.virtualbox.org/"]Orcale VirtualBox[/URL] instead of VMWare - I think it's far better! | |
Re: have you tried [CODE]lsusb[/CODE] or [CODE]fdisk -l[/CODE] Not sure if that will give you the required information though... | |
Re: You can use the [URL="http://php.net/manual/en/function.isset.php"]isset()[/URL] function in XXX2.php to check which boxes were or were not selected. in XXX2.php [CODE] //first check the submit was pressed if (isset($_POST['s'])) { //then check if a checkbox was selected. if (isset($_POST['name-of-checkbox1'])) { echo "checkbox 1 was selected"; // execute database action here } … | |
Hi all, I'm relatively new to JS and I have an issue which I can't seem to get my head around... I have a perl script which iterates through an array and populates a table with its values. Within the created table I have a link in each row which … | |
Re: Firstly, what Linux distro are you using? And in what format is the source in? rpm/deb/tar? | |
Re: Isn't ereg_replace() deprecated now? Take a look into using [URL="http://de.php.net/manual/en/function.preg-quote.php"]preg_quote()[/URL] instead. Here's an example: [CODE]<?php // In this example, preg_quote($word) is used to keep the // asterisks from having special meaning to the regular // expression. $textbody = "This book is *very* difficult to find."; $word = "*very*"; $textbody = … | |
Re: you probably don't have vim, as this is an extension of Vi (although essentially it is the same thing). try this to get vim (if you're using debian os): [CODE]sudo apt-get install vim[/CODE] I have a great [URL="http://www2.cs.uidaho.edu/~rinker/ed03.pdf"]cheat sheet for vi[/URL], but it will take practice to learn how to … | |
Re: Hi there, Although I've never done drawing using PHP, I've previously carried out research on the available graphing software around for PHP. I am currently using one called [URL="http://www.fusioncharts.com/"]FusionCharts[/URL] which I feel is one of the best out there. You can plot data using XML, JSON or straight out of … | |
Re: Shama, You'll need to be a bit more specific. What Linux are you running? What command are you issuing to get that error? I guess you're using Ubuntu? You could try [CODE]sudo apt-get update // This will update your repository[/CODE] and then [CODE]sudo apt-get install < name of package >[/CODE] | |
Re: This is a multi-dimensional array. The parent index (ddc) is an associative array and the child (price) is also associative. This would have a single value assigned to it: [CODE]$_SESSION['ddc']['price'] = "144";[/CODE] Note: Unlike a real PHP array, $_SESSION keys at the root level must be valid variable names. [CODE]<?php … ![]() | |
Re: Okay, it's good that you're interested! Let's take an example: You have a file which is 1Gb in size. You know that opening the file in the shell (e.g using 'cat') is going to be inefficient, as you'll have to scroll through a lot of lines to get to where … | |
Re: I can help, but I'm not doing all your work for you! Do some coding, then post a more specific question that we can actually help you with. | |
Re: [URL="http://evolt.org/php_login_script_with_remember_me_feature?from=100&comments_per_page=50"]This[/URL] is one I've used before, with the 'remember me' feature Depending on what your site is for, you may want to change the md5 hashing bit for something a bit more solid | |
Re: This is most likely because you're echo-ing out stuff before you're header() statement. Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include(), or … | |
Re: Okay, the error your getting means that fopen can't open the file you're requesting because the permissions of that file (or directory) won't allow it. If you're server is on Linux: From the shell cd to the directory where that file resides, and issue [CODE]chmod 777 *[/CODE] This will give … | |
Re: Yes this is possible. But the solution will depend on whether the $from variable always starts with INTERVAL, or whether it changes... If it is always going to start with INTERVAL, then you could use a simple substr() function to cut off the first word. This simply says to print … | |
Hi all, I have a simple problem. I have this javascript code which I'm using for collapsible tables: [CODE] <html> <head> <script type="text/javascript"> function getItem(id) { var itm = false; if(document.getElementById) { itm = document.getElementById(id); } else if(document.all) { itm = document.all[id]; } else if(document.layers) { itm = document.layers[id]; } … | |
Re: This might be a long shot, but try: [CODE]. configure[/CODE] instead of [CODE]./configure[/CODE] I had a similar hiccup with a recent version of Ubuntu | |
Re: Are you sure you're wanting to update an existing record? Or are you trying to add a brand new record (in which case you want an 'INSERT INTO' statement rather than an 'UPDATE'). I can't seem to see any immediate errors here... Do you get a mysql error printed to … | |
Re: [CODE] <?php $values = array(1,1,1,1,2); $i=0; $x=1; while(isset($values[$i])) { if($values[$i] == 1) //you could use a strcmp or regex here instead { $number_of_matches = '$count'."$x"; $number = $values[$i]; echo "$number_of_matches = $number <br>"; $x++; } $i++; } ?> [/CODE] | |
Re: Hi there, Have a look at this: This is just an example of how you can inter-mingle php and js. The function is actually PHP, but what's contained inside of it is JS [CODE] <?php Redirect("page.html"); ?> /** * JavaScript Redirect Function - Redirects the user should the result data … | |
Re: If it's books you want, I'd recommend PHP and MySQL Web Development by Luke Welling and Laura Thomson (try and get the 3rd edition). I managed to pick up a 2nd hand copy for £5 on Amazon. Otherwise tiztag and w3schools are good places to start. | |
Re: Could you please, please post your code in (CODE) tags in future. In your second script, your input fields aren't enclosed in `<form>` tags. Here, you need to define the form action (post the form to the name of the file you want to process the information) and secondly define … | |
Re: You have no html in that code!... [CODE] <?php // ---- your code ---- // ?> <html> <table> <tr> <td>name</td> <td>email</td> <td>message</td> </tr> <tr> <td><?php ucwords($_POST['name']); ?></td> <td><?php ucwords($email); ?></td> <td><?php $_POST['message']; ?></td> </tr> </table> </html> [/CODE] tr creates a new row, td creates a new cell | |
Re: Hey, if you want a visual counter look here: [url]http://www.hashemian.com/tools/javascript-countdown.htm[/url] A countdown timer is something that needs to be done client-side e.g. in javascript. This is one I've used previously. Once you get it counting down from 60 seconds post your code and we can implement the redirect. |
The End.