Gary wrote:
I am recieving a fatal error trying to connect to my server/mysql.
This is my first attempt at connecting to a remote server, have been
successful with localhost (apache). I had the variation of not putting
the hostname others into a variable, but that did not work either.
I
On Sat, Mar 14, 2009 at 13:41, Per Jessen p...@computer.org wrote:
Check if the mysqli extension has been loaded.
Also check this page:
http://us.php.net/manual/en/mysqli.connect.php
For some of the mirrors, trying to hit
http://php.net/mysqli_connect erroneously takes you to
Thanks for your quick reply, but I do not know what that means... Where
would I find this out and how would I accomplish this if it is not done?
Thanks again.
Per Jessen p...@computer.org wrote in message
news:gpgq8i$h5...@saturn.local.net...
Gary wrote:
I am recieving a fatal error trying
Gary wrote:
Thanks for your quick reply, but I do not know what that means...
Where would I find this out and how would I accomplish this if it is
not done?
Thanks again.
Hi Gary
see what phpinfo() says - if the extension is loaded, it'll show up
there. To load the extension, add
Ok, I know how to access the php.ini for the local host, is this the same
file that would control the remote server? Or do I need to look for it on
my remote host?
Again, thanks for your help.
Per Jessen p...@computer.org wrote in message
news:gpgr6o$hc...@saturn.local.net...
Gary wrote:
Gary wrote:
Ok, I know how to access the php.ini for the local host, is this the
same file that would control the remote server? Or do I need to look
for it on my remote host?
The php.ini you need to look at is the one one the server where you're
running your PHP code. The remote host is
I had the code written the way you suggested, but changed it to the way the
hosting company suggested.
I am unclear. I have php 5.2.8.8 on my local machine, I also have MySQL
5.1.30 set up locally as well.
I am using godaddy.com as a host. I assumed that the php was running on the
host
Gary,
you can check this by either creating a file containing this:
?php phpinfo(); ?
and putting it up on your webserver, then open in with your browser,
or you could look at the output of php -i | less on the command
line.
After you enabled the mysqli extension on your host, you might change
2009/3/14 Jan G.B. ro0ot.w...@googlemail.com:
One side node.. you should apply addslashes() also to
$_SERVER['REMOTE_ADDR'), because an evil person could manipulate the
value of that variable to execute SQL-Injections.
forget that part - i didn't see that this var is only used in the
email,
Gary wrote:
I had the code written the way you suggested, but changed it to the
way the hosting company suggested.
I think your hosting company might be smoking something they shouldn't
be. Your way is the right one.
I am unclear. I have php 5.2.8.8 on my local machine, I also have
MySQL
Ok.. I have added
[MySQL]
;Gary, this is the code from the forum.
extension=mysqli.so
to the php.ini file on my machine, I saved the file. Is there anything else
I need to do?
Thanks again.
Per Jessen p...@computer.org wrote in message
news:gpgu1t$ho...@saturn.local.net...
Gary wrote:
Ok.. I have added
[MySQL]
;Gary, this is the code from the forum.
extension=mysqli.so
to the php.ini file on my machine, I saved the file. Is there anything else
I need to do?
Thanks again.
Per Jessen p...@computer.org wrote in message
news:gpgu1t$ho...@saturn.local.net...
Gary wrote:
Thanks again to everyone.
I have just checked the servers phpinfo, and turns out they are running PHP
Version 4.3.11 while I have verstion 5.2.8, could this change any of the
advice?
Jan G.B. ro0ot.w...@googlemail.com wrote in message
Gary wrote:
Thanks again to everyone.
I have just checked the servers phpinfo, and turns out they are running PHP
Version 4.3.11 while I have verstion 5.2.8, could this change any of the
advice?
Yes, the mysqli extension is only available for PHP5. Use the mysql_x()
functions or move to
On 3/14/2009 10:36 AM, Gary gwp...@ptd.net wrote:
Can anyone enlighted me as to what I am not doing correctly?
Hi Gary,
I am hosted using a basic cpanel interface ... There's a button = Remote
MySQL which brings up a page: Remote Database Access Hosts
And I put in my HOME IP and all works
This function is deprecated, and you ought to use mysql_query() to
send the CREATE DB sql anyway -- So the book is either out-dated or
just plain bad.
If the function doesn't exist, then you either don't have MySQL
extension to PHP installed, or your ISP has removed that function.
On Sat, May
Have you created a connection to the Server with the correct permissions?
-Original Message-
From: Mark Sargent [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 27, 2006 5:03 PM
To: PHP List
Subject: [PHP] Fatal error: Call to undefined function mysql_create_db()
Hi All,
I get the
On Sat, May 27, 2006 11:02, Mark Sargent wrote:
Hi All,
I get the following,
*Fatal error*: Call to undefined function mysql_create_db() in
*/usr/local/apache2/htdocs/createmovie.php* on line 6
Sounds like you don't have the MySQL component of PHP installed. If
you're using the packaged
Peter Lauri wrote:
Have you created a connection to the Server with the correct permissions?
Hi All,
sorry, meant to post that too,
1 ?php
2 //connect to MySQL
3 $connect=mysql_connect(localhost, root, password omitted) or
die(Hey, check your server connection.);
I get no error for that
Mark Sargent wrote:
Peter Lauri wrote:
Have you created a connection to the Server with the correct
permissions?
Hi All,
sorry, meant to post that too,
1 ?php
2 //connect to MySQL
3 $connect=mysql_connect(localhost, root, password omitted) or
die(Hey, check your server connection.);
I get
//[dv] depricated
//http://us2.php.net/manual/en/function.mysql-create-db.php
//return mysql_create_db($name, $db);
//[dv] this is not a good way to do this, as it doesn't tell you if
it succeeded or not.
//return mysql_query(CREATE DATABASE IF NOT
On Sat, 28 Aug 2004 16:57:27 -0700, gc [EMAIL PROTECTED] wrote:
Let me try this again,
I'm Gene Candelaria and I'm a PHP and MySQL newbie. I have a feeling a lot
of you may have seen this before. I'm teaching myself
PHP/MySQL and trying to setup a guestbook. I'm running latest versions of
gc wrote:
snip-a-roo
It's been awhile since I've done php on Windows, but I think you have to
uncomment the mysql dll in the php.ini file (make sure you're editing
the right one as per phpinfo), and restart your web server.
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP
Thanks, John. I have the line uncommented, am editing php.ini in my winnt
directory and have restarted the server. No magic, yet.
Thanks again.
g
-Original Message-
From: John Nichel
gc wrote:
snip-a-roo
It's been awhile since I've done php on Windows, but I think you have to
It's been awhile since I've done php on Windows, but I think
you have to uncomment the mysql dll in the php.ini file (make
sure you're editing the right one as per phpinfo), and restart
your web server.
Thanks, John. I have the line uncommented, am editing php.ini in my winnt
PROTECTED]
Subject: RE: [PHP] Fatal error: Call to undefined function
It's been awhile since I've done php on Windows, but I think
you have to uncomment the mysql dll in the php.ini file (make
sure you're editing the right one as per phpinfo), and restart
your web server.
Thanks, John. I
The tip..
copy and paste your error code into google ;-)
Do it for all errors, you'll be amazed @ how many have already been answered
- Original Message -
From: Eric L. Sammons [EMAIL PROTECTED]
Date: Thursday, August 12, 2004 2:44 pm
Subject: [PHP] Fatal error: Call to undefined
= Original Message From Eric L. Sammons [EMAIL PROTECTED] =
= Original Message From Eric L. Sammons [EMAIL PROTECTED] =
did this, all answers came back stating to install php-mysql package. Already
have that installed. Some have stated they recompiled php, I really would
like to
Eric L. Sammons wrote:
Trying set up php-syslog-ng on my Red Hat EL 3.0 AS system. I have verified
that I can in fact access mysql and that I have the necessary database and
that the user, password, and host are setup correctly in db_fns.php. It
seems; however, that I still receive the given
[snip]
did this, all answers came back stating to install php-mysql package.
Already
have that installed. Some have stated they recompiled php, I really
would
like to avoid doing that so I don't affect my Red Hat support
agreements.
[/snip]
have you done phpinfo() to see if it really compiled?
I have done phpinfo and I see --with-mysql=shared,/usr
= Original Message From Jay Blanchard
[EMAIL PROTECTED] =
[snip]
did this, all answers came back stating to install php-mysql package.
Already
have that installed. Some have stated they recompiled php, I really
would
like to avoid
[snip]
I have done phpinfo and I see --with-mysql=shared,/usr
[/snip]
Have you started the mysql daemon?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have started mysql, all is working (when I use the mysql client).
= Original Message From Jay Blanchard
[EMAIL PROTECTED] =
[snip]
I have done phpinfo and I see --with-mysql=shared,/usr
[/snip]
Have you started the mysql daemon?
--
PHP General Mailing List (http://www.php.net/)
To
On Thu, 12 Aug 2004 15:38:45 -0400, Eric L. Sammons [EMAIL PROTECTED] wrote:
I have done phpinfo and I see --with-mysql=shared,/usr
That doesn't really matter. Is there a mysql section in the phpinfo()?
It should have information similar to this:
MySQL Support enabled
Active Persistent Links
No I see no mysql section in my phpinfo page. I am in the process of
rebuilding php to see if this resolves the problem.
= Original Message From [EMAIL PROTECTED] =
On Thu, 12 Aug 2004 15:38:45 -0400, Eric L. Sammons [EMAIL PROTECTED] wrote:
I have done phpinfo and I see
Eric L. Sammons wrote:
No I see no mysql section in my phpinfo page. I am in the process of
rebuilding php to see if this resolves the problem.
Did you restart Apache after installing the php-mysql rpm?
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing
On Friday 13 August 2004 03:15, Eric L. Sammons wrote:
did this, all answers came back stating to install php-mysql package.
Already have that installed. Some have stated they recompiled php, I
really would like to avoid doing that so I don't affect my Red Hat support
agreements.
Seems
Please do not top post.
On Friday 13 August 2004 04:04, Eric L. Sammons wrote:
No I see no mysql section in my phpinfo page. I am in the process of
rebuilding php to see if this resolves the problem.
If you mean recompile PHP then you had better be sure you know what you're
doing. My
-
From: Eric L. Sammons [EMAIL PROTECTED]
To: Jay Blanchard [EMAIL PROTECTED]; php-general
[EMAIL PROTECTED]
Sent: Thursday, August 12, 2004 3:49 PM
Subject: RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect()
in /var/www/html/includes/db_fns.php on line 6
I have started mysql, all
rebuilding PHP.
-B
- Original Message -
From: Eric L. Sammons [EMAIL PROTECTED]
To: Jay Blanchard [EMAIL PROTECTED]; php-general
[EMAIL PROTECTED]
Sent: Thursday, August 12, 2004 3:49 PM
Subject: RE: [PHP] Fatal error: Call to undefined function: mysql_pconnect()
in /var/www/html/includes
[snip]
I am trying to do a little XPath, but I get this error:
Fatal error: Call to undefined function: xpath_new_context() in
Can someone please help me find my problem?
[/snip]
Xpath is not being seen...have you installed it correctly? Are the paths
defined correctly?
--
PHP General Mailing
Problems one of two things. A - you're version of PHP doesn't have support for
that function yet (v4.1.0). or B - You didn't compile support for DOM
http://ca.php.net/manual/en/ref.domxml.php
On Tuesday 04 November 2003 12:51, Ian Williams wrote:
I am trying to do a little XPath, but I
Are you using the bundled MySQL libraries under Unix/Linux? What
version of PHP are you running with what operating system? If MySQL
compiled as a module that must be loaded?
Jason
Naintara Jain wrote:
I get this error Fatal error: Call to undefined function: mysql_connect() in one
On Thursday 26 June 2003 12:38, [EMAIL PROTECTED] wrote:
I was testing a boring little FormMail script I've used on dozens of PHP
installations (Apache and IIS), when I got an error:
Fatal error: Call to undefined function: mail() in
/usr/local/apache/vweb/redfishinsurance/form2mail.php on
On Wednesday 05 March 2003 11:15, AD wrote:
I'm getting this error while testing the script below just for
connectivity. Mysql is running on XP and apache and php are on openbsd. It
seems like I don't have something configured right in php I guess but I'm
not sure. Here is the script:
Search
Have you tried a non-persistant connection? Does that work?
mysql_connect()?
-Original Message-
From: Tom Beidler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 3:12 PM
To: php list
Subject: [PHP] Fatal error: Call to undefined function: mysql_pconnect()
in ...
I'm
perhaps they didnt compile PHP with mysql support...
-Original Message-
From: Matthew Loff [mailto:[EMAIL PROTECTED]]
Subject: RE: [PHP] Fatal error: Call to undefined function:
mysql_pconnect() in ...
Have you tried a non-persistant connection? Does that work?
mysql_connect
Did you try a
?php phpinfo(); ?
to see if mysql is compiled in
Matthew Loff wrote:
Have you tried a non-persistant connection? Does that work?
mysql_connect()?
-Original Message-
From: Tom Beidler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 3:12 PM
To: php
use phpinfo to see if they even compiled php with
mysql support, probably didn't
--- Tom Beidler [EMAIL PROTECTED] wrote:
I'm working with an new ISP and I'm having trouble
connecting to MySQL
through PHP 4.
Here's some server specifics;
PHP Version 4.0.4pl1
Apache/1.3.14
DBA
Have you sompiled in sybase support? By defauly php doesn't compile
with sybase functions, you must specifcally tell it too...
-Original Message-
From: nelo manuel [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 09:27
To: [EMAIL PROTECTED]
Subject: [PHP] Fatal Error: Call to undefined
Hi Ray,
Yes i have compiled it with sybase under ./configure - sybase
From: Ray Hilton [EMAIL PROTECTED]
To: 'nelo manuel' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function:
sybase_connect() in
Date: Tue, 3 Jul 2001 09:37:56 +0200
Have you
errors during
configure/install?
-Original Message-
From: nelo manuel [mailto:[EMAIL PROTECTED]]
Sent: 03 July 2001 11:28
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function:
sybase_connect() in
i have compile it with sybase on ./configure
is ? phpinfo() ?
thanks
From: Ray Hilton [EMAIL PROTECTED]
To: 'nelo manuel' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function:
sybase_connect() in
Date: Tue, 3 Jul 2001 11:37:37 +0200
Not sure other than that... If it compiles it means it can find
PROTECTED]
To: 'nelo manuel' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function:
sybase_connect() in
Date: Tue, 3 Jul 2001 11:37:37 +0200
Not sure other than that... If it compiles it means it can find the
headers it needs from the sybase package
PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined
function:
sybase_connect() in
Date: Tue, 3 Jul 2001 11:37:37 +0200
Not sure other than that... If it compiles it means
it can find the
headers it needs from the sybase package... Is
this sybase 11.9.2? I
managed to build php
thanks you,
but will it solve the Fatal error am getting when trying to
retrieve records from sybase?
Nelson
London
From: rm [EMAIL PROTECTED]
To: nelo manuel [EMAIL PROTECTED], [EMAIL PROTECTED],
[EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function:
sybase_connect
into this problem with GD 1.8.4 and PHP 4.0.4-5,
no matter how i used --with-gd, configure would always
decide that GD was not present, and go on without it.
-Original Message-
From: nelo manuel [mailto:[EMAIL PROTECTED]]
Subject: RE: [PHP] Fatal Error: Call to undefined function
to unsupported or undefined function sybase_connect() in
/home/httpd/html/index1.php3 on line 2
appears again!! :/
help!
From: scott [gts] [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function:
sybase_connect() in
Date: Tue, 3 Jul 2001 12:05:10 -0400
:[EMAIL PROTECTED]]
Subject: RE: [PHP] Fatal Error: Call to undefined function:
sybase_connect() in
thanks you,
but will it solve the Fatal error am getting when trying to
retrieve records from sybase?
Nelson
London
From: rm [EMAIL PROTECTED]
To: nelo manuel
nice 1 scott,
appreciate your help,
i'll keep working on it :)
Many Thanks,
Nelson
London
From: scott [gts] [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Subject: RE: [PHP] Fatal Error: Call to undefined function:
sybase_connect() in
Date: Tue, 3 Jul 2001 14:52:36 -0400
well, on second look
Dear all,
after lots of attempts to make my sybase work i still getting an error
with my sybase_connect function,
Fatal error call to undefined function sybase_connect()in my document root
directory index.php3
...
i am now trying to compile ./configure -with -msql does any1 know the
correct
61 matches
Mail list logo