[PHP] COM and Word, how?
I am new to COM and tried an example today (See bottom of post) When I execute the code, I get is an error message and if I look in the Task Manager, there is a WINWORD.EXE process running, which I can't end. Every time I reload the page, a new winword is started... How should PHP.ini be set for me to use COM Objects? - Error message: Warning: Unable to obtain IDispatch interface for CLSID {000209FF---C000-0046}: The message filter indicated that the application is busy. in d:\inetpub\wwwroot\incmill\ver2\readfile.php on line 2 Unable to instantiate word Setup: Windows 2000 Professional PHP 4.2.1 Office 2000 PHP.ini COM values: Directive, Local Value, Master Value com.allow_dcom, Off, Off com.autoregister_casesensitive, On, On com.autoregister_typelib, Off, Off com.autoregister_verbose, Off, Off com.typelib_file, no value, no value Code: $word = new COM("word.application") or die("Unable to instantiate Word"); print "Loaded Word, version {$word->Version}"; $word->Visible = 1; $word->Documents->Add(); $word->Selection->TypeText("This is a test..."); $word->Documents[1]->SaveAs("Useless test.doc"); $word->Quit(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Loop through POST-result
I would like to get all the data from a POST-result into an array. Is there a function like that adds all the vars from the post into an array where Key is the name of the form-field and Value is the value entered in this field. Like this: array('firstname' => 'fname', 'lastname' => 'lname'); Thanks, // Michelle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Download File
I would like to download a word-document from another site and save it to my harddrive. How would I go about doing this? I tried: http://host.com/document.doc; $fd = fopen ($filename, "rb"); $string = fread ($fd, filesize ($filename));ERROR: Warning: stat failed for http://host.com/document.doc (errno=2 - No such file or directory) in d:\inetpub\wwwroot\dl-doc.php on line 8 I believe this has something to do with the access rights to the folders or something... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] array question
I'm a newbie at php and I'm sure you will be able to tell by my question. I'm just doing a simple form but my head is hurting from trying to figure out the correct syntax. I'm posting the form to $PHP_SELF an example from my $form_block = *Your Name: *Your E-Mail Address: Phone Number: which finally leads to my question how do I do the $_POST[var] when it's an array(checkbox or radio button)? ex: red Am I making sense? If not please let me know :-) and I will try to remedy it. Michelle
[PHP] FTP Functions
I was wondering what security risks there are when using FTP functions. I created a browser-based management site for my clients so they may write and upload files to the server. I had to use FTP functions because there was some problem with file owner/permission being set to 'nobody'. Supposedly you would normally use a suexec wrapper but it failed (atleast with PHP v.3) because PHP was called after it or something. My current isp has enabled FTP functions which has worked great, but I'm thinking of switching isp. I talked to an isp today that said FTP functions are a major security risk and can easily be hacked. Arghh! I wondered if this were true, since the function uses a username and password like you would with any FTP application. Does anyone have comments or suggestions? Thanks! - Michelle :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP security
I need to store username and password for mysql in a file to be used by PHP. I am concerned with PHP's security. Can anyone use showsource() to read php source even if they are on a different server or they are spoofing my ip address (hacking)? If I put a file with the secure data in a directory outside the root directory and include it in a PHP script, could someone use echo or showsource() to view the file content making the data insecure? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] imagecreate() error
Hi there, I am running PHP 4.3 something or other, I have enabled php_gd.dll and php_gd2.dll, pointed the extension directory to the right place, looked at the phpinfo and it has the correct information about the gd's being enabled, I have tried reintalling apache and php...but still get errors on all simple scripts that i have tried... this is the error I get.. Fatal error: Call to undefined function: imagecreate() any suggestions or tips? Thank you!!! Sincerely Michelle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] imagecreate() error
Hi Philip, Thanks for your response, I tried those steps, still no go, getting that same error "Philip Olson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Michelle- > > a) Only enable one GD dll, so use php_gd2.dll. > b) Consider using imagecreatetruecolor() instead but >either will work. > c) When asking support questions, it's important to >say exactly what version, although in this case >we know it's 4.3.0-1 as php_gd.dll was removed in >PHP 4.3.2 > > Anyway, enable just one dll and it should work. Be sure > to restart the web server afterwards. > > Regards, > Philip > > > On Sat, 12 Jul 2003, Michelle Bernard wrote: > > > Hi there, > > > > I am running PHP 4.3 something or other, I have enabled php_gd.dll and > > php_gd2.dll, pointed the extension directory to the right place, looked at > > the phpinfo and it has the correct information about the gd's being enabled, > > I have tried reintalling apache and php...but still get errors on all simple > > scripts that i have tried... > > > > this is the error I get.. > > > > Fatal error: Call to undefined function: imagecreate() > > > > any suggestions or tips? > > > > Thank you!!! > > > > Sincerely > > Michelle > > > > > > > > -- > > 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] imagecreate() error
no errors have come up yet, still getting the same problem too, I am pulling out my hair :) everything else works nice and smoothly just this whole gd thing... "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Do you get any error at apache start up or in error logs? > > Michelle Bernard wrote: > > > Hi Philip, > > > > Thanks for your response, I tried those steps, still no go, getting that > > same error > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] imagecreate() error
YAY Got it working somewhat, now the so called image comes out garbled on the browser!! BUT getting close! "Michelle Bernard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > no errors have come up yet, still getting the same problem too, I am pulling > out my hair :) everything else works nice and smoothly just this whole gd > thing... > > "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Do you get any error at apache start up or in error logs? > > > > Michelle Bernard wrote: > > > > > Hi Philip, > > > > > > Thanks for your response, I tried those steps, still no go, getting that > > > same error > > > > > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] US$5,000
?, ??, ???, US$5000. : ??: http://www.haveattitude.com/email/chinese_t ?: ??: http://www.haveattitude.com/email/chinese_s/ Click Here for English: http://www.haveattitude.com/english ??!
[PHP] Newbie Question: Converting PHP3 files to PHP4?
Hi there, I have recently taken over the webmaster responsibility for an educational website. It is using PHP3 and MySQL. We had to move it to a new server, that as it turns out only supports PHP4. I have been looking through all the FAQs, resource sites, manuals and documentation, but all I can find as a solution is to change all my current file extensions .php3 to just .php ! Can anyone tell me if this will work before I start converting probably close to several hundred files?? I am going to change and test some files, but would like some advice on this! The type of errors that I get with the current file setup are when clicking on any of the links that lead to files in PHP3 are: You have started to download a file of type "application/x-httpd-php3", etc. Any other tips or info would be appreciated. This is a bit urgent, as I have just found out that the site "director/owner" wants it as functional as possible for the start of school this week... so no pressure really... lol. Thanks in advance. Michelle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Newbie Question: Converting PHP3 files to PHP4?
Sorry to all who responded already.. I guess some further clarification is needed... opps :) I am NOT running the server. I am using a local ISP (excellent guy but not really accessible on this long weekend), so I have no control over what the server's configuration is (at least until tomorrow). I can certainly pass these notes along to my ISP to get him to do these changes you've suggested, but do I need to change my file extensions.. ie. professionaldevelopment.php3 to professionaldevelopment.php instead.. or am I missing something here. OR is there only a server fix and nothing that I can do at my end as far as code or file name changes? Michelle -Original Message- From: Rasmus Lerdorf <[EMAIL PROTECTED]> To: Michelle Marcicki <[EMAIL PROTECTED]> Date: Mon, 3 Sep 2001 20:15:30 -0700 (PDT) Subject: Re: [PHP] Newbie Question: Converting PHP3 files to PHP4? > Just configure your server to serve up .php3 files as PHP 4. ie. add this > line to your httpd.conf file: > > AddType application/x-httpd-php .php .php3 > > And get rid of your other AddType line. > > -Rasmus > > On Mon, 3 Sep 2001, Michelle Marcicki wrote: > > > Hi there, > > > > I have recently taken over the webmaster responsibility for an educational > > website. It is using PHP3 and MySQL. We had to move it to a new server, > that > > as it turns out only supports PHP4. I have been looking through all the > FAQs, > > resource sites, manuals and documentation, but all I can find as a solution > is > > to change all my current file extensions .php3 to just .php ! Can anyone > tell > > me if this will work before I start converting probably close to several > hundred > > files?? I am going to change and test some files, but would like some > advice on > > this! > > > > The type of errors that I get with the current file setup are when clicking > on > > any of the links that lead to files in PHP3 are: You have started to > download a > > file of type "application/x-httpd-php3", etc. > > > > Any other tips or info would be appreciated. This is a bit urgent, as I > have > > just found out that the site "director/owner" wants it as functional as > possible > > for the start of school this week... so no pressure really... lol. > > > > Thanks in advance. > > > > Michelle > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Newbie ?: form mailer not working
Hi all... Having problems with some php3 to php4 stuff.. the site has a form that has been setup to ask questions outside our discussion forums. The form.html contains The questionmailer code is as below. I have only changed the email addy and the file extension from .php3 to .php on the questionmailer file and the .php (above) in the form.html page. I have checked the php on-line manual, but can find nothing that fits my problems or errors. I am getting: 1) Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /usr/home/blah/html/util/questionmailer.php on line 24 2) Parse error: parse error in /usr/home/erc/html/util/questionmailer.php on line 24 Line 24 in my code is: mailto:[EMAIL PROTECTED]\%22";> //questionmailer.php code mailto:[EMAIL PROTECTED]\%22";> the forum administrator"); } ?> Is there something I'm missing here? (I am coming from an ASP background, with VB and some C++ knowledge, so it all looks familiar, I am just trying to sort out syntax and think it must be that type of error. I didn't write the original code, just trying to fix it all :) TIA. Michelle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] GOOD web hosting
Seb, If you don't mind Canadian... we use http://www.nl2k.ab.ca/ for both our business and for a number of our customer sites. Go to http://www.nl2k.ab.ca/services/website_hosting.html for pricing and details. They are a smaller company, but their downtime is very minimal (I can't recall any in the last 6 months) and the owner (Dave) is a great guy. Feel free to let him know that Michelle and Jason from TSI sent you! Michelle -Original Message- From: "Seb Frost" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Tue, 4 Sep 2001 23:58:19 +0100 Subject: [PHP] GOOD web hosting > I thought I had good web hosting, but I don't. They're often very slow and > frequently (I'd say at least an hour every day) my site is inaccessable. > Today I've barely been able to get on it at all. > > So I'm moving. > > I'm in the UK. Is it stupid for me to go with a US hoster? And either way > who do you recommend? Obviously I want php and mysql support, and a few > hundred megs of space, and NOT paying through the roof. $20/month tops. > > - seb > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.274 / Virus Database: 144 - Release Date: 23/08/2001 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] GOOD web hosting
Seb, If you are still stuck... try http://hosts.php.net/ It's a searchable directory for ISPs that support php! It looks like it is companies that have chosen to list themselves, but the search criteria is excellent! Pick what specs you need! Also try http://www.php.net/links.php at the bottom of the page for a couple other links on this. Good luck. Michelle -Original Message- From: "Seb Frost" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Tue, 4 Sep 2001 23:58:19 +0100 Subject: [PHP] GOOD web hosting > I thought I had good web hosting, but I don't. They're often very slow and > frequently (I'd say at least an hour every day) my site is inaccessable. > Today I've barely been able to get on it at all. > > So I'm moving. > > I'm in the UK. Is it stupid for me to go with a US hoster? And either way > who do you recommend? Obviously I want php and mysql support, and a few > hundred megs of space, and NOT paying through the roof. $20/month tops. > > - seb > --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Newbie ?: form mailer not working
Chris, Thank you.. that along with one other change solved it... I am just doing additional test emails now! It look like the editor I use replaced some of the " and > with html code somehow. Does anyone have any suggestions (or links to) for a good php editor? I use MS Interdev for the ASP and HTML that I do, and I do have WinEdit, but not sure if it is the best choice out there? TIA Michelle -Original Message- From: "Chris Mulcahy" <[EMAIL PROTECTED]> To: "'PHP List'" <[EMAIL PROTECTED]> Date: Tue, 4 Sep 2001 16:30:05 -0500 Subject: RE: [PHP] Newbie ?: form mailer not working > Michelle: > > This line seems to be a problem. > > print("If the problem persists you can mail your question directly to > mailto:[EMAIL PROTECTED]\%22";>the forum > administrator"); > > Try escaping your quotes surrounding your mailto href. > > hth > > Happy programming! > Chris Mulcahy > > > > -Original Message- > > From: Michelle Marcicki [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, September 04, 2001 3:26 PM > > To: PHP List > > Subject: [PHP] Newbie ?: form mailer not working -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: [PHP-DB] How to create a new Table in prostgresql from a Webinterface
Hello Watty, Am 2004-08-14 17:05:28, schrieb Watty: > Try phppgadmin No, because it is my own Webinterface to a Program... Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/8845235667100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: [OFF] - Fraudulent web orders - any ideas?
Am 2004-08-16 08:03:51, schrieb Brian Dunning: > Anyone know who the "proper authorities" are, to whom I could give my > logs? Amazingly, my CardService rep didn't know. He also didn't seem to > care or think it was a very big deal. The total orders that went > through are about 100 orders at $15 each. My guess is that "Abang > Batax" is probably overseas, so it may not be worthwhile following up. For VISA ??? - You can contact VISA directly... If you have all IP's maybe they come from the same ISP and the you can get him... I had the same problem for 3 years in Kehl/Germany and I have had loged all actions including the IP. I was going to the local Police which has done the rest... Credit Card Fraud is not a local delict !!! The Police is working international on this subject. Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/8845235667100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: php lists
* * Do not Cc: me, because I am on THIS list, if I write here * * Keine Cc: am mich senden, bin auf DIESER Liste wenn ich hier schreibe * * Hello John, Am 2004-09-09 12:03:01, schrieb John Nichel: > wang dang wrote: > >Hey John, I just read your post in the php mailing list regarding rsync > Well then, I'll just make sure you get my reply. Funny, you claim to > try and help people, but there is not one post to this list with the > Hotmail account you are using. H...could you be trying to hide who > you really are? Typical Internet tough guy. I wonder who you could > really bewho on this list has access to the University of Kansas' > computer center? > > >I am sending this off list because I do not want to waste everyones time ^^ > >on the list! Get the point DUMB-ASS! > See, I want to 'waste' their time so that they can see what a stand-up > guy you are. Are you happy now ? Wang Dang had writen you personaly and I am not interested in YOU private conversation. Please keep it OFF-LIST !!! Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/8845235667100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
Re: [PHP] UNSUBSCRIBE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Am 2004-10-01 15:57:47, schrieb -{ Rene Brehmer }-: > At 17:08 30-09-2004, Pankaj Kafley wrote: > >What an ass ! > > And my filters don't even catch the many exclamation marks cuz this list is > white-listed . *sigh* I do not get them: ( '/home/michelle/.procmail/FLT_spam' ) _ / | :0 | * ^Subject:.*(subscribe|subscrible|suscribe|unsubcribe) | ATTENTION/unsubscribe/ | # /dev/null | \__ I get every day around 20-30 of them... Greetings Michelle -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSM LinuxMichi 0033/3/8845235667100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Problem with fetching values...
;, ''); INSERT INTO `projects` VALUES (5, 0, 'GSM Router', 'foo', '', '', ''); INSERT INTO `projects` VALUES (6, 0, 'Outdoor HandBag TablePC', 'foo', '', '', ''); INSERT INTO `projects` VALUES (7, 0, 'Industrial TablePC', 'foo', '', '', ''); INSERT INTO `projects` VALUES (8, 0, 'MicroPC', 'foo', '', '', ''); INSERT INTO `projects` VALUES (9, 0, 'MicroServer', 'foo', '', '', ''); INSERT INTO `projects` VALUES (10, 0, 'USB Gadget', 'foo', '', '', ''); Now while checking with: [ '~/.tdphp-vserver/includes/10_electronica_admin.inc' ] # while ($DB_list=db_fetch_array($DB_result)) { #$output .= "http://"; . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']) . "\">Argh... " . $DB_list['name'] . ""; #if ($_COOKIE[$VAL2 . '_desc_short'] == 'show') { # $output .= "" . $DB_list['desc_short']; #} #$output .= "\n"; # } echo "\n"; while ($DB_list=db_fetch_array($DB_result)) { print_r ($DB_list); } echo "\n"; exit(); ---- I have gotten something this: [ STDIN ]--- Array ( [0] => 1 [1] => 24V DC Modular ATX PSU [2] => foo ) Array ( [0] => 2 [1] => 24V DC Modular Solar-Wind-Charger and Distributor [2] => foo ) Array ( [0] => 3 [1] => 24V DC Multichemistry Charger So, PostgreSQL catch the array by "name" pg_fetch_array($db_query, null, PGSQL_ASSOC) and MySQL use the "position" mysql_fetch_array($db_query, MYSQL_NUM) But positional values do not work, since the sequence can change... How can I get the db_fetch_array($DB_result) to give me the name instead the numerical position? I need: Array ( [serno] => 1 [name] => 24V DC Modular ATX PSU [desc_short] => foo ) Can someone tell me what I have over-seen? Note: The "database_mysql.inc" is a derived work of my working (!!!) "database_pgsql.inc". Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Problem with fetching values...
Am 2008-12-28 16:11:15, schrieb Nathan Nobbe: > OK. i would stop right there and ask yourself why.. there are tons of > stable, working solutions out there that already do this, most notably for > php5, PDO, > > http://us.php.net/manual/en/pdo.drivers.php > > which btw, is written in C ;) I have tried to test it... The problem is now, that none of my 4 Hosting provider support it. :-/ Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Offline PDO documentation?
Hello, In my PHP5 documetation I have installed on my system PDO is mentioned, but the files are missing... While surfing I have not found the PDO part which I need Off- Line since I am on GSM and surfing/searchin the internet is sometimes the hell. Can someone point me to the tar archive for the PDO documentation please? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Offline PDO documentation?
Am 2008-12-29 20:08:40, schrieb chris smith: > You can download the whole php.net docs: > > http://www.php.net/download-docs.php Grrr, while I was checking which version I have on my intranet server, I have encountered it was the one from "2007-05-01"... and a newer TAR Archive was laying arround and never extracted! :-/ However, I have installed the latest one from "2008-12-26" downloaded for one minute... Great, it was fresh uploaded for 3 days... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Problem with fetching values...
Am 2008-12-29 22:09:16, schrieb chris smith: > > So, PostgreSQL catch the array by "name" > > > >pg_fetch_array($db_query, null, PGSQL_ASSOC) > > > > and MySQL use the "position" > > > >mysql_fetch_array($db_query, MYSQL_NUM) > > Why? > > http://www.php.net/mysql_fetch_array > > Use MYSQL_ASSOC as the 2nd param, or leave it out and by default it > uses BOTH. Argh!!! Asshole !!! (me) -- I have not seen the tree in the wood! Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant ##### <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] How to count transfered kBytes in File-Download
Hello *, currently I have a function: [ '/usr/share/tdphp-vserver/includes/02_functions.inc' ] function fncPushBinary($type='show', $file, $mime='') { if ( is_file("$file") ) { if ($mime == '') { $mime=exec("file -i -b $file"); } $STRG="; filename=\"" . basename($file) . "\""; $FSIZE=filesize("$file"); if ($type == 'show') { header("Content-Disposition: inline" . $STRG ); } else { header("Content-Disposition: attachment" . $STRG); } header("Content-Type: " . $mime); $HANDLER=fopen("$file", r); echo fread($HANDLER, $FSIZE); fclose($HANDLER); exit(); } else { $ERRNO=2; $ERRTX=sprintf( T_gettext("The requested binary file does not exist.%s"), $file ); fncError($ERRNO, $ERRTX, $ERRPAGE); } } which I want to modify it to count the kBytes a user download and block after a definde amount... (there are too many peoples in the world which want to suck anything for free and unlimited and no one cares who pay the stuff... even if I have 100 TByte free traffic on one of my bigger servers) My problem is now 1) how to count partial downloads 2) how to allow users to make partial downloads any suggestions? Oh, I should note, that the URL's looks like: /?what=music&where=h§ion=foo&name=I_love_php5.ogg and the input to the function is already sanitized. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: How to count transfered kBytes in File-Download
Good morning Jim, Thank your for your help, I will now adapt my scripts and test it. And if a user had done a partial download, how can I set the pointer to resume the download? I personaly find websites offering downloads but not resuming very annoying, so I like to do it better... :-) I know I have to get a $_HTTP[''] header for the partial request, but which? And then I have too seek fread() right? But how? > Then here, do this... > > $current_size = 0; > while ( !feof($HANDLER) ) { > $current_size += $buffer; > echo fread($HANDLE, $buffer); > } > > Now, do what you want with $current_size > > Maybe have a variable that you check it against that contains the users > allow amount of transfer... > > $current_size = 0; > while ( !feof($HANDLER) && $current_size < $allowed_limit ) { > $current_size += $buffer; > echo fread($HANDLE, $buffer); > } > > Hope this gets you leading down the right path... Yes. :-) However, I do not want to break downloads... So I check the $current_size AFTER each completed download and since $USER can only download one file at once, it should work without any problems. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Re: How to count transfered kBytes in File-Download
Am 2009-01-03 10:16:43, schrieb Eric Butera: > On Sat, Jan 3, 2009 at 9:23 AM, Ashley Sheridan > > I don't think this is actually possible. I've never seen it happen > > before. It would need some sort of dedicated client-side software to > > recognise exactly how much has been downloaded and then request the rest > > of it. A browser doesn't yet have this capability I believe. "wget" and "curl" support resum broken download... > $_SERVER['HTTP_RANGE'] > > ??? Hmmm, what is the value of this VAR? The BYTE where to start? If yes, how can I include this in my script? I mean, if I fread() I must skip this ammount of BYTES and then start sending, but how to skip it? Or I am wrong with fread()? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: How to count transfered kBytes in File-Download
Hello Jim and *, Am 2009-01-02 21:12:58, schrieb Jim Lucas: > $current_size = 0; > while ( !feof($HANDLER) ) { > $current_size += $buffer; > echo fread($HANDLE, $buffer); > } This part is working now... ;-) But there is a problem: IF the user interrupt the download, the PHP script exit immediately, which mean, the database can nut be updated for the partial download. Now I was searchin the downloaded php5 documentation where i have read, that one can set a variable, that the PHP5 script does NOT exit, if the user interrupt the connection. I need to set ths ONLY for this function, since otherwise it can have a very negative impact. Can someone tell me, WHICH and HOW to set the variable? Note: I have only access to my VServer root not the PHP or OS installation even if I can read it from my php scripts... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Send file from script but with name... [fails]
Hello, for some weeks I have accidently deleted some line of code and replaced it with: header("Content-Disposition: attachment; filename=\"somestuff.foo\""); but any programs (mozilla, iceape, wgwet, curl) do not more recognize the filename but saving the files fit a url... Any hints what I am doing wrong here? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] HTTP range headers [WAS: How to count transfered kBytes in File-Download]
Am 2009-01-04 09:23:46, schrieb Ashley Sheridan: > On Sat, 2009-01-03 at 23:41 -0800, mike wrote: > > I actually use $_SERVER['HTTP_CONTENT_RANGE'] in my setup (nginx + > > php-fpm) - I don't think I get an 'HTTP_RANGE' ... > I'm still a little confused on this though. How would a browser send > this to notify of a download that was only partially completed before? Lets try it: [ STDIN ]--- [michelle.konz...@tp570:/tmp] wget -S "http://www.tamay-dogan.net/foo/xxx.xxx"; --15:07:53-- http://www.tamay-dogan.net/foo/xxx.xxx => `xxx.xxx' Auflösen des Hostnamen »www.tamay-dogan.net« 88.198.11.108 Verbindungsaufbau zu www.tamay-dogan.net[88.198.11.108]:80... verbunden. HTTP Anforderung gesendet, warte auf Antwort... 1 HTTP/1.1 200 OK 2 Date: Sun, 04 Jan 2009 14:11:51 GMT 3 Server: Apache 4 Last-Modified: Thu, 01 Jan 2009 00:23:18 GMT 5 ETag: "63fbad-ba6b4-45f60d4c4a980" 6 Accept-Ranges: bytes 7 Content-Length: 763572 8 Keep-Alive: timeout=15, max=100 9 Connection: Keep-Alive 10 Content-Type: text/plain 72% [=> ] 551,0217.38K/sETA 00:28 [michelle.konz...@tp570:/tmp] wget -S -c "http://www.tamay-dogan.net/foo/xxx.xxx"; --15:09:17-- http://www.tamay-dogan.net/foo/xxx.xxx => `xxx.xxx' Auflösen des Hostnamen »www.tamay-dogan.net« 88.198.11.108 Verbindungsaufbau zu www.tamay-dogan.net[88.198.11.108]:80... verbunden. HTTP Anforderung gesendet, warte auf Antwort... 1 HTTP/1.1 206 Partial Content 2 Date: Sun, 04 Jan 2009 14:13:14 GMT 3 Server: Apache 4 Last-Modified: Thu, 01 Jan 2009 00:23:18 GMT 5 ETag: "63fbad-ba6b4-45f60d4c4a980" 6 Accept-Ranges: bytes 7 Content-Length: 211183 8 Content-Range: bytes 552389-763571/763572 9 Keep-Alive: timeout=15, max=100 10 Connection: Keep-Alive 11 Content-Type: text/plain 100%[++==>] 763,5727.48K/sETA 00:00 15:09:45 (7.29 KB/s) - »xxx.xxx« gespeichert [763572/763572] OK, this mean, the name of the HTTP headers are $_SERVER['CONTENT_LENGTH'] which tell the server HOW MANY Bytes I wan to get and $_SERVER['CONTENT_RANGE'] which tell the server where to START and to END, but I do not understand WHY the range is ONE BYTE less then the TOTAL LENGTH. Does someone know more about it? Hey *, if my function pushBinary() is properly supporting this kind of stuff, it solve a very big problem on my website and my customers of course. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##### Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: HTTP range headers [WAS: How to count transfered kBytes in File-Download]
Am 2009-01-04 15:23:04, schrieb Michelle Konzack: > 7 Content-Length: 211183 > 8 Content-Range: bytes 552389-763571/763572 > but I do not understand > WHY the range is ONE BYTE less then the TOTAL LENGTH. OK, the first Byte is 0 and not 1 which is WHY the RANGE ends at 763571. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: How to count transfered kBytes in File-Download
Hi Jim... ;-) The code: [ '/usr/share/tdphp-vserver/includes/02_functions.inc' ] function fncPushBinary($type='show', $file, $mime='') { $BUFFER=1024; $HANDLER=fopen($file, r); $CUR_SIZE=0; while ( !feof($HANDLER) ) { $CUR_SIZE+=$BUFFER; echo fread($HANDLER, $BUFFER); } fclose($HANDLER); fncUserUpdate($user, 'downloads', $file, $CUR_SIZE, $FSIZE); exit(); } function fncUserUpdate($user, $type, $file, $cur_size, $file_size) { echo "What The Hell Is Going On Here?\n"; $HANDLER=fopen('/tmp/fncUserUpdate.log', a); $DATE=date("r"); fwrite($HANDLER, "$DATE $user $file $cur_size $file_size\n"); fclose($HANDLER); } is working without any errors, but in my log I get every time: [ '/tmp/fncUserUpdate.log' ] Sun, 04 Jan 2009 18:48:51 +0100 dummy /var/www/customers/konzack/CONFIG_musica.tamay-dogan.net/music/Iran/Arian_Band_-_Bi_To_Ba_To.jpg Sun, 04 Jan 2009 18:49:44 +0100 dummy /var/www/customers/konzack/CONFIG_musica.tamay-dogan.net/music/Iran/Arian_Band_-_Bi_To_Ba_To.jpg Sun, 04 Jan 2009 18:53:22 +0100 dummy /var/www/customers/konzack/CONFIG_musica.tamay-dogan.net/music/Iran/Arian_Band_-_Bi_To_Ba_To.jpg which is a little bit weird, since I have downloaded the files with 'wget' and interrupted the transfer. Speek, the $CUR_SIZE is always the filesize rounded up (1kByte) but NOT the actual downloaded partial size, which is, what I want... Any sugestions? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant ##### <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Send file from script but with name... [fails]
REVISION 0.0.1 Am 2009-01-04 18:36:46, schrieb Michelle Konzack: > Hello, > > for some weeks I have accidently deleted some line of code and replaced > it with: > > header("Content-Disposition: attachment; filename=\"somestuff.foo\""); > > but any programs (mozilla, iceape, wgwet, curl) do not more recognize > the filename but saving the files fit a url... Not right... Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20070113 Debian/1.7.8-1sarge10 works correctly and only 'iceape' from Debian Etch/Lenny, 'wget' und 'curl' get it wrong. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Re: Re: How to count transfered kBytes in File-Download
Hello Ashley, Am 2009-01-04 09:23:46, schrieb Ashley Sheridan: > I'm still a little confused on this though. How would a browser send > this to notify of a download that was only partially completed before? I am using Mozilla/Iceape under Debian GNU/Linux and it is sometimes realy confusing since it support resum broken downloads but sometimes not. So in general, if you want to download something, the Download Client (wget, curl or a Web-Browser) is checking whether a File with the same name exist already and do a filesize($DL_FILE). Then it send the infos together WITH the normal HTTP header and then it is the JOB of the Web- or FTP-Server to act... This mean, if the SERVER check the RANGE header and see: "Oh, the client has already 1234 Bytes but my file is 5678 Bytes." the SERVER SKIP the first 1234 Bytes and start at the 1235 Bytes sending up to the end. However, Webservers supporting the RANGE header can send a real partial file like the filesize is 1 Bytes and the Client can request to get the Bytes from 2001 to 4000. This is what Bit-Torrent does e.g.: client -> server 1 -> 0 to 2000 bytes server 2 -> 2001 to 4000 bytes server 3 -> 4001 to 6000 bytes server 4 -> 6001 to 8000 bytes server 5 -> 8001 to 1 bytes the problem is now, the FORMAT of the RANGE header. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Re: How to count transfered kBytes in File-Download
Hello Eric, Am 2009-01-04 14:33:37, schrieb Eric Butera: > On Sun, Jan 4, 2009 at 1:39 PM, Michelle Konzack > wrote: > > [ '/usr/share/tdphp-vserver/includes/02_functions.inc' ] > > function fncPushBinary($type='show', $file, $mime='') { > > > >$BUFFER=1024; > > > >$HANDLER=fopen($file, r); > > > >$CUR_SIZE=0; > >while ( !feof($HANDLER) ) { > > $CUR_SIZE+=$BUFFER; > > echo fread($HANDLER, $BUFFER); > >} > >fclose($HANDLER); > > > >fncUserUpdate($user, 'downloads', $file, $CUR_SIZE, $FSIZE); > >exit(); > > > > } > > > > function fncUserUpdate($user, $type, $file, $cur_size, $file_size) { > > echo "What The Hell Is Going On Here?\n"; > > $HANDLER=fopen('/tmp/fncUserUpdate.log', a); > > $DATE=date("r"); > > fwrite($HANDLER, "$DATE $user $file $cur_size > > $file_size\n"); > > fclose($HANDLER); > > } > > > Maybe a combination of ignore_user_abort & connection_status will get > you what you need. This way the user doesn't make the script die, but > you can keep checking to make sure the connection is active. If not, > update that db and exit out. I've never attempted anything like this, > so I don't really have any concrete answers for you. Since I have encountered that fncUserUpdate() is writing the Test-Logfile (even with wrong value) I am now puzzeling arround, because I was thinking, if I am in the loop while ( !feof($HANDLER) ) { $CUR_SIZE+=$BUFFER; echo fread($HANDLER, $BUFFER); } and the user intreeupt the transfer, the script would never reach fncUserUpdate($user, 'downloads', $file, $CUR_SIZE, $FSIZE); which WAS writing the Test-Logfile while beeing interrupted... I have checked with phpsysinfo() but there are no settings like ignore_user_abort and connection_status Not I have replaced the fncUserUpdate() with the original function for the PostgreSQL and MySQL database and it is just executed and the script run up to the end... weird! Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] RSS feeder in PHP5?
Hello, on my website I have a NEWS section on <http://www.tamay-dogan.net/?what=news> and the news are stored in a SQL table with "date", "summary", "fulltext" Now I like to add an RSS feed with something like <http://www.tamay-dogan.net/?what=news&action=rss> which require only an additional function in my scripts... Is there something in PHP5 which can generate the RSS feed? It should only pick-up the "date" and "summary" from maybe the last 10 entries from the database and that it is... Note: The RSS file can NOT pre-build because I can not run cronjobs my own... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: RSS feeder in PHP5?
Hello Richard, Am 2009-01-12 11:02:39, schrieb Richard Heyes: > > Is there something in PHP5 which can generate the RSS feed? > > You don't need an extension to help you generate an XML feed. You > dimply output XML data instead of HTML and send an appropriate content > type header, eg: Thanks for the tip... If it is easy like this, I will go with it.. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: RSS feeder in PHP5?
Hello Nathan, Am 2009-01-12 11:25:57, schrieb Nathan Rixham: > header("Content-type: application/rss+xml; charset=utf-8") OK > >And its alot better to use DOMDocument in PHP5 for XML Creation rather > >than hardcode everything. > > agreed in principle; and I can't belive i'm saying this.. but with the > case of a single rss feed in a single format then a tiny inline script > which echo's out is far far lighter on the server and will do the trick; > it's one of those set-up and leave scripts so DOMDocument may be > overkill in this situation. Right, it is only a singel RSS feed per VHost and always the same format where a simple "echo" is enough. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Php and CSS where to put it
Hello Terion, Am 2009-01-12 10:42:10, schrieb Terion Miller: > I have this code and the css seems to not work in IE at all, do I need to > put it somewhere different on the page maybe? The CSS must be in the HTML Header like CSS Example #body { background-color: magenta; } ...rest of the page > > > ini_set('error_reporting', E_ALL); > ini_set('display_errors', true); > > $sql = "SELECT * FROM `textads` WHERE `expos` > xCount ORDER BY RAND() > LIMIT 3"; > $result = mysql_query($sql); > > echo " > cellpadding=10 bordercolor=#66 background= 'inc/bg.gif' bgcolor=#CC> according to W3C any values must be quoted like: echo " Do not forget to ESCAPE! And of course, I would put the stuff into the CSS definition and not into the TABLE tag. > > > QUOT the values! > "; > > while ($row = mysql_fetch_array($result)) { > echo " > width=33%>{$row['title']}{$row['blurb']} > {$row['href']}"; > //Add to exposure count > $views = $row['xCount'] + 1; > mysql_query("UPDATE `textads` SET `xCount` = '{$views}' WHERE `ID` = > '{$row['ID']}'"); > } > > echo " > "; > > ?> Your HTML page has to be closed with: Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Re: Php and CSS where to put it
Am 2009-01-12 21:56:00, schrieb Ashley Sheridan: > Here's something for fixing IE with hacks: > > http://www.ashleysheridan.co.uk/coding_html_comments.php > > basically it lets you add in extra IE-only stylesheets using comment > code only recognised by IE, and you can use !important to stress your IE > styles. Best thing though is it validates through the W3C because it is > just an HTML comment. Right and you can use it to free IE from ANY Cascading Style Sheets. :-D Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: downloading xls files corrupts them
Am 2009-01-12 13:13:25, schrieb Chris Ditty: > I am using php to download xls files on my server. When I download them, > excel is saying they are corrupted. They are not corrupted on the server > itself. These are simple xls spreadsheets with no formatting in them. > > Here is the headers that I am using for the download. This is happening in > both IE and Firefox. > header("Pragma: public"); > header("Expires: 0"); > header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); > header("Content-Type: application/force-download"); > header("Content-Type: application/octet-stream"); > header("Content-Type: application/download"); Why do you do this three times? You need only: header("Content-Type: application/vnd.ms-excel"); > header("Content-Disposition: attachment; > filename=".basename("./bidDocs/".$myFile).";"); > header("Content-Transfer-Encoding: binary"); Remove this line. > header("Content-Length: ".filesize("./bidDocs/".$myFile)); > readfile("./bidDocs/".$myFile); > > Anyone have any suggestions? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Re: Re: Php and CSS where to put it
Hello Ashley, Am 2009-01-13 22:14:53, schrieb Ashley Sheridan: > Yeah. Now my development goes like this: > > 1. Design for Firefox > 2. Fix for Opera, Safari et al > 3. Fix for IE > But generally speaking, if it works in Firefox, it'll most likely behave > itself in everything except IE ;) My experience too. However, my Website is about Renewable Energies, Low-Energie Electronics and Open Source (GNU/Linux) so I do not realy care about IE. :-D Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Holy crap
Am 2009-01-13 20:22:42, schrieb Daniel Brown: > On Mon, Jan 12, 2009 at 14:30, Robert Cummings wrote: > > > > 2.0 is the new beta... what did you think Web 2.0 was all about? > > In Q3 2009, Microsoft is "improving" on that with Web 2.11 for Workgroups. I had "W?? 3.11 for Workgroups" in 1994. :-D ROTFL Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Weird problem while reading in a file to an Array
Hello, currently I am coding a RSS feeder for the Emdebian buildd-log and for testing I use two files: <http://www.emdebian.org/buildd/a/apt/trunk/apt-arm-1233120802.log> <http://www.emdebian.org/buildd/b/base-passwd/trunk/base-passwd-arm-1221459903.log> and if you look into those Build-Logs, the structure is 100% identic. And now it comes: While the first file is working fine, the second fails processing... The generated RSS feed is here: <http://devel.debian.tamay-dogan.net/rss.php?action=rss&what=crush> And you can see in the second it is empty... :-( The script starts with: $HANDLE=curl_init(); curl_setopt($HANDLE, CURLOPT_URL, $_GET['name']); curl_setopt($HANDLE, CURLOPT_HEADER, 0); curl_setopt($HANDLE, CURLOPT_RETURNTRANSFER, 1); $BUILDLOG=curl_exec($HANDLE); if (curl_errno($HANDLE) != "0") { echo 'Curl error: ' . curl_error($HANDLE); exit(); } curl_close($HANDLE); /* Parsing the BUILDLOG */ exec("echo \"$BUILDLOG\" |head -n 11", $TMP_DATA); and to see what happen to $BUILDLOG and array() I have included: echo "\n"; print_r($TMP_DATA); echo "\n"; echo "##\n"; echo "\n"; echo $BUILDLOG; echo "\n"; Now try to call: <http://devel.debian.tamay-dogan.net/rss.php?action=catch&what=crush&name=http://www.emdebian.org/buildd/a/apt/trunk/apt-arm-1233120802.log> which is working (see array() at the beginning) and: <http://devel.debian.tamay-dogan.net/rss.php?action=catch&what=crush&name=http://www.emdebian.org/buildd/b/base-passwd/trunk/base-passwd-arm-1221459903.log> which fales for array() but as you can see in the Web-Browser output, $BUILDLOG has gotten the file correctly from curl_exec(). So, whats going on here? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##### Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Weird problem while reading in a file to an Array
Hello Shawn, Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: > exec(escapeshellcmd("echo '$BUILDLOG' | head -n 11"), $TMP_DATA); > > There are quotes or backticks or something in $BUILDLOG. Thanks for it, now I have an array but the "|head -n 11" is ignored and my arrays have up to several 10.000 elements... Also if I like to continue processing,it does not more work because the backslashes... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Weird problem while reading in a file to an Array
Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: > exec(escapeshellcmd("echo '$BUILDLOG' | head -n 11"), $TMP_DATA); > > There are quotes or backticks or something in $BUILDLOG. Forgotten one thing: If I continue to process the array() with, e.g., $POS=strpos(stripcslashes($TMP_DATA['0']), ": "); $POS=$POS+2; $PKG=substr(stripcslashes($TMP_DATA['0']), $POS); $POS=strpos(stripcslashes($TMP_DATA['1']), "version "); $POS=$POS+8; $VERSION=substr(stripcslashes($TMP_DATA['1']), $POS); stripcslashes() does not have any effect and processing fails. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Weird problem while reading in a file to an Array
Am 2009-01-29 16:09:00, schrieb Shawn McKenzie: > Actually though, instead of exec() why not something like: > > $TMP_DATA = explode("\n", $BUILDLOG, 11); Tried... but now I have 11 elements wher in the last element is the whole rest of the BUILD-Log... continue trying! Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Payment question in Canada
Am 2009-01-30 22:47:10, schrieb Edmund Hertle: > Read this discussion. I think this will help you: > http://marc.info/?t=12329898971&r=1&w=2 Address Not Found www.marc.info could not be found. Please check the name and try again. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Weird spam messages on the list... [WAS: Stop Being a Wage Slave! Join EarnGoogleCash Program!]
Hello *, This list is subscribers only, and HOW can it be, that a Spamme can use a Debian mailinglist to spam . AFAIK it is not possibel for a mailinglist to subscribe itself to anoter mailinglist. I think, the listadmins from should blacklist . Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> <http://www.can4linux.org/> Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] GeoIP?
Hello, I am in creation of a WaveLAN service in Germany and my HTML-Form is DoS'ed be idiots outside of Germany. Can someone tell me how to prevent peoples, filling out the form without being in Germany? Note: I do not want to load the whole GeoIP Database in my scripts. Or is there a Free Online-Service which can do this? If not, it would be a nice project to start and could work like the RBL. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strasbourg/France IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: GeoIP?
Forgotten one thing: Am 2009-03-15 13:52:52, schrieb Michelle Konzack: > Hello, > > I am in creation of a WaveLAN service in Germany and my HTML-Form is > DoS'ed be idiots outside of Germany. Can someone tell me how to prevent > peoples, filling out the form without being in Germany? > > Note: I do not want to load the whole GeoIP Database in my scripts. > > Or is there a Free Online-Service which can do this? > > If not, it would be a nice project to start and could work like the RBL. END OF REPLIED MESSAGE Yes, I KNOW <http://search.cpan.org/~borisz/Geo-IP-1.37/lib/Geo/IP.pm> and I have tried to implement it in PHP, but it is very slow... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strasbourg/France IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: GeoIP?
Hello Nitsan, Am 2009-03-15 15:39:26, schrieb Nitsan Bin-Nun: > Take a look at this: > http://www.maxmind.com/app/geolitecountry > > Use indexes, I think the checkup won't take long. I have it installed (php5-geoip, 1.0.3-1) , but it is realy slow OK, now I have greped for DE and the database is now only 9607 lines insteed of 108166 and it is a little bit faster... However, it has a heavy Disk-IO and I do not know, if my Hoster like such stuff. :-/ Maybe PostgreSQL or MySQL would be better? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strasbourg/France IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: GeoIP?
Hello Per, Am 2009-03-15 15:12:47, schrieb Per Jessen: > The easiest is to use a DNS service - this is the best one I know: > http://countries.nerd.dk/ This is cool... OK, I have imported the ISO codes list and it just works how it should. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strasbourg/France IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] How do you use php-gettext?
Hello, I am trying to i18n a website using php-gettext with strings like T_gettext("Hello World") the problem is, they are inside the PHP scripts and xgettext does not find them to write the POT files. How do you use php-gettext and get the POT files to translate it? Note: Writing all strings in on file which then will be include is no option, since they are to many strings... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strasbourg/France IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] [SOLVED] How do you use php-gettext?
Now it works... I do not know why but it works. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strasbourg/France IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: [SOLVED] How do you use php-gettext?
There are two example coming with "php-gettext" package. However, it is realy easy since you have to use only: print T_gettext("Hello World"); or print sprintf(T_ngettext("%i Developer", "%i Developers", ${COUNT}), $COUNT); Run the command xgettext -k T_gettext -k T_ -L PHP -o script.pot script.php and then you have the Translation Template. Copy it to your desired language like cp script.pot script.po and translate the "msgstr". Not call the command msgfmt -o script.mo script.po and copy the file script.mo to your desired locale directory with e.g. cp script.mo /var/www/locale/de/LC_messages/ and then setup your script.php to use [ 'script.php' ] 8<-- Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strasbourg/France IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Weird problem with T_gettext()
Hello, I need some help from german coders since I have a weird encoding problem. Currently I am coding the new website <http://www.tdwave.net/> and if I do not select any languages in my Webbrowser, it show correctly english in the "Siteindex" (topmost block). Now selecting "de" as prefered language is working, but if I select "de_DE" in Firefox, the second term "About Us" is something like "Ãber Uns" insteed "Über Uns" because the Website is UTF-8. This is realy weird, since the MO file is the same for both locale versions. Any hints or ideas? Also it is weird, that "php-gettext" does not do a fallback, if I have only "de" and not "de_DE". Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strasbourg/France IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: Weird problem with T_gettext()
Am 2009-04-04 10:13:52, schrieb Per Jessen: > Michelle Konzack wrote: > > > Now selecting "de" as prefered language is working, but if I > > select "de_DE" in Firefox, the second term "About Us" is > > something like "Ãber Uns" insteed "Über Uns" because the Website is > > UTF-8. > > Indeed. I'll venture a guess and say it's because your dictionary file > is bad or not actually UTF8. Weird, since my whole system is UTF-8 and if I try to einter iso-8859-1 charachters it complys that there is a error. Even xgettext tell me this I have checkd it already with "iconv" It seems the problem is if my "msgid" have strings like ü which are not correctly converted to UTF-8 if I use "de_DE" since in "de" it is working. Unfortunately the upstream of "php-gettext" is not responding to my mail > > This is realy weird, since the MO file is the same for both > > locale versions. > > Ah. Very weird, yes. Are you doing a setlocale() anywhere? The only setlocale() I have found in the whole system is in /usr/share/php/php-gettext/gettext.inc which a part of the php-gettext package. > Fallback to what? I only have 'de' in my browser language preferences, > and your site came up fine in German. If someone have in the browser only "de-de" and I have NO locale "de_DE" but "de", php-gettext does not fallback to "de". Normaly under Linux you can have /usr/share/locale/de_DE.UTF-8 /usr/share/locale/de...@euro /usr/share/locale/de_DE /usr/share/locale/de So if your system is "de_DE.UTF-8" and there is no UTF-8 locale, gettext try "de_DE" and if that fais it try "de". Unfortunately this does not work with "php-gettext". For me it is a bug. Thanks, Greetings and nice Day/Evening Michelle Konzack -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strasbourg/France IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] New installation and can not more include files
Hello, to test a new setup I have setup DynDNS.org and it works, but... <http://vserver1.tamay-dogan.homelinuxnet/> the copied config of my working website is failing here to include ANY files... I do not find the difference between the configs. Please can you tell me where I must looking for? Note: My orig website was under Gentoo and now I am under Debian Lenny. Thanks, Greetings and nice Day/Evening Michelle Konzack -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
Re: [PHP] New installation and can not more include files
Am 2009-04-12 20:05:31, schrieb Michelle Konzack: > <http://vserver1.tamay-dogan.homelinuxnet/> Oops... I mean <http://vserver1.tamay-dogan.homelinux.net/> Thanks, Greetings and nice Day/Evening Michelle Konzack -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant ##### Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] PHP5 based Web-Chat?
Hello, I like to install a forum for my customers and additional a PHP5 based Web-Chat system with publich and private chatrooms. What can you recommend? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strasbourg/France IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: PHP5 based Web-Chat?
Hello Nathan, Am 2009-05-21 13:44:38, schrieb Nathan Rixham: > Nothing :D > - anything php based would involve polling which will kill > any server when trying to create a realtime chat environment > (1 request per second per chatter + 1 for each message send + normal > hits) - so say 30 chatters and you have at a minimum 30 requests per > second with all the weight and db hits they involve. if you check <http://chat.tchatche.com/> then you will see, they refesh only all 5-8 seconds. Currently I have encountered a maximum of ~4800 users connected at once. I am already trying a small thing with 5 frames imitating the above website and already used it with 10 clients at once which work on a Quad-Xeon (P3/550MHz/768MByte) on a 2.5 MBit Internet connection. > in all honesty I'd recommend using openfire together with sparkweb or a > custom client - that combo is premade, feature packed, opensource and > can easily handle circa 50k users in realtime per server (connections > and things aside). Additionally its a proper jabber server so you can > have desktop clients, mods and of course full featured IM with custom > addresses, openid and integrated in with yahoo, gtalk, msn, aol, > *whatever* accounts as well. I have a Jabber Server (Package "jabber"; Debian Distribution) installed but no one want to use it... Pidgin is working perfectly with it and is available on ALL Operating Systems. However, I need a Webinterface where People can connect to others een if they have NO Laptop/Smartphone with them. Is there a USER Web-Interface to Jabber? > going down the php route is a complete waste of time imho (unless you > are creating a custom php socket server which bypasses apache, > implementing XMPP and connecting in the users client via flash, flex or > a java client) I was thinking on a Flash/Java solution too, but I do not know HOW TO create this Flash-Stuff and do not even code Java. > yours, not of a very strong opinion, nathan Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strasbourg/France IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
Re: [PHP] This Friday's OT Thread
...and no one care about the foreign (european) sniper WHO killed Neda in Iran. Note: I can not reach my Company Website in Tehran nor can I reach my Office over fixed telephone lines. I can not even contact one of my 57 employees privately. No one has tried to access my courier-imap or my webmail server in Germany... F..king world... and now Jackson? WHO IS HE? Am 2009-06-26 08:41:21, schrieb Tom Worster: > and Kaleem Omar. > > and 15 people in Baghdad when motorcycle loaded with nails and ball-bearings > exploded in a crowded bazaar. > > > > On 6/26/09 4:27 AM, "Robert Cummings" wrote: > > > Farah Fawcett has also died. I guess you gotta go sometime :| > > > > Björn Bartels wrote: > >> Hello fellow coders... > >> > >> THE 'KING OF POP' IS DEAD ! > >> > >> Tonight (here in Germany), Mr. Michael Joseph Jackson, also known as > >> 'the king of pop', > >> died on heart failure in the age of 50. > >> > >> I just want to express my condolences to his family and friends and > >> all the people > >> who loved him and his music. > >> This incomparable legendary musician has made such a big impact on > >> music and musicians > >> than any other artist in history. > >> > >> Rest in peace, Mr. Jackson! And may you and your music never be > >> forgotten... > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > END OF REPLIED MESSAGE * Do not Cc: me, because I READ THIS LIST, if I write here * *Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe* Hello, Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 +49/177/935194750, rue de Soultz MSN LinuxMichi +33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Weird domain seting in setcookie()
Hello, on two websites I have encountered that cookies are not working properly and are accesibel from other subdomains which I do not want. The line is: setcookie('AdminOnCrack', $drug, $timeout, '/', $_SERVER['HTTP_HOST']); but the "domain" is always prefixed with a ".". OK, now I have tested it using: setcookie('AdminOnCrack', $drug, $timeout, '/', 'myspace.tdwave.net'); but with the same problem. I do not want that the cookies are available in <*.myspace.tdwave.net>. Any suggestions? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack c/o Shared Office KabelBW ICQ #328449886 +49/177/9351947Blumenstasse 2 MSN LinuxMichi +33/6/61925193 77694 Kehl/Germany IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
Re: [PHP] Weird domain seting in setcookie()
Hi Bob, Am 2009-07-14 11:46:16, schrieb Bob McConnell: > In Firefox 3.0 under Tools->Options->Privacy, uncheck "Accept > third-party cookies". What has this to do with the Webbrowser? In the PHP manual it is written: [ url 'http://de.php.net/manual/en/function.setcookie.php' ] domain The domain that the cookie is available. To make the cookie available on all subdomains of example.com then you'd set it to '.example.com'. The . is not required but makes it compatible with more browsers. Setting it to www.example.com will make the cookie only available in the www subdomain. Refer to tail matching in the » spec for details. This mean, if I wan to have the COOKIE available in the subdomains foo.myspace.tdwave.net bar.myspace.tdwave.net baz.myspace.tdwave.net I have to use the domain ".myspace.tdwave.net" with a preceding DOT. But this is not what I want because I want to have the COOKIE only available in myspace.tdwave.net so, I have set the the domain explicit to "myspace.tdwave.net" which should register the cookie as it is according to the PHP manual or not? Thanks, Greetings and nice Day/Evening Michelle Konzack -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack c/o Shared Office KabelBW ICQ #328449886 +49/177/9351947Blumenstasse 2 MSN LinuxMichi +33/6/61925193 77694 Kehl/Germany IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
Re: [PHP] Add php.net to my browser search box
Good evening Daniel, thank you for the link... I was searching such tool... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant Am 2009-07-16 12:09:07, schrieb Daniel Brown: > I had written one about two and a half years ago. It's the > dumbest, simplest thing, and yet it's now been downloaded over 30,000 > times. Nuts. > > If you want to use it, or just use the model as a frame to build > your own, check it out: > > http://isawit.com/php_search.php > END OF REPLIED MESSAGE -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack c/o Shared Office KabelBW ICQ #328449886 +49/177/9351947Blumenstasse 2 MSN LinuxMichi +33/6/61925193 77694 Kehl/Germany IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
Re: [PHP] Add php.net to my browser search box
Hello Jim, Am 2009-07-16 09:40:53, schrieb Jim Lucas: > I use FF 2 & 3 and I created a bookmark that simply had a keyword > assigned to it. > > Bookmark properties are as follows: > > Name: PHP.net > Location: http://www.php.net/%s > Keyword: php > Description: Type "php " in the address bar > to perform a PHP.net search > > Not sure if you can do this with other browsers, but I have found it to > be very useful. You are great... It works even with: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20070113 Debian/1.7.8-1sarge10 on my nifty IBM ThinkPad 570. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##### Debian GNU/Linux Consultant # Michelle Konzack c/o Shared Office KabelBW ICQ #328449886 +49/177/9351947Blumenstasse 2 MSN LinuxMichi +33/6/61925193 77694 Kehl/Germany IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
Re: [PHP] Linking to images above the webspace
Am 2009-07-17 14:23:30, schrieb Nitsan Bin-Nun: > You can create a PHP script which will serve files based on their location > which will be transfered through a GET parameter. > Just send the correct response headers which will be corresponded to the > file's mime type, size, etc. > > Then use something like: > > > Good luck! "Good luck!" is good... He should be careful with such stuff... because someone can do something like: wget http://${SERVER}/a.php?image_full_path=/etc/passwd Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack c/o Shared Office KabelBW ICQ #328449886 +49/177/9351947Blumenstasse 2 MSN LinuxMichi +33/6/61925193 77694 Kehl/Germany IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Traffic throttling
Hello, since I have not the file store in my webspace for security reason, I use a php5 script to push it out. It even support "resumeing". some times ago, there was someone who told me to send out the files in chunks of, e.g. 1 kByte, which let me know to count the REAL traffic a client produce... OK, now the script works perfectly and I am able to delay the sending between two chunks, but what I need is a milisecond timer, because 1s is definitively to long. Is there something in php5 I can use? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> c/o Vertriebsp. KabelBW <http://www.flexray4linux.org/> Blumenstrasse 2 Jabber linux4miche...@jabber.ccc.de 77694 Kehl/Germany IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: Traffic throttling
Hello Stuart, Am 2009-07-21 16:39:30, schrieb Stuart: > http://php.net/usleep Thank you, that it was. Greetings and nice Day/Evening Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> c/o Vertriebsp. KabelBW <http://www.flexray4linux.org/> Blumenstrasse 2 Jabber linux4miche...@jabber.ccc.de 77694 Kehl/Germany IRC #Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ #328449886Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Suggestions for Web based FileServer/Mailaccess
* * Do not Cc: me, because I am on THIS list, if I write here.* * Keine Cc: an mich, bin auf DIESER Liste wenn ich hier schreibe. * * Ne me mettez pas en Cc:, je suis sur CETTE liste, si j'ecris ici. * * Hello, I am recoding some parts of my Intranet-Scripts and while in the "file" section, I want to add a Mailfolder (from courier-imap) to this directory, or contrary if I am on the "Mailfolder" section I want to add a file(space) to it. I do not know HOW to virtualize the overlaping of the Mailfolders and the Filespace to look like: -- /INBOX .Business .Tamay Dogan Network AGB.txt 3072x3072.logo.png .ML_php FAQ.txt .announce .general usefull_tips.txt contacts.db .ML_mail [EMAIL PROTECTED] FAQ.txt auth-smtp.txt -- Where the Maildirfolders are: ~/Maildir/INBOX ~/Maildir/INBOX.Business ~/Maildir/INBOX.Business.Tamay_Dogan_Network ~/Maildir/INBOX.ML_php ~/Maildir/INBOX.ML_php.announce ~/Maildir/INBOX.ML_php.general ~/Maildir/INBOX.ML_mail ~/Maildir/[EMAIL PROTECTED] which mean standard courier Mailfolders and the Filespace in ~/VFSPACE/ ~/VFSPACE/Business/ ~/VFSPACE/Business/Tamay_Dogan_Network/ ~/VFSPACE/ML_php/ ~/VFSPACE/ML_php/announce/ ~/VFSPACE/ML_php/general/ ~/VFSPACE/ML_mail/ ~/VFSPACE/ML_mail/[EMAIL PROTECTED] which should only created if a $USER put files into the section. Does anyone has already coded such stuff? Can point me to docs or something how to implement this? My Environement is: Debian GNU/Linux 4.0 Etch apache 1.3 (maybe update to v2 with WebDAV) php5 courier-imap PostgreSQL 7.4 (maybe update to 8.2) Greetings Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSN LinuxMichi 0033/6/6192519367100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: auto page generation
Hello Tim, Am 2007-04-16 19:22:21, schrieb Tim: > Also can i reccomend: > > "Web Database Applications with PHP and MySQL" Do you know an equivalent book for php5 and PostgreSQL 8.1/8.2? Greetings Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant ##### Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSN LinuxMichi 0033/6/6192519367100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: free allocated memory: HOW ?
Hello Arthur, Am 2007-04-12 13:40:08, schrieb Arthur Erdös: > Hello all, > > is there a way to free memory allocated by variables in PHP?? This is a > very important issue concerning long running scripts... > > I have a script that generates > 5000 Newsletters and when the script > finishes it uses 1.8 GB (!!) of RAM. Although I am using unset() to > clean up variables (tried with $var = null too). Are you running Linux? If yes, are aou realy sure it "eat" this amount of memory? I have a pgp-cli prog which seems to eat 12 GByte (of 16 GByte) after one week of use, but the stuff is ONLY cached... Greetings Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSN LinuxMichi 0033/6/6192519367100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Suggestions for Web based FileServer/Mailaccess
Hello Richard, It seems no one had understood me right... Am 2007-04-10 21:48:12, schrieb Richard Lynch: > Personally, I would use http://php.net/imap_open and friends to add > the mailbox, and let the OS and installed IMAP software choose the > correct mbox/Maildir option based on the server configuration, rather > than try to out-guess them... This is WHAT I already do... But currently I have two Spaces: The one for the E-Mails and one for the files WHich mean, if I ahve a friend called "Richard" and his Messages goes into the Mailfolder "Peoples/Richard" and I want to see what I have from him, like Files, Pics or whatever... I have to go to a second place the "File Section" to look at it. What I want is a fusion of the "MailSpace" and the "FileSpace". Currently I have a black hole and do not know HOW to implement this. In general, EACH "Mailfolder" can have a "FileSpace" and visa versa. Greetings Michelle Konzack Systemadministrator Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSN LinuxMichi 0033/6/6192519367100 Strasbourg/France IRC #Debian (irc.icq.com) signature.pgp Description: Digital signature
[PHP] Re: Will PHP ever "grow up" and have threading?
Hello Teus, You are a NOOB! ;-) You have not understood what he want. Am 2010-03-24 06:55:56, hacktest Du folgendes herunter: > Well, the multiple answers for a simple request per user as in your > example, seem to be a lot of information to display all on one page, and > present all that information to the user in one request. I would > probably resolve it, IMHO, by using pagers. That is, only part of the > information is shown to the user at one time, and the user can page > through that information so as to get to other bits of information. If > only part is shown, then the database query becomes so much faster > (hopefully), and PHP still can do all of it in one thread. He need threading because if you transform SAO Image (the NASA program) into a WebApp, you have to multi-query a 28 TByte Database and if ou make sequetial queries it take 24 hours to run and you get a server timout. using multi-threading will give you the result in 1 minutes but a serverload of 100% with an loadaverage of 50 should for him no problem Hell, I run a bunch of small Sun Fire X4100M2 with 3 SAS drives of 76 GB and it can handel a 10 GE Internet access plus a PostgreSQL cluster behind it with more then 25000 requets per second... I was never thinking off adding threading to PHP. It realy sounds braindamaged For such things here are optimized languages. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strabourg/France IRC#Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ#328449886 Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: Will PHP ever "grow up" and have threading?
Hello Tommy Pham, Am 2010-03-23 18:17:56, hacktest Du folgendes herunter: > Let's go back to my 1st e-commerce example. The manufacturers list is > about 3,700. The categories is about about 2,400. The products list > is right now at 500,000 and expected to be around 750,000. The site > is only in English. The store owner wants to expand and be I18n: > Chinese, French, German, Korean, Spanish. You see how big and complex > that database gets? The store owners want to have this happens when a > customer clicks on a category: I have something like this similar but my database is arround 2 TByte and stored on seven Sun Fire X4150 and I have only two X4100M2 as redunant Front-End. Your 750.000 items look a little bit like a gadget database... I habe several 10 million rows and 200 columns and this is why I splited the Database into seven Severs. Even threading would not work on this database, because the botleneck is the Disk-IO. A query about the "Irak-War" and "Backwater" would kill a singel server. > * show all subcategories for that category, if any > * show all products for that category, if any, > * show all manufacturers, used as filtering, for that category and > subcategories > * show price range filter for that category > * show features & specifications filter for that category > * show 10 top sellers for that category and related subcategories > * the shopper can then select/deselect any of those filters and > ability to sort by manufacturers, prices, user rating, popularity > (purchased quantity) > * have the ability to switch to another language translation on the fly > * from the moment the shopper click on a link, the response time (when > web browser saids "Done" in the status bar) is 5 seconds or less. > Preferably 2-3 seconds. Will be using stopwatch for the timer. Nothing special... Describtion for the products sould be a seperated server Q: Do you real mean, you put 750.000 product describtions into the database and then create a new colum for ech language? Your Mini-Shop could be done with redunancy using two Database- and two Web-Servrs. > is not even enterprise requirement. I may have another possible > project where # products is over 10 million easily. With similar More the 10 mio products? Whats this? I a in the electronic business, and geting 10 mio products, mean, take ANY western manufacturers of microchip manufacturers, passive parts, connectors and such into a database? Put asian manufactures to are arround 30 mio in total. If you say, you put the FITS data from the ESO into it, I could understand, but your explanation is a little but to unbelivable. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##### Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strabourg/France IRC#Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ#328449886 Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: Will PHP ever "grow up" and have threading?
Hello Tommy, Am 2010-03-23 19:08:36, hacktest Du folgendes herunter: > The response time, max 5 seconds, will be tested on local gigabit LAN > to ensure the adequate response (optimized DB & code & proper > hardware) without worrying about users' connection limit and site's > upload bandwidth limit (which can easily rectify). Then thereafter > will be doing stress test of about 10 concurrent users. As for the > major queries, that's where threads come in, IMO, because those > queries depend on 1 primary parameter (category ID) and 1 secondary > parameter (language ID). This particular site starts with 500 > products about 15 categories, without many of those mentioned filters, > later grew to its current state. Because not a singel OSS OnlineStore software support features I need for my business, I am coding a whole "Waren Wirtschafts System" with production checkout and an additional OnlineStore where I sell products which I have bought in VERY big quantities to get my Endproducts cheaper in production. I start with bneary the same requiements as you, have 18 main categories and each has 5 to 40 sub categories. Currently I have arround 1700 different products I need for production but over the tieme I count with 30-50.000 products. The server I will use is developed by my own using a Marvell Kirkwood MV78200 with an attached Marvell 8-channel SATA/SAS Raid-0/1/10/5 con- troller. This pig has 2 GByte DDR2 memory and beat anything I have ever used in this class. It is an ARM Microcontroller with 1200MHz. The "Reference Design" I use currently can handel more then 400 requests at once... If such small machine can handel this, I realy think, you do not know what are you talking about... My software (Apache2, PHP5 and PostgreSQL 8.3; Debian GNU/Linux Lenny) installed on this Low-Energy (<17W) machine can be scaled by adding parallel machines to increase performance... The machine without harddrives cost me in production of 1000 pcs less then 300 Euro/machine. I am slightely sure, yo make something wrong... I will not continue to read ths thread, because it is sick. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strabourg/France IRC#Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ#328449886 Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: Re: Will PHP ever "grow up" and have threading?
Hello Tommy, Am 2010-03-24 19:16:47, hacktest Du folgendes herunter: > 10+ million products is not hard to believe. Look at Amazon (my > future possible project is not related to Amazon nor am I endorsing > it). They sell consumer goods. Their product skus are about 30 > million, and that's not all the consumer goods there are either. They have a datacenter, a bunch of load balancer and does not run any- thing on a singel database server. They use more then 1000 servers! Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strabourg/France IRC#Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ#328449886 Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: Will PHP ever "grow up" and have threading?
Hello Matt, Am 2010-03-24 21:21:35, hacktest Du folgendes herunter: > ok, how do I get off this list? Realy easy... :-D You continue reading this thread and then commit suicid! If then your maibox overflow, you will automaticaly unsubscribed through the bounces. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strabourg/France IRC#Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ#328449886 Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: Will PHP ever "grow up" and have threading?
Hello Robert, Am 2010-03-24 21:22:21, hacktest Du folgendes herunter: > Matt Giddings wrote: > >unsubscribe > *lol* That hit it, -- right? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strabourg/France IRC#Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ#328449886 Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: Will PHP ever "grow up" and have threading?
Hello Daevid Vincent, Am 2010-03-24 18:13:49, hacktest Du folgendes herunter: > P.S. I HATE bottom posting. WTF do I have to scroll all the way down past > hundreds of useless lines just to read a "me too" or some other comment. If > it's at the top, I can simply just keep moving from header to header in > Outlook (or your email GUI of choice). DELETE as I go. Easy. Simple. > Efficient. Hehehe... It seems there are peoles which dislike you with your idea! Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strabourg/France IRC#Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ#328449886 Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: Authorize.net test
Hello David McGlone, Am 2010-03-25 20:45:19, hacktest Du folgendes herunter: > Does anyone have any experience with authorize.net? Yes, I get currently per day arround 16.000 phishing spams or something like this... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- Linux-User #280138 with the Linux Counter, http://counter.li.org/ # Debian GNU/Linux Consultant # <http://www.tamay-dogan.net/> Michelle Konzack <http://www.can4linux.org/> Apt. 917 <http://www.flexray4linux.org/> 50, rue de Soultz Jabber linux4miche...@jabber.ccc.de 67100 Strasbourg/France IRC#Debian (irc.icq.com) Tel. DE: +49 177 9351947 ICQ#328449886 Tel. FR: +33 6 61925193 signature.pgp Description: Digital signature
[PHP] Re: replying to list (I give up)
Hello David McGlone, Am 2010-04-21 08:27:18, hacktest Du folgendes herunter: > I give up. trying to reply to messages on this list is tedious. I can't > pinpoint whether it's because the list is set up to make replies go to > the OP or the OP has his reply-to in his mail client set, or most people > are hitting the reply-to button instead of simply reply. You are using Evolution and I am wondering, why you do not use the "List-Reply Button"! Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: replying to list
Hello David McGlone, Am 2010-04-21 05:23:07, hacktest Du folgendes herunter: > > Why is the list set up to reply to the OP and not the list? Because a "Reply-To-List Button" exist in Evolution! :-D Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: replying to list
Hello Ashley Sheridan, Am 2010-04-21 12:05:30, hacktest Du folgendes herunter: > Incidentally, I saw someone mention the Evolution email client in this > thread. It's what I use, ..and the OP! > and it does have a reply to list option (but I Thanks for the confirmation... > tend to be a bit lazy and hit reply to all as the option is in a menu > and not on the toolbar :-/ ) Can you not adapt the toolbar? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: replying to list
Hello David McGlone, Am 2010-04-21 06:34:19, hacktest Du folgendes herunter: > I use Evolution, Kmail, and occasionally lookout and all of them are > decent e-mail clients. Also, of all the mailing lists I am on, this is > the only one that, when replying it goes to the OP and not the list. This is realy weird, because I know only 5 lists of 113 (where I am on) which are mangeling the Reply-To: and I can not simply reply per PM. > I'm not trying to solicit a change, I'm just wondering why this list has > this behavior, which in my opinion is tedious. I have three Reply options: R Reply to Poster G Reply to Group L Reply to List and there is nothing wrong with it... It is called VERY decent MUA. Note: I hate peoples sending me Cc: on my Cell-Phone exspecialy List-Messages which I read from my private archive. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: replying to list (I give up)
Hello Peter Lind, Am 2010-04-21 15:47:54, hacktest Du folgendes herunter: > And waste time every single time you post to the list ... why do > people become programmers/developers again? To end creating technical > solutions they can then avoid using by doing extra, pointless manual > work? Hmmm, being a Programmer/Developer since 1982 and have ever used decent tools to accomplish a task... including the right MUA which simplify the Programmers/Developers daily mailing tasks. > Anyway, if there's no chance of changing the minds of the people > administering the list, the discussion might as well end now. Why should Programmers/Developers bother with non-reliable MUAs which do not support Programmers/Developers daily mailing tasks? If YOU are a Programmer/Developer why do you bother with a non-suitable MUA? Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: replying to list (I give up)
Hello Michiel Sikma, Am 2010-04-21 16:35:50, hacktest Du folgendes herunter: > I'd like to refrain from actually passing judgement on this issue--since I > use reply-all by default I could live with both of these settings--but I'm > still curious as to why the list is set up the way it is. > > What is the advantage of sending to the OP by default rather than the list? Because DECENT MUA's have three options: R) Reply to OP G) Reply to Group L) Reply to List If you set Reply-To: to the list, you can not more send PM to the Poster and you have to edit the message. This is WHY "Reply-To-List" exist. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: replying to list (I give up)
Hello Hans Åhlin, Am 2010-04-21 16:12:06, hacktest Du folgendes herunter: > Strange I only got one, but it ma be a mail server filter For me it is only worse, because if someone respond to a message with ME in the Cc:, the Cc'ed message arrive first and will be trashed because I have setup a filter which does # Prevent duplicated messages :0Whc |formail -D 8000 .msg_id_cache :0a /dev/null # Kill unwanted CC messages on my cell-phone :0 * to_linux4miche...@tamay-dogan.net * ^List-Id:.*php-.*\.lists\.php\.net /dev/null :0 * ^List-Post:.*mailto:php-[-a-zA-Z0-9]+@ * ^List-Post:.*mailto:php-\/[-a-zA-Z0-9]+ .ML_php.${MATCH}/ Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: replying to list (I give up)
Hello David McGlone, Am 2010-04-21 09:37:48, hacktest Du folgendes herunter: > Yes. but if it was so harmful, why does the 40, 50 or so lists that I've > been on, simply let you hit the reply and it goes back to the list? Can you tell me which list these are? I assume that on most of those lists are handicaped Windows-Users which can not do better du to there cuted down ad restricting software which does not allow Users-Freedom... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: Re: replying to list (I give up)[SOLVED TO A DEGREE]
Hello Jay Blanchard, Am 2010-04-21 13:51:39, hacktest Du folgendes herunter: > [snip]tons of stuff[/snip] > > C'mon folks! You're programmers! Don't like the way your mail client > handles the list? Then write an interface (using PHP of course) that > only responds to the list when you generate a reply. My MUA "mutt" is working PERFECTLY with the PHP and other mailinglists with the same behaviour, but I have to setup special macros to ignore some stupid configured mailinglistes which insert unwanted Reply-To:. Oh, I have checked my mailinglist subsribtions and only 11 of 113 are using this stupid Reply-To: stuff... But as I already mentioned, those lists have manly Windows-Noobs which do not know better... speak, they can not use there brain and let Microsoft and Co thinking for them.. Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: Re: replying to list (I give up)[SOLVED TO A DEGREE]
Hello Karl DeSaulniers, Am 2010-04-21 15:55:41, hacktest Du folgendes herunter: > WHY would we want to do that? Much unnecessary work when an admin > could set a reply-to and all would be solved. > With all due respect, if I was going to go through all that trouble > just so I could hit reply instead of reply-all or reply-list or > reply-group, And WHY do you want to restrict my freedom to choose to which I can respond? This is something like censorship! Oh, there ARE Mail-Cients for Windows which understand reply-all and reply-list and reply-group > They just have to set the headers to point there. Much easier than > what was suggested. This is associal! > It is curious though, why the admin of the PHP lists depend on > special case scenarios such as reply-list or reply-group. > To me, thats kind of like saying you can only click buttons on our > website if you use Internet Explorer. > Everyone else has to view the source and copy the urls to navigate. On some of my pages you will be kicked off if you come in with Infernal Exploder. Hahaha! Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: Re: replying to list (I give up)
Hello Michiel Sikma, Am 2010-04-25 12:21:40, hacktest Du folgendes herunter: > Ah, you're right, I misread. But I believe all of those games except Diablo > will run under DOS as well. DOSBox can also run up to Windows 3.11. WfW 3.11 in fullscreen? Hahaha! LOL! I can imagine, my AMD Phenom Quad-Core with 16 GByte of memory and then WfW 3.11 in fullscreen in DOSBox. Would be the fastest WfW 3.11 on our shady planet... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Weird problem with is_file()
Hi, I have a code sniplet which does not work and I do not know why: 8<-- $isfile=shell_exec("ls /tmp/tdphp-vserver/SESSION_" . $_SERVER['REMOTE_ADDR'] . "_" . $_COOKIE['VSERVER_AUTHUSER'] . "_* |head -n1"); if (is_file($isfile)) { 8<-- nothing special, and the file is there, but the stuff with is_file($isfile) is not working... If I enter the file in place of $isfile, then it is working. Quoting of $isfile does not work too. What have a overseen? Oh, if you think, it is an array, no it is not, because otherwise if (is_array($isfile)) { would work. Thanks, Greetings and nice Day/Evening Michelle Konzack signature.pgp Description: Digital signature
[PHP] Re: Weird problem with is_file()
Hello Jan G.B., Am 2010-04-26 11:52:02, hacktest Du folgendes herunter: > I would recommend not to let any user input to your shell. This piece > of code is very insecure as any client may manipulate the shell > command at will. It is ony a simplified example... The original shell_exec() is more comlicate and I have no absolute pathes (they are mostly all dynamic). > You don't want people to take over your server that easily. :-) > See http://www.php.net/escapeshellcmd and alike. I know Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: Weird problem with is_file()
Hello Peter, Am 2010-04-26 09:28:28, hacktest Du folgendes herunter: > var_dump($isfile); > > Don't make assumptions of what the value is, just check it. Yes and grmpf! The filename has a space at the end but it can not removed even using var_dump(str_replace(' ', '', $isfile); if I put a '1' as search parameter all '1' are removed, but WHY can I not remove a space at the end? Even if a do a mv the_file_not_recognized the_file_not_recognized\ it is not detected... even if the var_dump() show me something like string(29) "/tmp/the_file_not_recognized " Simple to test exec("touch /tmp/the_file_not_recognized"); $FILE=shell_exec("ls /tmp/the_file_not_* |head -n1"); var_dump($FILE); echo ""; var_dump(str_replace(' ', '', $FILE); Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Re: Weird problem with is_file()
Hello Pete, Am 2010-04-26 17:04:32, hacktest Du folgendes herunter: > Is it possible that the space is a new-line (or a carriage-return) ? grmpf! -- That it was... >preg_replace('/\s+$/','',$FILE); Works now! Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature
[PHP] Object or such for building a directory tree?
Hello *, before I reinvent the wheel, I ask here, if someone know an "object" or "function" which build from an array of directories (filesystem or IMAP) a directory tree which can be opened and close? I have the need to do this for a "local and remote filesystem" and a "courier-imap tree". Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator -- # Debian GNU/Linux Consultant ## Development of Intranet and Embedded Systems with Debian GNU/Linux itsyst...@tdnet France itsyst...@tdnet UG (haftungsbeschränkt) Gesch. Michelle Konzack Gesch. Michelle Konzack Apt. 917 (homeoffice) 50, rue de Soultz Kinzigstraße 17 67100 Strasbourg/France 77694 Kehl/Germany Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil Tel: +33-9-52705884 fix <http://www.itsystems.tamay-dogan.net/> <http://www.flexray4linux.org/> <http://www.debian.tamay-dogan.net/> <http://www.can4linux.org/> Jabber linux4miche...@jabber.ccc.de ICQ#328449886 Linux-User #280138 with the Linux Counter, http://counter.li.org/ signature.pgp Description: Digital signature