RE: [PHP-WIN] IE7/PHP-debugging?

2007-09-28 Thread TG
(maybe it's a permissions issue or something) and if that all checks out... then try putting exit()/die() codes in your script to stop it at various points to see how far it gets before it fails the way you're describing. You should get output or blank pages until you hit the bad

Re: [PHP-WIN] What's the difference between and ???

2007-09-30 Thread TG
oved to a system that has short_open_tag turned off (like your current system it seems) your code won't break. -TG - Original Message - From: "Abhishek Dutta" <[EMAIL PROTECTED]> To: php-windows@lists.php.net Date: Sun, 30 Sep 2007 12:43:46 +0530 Subject: [PHP-WIN] Wh

Re: [PHP-WIN] PHP-memory leak with COM-objects?

2007-10-10 Thread TG
tential for things like memory leaks and system instability in general. You might look to see if there's a PEAR package that can do what you want to do without using Word directly. -TG - Original Message - From: Gustav Wiberg <[EMAIL PROTECTED]> To: 'PHP-Windows Group'

Re: [PHP-WIN] Seeking a function, class or other means to save the current PHP page as an HTML file on the server.

2008-03-06 Thread TG
Yeah, the trick is you want to force the download. If you send HTML or text without setting the disposition properly, it'll just display in the browser. Maybe something like this will help: http://www.boutell.com/newfaq/creating/forcedownload.html Good luck! -TG - Original Me

RE: [PHP-WIN] Seeking a function, class or other means to save the current PHP page as an HTML file on the server.

2008-03-06 Thread TG
If by 'breaks' you mean that it's not saving as a .HTML file, you should be able to set the filename in the header when you force the download. If that's not it, if you care to elaborate, maybe we can give a better suggestion. -TG - Original Message - From:

RE: [PHP-WIN] Seeking a function, class or other means to save the current PHP page as an HTML file on the server.

2008-03-07 Thread TG
put" type thing. I'm guessing something else is wrong. Let us know if you find a solution. -TG - Original Message - From: "Greg Cocks" <[EMAIL PROTECTED]> To: "TG" <[EMAIL PROTECTED]>, Date: Fri, 7 Mar 2008 11:52:58 -0700 Subject: RE: [PHP-

Re: [PHP-WIN] Building a botanical tree of wood

2009-02-05 Thread TG
since that's going to be a similar algorithm.. with parent and child messages/data which also allows sibling messages (children of same parents). Good luck, however you plan on executing this. I know I didn' answer your questions directly, but I think some of these suggestions may ind

[PHP-WIN] Re: [PHP] Question about version control.. sorta..

2009-02-05 Thread TG
files. Anyway.. if anyone's looking for an easy Windows version control system, check it out. (no, I don't work for them, just passing along the recommendation since I'm digging this software) Thanks for all the input! -TG - Original Message - From: "TG" To: p

Re: [PHP-WIN] Does a spreadsheet-like front end exist for MySQL?

2009-04-06 Thread TG
ould be a cool project. Something that works like Google Docs' spreadsheet, but for editing MySQL tables. -TG - Original Message - From: Bill Mudry To: php-windows@lists.php.net Date: Mon, 06 Apr 2009 10:01:57 -0400 Subject: [PHP-WIN] Does a spreadsheet-like front end exist

Re: [PHP-WIN] Substr function

2004-12-13 Thread tg-php
bstr() works great if you know where to split the string but using PHP's functions to their fullest capability is always good tood. Good luck! HTH! -TG *** new email address [EMAIL PROTECTED] *** old email address [EMAIL PROTECTED] (Stupid Chapter 11) = = = Original message = = = Hi can a

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

2005-01-07 Thread tg-php
Test 2 Test 3 Really you probably just need this as the page break: Not sure what "clear=all" does, but the "page-break-before" is standard CSS (CSS2 I believe) that's telling it to insert the page break before the tag (right? I think that's right).

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

2005-01-07 Thread tg-php
l with all the formulas and things in the right place... all without having to mess with PEAR Excel Writer (??) or creating an .XLS file itself. Anyway, good luck. I think there are probably lots of ways to skin this particular cat. Play around with different methods. -TG = = = Original

[PHP-WIN] RE: [PHP] php editor

2005-01-13 Thread tg-php
es aren't always ones that are technically correct. -TG = = = Original message = = = "Know any goog ones?" funny you should mention goog.. if you google'd "php editor" youd have your answer by now.. cheers phpninja -Original Message- From: William Stokes [

Re: [PHP-WIN] Re: SpreadSheet_Excel_Writer PEAR package

2005-01-19 Thread tg-php
ow if you find a solution. I have an interest in PHP<->Excel stuff, but havn't had any need for it recently. So I'm eager to learn of any issues with PEAR's Excel Writer or other PHP/Excel solutions. Thanks! -TG = = = Original message = = = "Louis Young" <

Re: [PHP-WIN] Re: PHP MS-DOS

2005-01-26 Thread tg-php
t. Still, if that's a hard requirement for an application you're creating for a job or something, it might be worth looking into. You can find unWin and unDos at: http://www.smxinfo.com/rtos/dos/undwinpb.htm If I screwed something up, feel free to correct me. If you have m

Re: [PHP-WIN] From Browser to Print - ?????

2005-01-27 Thread tg-php
Check into maybe using CSS2 page breaks. I don't see any way to make PHP do it, but CSS2 has facilities for that. Try this: Requires IE 5.5 if I remember right. -TG = = = Original message = = = I have some PHP scripts that put output to the browser. I can then print them. However, I

Re: [PHP-WIN] outlook calendar

2005-02-07 Thread tg-php
ith using PHP to connect via COM to Outlook itself (and let Outlook do all the hard work of getting data from Exchange). Here's some sample code to read calendar entries. Remember, you have to have Outlook currently running on the PC that PHP is running on. Good luck! -TG Activate; # Th

Re: [PHP-WIN] outlook calendar

2005-02-07 Thread tg-php
there. At any rate, I'd check to make sure you're instantiating the COM object. Maybe try connecting to Excel or another MS program via COM. I havn't played with PHP5 yet, so can't tell ya if it does anythig differently or needs any extra TLC. Let us know if you find

[PHP-WIN] Re: [PHP] Re: Storing CCN's Again...

2005-02-09 Thread tg-php
ch liability for my tastes. I'd purchase a pre-made, hopefully secure, and guarenteed CCN management package or service. People get real twitchy about money and bosses get real twitchy about their employees creating stuff that can bring down the company due to lawsuits and liability. C

[PHP-WIN] Re: [PHP] Removing Items from an Array

2005-10-13 Thread tg-php
Thanks for the addition Jochem.. one reason I post here, even if it's a basic example, is because if there's a better way or a chance to learn something new, I want to have that opportunity. Thanks again! -TG = = = Original message = = = Id like to continue where TG left of

Re: [PHP-WIN] Is this a PHP bug?

2005-10-17 Thread tg-php
really should have a basement" after the house is built. Maybe there's a good reason why they didn't put a basement in to start with and technically it's possible to add a basement if they changed their mind, but at what cost. At any rate, known, predictable and intentiona

[PHP-WIN] Re: [PHP] PDF printing under windows.

2005-10-25 Thread tg-php
I see lots of ways to potentially solve this problem without using COM. I loved messing with COM (with or without PHP) for a while, but it's not a great general solution to things unless you absolutely HAVE to control the app (which is very cool and slick sometimes, but not for something a

[PHP-WIN] Re: [PHP] PDF printing under windows.

2005-10-25 Thread tg-php
le to find other DOS and/or Windows apps that'll print it, but you'll probably still have to use the command line and exec() call of some kind, unless you use COM which is overly complicated and burdensome in my opinion. -TG = = = Original message = = = Two (and a half) things: 1. Even

[PHP-WIN] Re: [PHP] PDF printing under windows.

2005-10-25 Thread tg-php
open the app then just have the user (you?) click the print button? Or do you want it totally one-button click and that's it? Just a thought. -TG = = = Original message = = = Richard Lynch wrote: >On Mon, October 24, 2005 1:48 pm, Dave Lists wrote: > > >>I'm

Re: [PHP-WIN] Cam control

2006-04-18 Thread tg-php
;s the function in serial.phpw that opens the serial port: function open_serial($portname) { ~global $CreateFile; ~return wb_call_function($CreateFile, array( ~~$portname, ~~GENERIC_READ | GENERIC_WRITE, ~~0, ~~null, ~~OPEN_EXISTING, ~~0, ~~0 ~)); } $portname at this point is COM1 I believe. G

RE: [PHP-WIN] @mssql_connect() versus mssql_connect()

2006-10-13 Thread tg-php
olution I found was to suppress the error and everything works fine (despite the warning). -TG = = = Original message = = = The @ is for error suppression -Original Message- From: Alf Stockton [mailto:[EMAIL PROTECTED] Sent: Friday, October 13, 2006 12:00 AM To: php-windows Subject: [P

Re: [PHP-WIN] Problem with removable media

2006-11-15 Thread tg-php
shot and kind of sloppy: http://us2.php.net/com Let us know if you find a good solution. Good luck! -TG # # # The following code as found at: http://www.php.net/manual/en/ref.filesystem.php # Simple enough code, but

Re: [PHP-WIN] php installed on IIS: changes to php.ini not taking affect

2007-01-10 Thread tg-php
on phpinfo(). You should find it eventually. Good luck! -TG http://www.php.net/manual/en/install.windows.php "php.ini is searched in these locations (in order): * SAPI module specific location (PHPIniDir directive in Apache 2, -c command line option in CGI and CLI, php_ini parameter in NSAP

Re: [PHP-WIN] php installed on IIS: changes to php.ini not taking affect

2007-01-10 Thread tg-php
n your php.ini file. Bad security, but it should tell you if it's a permissions issue or not. -TG = = = Original message = = = okay...turns out there was something strange going on with my ini file. I copied its contents into a new file, saved that as "php.ini"...now whenever I drop

Re: [PHP-WIN] php installed on IIS: changes to php.ini not taking affect

2007-01-11 Thread tg-php
ble and go over both with a fine toothed comb. -TG = = = Original message = = = Thanks for the suggestion...I tried that...i didn't make a difference. Here's another thing I noticed. PHP seems to be using the default settings. When I drop a php.ini file in C:\Windows (where php is look

Re: [PHP-WIN] Fw: COM surgery

2007-01-16 Thread tg-php
t.. You should figure out what you WANT to connect to and see if it supports COM. Lots of stuff does. Good luck! -TG = = = Original message = = = - Original Message - From: "gunawan" <[EMAIL PROTECTED]> To: Sent: Tuesday, January 16, 2007 11:57 AM Subject: COM surge

Re: [PHP-WIN] Fw: COM surgery

2007-01-17 Thread tg-php
ub Took a minute to find the proper way to do 'center', but apparently it's a paragraph property. Now using the PHP example... Version}\n"; // TG: Changed this to 1 so you can see what's going on $word->Visible = 1; $word->Documents->Add(); $word->Selecti

Re: [PHP-WIN] PHP generated Excel Spreadsheets

2007-05-22 Thread tg-php
h anyone?) Outputting to CSV or HTML with an Excel header, as demonstrated already, are good quick and dirty solutions. Or you can create a page that's an HTML table and use Excel's "Import -> Web Query" function to pull the table when you open the pre-made Excel spre

Re: [PHP-WIN] Query Syntax - WHERE fieldname1='fieldvalue1'ANDfieldname2='fieldvalue2'

2007-05-22 Thread tg-php
quot;OR" situation as well as "AND"s. Since you have a really basic AND-only situation, you shouldn't have to worry about parens. Maybe that'll help a little. If not, write back with some of your echo'd SQL $query stuff. -TG = = = Original message = = = This did

RE: [PHP-WIN] Query Syntax - WHERE fieldname1='fieldvalue1'ANDfieldname2='fieldvalue2'

2007-05-22 Thread tg-php
AND `" . $field_name2 . "` ='" . $field_value2 . "'"; And check what the other poster said about the "SELECT FROM" with no value for $field_name. This is going to be something really simple and basic. -TG = = = Original message = = = Thanks -

Re: [PHP-WIN] photo gallery plugin

2007-07-26 Thread tg-php
Gallery2 and Coppermine are two big PHP photo gallery apps. http://gallery.menalto.com/ http://coppermine-gallery.net/index.php = = = Original message = = = Does anyone have a recommendation on a photo gallery plug in that works with php and mySQL. I have a car club and want to allow members

Re: [PHP-WIN] ORDER BY is not sorting

2007-07-31 Thread tg-php
hpMyAdmin, WinSQL, Navicat, or something like that? -TG = = = Original message = = = Sorry, this seams very trivial but I can not sort the result set for any field. What am I doing wrong? php & mySQL 5 ' ?> 1 2 3 4 TIA Mark -- PHP Windows Mailing List (http://www.php.net/)

Re: [PHP-WIN] ORDER BY is not sorting

2007-07-31 Thread tg-php
he sorting issue since sorting is on 'rowID' within that table, which isn't defined in a variable, but stated explicitly in the query. So not sure what you're saying about spaces messing things up. -TG = = = Original message = = = Well, if you have blank spaces on the fi

Re: [PHP-WIN] Array Question

2007-08-17 Thread tg-php
= id2" or not) The "as" is usually optional, but sometimes nice to keep things clear. In some flavors of SQL it's required. -TG = = = Original message = = = I have pull a bunch of data from an SQL database through a query. The problem I am running into is I pull two fields