How to access files on the server ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • johnluck
    New Member
    • Mar 2022
    • 1

    How to access files on the server ?

    Hello everyone, I use a local server on my computer and I'm working on how to access server files already uploaded .
    I have a file named poge.jpg, and I used the SQL statement to insert the path of the file in the table with VARCHAR(225) type. but when I try to see the image in the web browser, nothing is shown. would anyone please help me ?
    the file is on the server with the path /files/images/, and the path is inserted in mysql table named profile, in the table row named pic. when I use the SQL statement to see the image on the browser, nothing is shown.
    here is the php code :
    Code:
    <?php 
    $conn = new PDO("mysql:host=localhost;dbname=$databasename", $user, $password);
    $sql = "SELECT pic FROM profile";
    $image = $conn->exec($sql);
    echo $image;
    <?
  • Djohnavid021
    New Member
    • Mar 2022
    • 11

    #2
    Windows Explorer provides access to servers of different types. Some of them are public, and others require a login to access. It all depends on which server you want to access. Here are some common ways you can access your files. Listed below are the ways you can access files on a server. But first, make sure you have write permissions enabled on the server you are going to access.

    Comment

    Working...