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
https://forums.phpfreaks.com/topic/132813-isset_get/
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
https://forums.phpfreaks.com/topic/132813-isset_get/#findComment-690731
Share on other sites

Any chance of you telling us what you mean by 'nothing is working'? Do you get a blank page? What actually happens? If you're getting a blank page, try adding the following two lines to the top of your script:

 

ini_set('display_errors', 'On');
error_reporting(E_ALL);

Link to comment
https://forums.phpfreaks.com/topic/132813-isset_get/#findComment-690747
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
https://forums.phpfreaks.com/topic/132813-isset_get/#findComment-690764
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
https://forums.phpfreaks.com/topic/132813-isset_get/#findComment-690773
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.