473,785 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"PHP Users" include issue

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\eclips e\workspace\MyS ite\php_users
\fragments\logi nbox.php on line 2

Fatal error: main() [function.requir e]: Failed opening required '../
users.inc' (include_path=' .;\xampp\php\pe ar\') in C:\xampp\eclips e
\workspace\MySi te\php_users\fr agments\loginbo x.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\pe ar"? 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

Aug 23 '07 #1
3 1937
mejpark wrote:
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\eclips e\workspace\MyS ite\php_users
\fragments\logi nbox.php on line 2

Fatal error: main() [function.requir e]: Failed opening required '../
users.inc' (include_path=' .;\xampp\php\pe ar\') in C:\xampp\eclips e
\workspace\MySi te\php_users\fr agments\loginbo x.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\pe ar"? 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.
js*******@attgl obal.net
=============== ===
Aug 23 '07 #2
On Aug 23, 4:54 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
mejpark wrote:
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\eclips e\workspace\MyS ite\php_users
\fragments\logi nbox.php on line 2
Fatal error: main() [function.requir e]: Failed opening required '../
users.inc' (include_path=' .;\xampp\php\pe ar\') in C:\xampp\eclips e
\workspace\MySi te\php_users\fr agments\loginbo x.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 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\pe ar"? 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...@attgl obal.net
=============== ===
I did consider that, but I decided to post here because this board is
busier than the project page itself.

Aug 25 '07 #3
mejpark wrote:
On Aug 23, 4:54 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
>mejpark wrote:
>>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\eclips e\workspace\MyS ite\php_users
\fragments\lo ginbox.php on line 2
Fatal error: main() [function.requir e]: Failed opening required '../
users.inc' (include_path=' .;\xampp\php\pe ar\') in C:\xampp\eclips e
\workspace\My Site\php_users\ fragments\login box.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 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\pe ar"? 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...@attg lobal.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.
js*******@attgl obal.net
=============== ===
Aug 25 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2179
by: Mike Bobbitt | last post by:
I've recently decided to switch from compiled Apache/PHP to RPM's of both and I'm having a problem I can't seem to solve. I have a Perl script called php_include.cgi that parses a PHP file for inclusion. It does this by running "php -f " but unfortunately it no longer works with the RPM: ---------- Security Alert! The PHP CGI cannot be accessed directly. This PHP CGI binary was compiled with force-cgi-redirect enabled. This
6
2522
by: Terence | last post by:
These comparrison articles are always fun :) http://otn.oracle.com/pub/articles/hull_asp.html
5
2997
by: Phil Powell | last post by:
I'm sorry but I can't figure out how to explain this any better than this. In PHP we have a command "require()" that obtains a file and logically places it into another file. I cannot figure out how to do this in bash script as the requirement is necessary for a migration script to obtain the code from a .cfg file and then be able for the "parent" script to run the code it "imported" from the .cfg file, much like PHP's require() or...
5
3212
by: Jim Carlock | last post by:
I've set up the following using an Alias in Apache... Alias /phpdocs/ "C:/Apache/htdocs/common/docs/php/" <Directory "C:/Apache/htdocs/common/docs/php"> Options Indexes FollowSymlinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory>
17
4250
by: StevePBurgess | last post by:
A really simple script is driving me up the wall. I have a very simply facility on a website to allow the user to reorder items in a database table as she wishes by clicking a link that (in this case) says "MOVE UP" and links to the script below. This script snippet that does all the work is shown - the database connection is established and after doing its work the script returns the user to the referring page.
0
1651
by: jhsedona | last post by:
I try to upgrade site from non-ssl to ssl site, but there are too mcuh thing to do. I decide to use url forwarding to https://www.domain.com for my whole site. When i go to 1st page of site, It says " Do you want to see secure and non secure page ? " If i say "yes", it does not show padlock(lock on bottom). When i login as user or admin, i can go to first page(https://www.domain.com) wihtout problem. Do i need make cookie ? or...
19
2577
by: hansBKK | last post by:
Upfront disclaimer - I am a relative newbie, just starting out learning about PHP, mostly by researching, installing and playing with different scripts. I am looking for a host that will provide the right environment for this - running a wide variety of PHP applications. I realise that security is also important, but for now flexibility is more important to me. Note that I'm **not** looking for people to recommend hosting companies, I...
5
3861
by: Summercoolness | last post by:
if you are just a users among the 100s of users on a hosting machines, then if you do a include("/main.php"); it won't include the file but will say Failed opening required '/main.php' (include_path='.:/usr/local/nf/ lib/php') it seems ok to include("../main.php"); except the file will not work if moved from www.abc.com/movies to a new location of www.abc.com/movies/little-mermaid is there a better solution for
4
6897
by: Mr Fuzzi | last post by:
Hi All, This morning I have installed and configured Apache, MySQL and PHP on a Windows Server 2003 machine. Everything appears to be working fine, except that I keep getting an error message each time PHP starts up: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_mysqli.dll' Invalid Access to memory location. I have checked the PHP and MySQL websites and it seems this is a known issue
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10329
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10152
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10092
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8974
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.