473,471 Members | 4,616 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problems with Website / PHP

I have rescently upgraded to Fedora Core 1 on my web server with the
following upgraded packages installed:

php-4.3.6-1.3
php-mysql-4.3.6-1.3
mysql-3.23.58-4
mod_auth_mysql-20030510-3
mysql-server-3.23.58-4
httpd-2.0.49-1.1

Now this snippet of code will not work on any of my websites:

<?php

include ("/opt/web/sys/include/functions.inc");
include ("/opt/web/sys/include/basic.inc");

dbconnect ($dbname="mysql", $user="user", $password="A_Public_Password",
$server="localhost");

$staffname = db_authenticate($table="mysql.user",$realm="A_Web_ Site",
$errmsg="Please enter a username and password",$user_field="",
$password_field="");

dbconnect ($dbname="auth_users", $user=$PHP_AUTH_USER, $password=
$PHP_AUTH_PW, $server="localhost");

?>

Can anybody tell me why? Thanks in advance.

BTW, I realize this isn't very secure. I just use to keep internal users
out of intranets they shouldn't be in.

-Penfold
---
Dangermouse: Penfold..?
Penfold: Yes...
Dangermouse: Shush!
Penfold: Oh Ick!

Jul 17 '05 #1
4 1532
Penfold wrote:
I have rescently upgraded to Fedora Core 1 on my web server with the
following upgraded packages installed: (snip) Can anybody tell me why? Thanks in advance.


Yesterday I changed my car's battery for a new, more powerful one.
Now it won't start. Can you tell me why? :-)





Maybe you'd like to know if the cables are securely connected???
What happens when I turn the key???
If the emergency lights works???
If there is fuel in the tank???

Same thing here.
We'd like to know what error messages you get.
We'd like to know what are those dbconnect() and db_authenticate().
We'd like to know whether you have register_globals off.
We'd like to know if a simple script (<?php echo "Hi"; ?>) works.
....

SCNR :-)

--
USENET would be a better place if everybody read: | to email me: use |
http://www.catb.org/~esr/faqs/smart-questions.html | my name in "To:" |
http://www.netmeister.org/news/learn2quote2.html | header, textonly |
http://www.expita.com/nomime.html | no attachments. |
Jul 17 '05 #2
Penfold wrote:
<?php

include ("/opt/web/sys/include/functions.inc");
include ("/opt/web/sys/include/basic.inc");

dbconnect ($dbname="mysql", $user="user", $password="A_Public_Password",
$server="localhost");

$staffname = db_authenticate($table="mysql.user",$realm="A_Web_ Site",
$errmsg="Please enter a username and password",$user_field="",
$password_field="");

dbconnect ($dbname="auth_users", $user=$PHP_AUTH_USER, $password=
$PHP_AUTH_PW, $server="localhost");


My guess is register_globals used to be on and is now off (default in
the latest php releases). You can find the register_globals setting in
php.ini.

Regards,
Ruben.
Jul 17 '05 #3
Penfold wrote:
<?php

include ("/opt/web/sys/include/functions.inc");
include ("/opt/web/sys/include/basic.inc");

dbconnect ($dbname="mysql", $user="user", $password="A_Public_Password",
$server="localhost");

$staffname = db_authenticate($table="mysql.user",$realm="A_Web_ Site",
$errmsg="Please enter a username and password",$user_field="",
$password_field="");

dbconnect ($dbname="auth_users", $user=$PHP_AUTH_USER, $password=
$PHP_AUTH_PW, $server="localhost");


My guess is register_globals used to be on and is now off (default in
the latest php releases). You can find the register_globals setting in
php.ini.

Regards,
Ruben.

Jul 17 '05 #4
Ruben van Engelenburg <ru***@textinfo.nl> wrote in
news:40***********************@news.wanadoo.nl:
Penfold wrote:

<snip>

My guess is register_globals used to be on and is now off (default in
the latest php releases). You can find the register_globals setting in
php.ini.

Regards,
Ruben.


That worked. Thanks.

--
-Penfold
---
Dangermouse: Penfold..?
Penfold: Yes...
Dangermouse: Shush!
Penfold: Oh Ick!
Jul 17 '05 #5

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

Similar topics

19
by: Bill Davidson | last post by:
My wife's friend had a website built for his company, and it looks great using a PC. When viewed on a Mac using either Safari or Explorer the formatting is terrible. The home page is not too...
13
by: nick4soup | last post by:
General advice wanted: Some web sites (including two large companies in Australia) get themselves awfully confused if the user presses the BACK button in their browser (and possibly the forward...
3
by: John Tacke | last post by:
When developing ASP.NET apps using Microsoft's recommended isolated model (develop on your local iis), there are deployement reference problems because the local website is generally one level deeper...
3
by: Brian Bischof | last post by:
I have a bunch of happy customers all using my ASP.NET but then just got a call from a Mac user who has many, many, many problems. I don't even own a Mac or know how to turn one on! The site has...
3
by: armando perez | last post by:
Hi, this is my first time here, but I was looking for something that may help me, and still, I haven't found something to use. I'm using a website made in .NET with C#, when I'm running my site...
8
by: Mike Owen | last post by:
Hi, I am using the following code to send email on a Windows 2003 Web Server: Imports System.Net.Mail ........ Dim msgmail As New MailMessage msgmail.To.Add(New...
1
by: Sridhar | last post by:
Hi, I am having problems setting up a website which needs to be available only inside the domain. I have set up a website on one of our servers. When I remote in to the server and login to the...
3
by: i80and | last post by:
I'm working on a basic web spider, and I'm having problems with the urlparser. This is the effected function: ------------------------------ def FindLinks(Website): WebsiteLen = len(Website)+1...
8
by: Porkie999 | last post by:
Ok guys i have two problems here if you have a solution for either please just post the problem number either 1 or 2 then post the fix Thanks in Advance Regards george...
2
by: Wayne Smith | last post by:
Applies to: Visual Studio 2008 Professional Hi everyone, I'm in the middle of creating a website with VS2008 and I'm trying to integrate a user registration/login section on the website but I've...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
1
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...
0
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,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
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.