title: Amazon S3 as like local files from php and html
body: <p>I know there's SDK to handle s3 files like uploading and downloading, AND I know s3 files can be accessed by unique url.</p>
  
  <p>HOWEVER,
  I'd like to know that there's the best easiest way to access files from PHP script and html script like accessing to local files.</p>
  
  <pre><code>//Example for html -
  &lt;img src='/image/1.jpg'&gt;
  </code></pre>
  
  <p>for this case, I need to change all the url from '/image/1.jpg' to s3 urls.</p>
  
  <pre><code>//Example for php -
  $file = 'assets/jquery.js';
  echo '&lt;script src='.$file.'&gt;&lt;/script&gt;';
  </code></pre>
  
  <p>The only way to access to s3 is that I have to change all local files access relative codes from local directory and file to s3 urls?</p>
  
  <p>Changing all full or absolute file path to be s3 url is not a good way.
  But is this only way to do so??</p>
  
  <p>What about S3FU? 
  It's not recommended but works properly as other say.
  Only reading files using S3FU and uploading SDK? what do you think?</p>