Re: [PHP] tutorial failure

2010-08-26 Thread e-letter
On 20/08/2010, Ashley Sheridan a...@ashleysheridan.co.uk wrote: You don't have to reinstall the entire OS, that's a very Windows approach to the problem. I played around a bit last night with urpmi and you should be able to just list the packages you need with urpmq --fuzzy package_name, and

Re: [PHP] tutorial failure

2010-08-26 Thread Ashley Sheridan
On Thu, 2010-08-26 at 17:45 +0100, e-letter wrote: On 20/08/2010, Ashley Sheridan a...@ashleysheridan.co.uk wrote: You don't have to reinstall the entire OS, that's a very Windows approach to the problem. I played around a bit last night with urpmi and you should be able to just list the

Re: [PHP] tutorial failure

2010-08-20 Thread e-letter
On 19/08/2010, Ashley Sheridan a...@ashleysheridan.co.uk wrote: No, because Apache doesn't need to process HTML in the same way it needs to process PHP. The tag ?php in your code is being sent down to your browser as HTML (view the source on the page you're browsing to) and interpreted as a

Re: [PHP] tutorial failure

2010-08-20 Thread Ashley Sheridan
On Fri, 2010-08-20 at 10:00 +0100, e-letter wrote: On 19/08/2010, Ashley Sheridan a...@ashleysheridan.co.uk wrote: No, because Apache doesn't need to process HTML in the same way it needs to process PHP. The tag ?php in your code is being sent down to your browser as HTML (view the source

Re: [PHP] tutorial failure

2010-08-19 Thread e-letter
On 19/08/2010, David McGlone da...@dmcentral.net wrote: Yes it is. But your computer needs the correct software to view that php file in a web browser as if it was a web page. If you do not have this software installed, then the web browser will ask you if you want to download the file

RE: [PHP] tutorial failure

2010-08-19 Thread Bob McConnell
From: e-letter On 19/08/2010, David McGlone da...@dmcentral.net wrote: Yes it is. But your computer needs the correct software to view that php file in a web browser as if it was a web page. If you do not have this software installed, then the web browser will ask you if you want to

Re: [PHP] tutorial failure

2010-08-19 Thread e-letter
On 19/08/2010, David McGlone da...@dmcentral.net wrote: On Wed, 2010-08-18 at 23:08 +0100, e-letter wrote: On 18/08/2010, David McGlone da...@dmcentral.net wrote: On Wed, 2010-08-18 at 21:54 +0100, e-letter wrote: On 18/08/2010, David McGlone da...@dmcentral.net wrote: Do you have php5

Re: [PHP] tutorial failure

2010-08-19 Thread Ashley Sheridan
On Thu, 2010-08-19 at 09:41 +0100, e-letter wrote: On 19/08/2010, David McGlone da...@dmcentral.net wrote: On Wed, 2010-08-18 at 23:08 +0100, e-letter wrote: On 18/08/2010, David McGlone da...@dmcentral.net wrote: On Wed, 2010-08-18 at 21:54 +0100, e-letter wrote: On 18/08/2010, David

Re: [PHP] tutorial failure

2010-08-19 Thread e-letter
On 19/08/2010, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I think it's fairly clear that for whatever reason, PHP isn't properly configured with Apache. You've mentioned you're using Mandriva, which, coincidentally, is what i've just recently installed on my home machine. It has a very

Re: [PHP] tutorial failure

2010-08-19 Thread Ashley Sheridan
On Thu, 2010-08-19 at 15:35 +0100, e-letter wrote: On 19/08/2010, Ashley Sheridan a...@ashleysheridan.co.uk wrote: I think it's fairly clear that for whatever reason, PHP isn't properly configured with Apache. You've mentioned you're using Mandriva, which, coincidentally, is what i've just

Re: [PHP] tutorial failure

2010-08-19 Thread e-letter
On 19/08/2010, Ashley Sheridan a...@ashleysheridan.co.uk wrote: As Colin suggested on another email, check to see if apache-mod_php was installed too. It seems likely that it wasn't for some reason. How to verify please? Also, the instruction to use task-lamp; it seems this is for mysql but the

Re: [PHP] tutorial failure

2010-08-19 Thread Ashley Sheridan
On Thu, 2010-08-19 at 16:30 +0100, e-letter wrote: On 19/08/2010, Ashley Sheridan a...@ashleysheridan.co.uk wrote: As Colin suggested on another email, check to see if apache-mod_php was installed too. It seems likely that it wasn't for some reason. How to verify please? Also, the

RE: [PHP] tutorial failure

2010-08-19 Thread HallMarc Websites
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Thursday, August 19, 2010 11:33 AM To: e-letter Cc: David McGlone; php-general@lists.php.net Subject: Re: [PHP] tutorial failure On Thu, 2010-08-19 at 16:30 +0100, e-letter wrote: On 19/08/2010, Ashley

Re: [PHP] tutorial failure

2010-08-19 Thread e-letter
On 19/08/2010, HallMarc Websites sa...@hallmarcwebsites.com wrote: I agree with the earlier take on this situation; you need to start at the beginning and learn the basics regarding the technologies BEFORE you try and manage them. You're trying to drive a car when you don't even know what or

Re: [PHP] tutorial failure

2010-08-19 Thread Ashley Sheridan
On Thu, 2010-08-19 at 19:04 +0100, e-letter wrote: On 19/08/2010, HallMarc Websites sa...@hallmarcwebsites.com wrote: I agree with the earlier take on this situation; you need to start at the beginning and learn the basics regarding the technologies BEFORE you try and manage them. You're

Re: [PHP] tutorial failure

2010-08-19 Thread David McGlone
On Thu, 2010-08-19 at 22:24 +0100, Ashley Sheridan wrote: On Thu, 2010-08-19 at 19:04 +0100, e-letter wrote: On 19/08/2010, HallMarc Websites sa...@hallmarcwebsites.com wrote: I agree with the earlier take on this situation; you need to start at the beginning and learn the basics

Re: [PHP] tutorial failure

2010-08-19 Thread Ashley Sheridan
On Thu, 2010-08-19 at 18:09 -0400, David McGlone wrote: On Thu, 2010-08-19 at 22:24 +0100, Ashley Sheridan wrote: On Thu, 2010-08-19 at 19:04 +0100, e-letter wrote: On 19/08/2010, HallMarc Websites sa...@hallmarcwebsites.com wrote: I agree with the earlier take on this situation; you

RE: [PHP] tutorial failure

2010-08-18 Thread Arno Kuhl
-Original Message- From: e-letter [mailto:inp...@gmail.com] Sent: 18 August 2010 10:44 AM To: php-general@lists.php.net Subject: [PHP] tutorial failure Readers, Copy below of message sent 15 August to php install digest list, but to date not including in mail archive? The tutorial

Re: [PHP] tutorial failure

2010-08-18 Thread Peter Lind
On 18 August 2010 10:44, e-letter inp...@gmail.com wrote: Readers, Copy below of message sent 15 August to php install digest list, but to date not including in mail archive? The tutorial example: html      head              titlephp test              /title      /head      body      

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
I changed the code as follows: html head titlephp test /title /head body ?php phpinfo ? ?php echo pHi, I am a PHP script/p; ? p this is a

Re: [PHP] tutorial failure

2010-08-18 Thread chris h
php is not processing the file. There's a few reasons for this, but the first thing I would check is the permissions of the file. From the directory try $ ls -oa This should tell you who owns the file and what it's permissions are. You mentioned that you copied it as root, you could change

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, chris h chris...@gmail.com wrote: php is not processing the file. There's a few reasons for this, but the first thing I would check is the permissions of the file. From the directory try $ ls -oa The file permission was confirmed as root, since it was copied (as root) from a

Re: [PHP] tutorial failure

2010-08-18 Thread Peter Lind
On 18 August 2010 12:47, e-letter inp...@gmail.com wrote: On 18/08/2010, chris h chris...@gmail.com wrote: php is not processing the file.  There's a few reasons for this, but the first thing I would check is the permissions of the file.  From the directory try $ ls -oa The file permission

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, Peter Lind peter.e.l...@gmail.com wrote: On 18 August 2010 12:47, e-letter inp...@gmail.com wrote: On 18/08/2010, chris h chris...@gmail.com wrote: php is not processing the file. There's a few reasons for this, but the first thing I would check is the permissions of the file.

Re: [PHP] tutorial failure

2010-08-18 Thread chris h
What are the actual file permissions when you run ls -o? Do you know if PHP is installed as an apache mod or cgi? Also you might check what user apache is running as. possibly... $ vi /etc/apache2/envvars and look for something like... export APACHE_RUN_USER=www-data On Wed, Aug 18, 2010

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, chris h chris...@gmail.com wrote: What are the actual file permissions when you run ls -o? root Do you know if PHP is installed as an apache mod or cgi? Also you might check what user apache is running as. No. How to verify? possibly... $ vi /etc/apache2/envvars No apache2

Re: [PHP] tutorial failure

2010-08-18 Thread chris h
On Wed, Aug 18, 2010 at 7:10 AM, e-letter inp...@gmail.com wrote: On 18/08/2010, chris h chris...@gmail.com wrote: What are the actual file permissions when you run ls -o? root What's the entire output of ls -o? Do you know if PHP is installed as an apache mod or cgi? Also you might

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, chris h chris...@gmail.com wrote: On Wed, Aug 18, 2010 at 7:10 AM, e-letter inp...@gmail.com wrote: On 18/08/2010, chris h chris...@gmail.com wrote: What are the actual file permissions when you run ls -o? root What's the entire output of ls -o? [r...@localhost html]# ls

Re: [PHP] tutorial failure

2010-08-18 Thread Ashley Sheridan
On Wed, 2010-08-18 at 12:10 +0100, e-letter wrote: On 18/08/2010, chris h chris...@gmail.com wrote: What are the actual file permissions when you run ls -o? root Do you know if PHP is installed as an apache mod or cgi? Also you might check what user apache is running as. No. How to

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Wed, 2010-08-18 at 12:10 +0100, e-letter wrote: On 18/08/2010, chris h chris...@gmail.com wrote: What are the actual file permissions when you run ls -o? root Do you know if PHP is installed as an apache mod or cgi?

RE: [PHP] tutorial failure

2010-08-18 Thread Bob McConnell
From: e-letter On 18/08/2010, chris h chris...@gmail.com wrote: On Wed, Aug 18, 2010 at 7:10 AM, e-letter inp...@gmail.com wrote: On 18/08/2010, chris h chris...@gmail.com wrote: What are the actual file permissions when you run ls -o? root What's the entire output of ls -o?

Re: [PHP] tutorial failure

2010-08-18 Thread e-letter
On 18/08/2010, Bob McConnell r...@cbord.com wrote: From: e-letter On 18/08/2010, chris h chris...@gmail.com wrote: On Wed, Aug 18, 2010 at 7:10 AM, e-letter inp...@gmail.com wrote: On 18/08/2010, chris h chris...@gmail.com wrote: What are the actual file permissions when you run ls -o?