231 Posted Topics
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 … |
The End.