Connecting Tech Pros Worldwide Help | Site Map

"PHP Users" include issue

  #1  
Old August 23rd, 2007, 03:35 PM
mejpark
Guest
 
Posts: n/a
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

  #2  
Old August 23rd, 2007, 05:05 PM
Jerry Stuckle
Guest
 
Posts: n/a

re: "PHP Users" include issue


mejpark wrote:
Quote:
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
>
Ask on Sourceforge where you got the package.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
  #3  
Old August 25th, 2007, 12:45 PM
mejpark
Guest
 
Posts: n/a

re: "PHP Users" include issue


On Aug 23, 4:54 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
Quote:
mejpark wrote:
Quote:
Good afternoon PHPers,
>
Quote:
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 "PHPUsers" directory.
>
Quote:
These errors were caused by incorrect paths inside theinclude,
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.
>
Quote:
When I access the script there is 1 warning and 1 fatal error
returned:
>
Quote:
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
>
Quote:
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
>
Quote:
I also tried undoing all the URL changes, and refreshing the page to
no avail. I have spent most of today trying to solve thisissue, and
it is turning out to be incredibly demoralising, as I cannot figure
out where the problem lies.
>
Quote:
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:
>
Quote:
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>
>
Quote:
I'd appreciate any pointers to resolve thisissue.
>
Quote:
Many thanks,
>
Quote:
Michael
>
Ask on Sourceforge where you got the package.
>
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstuck...@attglobal.net
==================
I did consider that, but I decided to post here because this board is
busier than the project page itself.

  #4  
Old August 25th, 2007, 03:35 PM
Jerry Stuckle
Guest
 
Posts: n/a

re: "PHP Users" include issue


mejpark wrote:
Quote:
On Aug 23, 4:54 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
Quote:
>mejpark wrote:
Quote:
>>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 "PHPUsers" directory.
>>These errors were caused by incorrect paths inside theinclude,
>>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.p hp 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 thisissue, 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 thisissue.
>>Many thanks,
>>Michael
>Ask on Sourceforge where you got the package.
>>
>--
>==================
>Remove the "x" from my email address
>Jerry Stuckle
>JDS Computer Training Corp.
>jstuck...@attglobal.net
>==================
>
I did consider that, but I decided to post here because this board is
busier than the project page itself.
>
First of all, this is not a "board". It is a Usenet newsgroup. It has
nothing to do with Google - Google just copies the messages from usenet.

Second of all, this is not the appropriate place for these questions.
This is for programming in PHP, not how to get a package to work.

You wouldn't ask how to install Linux in a C newsgroup, would you? Just
because Linux is written in C?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
New to C, "Undefined reference's" steve answers 4 December 2nd, 2007 01:25 PM
session_start issue paladin.rithe@gmail.com answers 5 October 10th, 2006 05:35 PM
"error_reporting" setting not being recognized in my php.ini file laredotornado@zipmail.com answers 1 October 3rd, 2006 03:25 PM
How can I implement the "Pushing" mode in Asp.Net application eXseraph answers 6 November 18th, 2005 11:11 PM