GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 09-Aug-2005, 15:31
tgo tgo is offline
New Member
 
Join Date: Aug 2005
Posts: 2
tgo is on a distinguished road
Exclamation

PHP 4.4.0 -- not properly connecting to db


Hello everyone,

I'm using:
PHP 4.4.0
MySQL 3.23.56
phpMyAdmin 2.6.2



In a nutshell... My website host just changed to PHP 4.4.0. But now, I'm having a serious problem.

When I get on my landing page (or whatever other page that fetches data from my DB), it works fine the first time around, i.e. the "latest news" that I added to my DB are displayed as supposed to do. All is good.

Now, if I hit the refresh button, or click to go on another section of my site... it doesnt work! My code outputs the error "Did not execute query".

So, we get to see a page from my site the first time I access it, but then... no more. UNLESS... I close all the Windows, and try it again. THEN, it would work.

Clearly, the problem is that it does not succeed in accessing the DB's content. It seems to me that it could be a "session problem". Could this be?

As anyone else encountered such a problem with the new PHP 4.4.0? Or could anyone give me hints as to where continue looking for help?

I checked the PHP 4 ChangeLog. I still dont see anythign that could help me.

Thank you in advance!
  #2  
Old 09-Aug-2005, 21:41
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Hello tgo,

I must admit, your post is the first time I heard that PHP has a new version out, i.e. 4.4.0.

Since I am not even aware of the version change, I cannot tell you what has changed just yet but if I were you, I'd search my scripts for the query which returns "Did not execute query" (on failure) and post that line here.
  #3  
Old 09-Aug-2005, 21:47
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Well, I took a quick look and what I searched for, I found:

Quote:
...PHP 4.4.0 does not have any new features, and is solely a bugfix release;..

So, it must be a setting in the php.ini file that was set differently between upgrades. My money is on the register_globals
  #4  
Old 09-Aug-2005, 22:38
tgo tgo is offline
New Member
 
Join Date: Aug 2005
Posts: 2
tgo is on a distinguished road
Question

Quote:
Originally Posted by JdS
Well, I took a quick look and what I searched for, I found:
...
So, it must be a setting in the php.ini file that was set differently between upgrades. My money is on the register_globals

J,
Thank you for replying. I will look into what you are saying.

Tell me... where can I find my php.ini file?? Is it usually located in a specific folder? I cannot find it. Perhaps our host made it is not accessible...
Let me know if you know of a way to access php.ini.

Thanks,
tgo
  #5  
Old 09-Aug-2005, 23:24
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
If you didn't do the upgrade, I have to assume you have no root access. Which means, there is no point for you to look for the php.ini file since you cannot do much with it anyway.

But if you have shell access to your remote server, you could issue a command like this:

find / -name php.ini

to locate the file.

Ultimately, I suggest you seek support from your host if you are not going to edit your scripts.

Also, there is this: http://www.desilva.biz/apache/regblsoff.html as an alternative but not recommended, suggestion.
 
 

Recent GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help ! I need help starting up on Php ! onauc MySQL / PHP Forum 11 05-Jan-2005 00:57
uisng php to display php dopee MySQL / PHP Forum 6 14-May-2004 19:40
php software dopee MySQL / PHP Forum 0 04-May-2004 12:26
Optimizing your web server with Turck MMCache for PHP JdS Web Hosting Forum 2 07-Jan-2004 08:48
All the big PHP script collections that matter jrobbio MySQL / PHP Forum 5 06-Jun-2003 17:14

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 19:33.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.