AW: [PHP] Excel sheets

2002-09-01 Thread robert mischke

hi 

take a look at http://phpclasses.org
as far as I remember there are some excel classe

robert


 
 Hey,
 sorry if this has already been answered somewhere, but I cant 
 find a clear answer to this question.
 
 I have multiple xls files with 4 sheets a piece. I need to 
 load them into either mysql or directly php. From what I 
 understand I could simply save as text file tab delimited, 
 but I need something automatic. These xls sheets will be 
 updated at random, and I will need the most current version 
 avalible online.
 
 Any comments would be welcome.
 
 -C-
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


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




AW: [PHP] Q:Making an 'expired event' for sessions

2002-09-01 Thread robert mischke

hi 

in php.ini you can control behavior of sessions,
for example (take a look for you self;)
 - session.gc_maxlifetime = 1440,
in script you you may use ini_set for dynamic control

hope this is the right direction ..

robert

 Von: Mehran Ziadloo [mailto:[EMAIL PROTECTED]] 

 Well since I was working with ASP before PHP, there's an 
 event for sessions when they start and when they expire in 
 ASP. Well in PHP I can put an IF statement to check if my 
 variables are set or not for on_start event. But what should 
 I do to have an event for the time they expire?
 
 Thanks for your help.
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


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




AW: [PHP] Can i send post variable thur header?

2002-08-20 Thread robert mischke

Possibly you could use the header() function.

header(Content-type: application/x-www-form-urlencoded);
header(Content-length: echo $conten_length_in_byte;);
header(var=$contentvar2=$conten3);

It's a gess,
didn't tryed.

Try curl 
or 
snoppy class - at sourceforge
also at phpclasse.org a lot of dealing with http.

robert


 -Ursprüngliche Nachricht-
 Von: NoWhErEMan [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 20. August 2002 07:54
 An: [EMAIL PROTECTED]
 Betreff: [PHP] Can i send post variable thur header?
 
 
 Hi all,
 
 I want to redirect to another page and pass some post
 variables to that page. I know how to pass get variables ( 
 just include at the end of url) But i have no idea how to 
 pass post variables, is it possible ?
 
 Thanks
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


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




Re: [PHP] printer_draw_text

2002-08-17 Thread robert mischke



 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?
 

printer_draw_text($handle, +, 100, $y);
$y=+$fontsize; 
printer_draw_text($handle, +, 100, $y);

robert


 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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Re: Upgraded to PHP 4.2.2 and completely lost all GET and POST variables

2002-08-17 Thread robert mischke


 PHP 4.1.2 (+)  has register_globals turned off by default.  
 
 Do either of the below to turn it on:
 
   1.. Turn register_globals on in PHP.INI
   2.. Use ini_set in one or more of the most commonly used 
 files of the application to have register_globals turned on 
 for that application. (I think a variant of PHP directive in 
 Apache also achieves this effect. But not sure though). 
 [EMAIL PROTECTED] 

Please correct me, but
AFAIK turn register_globals ON with ini_set() is to late,
you have to use .htaccess:
php_value register_globals 0



greetings 
robert

 
  Education is a progressive discovery of our own ignorance.
 Will Durant
  


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




AW: [PHP] array's

2002-08-17 Thread robert mischke

 anyone that can find the problem..?
 description below.
 
 html
 head
 titledebug/title
 /head
 body
 '***' OUTPUT 
 '**'brbr
 ?php
 
 class Relic {
 
   var $RelicName = Array();
   var $RelicType = Array();
   var $RelicRealm = Array();
   var $RelicOwner = Array();
   var $i;
 
  function PrintInfo() {
for ($this-i = 0; $this-i  count($this-RelicName); 

genereal question:
would be
for($i = 0; $ii  count($this-RelicName)
faster ?


 $this-i++) {
print $this-RelicName[$this-i]  :  
 $this-RelicType[$this-i]  : $this-RelicRealm[$this-i]  :  
 $this-RelicOwner[$this-i]br;
}
  }

echo  $this-RelicName[$this-i]. : .$this-RelicType[$this-i]. :
.$this-RelicRealm[$this-  i].:$this-RelicOwner[$this-i].br;

echo and print functions obviously
don't get along with class variable 
in quotes.

greetings 
robert

 
  function SetName($name) {
  $this-RelicName[] = $name;
  }
 
  function SetType($type) {
$this-RelicType[] = $type;
  }
 
  function SetRealm($realm) {
$this-RelicRealm[] = $realm;
  }
 
  function SetRelicOwner($owner) {
$this-RelicOwner[] = $owner;
  }
 
 }
 
 $temp = new Relic();
 $temp-SetName(olle);
 $temp-SetType(melee);
 $temp-SetRealm(Hibernia);
 $temp-SetRelicOwner(Albion);
 $temp-SetName(bertil);
 $temp-SetType(melee);
 $temp-SetRealm(Albion);
 $temp-SetRelicOwner(Hibernia);
 $temp-SetName(sture);
 $temp-SetType(magic);
 $temp-SetRealm(Midgard);
 $temp-SetRelicOwner(Midgard);
 $temp-PrintInfo();
 ?
 
 /body
 /html
 
 the function PrintInfo prints out this: 
 '***' OUTPUT 
 '**'
 
 Array[0] : Array[0] : Array[0] : Array[0]
 Array[1] : Array[1] : Array[1] : Array[1]
 Array[2] : Array[2] : Array[2] : Array[2]
 
 heh,, not exacly what i wanted  :/
 
 regards
 patrick
 
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


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




RE: [PHP] Conditional Popup Menus with PHP/mySQL and Java?

2002-08-16 Thread robert mischke


  This is a javascript thing.  Try comp.lang.javascript... the only 
  thing u really need to know is that you have to send ALL 
 the data to 
  the page with javascript, then effectively, it's a static HTML page.
  
  Justin French

There is an ariticle on Zend out there:

http://zend.com/zend/tut/drop-down.php

Look after and have fun.

regards
robert



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