This is a discussion on "error with login" within the PHP Forum section. This forum, and the thread "error with login are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
error with login
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
error with login
what is going on on this page
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
|
|
|
#2
|
|||
|
|||
|
Re: error with login
what errors are you getting?
|
|
#3
|
|||
|
|||
|
Re: error with login
um
Quote:
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
|
#4
|
||||
|
||||
|
Re: error with login
this is what's going on:
Fatal error: Call to undefined function: virtual() in /home/betanew/public_html/henry/admin/login.php on line 1 Your code is calling a function which either doesn't exist or it can't find. A simple google search for "php virtual" gives this page: http://uk2.php.net/function.virtual And by the looks of it, virtual() is an apache function so you'll probably get an error if you're trying to run this code on IIS.
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#5
|
|||
|
|||
|
Re: error with login
i put a include() tag and now look
Quote:
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
|
#6
|
|||
|
|||
|
Re: error with login
session_start(); has to be the very first thing it loads and since you are including a page that has headers ... it doesn't like it.
the first 3 is a problem loading your include file ... check the path. You can't do include(/include/ ... ) it has to be something like include(../include/...) |
|
#7
|
|||
|
|||
|
Re: error with login
ok i have got rid of the includes
but look now
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
|
#8
|
||||
|
||||
|
Re: error with login
look where?
do you have a link for this?
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#9
|
|||
|
|||
|
Re: error with login
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
|
#10
|
||||
|
||||
|
Re: error with login
Here's your answer, exactly what Karinne said:
Quote:
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#11
|
|||
|
|||
|
Re: error with login
i tryed that and got a big error
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
|
#12
|
||||
|
||||
|
Re: error with login
"a big error"
Shame IPv5 doesn't support thought transfer protocols...
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#13
|
|||
|
|||
|
Re: error with login
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
|
#14
|
||||
|
||||
|
Re: error with login
That was a joke mate.
We can't help if you say you 'got a big error' What was the error?
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#15
|
|||
|
|||
|
Re: error with login
Quote:
that one happened when i move the session_start();
Last Blog Entry: Whats your Niche? (Jun 10th, 2008)
|
|
#16
|
||||
|
||||
|
Re: error with login
PROBLEM 1:
You're trying to include a file that can't be found. I'm assuming your folder structure is... {ROOT}/Connections/ {ROOT}/admin/ {ROOT}/etc/ So, <?php virtual('/Connections/working.php'); ?> LOOKS FOR: {ROOT}/Connections/working.php But this only works on Apache. <?php include('/Connections/working.php'); ?> LOOKS FOR: {ROOT}/admin//Connections/working.php Which is probably what you have at the moment. <?php include('../Connections/working.php'); ?> LOOKS FOR: {ROOT}/Connections/working.php BINGO! PROBLEM 2: Look for session_start(); in ALL your code and make sure there's only ONE. PROBLEM 3: You're never gonna get the hang of this if you don't try. Just mess about with the code and it will work. This is a simple enough problem that any PHPer wannabe should be able to solve, specially after the pointers we've already given. There is a lot of people in this forum willing to help but we can't spoon-feed you all the way along... I mean this nicely, with lots of love and sugar on top! LOL
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
#17
|
|||
|
|||
|
Re: error with login
Quote:
|
|
#18
|
||||
|