Follow us on Twitter!
It is the path of least resistance that makes rivers and men crooked. - Bj Palmer
Thursday, April 17, 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: 20
Guests Online: 18
Members Online: 2

Registered Members: 82815
Newest Member: medjiking
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

strange, yet probably obvious php error


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 04-04-08 02:56
Okay, this is my first post, so bear with me. I am coding a blog-type site, and I'm trying to filter out some HTML tags from files. I'm using the callback of the filter_var() function. I get a:

Fatal error: Call to undefined function filter_var() in /home/benjamin/public_html/homeofben/blogview.php on line 18

I don't know why the function wouldn't exist, as I am using PHP 5 and www.w3schools.com says the filter_var() function exists in PHP 5. However, I have a feeling this is an obvious thing. Help would be appreciated.

Edited by on 04-04-08 03:10
Author

RE: strange, yet probably obvious php error


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 04-04-08 04:26
why not just use
htmlentities() ?



Author

RE: strange, yet probably obvious php error

Uber0n
Member



Posts: 1963
Location: Sweden‭‮
Joined: 13.06.06
Rank:
Hacker Level 3
Posted on 04-04-08 07:14
only_samurai wrote:
why not just use
htmlentities() ?


That's the best way to do it ^^


img230.imageshack.us/img230/724/uber0nsig3hj6.gif
http://uber0n.web. . .
Nope http://uber0n.webs.com/
Author

RE: strange, yet probably obvious php error


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 04-04-08 07:28
Uber0n wrote:
only_samurai wrote:
why not just use
htmlentities() ?


That's the best way to do it ^^


What has everyone against htmlspecialchars function?


Author

RE: strange, yet probably obvious php error


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 05-04-08 00:53
Oh, I figured out how to do it with strip_tags(). Thanks anyway.