Jump to content

Error with functions!


lostone

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/97459-error-with-functions/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.