Reply to "PHP Users" include issue

Your name:

Reply:


Posted by mejpark on 08/23/07 14:26

Good afternoon PHPers,

This morning I downloaded "PHP Users" from sourceforge to implement a
user registration system. I followed the instructions in INSTALL.txt,
and successfully configured MySQL and set up an Apache Alias. Eclipse
reported several errors and warnings for scripts inside the "PHP
Users" directory.

These errors were caused by incorrect paths inside the include,
require-once and require statements. I changed all of these paths
until Eclipse reported no errors. Then I created a simple script
called register.php which includes loginbox.php to display the login
page.

When I access the script there is 1 warning and 1 fatal error
returned:

Warning: main(../users.inc) [function.main]: failed to open stream: No
such file or directory in C:\xampp\eclipse\workspace\MySite\php_users
\fragments\loginbox.php on line 2

Fatal error: main() [function.require]: Failed opening required '../
users.inc' (include_path='.;\xampp\php\pear\') in C:\xampp\eclipse
\workspace\MySite\php_users\fragments\loginbox.php on line 2

I also tried undoing all the URL changes, and refreshing the page to
no avail. I have spent most of today trying to solve this issue, and
it is turning out to be incredibly demoralising, as I cannot figure
out where the problem lies.

Maybe this is caused by a conflict with the include_path, as the error
references "\xamppp\php\pear"? Like I said, I created an Apache Alias
as instructed:

Alias /phpusers "c:/xampp/eclipse/workspace/MySite/php_users/htdocs/"
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
php_value include_path ".:c:/xampp/eclipse/workspace/MySite/
php_users/"
</IfModule>

I'd appreciate any pointers to resolve this issue.

Many thanks,

Michael

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация