Re: [PHP] what's wrong with this php system

2011-08-07 Thread Sharl.Jimh.Tsin
在 2011-08-08一的 14:30 +0800,smith jack写道: > I have installed a php system on my pc, it works well, except the head > of the page is a bit strange, there is some warning information, and > occupies lot of space, > what's wrong, the error information is as follows: > Warning: Parameter 1 to Notice::o

[PHP] what's wrong with this php system

2011-08-07 Thread smith jack
I have installed a php system on my pc, it works well, except the head of the page is a bit strange, there is some warning information, and occupies lot of space, what's wrong, the error information is as follows: Warning: Parameter 1 to Notice::onPrint() expected to be a reference, value given in

Re: [PHP] Login with Remember me Feature

2011-08-07 Thread Alex Nikitin
On Sun, Aug 7, 2011 at 10:03 PM, Donovan Brooke wrote: > alekto wrote: > >> Hi, >> I have implemented a "remember" me feature in my login-script, but I can't >> get it to function! >> > > > If I might be so bold... then you haven't implemented the feature yet, > right? ;-) > > > > I want to make

Re: [PHP] Intentionally generate an "Internal Server Error"

2011-08-07 Thread Ghodmode
On Mon, Aug 8, 2011 at 11:35 AM, Kirk Bailey wrote: > Access a non existant file. Woops! > That's a 404, not a 500.

Re: [PHP] Intentionally generate an "Internal Server Error"

2011-08-07 Thread Kirk Bailey
Access a non existant file. Woops! On 8/7/2011 2:42 AM, Paul Scott wrote: On Sun, 2011-08-07 at 07:30 +0100, Ashley Sheridan wrote: Quickest way I know of is to mess up an .htaccess file! Another good way to do it on shared hosts is to give a file incorrect permissions and try and access it

Re: [PHP] Login with Remember me Feature

2011-08-07 Thread Donovan Brooke
alekto wrote: Hi, I have implemented a "remember" me feature in my login-script, but I can't get it to function! If I might be so bold... then you haven't implemented the feature yet, right? ;-) I want to make it possible for the users to stay logged in for 30 days. This is what I got th

Re: [PHP] Re: Login with Remember me Feature

2011-08-07 Thread Andre Polykanine
Hello Richard, RR> See ob_start and family. Alekto doesn't use them in that code. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP Gen

Re: [PHP] Re: Login with Remember me Feature

2011-08-07 Thread Sean Greenslade
On Sun, Aug 7, 2011 at 3:11 PM, Richard Riley wrote: > Andre Polykanine writes: > > > Hello alekto, > > > > I've got several notes to point out: > > 1. You can't do neither a header(), nor a SetCookie() after any echo > > on the page. The out-of-php pieces of the page included. > > No

[PHP] Re: Login with Remember me Feature

2011-08-07 Thread Richard Riley
Andre Polykanine writes: > Hello alekto, > > I've got several notes to point out: > 1. You can't do neither a header(), nor a SetCookie() after any echo > on the page. The out-of-php pieces of the page included. Not true. See ob_start and family. -- PHP General Mailing List (http

Re: [PHP] Login with Remember me Feature

2011-08-07 Thread Andre Polykanine
Hello alekto, I've got several notes to point out: 1. You can't do neither a header(), nor a SetCookie() after any echo on the page. The out-of-php pieces of the page included. 2. Don't, please please don't store raw passwords in the database! Hash them, better even adding a salt. Th

[PHP] Login with Remember me Feature

2011-08-07 Thread alekto
Hi, I have implemented a "remember" me feature in my login-script, but I can't get it to function! I want to make it possible for the users to stay logged in for 30 days. This is what I got this far: This checkbox is placed Inside the index.php script, near by the username/password field. Rem

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Negin Nickparsa
Finally I solved my problem! I have downloaded another version of cake that is less than 2 now it works like a charm:)

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Negin Nickparsa
cool I found this hidden file .htaccess: RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] well I don't know that this apache module is enabled or not I changed the apache2 in /etc/sysconfig and add the rewrite in modules right here: APACHE_

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Negin Nickparsa
I have debugger.php in cake/libs I don't know why it doesn't access to this file and tell me can't find the class

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Negin Nickparsa
Thank you, I found that only the tmp directory must be writable then I used this one: also by right clicking and using wwwrun for user I tried to set them as you told chmod -R 0777 /srv/www/htdocs/first_app/app/tmp/ and the I get fatal Error: Fatal error

Re: [PHP] problem installing CakePHP on Linux

2011-08-07 Thread Peet Grobler
On 8/7/2011 9:53 AM, Negin Nickparsa wrote: > Hello List > > I want to use Cake PHP ,I have downloaded it from it's site,rename the > folder to first_app > and copied it to > /srv/www/htdocs > > my root is here: > > /srv/www/htdocs > > by entering http://localhost/first_app/ > > it has some er

[PHP] problem installing CakePHP on Linux

2011-08-07 Thread Negin Nickparsa
Hello List I want to use Cake PHP ,I have downloaded it from it's site,rename the folder to first_app and copied it to /srv/www/htdocs my root is here: /srv/www/htdocs by entering http://localhost/first_app/ it has some errors like these outputs: Warning: _cake_core_ cache was unable to write

Re: [PHP] Intentionally generate an "Internal Server Error"

2011-08-07 Thread Paul Scott
On Sun, 2011-08-07 at 07:30 +0100, Ashley Sheridan wrote: > Quickest way I know of is to mess up an .htaccess file! Another good way to do it on shared hosts is to give a file incorrect permissions and try and access it -- -- Paul http://www.paulscott.za.net http://twitter.com/paulscott56 http