Re: php-not-executing-in-html-file-help-----its working----thanks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Two ways to resolve it:
1,simplest, rename your file as xxx.php, in order to let php
interpreter to process the script.
2, as just now others saying, add file type 'html' to the list which
interpreter would process.


On Sun, 20 Mar 2005 17:43:52 -0800 (PST), vijayaraj nagarajan
<bioinfovijayaraj@xxxxxxxxx> wrote:
> hi
> ian, chris , stephan and others....
> 
> its working..now...
> i dont know how come...but its working...
> thank you somuch...
> 
> vijay
> 
> --- Ian Firla <ifirla@xxxxxxxxxxx> wrote:
> >
> > You need to tell apache to run html files through
> > the php interpreter:
> >
> > ie. AddType application/x-httpd-php .php .php3 .html
> >
> > then restart apache
> >
> > Ian
> >
> > On Sun, 2005-03-20 at 14:12 -0800, vijayaraj
> > nagarajan wrote:
> > > hi friends
> > > i am struggling to solve this problem for the past
> > one
> > > week...kindly help me..
> > >
> > > my apache runs perfectly...
> > > this code gives a perfect output in the browser...
> > >
> > > file name: hi.html
> > >
> > > <html><body>
> > > hihihi
> > > </body></html>
> > >
> > > but this code doesnot give any output in the
> > > browser...
> > >
> > > file name: hi.html
> > >
> > > <html><body>
> > > <?php echo "hihihi"; ?>
> > > </body></html>
> > >
> > > but, the same file with the php code in it...could
> > be
> > > executed in the command line, using php... where i
> > am
> > > getting the expected output...
> > >
> > > i tested to c if my apache doesnt recognise php
> > ...
> > >
> > > this code runs perfectly...in the browser...
> > >
> > > <?php echo "hihihi"; ?>
> > >
> > > if saved as hi.php file...
> > > the same code saved as .html, is not giving any
> > output
> > > in the browser...
> > >
> > > kindly help me to figure out this problem...
> > >
> > > thanks
> > >
> > > vijayaraj nagarajan
> > > graduate student
> > > the university of southern mississippi
> > > MS - USA
> > >
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam?  Yahoo! Mail has the best spam
> > protection around
> > > http://mail.yahoo.com
> > >
> > --
> > Ian Firla Consulting
> > http://ianfirla.com
> >
> >
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
           Sincerely,
                     Forest Liu(åäè)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux