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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.