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. Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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\">"; Quote Link to comment 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'>"; Quote Link to comment 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. Quote Link to comment 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? Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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.