PHP Error only in remote server not in localsystem
Posted: Sat Nov 15, 2008 8:52 am
myPHP script is working in my localsystem, i am using WAMP server in localsystem.
But when i hosted the files in the server, nothing is working..
its bascially getting the images from flash file and displaying using PHP.
But there is no error message also displaying.
attaching all files below except the .swf, pls help
index.php
<?PHP ini_set('display_errors', 'On');
error_reporting(E_ALL);
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<title>Photoportfolio</title>
<script src="AC_RunActiveContent.js" type="text/javascript"></script>
<style type="text/css">
body{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
color:#000;
}
</style>
</head>
<body style="margin:0px; background-image:url(iii/body_background.jpg); background-repeat:no-repeat;">
<div align="center"><strong>Click the image to view the next</strong></div>
<div align="center" style="margin-top:10px; vertical-align:top;">
<object id="flashmovie" type="application/x-shockwave-flash" data="gallery.swf" width="800" height="600" align="middle" style="background-color:#364F62;">
<param name="movie" value="gallery.swf" />
<param name="FlashVars" value="<?php if(isset($_GET["image"])) { echo "topimage=".$_GET["image"]; } ?>" />
</object>
</div>
</body>
</html>
<noscript>
GALLERY.php
<?PHP
$xml = '<?xml version="1.0"?'.'>';
$handle = opendir(".");
while ( ($file=readdir($handle)) !== false ) {
if ( !is_dir($file) ){
$pic = @getimagesize($file);
if($pic != false && $pic[2] == 2){
$xml .= '<img src="'.$file.'" width="'.$pic[0].'" height="'.$pic[1].'" />';
}
}
}
echo $xml;
?>
GALLERY.XML
<?xml version="1.0"?>
<img src="1.JPG" width="700" height="525" />
<img src="2.JPG" width="700" height="525" />
<img src="3.jpg" width="700" height="525" />
But when i hosted the files in the server, nothing is working..
its bascially getting the images from flash file and displaying using PHP.
But there is no error message also displaying.
attaching all files below except the .swf, pls help
index.php
<?PHP ini_set('display_errors', 'On');
error_reporting(E_ALL);
?>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
<title>Photoportfolio</title>
<script src="AC_RunActiveContent.js" type="text/javascript"></script>
<style type="text/css">
body{
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
color:#000;
}
</style>
</head>
<body style="margin:0px; background-image:url(iii/body_background.jpg); background-repeat:no-repeat;">
<div align="center"><strong>Click the image to view the next</strong></div>
<div align="center" style="margin-top:10px; vertical-align:top;">
<object id="flashmovie" type="application/x-shockwave-flash" data="gallery.swf" width="800" height="600" align="middle" style="background-color:#364F62;">
<param name="movie" value="gallery.swf" />
<param name="FlashVars" value="<?php if(isset($_GET["image"])) { echo "topimage=".$_GET["image"]; } ?>" />
</object>
</div>
</body>
</html>
<noscript>
GALLERY.php
<?PHP
$xml = '<?xml version="1.0"?'.'>';
$handle = opendir(".");
while ( ($file=readdir($handle)) !== false ) {
if ( !is_dir($file) ){
$pic = @getimagesize($file);
if($pic != false && $pic[2] == 2){
$xml .= '<img src="'.$file.'" width="'.$pic[0].'" height="'.$pic[1].'" />';
}
}
}
echo $xml;
?>
GALLERY.XML
<?xml version="1.0"?>
<img src="1.JPG" width="700" height="525" />
<img src="2.JPG" width="700" height="525" />
<img src="3.jpg" width="700" height="525" />