php index error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ubsacc2004
Forum Newbie
Posts: 6
Joined: Thu May 14, 2009 1:16 am

php index error

Post by ubsacc2004 »

hi all,

i start learning php and i encountered this error.

Warning: require_once(C:\Moodle\Moodle19\server\moodle\tshirtshop/presentationapplication.php) [function.require-once]: failed to open stream: No such file or directory in C:\Moodle\Moodle19\server\moodle\tshirtshop\index.php on line 5

Fatal error: require_once() [function.require]: Failed opening required 'C:\Moodle\Moodle19\server\moodle\tshirtshop/presentationapplication.php' (include_path='.;C:\Moodle\Moodle19\server\php\pear\') in C:\Moodle\Moodle19\server\moodle\tshirtshop\index.php on line 5

Pls help. tks.
Griven
Forum Contributor
Posts: 165
Joined: Sat May 09, 2009 8:23 pm

Re: php index error

Post by Griven »

Use a backslash instead of a forward slash.

This:

Code: Select all

moodle\tshirtshop/presentationapplication.php
Should be this:

Code: Select all

moodle\tshirtshop\presentationapplication.php
ubsacc2004
Forum Newbie
Posts: 6
Joined: Thu May 14, 2009 1:16 am

Re: php index error

Post by ubsacc2004 »

thanks bro. Its solved.
Post Reply