how to refresh php page only one time

You could use this meta tag.

<meta http-equiv="refresh" content="5;url=http://www.yourwebsite.com/index.php">

Or by using javascript.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.