I've made my own forum system for my site and in this upcoming version of my site I've finally added the feature that makes it so when there's a new post and you view the post it's no longer considered new from there on out. BUT, my problem is this, it works locally on my computer but not on the actual server for my website.
The way that I'm going about this is by 2 session variables which are actually array's, "new_posts" and "read_posts". The first contains the post id's of the posts that are considered new and the second contains the post id's of when you read a new post. To test to see if a forum has new posts in it I use the in_array() function which requires 2 arguments and returns a boolean value (true or false). The first one is what you are looking for in the array and the second one is the actual array your looking in.
I get the following error on the server:
Warning: in_array(): Wrong datatype for second argument in /home/kryptek/public_html/forum.php on line 89
The PHP Version of my computer is 4.2.3 and the PHP version of my host server is 4.3.10. If anyone could help me out I would greatly appreciate it, I want to get my new version of my site up by monday so I'm kind of running short on time now and this problem just came up
