On 3/14/2009 10:36 AM, "Gary" 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 fine now ...
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 mov
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."" wrote in message
news:c9a09d00903141132i19597e73g2271955d1ac14...@mail.gmail.com...
Gary,
you
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" wrote in message
news:gpgu1t$ho...@saturn.local.net...
Gary wrote:
> I had the code
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" wrote in message
news:gpgu1t$ho...@saturn.local.net...
Gary wrote:
> I had the code
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
> MyS
2009/3/14 Jan G.B. :
> 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, not in the query.
--
PH
Gary,
you can check this by either creating a file containing this:
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
mysqli_connect('$v
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 server
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
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" wrote in message
news:gpgr6o$hc...@saturn.local.net...
Gary wrote:
> Thanks for your
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 "ex
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" wrote in message
news:gpgq8i$h5...@saturn.local.net...
Gary wrote:
> I am recieving a fatal error trying to connect to my
On Sat, Mar 14, 2009 at 13:41, Per Jessen 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 the
mysql_connec
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.
>
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 27,
//[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
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 3 $connect=mysql_connect("localhost", "root", "password omitted") or
die("Hey, check your server connection.");
I get no error for that
Peter Lauri wrote:
Have you created a connection to the Server with the correct permissions?
Hi All,
sorry, meant to post that too,
1 3 $connect=mysql_connect("localhost", "root", "password omitted") or
die("Hey, check your server connection.");
I get no error for that line. Cheers.
Mark S
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 pa
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 followin
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
> > 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 winn
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:
It's been awhile since I've done php on Windows, but I think you have to
uncomment the mysq
gc wrote:
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 General Mailing
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
, try 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
-
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/w
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 recom
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
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
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 --with-my
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 Li
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.
[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 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
[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?
-
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 e
>= 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
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
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
[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 L
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
scrip
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 o
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:
Sear
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
>
Did you try a
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 list
> Subj
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 connectio
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 worki
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 com
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()
ybase support ... no" in the configure output.
> >
> >i ran 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 Messa
ll 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:
>
configure output.
i ran 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 Erro
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: Ca
r 1
>
>
> any help?
> no the only thing that works is
>
> thanks
>
> >From: "Ray Hilton" <[EMAIL PROTECTED]>
> >To: "'nelo manuel'" <[EMAIL PROTECTED]>,
> <[EMAIL PROTECTED]>
> >Subject: RE: [PHP] Fatal Erro
<[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
ny help?
no the only thing that works is
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
>
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
;, <[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 sompiled in sybase support? By defauly php doesn't compile
>with sybase functions, you must specifcally t
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
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 func
62 matches
Mail list logo