Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with php pages on apache with mysql

Status
Not open for further replies.

rninja

Technical User
Apr 11, 2001
381
US
I installed Apache 2 using a source tar gzipped file.
Next I installed Mysql 4.0.1-alpha using redhat rpms.
Finally the PHP was installed from a source tar gzipped file.

My problem now is that the code that was working with apache_1.3.27, now doesn't work properly. I used to be able to use the login pages I made and those pages would fetch username and pass combo, then lead to the appropriate link stored in the database. Now, that same script seems to always return to an incorrect login page. I know the password and username are correct, so the php or mysql must be to blame. I don't know where to start. Does anyone know how I can fix this or go about diagnosing?

Thanks in advance! Rninja

smlogo.gif

 
check on rpmfind.net for a php-mysql rpm, these tend to work without having to recompile apache afterwards. ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Actually, I tried setting the password and username variables directly for testing and this is what I got:

Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0

I am not much of a programmer, so if someone could walk me through a replacement proceedure for the sessions statements I would be happy.

Thanks in advance! Rninja

smlogo.gif

 
post some code then , it always helps.

Also :

with particular note on :
Note: Session handling was added in PHP 4.0.

Note: Please note when working with sessions that a record of a session is not created until a variable has been registered using the session_register() function or by adding a new key to the $_SESSION superglobal array. This holds true regardless of if a session has been started using the session_start() function.
______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top