[Techtalk] php help
Maria McKinley
mariak at mariakathryn.net
Mon Jun 3 19:12:44 UTC 2013
Question mark character with the hello world php inside the html, none with
just php. :-(
thanks,
maria
On Mon, Jun 3, 2013 at 7:45 AM, Sheila Fenelon <sheila at shefen.com> wrote:
> Are you sure it's all PHP pages or just that one, with phpinfo() inside
> HTML code?
>
> What happens with this
>
> <html>
> <head>
> <title>PHP Test</title>
> </head>
> <body>
> <p><?php echo 'hello world' ?></p>
> </body>
> </html>
>
> Sheila
>
>
> Maria McKinley wrote:
> > Okay, I have figured out that it is indeed something about php within
> > html. I have made sure all of my files are saved with utf-8 encoding.
> >
> > Here is the deal. If I take a file and write this in it:
> >
> > <html>
> > <head>
> > <title>PHP Test</title>
> > </head>
> > <body>
> > <?php phpinfo() ?>
> > </body>
> > </html>
> >
> > I get the funny letters. If I take the same file with the same editor,
> > erase what is in it and write this:
> >
> > <?php phpinfo() ?>
> >
> > The funny letters go away, and vise-versa. Any more ideas?
> >
> > thanks,
> > maria
> >
> >
> > On Wed, May 29, 2013 at 8:26 PM, Sheila Fenelon <sheila at shefen.com
> > <mailto:sheila at shefen.com>> wrote:
> >
> > Maria McKinley wrote:
> > >
> > > I am getting weird characters at the bottom of my php page
> > outputs, and I
> > > can't figure out why. My searches tell me it is related to
> character
> > > encoding, but I can't figure out where else I could change the
> > encoding.
> > >
> > > ella:~# echo $LANG
> > > en_US.UTF-8
> > >
> > > I've set encoding for utf-8 in /etc/apache2/conf.d/charset and
> php.ini
> > >
> > > To look at what I am talking about at the very bottom of this page
> > are the
> > > weird characters:
> > >
> > > http://www.shadlenlab.columbia.edu/test.php
> > >
> > > This is a very simple php page:
> > >
> > > <html>
> > > <head>
> > > <title>PHP Test</title>
> > > </head>
> > > <body>
> > > <?php phpinfo(); ?>
> > > </body>
> > > </html>
> > >
> > > The characters do not show up on an html page with no php. Any
> ideas?
> > >
> >
> > I can't recreate it here with PHP 5.2 on 32-bit Debian. But it goes
> > away when I use
> > wget to capture that page.
> >
> > Is it on all PHP pages or just that one? Because that page has extra
> > HTML. All it
> > needs is
> >
> > <?php phpinfo() ?>
> >
> > and a complete HTML page will be generated.
> >
> > --
> > Sheila Fenelon
> > http://www.shefen.com/
> >
>
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk
>
--
Maria Mckinley
Programmer and System Administrator
www.mariakathryn.net
www.linkedin.com/in/mariamckinley
More information about the Techtalk
mailing list