Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

RH8 PHP mysQL does Not work

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

RH8 PHP mysQL does Not work

Postby kleinb » Tue Mar 18, 2003 8:35 pm

on RedHat 8 installed php-4.2.2-8.0.5.i386.rpm
And php-mysql-4.2.2-8.0.5.i386.rpm
but php says undefined function mysql_connect()

Is it worth uninstalling 5 and installing php-4.2.2-8.0.7.i386.rpm etc?

I gets weary of all dese Linux version suffices
doin de Linux version shuffle.....
kleinb
New php-forum User
New php-forum User
 
Posts: 3
Joined: Tue Mar 18, 2003 8:17 pm

Postby kleinb » Tue Mar 18, 2003 9:42 pm

And the trivial fix is:
restart httpd (the server formerly known as Apache)
as well as mysql

now mySQL looks lilke its workng!
kleinb
New php-forum User
New php-forum User
 
Posts: 3
Joined: Tue Mar 18, 2003 8:17 pm

Graphics Not working

Postby kleinb » Wed Mar 19, 2003 6:25 pm

And Now: Getting PHP graphics to work
I did the rpm install thing and phpinfo() has this:

'--with-gd' '--enable-gd-native-ttf'

does this mean that GD graphics should work?
===============================================
I try graphics and get this message:

The image http://localhost/graph23.php cannot be displayed, because it contains errors.

when I get a message "contains errors" I know I have regressed back to a time before 1986 when compilers began to report error number & line numbers.

===============================================
this is graph23.php

<?php header("content-type:image/png");
$Image=ImageCreate(400,200);
$green=ImageColorAllocate($Image,0,255,0);
$red=ImageColorAllocate($Image,255,0,0);
imagesetthickness($Image,5);
Imageline($Image,10,10,200,150,$red);
ImagePNG($Image);
ImageDestroy($Image);
?>
===============================================
so what are the errors contained in this, the simplest graphics demo
I can find?
+++++++++++++++++++++++++++++++++++++++++++++++
kleinb
New php-forum User
New php-forum User
 
Posts: 3
Joined: Tue Mar 18, 2003 8:17 pm


Return to PHP Installation

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.