Skip to content

Instantly share code, notes, and snippets.

View moay's full-sized avatar

Manuel Voss moay

View GitHub Profile
@thagxt
thagxt / url-check.php
Created September 4, 2015 20:27
php function to check if URL is 404 or nah
<?php
// check if URL exists
function checkUrl($url) {
// Simple check
if (!$url) { return FALSE; }
// Create cURL resource using the URL string passed in
$curl_resource = curl_init($url);
// Set cURL option and execute the "query"
// On PhpStorm, when ussing with laravel mix, for Alias path resolving in components you have to:
// - create a webpack.config.js file separately like:
const path = require('path')
const webpack = require('webpack')
module.exports = {
...
resolve: {
extensions: ['.js', '.json', '.vue'],