首页 \ 问答 \ 无法打开流没有这样的文件或目录。(Failed to open stream no such file or directory. php)

无法打开流没有这样的文件或目录。(Failed to open stream no such file or directory. php)

我有一个文件Profile.php ,其中包括Profile_Control.phpprofile_control包括Profile_Model.php 。 每件事情都很好,直到这里。

我有另一个名为Upload.php脚本,可以从中上载数据。 这Upload.php还包括Profile_Control.php ,因为你知道Profile_Control包括Profile_Model.php 。现在我不知道为什么它给这样的错误。当Profile.php加载它工作正常,但是当我上传数据它说

Warning: include(../Model/Profile_Model.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\php\gagster\Control\Profile_Control.php on line 4

在Upload.php中:

include_once("../../Control/Profile_Control.php");

在Profile.php中:

include_once("../Control/Profile_Control.php");

在Profile_Control.php中:

include_once("../Model/Profile_Model.php");

文件结构:

 +-Control/
 |  |    
 |  +---- Profile_Control.php
 |
 +-Model/
 |  |
 |  +---- Profile_Model.php
 |
 +-Other/
    |
    +-- Upload/
           |
           +---- Upload.php

I've a file Profile.php which includes Profile_Control.php and the profile_control includes Profile_Model.php . Every things works fine till here.

I've another script named Upload.php from which data gets uploaded. This Upload.php also includes Profile_Control.php and as you know Profile_Control includes Profile_Model.php.Now I dont know why it is giving such an error.When the Profile.php loads it works fine but when I upload the data it says

Warning: include(../Model/Profile_Model.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\php\gagster\Control\Profile_Control.php on line 4

In Upload.php :

include_once("../../Control/Profile_Control.php");

In Profile.php :

include_once("../Control/Profile_Control.php");

In Profile_Control.php:

include_once("../Model/Profile_Model.php");

Document Structure:

 +-Control/
 |  |    
 |  +---- Profile_Control.php
 |
 +-Model/
 |  |
 |  +---- Profile_Model.php
 |
 +-Other/
    |
    +-- Upload/
           |
           +---- Upload.php

原文:https://stackoverflow.com/questions/12445241
更新时间:2024-01-29 22:01

最满意答案

这就是VLOOKUP的用途。 把你的桌子放在A1:B6中,然后:

=VLOOKUP(Q27,A:B,2,FALSE)

或者你可以像这样“硬编码”VLOOKUP:

=VLOOKUP(Q27,{"A",0;"B",5940;"C",13860;"D",22500;"E",87300;"F",378000},2,FALSE)

要么:

=INDEX({0,5940,13860,22500,87300,378000},MATCH(Q27,{"A","B","C","D","E","F"},0))

That is what VLOOKUP is for. Put your table in A1:B6 then:

=VLOOKUP(Q27,A:B,2,FALSE)

Or you can "Hard Code" the VLOOKUP like this:

=VLOOKUP(Q27,{"A",0;"B",5940;"C",13860;"D",22500;"E",87300;"F",378000},2,FALSE)

Or:

=INDEX({0,5940,13860,22500,87300,378000},MATCH(Q27,{"A","B","C","D","E","F"},0))

相关问答

更多
  • 除以20(页面大小)和圆形结果。 像这样的东西: const idx = query.idx; const page = Math.ceil((idx + 1) / 20) console.log(page); 几个测试: [ 1, 5, 15, 19, 20, 21, 36, 39, 40, 41, 49, 59, 60, 68, ].forEach(idx => { console.log(idx, Mat ...
  • 如你所知,如果last的输出有一个! ,脚本会分割该字符的输入行。 last的输出格式不是标准化的(例如不在POSIX中),但你不太可能找到一个系统,其中第一列包含除了发起动作之外的任何内容的名称。 例如,我看到了这个: tom pts/8 Wed Apr 27 04:25 still logged in michener.jexium-island.net tom pts/0 Wed Apr 27 04:15 still logged in ...
  • 您可以使用嵌套的if()执行此操作: =if(and(a1="",b2="",c2=""), output1, if(and(b2="", c2=""), output2, if(c2="", output3, output4))) 逻辑如下: 第一个条件测试所有三个是否为空白。 如果不是,则第二个条件测试b2和c2 。 如果这些是空白的,则a1必须不是(否则它将被第一个条件捕获)。 第三个只需要检查c2以区分output3和output4 。 You can do this wit ...
  • 这就是VLOOKUP的用途。 把你的桌子放在A1:B6中,然后: =VLOOKUP(Q27,A:B,2,FALSE) 或者你可以像这样“硬编码”VLOOKUP: =VLOOKUP(Q27,{"A",0;"B",5940;"C",13860;"D",22500;"E",87300;"F",378000},2,FALSE) 要么: =INDEX({0,5940,13860,22500,87300,378000},MATCH(Q27,{"A","B","C","D","E","F"},0)) That is ...
  • 您的公式中有一些额外的括号。 我不能测试这个,因为我没有你的数据或知道你试图用你的公式实现什么,但如果你试图结合两个必须为真的条件,那么你将使用AND语句并将每个条件与a,正如我在您编辑的公式中所做的那样: =IFS(COUNTIFS('DATA'!$A:$A,$A17,'DATA'!$M:$M,"02 - B")=0,"0", COUNTIFS('DATA'!$A:$A,$A17,'DATA'!$C:$C,"A - Open",'DATA'!$M:$M,"02 - B")>0,"1", AND(C ...
  • 您需要在两个if函数之间添加“&”符号。 尝试下面一个。 = O21 / INDIRECT(IF(C2> E2,“E”,IF(C2> F2,“F”,IF(C2> G2,“G”,“H”)))和IF(A2> B2,34, 35))+ O22 Your need to add a "&" symbol between two if function. Try following one. =O21/INDIRECT(IF(C2>E2,"E",IF(C2>F2,"F",IF(C2>G2,"G","H"))) & I ...
  • 使用hexdump可以让我们准确地看到构成输出的字符,因此稍微更改一下查询可能会有所帮助: (1)使用正常的IFS并使用-N选项 $ (echo 'a b' | while read -N1 c; do c="$c<"; echo -n "$c"; done | hexdump -C) 00000000 61 3c 3c 62 3c 3c |a<
  • = YEAR(A1)& “0” &MOD(MONTH(A2)-7,12-)+1 =YEAR(A1)&"0"&MOD(MONTH(A2)-7,12)+1

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)