RE: [PHP] PHP to Excel?

2002-06-18 Thread J. Anderson Scarbrough
I often build simple reports using HTML tables and then add an Excel MIME header to the page which launches Excel. Since newer verions of Excell suport HTML natively, Excel can read the HTML tables and render them appropriately with all your formatting. I find this works well for simple repo

[PHP] Determine if variable is set

2002-06-11 Thread J. Anderson Scarbrough
This is probably an easy answer, but I cannot seem to find it. Is it possible to determine whether a variable is set with either $_POST or $GET without having to do: if(isset($_POST['foo']) || isset($_GET['foo'])) //do something _

[PHP] Oracle Cursors

2002-05-29 Thread J. Anderson Scarbrough
I have a bound variable to an oracle cursor. I then use the OCIFetchInto() statment to move forward through the resultset. My question is how do i move backwards through the resultset? Or reset it to its starting position? thanks.

[PHP] array of objects???

2002-05-10 Thread J. Anderson Scarbrough
I have two classes. Organization and users. In the organization class I am try to keep an array of user objects but it does not seem to be taking. Can any help? See code below. class Organization { var $users = array(); function AddUser($oUser) { array_push($this->users,

[PHP] LDAP

2002-05-06 Thread J. Anderson Scarbrough
Is it possible to modify the password attribute in LDAP? I am the netscape directory server for authentication, but would like to allow the user to change their own password. When I search for a user and get the attibutes for that user password is not available. Am I missing something here?

[PHP] PHP & Apache

2002-04-29 Thread J. Anderson Scarbrough
This may be slightly off topic so please forgive me, but... I am trying to get my apache server up and running with PHP and basic authentication. Everything appears to be okay except the authentication portion. When I try to access the directory requiring authentication I reciever a 500 error

[PHP] Custom 404 Page

2002-02-27 Thread J. Anderson Scarbrough
I am running apache and php. I want to create a custom 404 page for my site. I have created a .htaccess file and "ErrorDocument 404 /error.php3" line to it. If someone tries to view www.myserver.com/thispagedoesnotexist.htm the 404 page is displayed without issue. If someone tries to view w

[PHP] How can you determine if you on the last result?

2001-11-28 Thread J. Anderson Scarbrough
If I execute a query and fill a resultset, how can i tell if I am on the last result in the set? I want to something like: while(OCIFetchInto ($curs, $data)) { if($isLastRecord) // do something } Thanks. Anderson _ Get your

RE: [PHP] PHP + librairies OCI8 + IPlanet Web Server

2001-11-19 Thread J. Anderson Scarbrough
What kind of error message do you get? Anything in the web server logs? My guess would be that you do not have your all of your oracle environment variables set up. -Original Message- From: Damien LEBLANC [mailto:[EMAIL PROTECTED]] Sent: Monday, November 19, 2001 6:54 AM To: [EMAIL PR

[PHP] PHP and GD

2001-09-24 Thread J. Anderson Scarbrough
I am trying to create PNG images on the fly using the following code. if(file_exists($key)) { $diff = time() - filemtime($key); if($diff >= 600) { unlink($key); } } $im = ImageCreateFromPNG($value); $isCreated = imagePNG($im, $key, '80'); //error occurs here I recieve the following error o