![]() |
|
#1
|
|||
|
|||
PHP 4.4.0 -- not properly connecting to dbHello 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
|
||||
|
||||
|
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. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
||||
|
||||
|
Well, I took a quick look and what I searched for, I found:
Quote:
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 de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#4
|
|||
|
|||
|
Quote:
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
|
||||
|
||||
|
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. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
A Week in Kuwait by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help ! I need help starting up on Php ! | onauc | MySQL / PHP Forum | 11 | 04-Jan-2005 23:57 |
| uisng php to display php | dopee | MySQL / PHP Forum | 6 | 14-May-2004 18:40 |
| php software | dopee | MySQL / PHP Forum | 0 | 04-May-2004 11:26 |
| Optimizing your web server with Turck MMCache for PHP | JdS | Web Hosting Forum | 2 | 07-Jan-2004 07:48 |
| All the big PHP script collections that matter | jrobbio | MySQL / PHP Forum | 5 | 06-Jun-2003 16:14 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The