php-general Digest 7 Aug 2011 18:15:20 -0000 Issue 7433

2011-08-07 Thread php-general-digest-help
php-general Digest 7 Aug 2011 18:15:20 - Issue 7433 Topics (messages 314399 through 314414): Re: Intentionally generate an Internal Server Error 314399 by: shiplu 314400 by: Ghodmode 314401 by: shiplu 314402 by: shiplu 314403 by: Ghodmode

Re: [PHP] Intentionally generate an Internal Server Error

2011-08-07 Thread Tamara Temple
On Aug 6, 2011, at 10:50 PM, Ghodmode wrote: I'd like to use PHP to intentionally generate an Error 500 Internal Server Error. Here's the problem. My site has this error intermittently and I'd like to monitor the error log to figure out the problem. Unfortunately, I don't get to see the

Re: [PHP] Intentionally generate an Internal Server Error

2011-08-07 Thread Ashley Sheridan
Tamara Temple tamouse.li...@gmail.com wrote: On Aug 6, 2011, at 10:50 PM, Ghodmode wrote: I'd like to use PHP to intentionally generate an Error 500 Internal Server Error. Here's the problem. My site has this error intermittently and I'd like to monitor the error log to figure out the

[PHP] Re: Unanticipated characters returned from multidimensional array

2011-08-07 Thread David Green
On Sat, Aug 6, 2011 at 4:44 PM, Shawn McKenzie nos...@mckenzies.net wrote: I haven't look through it long enough to find out about the characters, but try this: foreach($tableNews as $headline = $text){ echo br; echo $text['text']; echo pre; echo $text['user']['name'];

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

[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

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 errors like

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: http://cakephp.org/changelogs/1.3.6 Fatal error:

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
cool I found this hidden file .htaccess: IfModule mod_rewrite.c RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] /IfModule well I don't know that this apache module is enabled or not I changed the apache2 in /etc/sysconfig and add the rewrite

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:)

[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.

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.

[PHP] Re: Login with Remember me Feature

2011-08-07 Thread Richard Riley
Andre Polykanine an...@oire.org 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

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 rile...@googlemail.comwrote: Andre Polykanine an...@oire.org 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

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

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

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] Intentionally generate an Internal Server Error

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

Re: [PHP] Login with Remember me Feature

2011-08-07 Thread Alex Nikitin
On Sun, Aug 7, 2011 at 10:03 PM, Donovan Brooke li...@euca.us 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 it