You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been working on replacing Google's reCaptcha with VisualCaptcha and during my testing, I noticed the sound option does not work in mobile safari in iOS. I did some googling and found some references about mobile safari needing a file extension in the
I have been working on replacing Google's reCaptcha with VisualCaptcha and during my testing, I noticed the sound option does not work in mobile safari in iOS. I did some googling and found some references about mobile safari needing a file extension in the
Here's the code I've used for file.mp3:
`<?php
session_start();
error_reporting(E_ALL);
ini_set('display_errors', 1);
$audiofile = $_SESSION['path_to_file'];
$filepath1 = "path". $audiofile . ".mp3";
$filepath2 = 'path\filename.mp3';
$filename=$filepath;
if(file_exists($filename)) {
header('Content-Type: audio/mpeg');
header('Content-Disposition: inline; filename="'.$filepath.'"');
header('Content-length: '.filesize($filepath));
header('Cache-Control: no-cache');
header("Content-Transfer-Encoding: binary");
} else {
header("HTTP/1.0 404 Not Found");
}
?>`
Here, $filepath1 fails, and $filepath2 works.
The text was updated successfully, but these errors were encountered: