[PHP] Won't display session information
I'm working on a simple session management program for logging in and I can't seem to get the information to properly display. I would really appreciate a second look from someone. Code is below Execute($strSQL); if ($rs->EOF) { Access_Denied(); } else { $_SESSION["FirstName"] = $rs->fields["FirstName"]; $_SESSION["Email"] = $rs->fields["Email"]; //redirect at this point } } } //- function ConnectDB() { global $objConn; $db_type = "mysql"; $db_location = "localhost"; $db_uid = "xxx"; $db_pwd = "xxx"; $db_name = "login"; include("wrapper/adodb.inc.php"); $objConn = NewADOConnection($db_type); $objConn->Connect($db_location, $db_uid, $db_pwd, $db_name); $objConn->debug = false; } I'm kind of lost here I'm new to PHP, but have developed in both Perl and TCL before so the syntax is familiar. Thanks for the help in advance, Jeremy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Create Word Document from PHP??
I've been trying to create a MS Word document from PHP, but I've been running into some issues. I was wondering if there was anything in the config file (php.ini) that needs to be configured before I can do this. I'm using the example from the manual, but i'm receiving several errors. Loaded Word, version 9.0 Warning: Invoke() failed: Exception occurred. Source: Microsoft Word Description: Could not open macro storage. in C:\Inetpub\wwwroot\php\word.php on line 11 Warning: Invoke() failed: Exception occurred. Source: Microsoft Word Description: The requested member of the collection does not exist. in C:\Inetpub\wwwroot\php\word.php on line 15 PHP Warning: Invoke() failed: Exception occurred. Source: Microsoft Word Description: Could not open macro storage. in C:\Inetpub\wwwroot\php\word.php on line 11 PHP Warning: Invoke() failed: Exception occurred. Source: Microsoft Word Description: The requested member of the collection does not exist. in C:\Inetpub\wwwroot\php\word.php on line 15 # Any help would be appreciated... Thanks, Jeremy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Create Word Document from PHP??
Thanks for the spell check... I'm sure it will come in handy once I get this thing to work. I've adjusted my permissions for the COM permissions on the server. I have given Internet Users access to open/close/read/create the word file. Is there anything else that needs to be done?? Here's my php.ini settings for [COM] [com] ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs ;com.typelib_file = ; allow Distributed-COM calls com.allow_dcom = true ; autoregister constants of a components typlib on com_load() ;com.autoregister_typelib = true ; register constants casesensitive ;com.autoregister_casesensitive = false ; show warnings on duplicate constat registrations ;com.autoregister_verbose = true Is there anything that needs to be allowed for it to work? Thanks again.. Jeremy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] COM and php.... Several issues....
I've read through most of the documentation on how to use COM to create MS Word documents via PHP, but I'm still having some issues that I can't seem to find any help on. CODE: Version)\n"; $word->visible = 1 ; $word->Documents->Add(); $word->Selection->Typetext("This is a test"); ?> RETURNS: Loaded word version (9.0) Warning: Invoke() failed: Exception occurred. Source: Microsoft Word Description: Could not open macro storage. in C:\Inetpub\wwwroot\php\word.php on line 6 I've looked on MS's website and have adjusted the DCOMCNFG.cfg as below: 1. Microsoft Word Document 2. Default Access Permission (INTERACTIVE / IUSR_NT-BOX) 2.Default Launch Permissions (INTERACTIVE / IUSR_NT-BOX) 3. Default Config. Permissions (INTERACITVE /IUSR_NT-BOX) I really don't know what else I'm doing wrong...I've been trying to get this to work for the last two days and it seems like and endless loop!! Any help would be appreciated.. Jeremy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Recommendation for PHP Shopping Cart
I'm looking for an off the shelf shopping cart that has been developed in PHP. Please send me the link and the cost of the software. I would develop my own, but time is an issue. Thanks! Jeremy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php