script order determine if found or not the file? why?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
visonardo
Forum Contributor
Posts: 136
Joined: Mon Oct 02, 2006 7:49 pm
Location: Argentina, South America´s Sun.

script order determine if found or not the file? why?

Post by visonardo »

in my script i have this code part

Code: Select all

global $icono,$url7;
		$icono=($icono===false)?true:'metele';
		if($icono===true)
			echo 'ES VERDADERO<br>';
		elseif($icono=='metele')
			echo 'METELE '.$icono.'<br>';
		preg_match("/href\s*=\s*(((\"|'|`)[^>]*\\3)|[^>\s]*)/i",$coin[0],$enc);
		echo $ddd=limpia($enc[1]);
		echo '<br>';
		if($icono!='metele')
			$ddd2=url_raa($ddd);
		else
			$ddd2[$urlp]=($ddd{0}=='#')?substr($ddd,1):$ddd;
		$ddd=(($icono===true)?'#':'').$ddd2[$urlp];
		echo $ddd.'<br>';
		print_r($ddd2);
		echo '<br>';
		$a_a=str_replace($enc[1],$ddd,$coin[0]);
		echo htmlspecialchars($a_a).'<p>';
		return $a_a;


I wont delete all unuseful things and left my code thus

Code: Select all

global $icono,$url7;
		$icono=($icono===false)?true:'metele';
		preg_match("/href\s*=\s*(((\"|'|`)[^>]*\\3)|[^>\s]*)/i",$coin[0],$enc);
		$ddd=limpia($enc[1]);
		$ddd2=($icono!='metele')?url_raa($ddd):(($ddd{0}=='#')?substr($ddd,1):$ddd);
		$ddd2[1]=($icono=='metele')?$ddd2:$ddd2[1];
		$ddd=(($icono===true)?'#':'').$ddd2[1];
		$a_a=str_replace($enc[1],$ddd,$coin[0]);
		echo htmlspecialchars($a_a).'<p>';
		return $a_a;


Why when i left the code how shown the last example firefox say or show like when cant find a page or site? :!: :!: :!:


Which is the problem and why? it happened more time but i dont know why
Post Reply