Run php script from Drupal root folder

JannetTwelves

New Member
// Fixed, cause mod_securityI using a php script to make all external link run under my iframe. (got it here : drupal.org/node/172339 )I put it in root Drupal folder and on localhost, it running good, but when i upload to server, Drupal alway display 403 error. I don't know why and how to make it run like localhost.My script : exlink.php \[code\]<code><?php $nourl = "http://domain"; $url=$_GET["url"]; if(!$url) { $url=$nourl; } $notitle = "title"; $title=$_GET["title"]; if(!$title) { $title=$notitle; } $nodescription = "Description."; $descrip=$_GET["descrip"]; if(!$descrip) { $descrip=$nodescription; }?><html><head><title><?php echo"$title" ?></title><meta name="description" content="<?php echo"$descrip" ?>" /></head><frameset rows="85px,*" frameborder="NO" border="0" framespacing="0"> <frame src="http://stackoverflow.com/questions/6541534/frame.php?url=<?php echo"$url" ?>" name="frame" scrolling="NO" noresize> <frame src="http://stackoverflow.com/questions/6541534/<?php echo"$url"; ?>" name="main"></frameset><noframes><body><?php echo"$descrip" ?></body></noframes></html> </code>\[/code\]If go to domain/exlink.php : it foundbut go to domain/exlink.php?title=aaaaaaaa&url=bbbbb&descrip=ccccccc : it 403 errorI try to CHMOD 777 but still no luck.Please help me ASAP.Thank you very much--Anbody help
 
Top