-
Posts
403 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Sniffy
-
-
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.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:中文:大家好,我叫 刘洋,来自 中国。我的英语不好,所以,我说的话你们可能大部分都看不懂 通过 w3schools 我学到了很多知识。非常感谢 w3schools !我要向你w3schools 以及 对此 有贡献的 的人 表示衷心的感谢!我爱你们 ! 献上我最美好的祝福!--------刘洋 -
or js void(0)....<a href='java script: alert("Hello World")'>Click me</a>
-
I've heard of Flex before, I thought it was Flix at first, but it has some sort of connection with AS3?
-
File Problem
in PHP
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
-
File Problem
in PHP
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.
-
File Problem
in PHP
Oh....:)Thanks.
-
-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.-
-
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.
-
-
File Problem
in PHP
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
-
Thanks, can you give me a link to WAMP?If you install WAMP it will install everything you need to use PHP. -
-
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.
-
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.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#). -
Good luck...!
-
500....That's a ways off.
-
-
Yeah, like an IDE will correct or show errors in the document. It also has features such as what line you're on.
-
Not really a lot of luck, but I guess you just have to go by practice.
-
Also, you might want to search JBuilder, JCreater, and Dr. Java for IDEs.
-
For some reason I'd choose a light grey or tan/orange.
-
If that was made in 30 minutes then I must really ###### at color schemes. Can anyone give me some guides to choosing colors?
-
Yeah, javascript is the best way to go.
-
Also, the PHP require(somefile.php) function is similar, but if the required file cannot be loaded into the page, it will cause an error instead of just loading without the file.
Where are you?
in General
Posted
Cool map...