php-windows Digest 10 Jul 2005 16:06:19 -0000 Issue 2723
Topics (messages 26197 through 26198):
Re: Perplexed - wont parse <?php ?> tags in html
26197 by: Warren Vail
Reading LongText or Blob fields
26198 by: Jim MacDiarmid
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
There are some parameters in the httpd.conf file for apache that
designate which file types will be parsed for php code. Here are the
ones on one of my servers;
--------------------------------------snip
----------------------------------
#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
AddType application/x-tar .tgz
AddType application/x-httpd-php .php .php3 <--------------------
here
#
--------------------------------------------snip------------------------
--
Notice that .html filetypes are not parsed by the php processor, at
least not in this implementation.
Renaming your file to be "something.php" instead of something.html
should do the trick. Keep in mind that the PHP processor will pass any
raw html and javascript straight thru to the browser.
HTH,
Warren Vail
> -----Original Message-----
> From: Armando [mailto:[EMAIL PROTECTED]
> Sent: Saturday, July 09, 2005 2:38 PM
> To: [email protected]
> Subject: Re: [PHP-WIN] Re: Perplexed - wont parse <?php ?>
> tags in html
>
>
> Is this running under Apache? If you're loading it as a module from
> Apache then you need to make sure that your httpd.conf file is set to
> allow the PHP engine to parse specific files. In the Apache
> conf file I
> believe the line is:
>
> AddType application/x-httpd-php
>
> You can add file types by just leaving a space and then
> adding the ones
> you want, for example:
>
> AddType application/x-httpd-php .php .html .htm
>
> Cheers.
>
> Armando
>
> Mark Rees wrote:
> > Lots of possible solutions on this:
> >
> > http://www.webmasterworld.com/forum88/4806.htm
> >
> > And another is... change the extensions on your html files
> >
> > ""Fred"" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> >
> >>PHP5 - Apache2 - XPSP2
> >>New to PHP.
> >>I have done everything I think I need to do to get PHP5
> working. I can
> >>link to and execute file.php scripts just fine, but scripts
> imbedded
> >>with <?php ... ?> in html files are not parsed/executed. I
> must have
> >>missed something really simple - but I can't find it. Any ideas?
> >>
> >>TIA
> >>
> >>Fred.
> >
> >
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--- End Message ---
--- Begin Message ---
Hi everyone,
Is there something special that has to be done to read/access LongText or
Blob Fields in a mySql database?
I'm using the PEAR::DB classes. What's the best way to do this? Should I
even be using these data types? I would like to store a lot of text such as
messages and HTML page content.
TIA,
Jim
--- End Message ---