php-windows Digest 12 May 2002 23:48:58 -0000 Issue 1141

Topics (messages 13713 through 13717):

Re: Forms don't work
        13713 by: Robin Bolton
        13717 by: FF7Sephiroth

Re: capturing windows clipboard && sorry!
        13714 by: firepages

Re: permissions
        13715 by: Christoph Grottolo

BIG PROBLEM!
        13716 by: Maurice Kevenaar

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 ---
Frank,
When I used to run Xitami one of the things I noticed was that the 2.5b5
version Xitami had PHP problems which weren't evident in the 2.4d9
release.

I would suggest that you give the 2.4d9 version a shot and see if that
helps. Otherwise, you may want to consider switching to Apache, it's not
much harder to configure than Xitami, and it works great.


-----Original Message-----
From: Frank Pohl [mailto:[EMAIL PROTECTED]] 
Sent: May 11, 2002 10:02
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Forms don't work

Hi,

first I have to excuse my bad english, but I have a problem and I hope I

can find help here.
I've installed the Xitami webserver and PHP, both in the newest
versions. 
At first everything seems to be fine, but the problem ist that variables

out of a form won't be send to the next script by get- or post method,
what 
means if I try to load a script with 
http://localhost/script.php?action=load the variable $action is
undefined. 
Does anyone know how to solve thos problem? Is it PHP related or a
Xitami 
problem?
Thx for the help

Frank Pohl

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--- End Message ---
--- Begin Message ---
> Turn on register_globals in your php.ini file
>

This worked for me ^_^ (I had the same problem but with Apache 2 and PHP
4.2.0)
awww my scripts works now ^_^

but i didn't have this problem with the previous versions of PHP
was register_globals enabled with the previous releases ?


--- End Message ---
--- Begin Message ---
Hi, unfortunately I dont have a browser to provide javascript for me, the
app is PHP-GTK && php shell scripts only.

I almost have a solution in that I have been playing with getclip.exe which
is part of cygwin, I can at this point run clipget via popen() and echo the
clipboard, but so far only to stdout ... which I have tried to read via
fopen('php:stdout','r') with no joy, also trying to capture the output using
output buffering is not working I assume for the same reason as the
clipget.exe is running as a seperate process and does not appear to have an
option of redirecting output to file.

I am getting a bit worried now as this is an essential reqirement of my app
;)

So I am looking now at the w32api , I have got the sample at php.net running
in that I can get a windows alert or confirm etc box via the w32api & have
found some info on VB methods of grabbing the clipboard, translating this to
PHP has got me totally stumped so far though - does any one know of any
resources that could point me in the right direction?

Note of warning: this is what happens when you flippently say `yeah, PHP can
do that` :)

"Eduards Cauna" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> > > >My Q is how would (can I) capture the contents of the windows
clipboard?
> > > >I have an app running on the client computer, they copy an image to
the
> > > >clipboard.. - canI get it ?
>
> Think about JavaScript.
>


--- End Message ---
--- Begin Message ---
Hi

Brandon Feldhahn wrote:
> Hello, i need to now how to set permissions for scripts to work on
> another server, this is my error, and im trying to make a guest book,
> what do i do the change the permissions or get around this, thanks.
>
> Warning: fopen("mb.php3.comment", "a") - Permission denied in
> /home/nofx413/public_html/annotate.php3 on line 29

The file 'mb.php3.comment' can't be opened by php for writing. You must give
read and write permissions for everybody to that file (chmod 666). You
should be able to do this via FTP.

The other two errors are subsequent to the first one.

Christoph

--- End Message ---
--- Begin Message ---
Hi,



I'm trying to create an mailmerge script width MySQL. i've got 2 tables (1
width the adresses and one width the letter)

In the letter table i've used an enter in the Insert form. When i use
printer_draw_text() i get the text as one line on my paper.
When i use printer_write() i get it as Normal text width at the end of the
page just an wordwarp like:

"Text Text Text Text Text Text Text Text Text Text Text Text Te
xt"

Or do i have to use the pdf functions to get it better.

I'm using PHP 4.2.0, Apache for windows and mysql 3.last (Don't know);


Part of my script:

  $connection = mysql_connect($db_hostname,$db_username,$db_password);
  mysql_select_db($dbname);
  $sql_query = "select * from $tablename where ID=$id" ;

  $query_result =mysql_query($sql_query) ;
  $number_rows = mysql_num_rows($query_result) ;
  $number_fields = mysql_num_fields($query_result) ;
  $brief = mysql_fetch_array($query_result);

        $connect = printer_open($printer);
        printer_start_doc($connect, "PHP Document");
        printer_start_page($connect);

        $font = printer_create_font("Times New
Roman",72,48,100,false,false,false,0);
        printer_select_font($connect, $font);

        printer_draw_text($connect, $brief[4], 450, 1150);

        printer_delete_font($font);

        printer_end_page($connect);
        printer_end_doc($connect);
        printer_close($connect);

  mysql_close($connection);


--

Maurice




--- End Message ---

Reply via email to