Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can't use paths that start with http:// on some servers because of security. What you want to use instead is a directory path.</p> <p>You can get your current directory path by doing something like<br> <code>echo $_SERVER['DOCUMENT_ROOT'];</code></p> <p>that will give you your directory path from the root folder of the server. That is the path you want to use to include/require stuff. </p> <hr> <p><em>If you didn't quite understand that, try this.</em></p> <p>There are two types of paths:</p> <p><strong>World Wide Web Paths:</strong><br> <a href="http://example.com/directory/file.php" rel="nofollow noreferrer">http://example.com/directory/file.php</a></p> <p><strong>Server Directory Paths:</strong><br> /home/usr/www/site/html/</p> <p>The Server directory path is where your files are located on the server's hard drive. Much like your computer's hard drive, it is never changes unless you move the files. On the other hand, The World Wide Web Path (the one everyone uses to access your website) can change based on what domain you are using, where your Document Root is pointing, Mod Rewrites, and more.</p> <p><em>Note: The Document Root is the top most directory that your server serves files from. So, if you had index.php in your document root, it would show up like this on the web: <a href="http://example.com/index.php" rel="nofollow noreferrer">http://example.com/index.php</a>.</em></p> <p>When PHP looks for a file, it uses the Server Directory Path, because it is running on the server. When Javascript, which runs from the user computer, wants to look for a file, it uses the World Wide Web path to access it, because it isn't accessing it from the server. </p> <p>I really hope that somewhere in there, something made sense.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload