php


Cannot run a simple PHP file on the server [closed]


Hi have uploaded a PHP file on the server. When reaching that url using a browser, for example
mysite.com/test.php
I see the code (content) of the PHP file and the script seems not running.
SERVER IS F5 BIG-IP Apache
Could you point me out what could be the error?
<?php
$url = rawurldecode($_GET['proxy_url']);
$cb = ! empty($_GET['callback']) ? $_GET['callback'] : null;
if(preg_match('#xxx\.xxx\.com/xxx/#', $url)){
$url = preg_replace('#http\://xxx\.xxx\.com/xxx/#', '', $url);
}
if(! preg_match('#^https?:#', $url)){
$url = preg_replace('#^[\.\/]+#', '', $url);
if(!file_exists($url)){
echo 'File not found';
die(0);
}
}
if(preg_match('#\.xml$#', $url)){
header('Content-type: text/xml');
}
$file = file_get_contents($url);
if($cb){
header('Content-type: application/javascript');
echo $cb.'('.$file.');';
}else{
echo $file;
}
Have you installed PHP? - If so do the following:
Start off by trying a simple script - call it say info.php:
Ensure (assuming Apache) that you have it the web server configured - see http://php.net/manual/en/install.php
If all this works then there is a problem with the script.
close php tag and check does server support php
Your server is not setup to parse PHP scripts, check that it has PHP installed

Related Links

Sending form data into php file via ajax
Osclass search algorithm in custom attributes plugin
How do i optimise a mysql query that updates rank order in nested loop?
Symfony 3 authentication fail after add a new DB connection
how to set PHP confirmation dialog box before save and after form validation in single page [closed]
php wont let me echo JSON string
The trim() function is not working in php
What is the best way to update a group of rows in laravel
I'm creating postcard using lob api and by running lob's example I've stuck on this Fatal error:
WordPress MultiSite URL Redirect
L5 How to use trait that hashes id but keep pivot functionality
Show both existing & non-existing ID's comparing two tables in <select>
not able to fetch all category in opencart autocomplete admin
Getting router parameters using the Registry pattern
Concatenating php source code files for performance
PHP array re-sort when changing a value

Categories

HOME
entity-framework
user-interface
weblogic12c
bokeh
postgresql-9.4
scroll
activex
add-on
operating-system
risk-management
jersey-2.0
elisp
greasemonkey
bittorrent
video-streaming
openfoam
repair
angular2-template
hspi
roku
driver
spring-amqp
xbap
google-tasks-api
gravity
spring-shell
angular2-highcharts
web-analytics
el
maven-surefire-plugin
uislider
web-push
cellular-network
audit
ms-media-foundation
nest
wdk
nanogallery
windows-store
imgur
grails3.2.0
contactless-smartcard
photoswipe
md5-file
sonicmq
datediff
deedle
polymaps
rustdoc
http4s
controllers
libharu
zynq
ftp-client
dojo-build
django-redis
currency-exchange-rates
psd
json-spirit
phpquery
decidable
directx-9
nastran
calcite
extend
sqlbase
gluon-desktop
featuretoggle
wso2ml
google-gdk
algebraixlib
ocmockito
camus
uno
operands
juttle
adhoc-polymorphism
dmake
mobile-country-code
osascript
squeezebox
nachos
fileshare
wso2bam
map
hyphen
non-ascii-characters
yii-booster
form-for
aero
ui-design
smartfox
zend-pdf
autosize
sigar
bll
odac
google-translator-toolkit
projectpier
index.dat

Resources

Encrypt Message