Re: [PHP] PHP not being read?

2010-04-25 Thread Peter Lind
On 25 April 2010 05:00, Gary g...@paulgdesigns.com wrote: Karl On the laptop, the original machine, it has Vista, Firefox 3.6.3. Previewing on testing server Apache (XAMPP )on the computer, not network On the tower, it is running XP Pro, Firefox 3.6.3. Previewing on local testing server.

Re: [PHP] PHP not being read?

2010-04-25 Thread Gary
Good question. I just put the original file up and it worked as written. So that would seem to rule out editor and browser. It is either an apache issue or php. I'm wondering if Apache is running some older version of php. Installed with the XAMPP instalation was php 5.2.9. Thanks again

Re: [PHP] PHP not being read?

2010-04-25 Thread Gary
Peter Check that the php module is loaded by Apache on the 'bad' machine and that the proper handler is set. Should be a line like: AddHandler application/x-httpd-php .php .phtml .php3 I have been looking through some of the files, but frankly it is a combination hunt and peek and a guessing

Re: [PHP] PHP not being read?

2010-04-25 Thread Kevin Kinsey
Gary wrote: Peter Check that the php module is loaded by Apache on the 'bad' machine and that the proper handler is set. Should be a line like: AddHandler application/x-httpd-php .php .phtml .php3 I have been looking through some of the files, but frankly it is a combination hunt and peek and

Re: [PHP] PHP not being read?

2010-04-25 Thread Gary
Kevin Thanks for your reply, I had that file open and was looking around in it. In a funny twist of things, I had created a phpinfo() page, and it did not show in the browser. Then I switched root folders in DW, and the phpinfo() page showed. I copied the original experiment file and the

[PHP] PHP not being read?

2010-04-24 Thread Gary
What would cause a machine not to read/process php? I have a laptop that I have been ever increasing using for php scripting. I decided to do a simple experiment, it started out something like: $seconds=1; $minutes=$seconds*60; $hours=$minutes*60; $days=$hours*24; echo $seconds; echo

Re: [PHP] PHP not being read?

2010-04-24 Thread Michiel Sikma
On 25 April 2010 00:45, Gary g...@paulgdesigns.com wrote: What would cause a machine not to read/process php? I have a laptop that I have been ever increasing using for php scripting. I decided to do a simple experiment, it started out something like: $seconds=1; $minutes=$seconds*60;

Re: [PHP] PHP not being read?

2010-04-24 Thread Gary
Michiel Thank you for your reply, but that is not it. I took it down to ?php $seconds=1; echo $seconds; ? Total code, and got nothing, blank screen. (this is just a silly exercise where I was going to input a date of birth and produce age in seconds) When I put the exact same code on my

Re: [PHP] PHP not being read?

2010-04-24 Thread Karl DeSaulniers
Hi Gary, It is probably because you have the file named .html and not .php. I took your code: ?php $seconds=1; echo $seconds; ? and put it an a .html and .php file and put it on my server. With the.php file, I got a result of 1 for the .html file I got a blank screen. HTH, Karl On Apr 24,

Re: [PHP] PHP not being read?

2010-04-24 Thread Gary
Karl Thanks for your replythat wasnt it. File was originated as a php file. So I have been playing with the experiment, and this is now the total code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html

Re: [PHP] PHP not being read?

2010-04-24 Thread Karl DeSaulniers
What is the browser and browser version your using on the bad computer? What OS? Are you previewing the file on the computer or from a server? Karl On Apr 24, 2010, at 8:30 PM, Gary wrote: Karl Thanks for your replythat wasnt it. File was originated as a php file. So I have been

Re: [PHP] PHP not being read?

2010-04-24 Thread Gary
Karl On the laptop, the original machine, it has Vista, Firefox 3.6.3. Previewing on testing server Apache (XAMPP )on the computer, not network On the tower, it is running XP Pro, Firefox 3.6.3. Previewing on local testing server. Karl DeSaulniers k...@designdrumm.com wrote in message

Re: [PHP] PHP not being read?

2010-04-24 Thread Karl DeSaulniers
If you put the php file on a live server, does the bad computer still not display? Just narrowing down. :) Karl Sent from losPhone On Apr 24, 2010, at 10:00 PM, Gary g...@paulgdesigns.com wrote: Karl On the laptop, the original machine, it has Vista, Firefox 3.6.3. Previewing on