23 Solved Topics

Remove Filter
Member Avatar for nonshatter

All, I have an issue with my web server, relatively minor but something that has been bugging me: I have two systems, both running the same spec OS, software etc... I use one as a dev server and the other as a production server. The webpage I am rendering on …

Member Avatar for nonshatter
0
120
Member Avatar for nonshatter

Hi there, I am in the process of implementing draggable/droppable interaction using the JQuery UI. This is something that I have very little experience with so please be gentle. I can drag and drop using <tr> elements which looks great, but I need to get the <tr> attributes (perl variables) …

Member Avatar for nonshatter
0
114
Member Avatar for nonshatter

All, I have a simple question. What is the standard procedure for retrieving form values via POST method in a web form? Perl can be extremely awkward for web programming, I'd normally use something else, but in this case I need to use Perl for the CPAN module. Anyway, back …

Member Avatar for nonshatter
0
477
Member Avatar for nonshatter

I have added a png image to a table in the database as a BLOB. Adding the image into the database is trivial. However, being able to display the BLOB back to the .png image format is bewildering me. Examples are hard to come by... How to display the BLOB …

Member Avatar for roswell1329
0
610
Member Avatar for nonshatter

All, I have been trying to debug this problem all weekend but I haven't been able to get any closer to the solution... I have just upgraded Mysql to 5.1 from 4.1 on a Red Hat 4 box. Everything is fine. I can connect to the database using the shell, …

Member Avatar for nonshatter
1
732
Member Avatar for nonshatter

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 …

Member Avatar for nonshatter
0
146
Member Avatar for nonshatter

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]; } …

Member Avatar for Airshow
0
147
Member Avatar for nonshatter

Hi all, How can I execute an external program (wget) on a linux box? I assume I should be using exec() or something similar. The command I'm trying to execute is: [CODE]wget -p 'x.x.x.x/inventory.ssi?mag_0=1&mag_1=1'[/CODE] Which returns the html page of inventory. I am then parsing the file using DOMDocument to …

Member Avatar for nonshatter
0
134
Member Avatar for nonshatter

Hi all, I have virtually no knowledge of C, but I have a problem with one of my scripts. It runs fine on a 64-bit Linux machine, yet it gives me a seg fault when run on 32-bit linux. gdb tells me that the seg fault occurs on line 314. …

Member Avatar for mitrmkar
0
116
Member Avatar for nonshatter

Hi all, I'm relatively new to Perl and particularly new to regular expressions. This is really simple script I've just mocked up. All it does is to take the input string and check if it's in the correct format or not. Here are some examples of correct format (will always …

Member Avatar for k_manimuthu
0
197
Member Avatar for nonshatter

Hi all, I have a fairly simple problem. I have an array which prints out the following text: [CODE]1 Full, Gen. 3 TMSWK2D 9 Poor write quality 2 Full, Gen. 1 TMSWK2C Read Only, Clean Tape[/CODE] The problem is after some of the lines of text, there are empty values, …

Member Avatar for mschroeder
0
138
Member Avatar for nonshatter

Hi all, Just installed PHP 5.2.6 on SLES11. I have editted php.ini to try and turn error reporting on, but it's not turning on (I have restarted apache2). At the moment, I'm using php in cli to debug which is getting a bit stale... Here's a section of my php.ini …

Member Avatar for nonshatter
0
210
Member Avatar for nonshatter

If I have a table sales: sales {sellerid, buyerid} I'm trying to determine the buyers favourite seller... So I need to return the most frequent sellerid. I've used this query to find out the total number of times the buyer has bought something from any seller: [CODE]$countseller = mysql_query("SELECT count(sellerid) …

Member Avatar for nonshatter
0
96
Member Avatar for nonshatter

Hi all, I have a been developing an Online auction website using PHP and Mysql for the last few weeks. I have implemented everything including the 'bidding', 'buy it now' options of the auction etc. I don't know much about AJAX to be honest, but I think it is the …

Member Avatar for fxm
0
4K
Member Avatar for nonshatter

Hi all, I have just made a search bar for a site but I am having trouble trying to return the number of results that are found. E.g. I want it to print "Your search terms returned 'xx' results" after each search. This is my code: [CODE] <?php include ('db.php'); …

Member Avatar for Virtualbase
0
2K
Member Avatar for nonshatter

Hey, I have been trying to devise a way to insert a formatted PHP date() variable ($expires) into a publicly available javascript countdown clock. Obviously, this is made difficult because PHP is server-side and Javascript is client-side. This first piece of code is me adding a number of days to …

Member Avatar for BeachyUK
0
238
Member Avatar for nonshatter

Hey guys, I am really close with this but can't quite get it right... All I am trying to do is retrieve the users details based on their 'u_id' and display them. [CODE] <?php require ('dbconnect.php'); $user = $_SESSION['username']; //Get the users username $requestuid = mysql_query("SELECT u_id FROM user_usr WHERE …

Member Avatar for nonshatter
0
83
Member Avatar for nonshatter

Hey guys, I have reached my wits end with this..! This code works on two of the servers that I have tested, but doesn't want to work on the third server that I need it on! It displays fine, but when the form data is posted back itself to be …

Member Avatar for nonshatter
0
160
Member Avatar for nonshatter

Hey guys, I have been moving and testing my scripts on a different web server, but I am not getting the same results on both computers. Here is the code: [CODE] <?php session_start(); //THIS FUNCTION VALIDATES INPUT function VerifyForm(&$values, &$errors) { if (strlen($values['firstname']) == 0) { $errors['firstname'] = 'Please Enter …

Member Avatar for nonshatter
0
67
Member Avatar for nonshatter

Hey I hope someone can help me here because I am pretty stumped on this one... All I'm trying to do is to update my user_usr table with the submitted form data. It was working perfectly the other day so I must have changed something somewhere. The code and the …

Member Avatar for nonshatter
0
175
Member Avatar for nonshatter

Hey guys, this is probably a really simple question for you experts so I hope you can help..! Basically I have three separate html fields for the user's date of birth: "year" "month" and "date" All I'm trying to do is to take these three from the form and insert …

Member Avatar for nonshatter
0
112
Member Avatar for nonshatter

Hi, I just have a quick/probably dumb question about this vulnerability... "OpenSSH before 5.1 sets the SO_REUSEADDR socket option when the X11UseLocalhost configuration setting is disabled, which allows local users on some platforms to hijack the X11 forwarding port via a bind to a single IP address, as demonstrated on …

Member Avatar for nonshatter
0
161
Member Avatar for nonshatter

Before I begin i'm sorry if this is a noobish question. Basically I'm trying to import a 'forum.sql' file into mysql so that I can access and manipulate it through a Java servlet. The path to the sql dump file is /home/floyd/Desktop/forum/forum.sql so i open a terminal window, cd into …

Member Avatar for mwasif
0
269

The End.