Re: access rights

2008-03-31 Thread Галкин Николай

Access denied. :) Check your login and password in /app/config/database.php


 Warning: mysql_connect() [function.mysql-connect]: Access denied for
 user 'emmettbr'@'server.stonerocket.co.uk' (using password: YES) in /
 home/emmettbr/public_html/CakePHP/cake/libs/model/dbo/dbo_mysql.php on
 line 100

 Warning: mysql_select_db(): supplied argument is not a valid MySQL-
 Link resource in /home/emmettbr/public_html/CakePHP/cake/libs/model/
 dbo/dbo_mysql.php on line 105

 Warning: mysql_query(): supplied argument is not a valid MySQL-Link
 resource in /home/emmettbr/public_html/CakePHP/cake/libs/model/dbo/
 dbo_mysql.php on line 133

 What is going on???

 On Mar 27, 9:48 pm, Dardo Sordi Bogado [EMAIL PROTECTED] wrote:
   
  Whataccessrightsdo I give to each CakePHP file?
   
 It depends greatly on what are you intend to do, but:

 app/tmp and it's contents should be writtable by the user running PHP.
 and app/webroot/ and it's contents should be readable by the user
 running your webserver.


 
 

   


--~--~-~--~~~---~--~~
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: works in localhost, not works in www.toreadandtowrite.com

2008-03-31 Thread Галкин Николай

If you mean about DB, you must have root provileges and open access for 
your account of your site.
About privileges in MySQL:
http://dev.mysql.com/doc/refman/5.0/en/default-privileges.html

If you mean about your http-server. You must have domain-name 
www.toreadandtowrite.com. And configure your Apache.
About this in Apache 2.0
http://httpd.apache.org/docs/2.0/mod/core.html

P.S. Sorry for my English. I am from Russia.
 What should I do to make my site that works in locahost, work in
 www.toreadandtowrite.com 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: access rights

2008-03-31 Thread Галкин Николай

May by not 'server.stonerocket.co.uk' but 'localhost' and also chek your 
dataase name.

 Warning: mysql_connect() [function.mysql-connect]: Access denied for
 user 'emmettbr'@'server.stonerocket.co.uk' (using password: YES) in /
 home/emmettbr/public_html/CakePHP/cake/libs/model/dbo/dbo_mysql.php on
 line 100

 Warning: mysql_select_db(): supplied argument is not a valid MySQL-
 Link resource in /home/emmettbr/public_html/CakePHP/cake/libs/model/
 dbo/dbo_mysql.php on line 105

 Warning: mysql_query(): supplied argument is not a valid MySQL-Link
 resource in /home/emmettbr/public_html/CakePHP/cake/libs/model/dbo/
 dbo_mysql.php on line 133

 What is going on???

--~--~-~--~~~---~--~~
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: magic functions not defined for some reason

2008-03-29 Thread Галкин Николай

May be must
$this-User-findByLast_name('smith');



 PHP 4.4, cake 1.2.x latest beta

 the findByField function always give 'call to undefined function'
 error, no matter what field name I tried, such as

 $this-User-findByLastname('smith');

 The only thing not typical in my app is my primary keys are not 'id',
 for example, the users table has a primary key 'user_id'.  I have used
 the $id field in my models where needed to define this.

 Anyone seen something like this?
 

   


--~--~-~--~~~---~--~~
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: Files folder?

2008-03-28 Thread Галкин Николай

try

/pdf/example.pdf
or 
www.example.com/pdf/example.pdf



 I am building a website for a client and they have a large amount of
 PDF's so I decided I would put them in: app/webroot/files/pdf but when
 I navigate to: www.example.com/files/pdf/example.pdf i get:

 Error: FilesController could not be found.

 How can I make it allow me access to this folder. Or if this is not an
 option, where should I store the PDF's instead ?

--~--~-~--~~~---~--~~
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: document root in shared hosting

2008-03-28 Thread Галкин Николай

I think yes! Create the file .htaccess in the root directory and write 
string:
RewriteBase /new_root_folder
But in your hosting must be enabled module mod_rewrite.
Sorry for my English. I am from Russian.
 Can I change document root in shared hosting?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---