[PHP] printer_draw_text

2002-08-12 Thread Peter Bottenberg

Hi All,

I'm trying to print some date right out of an php file,
to do this i use the  printer_draw_text  function.
All works fine for one line, but how can i print more than one line?

When i put my text in a string, and try to print the string
it will print nice squares, but it will not print multiple lines.

I have read the manual, but no help there.

This works for one line:
$handle = printer_open();
printer_start_doc($handle, "My Document");
printer_start_page($handle);

$font = printer_create_font("Helvetica",36,24,200,false,false,false,0);
printer_select_font($handle, $font);
printer_draw_text($handle, "test", 10, 10);
printer_delete_font($font);

printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);

but when i try this, it will print squares (like unknown character)

$handle = printer_open();
printer_start_doc($handle, "My Document");
printer_start_page($handle);

$font = printer_create_font("Arial",36,24,200,false,false,false,0);
printer_select_font($handle, $font);

$text = "Hello,\nThis will be the second line";

printer_draw_text($handle, $text, 10, 10);
printer_delete_font($font);

printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);


Greetings
Peter




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




[PHP] Re: controls "list menu"

2002-08-13 Thread Peter Bottenberg

Hy,

Save this script as select.php


  
  
one
two
three
  
  
  
  
  You selected value 
  

Greetings
Peter

-



"Kale" <[EMAIL PROTECTED]> schreef in bericht
00aa01c242b2$1dc496b0$7800a8c0@leonard">news:00aa01c242b2$1dc496b0$7800a8c0@leonard...
hy,
I have a list menu:


one
two
three
  

I want when I select value "two" my page reloads and
it prints "You selected value TWO".
How can I do this?

thx
kale.




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




[PHP] Re: PHP Site Mirror

2002-08-21 Thread Peter Bottenberg

http://uk.php.net
http://nl.php.net

Just checked them, and they are online


"Bogdan Stancescu" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Seems to be down - I can't reach it either.
>
> Bogdan
>
> Jay Blanchard wrote:
> > Can someone give me a URL for a php.net mirror? I am having trouble with
> > access...
> >
> > Thanks!
> >
> > Jay
> >
> > ***
> > * Texas PHP Developers Conf  Spring 2003  *
> > * T Bar M Resort & Conference Center  *
> > * New Braunfels, Texas*
> > * San Antonio Area PHP Developers Group   *
> > * Interested? Contact [EMAIL PROTECTED] *
> > ***
> >
> >
>
>



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




[PHP] Re: Question about sessions: how to force expiry

2002-08-22 Thread Peter Bottenberg

Hi,

Place these headers in the top of your php file just below the  schreef in bericht
004601c249dd$9a0034a0$[EMAIL PROTECTED]">news:004601c249dd$9a0034a0$[EMAIL PROTECTED]...
> Hi,
>
> I am using a session variable to create an area where customers can access
> certain pages via login/password.  If they successfully login, I create a
> session variable and initialize it with their logon username.
>
> I also have a logout button which unregisters the session variables and
> issues a session_unset() and session_destroy().  Then is takes them back
to
> the login page.
>
> Now all my pages in this area first check if the session variable is set
and
> if not, displays a message that the user must first login.
>
> I noticed that after logging out and clicking click on the "Back" button
in
> my browser, it takes me back to the previous page which is does NOT
display
> the warning that the user must login.  However, when I click on the
Refresh,
> it does.  Is this some sort of caching problem?  I note that other sites
> with similar setups do not have this problem.  When I click on the "Back"
> button, I saw an expiry message.
>
> How can I emulate this please?
>
> Thanks,
> Don
>
>



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