php-general Digest 24 Nov 2007 04:15:00 -0000 Issue 5144

Topics (messages 264981 through 264986):

Re: Page not displayed/Forbidden on PHP forms
        264981 by: Andrés Robinet

File handling and different character sets
        264982 by: Per Eriksson

quicktime new window php
        264983 by: kNish
        264984 by: Stut

dgettext vs. xgettext
        264985 by: news_yodpeirs.thoftware.de

Re: Basic question - PHP usage of SVG files [SOLVED]
        264986 by: Dave M G

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 ---
I would check the follwing:
- If the problematic host has apache's mod_security enabled. The system
administrator can tell you if mod_security is disallowing some of the input
(which might cause the "403 forbidden").
- PHP.INI parameters max_execution_time, max_input_time and
max_input_nesting_level (more info is at the online php manual) you can
query these values through ini_get, and you can set them through .htaccess
files, e.g. "php_value max_execution_time 300" (if the hosting company
allows their use).
- Call ignore_user_abort at the top of the processing script (CAREFULLY read
the notes for that function) and query the value returned by
connection_status, or connection_aborted (maybe create a log file for the
returnded values through successive requests to keep track of any issue)
- Check what (cache) headers the server or your processing script is sending
to the browser.
- Also, if $_REQUEST processing is a time consuming operation and you use
ob_start, ob_end_flush, etc you can try flushing the output buffer from time
to time (if your programming logic allows for that).

Well, this is quite a list... but if they are getting "403 forbidden" it
might be an issue with the server configuration (such as a highly restricted
mod_security configuration), rather than server performance or speed. Hope
that helps.

Ohh, by the way, if you can send the culprit URL to us for testing it will
help a lot (BUT DON'T DO THAT if this is a private system, or a system for
which you don't want to get any additional traffic).

Rob

Andrés Robinet | Lead Developer | BESTPLACE CORPORATION
5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308
| TEL 954-607-4207 | FAX 954-337-2695 | 
Email: [EMAIL PROTECTED]  | MSN Chat: [EMAIL PROTECTED]  |  SKYPE:
bestplace |  Web: bestplace.biz  | Web: seo-diy.com

> -----Original Message-----
> From: Jeffrey [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 23, 2007 4:12 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Page not displayed/Forbidden on PHP forms
> 
> We are running identical web applications with two different hosts.
> Both
> are LAMP.
> 
> With one of hosts, we are having reports of users seeing "Page not
> displayed" or "403 Forbidden" after submitting forms. These forms are
> always sending data to the same page from which they started and the
> problem is not consistent. (ie. sometimes the forms work fine,
> sometimes
> they deliver the error). The problem only seems to have occurred with
> users on IE and mostly who are a significant distance from the server.
> 
> This does not seem to be occurring at the other host.
> 
> The problem host is not being responsive about solving the problem
> (which will cost them our business). Could this be a PHP time-out
> issue?
> Something in the PHP settings or is it likely a server issue or
> something else.
> 
> Your expertise - as always - is much appreciated!
> 
> Jeff
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Hi,

I would like to know how you work with the PHP Directory Functions and
different character sets. If I am having a professional view,
well-written code should be able to handle file systems in different
character sets.

http://se.php.net/manual/sv/ref.dir.php

Is there a way to write code for listing files from a ISO-8859-1 on a
UTF-8 page? I haven't succeeded with this.


Thank you,

Best Regards

Per Eriksson
per.eriksson A exist ! se

--- End Message ---
--- Begin Message ---
Hi,

          How is it possible to have a hyper link open a new quicktime window


BRgds,

kNish

--- End Message ---
--- Begin Message ---
kNish wrote:
How is it possible to have a hyper link open a new quicktime window

You can't guarantee it because it's a client-side decision that you have no control over. You basically link to a file and the browser decides what app to open it with. You don't get a choice.

-Stut

--
http://stut.net/

--- End Message ---
--- Begin Message ---
Hi!

I'm using dgettext() with different domains in one set of scripts (or even 
in one script). When extracting the messages with xgettext I would like to 
specify an option to get only messages for one domain, like getting all 
messages from calls to dgettext('foobar',...) and ignore all others. 
Otherwise it wouldn't be possible to knwo which message belongs to which 
domain. Did anyone else came across this problem? And, even more interesing: 
Does anyone have a solution for this?

With kind regards
Thomas 

--- End Message ---
--- Begin Message ---
Larry,

Thanks for your advice.

With the XML editor available within PHP, I've made a small script that can extract the point data inside an SVG file, and store them as an array of points.

That array can then be used to draw and fill shapes in a PNG image. And since they are stored as an array, I can do a little math on them to manipulate their scale and whatnot.

The interpolation between points gets lost with this method, but in this case, I can get by with straight lines.

Thanks for helping me to see the value in using PHP's XML functions.

--
Dave M G

--- End Message ---

Reply via email to