Web Hosting Talk







View Full Version : PHP Gurus I need some help here


certify
10-09-2001, 06:46 AM
I'm trying to convert my files to PHP but there is something wrong with the this code. Try to register an account, then login and go the the 2 links below, you will notice that from the index.shtml you the system managed to detect that you are login but from index.php you are still not login?? :confused:

This file call the header from header.shtml
http://www.certifyexpress.com/microsoft/index.shtml


<tr>
<td width="100%"><font face="verdana" size="2">&nbsp;&nbsp;<!--#include virtual="/forum/homelogin.php" -->,&nbsp;&nbsp;<b>Total Registered Members : <font color="#FF3300"><!--#include virtual="/forum/registered.php" -->&nbsp;</b></font></font>
<br>
</td>



This file call the header from header.php
http://www.certifyexpress.com/microsoft/win2kpro/index.php


echo "<td width=100%><font face=verdana size=2>&nbsp;&nbsp;";
include("http://www.certifyexpress.com/forum/homelogin.php");
echo "&nbsp;&nbsp;<b>Total Registered Members : <font color=#FF3300>";
include ("http://www.certifyexpress.com/forum/registered.php");
echo "&nbsp;</b></font></font>";
echo "<br>";
echo "</td>";


Below are the codes for homelogin.php


require("global.php");

if ($bbuserinfo['userid']!=0) {
$username=$bbuserinfo['username'];

echo "<font face=\"verdana\" size=\"2\">&nbsp;<b>Welcome back, <font color=\"#FF3300\">$username</font>&nbsp;!</b>&nbsp;[<a href=\"http://www.certifyexpress.com/forum/member.php?s=&action=logout\">Logout</a>]</font>";

} else {

?>

<font face="verdana" size="2">You are not login. <b><a href="http://www.certifyexpress.com/forum/pageregister.php?action=login">Login</a></b> or <b><a href="http://www.certifyexpress.com/forum/register.php">Register</a></b></font>

<?

}

?>

Voodoo Web
10-09-2001, 07:26 AM
I don't fully understand the problem.

Do you use cookies to remember the user. I don't know,it could be possible that cookies are available with virtual but I know they are not available with include("http://").

Why you don't include like that:
include("/forum/homelogin.php");
?

- domi

certify
10-10-2001, 12:39 AM
It the vbulletin board, I don't know if vbulletin uses cookies or not.