I can generate random numbers between 1 and 52 but i want 9 differing numbers my code is below how can i ensure that all nine numbers are differant
my $lower=1;
my $upper=52;
my $random1 = int(rand( $upper-$lower+1 ) ) + $lower;
my $random2 = int(rand( $upper-$lower+1 ) ) + $lower;
my...
I have preset "my $backcol = #262525; and my $colindex = 1;"
There is something wrong with my syntax but i cant work it out
MADAXE
foreach my $i (@data) {
chomp($i);
my ($TTITLE2,$NAME,$DATE,$POST) = split(/\|/,$i);
$backcol == #262525 if ($colindex eq 1);
$backcol ==...
Trying to increment a specific value on a specific line in an array by 1 everytime the page is viewed.
My code does not error but it does not work
MADAXE
foreach my $moddata2 (@data2) {
chomp $moddata2;
my ($TTITLE3,$COMMENT3,$NOPOSTS3,$PUSER3,$LOOKS3,$DATE3,$VUSER3,$ICON3,$tlink3) =...
I HAVE A PIECE OF CODE FOR READING A TEXT FILE AND EXTRACTING INFO BUT THE SCRIPT IS BEING SENT A URL POST I.E
<a href="lookatthread.cgi?link=March-27-2005+CGI IS NOT LOGICAL+33">
THIS TELLS MY SCRIPT WHICH FILE TO GO AND READ THE NEXT STEP IS
if ($ENV{'REQUEST_METHOD'} eq 'GET')
{...
Im trying to build a forum on my site
i can create a new thread now when i click on the title of the new thread i want it to start a cgi script that will show the history of the thread all the posts which im storing in a text file a new line for each post and information about who posted and...
I have an applet that i want to use on my page. When i run a simple html page from my desktop it works but when i goes through apache it refuses to work.
Im thinking that the server is not serving this info
how can i fix it
MadAxe
i Have two iframes my first is populated from a cgi script that creats a series of tables each containning an image. Each image has a link pointing at my second iframe so when i click on the image it sends it to my second iframe.
However i cant control the size of the image in the second...
WHY DOES MY IF STATEMENT NOT WORK
#!/Perl/bin/perl -wT
use CGI qw(:standard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
use strict;
print "Content-type: text/html\n\n";
my $query = new CGI;
my $cookieinfo = $query->cookie('mcjeeves.net');
if (!$cookieinfo)
{
print <<"EOF"...
Status: 302 Moved location: ../index.html?error=1
Ive been trying to get this check script to work from an exec from a html page c below
<html>
<!--#exec cgi="CGI_BIN/CHECK.cgi"-->
</html>
#!/Perl/bin/perl -wT
use CGI qw(:standard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
use...
This CGI script runs when called from html by
HTML
<!--#exec cgi="CGI_BIN/first.cgi"-->
CGI
#!/perl/bin/perl -wT
print "Content-type: text/html\n\n";
print "<div style='position: absolute; top: 132; left: 419; width: 43; height: 25'>
<h2>Hello, world!</h2></div>\n";
WHY DOES THAT WORK...
I want this expression to exist at the top of my pages so that if somebody tries to get into my site without a login then they get directed back to login screen.
MadAxe
I can create the cookie read it back to print user name on page but i want to stop people from typing in url and skipping log in page.
So i want my html page to first check for cookie if it exists then allow people to goto any url if not to send them back to my .index page to log in.
MadAxe
I want to write cgi scripts that do stuff then call them from main scripts with input then feed the output back to the main script.
Does anybody have any examples that i can see
also can you run a script constainly in the background to check stuff like whos logged on and outputting the info to...
I can create the cookie read it back to print user name on page but i want to stop people from typing in url and skipping log in page.
So i want my html page to first check for cookie if it exists then allow people to goto any url if not to send them back to my .index page to log in.
MadAxe
I have just put in a linksys B wireless router in and i have allowed port forwarding but now i dont get any sound with MSN messenger 6.2. I have been on the web and found which msn ports i need to allow but i still can not get it to work.
ANY IDEAS
MADAXE
Finally got my site up with one last issue i have to put in www.mypage.com/~username
where the user name is my XP log on how can i point www.mypage.com straight at mypage.index?
Madaxe
Where do i put my static ip adress?
do i put it on my router, if so what do i set my pc to?
or do i still use dynamic on my router and put it on my pc? This does not seem logical to me for some reason?
i have set up my forwarding with yahoo so im one step closer
Mad axe
1) PHP? what is it? do i need to install it? where can i get it?
2) How do i configure XP do i create a new user to run my server from does that user have to have admin priveliges?
3) Where do i put my dynamic ip on the wireless router or on my pc?
Need basic steps to get this running not...
Hi Tommorrow i will have a static IP with Yahoo who are doing my Domain Name and DNS forwarding and I have Apache Installed on XP SP2 what do i need to do to get my Perl / CGI site on the web and how do i configure my server to host multiple web sites.
For each person i host a site for do i...
Hi Tommorrow i will have a static IP with Yahoo who are doing my Domain Name and DNS forwarding and I have Apache Installed on XP SP2 what do i need to do to get my Perl / CGI site on the web and how do i configure my server to host multiple web sites.
For each person i host a site for do i...
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.