Saturday, 31 August 2013

Determine if path is remote or local

Determine if path is remote or local

I have an array that looks like this:
Array
(
[0] => public\js\jade\runtime.js
[1] => public\js\templates.js
[2] => public\js\underscore.js
[3] => public\js\underscore.string.js
[4] => public\js\main.js
[5] => //ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js
)
I need to determine which of those files is local or remote. i.e., only
[5] is remote. Is there a method for doing this?

No comments:

Post a Comment