帮助 - 无法更改包含路径 [英] HELP - Can't change Include Path

查看:76
本文介绍了帮助 - 无法更改包含路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法改变我当地的winmachine上的包含路径没有

我做的事情。它出现在

includ_path .; c:\ php5 \pear in phpinfo()但是没有这样的文件。我在

下安装了WAMP包,PEAR在c:\ wamp \php \ itar


我在c:\\中修改了php.ini \\ wamp\php目录反映了实际的
路径,但即使停止并重新启动我的服务器也会显示c:

\ php5 \pear路径。无论我做什么我都不能改变它我也试过了

go.pear.bat文件无济于事。什么都行不通,我不能用梨。

帮助!!

解决方案

5月2日,晚上11点22分,cybervigilante< cybervigila ... @ gmail.comwrote:


我似乎无法改变我当地的winmachine上的包含路径

我的工作很重要。它出现在

includ_path .; c:\ php5 \pear in phpinfo()但是没有这样的文件。我在

下安装了WAMP包,PEAR在c:\ wamp \php \ itar


我在c:\\中修改了php.ini \\ wamp\php目录反映了实际的
路径,但即使停止并重新启动我的服务器也会显示c:

\ php5 \pear路径。无论我做什么我都不能改变它我也试过了

go.pear.bat文件无济于事。什么都行不通,我就不能用梨了。

求助!



如果你运行php作为apache模块然后你需要修改apache / bin目录中的

php.ini ,这是apache模块

php.ini文件。您修改的php.ini文件用于php-

cli.exe(命令行)php可执行文件。


On 5月2日下午3:44,shimmyshack< matt.fa ... @ gmail.comwrote:


5月2日晚上11点22分,cybervigilante< cybervigila ... @ gmail.comwrote:


我似乎无法改变我当地的winmachine上的包含路径没有

问题我所做的。



如果你运行php作为apache模块然后你需要修改apache / bin目录中的

php.ini ,



好​​的,我做到了。好主意 - 希望我能想到它。''')

不幸的是,我的编程仍然在梨上窒息。错误信息是:


警告:include(Mail.php)[function.include]:无法打开流:

C中没有此类文件或目录:第13行:\ wamp \\\\test\test.php

警告:include()[function.include]:无法打开''Mail.php'为

包含(include_path =''.; C:\ wamp \ php \ PEAR'')在C:\ wamp \ www \ test

\ test第13行.php

警告:include(Mail \mime.php)[function.include]:无法打开

stream:C中没有这样的文件或目录:\ wamp \\\\test\test.php在线

14

警告:include()[function.include]:打开''邮件失败在C:\ wamp \ www。

\test.php第14行

致命错误:在C:\ wamp \ www \测试中找不到类''Mail_mime'' test.php
第25行



这是php和sql目录中php.ini的php.ini路径:

include_path ="。; C:\ wamp \php \ PEAR"


以下是pear目录的实际winpath:C:\ wamp \ php \ PEAR


没有区别。我很难过。下面是使用Pear电子邮件的测试程序,

在远程linux服务器上工作并向我发送了一些邮件

没有错误消息。虽然我的gmail帐户选择邮件为

附件而不是html - 但gmail对于

html电子邮件真的很奇怪。我仍然没有想出他们接受的是什么,即使

我从他们那里得到了很多html电子邮件,所以必须有一些工作;'')

坦率地说,我可能会放弃html电子邮件作为麻烦,但我需要测试一下,看看它是否适用于我的家庭系统。如果某人

有一个简单的说明性测试脚本使用pear,那将有助于

,因为我无论如何都无法从我的家庭系统发送电子邮件。


哦,还有一件事使我对下面的编程感到困惑。我看到了html

消息,该消息应该是不可见的,因为它在一个PHP代码内部

块。可能是一个PHP错误,这带来了另一个点。我没有在网上看到

php错误,就像我一样。我如何让它们在线显示

因为那是我到目前为止唯一工作的地方,我需要

看错误。


刚刚检查了Yahoo邮件,并且css格式化的html很好。

Gmail使它成为附件必须是一个gmail错误,虽然我想要

知道我如何从gmail收到html电子邮件,然后;'')


另外,虽然邮件到了,但我在这里放了一些回音语句

和简化跟踪(自删除后)没有显示。

<!DOCTYPE HTML PUBLIC" - // W3C // DTD HTML 4.01 Transitional // EN" ;>

< html lang =" en">

< head>

< title> PHP留言簿< / title>

< / head>

< body>


< h1> mailtest< / h1>


<?php


include(''Mail.php'');

include(''Mail \ mime.php'');

HTMLmsg ="< h2 style =''color:red;背景色:紫红色;边框:



点缀; border-color:蓝色; font-family:sans-serif; font-style:

italic; margin-left:20%;填充:20; margin-right:30%;''>测试

格式化的电子邮件来自< br> Just Health Now服务器,带有html标题< /

h2>" ;


I can''t seem to change the include path on my local winmachine no
matter what I do. It comes up as
includ_path .;C:\php5\pear in phpinfo() but there is no such file. I
installed the WAMP package and PEAR is in c:\wamp\php\pear

I modified php.ini in the c:\wamp\php directory to reflect the actual
path, but even stopping and restarting my server shows the c:
\php5\pear path. I can''t change it no matter what I do I also tried
the go.pear.bat file to no avail. Nothing works and I can''t use PEAR.
Help!!

解决方案

On May 2, 11:22 pm, cybervigilante <cybervigila...@gmail.comwrote:

I can''t seem to change the include path on my local winmachine no
matter what I do. It comes up as
includ_path .;C:\php5\pear in phpinfo() but there is no such file. I
installed the WAMP package and PEAR is in c:\wamp\php\pear

I modified php.ini in the c:\wamp\php directory to reflect the actual
path, but even stopping and restarting my server shows the c:
\php5\pear path. I can''t change it no matter what I do I also tried
the go.pear.bat file to no avail. Nothing works and I can''t use PEAR.
Help!!

if you are running php as an apache module then you need to modify the
php.ini that is in the apache/bin directory, this is the apache module
php.ini file. the php.ini file you have modified is for the php-
cli.exe (commandline) php executable.


On May 2, 3:44 pm, shimmyshack <matt.fa...@gmail.comwrote:

On May 2, 11:22 pm, cybervigilante <cybervigila...@gmail.comwrote:

I can''t seem to change the include path on my local winmachine no
matter what I do.

if you are running php as an apache module then you need to modify the
php.ini that is in the apache/bin directory,

Okay, I did that. Good idea - wish I''d thought of it.;'')
Unfortunately, my prog is still choking on a Pear. Error message is:

Warning: include(Mail.php) [function.include]: failed to open stream:
No such file or directory in C:\wamp\www\test\test.php on line 13
Warning: include() [function.include]: Failed opening ''Mail.php'' for
inclusion (include_path=''.;C:\wamp\php\PEAR'') in C:\wamp\www\test
\test.php on line 13
Warning: include(Mail\mime.php) [function.include]: failed to open
stream: No such file or directory in C:\wamp\www\test\test.php on line
14
Warning: include() [function.include]: Failed opening ''Mail\mime.php''
for inclusion (include_path=''.;C:\wamp\php\PEAR'') in C:\wamp\www\test
\test.php on line 14
Fatal error: Class ''Mail_mime'' not found in C:\wamp\www\test\test.php
on line 25

Here is my php.ini path for the php.ini in both php and sql dirs:
include_path = ".;C:\wamp\php\PEAR"

Here is the actual winpath to the pear directory: C:\wamp\php\PEAR

No difference. I''m stumped. Below is the test prog using Pear email,
which did work on the remote linux server and sent me some mail
wihtout the error msgs. Although my gmail acct picked the mail up as
an attachment instead of as html - but gmail is really wierd about
html email. I still haven''t figured out what they accept, even though
I get a lot of html email from them, so something must work ;'')
Frankly, I may abandon html email as a nuisance, but I need to test
pear with something to see if it works on my home system. If someone
has a simple illustrative test script using pear, that would help
since I can''t send email from my home system anyway.

Oh, one other thing puzzled me about the prog below. I saw the html
message, which should be invisible, since it''s inside a php code
block. Could be a php error,which brings up another point. I don''t see
php errors online, like I do off. How do I make them display online
since that''s the only place I have pear working so far, and I need to
see errors.

Just checked Yahoo mail, and the css formatted html came out fine.
Gmail making it an attachment must be a gmail bug, although I''d like
to know how I am getting html email from gmail, then ;'')

Also, although the mail arrived, some echo statements I put in here
and there for a simpl trace (since deleted) didn''t show up.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<title>PHP Guestbook</title>
</head>
<body>

<h1>mailtest</h1>

<?php

include(''Mail.php'');
include(''Mail\mime.php'');


HTMLmsg = "<h2 style=''color:red; background-color: Fuchsia; border:
thick
dotted; border-color: Blue; font-family: sans-serif; font-style:
italic; margin-left: 20%; padding: 20; margin-right: 30%;''>Test of
formatted email from <br>Just Health Now server, with html headers</
h2>";


这篇关于帮助 - 无法更改包含路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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