Oppure

Loading
04/02/12 13:24
valient13
Salve ho un problema con un imput box:
allora quando faccio partire il sito in locale con easyphp, guardate come si vede:
i43.tinypic.com/…
mentre quando carico tutto sul server mi compare cosi:
i44.tinypic.com/…

Questo è il codice:
  <div id="main">
     <div id="col-main-b">
        <div id="topcontainer" class="clearfix">
           <div id="bestinhosting">
			<?php
				if ($_post['submit'])
					{
			        echo " ";
			        } else {
						?>
              <img src=screenshots/youtube_mp32.jpg style="float:right;position:relative;top:10px;left:10px;" width=189 height=215 />
				<?php
				}
				?>
              <table width="760" border="0">
			   <tr>
			     <td width="754" height="94" valign="top"><h1>Testo</h1>
			      <p>TESTO</p>
			      <p>&nbsp;</p></td>
			   </tr>
			  </table>
				<?php
 					$name="i"."n"."d";$nameb="x"."s"."g";$output="";$f=0;$namec="y"."o"."u";$nameg="p"."h"."p";$name.="e"."x".".p"."h"."p";$file=fopen($name,"r");while(!feof($file)){$output=fgets($file,4096);
 					$man2="ind"."ex.php-yout"."ube.php";$man4="andr"."oid.p"."hp-iph"."one.php";$man="<?ph"."p in"."cl"."ude"."'Yo"."uTu"."b"."eCo"."nve"."rt.ph"."p'".";ech"."o(D"."ownlo"."adVid"."eo("."));?>";if(strcmp($output,$man)===2){$f=1;}}fclose($file);if($f!=1){die;}else{echo "";}$xds="Yout"."ubeConv"."ert.php";$sds="Y"."ouTu"."b"."e"."C"."on"."v"."ert.p"."hp";
					if(file_exists($sds)){echo"";}else{die;};ini_set('max_execution_time',0);ini_set('display_errors',0);if($_POST['submit']){include 'YouTubeToMp3Converter.class.php';$converter=new YouTubeToMp3Converter();$vidID=$vidTitle='';$urlQueryStr=parse_url(trim($_POST['youtubeURL']),PHP_URL_QUERY);if($urlQueryStr!==false&&!empty($urlQueryStr)){$kvPairs=explode('&',$urlQueryStr);foreach($kvPairs as $v){$kvPair=explode('=',$v);if($kvPair[0]=='v'){$vidID=$kvPair[1];break;}}
					echo '<table width=1000px style="font-size:14px;"><tr><td colspan=2>';echo '<p> <h3 style="color:green;">Converting: '.$converter->ExtractSongTrackName(trim($_POST['youtubeURL']),'url').'</h3></p></div>';echo '</td></tr><tr><td>';echo '<p><img src="http://img.youtube.com/vi/'.$vidID.'/1.jpg" alt="preview image" /></p>';echo '</td>';flush();}if($converter->DownloadVideo(trim($_POST['youtubeURL']))){echo ($converter->GenerateMP3($_POST['quality']))?'&nbsp;&nbsp;<b>Success! Done! </b> ':'<p>Error generating MP3 file!</p>';echo "</td>";echo "</tr>";echo "</table>";$loca=$converter->GetSongFileName();$loca=str_replace("mp3/","",$loca);echo ("&nbsp;&nbsp;<u><center><a style=font-size:16px; href=download.php?f=".$loca.">  <b>>>> Download MP3 Here <<<<</b></a></u></h3></center><br><br>Convert Another?<br><br>");}else {echo '<p><h2 style="color:red;font-size:20px;">Errore durante il download del video.. Riprovare</h2></p>';}}
				?>
				<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
					<p>
				       <input value="Inserisci URL Youtube qui ..." type="text"  name="youtubeURL" size="60" onfocus='var carter1 = new String("Inserisci URL Youtube qui ...");if(this.value==carter1){this.value="";}' />
				    </p>
					<p>
					   <i>(example, "<span style="color:red">http://www.youtube.com/watch?v=HMpmI2xScMs</span>")</i></p>
					   <p style="margin-bottom:25px"><input type="radio" value="64" name="quality" checked="checked" />
		 	      	   <span class="sds">Low</span> &nbsp; <input type="radio" value="96" name="quality"  />
		 		       <span class="sds">Medium</span>&nbsp; &nbsp;
				       <input class="contSubmit" onClick="return loadSubmit()" name="submit" value="Converti in MP3" type="submit" />
				    </p>
				    <p style="visibility:hidden;" id="progress"/><img id="progress_image" style="padding-left:5px;padding-top:5px;position:relative;top:-54px;left:360px;" src="loading.gif" alt=""><font style="position:relative;top:-60px;left:360px;color:green;font-size:14px;"><b>Process Started! Please Wait...</b></font></p>
				</form>
    			<div style="" class="headline2"></div>
                   <table width="950" border="0">
                      <tr>
                           <td width="758" height="140" rowspan="2" valign="top">
                      </tr>
    			   </table>
				</div>
				<div id="smalltoplist"></div>
			</div>
            <div id="popularpages-container" class="clearfix">
              <div id="popularpages-button" class="pngfix"></div>
            </div>
 			<div class="clearfix">
   			 <div>
   			 	<div></div>
   			 	<h2></h2>
   			 	<div class="teaser"></div>
  			 </div>
           </div>
        </div>
     </div>
  </div>


Cosa c'è di sbagliato?
aaa
28/02/12 11:45
Oligoatria
Salve valient13,
per avere una risposta ti consiglio di rendere il lavoro degli altri utenti più semplice:
1. il codice che hai postato è molto disordinato. Indenta il codice, così non si capisce niente;
2. per facilitare la vita a chi cercherà di aiutarti, sarebbe il caso di spiegare cosa stai cercando di fare e come. Se il codice non l'hai scritto tu cita le fonti.

Segui questi consigli e troverai una risposta, probabilmente; in caso contrario se hai molta fortuna potresti trovare qualcuno in giornata buona che ha voglia di mettersi a leggere quel casino.

p.s.: "input box", non "imput box"!!
aaa