(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
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
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'
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
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:
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-
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
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
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
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
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).
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
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 [
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" <
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
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
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
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
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
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
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
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
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
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
;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
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
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
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
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
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
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
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
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
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
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 -
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
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/)
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
= 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
39 matches
Mail list logo