Ask a Question related to PHP Development, Design and Development.
-
NothingHere #1
Problem after an upgrade to php 5.0.1 and Apache 1.3.31
Hello,
I have upgraded, on linux redhat 8, to Apache 1.3.31 and PHP 5.0.1.
I think all was good but, POST method on Form did not work, and create of
mysql db wouldn't work ( with mysql_create_db() I have the error "Call to
undefined function : mysql_create_db()").
I think I have doing something wrong when I was installing PHP, so I have
rebuild it with a minimal configuration (just mysql, apxs, and
config-file-path ).
Nothing appens ... same problem as above.
I decided to go back to my old PHP (4.3.2) and Apache (1.3.29) ... always
same problem (and I've tested with all my config option or just basic config
option).
I need to use mysql_create_db() (yes I know it's depreciated), and of course
I need to use the post method in my form.
I've try to not specify my mysql dir when I do "./configure --with-mysql",
but I need to specify on configure of PHP where mysql is ( so I use
../configure --with-mysql=/opt/mysql ).
All other query between php and mysql seem to work fine ( and PHPMyAdmin
works fine ! ).
Anyone have an idea ? I fond nothing on google ...
Please, need help ... really !
NothingHere Guest
-
UPGRADE PROBLEM 10.3
Same problem here - running OS 10.2.8 Interesting thing is that although the 10.0.3 upgrade says it will upgrade to "MacOSClassic" folder - I did... -
Upgrade 1 to1.1 Problem need help
I upgraded VS 2003 and asked my ISP (MaximumASP) to upgrade the server to net 1.1. That was two weeks ago and I am having a problem that will not go... -
Apache::Test, Apache::Request, libapreq, mod_perl. Installation Problem.
Hi everyone, If anyone has any insight into my problem, it would be much appreciated. I'm trying to install Scoop (scoop.kuro5hin.org) to run on... -
Problem with Apache Web Server config file and PHP (please give advice on what problem may be me)
HI: Can anyone refer me to someone that can help with the problem below. I installed Apache Web Server on my laptop which has Windows XP. I... -
SUN PCI problem after OS upgrade
I recently ugraded the O/S on my Ultra 5 from Solaris 8 to 9. I was then unable to start Windoze owing to a font problem. That's solved thanks to... -
Polaris #2
Re: Problem after an upgrade to php 5.0.1 and Apache 1.3.31
"NothingHere" <nothing_h@hotmail.com> schreef in bericht
news:ci4lli$ff8$1@news-reader3.wanadoo.fr...config> Hello,
>
> I have upgraded, on linux redhat 8, to Apache 1.3.31 and PHP 5.0.1.
> I think all was good but, POST method on Form did not work, and create of
> mysql db wouldn't work ( with mysql_create_db() I have the error "Call to
> undefined function : mysql_create_db()").
>
> I think I have doing something wrong when I was installing PHP, so I have
> rebuild it with a minimal configuration (just mysql, apxs, and
> config-file-path ).
> Nothing appens ... same problem as above.
>
> I decided to go back to my old PHP (4.3.2) and Apache (1.3.29) ... always
> same problem (and I've tested with all my config option or just basiccourse> option).
>
> I need to use mysql_create_db() (yes I know it's depreciated), and ofSo php and mysql are working fine...So the config from apache is ok an> I need to use the post method in my form.
>
> I've try to not specify my mysql dir when I do "./configure --with-mysql",
> but I need to specify on configure of PHP where mysql is ( so I use
> ./configure --with-mysql=/opt/mysql ).
>
> All other query between php and mysql seem to work fine ( and PHPMyAdmin
> works fine ! ).
dphi.ini seems to be fine to...
Try next script:> Anyone have an idea ? I fond nothing on google ...
>
> Please, need help ... really !
>
>
<?php
// you need to replace server, username and paswword with your own data
$link = mysql_connect("server", "username", "password")
or exit("Can not make an connection: " . mysql_error());
if (mysql_create_db("my_db")) {
print ("Database successfully created\n");
} else {
printf ("Error with creation of database: %s\n", mysql_error());
}
?>
What does the script do? Errors or warnings...
Polaris.
Polaris Guest
-
NothingHere #3
Re: Problem after an upgrade to php 5.0.1 and Apache 1.3.31
"Polaris" <ask4polaris@hotmail.com> a écrit dans le message de
news:4145e250$0$62352$5fc3050@dreader2.news.tiscal i.nl...data>> Try next script:> >
> <?php
> // you need to replace server, username and paswword with your ownI found, for the first problem, that register_global where Off, not On> $link = mysql_connect("server", "username", "password")
> or exit("Can not make an connection: " . mysql_error());
> if (mysql_create_db("my_db")) {
> print ("Database successfully created\n");
> } else {
> printf ("Error with creation of database: %s\n", mysql_error());
> }
> ?>
>
> What does the script do? Errors or warnings...
>
> Polaris.
(sorry that was a stupid mistake ;) ) but now it's work !
--
For the problem of "mysql_create_db()" I've try your script, and replace
username & password with root ones.
Thats what I have :
Fatal error: Call to undefined function mysql_create_db() in
/var/www/polaristest.php on line 5
Thats help you on something ? ... not me ... :(
Thanks for help ...
- Nothing
NothingHere Guest
-
Polaris #4
Re: Problem after an upgrade to php 5.0.1 and Apache 1.3.31
"NothingHere" <nothing_h@hotmail.com> schreef in bericht
news:ci56oo$rfg$1@news-reader5.wanadoo.fr...replace this line: if (mysql_create_db("my_db")) {>
> "Polaris" <ask4polaris@hotmail.com> a écrit dans le message de
> news:4145e250$0$62352$5fc3050@dreader2.news.tiscal i.nl...> data> >> > Try next script:> > >
> > <?php
> > // you need to replace server, username and paswword with your own>> > $link = mysql_connect("server", "username", "password")
> > or exit("Can not make an connection: " . mysql_error());
> > if (mysql_create_db("my_db")) {
> > print ("Database successfully created\n");
> > } else {
> > printf ("Error with creation of database: %s\n", mysql_error());
> > }
> > ?>
> >
> > What does the script do? Errors or warnings...
> >
> > Polaris.
> I found, for the first problem, that register_global where Off, not On
> (sorry that was a stupid mistake ;) ) but now it's work !
>
> --
>
> For the problem of "mysql_create_db()" I've try your script, and replace
> username & password with root ones.
> Thats what I have :
> Fatal error: Call to undefined function mysql_create_db() in
> /var/www/polaristest.php on line 5
>
> Thats help you on something ? ... not me ... :(
>
>
> Thanks for help ...
>
> - Nothing
>
>
with: if (mysql_query("CREATE DATABASE my_db")) {
What does it do now? Errors /warnings...
I'm not giving up so fast ;-)
Polaris Guest
-
LÄÊ»ie Techie #5
Re: Problem after an upgrade to php 5.0.1 and Apache 1.3.31
On Tue, 14 Sep 2004 00:25:35 +0200, NothingHere wrote:
register_global is dangerous as it could overwrite any variables used by> I found, for the first problem, that register_global where Off, not On
> (sorry that was a stupid mistake ;) ) but now it's work !
your script! remember that register_globals creates variables for _all_
parameters passed in, not just the ones you were expecting.
It tells me that PHP 5 does not include MySQL support by default (some> For the problem of "mysql_create_db()" I've try your script, and replace
> username & password with root ones.
> Thats what I have :
> Fatal error: Call to undefined function mysql_create_db() in
> /var/www/polaristest.php on line 5
>
> Thats help you on something ? ... not me ... :(
licensing issue). You need to recompile, telling configure where your
MySQL install root is:
configure --with-mysql=/usr
HTH,
La'ie Techie
LÄÊ»ie Techie Guest
-
NothingHere #6
Re: Problem after an upgrade to php 5.0.1 and Apache 1.3.31
"Polaris" <ask4polaris@hotmail.com> a écrit dans le message de
news:41462145$0$62374$5fc3050@dreader2.news.tiscal i.nl...That's works ... I have that :> replace this line: if (mysql_create_db("my_db")) {> >
> with: if (mysql_query("CREATE DATABASE my_db")) {
>
> What does it do now? Errors /warnings...
> I'm not giving up so fast ;-)
>
>
" Database successfully created "
And I check in phpmyadmin : "my_db" exist ...
I don't want to change all my script with this line ... so, how can I get
mysql_create_db to works ?
It's stop working since I have upgraded to php 5.0.1 ... before with php
4.3.2 it's works fine ...
.... Thanks for help ;)
NothingHere Guest
-
NothingHere #7
Re: Problem after an upgrade to php 5.0.1 and Apache 1.3.31
"La?ie Techie" <laie@win_remove_get_nospam_solutions.com> a écrit dans le
message de news:1095139809.xoBANyWg+FPZCtRVpTgK3A@teranews...Thanks, I would check that ...> On Tue, 14 Sep 2004 00:25:35 +0200, NothingHere wrote:
>>> > I found, for the first problem, that register_global where Off, not On
> > (sorry that was a stupid mistake ;) ) but now it's work !
> register_global is dangerous as it could overwrite any variables used by
> your script! remember that register_globals creates variables for _all_
> parameters passed in, not just the ones you were expecting.
>
Here is my configure options I've used :>> > For the problem of "mysql_create_db()" I've try your script, and replace
> > username & password with root ones.
> > Thats what I have :
> > Fatal error: Call to undefined function mysql_create_db() in
> > /var/www/polaristest.php on line 5
> >
> > Thats help you on something ? ... not me ... :(
> It tells me that PHP 5 does not include MySQL support by default (some
> licensing issue). You need to recompile, telling configure where your
> MySQL install root is:
> configure --with-mysql=/usr
>
> HTH,
> La'ie Techie
>
'./configure' '--with-apxs=/opt/apache/bin/apxs' '--with-mysql=/opt/mysql'
'--with-config-file-path=/etc'
As you can see, it's compiled with mysql.
Another think :
There is no "mysql.so" on my computer, and I installed php & apache from
source, not from rpm.
PHP 4.3.2 works fine with "mysql_create_db", and I see there is no line in
php.ini 4.3.2 about mysql.so , so I think I don't need it ...
"mysql_create_db" don't work since I've upgraded from PHP 4.3.2 to PHP 5.0.1
....
Hopes since you know that you can help me ... ;)
Thanks for all ...
- Nothing
NothingHere Guest
-
Steve #8
Re: Problem after an upgrade to php 5.0.1 and Apache 1.3.31
I notice here [url]http://www.php.net/mysql_create_db[/url] that there is a
warning:
"This function will not be available if the MySQL extension was built
against a MySQL 4.x client library."
Does that apply to you?
---
Steve
Steve Guest



Reply With Quote

