How about offering downloads of projects utilising your articles. Just an idea.
Dennis
Does the game spell out "Hello World" or what.:rolleyes: Sounds like you are moving along on the C++ front. Well done.
Printable View
How about offering downloads of projects utilising your articles. Just an idea.
Dennis
Does the game spell out "Hello World" or what.:rolleyes: Sounds like you are moving along on the C++ front. Well done.
Hey wey...sorry about before...it was after school and it was a bad day. Sorry :) No hard feelings.
What do you mean, downloads utilizing my articles. Yeah Id like to have some CGI script where i could add new articles over the web, if someone could ever develop a Perl CGI script for me, i would be grateful....
I tried to learn Perl a few times. The people who made it must of purposly made it super confusing, but ultra powerful for CGI... pisses me off :)
Tell me what you mean by 'Downloads to utilize your articles.'
Thanks ;)
Hey Steve, I know how you feel. I'm stressed w/ school too.
Finals suck big time!
They should be outlawed.
:)
BTW, what is the best way to make a main menu like U have
on your web site?
Dennis: I haven't got any large files uploaded at the moment, but with a 28K connection on my end, UKLinux.net is at least twice as fast as geocities, probably more. They are well worth a look!
My favorite way of making a menu, is to use PHP, or Perl(I know a little perl, but I don't like it much so I stopped learning it until I got a good hold of C++) and make a function, to show the table of contents and the header, but put it in a seperate file...
ex.
this is in PHP
you paste that into a file, call it what you like, I call it either global.php or functions.phpCode://global.php
function gethits($logpath) {
$hits = 0;
$logpath = "./hits/".$logpath.".hits";
If (file_exists($logpath)) {
$filenum = fopen($logpath,"r");
if ($filenum > 0) {
$filesize = filesize($logpath);
$hits = fread($filenum,$filesize+1);
fclose($filenum);
}
} else {
$filenum = fopen($logpath,"w");
fwrite($filenum,$hits);
fclose($filenum);
}
return $hits;
}
function addhit($logpath) {
$hits = 0;
$logpath = "./hits/".$logpath.".hits";
If (file_exists($logpath)) {
$filenum = fopen($logpath,"r");
if ($filenum > 0) {
//Get the current file hit count
$filesize = filesize($logpath);
$hits = fread($filenum,$filesize);
fclose($filenum);
//Increment the hit counter
$hits++;
$filenum = fopen($logpath,"w");
fwrite($filenum,$hits);
fclose($filenum);
}
}else{
$hits++;
$filenum = fopen($logpath,"w");
fwrite($filenum,$hits);
fclose($filenum);
}
return;
}
function showheader($title, $path) {
$old = "\"#6320BE\"";
$link = "\"#02802E\"";
$alink = "\"#FF0000\"";
$vlink = $link;
$bgcolor = "\"#FEFCD0\"";
$text = "\"#080F9C\"";
addhit($path);
echo "<HTML>\n";
echo "<HEAD>\n";
echo "<TITLE>$title</TITLE>\n";
echo "<HEAD>\n";
echo "<BODY BGCOLOR=$bgcolor TEXT=$text LINK=$link ALINK=$alink VLINK=$vlink>\n";
echo "<FONT FACE=\"Arial\" SIZE=2>\n";
showsidebar();
echo "<FONT COLOR=\"#0000FF\">\n";
showtitle($title);
if ($path == "index") {
showsubtitle("Your source for PC Software", 3);
}
echo "</FONT>\n";
echo "<BR>\n";
}
function showfooter($path) {
echo "<P>\n";
echo "<BR>\n";
echo "<CENTER>";
echo "<FONT COLOR=\"#0000FF\" SIZE=2>\n";
echo "There have been <B>";
echo gethits($path);
echo "</B> visitors to this page since 9/24/2000 <BR>\n";
echo "Copyright © 2000 YourCo.com ";
echo "All rights reserved <BR> \n";
echo "click <A HREF=\"privacy.php\">here</A> for our privacy statement\n";
echo "</FONT>\n";
echo "</TD>\n</TR>\n</TABLE>\n";
echo "</CENTER>\n";
echo "</FONT>\n";
echo "</BODY>\n</HTML>";
}
function showsidebar() {
echo "<TABLE BORDER=0 WIDTH=100% HEIGHT=100% CELLPADDING=\"20\">\n";
echo "<TR>\n<TD WIDTH=15% BGCOLOR=\"#FF8D31\" VALIGN=\"TOP\" ALIGN=\"CENTER\">";
$file = openfile("php/sidebar.txt");
echo "$file";
echo "</TD>\n<TD WIDTH=85% VALIGN=\"TOP\" ALIGN=\"LEFT\">";
}
function showtitle($title) {
echo "<FONT COLOR=\"#0000FF\">\n<H1><CENTER>$title</CENTER></H1>\n</FONT>";
}
function showsubtitle($stitle,$size=2) {
echo "<FONT COLOR=\"#0000FF\">\n<H$size><CENTER>$stitle</CENTER></H$size>\n</FONT>";
}
and you have to have a directory under the main one, called "hits"
it keeps the hit counter logs...
and you need a file called "sidebar.txt"
notice the whitespace at the top?Code:
<A HREF="index.php">Home</A><BR>
<A HREF="about.php">About Us</A><BR>
<A HREF="news.php">News</A><BR>
<A HREF="products.php">Products</A><BR>
<A HREF="advertise.php">Advertise</A><BR>
<A HREF="faq.php">FAQ</A><BR>
<A HREF="links.php">Links</A><BR>
<A HREF="contact.php">Contact</A><BR>
<A HREF="forum/index.php">Forum</A><BR>
<A HREF="programming.php">Programming Tips</A><BR>
<P>
<P>
<A HREF="http://www.mysql.com" TARGET="_BLANK">
<IMG SRC="images/mysql.gif" WIDTH=63 HEIGHT=33
ALT="Powered By MySQL" BORDER=0>
</A>
<P>
<A HREF="http://www.php.net" TARGET="_BLANK">
<IMG SRC="images/phplogo.gif" WIDTH=63 HEIGHT=33
ALT="Powered By PHP" BORDER=0>
</A>
<BR>
that must be there.. I haven't used this bit for a while, so I can't remember, I think it has to do with alignment or something.
I know this didn't help you much, since virtual ave doesn't support PHP, but maybe you can get someone convert it.. :)
This is how you use those functions..
Code:<?
require("php/functions.php");
showheader("Index", "index");
//first argument is the title
//second is the hit counter file name.
?>
hello
<!-- write stuff here like you would a normal HTML file -->
<?
showfooter("index");
//argument is hit counter file name.
?>
-Dennis
Hey, can you guys give some tips on me here, hehe ;) its ok though... anyone please visit my site and give me some tips on how to drive traffic! Oh and will someone tell me where i can find an EXCELLENT tutorial to Perl? Cause ive tried others... the developers of the language must have purposely made it irritatingly confusing, but powerful just to piss off the program makers :)
Well ok...
They've said do a banner exchange. You have already done the search engine thing. So just make your site good! There are no magic tricks, people won't come to your site unless it's good, so stop wasting time asking for ways to 'drive' traffic to your site, because nobody's gonna stay if it sucks.
Aight, thanks.
GOD: "Let there be more hits to romhacker's site!"
romhacker: "Thanks, GOD."
(And so for all the days to come there were infinite hits to romhacker's site.)
here are some perl tutorials:
http://htmlgoodies.earthweb.com/prim...l/perltoc.html
OK, ill give you that wey... that was funny.
:)
You all said my layout was boring.. well ive made a new one.. took me nearly a half a day to make all the images, design the layout, make the layout, update the pages, upload the images, and upload the pages. hehe check it out!
http://www.skaparty.com
:D
You piece of ****..your website sucks ass..in case you havent noticed..operation ivy isnt exactly a new band..they arent REAL ska.. you poser.
**** you
the new layout is pretty cool :cool:
the layout isn't bad at all, i've done a few web-sites myself and most of them don't look as good as that, but one thing they don't have is a big giant banner at the top advertising the fact that we're hosting for free, i think you either need a free host that doesn't have banners that take up half your page or pay for hosting
and get some damn midgets, a web-site is nothing without midgets, naked ones if possible but any midget will do
Thankyou, I like the new layout too. Oh and I think I should include midgets somewhere in my website. Possibly in one of the articles that i might write in the future. =) Oh, and I like my host. Just because it loads a banner doesnt mean its a bad host. The support CGI scripts (ANY kind) and support SSI plus FTP access, so i like them.
;):):D
-Drew
http://www.cfm-resources.com
is much better than virtualave...
they support java server pages, active server pages, PHP, cold fusion, and they have FTP....
but they don't support perl...
but PHP is much better than Perl... IMO...
they also don't have banners
[Edited by denniswrenn on 12-17-2000 at 02:16 PM]
Ah, but you see i have about 10 perl scripts running on my website right now. I know that PHP is insanely better than perl and probably easier, but i have experience with perl. So there ;):);D
Hehe, like the band of the moment, article of the moment, all the feedback forms, article signature, schlabo's dl script, and maybe a few others. The only benifit i could think of if i converted to PHP is to add a vBulletin Board... but then again I already have a thread + reply forum ;)
Thanks anyway!
-Drew
There is no way in hell you will get "Hello World" out of it :rolleyes:
So the guy that was attacking your coding prowess is clearly a lamer.
What the hell does that have to do with me?
LOL
;):):D
The whole world does not revolve around you Rom. Have already given you good advice about servers and petrol.Quote:
Originally posted by romhacker
What the hell does that have to do with me?
LOL
;):):D
Ok another tip.
Don't try bending 5.25 inch disks to fit them in 3.5 inch drives.
Nice looking, very easy to navigate. Lack of content at the moment, but l guess you are slowly building it up.
Dennis
How is your site going? Lost the connection so haven't logged for a look lately.
Havent you heard? The world does revolve around me. Youre just ignorant.
which site jethro?
I have many....
I know the world does not revolve around you, because that would create a disruption field due to my son having the same attitude.Quote:
Originally posted by romhacker
Havent you heard? The world does revolve around me. Youre just ignorant.
And you should have said
You're just ignorant. Which of course l am on many topics...like everyone else in the world.
The one you posted about here approx 6 months or so agoQuote:
Originally posted by Benjamin
which site jethro?
I have many....
ah, tochê Jethro.... but you forgot about the compfound gravity matrix.. mgclaavin!
Oh and just to make sure that no one thinks im crazy cause i said 'mclaavin!' that is from the simpsons... Professor Frink. ;)
:);):D
-Drew
Could this be the cause of black holes.Quote:
Originally posted by romhacker
ah, tochê Jethro.... but you forgot about the compfound gravity matrix.. mgclaavin!
Jethro, its merely the reason why women always think theyre right.
;):):D