Captndave
Super Contributor
- Joined
- Jun 4, 2019
- Messages
- 177
So I am using push ads but most companies won't allow you to use a phone number for the link. I came up with a script that will have the dialer open with your number
first create an /index.php file
insert this code nothing else:
So, when I load mydomain.com/?tel=155512345678 the browser starts a call to the number passed as argument.
Hope this will help
first create an /index.php file
insert this code nothing else:
PHP:
<?php
if(isset($_GET['tel']) && $_GET['tel'] != "")
{
$tel = $_GET['tel'];
header("Location: tel://$tel");
}
die();
?>
So, when I load mydomain.com/?tel=155512345678 the browser starts a call to the number passed as argument.
Hope this will help
Last edited by a moderator: