ctcp Posted July 7, 2009 Share Posted July 7, 2009 i got this script... <? $URL_parts = @parse_url ($row_DetailRS1['site_url']); $DOMAIN = str_ireplace ("www.", "", $URL_parts['host']); ?> <img src="image/site/<?if ( @is_file ("image/site/".$DOMAIN.".jpg" ) ){ echo $DOMAIN.".jpg"; }else{ echo "unknow.jpg"; }?>" alt="" width="270" height="173" /></p> how to in site_url colume i got links http://www.google.gr/mplamplampla http://www.phpfreaks.com/forums/index.php?action=post;board=1.0 http://www.gmail.com/mplamplampla now.. if site_url find google.gr show google.gr.jpg if find nothink show unknow.jpg if find google.gr and phpfreaks.com show google.gr.jpg and phpfreaks.com.jpg thanks for help .. Quote Link to comment https://forums.phpfreaks.com/topic/165056-php-view-image/ Share on other sites More sharing options...
Adam Posted July 7, 2009 Share Posted July 7, 2009 Really basic explanation there. if find google.gr and phpfreaks.com show google.gr.jpg and phpfreaks.com.jpg How exactly would this data look if both were found? How would you 'show' both, using 2 images? Do you *only* find google.gr / phpfreaks.com / gmail.com / nothing, or is the list endless? Need more information to help you. Quote Link to comment https://forums.phpfreaks.com/topic/165056-php-view-image/#findComment-870380 Share on other sites More sharing options...
ctcp Posted July 7, 2009 Author Share Posted July 7, 2009 thank you mate for your help look here (and sorry for my english ) http://linkscopy.com/ now scan only the first line from site_url i whant scann all lines and if finde difrent domain show it as jpg look here maybe you understant .. http://linkscopy.com/ Quote Link to comment https://forums.phpfreaks.com/topic/165056-php-view-image/#findComment-870382 Share on other sites More sharing options...
Adam Posted July 7, 2009 Share Posted July 7, 2009 Well then you were on the right tracks before. Why doesn't it work at the moment? Remove the "@" suppressing the error, could explain why it's not working. if find google.gr and phpfreaks.com show google.gr.jpg and phpfreaks.com.jpg I'm still at a loss as to this though, couldn't see anything similar on that website. Quote Link to comment https://forums.phpfreaks.com/topic/165056-php-view-image/#findComment-870385 Share on other sites More sharing options...
ctcp Posted July 7, 2009 Author Share Posted July 7, 2009 look i got 1) result page 2) view page in result page i display name in view page display name and site_url now in result page i whant display name and image image = site_url domain .. <?php $URL_parts = @parse_url ($row_DetailRS1['site_url']); $DOMAIN = str_ireplace ("www.", "", $URL_parts['host']); ?> <img src="image/site/<?if ( @is_file ("image/site/".$DOMAIN.".jpg" ) ){ echo $DOMAIN.".jpg"; }else{ echo "unknow.jpg"; }?>" alt="" width="270" height="173" /></p> this working fine ... but if in site_url i got 2 links this script display only the first line (script reading only the first line from colum site_url) example if i got in site_url google.gr/mplampla and phpfreaks.com/forums/ this script will take google.gr.jpg i whant now if site_url got google.gr/mplampla and phpfreaks.com/forums/ view google.gr.jpg and phpfreaks.com.jpg Quote Link to comment https://forums.phpfreaks.com/topic/165056-php-view-image/#findComment-870388 Share on other sites More sharing options...
Adam Posted July 7, 2009 Share Posted July 7, 2009 How would this look within the database though, literally "google.gr/mplampla and phpfreaks.com/forums/"?? Quote Link to comment https://forums.phpfreaks.com/topic/165056-php-view-image/#findComment-870401 Share on other sites More sharing options...
ctcp Posted July 7, 2009 Author Share Posted July 7, 2009 google.gr/mplampla432456 google.gr/mplampla432434545 phpfreaks.com/forums/ phpfreaks.com/forums/3 phpfreaks.com/forums/23 like this .. Quote Link to comment https://forums.phpfreaks.com/topic/165056-php-view-image/#findComment-870406 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.