首页 \ 问答 \ Linux访问文件路径可以配置吗?

Linux访问文件路径可以配置吗?

如这样访问linux机子上的文件 http:ip/index.php index.php应该放在哪里?或者哪里可以配置路径?
更新时间:2022-06-11 20:06

最满意答案

数据库是一定要的,你可以将窗口设置得漂亮一点。用图片框这些的,做出水印的效果等等。然后,可以用函数在窗口上随机画点,线等。······

其他回答

如果你平时有许多同学和朋友的信息,试试在计算机上编写一个我这样的通讯录。非常方便的哟。   先新建一个工程,在“工具箱->右键->部件”添加“microsoft windows common control 6.0”,然后在窗体上添加五个标签,“标题”分别为 “姓名、电话、oicq、e-mail、地址”;添加一个文本框(text1), 然后[复制/粘贴4次]使其成为控件数组;添加一个listview控件(listview1),在其属性框中,添加五个“列首”,“文本”值分别为“姓名、电话、oicq、e-mail、地址”,“查看属性”为 “3-lvwreport”, 选中“整行选择”,取消“隐藏选择”;添加两个按钮,其标题属性分别为“添加”、“删除”。添加如下代码: 
  option explicit
  dim filename as string 
  private sub command1_click()
  ’将文本框中的信息添加到列表框中
  dim i as integer
   with listview1.listitems.add()
    .text = text1(0)
    for i = 1 to 4
    .subitems(i) = text1(i)
   next i
   end with
  end sub

  private sub command2_click()
  ’删除列表框中信息
  if listview1.listitems.count > 0 then
   if msgbox("真的要删除吗?", vbquestion + vbyesno + vbdefaultbutton2) = vbyes then
   listview1.listitems.remove listview1.selecteditem.index
   end if
  end if
  end sub

  private sub form_load()
  dim tpstr as string, i as integer
  filename = app.path & "\data.txt"
if dir(filename) <> "" then
   ’加载数据
   open filename for input as #1
    do while not eof(1)
     with listview1.listitems.add()
      for i = 0 to 4
       line input #1, tpstr
       if i = 0 then
        .text = tpstr
       else
        .subitems(i) = tpstr
       end if
      next i
     end with
    loop
   close #1
  end if
  end sub

  private sub form_unload(cancel as integer)
  dim i as integer
  dim tplist as listitem
  ’保存数据
  open filename for output as #1
   for each tplist in listview1.listitems
    print #1, tplist.text
    for i = 1 to 4
     print #1, tplist.subitems(i)
    next i
   next tplist
  close #1
  end sub

相关问答

更多
  • 如果使用android平台来开发的,数据库是用的litesql而不是mysql数据库, 首先要搭建android开发平台,当你搭建好了以后运行虚拟设备,就能看到他提供的源程序,建议先了解清楚android的开发基本知识,至少对android这个平台有了大概的认识就ok了。
  • 先设计数据库中通讯录表格(字段有:id,联系人姓名,手机号,备注),然后,hebinate实现数据库表到javabean的映射,同时也会生成对通讯录表格的增删改查的基本sql语句对应的接口。然后你再写一个Servlet,连接页面自己数据库操作接口即可
  • 你别侮辱了程式员。 如果你是想学习,我很愿意教你,如果你是所谓的兴趣而已,那么就更应该靠自己。 以上你所说的东西,很容易写,但是从我开始学的时候,你知道我花了多少时间才完成吗? 你不把问题发出来,一个语句一个小问题,那需要多少的实践? 鄙视你。
  • Private Sub Combo1_Click() Label1.Caption = Format("姓名:", "!@@@@@@@@@@@@@@") & Format("电话号码:", "!@@@@@@@@@@@@@@") & Chr(13) _ & Format(Combo1.Text, "!@@@@@@@@@@@@@@") & Format(Combo2.Text, "!@@@@@@@@@@@@@@") End Sub Private Sub Combo1_KeyPress(KeyAscii As ...
  • 你要什么样界面的 可否说清楚点
  • 数据库是一定要的,你可以将窗口设置得漂亮一点。用图片框这些的,做出水印的效果等等。然后,可以用函数在窗口上随机画点,线等。······
  • 如果不用ADO,可以使用: Data1.DatabaseName = 数据库所在路径和名称 Data1.Refresh Data1.RecordSource = "select * from 表名 where name =" & "'" & mno & "'" 你看看你的参数是否对应一致,mno定mon.
  • 就用文本的吧。或者用随机文件储存,很简单的。 '模块内容 Type address name As String * 8 QQ As String * 11 End Type '程序代码 '通用声明里定义 Dim address As address '先放一个按钮 command1 caption 为 添加 '放2个textbox 第一个是名字,第二个是QQ Private Sub Command1_Click() address.name = Text1.Text address.QQ = Text2. ...
  • 你用哪种方式打开数据库的?估计你那方式得在添加完成后再把数据库更新才可以的
  • 苹果手机在手机上不可以全部删除,只能逐条删除,删除方法,通讯录--点击要删除的联系人--编辑--拉到最下点击删除, 电脑可以全部一起删除, 下载同步助手--点击信息--看到联系人后就全选再点击删除; 91助手也可以删除,推荐同步助手

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。