Jump to content

Sniffy

Members
  • Posts

    403
  • Joined

  • Last visited

Posts posted by Sniffy

  1. Hello, my name is Liu Yang. Come from CHINA .My English is poor,so you may coun't understand most of I said :) I've learned too much from w3schools .Thank you w3schools ! I must offer my heartfelt thanks to you and the people who contributes to the w3schools !I love you ! :) Best wishes !-------liuyangin Chinese:中文:大家好,我叫 刘洋,来自 中国。我的英语不好,所以,我说的话你们可能大部分都看不懂 :blink: 通过 w3schools 我学到了很多知识。非常感谢 w3schools !我要向你w3schools 以及 对此 有贡献的 的人 表示衷心的感谢!我爱你们 ! :) 献上我最美好的祝福!--------刘洋
    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.
  2. 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

  3. 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.

  4. 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.

  5. 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.

  6. 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

  7. 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?

  8. 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.

  9. Here (Nova Scotia) , for web development jobs, the biggest demand is for J2EE and ASP.Net and there is very little demand for PHP.And for programming jobs it is C/C++ and .Net (C#).
    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.
  10. Yes, exactly.But, what if we find life that can harm us, like bacteria, or intelligent life that thinks we're a threat or wants to take over our planet?Or rather dangerous animals.

×
×
  • Create New...