Hi all.
I am rerouting all requests through a script, dispatch.php, using a
..htaccess file, except on a few directories. dispatch.php then decides
what code needs to be loaded to return the correct info.
When calling the site root http://primo.localhost/ the result is sent
as text/plain and is rendered as such by Firefox (though interestingly
not IE, which renders the html)
When calling the page http://primo.localhost/index I get the exact same
content, but Firefox renders html, not text.
Has anyone got any explanation for this behaviour? Or a way to fix it?
I do not make any calls to header() in my code.
..htaccess:-
php_value include_path
".:/home/sites/primo.localhost/web/:/home/sites/primo.localhost/primo/:/home/sites/primo.localhost/"
RewriteEngine on
RewriteCond $3 (.*$)
RewriteCond $2 !zc
RewriteCond $2 !rt
RewriteCond $2 !html_version
RewriteCond $2 !rt
RewriteCond $2 !primo
RewriteCond $3 !dispatch.php
RewriteRule ((.*)/)?([^/]*)$ /dispatch.php
php_value error_reporting 2047
php_value display_errors on
cheers
fletch 4 1470
On Oct 10, 10:07 am, "fletch" <richard.a.fletc...@googlemail.com>
wrote:
Hi all.
I am rerouting all requests through a script, dispatch.php, using a
.htaccess file, except on a few directories. dispatch.php then decides
what code needs to be loaded to return the correct info.
When calling the site roothttp://primo.localhost/the result is sent
as text/plain and is rendered as such by Firefox (though interestingly
not IE, which renders the html)
When calling the pagehttp://primo.localhost/indexI get the exact same
content, but Firefox renders html, not text.
Has anyone got any explanation for this behaviour? Or a way to fix it?
I do not make any calls to header() in my code.
.htaccess:-
php_value include_path
".:/home/sites/primo.localhost/web/:/home/sites/primo.localhost/primo/:/home/sites/primo.localhost/"
RewriteEngine on
RewriteCond $3 (.*$)
RewriteCond $2 !zc
RewriteCond $2 !rt
RewriteCond $2 !html_version
RewriteCond $2 !rt
RewriteCond $2 !primo
RewriteCond $3 !dispatch.php
RewriteRule ((.*)/)?([^/]*)$ /dispatch.php
php_value error_reporting 2047
php_value display_errors on
cheers
fletch
Can it be true that my problem stumps everyone?
fletch
fletch wrote:
>
On Oct 10, 10:07 am, "fletch" <richard.a.fletc...@googlemail.com>
wrote:
>>Hi all.
I am rerouting all requests through a script, dispatch.php, using a .htaccess file, except on a few directories. dispatch.php then decides what code needs to be loaded to return the correct info.
When calling the site roothttp://primo.localhost/the result is sent as text/plain and is rendered as such by Firefox (though interestingly not IE, which renders the html)
When calling the pagehttp://primo.localhost/indexI get the exact same content, but Firefox renders html, not text.
Has anyone got any explanation for this behaviour? Or a way to fix it? I do not make any calls to header() in my code.
.htaccess:- php_value include_path ".:/home/sites/primo.localhost/web/:/home/sites/primo.localhost/primo/:/home/sites/primo.localhost/" RewriteEngine on RewriteCond $3 (.*$) RewriteCond $2 !zc RewriteCond $2 !rt RewriteCond $2 !html_version RewriteCond $2 !rt RewriteCond $2 !primo RewriteCond $3 !dispatch.php RewriteRule ((.*)/)?([^/]*)$ /dispatch.php
php_value error_reporting 2047 php_value display_errors on
cheers fletch
Can it be true that my problem stumps everyone?
fletch
No, it probably means you haven't described the problem well enough for
anyone to take a shot at it.
How about code, etc. And perhaps a URL we could check?
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
==================
On Oct 11, 9:31 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
fletch wrote:
On Oct 10, 10:07 am, "fletch" <richard.a.fletc...@googlemail.com>
wrote:
>Hi all.
>I am rerouting all requests through a script, dispatch.php, using a .htaccess file, except on a few directories. dispatch.php then decides what code needs to be loaded to return the correct info.
>When calling the site roothttp://primo.localhost/theresult is sent as text/plain and is rendered as such by Firefox (though interestingly not IE, which renders the html)
>When calling the pagehttp://primo.localhost/indexIget the exact same content, but Firefox renders html, not text.
>Has anyone got any explanation for this behaviour? Or a way to fix it? I do not make any calls to header() in my code.
>.htaccess:- php_value include_path ".:/home/sites/primo.localhost/web/:/home/sites/primo.localhost/primo/:/home/sites/primo.localhost/" RewriteEngine on RewriteCond $3 (.*$) RewriteCond $2 !zc RewriteCond $2 !rt RewriteCond $2 !html_version RewriteCond $2 !rt RewriteCond $2 !primo RewriteCond $3 !dispatch.php RewriteRule ((.*)/)?([^/]*)$ /dispatch.php
>php_value error_reporting 2047 php_value display_errors on
>cheers fletch
Can it be true that my problem stumps everyone?
fletchNo, it probably means you haven't described the problem well enough for
anyone to take a shot at it.
How about code, etc. And perhaps a URL we could check?
dispatch.php is only short, but calls Manager, which is 1097 lines.
Manager then loads page objects and blocks as required to build the
page. The code base is currently 25,601 lines, excluding templates. So
no chance of anyone reading the code.
Also, as stated in my orginal post the problem is not the content that
is produced with my code, but with the browser on the client side,
which is not interpreting the result as html.
Don't worry, I'll figure it out.
fletch wrote:
>
On Oct 11, 9:31 pm, Jerry Stuckle <jstuck...@attglobal.netwrote:
>>fletch wrote:
>>>On Oct 10, 10:07 am, "fletch" <richard.a.fletc...@googlemail.com> wrote:
>>>>Hi all.
>>>>I am rerouting all requests through a script, dispatch.php, using a .htaccess file, except on a few directories. dispatch.php then decides what code needs to be loaded to return the correct info.
>>>>When calling the site roothttp://primo.localhost/theresult is sent as text/plain and is rendered as such by Firefox (though interestingly not IE, which renders the html)
>>>>When calling the pagehttp://primo.localhost/indexIget the exact same content, but Firefox renders html, not text.
>>>>Has anyone got any explanation for this behaviour? Or a way to fix it? I do not make any calls to header() in my code.
>>>>.htaccess:- php_value include_path ".:/home/sites/primo.localhost/web/:/home/sites/primo.localhost/primo/:/home/sites/primo.localhost/" RewriteEngine on RewriteCond $3 (.*$) RewriteCond $2 !zc RewriteCond $2 !rt RewriteCond $2 !html_version RewriteCond $2 !rt RewriteCond $2 !primo RewriteCond $3 !dispatch.php RewriteRule ((.*)/)?([^/]*)$ /dispatch.php
>>>>php_value error_reporting 2047 php_value display_errors on
>>>>cheers fletch
>>>Can it be true that my problem stumps everyone?
>>>fletchNo, it probably means you haven't described the problem well enough for
anyone to take a shot at it.
How about code, etc. And perhaps a URL we could check?
dispatch.php is only short, but calls Manager, which is 1097 lines.
Manager then loads page objects and blocks as required to build the
page. The code base is currently 25,601 lines, excluding templates. So
no chance of anyone reading the code.
Also, as stated in my orginal post the problem is not the content that
is produced with my code, but with the browser on the client side,
which is not interpreting the result as html.
Don't worry, I'll figure it out.
If you need some help, you need to give us something to work with. In
your case you'd need to create a small test case showing the problem -
not post the entire code.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attglobal.net
================== This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mxsmanic |
last post by:
The require() I'm using in a PHP script has stopped working after I
moved from PHP4 and Apache 1.3.x to PHP5 and Apache 2.x. Now I get
messages like this:
Warning:...
|
by: gwen |
last post by:
Hi, I have a code to copy/move folders to a specified folder on the
root drive - ie c:\stuff However, I also have the folder "stuff" on
the root of other partitions as well - ie d:\stuff,...
|
by: Harlin Seritt |
last post by:
I have the following script. Two widgets call the same function. How
can I tell inside of the called function which button called it?:
def say_hello():
print 'hello!'
print widget
root =...
|
by: VK |
last post by:
Hi!
What I'm missing in following code? Cannot get the values of
radiobuttons. Starting only one class (GetVariant), it works. When I put
two classes together, it doesn't.
Regards, VK
from...
|
by: George W. |
last post by:
Okay, I'm a C#/XML newbie, and I've been wrestling with this for a while
now, checked dotnet sites, articles, MSDN Library, etc. and haven't been
able to determine why this is happening.
I have...
|
by: bryan |
last post by:
Is there any way I can get the application path (the one returned by
Request.ApplicationPath) in the Application_Start method in
Global.asax? Request is not valid there. On a related note, is there...
|
by: JerryK |
last post by:
Hi,
I have an ASP.net page, written in VB.net. In that code I want to access a
validator web services that is secured via SSL. I have installed the
certificate, via a .pfx file, on the system....
|
by: Bob Greschke |
last post by:
Hi!
I want to grab the contents of a Text widget when the frame it's on gets
destroyed. I tried TextWidget.bind("<Destroy>"... , but the widget is gone
before the call gets made, and I'd really...
|
by: lawpoop |
last post by:
Hello all -
I have a two part question.
First of all, I have a website under /home/user/www/. The index.php
and all the other website pages are under /home/user/www/. For
functions that are...
|
by: tshad |
last post by:
I have the following class in my VS 2008 project that has a namespace of
MyFunctions.
*********************************
Imports System
Imports System.Text.RegularExpressions
Namespace...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |