include is not working
Posted: Wed Feb 23, 2011 4:31 pm
Hey,
First off, please know that I'm a complete noob in php and only have started recently. I'm trying to create a random image generator for my site although, I'm having one big problem. The include for the php script is not working, I have several includes in my site and they all work but this include is refusing to.
Here is the error message I'm getting. Note, I have throughly made sure there are no errors in spelling or anything that could be causing the include to fail.
Warning: include(C:\inetpub\wwwroot/includes/random_img.php) [function.include]: failed to open stream: No such file or directory in C:\inetpub\wwwroot\kawakestudios\index.php on line 1
Here is the code:
<?php include ('./includes/random_img.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml1 ... tional.dtd">
First off, please know that I'm a complete noob in php and only have started recently. I'm trying to create a random image generator for my site although, I'm having one big problem. The include for the php script is not working, I have several includes in my site and they all work but this include is refusing to.
Here is the error message I'm getting. Note, I have throughly made sure there are no errors in spelling or anything that could be causing the include to fail.
Warning: include(C:\inetpub\wwwroot/includes/random_img.php) [function.include]: failed to open stream: No such file or directory in C:\inetpub\wwwroot\kawakestudios\index.php on line 1
Here is the code:
<?php include ('./includes/random_img.php'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml1 ... tional.dtd">