oceans Posted June 28, 2007 Share Posted June 28, 2007 Dear friends, I was testing my codes in wamp, noe I am moving to linux. I did the following in WAMP echo "<img src=\"../Photos/Photos/Photos/".$Number."/1.JPG\" width=\"300\" height=\"300\">"; it worked but it is not working in Linux, can any one help me to reprase to suite linux, thanks. Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/ Share on other sites More sharing options...
cooldude832 Posted June 28, 2007 Share Posted June 28, 2007 check your capatilization. Most linux extensions are defaulted to all lower case Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/#findComment-284650 Share on other sites More sharing options...
oceans Posted June 28, 2007 Author Share Posted June 28, 2007 the respective folders are named exectly as you see, do you want me to call like this echo "<img src=\"../photos/photos/photos/".$Number."/1.JPG\" width=\"300\" height=\"300\">"; I can try, but are my "punctuations" correct, this works fine in my WAMP Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/#findComment-284652 Share on other sites More sharing options...
cooldude832 Posted June 28, 2007 Share Posted June 28, 2007 yes from your code the path is root/photos/photos/$number/1.JPG Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/#findComment-284653 Share on other sites More sharing options...
oceans Posted June 28, 2007 Author Share Posted June 28, 2007 I tried all lower case but it is not working, but the real folders and the files are as is in my instruction. can you write in the echo format as the files are shown in an if else condition. thanks. Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/#findComment-284656 Share on other sites More sharing options...
oceans Posted June 28, 2007 Author Share Posted June 28, 2007 Friends, please help me, I also have trouble handeling files, but all are fine in WAMP. Lets solve this one first, simpler then the rest. Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/#findComment-284674 Share on other sites More sharing options...
oceans Posted June 28, 2007 Author Share Posted June 28, 2007 any kind sole please help, it should be with version or punctuation, but it works as intended in wamp Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/#findComment-284690 Share on other sites More sharing options...
redarrow Posted June 28, 2007 Share Posted June 28, 2007 have you tried showing the img without any database code yet raw? Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/#findComment-284692 Share on other sites More sharing options...
oceans Posted June 28, 2007 Author Share Posted June 28, 2007 Redarrow, I could not get you. my original working comand echo "<img src=\"../photos/photos/photos/".$Number."/1.JPG\" width=\"300\" height=\"300\">"; Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/#findComment-284694 Share on other sites More sharing options...
redarrow Posted June 28, 2007 Share Posted June 28, 2007 <?php <<make sure your using no <? short tags ok. echo "<img src='../photos/photos/photos/$Number/1.JPG' width='300' height='300'>"; Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/#findComment-284695 Share on other sites More sharing options...
oceans Posted June 28, 2007 Author Share Posted June 28, 2007 Redarrow, Thanks for your hand I have a page, This page works perfect in WAMP5 (my home pc), the same page does not does this work in (web server)(linux, php5.x mysql5.x) Quite confusing! Further, I could not do any file or folder operations like rename, delete, mkdir in my linux server, but all are perfect in my WAMP. (these operations are in other pages) thus if we can get over with this src, I will be able to figure out with the other difficult ones from here.. Thanks friend. Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/#findComment-284697 Share on other sites More sharing options...
redarrow Posted June 28, 2007 Share Posted June 28, 2007 all folders must be cmod 0777 <<<<<<<<< done that yet? Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/#findComment-284698 Share on other sites More sharing options...
oceans Posted June 28, 2007 Author Share Posted June 28, 2007 Redarrow, somthing new i have never heard of, please explain, thanks Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/#findComment-284704 Share on other sites More sharing options...
oceans Posted June 28, 2007 Author Share Posted June 28, 2007 Can any one help , I still can't fix it Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/#findComment-284737 Share on other sites More sharing options...
trq Posted June 28, 2007 Share Posted June 28, 2007 Paths are no different in Linux. Its more than likely a permissions issue. Take a look at chmod. Link to comment https://forums.phpfreaks.com/topic/57523-src-an-image-in-linux/#findComment-284761 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.