Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-12-01 Thread AD7six



On Dec 1, 2:53 pm, lynch <[EMAIL PROTECTED]> wrote:
> I already toke the sql from the config/sql folder and after this i
> took the sql from the Simon JAILLET Tutorial.
> But i have to run the init_acl_controller.php to fill this tables with
> first content or not? Maybe i use the wrong command.
> How did you initilize the init_acl_controller.php?
> Or got i something basic totaly wrong?
> Thank you for your patience.

I don't know what the init_aco_controller does, but as it's a
controller, running it I would assume involves opening a browser and
going to the url /init_acl/ and doesn't involve any console
activities. Have a re-read of the tutorial you are following (or a
step back and rethink).

hth,

AD
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-12-01 Thread lynch

I already toke the sql from the config/sql folder and after this i
took the sql from the Simon JAILLET Tutorial.
But i have to run the init_acl_controller.php to fill this tables with
first content or not? Maybe i use the wrong command.
How did you initilize the init_acl_controller.php?
Or got i something basic totaly wrong?
Thank you for your patience.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-12-01 Thread AD7six



On Nov 30, 3:15 pm, lynch <[EMAIL PROTECTED]> wrote:
> > Are you suggesting that the problems you are having installing/
> > configuring php cli are somehow cake's fault?
>
> Of course not, its my wrong configured/installed php (so its my
> fault :) ), but i was so keen on working with acl and now i still
> working  on cli.
> ok... i keep on invastigating...

Why not just run the sql from the config/sql folder, pass go,
collection $200,  skip using it via command line, and start using acl?

hth,

AD
BTW please do not create two threads for the same problem, and if you /
do/ it'd be helpful if you didn't keep them both alive.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-11-30 Thread lynch


> Are you suggesting that the problems you are having installing/
> configuring php cli are somehow cake's fault?

Of course not, its my wrong configured/installed php (so its my
fault :) ), but i was so keen on working with acl and now i still
working  on cli.
ok... i keep on invastigating...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-11-30 Thread AD7six



On Nov 30, 2:07 pm, lynch <[EMAIL PROTECTED]> wrote:
> Will i ever come back to cakephp? :)

Are you suggesting that the problems you are having installing/
configuring php cli are somehow cake's fault?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-11-30 Thread lynch


@ Chris HartjesI reinstalled it and i got a error after the mak
install.

Installing PHP SAPI module:   apache2handler
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apache2/
build/libtool' libphp5.la /usr/lib/apache2
/usr/share/apache2/build/libtool --mode=install cp libphp5.la /usr/lib/
apache2/
cp .libs/libphp5.so /usr/lib/apache2/libphp5.so
cp .libs/libphp5.lai /usr/lib/apache2/libphp5.la
libtool: install: warning: remember to run `libtool --finish /usr/
share/php-5.2.5/libs'
chmod 755 /usr/lib/apache2/libphp5.so
apxs:Error: Config file /etc/apache2/httpd2-prefork.conf not found.
make: *** [install-sapi] Error 1

And i still got the line. > PHP 4.4.0 (cli) (built: Dec 10 2005
15:39:24)
Will i ever come back to cakephp? :)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-11-29 Thread Chris Hartjes

On Nov 29, 2007 10:14 PM, lynch <[EMAIL PROTECTED]> wrote:
>
> Its four o´clock in the morning an i am still on it...
>
> I tried the php -v command and it says:
>
> PHP 4.4.0 (cli) (built: Dec 10 2005 15:39:24)
> Copyright (c) 1997-2004 The PHP Group
> Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
>
> PHP 4.4.0 although i installed PHP 5.2.5 and my phpinfo() says 5.2.5.
> Could this be the Problem?

It looks like you only have PHP 5.2.5 installed for web, not for CLI.
You need to reinstall PHP 5.2.5 and make sure you have --enable-cli as
one of the configuration options when building it.

-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-11-29 Thread lynch

Its four o´clock in the morning an i am still on it...

I tried the php -v command and it says:

PHP 4.4.0 (cli) (built: Dec 10 2005 15:39:24)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies

PHP 4.4.0 although i installed PHP 5.2.5 and my phpinfo() says 5.2.5.
Could this be the Problem?

I tried to run init_acl_controller.php in my controllers folder and
nothing happens. When i run a simple hello world file with php
test.php it works...
Could it be, that i use a wrong command to initilize the
init_acl_controller.php? What commands are you using to initilize the
file?
Thanks for your help!

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-11-29 Thread lynch

Oh damn, i think we started to write the post at the same time and i
overlooked your post.

My cli path is etc/php5/cli/php.ini and i am using Suse Linux 10.1.

I already added the extension=mysql.so line, but it didnt work.

So i looked at the extension Path and i rembered, that i installed a
new php version in an other directory. In this php installation-path
is a ext/mysql folder, but no mysql.so.

There are just the following files:


.libs/
php_mysql.o
CREDITS
config.m4
config.w32
mysql.dsp
mysql.mak
package.xml
php_mysql.c
php_mysql.h
php_mysql.lo
php_mysql_structs.h
tests/
001.phpt
   002.phpt
   003.phpt
   connect.inc
   skipif.inc

Could one of these be the right file? I had no succes with the locate
and whereis command for mysql.so.
Or where could the mysql.so be?



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-11-29 Thread Martin Wood-Mitrovski



lynch wrote:
> What do you mean with command line php? Sorry this is all new to me,
> could you give me a hint.

on linux there are seperate configurations for php when it runs via the 
webserver and from when it runs via the command line (i.e. the bake script)

on my linux box (gentoo) i have these configs :

/etc/php/cli-php5/php.ini
/etc/php/apache2-php5/php.ini

iirc that is fairly standard.

so it seems like mysql isnt compiled into your command line php so you will 
have 
to add it as a module, something like

extension=mysql.so

in the ini file.

which distro are you using?

> But i in my phpinfo() site, there is the(configure command) line --
> disable-cli, should i erease this line? 

probably not.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-11-29 Thread lynch

So how do i enable the mysql module for cli? I have no idea... is it
in the dynamic extensions part in the cli php.ini?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-11-29 Thread Chris Hartjes

On Nov 29, 2007 11:10 AM, lynch <[EMAIL PROTECTED]> wrote:
>
> What do you mean with command line php? Sorry this is all new to me,
> could you give me a hint.
>
> But i in my phpinfo() site, there is the(configure command) line --
> disable-cli, should i erease this line? I just have no idea what cli
> does.

bake runs from the command line (which is what CLI means).

-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-11-29 Thread lynch

What do you mean with command line php? Sorry this is all new to me,
could you give me a hint.

But i in my phpinfo() site, there is the(configure command) line --
disable-cli, should i erease this line? I just have no idea what cli
does.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-11-29 Thread Martin Wood-Mitrovski

Did you check the php.ini for the command line php?

As Daniel said, the cli version uses a different php.ini to the one you get in 
the webserver.

lynch wrote:
> I exactly have the same Problem under Linux, but i cant get along with
> this.
> 
> extension_loaded() says, that mysql extension is enabled. The database
> is and phpmyadmin a working, too.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-11-29 Thread lynch

I exactly have the same Problem under Linux, but i cant get along with
this.

extension_loaded() says, that mysql extension is enabled. The database
is and phpmyadmin a working, too.

Any ideas?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-11-26 Thread Sam Luo

Problem got solved!!!  Happy!

1.  Add line   PHPIniDir "C:/Sserver/PHP"  at the bottom of
httpd.conf  file( the configure file of apache).
2, Move php.ini to the PHP installation folder.
3. restart  apache server.
4. Check tag "Loaded Configuration File"  in phpinfo() to make sure
the proper php.ini has been loaded, and mysql has enabled.

Recommdatoin: add   (PHP installation path) and (PHP installation path/
ext) into "path" in system environment variable of windows,

Then you should be able to run php cake\scripts\bake.php

lol

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: bake function, Fatal Error, Call to undefined function mysql_connect()...

2007-11-26 Thread Daniel Hofstetter

Hi Sam,

That sounds like the mysql module is not enabled for the command line,
there is a separate php.ini for php-cli (at least here on Linux).

HTH

--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---