PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
The output is 192.168.1.7, which is my IP when I'm not using my switch. I'm wanting to have it set up for 192.168.2.2 (my IP through the switch). I have it in place of 127.0.0.1 as of now.
I don't have a user database on my site yet, so I was wanting to use str_replace to pretty much tie everybody's IPs to a name so nobody else would be able to use somebody else's name without using that person's internet.
What I'm wanting to do is make it so that if user 1 tries to post something under user 2's name without it matching user 2's IP then it replaces that name with something else or appends something to the end of it so other people know that it wasn't really user 2 posting it.
In that case, just run the switch before the post, get the user's REAL name (by comparing it to the IP address) and then append this to the end of the user's posted message:
I was checking the emails I get upon receiving comments on my site and it turns out that the code that I am using does work. I went to review it once again and finally realized that it replaced the name after it had already been saved to the database, but before it was sent via email.
I have learned , today, that I need to make sure the order is correct otherwise it wont work.