This is a discussion on "Login trouble" within the PHP Forum section. This forum, and the thread "Login trouble are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Login trouble
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Hey Everyone,
I'm having trouble creating a login page for my database. Whenever I enter the correct username and password I receive this error message: Warning: require_once(../mysql_connect.php) [function.require-once]: failed to open stream: No such file or directory in c:\Inetpub\wwwroot\new site\ropdunpw.php on line 200 Fatal error: require_once() [function.require]: Failed opening required '../mysql_connect.php' (include_path='.;C:\php5\pear') in c:\Inetpub\wwwroot\new site\ropdunpw.php on line 200 The php connect file is outside the main directory for security. My php code is as follows:
Any help would be great! cheers zig. Last edited by c010depunkk; Dec 17th, 2007 at 16:54. Reason: please use [PHP] tags when posting PHP |
|
|
|
#2
|
||||
|
||||
|
Re: Login trouble
The problem isropdunpw.phpcannot acquire your mysql_connect.php file. Are you sure it is in the correct location? And named exactly as quoted in ropdunpw.php?
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
|
|
#3
|
||||
|
||||
|
Re: Login trouble
If you have it outside the main directory, use th absolute path the file to avoid PHP using the wrong base dir to find it.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Having trouble with PHP | voodoo465 | PHP Forum | 5 | Feb 20th, 2007 21:47 |
| CGI Trouble | Maverick25r | Other Programming Languages | 0 | Jul 31st, 2006 18:24 |
| browser trouble | killaclown55 | Web Page Design | 2 | May 2nd, 2006 05:18 |
| Trouble Getting Site Up | M.K.Russ. | PHP Forum | 0 | Apr 17th, 2006 15:59 |
| Site trouble HELP | Money_Mike$$ | Web Page Design | 7 | Jan 18th, 2006 12:38 |