Jump to content

Sniffy

Members
  • Posts

    403
  • Joined

  • Last visited

Everything posted by Sniffy

  1. Sniffy

    Cant Save as ?

    Yeah, just give more detail to what the problem is.
  2. It says on the tutorials that XHTML will soon replace HTML; just thought I'd contribute.
  3. :)That stinks.....I might upgrade in the next few years..until then, I guess I'll just have to stick with what I have.
  4. You're welcome, there's probably a lot more on Source Forge but I haven't checked.
  5. Sniffy

    File Problem

    That's not the problem though, I made sure I checked that the .txt files were there.Here's my exact code by the way. <?phperror_reporting(E_ALL);?><?phpif(isset($_COOKIE['admin']))$adminCheck = "<font face='Comic Sans MS'>Welcome back,".$_COOKIE['admin'].".<br><a href='updateIndex.php'>Update the FrontPage.</a></font>";else$adminCheck = "<a href='adminLogin.php'>Admin Login</a>";?><html><head><meta http-equiv="Content-Language" content="en-us"><meta name="GENERATOR" content="Microsoft FrontPage 5.0"><meta name="ProgId" content="FrontPage.Editor.Document"><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Bobville</title><link rel='stylesheet' type='text/css' href='style.css'></head><body><img src='logo.gif' width='100%' height='40'><br><table cellspacing='0' width='100%'><tr><td width='200'><div class='menu'><a href='index.php'>Home</a><br><a href='games/index.php'>Games</a><br><a href='movies/index.php'>Movies</a><br><a href='tutorials/index.php'>Tutorials</a><br><a href='links.php'>Links</a></td><font size="2"><td width='600'></font><font face="Comic Sans MS"><i><font size="2">Updates</font>:</i></font><br><br><?php$fileName = "updates.txt";$fileHandle = fopen($fileName, 'r')or die("Could not open file");$fileContents = fread($fileHandle, filesize($fileHandle));fclose($fileHandle);echo $fileContents;?></td><td width='200'><div class='menu'><?phpecho $adminCheck;?><br><?php$counterF = "counter.txt";$counterH = fopen($counterF, 'w+')or die("Could not open file");$counterR = intval(fread($counterH, filesize($counterH)));fwrite($counterH, $counterR+­1);fclose($counterH);echo $counterR;?></td></tr></table></body></html>
  6. Sniffy

    Whoa...

    Humans are weak, we'd probably lose.
  7. Yes, I think I've heard of Visual Studio before, but I've nevered looked into Asp.Net
  8. I heard of the new IE7(Internet Explorer 7), but I don't see the Windows 2000 download option, my OS. Is there an available version. Right now I have IE6, one of my family members must update it because I never do, so can you answer my question?
  9. Yeah, You have 3 times the needed post count. Did you really cheat?
  10. Hello, and here's a better translation. :blink:Hello, my name is Liu Yang. I come from a far away country called CHINA .My English is quite poor, so you may not understand most what I say. I've learned a lot from w3schools.comThank you w3schools ! I offer my heartfelt thanks to you and the people who contribute to w3schools!I love you ! Best wishes !Now, I haven't really introduced myself in awhile so here goes.My name is Sniffy(Sniffy Gerbil) and I prefer not to give away much personal information of myself, other than to a select few. I've been into web design for around 1 - 2 years now and I like it a lot. I shouldn't really fraise it as web design, programming is better. I've used HTML, CSS, PHP, JavaScript, ActionScript and I'm putting JAVA on my list to know. It's a 99% percent chance that I'll be taking a course on it in the next month or so.
  11. or js void(0)....<a href='java script: alert("Hello World")'>Click me</a>
  12. Sniffy

    PHP vs ASP.NET

    I've heard of Flex before, I thought it was Flix at first, but it has some sort of connection with AS3?
  13. Sniffy

    File Problem

    Warning: filesize(): Stat failed for Resource id #1 (errno=2 - No such file or directory) in /home/www/sniffy.awardspace.com/index.php on line 41Warning: fread(): Length parameter must be greater than 0. in /home/www/sniffy.awardspace.com/index.php on line 41 Warning: filesize(): Stat failed for Resource id #2 (errno=2 - No such file or directory) in /home/www/sniffy.awardspace.com/index.php on line 55Warning: fread(): Length parameter must be greater than 0. in /home/www/sniffy.awardspace.com/index.php on line 55Notice: Use of undefined constant ­1 - assumed '­1' in /home/www/sniffy.awardspace.com/index.php on line 560
  14. Sniffy

    File Problem

    Actually, there's another problem.Error: Parse error: syntax error, unexpected ')' in /home/www/sniffy.awardspace.com/index.php on line 53 <?phpif(isset($_COOKIE['admin']))$adminCheck = "<font face='Comic Sans MS'>Welcome back,".$_COOKIE['admin'].".<br><a href='updateIndex.php'>Update the FrontPage.</a></font>";else$adminCheck = "<a href='adminLogin.php'>Admin Login</a>";?><html><head><meta http-equiv="Content-Language" content="en-us"><meta name="GENERATOR" content="Microsoft FrontPage 5.0"><meta name="ProgId" content="FrontPage.Editor.Document"><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Bobville</title><link rel='stylesheet' type='text/css' href='style.css'></head><body><img src='logo.gif' width='100%' height='40'><br><table cellspacing='0' width='100%'><tr><td width='200'><div class='menu'><a href='index.php'>Home</a><br><a href='games/index.php'>Games</a><br><a href='movies/index.php'>Movies</a><br><a href='tutorials/index.php'>Tutorials</a><br><a href='links.php'>Links</a></td><font size="2"><td width='600'></font><font face="Comic Sans MS"><i><font size="2">Updates</font>:</i></font><br><br><?php$fileName = "updates.txt";$fileHandle = fopen($fileName, 'w+');$fileContents = fread($fileHandle, filesize($fileName));fclose($fileHandle);echo $fileContents;?></td><td width='200'><div class='menu'><?phpecho $adminCheck;?><br><?php$counterF = "counter.txt";$counterH = fopen($counterF, 'r+');$counterR = fread($counterH, filesize($counterF));fwrite($counterH, $counterR+­+);fclose($counterH);echo $counterR;?></td></tr></table></body></html> Oh, I fixed the ++ increment problem, but now my main content has an fread() parameter error on line 38 and my counter adds one zero to the file like 0,00,000 instead of 1, 2, 3, 4.Can you help me fix these problems? <?phpif(isset($_COOKIE['admin']))$adminCheck = "<font face='Comic Sans MS'>Welcome back,".$_COOKIE['admin'].".<br><a href='updateIndex.php'>Update the FrontPage.</a></font>";else$adminCheck = "<a href='adminLogin.php'>Admin Login</a>";?><html><head><meta http-equiv="Content-Language" content="en-us"><meta name="GENERATOR" content="Microsoft FrontPage 5.0"><meta name="ProgId" content="FrontPage.Editor.Document"><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Bobville</title><link rel='stylesheet' type='text/css' href='style.css'></head><body><img src='logo.gif' width='100%' height='40'><br><table cellspacing='0' width='100%'><tr><td width='200'><div class='menu'><a href='index.php'>Home</a><br><a href='games/index.php'>Games</a><br><a href='movies/index.php'>Movies</a><br><a href='tutorials/index.php'>Tutorials</a><br><a href='links.php'>Links</a></td><font size="2"><td width='600'></font><font face="Comic Sans MS"><i><font size="2">Updates</font>:</i></font><br><br><?php$fileName = "updates.txt";$fileHandle = fopen($fileName, 'r');$fileContents = fread($fileHandle, filesize($fileName));fclose($fileHandle);echo $fileContents;?></td><td width='200'><div class='menu'><?phpecho $adminCheck;?><br><?php$counterF = "counter.txt";$counterH = fopen($counterF, 'w+');$counterR = fread($counterH, filesize($counterF));fwrite($counterH, $counterR+­1);fclose($counterH);echo $counterR;?></td></tr></table></body></html> Note: I'm getting two fread() parameter 0 errors.
  15. Sniffy

    File Problem

    Oh....:)Thanks.
  16. -I've been doing some work in Frontpage's preview and normal editing mode are really messed up when you're dealing with positioning and scripting languages, I wouldn't recommend it.-
  17. Sniffy

    PHP vs ASP.NET

    Right now though, JAVA has been my goal, and I am taking a course from Fanshawe in January. I've never really dealt with OOP so this will be new, and confusing to me.
  18. Sniffy

    Whoa...

    I guess curiousity controls us, just like anything else. We don't think of those things until they actually happen, and we'd never get anywhere in life unless we tried.
  19. Sniffy

    File Problem

    I'm trying to make a hit counter for my homepage with a text file(counter.txt).What went wrong?The error Parse error: syntax error, unexpected T_VARIABLE in /home/www/sniffy.awardspace.com/index.php on line 51 The page(index.php) <?phpif(isset($_COOKIE['admin']))$adminCheck = "<font face='Comic Sans MS'>Welcome back,".$_COOKIE['admin'].".<br><a href='updateIndex.php'>Update the FrontPage.</a></font>";else$adminCheck = "<a href='adminLogin.php'>Admin Login</a>";?><html><head><meta http-equiv="Content-Language" content="en-us"><meta name="GENERATOR" content="Microsoft FrontPage 5.0"><meta name="ProgId" content="FrontPage.Editor.Document"><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"><title>Bobville</title><link rel='stylesheet' type='text/css' href='style.css'></head><body><img src='logo.gif' width='100%' height='40'><br><table cellspacing='0' width='100%'><tr><td width='200'><div class='menu'><a href='index.php'>Home</a><br><a href='games/index.php'>Games</a><br><a href='movies/index.php'>Movies</a><br><a href='tutorials/index.php'>Tutorials</a><br><a href='links.php'>Links</a></td><font size="2"><td width='600'></font><font face="Comic Sans MS"><i><font size="2">Updates</font>:</i></font><br><br><?php$fileName = "updates.txt";$fileHandle = fopen($fileName, 'w+');$fileContents = fread($fileHandle, filesize($fileName));fclose($fileHandle);echo $fileContents;?></td><td width='200'><div class='menu'><?phpecho $adminCheck;?><br><?php$counterF = "counter.txt"$counterH = fopen($counterF, 'r+');$counterR = fread($counterH, filesize($counterF));fwrite($counterH, $counterR+­+);echo $counterR;?></td></tr></table></body></html> The counter.txt file 0
  20. Thanks, can you give me a link to WAMP?
  21. Sniffy

    Whoa...

    Yeah, I guess so, but when you look at it a way, the human race is stupid. Why would we want to jump in to a new world to get us all killed. Is it worth that much just to prove that there's something out there?
  22. I would like to install php locally on my computer as well, and I'm wondering do I need the apache server, or what do I need to run PHP, how, and where to get it. Sorry to but into someone elses thread but this may answer his questions as well.I see PHP on my browser, but not if I save a php file.
  23. Sniffy

    PHP vs ASP.NET

    Yes, I here of a lot of people in to C/C++ & C#.Especially in my family and friends, I'm still so young though, so not me. Maybe someday though I'll be like the rest. I here further out like Lunenburg(Honeybee Studios) and places like that have a lot.
×
×
  • Create New...