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 1499
On Oct 10, 10:07 am, "fletch" <richard.a.flet c...@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.flet c...@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/" RewriteEngi ne 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*******@attgl obal.net
=============== ===
On Oct 11, 9:31 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
fletch wrote:
On Oct 10, 10:07 am, "fletch" <richard.a.flet c...@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/" RewriteEngin e 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...@attg lobal.netwrote:
>>fletch wrote:
>>>On Oct 10, 10:07 am, "fletch" <richard.a.flet c...@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/" RewriteEngi ne on RewriteCo nd $3 (.*$) RewriteCo nd $2 !zc RewriteCo nd $2 !rt RewriteCo nd $2 !html_version RewriteCo nd $2 !rt RewriteCo nd $2 !primo RewriteCo nd $3 !dispatch.php RewriteRu le ((.*)/)?([^/]*)$ /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*******@attgl obal.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: main(/includes/ReloadScript.html) : failed to
open stream: No such file or directory in
/usr/local/www/htdocs/main/AOLCompression.php on line 14
Fatal error: main() : Failed opening required
'/includes/ReloadScript.html' (include_path='.:/usr/local/lib/php') in
|
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, e:\stuff, etc.
I would like the code to work so that the selected folder for
moving/copying will always go to the "stuff" folder of the drive that
it is on. In other words, if a folder is selected on the d drive, it
will be moved to d:\stuff, if it's...
|
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 = Tk()
button1 = Button(root, text='Button 1', command=say_hello)
button1.pack()
|
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 Tkinter import *
class GetVariant:
def __init__(self):
self.root = Tk()
|
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 an xml file that I am loading into an XmlDocument and then trying
to add a child element to the root element. I keep getting:
System.ArgumentException: The reference node is not a child of this node.
This occurs at the line where I'm using...
| |
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 a
way to get it from a static method in an aspx page, or in the class
(static) constructor for an aspx page?
Thanks,
Bryan
|
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. I can browse to the service
and appear to be getting through However, from my server page I cannot
access the web service. The call to the service generates the exception
"Request failed with HTTP status 403: Forbidden".
I had previously...
|
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 hate to do something with the
function that gets called with TextWidgetsFrame.bind("<Destroy>", ..., since
that one function handles all of the frames in the program...or would that
even work?
How can I do this?
|
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 used in multiple files, I have php files under /
home/user/www/functions/. These files simply have
So, in index.php and other files, I have
|
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 MyFunctions
Public Class BitHandling
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |