Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

PHP welcome message?

Ads
banner
banner
Victor Dub Offline referral

Posts: 826
Joined: Oct 2013
Reputation: 3

#1
Posting Freak
How to create a welcome message with PHP that only shows one time?
postcd Offline referral

Posts: 27
Joined: Feb 2016
Reputation: 0

#2
Junior Member
You would have to somehow identify the visitor and save his details so your php app will not show it if he visit again.

You can save IP address and then check all saved IPs and if found, message will not show.

You can also create cookie in the visitor web browser, but after he clear cache or reinstall browser, cookie will be away. Here you can see the script for cookie based handling: https://stackoverflow.com/questions/8752...time-visit

if want to save IPs instead of cookies, you would google: php save visitor IP into file
and then: php fopen if file contains IP
$0.5 website hosting
$2 Linux server (torrent,proxy,RDP etc.)
-> Instantcpanelhosting.com
marcus_avrelius Offline referral

Posts: 2,519
Joined: May 2013
Reputation: 102

#3
Support Team
To prevent message from showing again to same user you need to set Cookie! Then with your PHP function first check for the cookie if not found then show message and set cookie!





User(s) browsing this thread: 1 Guest(s)