AJAX / JQUERY帖子,包括


                    

发现这个令人困惑的地方... </ p>

如果用户填写联系表(contactus.php)并使用AJAX / JQuery将表单提交给(process.php),则在(process.php)上有一个include函数,但PHP文件不是 被包括在内。</ p>

为什么会这样?</ p>

大声笑,如果有道理。 所有帮助将不胜感激。</ p>

  include(“ file_name_goes_here.php”);
</ code> </ pre>

OR_ _ </ em> __ _ </ em> __ _ </ em> __ _ </ em> __ _ </ em > __ _ </ em> __ _ </ em> __ _ </ em> __ _ </ em> __ _ </ em> __ _ </ em> __ _ </ em> __ _ </ em> __ _ </ em> __ _ </ em> __ _ </ em> __ _ </ em> </ strong> </ p>

我怎样才能使(index.php)以php编码形式读取文本文件的内容,然后执行呢?</ p>

  $ data = file_get_contents(“ file.txt”);
</ code> </ pre>
     </ div>

展开原文

原文

Find this confusing...

If a user fills in a contact form (contactus.php) and submits the form using AJAX/JQuery to (process.php) and on the (process.php) there is a include function but the PHP file isn't being included..

Why could that be??

LOL if it makes sense. All help would really be appreciated.

include("file_name_goes_here.php");

OR__________________________________________________

How can I make (index.php) read a text file's contents as php coding and then excute it?

$data = file_get_contents("file.txt");

1个回答


您可以将txt文件作为字符串加载并使用 eval ? 注意:我并不是说这是个好主意!</ p>
     </ div>

展开原文

原文

Can you load your txt file as a string and use eval? Note: I'm not suggesting this is a good idea!

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐