RE: [PHP-WIN] Looking for new php hosting service

2005-03-09 Thread Ron.Herhuth
I have been very happy with Mediahost http://www.mediahost.com Ron >From: Jim MacDiarmid >To: PHP-windows@lists.php.net; [EMAIL PROTECTED]; [EMAIL PROTECTED] >Sent: 03/09/2005 11:37 AM >Can anyone provide recommendations? I currently have a plan with >http://www.webhost4life.com however I'm be

[PHP-WIN] Header Location pointing to a file

2005-02-15 Thread Ron.Herhuth
I am writing a script that does a database check and then based on several conditions I need to give the user a PDF file to view in the browser. Normally I would use the header("Location: the_file.pdf") command but this doesn't work...most likely because it doesn't try to resolve the MIME type

[PHP-WIN] Frustrating File Upload Error

2005-02-02 Thread Ron.Herhuth
I have a form that may or may not contain a file upload. When the user uploads a file the script works as it should. The problem is that when a user doesn't upload a file, I get an error that reads: "PHP Notice: No file uploaded in Unknown on line 0 PHP Warning: Cannot send session cache limit

RE: [PHP-WIN] Re: Date Help Needed

2005-01-31 Thread Ron.Herhuth
Thanks...that did the trick very nicely! i appreciate the help. Ron >From: Jeremy Schreckhise >To: php-windows@lists.php.net >Sent: 01/31/2005 12:56 PM >You could also do: >$daystosubtract = 3; >$mydate = >(date("m/d/y",mktime(0,0,0,date("m"),date("d")-$daystosubtract,date("Y")) )); > >

[PHP-WIN] Date Help Needed

2005-01-31 Thread Ron.Herhuth
I am trying to construct a function where I feed it a number such as "x" it returns the date "x" days ago. I tried checking out several resources that give you the difference between two dates, but not exactly what I was looking for. I was just hoping someone had a little algorithm in their bag

[PHP-WIN] Really Super Dumb MSSQL (NOTE: Microsoft SQL) Question

2005-01-19 Thread Ron.Herhuth
I feel stupid asking this but I did a quick search and couldn't find an answer. When I write a simple query to query MSSQL...is there a simple way to know if the query executed without error? I'm looking to do a simple if then statment to inform the user if the database information was added suc

[PHP-WIN] Reg Ex help

2005-01-13 Thread Ron.Herhuth
I might be an idiot... I am trying to do a simple check to make sure a string contains at least an alphanumeric character before I print the string. How can I do this? Ron

RE: AW: [PHP-WIN] Word COM Object

2005-01-07 Thread Ron.Herhuth
Thank you for reply. I figured out how to do that but now my issue is that since my styling is all done in HTML...I'm trying to bring over the HTML for each person's BIO, followed by a page break then the next person's BIO followed by a page break...and so on... The obvious problem is that if I u

[PHP-WIN] Word COM Object

2005-01-05 Thread Ron.Herhuth
I have successfully made a PHP script that takes dynamically generated HTML and creates a Word Doc then saves it to the server and creates a link to itself. This is fine and dandy but now I have to do a multipage document using several dynamically generated pages...this isnt a problem BUT I need

[PHP-WIN] COM syntax help

2005-01-05 Thread Ron.Herhuth
I am working with MS Word through the COM object. I have figrued out how to do almost everything I need, but I want to insert a page break. This is the code that I get from the VB Editor: Selection.InsertBreak Type:=wdPageBreak I tried this but it doesnt like it: $word->Selection->InsertBreak(

[PHP-WIN] Date Formatting

2004-09-22 Thread Ron.Herhuth
I see in the manual about how to format the current date using the date() function...but my question is...I have the date in this format: Sep 12 2004 2:16AM And I needed it formatted as: 09/12/2004 (I don't need the time) How do I go about doing that? Thanks, Ron

[PHP-WIN] Can't figure out how to surpress this error

2004-09-13 Thread Ron.Herhuth
I have a page that has a form allowing users to upload a file. The following page processes the information they entered checking all form fields with "isset" before attempting to process any of the information. The script works fine EXCEPT when the user does NOT upload a file...then the page dis

[PHP-WIN] Truncating data

2004-07-28 Thread Ron.Herhuth
Hey! Okay I have a simple script that is nothing more than a query run against a Microsoft SQL Server database which returns a VARCHAR(2400) field to display in a text area field for user modification. The problem is that even though all of the data exists in the database, when it is displayed in

[PHP-WIN] Strange dumping session behavior

2004-06-30 Thread Ron.Herhuth
Hi, I am having this strange session related problem. Basically I am starting a session on a succesful login and forwarding them to a page using: This works fine and they can naviagate around a bit. But when they return to a few of the pages for some reason the session appears to be terminat

[PHP-WIN] Sharepoint Web Parts in PHP

2004-06-18 Thread Ron.Herhuth
Has anyone done any programming of Sharepoint Web Parts in php? If so...what does the learning curve look like for a solid PHP developer? Would you reccomend it? My CIO is looking to implement Sharepoint and was wondering if we could develop and extend it using PHP. Thanks, Ron

RE: [PHP-WIN] MS SQL Query question

2004-05-25 Thread Ron.Herhuth
Trevor, That is the key!!! You rock...cut my page load time in half. Thanks my good man! Ron >From: Gryffyn, Trevor >To: Derrick Hermanson; Herhuth, Ron; [EMAIL PROTECTED] >Sent: 05/25/2004 3:11 PM >What's happening is the pointer on the results is advancing until it >hits the end of the result

[PHP-WIN] MS SQL Query question

2004-05-25 Thread Ron.Herhuth
When I run a query the syntax looks like this: $result = mssql_query($query); $numRows = mssql_num_rows($result); for($i=0; $i<$numRows; $i++) { $row = mssql_fetch_array($result); } but if I go to try and loop through the resultset again it wont work unless I run this line again "$result = mssq

RE: [PHP-WIN] Session troubles

2004-05-17 Thread Ron.Herhuth
THAT DID THE TRICK Excellent...thanks Charles! >From: Charles P. Killmer >To: [EMAIL PROTECTED] >Sent: 05/17/2004 10:39 AM >When you use the header function, you must include the SID. There are >numerous ways to do this but the way that I use is like this. > >session_start(); >$row['id']=545

[PHP-WIN] Session troubles

2004-05-17 Thread Ron.Herhuth
For some reason I am not able to get sessions to work. This is the code I have entered on the first page: session_start(); $row['id']=545; $_SESSION['individual_id'] = $row['id']; header("location:dataFilterExpander.php"); On page two this is the code I'm using: session_start(); if(empty($_

RE: [PHP-WIN] Is this possible (slight diversion)

2004-05-07 Thread Ron.Herhuth
I built a similar application to this and even added some additional functionality. Basically since my users only use Internet Explorer I used the fact that IE will ignore any elements outside of the form tag. So I contructed my form outside a the form tags and by using on change I would insert

[PHP-WIN] Serialization

2004-05-03 Thread Ron.Herhuth
Okay, I am trying to use serialization to pass my multidimensional array from one page to the other. I wrote a simple test page that passes the serialized data to the page and then attempts to print it out. But for some reason I keep getting an error that reads : "Notice: unserialize() failed at

[PHP-WIN] Passing a Multidimensional Array through a hidden form element

2004-05-03 Thread Ron.Herhuth
I have a multidimensional array that is created on one page and I need to send it to another page, preferrably using a hidden field in a $_POST form. This is what the array structure looks like: $mArray[0][5][1]="sampleElement"; I tried implode/explode but this just creates a long nasty string o

[PHP-WIN] Automated Login

2004-04-28 Thread Ron.Herhuth
I am trying to build an automated dashboard sort of thing that goes and checks if several of my clients sites are functioning and reporting back the findings. I have two types of URLs that I'm attmepting to check. 1) Typical static URLs example: http://www.yahoo.com 2) I would like to have the

[PHP-WIN] RegEx help (one more time)

2004-04-20 Thread Ron.Herhuth
I have been trying to learn RegEx but I seem to be coming up just a bit short. The pattern I'm looking for is: -xxx-xxx-xxx This is what I tried but obviously it did not work: if(preg_match("^\d{4}\/\-\d{3}\/\-\d{3}\/\-\d{3}^",$val)) Any help would be greatly appreciated, Ron

[PHP-WIN] RegEx help

2004-04-13 Thread Ron.Herhuth
EEK! I have been trying to get it...I really have but I can't seem to put together a seemingly simply RegEx to find a simple date string. I am trying to contruct a RegEx that will find the following formats: x/x/ xx/x/ x/xx/ xx/xx/ Any help is very much appreciated. Thanks, Ro

[PHP-WIN] Date Math

2004-04-12 Thread Ron.Herhuth
I am currently working on an application that needs to break out invoice totals by age. This is a sample line item: 2/7/2004... $456.89 Current Total : Over 30 Days : Over 60 Days : Over 90 days How can I determine the number of days from the current date? I should be able to handle th

[PHP-WIN] $_FILES array returns undefined index

2004-04-06 Thread Ron.Herhuth
I'm trying to do a file upload using PHP. I am using this form element on th first page: On the second page I'm attempting to access the file name to figure out how to access it using this code: echo $_FILES['userfile']['name']; I get an undefined index userfile...error What am I doing/not do

[PHP-WIN] STUCK : String Comaparison

2004-04-01 Thread Ron.Herhuth
I may be just over thinking this but I'm stuck trying to figure out a solution that has to deal with comparing a series of dynamic strings to a known string. The strings will be 8 characters long and each character will be either a zero or a 1. What I need to do is to compare the dynamic strings

[PHP-WIN] PLEASE HELP...Email attachment corruption

2004-03-25 Thread Ron.Herhuth
I am dying here. I'm on a deadline and I can't get attachments...specifically PDFs and Word Docs to send without corruption. I am using the script below to send the emails, and I have used several of the classes on PHP.classes to try but everytime the files show up and the error reads "The File i

[PHP-WIN] Email with attachments coming through damaged

2004-03-24 Thread Ron.Herhuth
Hi, I'm trying to send an attachment via email using the following function, but it keeps coming through damaged. I am having no trouble emailing the same attachment using OutLook. Is there something wrong with the function I'm using? The attachment shows up and I'm not getting any errors, but

[PHP-WIN] back slash issue

2004-03-22 Thread Ron.Herhuth
I have a situation where I need to use backslashes as part of the string: $errorCode = $TK->OpenOutputFile("D:\public\k1\compiledCIO\$filename"); Obviously in the above example the backslash terminates the following character which causes a problem. I have tried several different arrangements a

[PHP-WIN] Strange Substr Behavior

2004-02-27 Thread Ron.Herhuth
I'm trying to cycle through a keyword printing out three character groupings starting from each letter in the keyword. Here is the script I am using: $searchWord = "acme corporation" $chars = strlen($searchWord); echo "$searchWord"; for($i=0;$i<=$chars;$i++) { $j = $i + 3; echo $i . ":" . $j