tatong steele
|
| Posted: 08/29/2002, 1:32 AM |
|
I'm running a PHP application with Apache 2.02 and PHP4.3(isapi version) with WINXP and MySql.
I'm trying CCS1.07 employee directory sample in Apache. It worked fine when im testing it in IIS5 . So my quess is that my php and mysql has something not right going on between them. Cant figure it out though.
I check the Login and Password on the database and what I've inputed is right.
My security level is the highest.
php.ini
-The session path is existing
-Global setting is on
-theres no Error that appears
But all that happens is I go back to the login page when i login.
Apache2.0.2 works fine with the common Php pages which does not require login.
I tested this code in my WAMP setup and it worked!!! So my guess is mysql is fine. So it must be the codes that CCS1.0.7 generates that is compatible with PHP4.3? Or is it?
----------------
<h3>Press RELOAD to add a record to the MySQL database:</h3>
<?
//establish user connection
mysql_connect("localhost");
//open up database
mysql_create_db("testdatabase");
mysql_select_db("testdatabase");
//create table
mysql_query("CREATE TABLE newone(firstName VARCHAR(25),
lastName VARCHAR(25))");
mysql_query ("INSERT INTO newone (firstName, lastName) VALUES
('John', 'Tester')");
//display the information
$result = mysql_query ("SELECT * FROM newone");
while($row = mysql_fetch_array($result))
{
print ("Added record: " . $row["firstName"]."
".$row["lastName"]."<br>\n");
}
//close user connection
mysql_close();
?>
----------------
But once the phpcode from CCS1.07 is executed to login in the sample EmplDirectory, I just go back to the Login Page. No error or anything but an empty username box and password box.
CodeCharge people can anyone explains whats happening here??
I'm Stuck!!
|
|
|
 |
CodeCharge Support
|
| Posted: 08/29/2002, 6:37 AM |
|
Hello,
please submit the request to the support system at: http://support.codecharge.com/support_new.asp
|
|
|
 |
kangus
|
| Posted: 09/01/2002, 2:21 AM |
|
I have 4.3 and 2.036 running, CCS told me they would support 4.3 when it was released not in beta.
I have issues with 4.2.2 and 1.3.26 that I hope CCS resolve before moving on...
|
|
|
 |
Robin Bolton
|
| Posted: 09/12/2002, 10:39 AM |
|
I am also experiencing the same problem with CC 2.05, Apache 1.3.23 and PHP 4.2.3 (ISAPI) running on W2K (I haven't yet tried it with CCS).
register_globals is on, but I get an endless loop to the Login page.
I would hope (and assume) that this is high on Yes' list of priorities, as 4.3 will be adding some major updates that I'm really looking forward to (better mail() support).
Despite the long delay in a CCS update, and the slight buginess, I love it to bits and look forward to scaling my Intranet up from CC2 to CCS.
|
|
|
 |
CodeCharge Support
|
| Posted: 09/16/2002, 1:27 AM |
|
Hello,
it is the problem with session handling code generated by CCS. The appropriate modifications are already made to include them into next CCS version.
For now please replace CCSetSession() function body with the following code:
function CCSetSession($param_name, $param_value)
{
global $HTTP_SESSION_VARS;
global ${$param_name};
if(session_is_registered($param_name))
session_unregister($param_name);
${$param_name} = $param_value;
$HTTP_SESSION_VARS[$param_name] = $param_value;
session_register($param_name);
}
|
|
|
 |
|