Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > MISCELLANEOUS > Archives > Bug Report 1.4.x

Thread Closed
 
Thread Tools
  #11  
Old 04-14-2005, 04:52 PM
tark Offline
forum loafer
 
Join Date: Apr 2005
Location: Czech Republic :-)
Posts: 8
Send a message via ICQ to tark
Quote:
Originally Posted by raminia
at which line?
where was the error? tell me complete!
Fatal error: Call to undefined function mysql_connect() in C:\dev\www\pixelpost2\includes\functions.php on line 162

And I've got Apache 2.0.49, PHP 5 and MySQL 4.1 ... With MySQL 4.0 system work. :-)
__________________
Miroslav Navratil
My items are only experiments of English, I learn English. :-D
http://kanevinternetu.blacksuns.net/fotoblog.php - my photoblog :-)
  #12  
Old 04-14-2005, 04:53 PM
tark Offline
forum loafer
 
Join Date: Apr 2005
Location: Czech Republic :-)
Posts: 8
Send a message via ICQ to tark
Quote:
Originally Posted by GeoS
I've got next idea - maybe we should use ADODB interface to DB?? I could make PP DB server independent (if we add correct SQL for the most popular of them).
Yeah, it's good idea.
__________________
Miroslav Navratil
My items are only experiments of English, I learn English. :-D
http://kanevinternetu.blacksuns.net/fotoblog.php - my photoblog :-)
  #13  
Old 04-14-2005, 04:56 PM
tark Offline
forum loafer
 
Join Date: Apr 2005
Location: Czech Republic :-)
Posts: 8
Send a message via ICQ to tark
Quote:
Originally Posted by raminia
do you have PHP 5 ?
I think so! I changed the file I provided before. download it again and tell me what happend.

changed function
Code:
function start_mysql()
{
	global $pixelpost_db_host, $pixelpost_db_user, $pixelpost_db_pass, $pixelpost_db_pixelpost;
	mysql_connect($pixelpost_db_host, $pixelpost_db_user, $pixelpost_db_pass) || die("Error: ". mysql_error());
	$mysql_version = mysql_get_server_info();
	if ((substr($mysql_version,0,3)=="4.1" || substr($mysql_version,0,2)=="5.")& substr(phpversion(),0,1)=="5")
	{
	  // MYSQL 4.1.x OR 5.x
		mysqli_select_db($pixelpost_db_pixelpost) || die("Error: ". mysql_error());
		}
	else
	{ // MYSQL 4.0.x
		mysql_select_db($pixelpost_db_pixelpost) || die("Error: ". mysql_error());
		}
}
and functions mysql_connect, mysql_error and 10 other functions...
__________________
Miroslav Navratil
My items are only experiments of English, I learn English. :-D
http://kanevinternetu.blacksuns.net/fotoblog.php - my photoblog :-)
  #14  
Old 04-14-2005, 05:07 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
Quote:
Originally Posted by tark
and functions mysql_connect, mysql_error and 10 other functions...
And that is a reason why ADODB would be the bast solution
__________________
photoblog | portfolio | addons | Donate
  #15  
Old 04-14-2005, 05:18 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
errors in function call could be a reason to change the DB?
I'dont agree.
report your PHP version plz!

I think you have don something wrong or have not supported unstable versions of PHP or Mysql!
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
  #16  
Old 04-14-2005, 05:36 PM
Rob Offline
pixelpost guru
 
Join Date: Mar 2005
Location: Burlington, Canada
Posts: 342
Send a message via ICQ to Rob Send a message via MSN to Rob
Raminia, you have probably already read this, but...

Quote:
In PHP 5, MySQL is no longer enabled by default, nor is the MySQL library bundled with PHP. Read this FAQ for details on why.

Note: Windows users will need to enable php_mysql.dll inside of php.ini and either copy libmysql.dll into the Windows system directory, or make it available to the PATH.

This will fix "Unable to load dynamic library './php_mysql.dll'" errors.

For compiling, simply use --with-mysql=[DIR] where [DIR] points to your MySQL installation directory.

This MySQL extension doesn't support full functionality of MySQL versions greater than 4.1.0. For that, use MySQLi.

If you would like to install the mysql extension along with the mysqli extension you have to use the same client library to avoid any conflicts.
Note, it is not just the connect functions, but all of the functions for the MySQL extension that are not supported. In order to support this, I think we need to wrap all of our queries.

What we need is adodb, or our own database class to wrap this...

As for this person, I think all we can say for now is unsupported. If he can though, he can probably enable the MySQL extension and get it to work, especially if he is on a windows box.
__________________
shifted*exposure powered by PixelPost 1.4
  #17  
Old 04-14-2005, 06:03 PM
Anonymous Offline
pixelpost guru
 
Join Date: Oct 2004
Posts: 810
no I didn't noticed this. Just when I was installing my MYSQL 4 on local machine. I underestand and agree now.

Ramin
(Raminia not logged in)
  #18  
Old 04-14-2005, 08:02 PM
raminia's Avatar
raminia+ Offline
Team Pixelpost
 
Join Date: Jan 2005
Location: FL, US
Posts: 3,706
Send a message via Yahoo to raminia
wordpress currently uses mysql and php and there is a big challenge there for supporting other databases
Read this:
http://codex.wordpress.org/Using_Alternative_Databases

maybe we should use ezsql too : http://php.justinvincent.com/home/ar...hp?articleId=2

BTW, hosting services usually support the MYSQL and PHP requirements. Is it a big deal?
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7
  #19  
Old 04-14-2005, 08:13 PM
GeoS's Avatar
GeoS+ Offline
Team Pixelpost
 
Join Date: Apr 2005
Location: Warsaw, Poland
Posts: 3,613
Send a message via ICQ to GeoS Send a message via Skype™ to GeoS
IMHO ADODB is much more powerful and better coz:
- is used by more big PHP & SQL based aplication such as: ACID, PostNuke, Xaraya, phpWiki, Mambo, PHP GACL, TikiWiki, eGroupWare and phpLens App Server
- what is more importent, support more DBs (http://phplens.com/adodb/supported.databases.html)

http://adodb.sourceforge.net/

PS We should use ANSI SQL (& as I looked to SQL code there is more or less as simply and clear as ANSI SQL). This can give us 100% support for all DBs with one common SQL code (only DB creation code can look not the same)
__________________
photoblog | portfolio | addons | Donate
  #20  
Old 04-15-2005, 11:56 AM
tark Offline
forum loafer
 
Join Date: Apr 2005
Location: Czech Republic :-)
Posts: 8
Send a message via ICQ to tark
Quote:
Originally Posted by raminia
errors in function call could be a reason to change the DB?
I'dont agree.
report your PHP version plz!
PHP 5.0.3 ;-)

Quote:
Originally Posted by raminia
I think you have don something wrong or have not supported unstable versions of PHP or Mysql!
Yeah, but i've got MySQL 4.1.10a-nt on WinXP... IMHO it's official version.
__________________
Miroslav Navratil
My items are only experiments of English, I learn English. :-D
http://kanevinternetu.blacksuns.net/fotoblog.php - my photoblog :-)
Thread Closed


Thread Tools




All times are GMT. The time now is 08:13 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs