-
Posts
403 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Sniffy
-
-
I don't really want the web developer toolbar, how do I remove it?I don't really want the web developer toolbar, how do I remove it?I have it.Lag...Wait, nevermind....Fixed it...it's awesome.
-
File Problem
in PHP
I did, is there any other possible errors?It even says 1 byte for the size.
-
Do you know how to add a scrollbar to paragraph box if the paragraph's set width is reached?<p width='500' height='30' scrollbar='yes'>?
-
I believe modding gives you a reason to post more, but still you're right, you would still have a lot of posts.
-
-
Does anybody have Opera support for CSS?My site looks really messed in Opera.
-
File Problem
in PHP
The 'updates' section works not but not the counter.
<?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 = "/home/www/sniffy.awardspace.com/updates.txt";$fileHandle = fopen($fileName, 'r')or die("Could not open file");$fileContents = fread($fileHandle, filesize($fileName));fclose($fileHandle);echo $fileContents;?></td><td width='200'><div class='menu'><?phpecho $adminCheck;?><br><?php$counterF = "/home/www/sniffy.awardspace.com/counter.txt";$counterH = fopen($counterF, 'w+')or die("Could not open file");$counterR = intval(fread($counterH, filesize($counterF)));fwrite($counterH, $counterR+1);fclose($counterH);echo $counterR;?></td></tr></table></body></html>
Warning: 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
-
Downloading......My first post from Opera!Is there some way for me to get the status bar though?P.S: I like the "tab" feature.
-
File Problem
in PHP
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 560Notice: Undefined index: PATH_TRANSLATED in /home/www/sniffy.awardspace.com/index.php on line 61$_SERVER['PATH_TRANSLATED']: ""Notice: Undefined index: APPL_PHYSICAL_PATH in /home/www/sniffy.awardspace.com/index.php on line 62$_SERVER['APPL_PHYSICAL_PATH']: ""$_SERVER['REQUEST_URI']: "/"$_SERVER['SCRIPT_FILENAME']: "/home/www/sniffy.awardspace.com/index.php"Notice: Undefined index: ORIG_PATH_TRANSLATED in /home/www/sniffy.awardspace.com/index.php on line 65$_SERVER['ORIG_PATH_TRANSLATED']: ""
Would the path be ../home/www/sniffyawardspace.com/counter.txt ?
-
File Problem
in PHP
0/home/www/sniffy.awardspace.comBut that doesn't work so I'm asuming it's just home/www/.... That doesn't work though.
-
File Problem
in PHP
Still having problems.
<?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 = "http://sniffy.awardspace.com/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 = "/home/www/sniffy.awardspace.com/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;?><?phpecho __FILE__;?></td></tr></table></body></html>
errors
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/home/www/sniffy.awardspace.com/index.php
/home/www/MY DOMAIN is the path I think.I tried adding a '0' in front of it but it didn't work.
-
I see, very clever.nl2br() is the way to go for me though...
-
Yeah, I always get lazy when doing my sites, and end up just repeating the same colors. On top of that, like I said, I have a poor color choice.
-
Doesn't dreamweaver have code hints and dictionarie's though to help you?Doesn't it display your line and if there's errors?
-
File Problem
in PHP
Like this?
<?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 = "http://sniffy.awardspace.com/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 = "http://sniffy.awardspace.com/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>
errors
Warning: fopen(http://sniffy.awardspace.com/counter.txt): failed to open stream: HTTP wrapper does not support writeable connections. in /home/www/sniffy.awardspace.com/index.php on line 54Could not open file
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
-
Yeah, just give more detail to what the problem is.
-
It says on the tutorials that XHTML will soon replace HTML; just thought I'd contribute.
-
:)That stinks.....I might upgrade in the next few years..until then, I guess I'll just have to stick with what I have.
-
You're welcome, there's probably a lot more on Source Forge but I haven't checked.
-
File Problem
in PHP
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>
-
-
Yes, I think I've heard of Visual Studio before, but I've nevered looked into Asp.Net
-
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?
-
Yeah, You have 3 times the needed post count. Did you really cheat?For me it's way in the past...
File Problem
in PHP
Posted
Here's what was added on.filename: "/home/www/sniffy.awardspace.com/counter.txt"length: int(0)It has something to do with my contents being an integer.