调试CGI应用程序 - 从服务器删除图像 [英] Debugging CGI App - Delete image from server

查看:52
本文介绍了调试CGI应用程序 - 从服务器删除图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个脚本,允许用户将图像上传到服务器&将文件名写入平面文件DB。

我有另一个脚本,允许用户从数据库中删除图像条目。

有没有办法删除来自服务器文件夹的图像?


这是我用来删除数据库中条目的脚本:

展开 | 选择 | Wrap | 行号

解决方案

我看到的一件事是你在实际设置<之前定义


文件/ blockquote>

nktype是任何东西。


你看到什么错误,如果有的话?


问候,


Jeff


I have a script that allows the user to upload images to the server & writes the file name to a flat file DB.
I have another script that allows the user to delete the image entry from the DB.
Is there a way to also delete the image from the server folder as well?

Here is the script I am using to delete the entry in the DB:

Expand|Select|Wrap|Line Numbers

解决方案

One thing that I see is that you are defining


file before you actually set


nktype to be "anything".

What error are you seeing, if any?

Regards,

Jeff


这篇关于调试CGI应用程序 - 从服务器删除图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆