Re: [PHP] using wget in shell for download(snort)

2011-07-10 Thread Torsten Rosenberger
Hello Try wget 'url' BR -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: [PHP] PHP session replication

2011-03-18 Thread Torsten Rosenberger
Hello First you need to decide which type of cluster you choose. If you use LVS you can tell the director do bind one client to one server so you do not need to replicat session. If you choose DNS for load balancing you should replicat the session by database or DRBD or memcache server. Also

Re: [PHP] PHP session replication

2011-03-18 Thread Torsten Rosenberger
Stuart Dallas stu...@3ft9.com schrieb: On Friday, 18 March 2011 at 16:19, Torsten Rosenberger wrote: Hello First you need to decide which type of cluster you choose. If you use LVS you can tell the director do bind one client to one server so you do not need to replicat session. As I

Re: [PHP] PHP session replication

2011-03-18 Thread Torsten Rosenberger
If i am right then you have 1.44KB per request ? BR/Torsten Stuart Dallas stu...@3ft9.com schrieb: On Friday, 18 March 2011 at 17:36, Nathan Nobbe wrote: On Fri, Mar 18, 2011 at 11:19 AM, Stuart Dallas stu...@3ft9.com wrote: On Friday, 18 March 2011 at 17:14, Torsten Rosenberger wrote

Re: [PHP] php File upload

2008-08-08 Thread Torsten Rosenberger
Hello on a linux system (Suese 10.2) with 1 GB memory its not possible to upload via http a 1 Gb File. Thats no limit problem on my php config. i can look the mem stats when uploading and the growing tmp file. If the temp file has 900 MB, Main Memory free is 0 and the script aborts and

Re: [PHP] php File upload

2008-08-08 Thread Torsten Rosenberger
Am Freitag, den 08.08.2008, 09:00 +0100 schrieb Luke: Maybe there is some configuration in the server somewhere causing it to incorrectly use the tmp? normla config php.ini ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system

[PHP] docs.google.com how do the export ?

2007-10-24 Thread Torsten Rosenberger
Hello I watched docs.google.com an wonder how they can export the WYSIWYG created content in pdf, word, ... Are they working with COM() functions on Windows ? to generate the docs and pdf or is it possible to create them with XSLT BR Torsten -- PHP General Mailing List (http://www.php.net/)

[PHP] move_uploaded_file permission problem under php5

2007-09-27 Thread Torsten Rosenberger
Hey when i upload a file with the move_uploaded_file function the perm on the uploaded file is 0600 the same work with copy the result ist 0644 with php4 the result was always the same and know with php5 it is diffrent i serached in the bug list and found this in the link below and it is not a

Re: [PHP] Set a timeout on file_get_contents?

2005-02-15 Thread Torsten Rosenberger
Am Di, den 15.02.2005 schrieb Brian Dunning um 16:48: Is there any way to specify a timeout on a file_get_contents()? I'm trying to verify a URL but I don't want to spend more than a few seconds on it. http://de.php.net/manual/de/function.fsockopen.php not so easy a file_get_contents but

RE: [PHP] Delete all files in DIR every 20 days

2005-02-14 Thread Torsten Rosenberger
Hello take a look a the Pear File_Find class require_once 'File/Find.php'; $fs = new File_Find; $data = $fs-maptree('my_dir'); $data[0] contains all directorys $data[1] all files $ok = 0; $err = 0; foreach ($data[1] as $key) { if

[PHP] need help parsing named.conf file

2005-02-13 Thread Torsten Rosenberger
Hello is there a way to parse the named.conf file with preg_match_all to get back an array which looks like [options][directory] = '/var/lib/named' [options][forwoarder] = '192.168.0.2' [zone][mydomain.com][type] = 'master' [zone][mydomain.com][notify] = 'yes' [zone][domain2.com][type] = 'slave'

Re: [PHP] Multi-language in script

2005-01-26 Thread Torsten Rosenberger
Hello take a look a gettext in the manual BR/Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Barcode info anyone...

2004-08-05 Thread Torsten Rosenberger
hello I think that maybe the mouse cursor would be in a form field, scan the barcode and the data from the barcode reader would go into the form field of which I can issue a OnChange instruction, but I might be completely wrong. the input field should have the focus (cursor must in the

[PHP] script seize memory in while loop

2004-08-04 Thread Torsten Rosenberger
($data[1],$data[2]); unset ($sql); } only the building of the string consumes more memory in every loop !? I don't know what to do BR/Torsten Rosenberger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mbstring and writing into file with fwrite

2004-02-18 Thread Torsten Rosenberger
Hello I have two servers on with SuSe 8.2 and PHP 4.3.1 and a new one with SuSE 9.0 and Php 4.3.3 i trie to write some data on the new server into a file. (characters are german ö ä ü) in the file the data are encoded !? I trid to find out what mbstring does. no luck I disabled mbstring in the

[PHP] preg_replace ^M

2003-11-06 Thread Torsten Rosenberger
Hello i try to replace a string in a file but if i have linefeeds in the string the output file after the replacement has ^M carachters in in if the $replacements[] = test; has no \n in it all is OK $fp = fopen (draft.html, r); $incont = fread ($fp,filesize(draft.html)); fclose ($fp);

Re: [PHP] preg_replace ^M

2003-11-06 Thread Torsten Rosenberger
Hello Those are \r characters from dos newline (\r\n). Generally they are not harmful and many editors can work with them without problems (vim). You can use some utility commands to convert to or from dos or unix newlines. But i'm working under Linux. I made a test with HTML Template IT

Re: [PHP] preg_replace ^M

2003-11-06 Thread Torsten Rosenberger
So that program is writing \r\n as the newline instead of just \n. It's still just your editor that's displaying the ^M. Maybe you should get a new editor. i use vim and the input file don't have \r\n they look normal in vim after the preg_replace in php then they have the ^M BR/Torsten --

[PHP] memory consumption from a script

2003-07-27 Thread Torsten Rosenberger
Hello is it possible to find out the memory consumption on a php script ? I trie to develop a chat with php and SHM and want to fiend out how much memory is used to scale the chat server BR/Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] track_vars in apache httpd.conf

2003-07-04 Thread Torsten Rosenberger
hello Am Fre, 2003-07-04 um 09.27 schrieb Tassos T: hello, I faced a problem with apache httpd.conf. I have a virtual host and i write in httpd.conf that lines : IfModule mod_php4.c php_value track_vars Off /IfModule trie only Off not Off but i don't know if you cann write this

[PHP] dynamic classes or dynamic extends ?

2003-07-02 Thread Torsten Rosenberger
Hello i plan to reorganize my CMS code. The idee is to only use classes for the hole system. There should be a Core class to handle the whole functionality (Login, Backend, Permission, Modules) Every Module as a class (News, Pictures ...) the construct should be like this class Core extends

[PHP] preg split question

2003-03-27 Thread Torsten Rosenberger
Hello i'd like to split Benutzer_CRA.php to get CRA but sometimes the files are called Benutzer_OVE_CRA.php and therefore the result schould OVE_CRA how cann i tell preg_split to split the string at the first occurence of _ and before .php BR/Torsten -- PHP General Mailing List

[PHP] user permission system (integer to small)

2003-03-26 Thread Torsten Rosenberger
cann't store it in mysql (possible are varchar) But to compare the perms they must have the type integer settype ($perm,interger) brings a wrong value in case that the number is greater as the BIGINT. Someone have a better solution ? or a way out. BR/Torsten Rosenberger -- PHP General Mailing

[PHP] Bechmarks with Caching technics

2003-02-20 Thread Torsten Rosenberger
Hello has someone done some benchmarks with Cache scripts? I wrote a small and easy Script to cache some sites; I have seen that the Cache needs more time to send the Data as php alone. I also tried it with PEAR Cache but there was the same. On small files PHP witout Caching is faster, On

[PHP] mktime with Feb or Jan ..

2003-02-03 Thread Torsten Rosenberger
Hello I parse the apache logfile and get a date format like this [03/Feb/2003:09:22:50 +0100] OK i split it with preg_match and the result is Array ( [0] = 03 [1] = Feb [2] = 2003 [3] = 09 [4] = 22 [5] = 50 ) Now I'd like to convert it in a timestamp with

Re: [PHP] True type font errors . Help me

2003-01-13 Thread Torsten Rosenberger
Hello Warning: Could not find/open font in /usr/home/hosting/b4u/public_html/congressos/fenasoft/ProgramacaoListar.php on line 5 You must give the absolute path to your font dir for example /usr/home/hosting/b4u/fontsdir BR/Torsten -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] calculate the traffic size with php(like the apacheaccess_log)

2003-01-10 Thread Torsten Rosenberger
of the file and not the hole contend a time (like RPC or a database select) BR/Torsten Rosenberger -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] calculate the traffic size with php(like the apache access_log)

2003-01-09 Thread Torsten Rosenberger
there are images in the side this method faild ob_get_length ignores the images. I can get the size if i parse the apache log file but there is no way to assign it to a customers homepage because i use a CMS. Maybe there are other ways. BR/Torsten Rosenberger -- PHP General Mailing List