[PHP-WIN] Re: Excel Spreadsheet as a datasource (Using Excel thru COM)

2003-03-20 Thread Scott Hurring
at my site for more updates in the comign days/weeks) (Im using this now in combination with GTK to develop a "standalone" app for a Win32 machine. Excel is great becuase the managers can simply open the file and print it and dont have to use a separate program to generate reports) -

Re: [PHP-WIN] Identifying data types in PHP

2002-07-30 Thread Scott Hurring
And more generally, http://www.php.net/manual/en/function.gettype.php -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > is_array > > On Tue

[PHP-WIN] Re: SESSIONizing Post form vars

2002-07-30 Thread Scott Hurring
$HTTP_SESSION_VARS, it doesn't seem like the best thing in the world (i would keep them separate).array_merge() will probably do what you want... or a simple loop: while (list($k,$v) = each($_POST)) $HTTP_SESSION_VARS[$k] = $v; -- Scott Hurring Systems Programmer EAC Corporation sco

[PHP-WIN] Re: pretty simple-but i can't figure it out

2002-07-30 Thread Scott Hurring
ore and prevent accidental mis-interpretation (if you use "$imore.php", it would not use "$i"'s value but "$imore") -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Tim Blackwell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

[PHP-WIN] Re: PHP Integration...

2002-07-30 Thread Scott Hurring
Well, as a starting point, for Outlook, look at COM, i've used it to control Excel in the past. As for credit checking agencies, i have no idea what type of interface you're dealing with, so i can't really suggest anything. good luck, though... sounds like a fun project :) -

[PHP-WIN] Re: php.ini

2002-07-23 Thread Scott Hurring
Nope :) Have you checked the return status of all mysql function calls? most probably, there's a failing connect or query call somewhere that you're not catching. -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Wayne A. Darby" <[EMAIL PROTE

[PHP-WIN] Re: IIS Bugs???

2002-07-12 Thread Scott Hurring
There's a problem with IIS and the rest of the world :-) -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Brian McGarvie" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... OK This is a followon from my Browser

Re: [PHP-WIN] How to dectect if a file exist in specific Folder

2002-07-12 Thread Scott Hurring
or use google :-) http://google.com/search?q=PHP+file+exists&ie=UTF-8&oe=UTF-8&hl=en&lr= 5th link down is a direct link to file_exists function specs on zend.com -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "David Elliott" <[EMAIL PROTEC

[PHP-WIN] Re: ini_set

2002-07-12 Thread Scott Hurring
erhaps the admin. turned off ini_set() for security reasons (although it sounds like you're running this locally) -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Robert" <[EMAIL PROTECTED]> wrote in message 015a01c22815$2bf5d2b0$1aacfe91@fatalerror"

[PHP-WIN] Re: Returning values from function

2002-07-12 Thread Scott Hurring
Do it the opposite way... don't use "&" when passing vars to functions, but do use it when receiving values in functions: -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Thomas Weidner" <[EMAIL PROTECTED]> wrote in message [EMAI

Re: [PHP-WIN] Re: Calling Windows DLL Files

2002-07-12 Thread Scott Hurring
would click a single button and an office assistant would look at an image and decide which patient's file to put it into.... pretty simple ;-) -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Dash McElroy" <[EMAIL PROTECTED]> wrote in message ABA3F1F

[PHP-WIN] Re: formatted textareas

2002-07-12 Thread Scott Hurring
An HTML textarea cannot show any formatting, AFAIK. Yahoo and MSN use an ActiveX control... -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Milton Thomas" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does

[PHP-WIN] Re: Final Year Computer Science Project involving PHP

2002-07-12 Thread Scott Hurring
How about java<->PHP interoperability? How about a SOAP PHP backend and a PHP-GTK front-end that communicate with each other (or, for that matter, how about a Java GUI front-end?) -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Serdar Sokmen" <[EMAI

Re: [PHP-WIN] Re: Calling Windows DLL Files

2002-07-11 Thread Scott Hurring
fire up MSIE to the webpage showing a list of "newly scanned documents". Perhaps check out PHP-GTK for writing win32 GUI apps with PHP. -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Todd Williamsen" <[EMAIL PROTECTED]> wrote in message [EMA

[PHP-WIN] RE: run as

2002-07-09 Thread Scott Hurring
[EMAIL PROTECTED] > Subject: Re: run as > > > At 09:15 09/07/2002 +, you wrote: > >Message-ID: <[EMAIL PROTECTED]> > >To: [EMAIL PROTECTED] > >From: "Scott Hurring" <[EMAIL PROTECTED]> > >Date: Mon, 8 Jul 2002 17:36:52 -0400 > &g

[PHP-WIN] Re: Session - funny or magic?

2002-07-08 Thread Scott Hurring
I assure you, it's not magic, and it doesn't stop working "without reason" - there's always a reason with computers :) Could you please send a code snippet so we can see exactly what you're doing? -- Scott Hurring Systems Programmer EAC Corporation scott (*

[PHP-WIN] Re: WinampCOM problem

2002-07-08 Thread Scott Hurring
t apache is running as doesn't have permission to do COM stuff.... but i really don't know for sure. -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Olivier Hubert" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]..

[PHP-WIN] Re: COM stalls the server..

2002-07-08 Thread Scott Hurring
.. so after a few minutes, there'd be so many open Excel instances that the computer would really slow down. I'd imagine that on a server, the problem would be magnified. -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Ross Fleming" <[EMAIL PROTECT

Re: [PHP-WIN] playing with register globals ....

2002-07-08 Thread Scott Hurring
Erm, it might be easier to use $_REQUEST rather than determining _POST and _GET (and possibly running into prob's later if the form submission METHOD changes) -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Dash McElroy" <[EMAIL PROTECTED]

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

2002-07-08 Thread Scott Hurring
Actually, a fine gentleman from Nigera the other day emailed me the encrypted source code to just such a script all i had to do was give him my bank account information and let him transfer over $25 million to me so i could afford some machines to crack the encryption. :-) -- Scott Hurring

Re: [PHP-WIN] case-sensitive

2002-07-02 Thread Scott Hurring
iables. what version of PHP are you using? -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Chris Schmidt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Yes includes work My problem is with case of vars >

Re: [PHP-WIN] Re: errormessage: undefined variables - why define them?

2002-07-02 Thread Scott Hurring
n (if you use register_globals). -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Dash McElroy" <[EMAIL PROTECTED]> wrote in message ABA3F1F1A223D411BE6C006008A6F7E260434D@MSX1-PTON">news:ABA3F1F1A223D411BE6C006008A6F7E260434D@MSX1-PTON... > PHP w

Re: [PHP-WIN] Tons of notices and warnings...for what reason?

2002-07-02 Thread Scott Hurring
ey wrote some pretty slipshod code if you're getting that many notices and errors. -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Tracker 1" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > okay, in yo

Re: [PHP-WIN] case-sensitive

2002-07-02 Thread Scott Hurring
I assure you, include() does work ;-) Verify that the file is indeed present in the 'include_path' (as set manually by ini_set() or in 'php.ini'), and make sure that the server is actually parsing PHP files correctly. -- Scott Hurring Systems Programmer EAC Corporati

[PHP-WIN] Re: Parsing HTML Error

2002-07-02 Thread Scott Hurring
HP is just NS 4 acting dumb. the browser/OS of the client's computer has absolutely zero effect on the server-side parsing and output of PHP scripts. -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Ivan Arbitman" <[EMAIL PROTECTED]> wrote in messa

Re: [PHP-WIN] Newbye question

2002-06-26 Thread Scott Hurring
developing code, so i suggest you keep them turned ON for local dev, but it's harmless to turn them off. -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Saci" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... &g

[PHP-WIN] Re: Script not working correctly

2002-06-18 Thread Scott Hurring
Adjust the 'max_execution_time' in php.ini or with a call to ini_set() and it won't timeout. PHP is a great language, don't let something a silly as a default timeout value dissuade you from using it to do "longer running" things. -- Scott Hurring Systems Pr

Re: [PHP-WIN] Not a PHP problem, it's a MySQL problem

2002-06-18 Thread Scott Hurring
Try putting a "LIMIT 10" after a valid query -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > top 10 *? What is that supposed

[PHP-WIN] Re: Connecting to MS Access

2002-06-12 Thread Scott Hurring
looking for, but go over the documentation again, and try to look for code examples. ** And always check your status vars ** -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com -- "Bill Hudspeth" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news

[PHP-WIN] Re: HTTP_WEREFERER / HTTP_REFERER

2002-06-10 Thread Scott Hurring
Why not check to see which one is set? -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com "Hippo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I found the following problem, When using varia

Re: [PHP-WIN] Re: Apache 2.0.36 + PHP + Win2000 Server

2002-06-10 Thread Scott Hurring
ion server, but I do almost all my development work on a Win2k machine running mysql/apache/php, i love it :-) Apache is still classified "beta" on windows, but from what i've seen, it's a VERY solid beta. -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac

Re: [PHP-WIN] How to pass passwd Server <-> Client in a "secure" way

2002-06-10 Thread Scott Hurring
l out encrypted passwords... this way, speed won't be such an issue, and you can use 3072-bit keys, which are quite secure. Of course, this would mean the client MUST have PGP/GPG installed on his computer :-) -- Scott Hurring Systems Programmer EAC Corporation scott (*) eac.com &q

[PHP-WIN] Re: Apache 2.0.36 + PHP + Win2000 Server

2002-06-10 Thread Scott Hurring
PHP support for Apache2 is still experimental, so i'd go with Apache 1.3.x for now. Most people i hear from say that PHP/apache is much faster than PHP/IIS. "Matt Babineau" <[EMAIL PROTECTED]> wrote in message 003101c21097$69822c40$6501a8c0@developerx">news:003101c21097$69822c40$6501a8c0@develop

RE: [PHP-WIN] Retrieving data from a URL in PHP

2002-06-05 Thread Scott Hurring
pen the URL"; exit; } $contents= fread($fp, 100); fclose($fp); if (preg_match("/([0-9]+\.[0-9]+<\/b>)/",$contents, $quote)) { echo "$symbol was sold at: "; echo $quote[1]; } else { echo "No quote available."; } echo ""."This info

RE: [PHP-WIN] Retrieving data from a URL in PHP

2002-06-05 Thread Scott Hurring
You get that message when it doesn't match the pattern "(\\\$[0-9]+\\.[0-9]+)" in the returned data. $quote is set by eregi(); All this stuff is in the php documentation: http://php.net/eregi --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-46

RE: [PHP-WIN] redirecting to a new page

2002-06-05 Thread Scott Hurring
many ways to tell a browser "go here instead". 'Location: ...' is by far the reliable. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Renaldo De Silva [mailto:[EMAIL PROTECTED]] >

RE: [PHP-WIN] htaccess and PHP in general

2002-06-03 Thread Scott Hurring
sions and auth and a login/logout page, etc... the project wasn't that big -- and there was a severe time constraint. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Matt Babineau [mailto:

RE: [PHP-WIN] Line feeds and WRAP="soft" TEXTAREA element

2002-05-31 Thread Scott Hurring
Or, as always, try a preg ;) $string = preg_replace("/\n/", "\n", $string); --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Nikolai Jeliazkov [mailto:[EMAIL PROTECTE

RE: [PHP-WIN] htaccess and PHP in general

2002-05-31 Thread Scott Hurring
user data is in the database, and eveyrtime a change is made to the DB, the .htpasswd file is written to disk to keep it constantly updated. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Ma

RE: [PHP-WIN] Can someone explain to me....

2002-05-21 Thread Scott Hurring
Well, i personally use them becuase i used to do a lot of Perl programming, and i like perl-style regex's more. IMO, they're more powerful too, and are more commonly used in other programs and utilities than PHP-style regex's... it's not a speed issue for me. --- S

RE: [PHP-WIN] COM Problem

2002-05-21 Thread Scott Hurring
object: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/modcore/htm l/deovrMicrosoftWord2000.asp --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: R.S. Herhuth [mailto:[EMAIL PROTECTED]]

RE: [PHP-WIN] COM Problem

2002-05-21 Thread Scott Hurring
[False]->WritePasswordDocument[""]->WritePassword > Template[""]->Format["wdOpenFormatAuto"]; I know it's a pain, but try splitting that up into one-call-per-line, and then it'll be a pieced of cake to see where the error is. *always* check error message

RE: [PHP-WIN] Searching for many keywords simultaneously

2002-05-21 Thread Scott Hurring
Personally, i'd go with preg_replace and/or preg_match_all. http://www.php.net/manual/en/function.preg-replace.php They might not be the fastest way, but certainly one of the easiest for the programmer. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462

RE: [PHP-WIN] ASP and PHP

2002-05-17 Thread Scott Hurring
annot short-circuit a boolean expression > ?costing you milliseconds? ... or (more importantly), unwanted side-effects. :) > > ASP does not have mult-line comments > So what? Because it's a HUGE pain to not be able to quickly comment out entire blocks of code for testing a

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

2002-05-17 Thread Scott Hurring
xcel program to automatically populate and then print out spreadsheets, so i may be able to help ya out... but send some more info, thanks. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: R.S. H

RE: [PHP-WIN] Searvh engine...

2002-05-17 Thread Scott Hurring
Well, what you ask for is pretty generic, so here's my 2 line search engine ;-) // Regex to match $data = join('', file('htmlfile')); preg_match("/ ... /", $data, $matches); --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Vo

RE: [PHP-WIN] automation

2002-05-17 Thread Scott Hurring
> > > > > You can use AT.exe or the scheduler. > > > D'oh. Sorry... i use PHP on both platforms daily, so sometimes i forget to restrict suggestions to win-only on this list :) --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-

RE: [PHP-WIN] Newline in file using fputs

2002-05-16 Thread Scott Hurring
ly mess things up... I've had entire scripts refuse to run because i used a text editor that felt like throwing in "\r" after every line. (Open up a "windows" file in "vi" to see the mess) --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROT

RE: [PHP-WIN] Return portion of a string

2002-05-16 Thread Scott Hurring
...Or you could preg_match on the string. $data = preg_match('/EXTERNALLINK\(\'(\d+)\'\)/', $data, $matches); var_dump($matches); --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message---

RE: [PHP-WIN] automation

2002-05-16 Thread Scott Hurring
Cronning a script works great as well (I do this at home on my linux server) --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]] > Sent: Thur

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

2002-05-16 Thread Scott Hurring
I've never used COM+Word, but i assume you can read the contents of a Word file using COM, then search for specific words. If you're on a windows platform, that is -- becuase COM is windows-only do some google.com searches for COM, PHP, Word. --- Scott Hurring Systems Prog

RE: [PHP-WIN] ASP and PHP

2002-05-16 Thread Scott Hurring
Personally, there are 3 biggies for me 1) Free, open-source 2) works on linux and windows 3) it's NOT anything like VB :) If you're looking for a technical in-depth review, try google.com --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fa

RE: [PHP-WIN] php 4.2 and database conn

2002-05-15 Thread Scott Hurring
If you don't want to install that god-awful MS SQL thing, MySQL is free, open-source, and runs on Win32 platforms (and is a snap to install) Just have it running as a service on whatever computer you need to access it on... plug in the IP, name, password, and you're good to go. I do all my devel

RE: [PHP-WIN] flushing output to the browser whilst the script does something useful

2002-05-09 Thread Scott Hurring
an then see the output of the long process. What is the long proc. doing anyway? --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Olivier Hubert [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 0

RE: [PHP-WIN] how do i split text on multi linez .... ????

2002-05-09 Thread Scott Hurring
Yes. If you're outputting to a browser, the browser ignores linefeeds. you *need* some kind of HTML to split up lines. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Mike Flynn [ma

RE: [PHP-WIN] how do i display errors

2002-05-09 Thread Scott Hurring
Look for trace_errors in php.ini and it'll tell you about itself. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Mauricio [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 08, 200

RE: [PHP-WIN] Simple function question

2002-05-09 Thread Scott Hurring
// Setup the function like this function runvar ($var1) { ... } // Call it like this runvar($var1); --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Matt Babineau [mailto:[EMAIL PROTECTED]]

RE: [PHP-WIN] Re: PHP generation of fields

2002-05-03 Thread Scott Hurring
$i)) ] = date("F",mktime(0,0,0,$i)); print $html->select('form[months]', $all_months, date("m")); --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Dash McElro

RE: [PHP-WIN] reg exp

2002-05-03 Thread Scott Hurring
Off the top of my head, try something like: preg_match('/(\d+)/', $var, $matches); then look what's in $matches. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Alberto. S

RE: [PHP-WIN] Sessions

2002-05-02 Thread Scott Hurring
you have to setup the directory for sessions in your 'php.ini' file. It defaults to '/tmp', which is *not* a subdir, but a root-dir (AFAIK), so either create "C:/tmp" or set it to something else. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROT

RE: [PHP-WIN] Re: Question installing and running php

2002-05-01 Thread Scott Hurring
httpd.conf does not have to be in the system dir, and neither does php.ini. my config has httpd.conf in C:\apache\conf\ and php.ini in C:\php-4.1.2\ works like a charm. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Origi

RE: [PHP-WIN] Php on windows - Linux and Windows Editors

2002-05-01 Thread Scott Hurring
On my 800Mhz windows, it drags, go figure) And i would also suggest Emacs, but if you're averse to twisted keyboard shortcuts, stay far away ;-) --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-WIN] Problem sending variables with an browser

2002-04-30 Thread Scott Hurring
Remember the online help... http://php.net/keyword It is seriously cool... i wish that every language's official site had as easy a way to get documentation as PHP. :) --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -

RE: [PHP-WIN] Re: i'm stuck guys

2002-04-30 Thread Scott Hurring
It probably isnt working becuase AFAIK, it's SHIFT+Click to force a refresh with MSIE. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Luis Ferro [mailto:[EMAIL PROTECTED]] > Sent: Mo

RE: [PHP-WIN] Problem sending variables with an browser

2002-04-30 Thread Scott Hurring
use: urlencode($param) --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Dash McElroy [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 30, 2002 4:19 PM > To: 'Waldemar Brand Neto&#x

RE: [PHP-WIN] Need help with functions

2002-04-30 Thread Scott Hurring
he $form array. If you want to preserve form elements, try using $form['prev'] = serialize($form); then making a hidden field named 'prev', and on the *next* form use: unserialize($form['prev']); to get at the "previous" values. --- Scott Hurring Systems Pro

RE: [PHP-WIN] executing an external program

2002-04-30 Thread Scott Hurring
Also, try system() if you want to see the output of the called program (http://php.net/system) PS: The online help system is your friend. :) --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From

[PHP-WIN] DDE and PHP; printing a spreadsheet with COM?

2002-04-26 Thread Scott Hurring
d really rather like to keep everything centered around PHP+COM, instead of now having to use two separate languages with two separate interfaces to manipulate and print spreadsheets. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 -- PHP

RE: [PHP-WIN] Excel not closing after using it via COM

2002-04-26 Thread Scott Hurring
properly unset())? --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Neil Lincoln [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 9:23 AM > To: Alan Brown; Scott Hurring; Php-Win (

RE: [PHP-WIN] MySQL / PHP - possible to run many sql statements in the same execution?

2002-04-26 Thread Scott Hurring
You could also use semaphores/locks :) --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 26, 2002 7:22 AM > To: M

RE: [PHP-WIN] Re: Security Alert!-cgi.force_redirect=0

2002-04-26 Thread Scott Hurring
I have absolutely no idea if this will help, but i've never seen that "Security Alert", and this is the way i've always configured Apache: Try routing PHP requests through a ScriptAlias like so: ScriptAlias /php-bin/ "C:\PHP" Action application/x-httpd-php "/

RE: [PHP-WIN] Excel not closing after using it via COM

2002-04-26 Thread Scott Hurring
ect of something else? Does PHP usually create temp-objects when referencing $obj->another, or is that behaviour only part of the COM subsystem? Sorry for asking questions that are probably obvious, but i'm not really too familiar with the details of PHP's object handling. --- Sc

RE: [PHP-WIN] MySQL / PHP - possible to run many sql statements in the same execution?

2002-04-25 Thread Scott Hurring
Sorry for seeming a bit dense, but what's the problem with using "LOCL TABLES" for all SQL stmnts? It's my understanding that it will lock tables and prevent other procs from reading/writing to that table while you've got a lock on it. Is that not the case? --- Scott H

RE: [PHP-WIN] re: making a DB counter

2002-04-25 Thread Scott Hurring
Try this: http://www.mysql.com/doc/L/O/LOCK_TABLES.html That seems to be what you're asking for... to lock down the table while you select, then update... --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original

RE: [PHP-WIN] Excel not closing after using it via COM

2002-04-25 Thread Scott Hurring
unAs my account "scott", so it shouldn't be plauged by the "SYSTEM" ownership issue... even though i haven't tested it) Please check out: http://furt.com/code/php/com_issues/ (Read 'readme.txt') --- Scott Hurring Systems Programmer EAC Corporation

RE: [PHP-WIN] Excel not closing after using it via COM

2002-04-25 Thread Scott Hurring
script is finished, yet stays alive when the PHP script is finished. --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- >Try > > $book->Close("False"); > Doesnt do anything. >

RE: [PHP-WIN] I want to learn more COM for my php script

2002-04-24 Thread Scott Hurring
n.microsoft.com/library/default.asp?url=/library/en-us/modcore/htm l/deovrMicrosoftExcel2000.asp --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Jack [mailto:[EMAIL PROTECTED]] > Sent: Wednesday

RE: [PHP-WIN] Re: COM vs. ODBC

2002-04-24 Thread Scott Hurring
f the script, there are a bunch of zombie procs laying around eating up all my free memory... --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Ray Hunter [mailto:[EMAIL PROTECTED]] > Sent:

RE: [PHP-WIN] Excel not closing after using it via COM

2002-04-24 Thread Scott Hurring
->Close(); unset($sheet); unset($book); $excel->Quit(); com_release($excel); unset($excel) I agree with a previous poster to this list; that it's most likely an "undocumented" MS bug (are there any other kinds of MS bugs? hehe) --- Scott Hurring Systems Programmer EAC Corporati

RE: [PHP-WIN] Excel not closing after using it via COM

2002-04-23 Thread Scott Hurring
sp?url=/library/en-us/modcore/htm l/deovrMicrosoftExcel2000.asp --- Scott Hurring Systems Programmer EAC Corporation [EMAIL PROTECTED] Voice: 201-462-2149 Fax: 201-288-1515 > -Original Message- > From: Neil Lincoln [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 23, 2002 7:17 PM > To

[PHP-WIN] Excel not closing after using it via COM

2002-04-23 Thread Scott Hurring
After working with Excel via COM, i cannot seem to get the instance of Excel to quit (CTL+ALT+DEL shows an 'EXCEL.EXE' in my process list). The script opens up a file, puts some numbers in, adds some numbers up, then closes the sheet and tells excel to exit. I've been trying for a few hours now

RE: [PHP-WIN] re: $POST vars

2002-04-23 Thread Scott Hurring
merely checking a variable is safe (for ex:) if (empty($X)) or if (defined($X)) or if ($X) I just hope you don't check for them and go on to use the dirty values w/o any sanity or bounds checking on them. :) > -Original Message- > From: Ross Fleming [mailto:[EMAIL PROTECTED]] > Subjec