I am having the same exact dilemma as Adrian.
One thing I am slightly confused about is the execution of php on oxwall platform. I have a php file, which works perfectly fine on my server with a html page, which displays the results pulled from a shoutcast server.
The results are being pulled by javascript (which utilizes the php script on my server), for some odd reason, when the same java script is injected in a html box, on oxwall, if fails to work at all. Could anyone explain, what is "breaking" the code or stopping it from working as it would on a regular html page?
P.S I disabled the re-write rule for *.html files and *.php (except index.php), oxwall is performing as intended.
Check this out. http://www.oxwall.org/forum/topic/12662?&page=1
or here (abbrev version lol)
Probably because you need to add the file to the htaccess. If you are planning to execute a file within oxwall and it is not a plugin you may need to add the file to the htaccess in order to execute the file. You will get a 500 error if you try to execute a file inside of oxwall and it is not part of a plugin, part of oxwall, or not listed in the htaccess special section below.
in your htaccess oxwall root you need to add the following if it is not there.
FIND the close </FilesMatch> in htaccess
And AFTER that</FilesMatch> add the following code, examples are shown and have been comented out with #
#added to access custom files - sub domains or special folders
#--------
#subdomains and add on domains
#RewriteCond %{HTTP_HOST} !sub_addondomain.com$
#RewriteCond %{HTTP_HOST} !myaddondomain.com$
#
# folders
#RewriteCond %{REQUEST_URI} !/folder1/
#RewriteCond %{REQUEST_URI} !/folder2/
#
# files
#RewriteCond %{REQUEST_URI} !/filejs.js
#RewriteCond %{REQUEST_URI} !/file.php
#RewriteCond %{REQUEST_URI} !/file1.html
#RewriteCond %{REQUEST_URI} !/file2.jpg
#RewriteCond %{REQUEST_URI} !/file3.txt
AND BEFORE THIS CODE - make sure this code below that came standard with oxwall is after your added code..
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
Thanks,
That gives me a better idea, but I am working with nginx, I created a separate rule for my php file, but it seems to fail
if ($uri !~ "/strmcore/getInfo.php"){
set $rule_1 6$rule_1;
}
if ($rule_1 = "6"){
rewrite /strmcore/getInfo.php /strmcore/getInfo.php;
}
any ideas, please let me know.