i want to check the response of the http request on my url on Prestashop, i do something like this but is wrong, i know i don't use the right syntax anyone can help me pls !!
{$url = '$urls.base_urlfiche/$language.language_code/$product.reference_to_display.php';}
{$headers = @get_headers($url);}
{if ($headers && strpos($headers[0],'200'))}
$status = true;
{else} $status = false;{/if}
{if ($status = true)}
<a class="attachment-file" href="{$urls.base_url}fiche/{$language.language_code}/{$product.reference_to_display}.php">{l s='Fiche technique' d='Shop.Theme.Catalog'}</a>
{/if}
{else}
{/if}