Search:
Type: Posts; User: kidder
Search:
Search took 0.19 seconds.
-
#!c:/perl/bin/perl.exe
use strict;
use warnings;
my $boundary;
my $buffer;
my @form_data;
print "Content-Type: text/html\n\n";
-
Hi!
I'm writing my own CGI module. Now I'm writing a subroutine to process file uploads. The strange situation I encountered is, no matter what kind of file is uploaded (text/binary), I must set...
-
Hi. I have the following Perl script:
The database "test" actually does not exist. I was expecting the output to be:
But I got this:
-
Now, if I use Net::SMTP on Windows to send mails, most of the time it works. But there are rare occasions when an error is displayed. That error is saying that getpwuid isn't implemented. Since that...
-
Now, I've just been to apache.org. According to the mod_perl tutorial there, mod_perl will not check whether a loaded module has been changed or not. Only the main scripts are checked.
Now, I have...
-
Now, I've coded an algorithm to generate unique session ID. I have a big problem. How do I make sure that the session ID is being passed by the actual user instead of a bogus user who tries to hijack...
-
Now, if you "use strict" inside a script, all variables must be declared explicitly with "my" or "our". I have a little problem here. In my main script, I "require" another module. In the loaded...
-
Now, if you have an INIT subroutine defined in your Perl script, that subroutine will always be executed before anything else.
The problem I'm facing is that this subroutine won't work in modules....
-
And I really wonder why they specially created an installer for safe mode. It's as though the normal installer won't work in safe mode........
-
Sorry, but are you referring to the YabbSE forum that I posted in my previous post? If yes, I don't think they're running any zip or tar modules or progs.......
-
No I'm not referring to GD.
Ok, what I mean is: I create certain images in photoshop. Can I use Perl/PHP to bundle all the images up in ONE file? Just like install.php creating all scripts ON THE...
-
Now I've written a Perl script. I've created a file called "install.cgi". What happens is that this file will create additional scripts on the spot.
Can the same thing be done with images (meaning...
-
Even if I add the g it's still the same.....
-
Now, if I have the following:
$test = '"test1"test2"test3"';
while ($test =~ /("[a-zA-Z0-9]+")/g) {
print "$1\n";
}
If you run this script, you will see:
-
In what circumstances should I consider OOP? Only for large projects?
-
So is it right to say that deciding on procedural and OOP is only up to one's taste?
-
Now, in Perl or PHP, OOP is nothing more than having subroutines and variables separated into a different file (or module). I really don't see the point of declaring a package or class in Perl and...
-
Now, when is the best time to use OOP, and when must you avoid OOP?
I'm going to program a forum script using Perl. Since a forum is mainly data-driven, I've decided to use OOP. But the problem...
-
Now, look at vBulletin and UBB. They are charging the scripts so dearly, but yet there are so many people willng to pay for it.
But why? There are so many free ones on the internet. Why will they...
-
Yes I have, and now it works.
But what is causing the strange output?
-
Now, I want to create a custom "die" handler. So I have:
print "Content-Type: text/html\n\n";
$SIG{__DIE__} = sub {print "Custom error: $_[0]";};
require 'test2.pl';
In test2.pl, I have:...
-
That's brilliant! Thanks Musicman!
-
Yes I know that. The problem is I don't know how to separate normal text from text within the custom tags.
-
Now, basically I'm doing a guestbook, as well as trying a little BBS. The problem I'm facing is regular expressions. Why? Consider the following scenario:
Supposingly I want to remove extra line...
-
THANKS!
You are really my hero!
Now, I've got another little question. According to my PHP book, chdir switches your current working directory to whatever you specified within the parathesis....
|
Click Here to Expand Forum to Full Width
|