php-general Digest 20 Dec 2011 15:15:23 -0000 Issue 7618

Topics (messages 316069 through 316072):

PHP page source charset
        316069 by: Rick Dwyer
        316071 by: Benjamin Hawkes-Lewis

questions about fastcgi
        316070 by: Rui Hu

PDF Page Size
        316072 by: Floyd Resler

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
Hello all.

When I set my page charset from iso-8859-1 to utf-8, when I run it through the W3C validator, the validator returns an error that it can't validate the page because of an illegal character not covered by UTF-8.


"Sorry, I am unable to validate this document because on line 199 it contained one or more bytes that I cannot interpret as utf-8(in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.
The error was: utf8 "\x99" does not map to Unicode"

Line 199 is a line with my open PHP declaration:
"<?php"

Not sure why W3C is having a hard time with this.  Any ideas?

 --Rick


--- End Message ---
--- Begin Message ---
On Tue, Dec 20, 2011 at 2:44 AM, Rick Dwyer <rpdw...@earthlink.net> wrote:
> When I set my page charset from iso-8859-1 to utf-8

Set it how?

http://www.w3.org/International/O-HTTP-charset.en.php

, when I run it through
> the W3C validator, the validator returns an error that it can't validate the
> page because of an illegal character not covered by UTF-8.
>
>
> "Sorry, I am unable to validate this document because on line 199 it
> contained one or more bytes that I cannot interpret as utf-8(in other words,
> the bytes found are not valid values in the specified Character Encoding).
> Please check both the content of the file and the character encoding
> indication.
> The error was: utf8 "\x99" does not map to Unicode"
>
> Line 199 is a line with my open PHP declaration:
> "<?php"
>
> Not sure why W3C is having a hard time with this.  Any ideas?

If you're looking up line references from a W3C validator in your PHP
code, then you're doing something very wrong and are perhaps
fundamentally confused. You need to distinguish between the PHP code
itself and the HTML that it generates and dispatches over the wire to
browsers and validators.

--
Benjamin Hawkes-Lewis

--- End Message ---
--- Begin Message ---
hi,

I encountered a problem while configured virtual host. My experiment
environment is Apache2+fastcgi+php-cgi.

I want to implement mass virtual hosting using rewrite rules based on
apache rewrite module. That is, for a request url like:
http://1000.xyz.com/test.php, apache will translate it to a absolute file
path like: $DOCUMENT_ROOT/1000/test.php, and then get this script to
execute.

And my conf is:
*        RewriteEngine On*
*        RewriteCond "%{HTTP_HOST}" "!^www.xyz.com"*
*        RewriteCond "%{HTTP_HOST}" "^([^.]+)\.xyz\.com" [NC]*
*        RewriteRule "(.*)" "/%1$1" [PT]*
I use inner redirection in order not to expose this detail to users.
Besides, I succeeded when I use external redirection, namely the [R] tag
instead of [PT] tag.
When I use [PT] tag, apache cannot run expectedly. I request a url :
http://1000.xyz.com/test.php, error message pops out like: The requested
URL /1000/cgi-bin/php.fcgi/1000/test.php was not found on this server.

I don't know if this error results from fastcgi, is it the inappropriate
config in fastcgi or inevitable problem by using it?

Really appreciate your help.

Vic

-- 
Best regards,

Rui Hu
----------------------------------------------------------------------------------------
State Key Laboratory of Networking & Switching Technology
Beijing University of Posts and Telecommunications(BUPT)
MSN: tchrb...@gmail.com
-----------------------------------------------------------------------------------------

--- End Message ---
--- Begin Message ---
What is a good solution for get the size of a PDF page in pixels?  I've tried a 
few different methods but haven't had much success.

Thanks!
Floyd


--- End Message ---

Reply via email to