php


Are Using Remote Url or local path same performance wise when copying?


Question is self-explanatory.
I have a file /var/www/example/filez/file1.exe
It can also be accessed via https://www.abc.xyz/filez/file1.exe.
Now my question is if I have a script
/var/www/example/script.php
Is Trying
copy('/var/www/example/filez/file1.exe',$target_location)
less expensive than
copy('https://www.abc.xyz/filez/file1.exe',$target_location) ?
Or it does it not matter?
apart from parse the url to the local path, there is no difference copy the same file to same destination.

Related Links

script not terminating immediately
Creating SVG graphics using a server side script (PHP)
Using SqueezeBox and PHP in an application?
WURFL's New API Question
Page Views counter using PHP and MySQL?
help with php FOREACH loop
Getting funny squares in browser when displaying content
Reading word document
Why is the number 16 converted to float(6.1026988574311E_320) by PHP using Zend_Amf
Taking the data mapper approach in Zend Framework
Display amazon books/products with PHP [closed]
PHP OPML Parser
is it a good practice to use mysql_free_result($result)?
How to match a quoted string with escaped quotes in it?
Best way to flush or clear Ajax “temp” stuffs in IE7
Connecting flex/php to Active Directory

Categories

HOME
jboss
apache-nifi
svn
list
weblogic12c
gaming
openxml
workflow
compilation
website
malware
mirc
liferay-7
elisp
tfs2015
linker
polymer-2.x
eddystone
android-externalstorage
squid
sonicwall
maven-plugin
multiple-tables
cmake-gui
unity-container
dashdb
el
altium-designer
connection-refused
uislider
sybase-ase
perfino
exchange-server-2010
mod-wsgi
managed-c++
android-cardview
code-climate
django-import-export
dotcms
memory-fences
appcode
spring-rabbitmq
android-canvas
jfxtras
subclassing
ms-solver-foundation
telephonymanager
assemblies
windows-store
jacoco-maven-plugin
icepdf
react-intl
xcode8.2
beeline
nonlinear-functions
non-linear-regression
amazon-elastic-beanstalk
gestures
spring.net
line-intersection
glassfish-4.1
word-2016
fitbit
boost-compute
libharu
nclam
xmlbeans
gcloud-node
ajaxmin
wicked-pdf
frame-grab
jemdoc
verisign
vim-plugin
enunciate
json-spirit
perceptron
decidable
ruby-on-rails-4.1
lowercase
place
highest
css-paged-media
ngcordova
kefir.js
console.log
subview
html-escape-characters
mutators
iplimage
mobile-country-code
nidaqmx
xcode6.3.1
distributed-r
sqlbindparameter
air-native-extension
flipboard
jomsocial
profiles
proxy-server
smips
eclim
infinite
apache-shindig
microformats
days
icenium
simplecov
tridion-2011
gitx
voice-recording
monocross
wcf-callbacks
activestate
icicles
urchin
ixmldomdocument
sqlsitemapprovider
datagridcolumn
jboss-mdb

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App