php-windows Digest 13 Jul 2004 16:31:23 -0000 Issue 2316

Topics (messages 24141 through 24149):

Re: GTK -why not
        24141 by: Jonathan Pilborough
        24143 by: Jason Barnett

Re: windows disk list in PHP
        24142 by: Tom Rogers

Re: php_gettext and php_iconv extensions
        24144 by: \[php\]Walter

Re: PDF Library/Extention
        24145 by: \[php\]Walter

Re: PHP Extension building issue on Win32
        24146 by: Dietrich Ayala

virus and auto-reponders!
        24147 by: \[php\]Walter

MemoryMangement?
        24148 by: Paul Menard

php_printer
        24149 by: claudio

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 ---
If you think about it, GTK cannot be web based, because PHP webpages aren't processed 
by the client. Just like mod_php4, PHP-GTK requires access to the dll's and exe's on 
the server. This cannot be done through the http protocol. Neither can anything be 
pushed out from the server without the client requesting it first.
JP
[EMAIL PROTECTED] wrote:

You are correct.  You can do this as long as PHP and GTK are installed 
on
every client machine, and last I heard that wasn't a standard part of
Windows, so you will need to install it on every client machine, (there 
goes
your "nothing to install" goal).

Warren Vail
(415) 667-0240
SF211-07-434
 


-----Original Message-----
From: William CANDILLON [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 08, 2004 12:57 AM
To: 'Oliver John V. Tibi'; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Re: GTK - why not?


But you can run a server application with php GTk as a client 
application.

-----Message d'origine-----
De : Oliver John V. Tibi [mailto:[EMAIL PROTECTED] 
Envoy� : jeudi 8 juillet 2004 06:41
� : [EMAIL PROTECTED]
Objet : [PHP-WIN] Re: GTK - why not?

hi dude!

the reason behind php- gtk not being web based is because GTK was 
primarily
created as a toolkit for creating GUI apps on Unixes / Linuxes / Etc.
running the X window system. that means GTK is a client technology, not 
a
server technology.

i hope i satisfied your question.

peace!

O.J.

"Cbq - Gmx.At" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hi @ all
>
> quick question:
>
> ready?
>
> here it is!
>
> WHY IS PHP - GTK not webbased?
>
>
> sorry, may i am wrong, but i am looking for someone, who is 
> responsable
for GTK.
> cz, some programmers (including myself) thinking loud about, what 
> could be
the reason why PHP-GTK is not webbased.
>
> that would be high-end applications.
>
> + u have nothing to install.
> + all is accessable over the internet and
> + just call it, like page over an http link
> + and the source would be still php.
>
> so here is the main question:
>
> Why not?
>
> Would it be maybe a option in the future, if yes, WHEN ?
>
> thx to everybody, who could send me a little personal feedback and/or
telling me please, over who i could get some more informations.
>
> PS: sorry about my english, but its d**n late here.
>
> best regards
> CBQ




-- 
Please fill in my Business Questionnaire at http://www.businessq.tk

-- 
Pupil at Haybridge High School http://www.haybridge.worcs.sch.uk 





                
---------------------------------
 ALL-NEW Yahoo! Messenger - sooooo many all-new ways to express yourself 

--- End Message ---
--- Begin Message --- I guess it depends on what you mean by web-based. If you mean you want to have a GTK frontend that connects to a web server, that would certainly be possible. If a user had PHP/GTK loaded onto their (client) machine there's no reason why you couldn't send them a script that connected to your web server. Remember - even though PHP usually gets invoked by the web server, it does not HAVE to be invoked by the web server e.g. PHP-CLI



Jonathan pilborough wrote:
If you think about it, GTK cannot be web based, because PHP webpages aren't processed 
by the client. Just like mod_php4, PHP-GTK requires access to the dll's and exe's on 
the server. This cannot be done through the http protocol. Neither can anything be 
pushed out from the server without the client requesting it first.
JP
[EMAIL PROTECTED] wrote:

You are correct. You can do this as long as PHP and GTK are installed on
every client machine, and last I heard that wasn't a standard part of
Windows, so you will need to install it on every client machine, (there goes
your "nothing to install" goal).


Warren Vail
(415) 667-0240
SF211-07-434



-----Original Message-----
From: William CANDILLON [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 12:57 AM
To: 'Oliver John V. Tibi'; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Re: GTK - why not?



But you can run a server application with php GTk as a client application.


-----Message d'origine-----
De : Oliver John V. Tibi [mailto:[EMAIL PROTECTED] Envoy� : jeudi 8 juillet 2004 06:41
� : [EMAIL PROTECTED]
Objet : [PHP-WIN] Re: GTK - why not?


hi dude!

the reason behind php- gtk not being web based is because GTK was primarily
created as a toolkit for creating GUI apps on Unixes / Linuxes / Etc.
running the X window system. that means GTK is a client technology, not a
server technology.


i hope i satisfied your question.

peace!

O.J.

"Cbq - Gmx.At" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]

hi @ all

quick question:

ready?

here it is!

WHY IS PHP - GTK not webbased?


sorry, may i am wrong, but i am looking for someone, who is responsable

for GTK.

cz, some programmers (including myself) thinking loud about, what could be

the reason why PHP-GTK is not webbased.

that would be high-end applications.

+ u have nothing to install.
+ all is accessable over the internet and
+ just call it, like page over an http link
+ and the source would be still php.

so here is the main question:

Why not?

Would it be maybe a option in the future, if yes, WHEN ?

thx to everybody, who could send me a little personal feedback and/or

telling me please, over who i could get some more informations.

PS: sorry about my english, but its d**n late here.

best regards
CBQ






--- End Message ---
--- Begin Message --- A a wrote:
Hi,
How to obtain a list of all currectly available windows disk?

Thank you.

____________________________________________________________
Obchodní dům.cz - široký sortiment domácích spotřebičů a elektroniky, výrazné slevy. Navštivte http://ad.seznam.cz/clickthru?spotId=73742
This is what I do using the win32api and works on win98 and 2k:

<?php
dl("php_w32api.dll");
$api =& new win32;
$api->registerfunction("long GetLogicalDriveStrings
        Alias GetLogicalDriveStrings
        (long &BufferLength, string &Buffer)
        From kernel32.dll");

$api->registerfunction("long GetLogicalDrives
        Alias GetLogicalDrives ()
        From kernel32.dll");


$drives = array(); $len = 105; // set the buffer length $buffer = str_repeat("\0", $len+1); // prepare an empty string if($api->GetLogicalDriveStrings($len,$buffer)){ $drives = explode("\0",trim($buffer)); }elseif($drive_list = $api->GetLogicalDrives()){ for($i=1,$drv=ord('A');$drv<=ord('Z');$drv++){ if($drive_list & $i){ $drives[] = chr($drv).":\\"; } $i = $i << 1; } }else{ echo "no drives found\n"; } print_r($drives);


(if you need a working version of php_w32api.dll let me know)

Tom
--- End Message ---
--- Begin Message ---
Daniel Blake" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Ok, it took awhile but I finally got it working.  Here are the
instructions so
> everyone can get it working easier.  There are two DLL's that need to be
in the
> Windows\System32 directory and two that need to be in your extension_dir
with
> the PHP 4.3.4 package.

FYI:

I have *nothing* PHP related in my windows (or /system32) directory.

Nothing at all.

I do not have php.ini in there either.

I have all my PHP files in their own directory; G:\etc\php as it happens.

By placing 'PHPRC' in your environmental variables (left-click 'my
computer' -> properties) and give the path to your php directory, all will
be fine with the world.

In fact, my Perl, Apache (with mold_perl and SSL), PHP and mySQL are in
their own directories, all integrate just fine.

If this is of any interest, for more info...

   http://web.torres.ws/dev/php


This also make back ups and restores a breeze.

I back up my G volume, simply burn to CD. Then, when I need to restore the
system, I just drag the contents of the CD to the new G, insert a few env
vars and everything works!

Just wanted to share.

Walter

--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Exactly what extension's do I use to generate PDF documents in PHP  4.2.3?

I use this library...

   http://www.fpdf.org/

works great!

Walter

--- End Message ---
--- Begin Message ---
your vs project lib dirs might not configured correctly

in visual studio, go to tools/options, go to the directories tab, and show directories for Library files.

add a new entry for {path to your build dir}\win32build\lib, and move it to the top of the list.

Vincent Graux wrote:

Hello,

I followed instructions at http://www.devnewz.com/090902b.html about setting up correctly a VC++ project for building an extension, and I tried to build the provided "hello world" example.

Helas, I still get this "unresolved external symbol" kind of linker errors :

Compiling...
test1.cpp
[warnings about externals]
Linking...
test1.obj : error LNK2001: unresolved external symbol _zend_printf
Release_TS/php_test1.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Is there anything I missed ? Except that I use VC++ 5 SP3 and php4ts.lib of latest 4.3.7 in stead of VC++ 6 and 4.2, I don't see any meaningful configuration discrepancy...

Below the first message that I - apparently wrongly and to no avail - sent to php-internals because I thought it was a Zend Engine settings problem.

Any help welcome ; I'm sure a lot of people here can help me by diverting some ticks of their precious brain processing time :D

VGR

Envelope-to: [EMAIL PROTECTED]
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
list-post: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
X-Sender: [EMAIL PROTECTED]
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Sun, 04 Jul 2004 23:00:31 +0200
To: [EMAIL PROTECTED]
From: Vincent Graux <[EMAIL PROTECTED]>
Subject: [PHP-DEV] Probable Zend Engine/PHP issue on Win32
X-Virus-Scanned: by amavisd-new
X-DCC-tiscali.be-Metrics: basil 1027; Body=1 Fuz1=1 Fuz2=1


Hello,

Althought I usually try to avoid putting my fingers in a C/C++ IDE, I'm trying to build a DLL on Win32 via porting the code (it's the php_bwcache.dll, if you want to know)

I managed to get rid of all compile errors & warnings, but now I have linker errors that I feel are due to Zend Engine settings in the provided PHP/Windows binaries.

Even when successfully linking statically to php4ts.lib from latest & stable PHP 4.3.7, I still receive those linking errors and can't get rid of them :

--------------------Configuration: bwcache - Win32 Release_TS PHP--------------------
Compiling...
bware_cache.c
Linking...
Creating library php_bwcache.lib and object php_bwcache.exp
bware_cache.obj : error LNK2001: unresolved external symbol _compiler_globals_id
bware_cache.obj : error LNK2001: unresolved external symbol _executor_globals_id
bware_cache.obj : error LNK2001: unresolved external symbol _empty_string
bware_cache.obj : error LNK2001: unresolved external symbol _zend_compile_file
php_bwcache.dll : fatal error LNK1120: 4 unresolved externals
Error executing link.exe.
Creating browse info file...


php_bwcache.dll - 5 error(s), 0 warning(s)
----------------

I upgraded my VC++ 5.0 compiler to SP3 and don't think this is an issue

I checked that compiler_globals_id (for instance) is indeed defined in the php4ts.dll (and so should be in the .lib import lib)

Any advice welcome on those strange "unresolved externals",

Thanks & Regards,

VGR



Il vaut mieux hasarder de sauver un coupable que de condamner un innocent.

-Zadig, Voltaire
Jean-Marie Arouet , 1694-1778

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php


C'est proprement ne rien valoir que ne n'�tre utile � personne.

-Descartes
Ren� Descartes, 1596-1650


--- End Message ---
--- Begin Message ---
I post an answer to 2 different messages here, and within 20 minutes I'm
flooded with virus alerts (someone using my address to spew virus) and
auto-responders telling me they are on vacation.

I thought everyone understood that auto-responders were "discouraged"?

And I thought anyone on a development list would be smart enough to have
current anti-virus software running 24/7 and fully up-to-date files.

I guess not.

Anyway, just a note to inform you that someone here is infected.

And that 8 people have auto-responders running.

Walter

(ready to delete the next flood of crap generated by this message)

--- End Message ---
--- Begin Message ---
Greeting all,

So I've been looking for some functions in PHP that will report the memory used by a 
script (I
used to know this). The reason is I am working on a personal picture gallery package 
in PHP and
was using this package, http://www.offsky.com/software/exif/index.php, to extract the 
EXIF
information from my photos for display. My ISP doe not allow the EXIF libs on the 
default PHP
install so I was looking for a pure PHP alternative. This EXIF package is pure PHP.

What I am running into is this. I have a readdir loop and a call for each file to the 
EXIF
package. After about 15 files processed I get an error about 'emalloc could not 
allocate XXXXXX
bytes of memory'. I looked at the EXIF package and didn't find anything. 

The package (via function call) returns an array. I have added an unset to the return 
reference
once I have finished but still get the error.

Note: I am not asking for help with the EXIF package. Just wondering about some memory 
monitoring
functions in PHP.

Thanks,
Paul

--- End Message ---
--- Begin Message ---
Can someone help me find a copy of the extension of php_printer.dll
preferably for the latest version of PHP but I will not be picky I have
installed 4.3.2 on my win2k server and if I have to upgrade well that's
great.....  Thanks in advance.

--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/

--- End Message ---

Reply via email to