• #dev 2019-05-09
  • Prev
    Next
  • #indieweb
  • #dev
  • #wordpress
  • #meta
  • #stream
  • #microformats
  • #known
  • #events
#dev ≡
  • ←
  • →
2019-05-09 UTC
# 14:25
Zegnat
So instead you have to make sure that the $newfile path is relative to script.php, by using __DIR__. (__DIR__ is always the directory script.php is in)