lostone Posted March 23, 2008 Share Posted March 23, 2008 Ok, lets first say hi and give a server background... ok its freebsd 7.0, php 5.2.5, apache 2.2, and i just set it up today so it might be a setting i haven't changed or i didn't install php right lol but heres the error i have and please help I'm getting really mad! ??? also could this have anything to do with not having java installed on here(only because I'm not sure how to do ... I'm new to Freebsd/Unix/Linux...nut not too new Warning: file(data/banner_ads.txt) [function.file]: failed to open stream: Permission denied in /usr/local/apache2/htdocs/index.php on line 51 Warning: join() [function.join]: Invalid arguments passed in /usr/local/apache2/htdocs/index.php on line 51 on this code the imgs are showing up just getting a red (X) on both this computer and my xp and my vista. <?php $t = date('H'); $T = $t - 1 ; if ($T >4 && $T <= 6) print '<img src="img/dawn.jpg" alt"" />'; elseif ($T > 6 && $T < 18) print '<img src="img/day.jpg" alt"" />'; elseif ($T >= 18 && $T < 20) print '<img src="img/nightfall.jpg" alt"" />'; else print '<img src="img/night.jpg" alt"" />'; ?> ... oh ps. everything worked fine on my last tester server(the xp had same php, had the win apache 2.2. and your welcome to edit/use my img on time script just add cred to matt garner Quote Link to comment Share on other sites More sharing options...
lostone Posted March 23, 2008 Author Share Posted March 23, 2008 Ha ha i found the error... i didn't change the set the folders to be view by the server after sending over FTP from Dreamweaver lol my bad sorry for bothering y'all. 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.