[PHP-WIN] Interesting tidbit

2002-10-30 Thread R.S. Herhuth
We are running Tomcat and PHP under IIS on Windows 2k sp2. While we were watching the memory manager we noticed that whenever PHP was invoked Tomcat's memory increased by about 5mb. This was consistent over about a half an hour, we have no reason to believe that it hasn't been occuring like this

[PHP-WIN] Any Squirrelmail users running on Windows NT 5 under IIS 5?

2002-09-30 Thread R.S. Herhuth
I'm trying to get Squirrel Mail running under Windows NT 5 running IIS 5 and I was wondering if someone might be able to give me a hand. Specifically I'm getting a ton of "Warning: Cannot add header information - headers already sent..." errors. I was wondering if there is a setting (or setting

[PHP-WIN] LDAP scripts to read Exchange Server 2000 Contacts

2002-09-18 Thread R.S. Herhuth
I was wondering if anyone knows of any sample scripts that utilize PHP's support for LDAP. Specifically I'm going to be attempting to utilize LDAP to access contact information from the Microsoft Exchange server. It looks like LDAP is just the ticket for this. I was hoping to have a few sample

Re: [PHP-WIN] mysql_query() & mail() - something weird is going on !

2002-09-12 Thread R.S. Herhuth
I had a problem similar to this and it required that we update the mssql.textsize and mssql.textlimit in the php.ini file. Hope that helps, ROn dash php wrote: > > Just a thought: > > How long does that SQL query take? Have you tried setting the timeout period > to be longer than 30 seconds?

[PHP-WIN] finding out if a key exists in an associative array

2002-08-22 Thread R.S. Herhuth
I'm creating an associative array that creates keys and values for those keys on the fly. Later I need to check and see if the array contains a key before I call it to avoid the dreaded "Undefined Index" error. Is it possible to see if a key exists in an associative array before I call it? Ki

[PHP-WIN] Any good tutorials on working with IMAP/POP3 and php

2002-08-20 Thread R.S. Herhuth
I'm looking for some really good tutorials on working with email and PHP. I'm hoping for some serious industrial strength stuff. I would even purchase a book or two if need be. Thanks, Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Getting Field Names in Microsoft SQL

2002-08-16 Thread R.S. Herhuth
I'm trying to build a dynamic script that basically extracts all of the fields in a MS SQL database...I just can't seem to figure out how to get at the field names themselves. I am using the mssql_fetch_array followed by the $row['field_name'] in an array. But I would like to make the field_nam

[PHP-WIN] Quotes issues

2002-08-15 Thread R.S. Herhuth
I need to strip off quotes both single and double from form input. This is what I have but it doesn't appear to be working: str_replace("\"","",$string); str_replace("\'","",$string); Please help. Thanks, Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://ww

[PHP-WIN] Identifying data types in PHP

2002-07-30 Thread R.S. Herhuth
Is there a command in PHP that can identify what datatype a variable represents? Specifically I want to know if the variable is an Array. Thanks Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] SESSIONizing Post form vars

2002-07-30 Thread R.S. Herhuth
Is there a quick way to add all of the vars in the $_POST[] array to the $HTTP_SESSION_VARS[]? I suppose a loop would do the trick. Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Looking for some help with using CDO with PHP

2002-07-30 Thread R.S. Herhuth
Does anyone have any experience in working with CDO objects in PHP? Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Brain Twister

2002-07-25 Thread R.S. Herhuth
I have a series of offices (11 at the present time). Each office has a CITY STATE ZIPCODE and a MILEAGE. What I need to do is to sort them by mileage which is dynamically calculated earlier in the script. I need the offices to be stored in an array and sorted by the MILEAGE after which I will

[PHP-WIN] Dumb date question

2002-07-24 Thread R.S. Herhuth
I was hoping someone could help me quickly. I did a quick scan of the documentation but I couldn't find the answer. How can I convert a month that appears as a string like "Jan" into the numerical equivelent such as "12" without doing a huge if-then statement? Thanks, Ron -- PHP Windows Mail

Re: [PHP-WIN] Is there a limit... PLEASE HELP I'm Desperate

2002-07-23 Thread R.S. Herhuth
After checking the bios it seems to be truncating right around the 4092 character mark (including spaces). I checked the database and it does in fact contain the entire bio (well over the 4092 character mark)...and as a side note ASP returns the entire bio. It seems to be some type of truncatio

[PHP-WIN] How to deal with copy and pasted text...

2002-07-23 Thread R.S. Herhuth
Can anyone point me at a command or tutorial or sample script on how to deal with the pesky special characters that occur when users copy and paste Microsoft Word file generated text into a text area? All the apostrophes, quotes and ellipses are converted into question marks when they are parsed

[PHP-WIN] Is there a limit...

2002-07-23 Thread R.S. Herhuth
Is there a limit to the amount of text a variable can hold? I have a situation where I'm querying a SQL database for a Salesmans Biography and then echoing the variable using the syntax "$row['bio]" and for some reason the bios appear to be truncated on the larger bios. I am not processing the

[PHP-WIN] Looping through dates

2002-07-19 Thread R.S. Herhuth
I'm trying to create a simple app that loops through Sundays displaying the date until the current date is reached. I have the loop working nicely but I'm unsure how to compare the result to the current date. I put a mock loop together to get the basics working: "; $dateCalc+=7; } This go

[PHP-WIN] Handling Multi-Select form lists

2002-07-16 Thread R.S. Herhuth
I am using a multi-select form list...how do I go about retrieving the multiple values? My current script only pulls the first value using: $_POST['multi_select']; Thanks, Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Misbehaving Headers

2002-07-11 Thread R.S. Herhuth
I'm trying a trick I found on converting a report from generatated HTML to an Excel spreadsheet. Apparently there is a bug in MSIE that requires that I use the following syntax to pass a link in order for the headers to pick up on the fact that it is an Excel Spreadsheet that I'm after. First p

[PHP-WIN] Available PHP Whitepapers

2002-07-11 Thread R.S. Herhuth
My CIO is impressed with what I have been accomplishing using PHP and is considering updating a few of their aging ASP applications, but he needs textual ammunition to present to the management committee to do so. So I was wondering if anyone knows of any technical whitepapers on PHP geared towa

[PHP-WIN] bringing back data by day from current week

2002-07-10 Thread R.S. Herhuth
I'm trying to write a stats program that queries a MSSQL database to bring back a count of all items entered into the database for the current week by day. I'm having trouble getting my mind around how to write this seemingly simple concept. I have the database and I know the field name but I'm

[PHP-WIN] Script doesn't write to database...

2002-07-09 Thread R.S. Herhuth
I have put together this script to read a row of data from SQL Server, perform a calculation and write back the results. the read and calculation are working but it doesn't write the data to SQL Server...what am I doing wrong here? CityStateZipLongitudeLatitudeLongitude RadiansLatitude Radians

Re: [PHP-WIN] Re: Closest store location by zip code

2002-07-09 Thread R.S. Herhuth
> Does any one know a php script that send to my account unlimited money? > > -- > > Best regards, > George Nicolae > IT Manager > ___ > PaginiWeb.com - Professional Web Design > www.PaginiWeb.com > > "R.S. Herhuth" <[EMAIL PROTECT

[PHP-WIN] Closest store location by zip code

2002-07-08 Thread R.S. Herhuth
Does any one know of a php script to calculate the closest store to a user entered zip code? Thanks, Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Setting up a auto-incrementing id field in SQL Server

2002-07-08 Thread R.S. Herhuth
I would like to create a auto incrementing id field in SQL Server 2000. What data type should I use and what settings? Thanks -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Is it possible to get a hostname?

2002-07-03 Thread R.S. Herhuth
Is it possible to get the actual hostname of a users host such as AOL or Mindspring by name? I tried the get it by using "gethostbyname" using the "remoteaddr" of the user but all I get is the IP address, not the host name. Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe,

[PHP-WIN] HTTP_REFERER

2002-07-03 Thread R.S. Herhuth
I have looked at several stats gathering code blocks and they use $HTTP_REFERER. When I use that I get and undefined variable error. I also tried $HTTP_SERVER_VARS["HTTP_REFERER"] which gets me an undefined index error. I also tried $HTTP_SERVER_VARS["REFERER"] which generates the undefined in

[PHP-WIN] Getting users IP Address

2002-07-02 Thread R.S. Herhuth
How do I get a users IP address using either Javascript or PHP? Thanks, Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] could not load php_mssql.dll problem

2002-06-12 Thread R.S. Herhuth
I installed the latest version of php on a Windows NT box running IIS. Everything is fine but when I elect to autoload the php_mssql.dll I get a "Could not load php_mssql.dll ...Could not be found" error. I quadruple checked the the path and that is fine. Several other of the modules that are

[PHP-WIN] IIS Sucks!

2002-05-28 Thread R.S. Herhuth
I decided to setup IIS instead of Apache to match my clients environment on both my home and work machine...now I have not been able to get php working for anything. I have spent almost a week trying to configure IIS to no avail. I'm locked in security permission hell. My home machine: Inter

[PHP-WIN] Accessing CDO with PHP

2002-05-23 Thread R.S. Herhuth
Hi, Has anyone on this list successfully accessed CDO using the COM support in PHP version 4.2.1? I would be greatful if they would share configuration tips. I have tried running this script a thousand times with no success: To = '[EMAIL PROTECTED]'; $message->From = '[EMAIL PROTECTED]'; $me

[PHP-WIN] Having problems grasping reg ex

2002-05-22 Thread R.S. Herhuth
I'm really struggling trying to grasp the concept of reg ex rfeplacement. I have been through the documentation and a few tutorials but I can't find something that shows me exactly how to return a string that contains nothing but alpha numeric characters, while stripping out all other characters

[PHP-WIN] COM Problem

2002-05-21 Thread R.S. Herhuth
I built a script that converts a Microsoft Word file to text and removes common characters. The text will then be stored in a database for searching. The script below has been behaving a bit odd. It worked this morning but now all I get back is a blank screen and the text file it writes is bla

[PHP-WIN] Searching for many keywords simultaneously

2002-05-21 Thread R.S. Herhuth
I have a search and replace where the search for consists of 300 words. Luckily this will only have to be done when a user uploads a file. The file may contain several hundred words itself. My question is what is the best way to approach searching for this many words? Should I use an array a

[PHP-WIN] Can't figure out how to fix this code...please help

2002-05-17 Thread R.S. Herhuth
This is my code: CreateItem("olMailItem"); $a=$myItem->Recipients->Add("[EMAIL PROTECTED]"); $myItem->Subject="This is a test"; $myItem->Body="This is a Body Section now.!"; $myItem->Display(); $myItem->Send(); ?> This is the error I'm getting... Warning: Invoke() failed: Type mis

[PHP-WIN] searching the text in uploazded Word docs

2002-05-16 Thread R.S. Herhuth
Is there a way to include the text contained in Word Docs in a php based search? Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] $PHP_SELF generating an error

2002-05-16 Thread R.S. Herhuth
I am using the $PHP_SELF variable on a form page and while the page works fine I'm getting an error: Undefined variable PHP_SELF in... This is very odd because it parses the link correctly and it works fine. Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://

[PHP-WIN] Return portion of a string

2002-05-15 Thread R.S. Herhuth
I have an instance where I have an article ($article) that may or may not contain: There might be many occurrances of this substring in exactly the same format but the id's will be unique with each occurance. Can someone please show me how to extract the id's (in this case the 102) of the abo

[PHP-WIN] String replacement...

2002-05-14 Thread R.S. Herhuth
I have a situation where I will be pulling back an article that may contain none or several references to link IDs in the following format: The rest of the article is basically text in the format of a news article. What I need to do is to extract the ID (the #226 in this example) and run a que

Re: [PHP-WIN] Need help with compressed uplaod problem...

2002-05-14 Thread R.S. Herhuth
Anders, What you need to do is Zip him first and then insert him in the automatic cup holder (it looks like a CD-Rom tray) you will then find him on your C drive. You may then include him as an attachment. Hope this helps, RSH "Svensson, B.A.T. (HKG)" wrote: > > Hi all! > > I tried this ques

Re: [PHP-WIN] Re: how do I access variables passed in a URL?

2002-05-13 Thread R.S. Herhuth
> RTFM..;-) > > -- > > Best regards, > George Nicolae > IT Manager > ___ > PaginiWeb.com - Professional Web Design > www.PaginiWeb.com > > "R.S. Herhuth" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">

[PHP-WIN] how do I access variables passed in a URL?

2002-05-13 Thread R.S. Herhuth
I have the Globals turned off and I'm trying to figure out which array will alow me to access varibales passed in the URL: Example: next page What array with the variable "testVar" show up in? Thanks, Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

[PHP-WIN] Sessions under PHP 4.2

2002-05-13 Thread R.S. Herhuth
I know this has been discussed before but I'm having trouble finding anything that outlines it. I installed 4.2 and I want to use sessions with the "stock configuration." I tried this but it doesn't work...what should I be doing different? Page 1 - Page 2 - thanks, Ro

[PHP-WIN] Spreading the returned results among multiple pages...

2002-05-06 Thread R.S. Herhuth
List, I'm trying to write a script that only returns x number of results from a query per page. I have all the logic in place that should do the trick but the one problem I'm having is getting the SQL query to work for me. BTW I'm suing Microsoft SQL Server 2000, not My SQL. I know that MySQL

[PHP-WIN] Same old string quote issue

2002-05-03 Thread R.S. Herhuth
I'm having the problem of the quotes I have seen mentioned on this list before but I forgot how to resolve it: echo" http://www.mysite.com','market')'>test link"; how do I resolve the need for multiple occurances of the quotes so they won't terminate each other? Thanks, Ron -- PHP Windows

[PHP-WIN] Quoted Dynamic Strings are killing me (Second Attempt)

2002-04-22 Thread R.S. Herhuth
I have been trying to create strings dynamically by combining text and variables. Because SQL wants single quotes surrounding the values I have been forced to create the string as follows (all variables have been previuosly set earlier on the page): $query = "select bio FROM individual WHERE la

[PHP-WIN] Quoted Dynamic Strings are killing me

2002-04-22 Thread R.S. Herhuth
I have been trying to create strings dynamically by combining text and variables. Because SQL wants single quotes surrounding the values I have been forced to create the string as follows: -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] A Breath fo Fresh Air -- Bandwidth Waster

2002-04-19 Thread R.S. Herhuth
I just want to say that after two weeks of working with PHP I'm finally getting it (thanks to this list and it's contributors!). PHP rocks! Ron -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Connecting to a remote database

2002-04-18 Thread R.S. Herhuth
Newbie alert! I am able to connect to a SQL Server Database on my local network by specifying the host as "testHost" the database is "DB". My question is if I'm outside the network what is the correct syntax that I need to call in the host in order to access the database? Thanks, ROn -- PHP

[PHP-WIN] Creating a "nice" link

2002-04-18 Thread R.S. Herhuth
I am creating a few links on the fly that have to pass variables to the next page: echo 'next page' The problem is that I don't want that information to appear in the address field (more like a method=post instead of a method=get). How can I do that? I was trying to use sessions under W2k, ph

[PHP-WIN] Processing forms and emailing results

2002-04-15 Thread R.S. Herhuth
I setup the latest versions of Apache, and php. I would like to be able to process a couple forms and email responses but I can't figure out how to configure my system to do this. Do I need yet another application to add this functionality? If so what am I looking for? Any advice? Thanks,

[PHP-WIN] Tutorials on stored procedures using SQL Server

2002-04-12 Thread R.S. Herhuth
Anyone know of any internet based tutorials on using stored procedures with SQL Server? Thanks, ROn -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Instructions on how to resolve a DNS

2002-04-12 Thread R.S. Herhuth
I am interested in serving up my own domain from my home computer running the latest release of Apache on Windows 2000. I have a domain name already registered. Does anyone know where I can find instructions on how to set up my domain name to point at my server? Thanks, ROn -- PHP Windows Ma

[PHP-WIN] Dynamic querys to SQl Server

2002-04-11 Thread R.S. Herhuth
I'm new to php and I'm trying hard to get a grasp on pulling data from SQL Server. I'm looking for an efficient method for making dynamic queries to SQL server. Basically what I have created so far is a page that dynamically builds all of the column names of a database. I have assigned each

[PHP-WIN] Session Variable Problem

2002-04-11 Thread R.S. Herhuth
I'm running the latest build of php and Apache under Windows 2000 pro. I have been experimenting with sessions and I'm having a bit of trouble. page 1 I create a session_start() above all of the HTML. I have a 3 form element (a checkbox) with: name="myVar" value="1",name="myVar" value="2",na