Re: seg fault when using mysql with php

From: Date: Tue, 02 Sep 2003 05:37:51 +0000
Subject: Re: seg fault when using mysql with php
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-3772@lists.php.net to get a copy of this message
An example script snippet demonstrating the error would be nice , also what OS/PHP/MySQL versions etc But you should be able to talk to MySQL from the command line without issue , assuming the PHP binary was compiled with MySQL support. <?print_r(get_loaded_extensions());?> Perhaps your script utilises some $_SERVER variables not available running standalone ? its most likely to be something silly like that anyway. Regards, Simon. ----- Original Message ----- From: "Charles McLaughlin" <cmclaughlin@ucdavis.edu> To: <php-gtk-general@lists.php.net> Sent: Tuesday, September 02, 2003 9:05 AM Subject: [PHP-GTK] seg fault when using mysql with php > Hello, > > I'm trying to write a php-gtk app. It was going quite well until now! > > I have the user enter some data into text entry fields, then that will > go into a MySQL database. > > As soon as I try to connect to the DB, I get a seg fault. I guess this > has less to do with php-gtk and more to do with php it self. I say that > because I took the same code and ran it as a web page and it worked. > But when I took out all of the php-gtk stuff, it still seg faults. > > So it seems that there is some problem when I try to work with MySQL > from a php script at the command line. Perhaps Apache uses a CGI > version of Apache and there are some differences from running PHP at the > command line...??? > > > Any ideas of how to fix this? > > > Thanks! > > Charles > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > >

« previous php.gtk.general (#3772) next »