LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   htaccess + auto_prepend_file failuere (http://www.litespeedtech.com/support/forum/showthread.php?t=6511)

MJuhler 12-30-2012 12:27 PM

htaccess + auto_prepend_file failuere
 
Hi, I have searched the forum and could not find other topics about this problem so I hope someone can help me.

In the /www I have a htaccess file containing the following:
php_value auto_prepend_file ../design/header.php
php_value auto_append_file ../design/footer.php

and it works fine, my problem is that when I call a page "list.php" located in /www/callback folder via "$("#show").load("callback/list.php");" so problems arise.
*
in callback folder is a htacces file with the following content:
php_value auto_prepend_file none
php_value auto_append_file none

and even to the rims htaccess file in the callback folder should not throw design of the file list.php then throw the design of anyway via htaccess file from the /www

It has worked in the past when we used Apache as web server, I hope there is someone who can help me :confused:

webizen 12-31-2012 11:48 AM

Quote:

Originally Posted by MJuhler (Post 42013)
...
and it works fine, my problem is that when I call a page "list.php" located in /www/callback folder via "$("#show").load("callback/list.php");" so problems arise.
...

Please elaborate how you call list.php. What script language is this "$("#show").load("callback/list.php");"?

MJuhler 01-02-2013 09:13 AM

sorry, the page is in php with javascript

<div id="show"></div>
<script type="text/javascript">
jQuery(function($) {
$("#show").load("callback/list.php");
interval_stats = setInterval("$('#show').load('callback/list.php');", 5000);
});
</script>

MJuhler 01-06-2013 04:45 AM

I really need help to solve this problem

NiteWave 01-06-2013 06:36 AM

not clear about:
Quote:

and even to the rims htaccess file in the callback folder should not throw design of the file list.php then throw the design of anyway via htaccess file from the /www
can you be more specific ?

MJuhler 01-06-2013 06:41 AM

htaccess file in callback folder has:
php_value auto_prepend_file none
php_value auto_append_file none
ie. files in this folder are not put on design.

However, the files in callback folder is being put design on by the htaccess file from the www folder, this did not happen on apache.

it seems like the htaccess file located in the callback folder has no effect as soon htaccess file from the www folder is loaded

NiteWave 01-06-2013 07:19 AM

my simple test show it's working as expected.

when direct access www.domain.com/callback/list.php, any problem ?

MJuhler 01-06-2013 07:31 AM

Files in the callback folder has to be loaded by this script

<div id="show"></div>
<script type="text/javascript">
jQuery(function($) {
$("#show").load("callback/list.php");
interval_stats = setInterval("$('#show').load('callback/list.php');", 5000);
});
</script>

when the files is loaded and showen in the div is has the design 2 times, first time on the file test.php in the www dir, and design again on the file list.php in the www/callback folder (where the htaccess file is set not to apped the design.

http://gamingtv.dk/1302415.png

NiteWave 01-06-2013 08:35 AM

here's testing source code: /test.php
PHP Code:

<script type="text/javascript" src="jquery.js">
</script>
<div id="show"></div>
<script type="text/javascript"> 
jQuery(function($) {
$("#show").load("callback/list.php");
interval_stats = setInterval("$('#show').load('callback/list.php');", 5000);
});
</script> 


the result is expected:
--- design header ---
--- callback/list.php -----
--- design footer ---

MJuhler 01-06-2013 08:38 AM

I do not understand why it teases with me if it works with you ... how does your htaccess file in the www folder and the callback folder?

Do you have something special in your server config?


All times are GMT -7. The time now is 11:31 AM.