Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/271.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 向用户询问文件夹路径_Php - Fatal编程技术网

Php 向用户询问文件夹路径

Php 向用户询问文件夹路径,php,Php,由于我的数据库的不同寄存器的文件夹的名称完全出乎意料,我需要请求每个文件夹路径并将其存储在数据库中 // check if the 'id' variable is set in URL, and check that it is valid if (isset($_GET['name'])) { // Get name value $name = $_GET['name']; // Assign the name to the folder name path

由于我的数据库的不同寄存器的文件夹的名称完全出乎意料,我需要请求每个文件夹路径并将其存储在数据库中

// check if the 'id' variable is set in URL, and check that it is valid
 if (isset($_GET['name'])) {
    // Get name value
    $name = $_GET['name'];
    // Assign the name to the folder name path
    session_start();          // Starting Session
    $_SESSION['name_for_path'] = $name;
    header("Location: index_showpic.php?");}

    //Here!!!!????

    else
    // if id isn't set, or isn't valid, redirect back to view page
    {header("Location: _Table.php?sort=id");}
?>
有谁能帮我用PHP做这个吗

我有一个表单,其中注册id将链接到文件夹路径,用户将通过浏览正确的文件夹(我不知道如何做)来指示该路径

我从url中获取名称,并且我必须存储与数据库对应的文件夹路径

// check if the 'id' variable is set in URL, and check that it is valid
 if (isset($_GET['name'])) {
    // Get name value
    $name = $_GET['name'];
    // Assign the name to the folder name path
    session_start();          // Starting Session
    $_SESSION['name_for_path'] = $name;
    header("Location: index_showpic.php?");}

    //Here!!!!????

    else
    // if id isn't set, or isn't valid, redirect back to view page
    {header("Location: _Table.php?sort=id");}
?>
我还需要显示此文件夹中的Tiff图片。由于PHP不支持Tiff图像,有人知道如何将它们自动转换为Jpeg吗


谢谢

为什么文件夹的需要只是使文件夹与客户的名字,这是唯一的可能是客户的名字与暴徒。否。或者某些注册Id应该是唯一的或只有第二个。对于文件浏览,您可以使用。它不支持
.tiff
,但这是一个好的开始。非常感谢@mour:任何用户都可以访问每种类型的数据。然后每个记录可以有一个特定的目录,从中加载图片。你的问题解决了吗