php-windows Digest 10 Nov 2001 05:56:02 -0000 Issue 846
Topics (messages 10320 through 10335):
strings chopped in half using COM objects
10320 by: Giuseppe D'Ambrosio
10321 by: Alan Brown
Windows XP
10322 by: Lim Jian An aka CaMeL
call a function from a DLL?
10323 by: GRI
10324 by: Alain Samoun
Re: [PHP-DEV] Re: [PHP-WIN] call a function from a DLL?
10325 by: James Moore
Apache will not parse HELP PLEASE
10326 by: H. White
Content Manager PHP and WYISWIG?
10327 by: Todd Williamsen
10328 by: Angie Tollerson
10329 by: Todd Williamsen
10330 by: Angie Tollerson
chmod a folder
10331 by: Karl S. Løland
10335 by: Svensson, B.A.T.
Re: [PHP-DB] Re: [PHP-DEV] Re: [PHP-WIN] call a function from a DLL?
10332 by: Matthew Loff
can't insert date into mssql smalldatetime
10333 by: aaron
function to put array into $k=$v&...etc
10334 by: Noah Spitzer-Williams
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
On Thu, 08 November 2001, "Alan Brown" wrote:
>
> I just grabbed the very latest from CVS (which seems to have a label of
> 4.2.0-dev) and the problem appears to have been repaired.
>
ok, thanx very much, Alan!
I've now another question: how to access a property defined as "function"?
eg., $word->Tasks->Item[$i] in this snip:
$word=new COM("word.application")
$ntask= $word->Tasks->Count; //gets number of tasks
for ($i=0; $i<= $ntask; $i++ ) {
echo $word->Tasks->Item[$i]->Name;
}
(I get " 'Item' is not a property ")
neither com_get seems to work..
thanks,
--giuse
________________end_of_mail_________________________
Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com
--- End Message ---
--- Begin Message ---
I posted a fairly lengthy description of the solution to this problem (or at
least getting a handle on understanding it) about two weeks back. You might
search through the archives for it. But a cursory glance over your code
might lead me to believe that you need () instead of [] (function call) on
item(). Then I am sure you will need to split your "ported VB code" into two
lines. Probably something like:
$Item = $word->Tasks->Item($i);
echo $Item->Name;
will be closer to working.
Alan.
----- Original Message -----
From: "Giuseppe D'Ambrosio" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 09, 2001 11:26
Subject: [PHP-WIN] strings chopped in half using COM objects
> On Thu, 08 November 2001, "Alan Brown" wrote:
>
> >
> > I just grabbed the very latest from CVS (which seems to have a label of
> > 4.2.0-dev) and the problem appears to have been repaired.
> >
>
>
> ok, thanx very much, Alan!
>
> I've now another question: how to access a property defined as "function"?
>
> eg., $word->Tasks->Item[$i] in this snip:
>
>
> $word=new COM("word.application")
> $ntask= $word->Tasks->Count; //gets number of tasks
>
> for ($i=0; $i<= $ntask; $i++ ) {
> echo $word->Tasks->Item[$i]->Name;
> }
>
> (I get " 'Item' is not a property ")
>
> neither com_get seems to work..
>
>
> thanks,
> --giuse
>
>
> ________________end_of_mail_________________________
>
> Find the best deals on the web at AltaVista Shopping!
> http://www.shopping.altavista.com
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
--- End Message ---
--- Begin Message ---
Hi,
I just install apache and php4 in my computer
After I finish everything
When I click a file which end with .php
It tell me the files not found
I have included this in my httpd.conf
-----
ScriptAlias /php4/ "C:/php4win/"
Addtype application/x-httpd-php4 .php
Addtype application/x-httpd-php4 .php3
Addtype application/x-httpd-php4 .php4
Action application/x-httpd-php4 "/php4/php.exe"
----
Anyone got any idea ?
I am using apache 1.3.22-win32.x86
Jian An
--- End Message ---
--- Begin Message ---
Hi there,
I was wondering if it is possible to call a function from my self
created DLL from my PHP script.
Thanks in advanced.
--- End Message ---
--- Begin Message ---
See:
http://www.php.net/manual/en/faq.com.php#AEN63770
A+
Alain
On Fri, Nov 09, 2001 at 05:12:09PM +0000, GRI wrote:
> Hi there,
>
> I was wondering if it is possible to call a function from my self
> created DLL from my PHP script.
>
> Thanks in advanced.
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
> See:
> http://www.php.net/manual/en/faq.com.php#AEN63770
> A+
> Alain
That FAQ isnt totally right. With the new w32api extension you can do so but
its still very experimental so Id advise you either to write your own little
extension to PHP to access your dll (shouldnt take you more than a couple of
hours), implement a com interface to your dll or wait for the w32api
extension to become more stable.
Cheers,
- James
--- End Message ---
--- Begin Message ---
Big problem can not figure out why my php files will not parse on Apache
1.3.22 installed on windows 98
I installed Apache and PHP 4.06 and followed directions to the letter 4
times over. I know both work independently in fact when I run Apache is says
"Apache/1.3.22 <Win32> PHP/4.06 running... "and when I run phpinfo() -i
from the command prompt it spits out the phpinfo
but when I do a test file with any scripts <? phpinfo(); ?> and save it to
my root htdocs as test.php all I see when open with my browser
"http://localhost/test.php" is the code. It is like nothing is happening and
the script is not being passed to the PHP module. I have been racking my
brain and have followed every manual and direction and nothing.
Definitely frustrated...
Thanks in Advance
******************************************************
H. White of
HWORB "Where Radiance meets Function"
www.hworb.net
Complete Multi-Media Services:
Graphics, Web, Document,
Marketing, & Consulting
******************************************************
" Beware of TRUE Desire, because it is unyielding and knows no limit "
--- End Message ---
--- Begin Message ---
Anyone know of one that is PHP based that is CHEAP and easy to use? I have
a client that needs to update ONE page and the cheapest one I found was
$400!
--- End Message ---
--- Begin Message ---
Yep...here's what you need to do...if you have dreamweaver...dreamweaver has a free
download extension called HTML EDitor that is purely in javascript and HTML but saves
to a textarea field called "editor" (or soemthing like that) which we all know is
manipulatable by php. It is awesome and free. Once you apply it to dreamweaver..all
you have to do is say insert, html editor, and it inserts all you need. Be
warned...the editor will only work with IE5+ since it needs iframes.But that's how a
lot of editors work.
Angie
P.S. If you don't have dreamweaver..I can send you all the scripts and images that go
with it. You can try to integrate in you forms.
>>> "Todd Williamsen" <[EMAIL PROTECTED]> 11/09/01 12:04PM >>>
Anyone know of one that is PHP based that is CHEAP and easy to use? I have
a client that needs to update ONE page and the cheapest one I found was
$400!
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Well, I do have Dreamweaver and I found an extension called "PD Online HTML
Editor" which is the only one that I found when doing a search for HTML
Editor as you suggested...
What I am having a problem is with how does it get inserted into the
document and how the hell does this thing work.... The instructions are
HORRIBLE and vague. Plus, I get script errors flying all over the place
when trying it out on my Apache server. Where are all the images for this
GUI? I am using IE 6
"Angie Tollerson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Yep...here's what you need to do...if you have dreamweaver...dreamweaver has
a free download extension called HTML EDitor that is purely in javascript
and HTML but saves to a textarea field called "editor" (or soemthing like
that) which we all know is manipulatable by php. It is awesome and free.
Once you apply it to dreamweaver..all you have to do is say insert, html
editor, and it inserts all you need. Be warned...the editor will only work
with IE5+ since it needs iframes.But that's how a lot of editors work.
Angie
P.S. If you don't have dreamweaver..I can send you all the scripts and
images that go with it. You can try to integrate in you forms.
>>> "Todd Williamsen" <[EMAIL PROTECTED]> 11/09/01 12:04PM >>>
Anyone know of one that is PHP based that is CHEAP and easy to use? I have
a client that needs to update ONE page and the cheapest one I found was
$400!
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Todd..I know what happened..here's what you do. In dreamweaver site side...right
click and say "New Document"..when it opens a newdocument from the site instead of by
you just opening one from the menu (maybe you hit File->new?)..This way the extension
in dreamweaver knows to place everything where it is supposed to that goes along with
it..giving you the gifs and getting rid of errors. Once you create a new document
through the dreamweaver site...then do the insert of the editor. You should get an
html page with the editor neatly in one place. Then just through all your other page
content around that. Make sense?
Angie
>>> "Todd Williamsen" <[EMAIL PROTECTED]> 11/09/01 12:53PM >>>
Well, I do have Dreamweaver and I found an extension called "PD Online HTML
Editor" which is the only one that I found when doing a search for HTML
Editor as you suggested...
What I am having a problem is with how does it get inserted into the
document and how the hell does this thing work.... The instructions are
HORRIBLE and vague. Plus, I get script errors flying all over the place
when trying it out on my Apache server. Where are all the images for this
GUI? I am using IE 6
"Angie Tollerson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Yep...here's what you need to do...if you have dreamweaver...dreamweaver has
a free download extension called HTML EDitor that is purely in javascript
and HTML but saves to a textarea field called "editor" (or soemthing like
that) which we all know is manipulatable by php. It is awesome and free.
Once you apply it to dreamweaver..all you have to do is say insert, html
editor, and it inserts all you need. Be warned...the editor will only work
with IE5+ since it needs iframes.But that's how a lot of editors work.
Angie
P.S. If you don't have dreamweaver..I can send you all the scripts and
images that go with it. You can try to integrate in you forms.
>>> "Todd Williamsen" <[EMAIL PROTECTED]> 11/09/01 12:04PM >>>
Anyone know of one that is PHP based that is CHEAP and easy to use? I have
a client that needs to update ONE page and the cheapest one I found was
$400!
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hi!..
i wondered if someone could tell me jow i chmod a folder i php. (like:
chmod("/somedir/somefile", 0755); works on files)
????
--- End Message ---
--- Begin Message ---
>i wondered if someone could tell me jow i chmod a folder i php.
>(like: chmod("/somedir/somefile", 0755); works on files) ????
$man chmod
--- End Message ---
--- Begin Message ---
You can system()/exec()/passthru() and run rundll32 on the library,
can't you?
-----Original Message-----
From: James Moore [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 12:34 PM
To: Alain Samoun; GRI
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-DB] Re: [PHP-DEV] Re: [PHP-WIN] call a function from a
DLL?
> See:
> http://www.php.net/manual/en/faq.com.php#AEN63770
> A+
> Alain
That FAQ isnt totally right. With the new w32api extension you can do so
but
its still very experimental so Id advise you either to write your own
little
extension to PHP to access your dll (shouldnt take you more than a
couple of
hours), implement a com interface to your dll or wait for the w32api
extension to become more stable.
Cheers,
- James
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I have this query
$db1 = "INSERT INTO tablename
(name,email,phone,room,problem,upgrade,software,hardware,printer,network,os,
priority,submitdate)
VALUES
('$name','$email','$phone','$room','$problem','$upgrade','$software','$hardw
are','$printer','$network','$os','$priority','1996-05-01')";
$cur1 = MSSQL_QUERY($db1);
But when I do a select of the submitdate field, it always turns up as
today's date no matter what I try to insert. Do I need to change the format
of my date before I insert it somehow? The submitdate field is of type
smalldatetime
Thanks,
Aaron
--- End Message ---
--- Begin Message ---
is there a function that will convert an array to "get variables"
ie:
array ("a" => "b", "c" => "d") ==> "a=b&c=d"
any help is appreciated!
Noah
www.trademytraffic.com
--------
TradeMyTraffic! Banner Exchange
[EMAIL PROTECTED]
--- End Message ---