Jump to content

isset($_GET


varghesedxb

Recommended Posts

This is my PHP script.This file is working in my localsystem, i am using WAMP server in localsystem.

But when i hosted the files in the server, nothing is working..

 

<object id="flashmovie" type="application/x-shockwave-flash" data="gallery.swf" width="100%" height="100%">

<param name="movie" value="gallery.swf" />

<param name="FlashVars" value="<? if(isset($_GET["image"])) echo "topimage=".$_GET["image"] ?>" />

</object>

 

Pls help

Link to comment
Share on other sites

thanks,but the flash file is still not loading same blank page.

attaching all files below except the .swf

index.php

<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" />

 

 

 

Link to comment
Share on other sites

When you do a "view source" of the various pages in your browser, is the content that is produced by php correct? What does a "view source" of your blank page show and which of the posted code is the one that gives a blank page?

 

Also, remove the @ in front of the getimagesize() as that would suppress any relevant error messages.

Link to comment
Share on other sites

this is code in view source, i compared the viewsource code of both local and remote  , both same

 

<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="" />

</object>

   

   

   

    </div>

</body>

</html>

<noscript>

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.