No matter what value I give for crc32() I end up with an integer that could be stored in a signed int column in a mysql database. Is there a way to find out if this would always be the case? Celia
Is it possible to connect to mysql on another computer, in a different state? Is this secure? (could somebody intercept my username/password and gain access to my database?) Is it fast? Running a few small select statements and about 2 update/inserts? Most webhosts run php in safe mode, if it...
"parse error, unexpected $" but there's no dollar sign there! (it's the end of the page)
Now I've had this error before and I solved it eventually. The trouble is I forget how I solved it, I just remember I had a hell of a time doing it. And this time I have a 1300 line program! I...
$db = mysql_connect(hostname,username,password);
mysql_select_db(db_name,$db);
produces the error "invalid mysql link-identifer" or something to that tune. The same happens in mysql_query("query",$db);
All the params were correct, and I'm certain itts connecting because it...
Ok I find this handy little function that returns the difference in minutes from GMT. I run it tho and I get 420, i.e 7 hours. I'm 8 hours off GMT (PST). So I change the time zone on my computer to GMT and run the program again. -60. Wierd, so I just need to add 60 to it for some reason. I set...
Can you create a CGI application in VB? i.e is it possible to create a visual basic script and submit an html form to it just like you would to a perl/php cgi script? Celia
my simple script:
loadVariablesNum("url-is-here", 0);
//create arrays
cName = clName.split(",");
cColor = clColor.split(",");
xCoord = xlCoord.split(",");
yCoord = ylCoord.split(",");
Ok if I test this movie the arrays cName, cColor etc are...
I have a function eval_code. In the function I have
eval($eval_str);
in $eval_str I have:
$title[] = $row['title'];
I want the array $title to be availiable to a required file later on in the page.
i.e.
eval_code($php_doc)
require('foo');
where foo uses the array $title. If you followed...
Ok see if you can understand this:
$main_page_data is mixed html/php code like your average php webpage.
//notice these use the exact same pattern...
preg_match_all ("/<\?(.+?)\?>/s",$main_page_data,$matches);
preg_replace ("/<\?(.+?)\?>/s",'<BREAK>',$main_page_data)...
When you are retrieving web pages with the lwp module is it possible to change the ip address given to those web pages? I know you can set the user agent and the referer but can you set the REMOTE_ADDR variable or go through a proxy or something to mask it? I want to make a script to automate...
In English Please:) Heard an awful lot about xml but not sure what on earth it is. Kinda have the impression that it lets you make custom markup tags but not sure what use that is... Celia
I'm trying to match all <input> where type=text and then extract the name and value params. Because type, name, and value could be in any order I used the ? quantifier on the value and text params. Unfortuantly this also prevents the matched values from being stored in the $1,$2,$3...
This file is an attempt to find the unique images in a directory and write them to a new directory. Unfortuantly one of its problems is that the output file is a garbled thing that is not readable as a jpg. How can I fix that?
my $skip = 0; #must be set to zero intially
my @all_files =...
I have 6000 images, most of which I beleive to be duplicates. I wish to sort all the unique images into a new directory using perl. Some unique images have the same file size so they cannot be sorted by size. I wrote this program to do the job, but it only finds two unique images and I know...
Heres the problem:
open (IMAGE, "image.jpg") or die "Cannot open file image.jpg: $!";
binmode IMAGE;
read( IMAGE, $doc, 10000 );
close IMAGE;
it seems to read in okay. Now I try to create that image in a new directory:
open(IMAGE...
That error is beginning to get on my nerves. I just can't figure out what I messed up. Hoping you folks will be able to tell me.
statement:
$table = 'tourney';
my $sth = $dbh->prepare("INSERT INTO $table VALUES (?,?,?,?,?,?)") or die "Couldn't prepare statement: " ...
I need to write a program that can take a plain text file and turn it into a encyrpted adobe pdf and microsoft reader file. It will have to have its fonts changed, a table of contents added with all the sections automatically indexed, etc. So I would basically need a program that can, on a win...
I need to write a program that can take a plain text file and turn it into a encyrpted adobe pdf and microsoft reader file. It will have to have its fonts changed, a table of contents added with all the sections automatically indexed, etc. So I would basically need a program that can, on a win...
I need to write a program that can take a plain text file and turn it into a encyrpted adobe pdf and microsoft reader file. It will have to have its fonts changed, a table of contents added with all the sections automatically indexed, etc. So I would basically need a program that can, on a win...
This has got me baffled, I'm trying to match this:
<TH>Jets
<TD>9<TD>$170<TD>703328<TD>
320
And the regexp I'm using to do it is...
/\<TH\>Jets\n\<TD\>\d+\<TD\>\$(\d+)\<TD\>(\d+)\<TD\>\n(\d+)/i
the above regexp is all on one line btw.
Maybe I'm jsut too tired to spot the error, but I've...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.