Date: Sun, 31 Aug 2003 01:02:01 -0400
To: debian@allinterior.com
On Wed, Aug 27, 2003 at 10:29:31AM -0400, debian@allinterior.com wrote:
> I've been trying to get PHP CLI working with Mysql with no luck. After
> much research I found out that php -m will list the loaded modules...
> but mysql is not one of them (however mysql works fine with apache
> modphp).
>
> How do I go about getting this from Debian? I've tried "apt-get install
> php4" with no luck. Do I need to compile Mysql support in this version
> of PHP? If so, then where do I get the debian sources?
I think apt-get install php4-mysql should work.
> Also, I seem to be confused about how php-cgi, mod-php, and php-cli
> exist on the same machine if there is only 1 php binary. If I compile
> php, does this affect mod-php and php-cgi?
I think there are only two kinds of php in debian. One is mod-php which
is a module for the apache webserver and the other is php-cgi which is a
normal executable which can be used for scripts (whether cgi or
otherwise).
Re: I am totally stumped..with this on..LOAD_FILE Mysql+PHP= FSCK!! ... What I am trying to do is to upload files and stuff them in a mysql database.... I copied the temporary file to somewhere else, and then handed it to MySQL..THAT WORKED.. ... Is there a way to force a close on the file..maybe that's the problem Mysql is opening a file that is not flushed to disk maybe? ... I gew the feeling its maintaining its own picture of file objects, and doesn't actually flush to the disk unless you do a copy or close php..... (comp.lang.php)
Re: I am totally stumped..with this on..LOAD_FILE Mysql+PHP= FSCK!! ... What I am trying to do is to upload files and stuff them in a mysql database.... I copied the temporary file to somewhere else, and then handed it to MySQL..THAT WORKED.. ... Is there a way to force a close on the file..maybe that's the problem Mysql is opening a file that is not flushed to disk maybe? ... I gew the feeling its maintaining its own picture of file objects, and doesn't actually flush to the disk unless you do a copy or close php..... (comp.lang.php)
Re: com_dotnet ... And if MySQL isn't installed, the DLL won't load and phpinfowill show MySQL support isn't enabled. ... The MySQL interface is NOT compiled into PHP on the distributed Windows binaries - or you'd never be able to run PHP unless you had MySQL installed. ... *SOME* extensions are protocols, some are functional resources, and some are just type libraries.... If you're going to compile the extension into PHP itself, the libraries must be available at compile time, and when you run PHP, or PHP won't load. ... (comp.lang.php)
Re: [PHP] Select record by ID ... But I dont want to be a php copy/paste newb who has no clue ... Bad Guys know that you are probably using that user_id in an SQL... The mysql_real_escape_string() part is a function provided by MySQL ... mysql_real_escape_stringtakes the 'Kevin O'Brien' and converts it ... (php.general)