Re: [PHP] SESSIONS vs. MySQL
On Fri, 2008-09-19 at 10:17 -0500, Philip Thompson wrote: Hi all. Let me start out by saying, I have STFW and read through the list archives. Now that that's out of the way. To speed up our application, we want to implement using SESSIONs in some locations. Beforehand, on every page, we would run approximately 30-40 queries just to get the page setup - user information and other stuff. Now while we can't take away all of the setup queries, we would like to reduce the startup number. Ok, so I've implemented this in several places where information basically does not change from page to page. Jumping to the point/ question... when does it become more inefficient to store lots of information in SESSION variables than to run several more queries? Note, we are actually storing sessions in the database - so a read/ write is required on each page load - it's not file sessions. Now I know this can depend on the complexity of the queries and how much data is actually stored inside the sessions... but initial thoughts? To give you a number, the strlen of the _SESSION array is 325463 - which is equivalent to the number of bytes (I think). Thanks, ~Philip Why do you have so many queries? Is there any way you could use joins to drop that number down. It might not seem like lot when only a few people are using the site, but it will start being a problem when you get more people using it. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Associative array issues with loading values after initialization
On Fri, 2008-09-19 at 13:43 -0400, Thomas Bolioli wrote: I hav ebeen able to track down that this is the part not working. It throws a parse error: PHP Parse error: syntax error, unexpected T_VARIABLE on the line where the foreach loop starts. function dropbox_from_list($list, $selected_index){ foreach ($list as $k = $v) { if (strcmp($selected_index, $k) == 0) { $select = ' SELECTED'; } else { $select = ''; } print option value='$k'$select$v/option; } } b wrote: Thomas Bolioli wrote: I should add, it is not working with this funciton, which could be the source of the issue. function dropbox_from_list($list, $selected_index){ while ($nex = next($list)) { I'd use foreach() here and avoid next(). At least, reset the array first. And maybe pass the array by reference: function dropbox_from_list($list, $selected_index) { foreach($list as $k = $v) { $k = key($nex); if (strcmp($selected_index, $k) == 0) { $select = ' SELECTED'; } else { $select = ''; } print(option value='.$k.'.$select..$nex[$k]./option); } } Maybe you should also add what it is that's not working. Thomas Bolioli wrote: The below function is not working. function crm_get_country_list(){ global $dbh; $result = mysql_query(SELECT * FROM countries ORDER BY pk_country_id ASC, $dbh) or die(mysql_error()); $country_list = array(' ' =' '); Are you starting with an empty key value so that you'll have an empty option in your select list? Why not just print an empty one? while ($row = mysql_fetch_assoc($result)){ $country_list[$row['pk_countryID']] = $row['country_name']; } return $country_list; } Start with the obvious: what does $country_list contain when it's returned? Again, some details about what you're getting would go a long way toward getting some advice. You should think about changing that SELECTED line to $select = ' selected=selected'; as the previous way is not recommended for modern code. Ash www.ashleysheridan.co.uk
Re: [PHP] how to recognize CSV file?
On Fri, 2008-09-19 at 14:24 -0500, Afan Pasalic wrote: Eric Butera wrote: On Fri, Sep 19, 2008 at 3:14 PM, Afan Pasalic [EMAIL PROTECTED] wrote: Eric Butera wrote: On Fri, Sep 19, 2008 at 2:59 PM, Afan Pasalic [EMAIL PROTECTED] wrote: hi, I have form where administrator has toupload csv file to update dome data in mysql. I was trying to validate entered file but got some crazy stuff I don't understand: for the same uploaded csv file, in different browser I'll get different results: Windows machine and IE: $_FILES['UploadedFile']['type'] = 'text/plain' Windows machine and Firefox: $_FILES['UploadedFile']['type'] = 'application/octet-stream' Windows machine and Opera: $_FILES['UploadedFile']['type'] = 'comma-separated-values' Windows machine and Chrome: $_FILES['UploadedFile']['type'] = '' (doesn't show anything! empty?!?!!??) openSuse machine and Firefox: $_FILES['UploadedFile']['type'] = 'text/csv' openSuse machine and Opera: $_FILES['UploadedFile']['type'] = 'text/comma-separated-values' openSuse machine and Konqueror: $_FILES['UploadedFile']['type'] = 'text/csv' ok. what's CORRECT way to validate uploaded file? thanks. -afan Get the mime type of the uploaded tmp file, no what the browser sends. Fatal error: Call to undefined function mime_content_type() in /srv/www/... it looks like Mimetype is not installed on my server :-) Do you have fileinfo? It's a php5 pecl extension. Aside from that I'm not really sure. This is how I always test files since browser mime type is unreliable/spoofable. Fatal error: Call to undefined function finfo_open() in /srv/www/... no luck :-) If you don't have access to the functions, you could try reading the first line of the file to determine it's in the right format. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SESSIONS vs. MySQL
At 5:00 PM -0400 9/19/08, Robert Cummings wrote: On Fri, 2008-09-19 at 21:31 +0100, Stut wrote: I can modify this: http://webbytedd.com/bb/pdf/ He said EXPENSIVE you insensitive clod! Ahh, mood swings from ink poisoning? Tedd: Charge $100 per certificate, Rob'll buy one, maybe even two!! I've managed to avoid getting the Zend certification until now despite many many people trying to convince me it's worth it. As both an employee and an employer I just don't see the value. The last practice tests I saw were primarily memory tests - that's not a useful measure in my book. I'm also in the camp of avoiding getting Zend certification. As you point out, it's merely a test on memorization of simple (and occasionally obscure) language constructs. It's hardly an example of how a person thinks, tackles problems, and can effectively develop solutions. I'm of the same notion. If my three degrees, on-line code examples, past work, willingness to show what I can do, and website aren't enough, then I'm not sure a Zend certification (or any certification for that matter) will help. From my experience, I have more than enough to open any door, the problem is finding more doors. I find it interesting that there are few programmers that can we and so many businesses have/want web sites, but I'm usually the one who's knocking on doors -- one would think it would be the other way around. For the past year, I've worked with a company who provide me jobs. They find the clients and I do the work and that's worked out very well. But last month they told me that they are not happy with their business -- too many headaches dealing with clients and they will not be looking for more clients. So, I will be pounding the streets looking for work again. I have clients looking for customers and I seem to be able to solve their problems, maybe I should hire myself? In any event, my website is going to receive a minor facelift and I'm trolling again. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SESSIONS vs. MySQL
At 9:31 PM +0100 9/19/08, Stut wrote: On 19 Sep 2008, at 21:22, Robert Cummings wrote: On Fri, 2008-09-19 at 16:15 -0400, tedd wrote: At 3:11 PM -0400 9/19/08, Eric Butera wrote: On Fri, Sep 19, 2008 at 2:50 PM, Robert Cummings [EMAIL PROTECTED] wrote: 4. lack of industry adoption There needs to be some sort of expensive test to certify one may wear the badge. Then it will have higher adoption rates. I can modify this: http://webbytedd.com/bb/pdf/ He said EXPENSIVE you insensitive clod! Ahh, mood swings from ink poisoning? Tedd: Charge $100 per certificate, Rob'll buy one, maybe even two!! I've thought about making a site where the user could enter in whatever degree they wanted (i.e, Harvard, Yale, whatever) and the site would print out the certificate for free. Then for $5.00, I would give them a one-time key to remove the VOID from the document. How's that? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SESSIONS vs. MySQL
At 4:53 PM -0400 9/19/08, Jason Pruim wrote: Time's off by an hour :) That's probably a day-light saving thing -- doesn't matter anyway. I could have my graphic designer whip something up hehee :) The problem is not designing the form, but rather programming it. Each form takes a lot of time to get each element exactly where it should be. But, anything a graphic designer can create, I can copy. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
The error message told it all. Jochem was correct albiet not in the style I prefer. I had the code in an HTML page after the header. I've been a programmer for 15 years but I'm brand new to PHP. Anyone can make a rookie mistake. Thanks everyone for the help. Everyone was partially correct in assessing the problem. Terry Eric Gorr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sep 18, 2008, at 5:52 PM, Terry J Daichendt wrote: I'm pasting this code from the example at php.net and getting these errors. Can anyone determine what I'm doing wrong? ?php // page1.php session_start(); echo 'Welcome to page #1'; $_SESSION['favcolor'] = 'green'; $_SESSION['animal'] = 'cat'; $_SESSION['time'] = time(); // Works if session cookie was accepted echo 'br /a href=page2.phppage 2/a'; // Or maybe pass along the session id, if needed echo 'br /a href=page2.php?' . SID . 'page 2/a'; ? Well, this is weird. When I copied your text and tried it myself, the error I got was: Parse error: syntax error, unexpected T_STRING in /Users/ericgorr/ Sites/page1.php on line 9 Now, of course, there is nothing visibly wrong with line 9 ($_SESSION['animal'] = 'cat';). But, when I had my text editor show invisible characters, there were some on that line and line 10. Do you have a text editor that can show invisible characters? On the Mac, the one I really like (and is free) is TextWrangler (http://www.barebones.com/products/textwrangler/ ) and has this capability. This may be part of your problem. Once I got rid of the invisible characters, the example worked without any problems. Also, are you certain there are no spaces or anything (even invisible characters) before ?php? Whenever I've gotten a similar error in the past, that was nearly always the problem. You are welcome to compress the text file and send it to me directly so I can see exactly what it contains. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to recognize CSV file?
Ashley Sheridan wrote: On Fri, 2008-09-19 at 14:24 -0500, Afan Pasalic wrote: Eric Butera wrote: On Fri, Sep 19, 2008 at 3:14 PM, Afan Pasalic [EMAIL PROTECTED] wrote: Eric Butera wrote: On Fri, Sep 19, 2008 at 2:59 PM, Afan Pasalic [EMAIL PROTECTED] wrote: hi, I have form where administrator has toupload csv file to update dome data in mysql. I was trying to validate entered file but got some crazy stuff I don't understand: for the same uploaded csv file, in different browser I'll get different results: Windows machine and IE: $_FILES['UploadedFile']['type'] = 'text/plain' Windows machine and Firefox: $_FILES['UploadedFile']['type'] = 'application/octet-stream' Windows machine and Opera: $_FILES['UploadedFile']['type'] = 'comma-separated-values' Windows machine and Chrome: $_FILES['UploadedFile']['type'] = '' (doesn't show anything! empty?!?!!??) openSuse machine and Firefox: $_FILES['UploadedFile']['type'] = 'text/csv' openSuse machine and Opera: $_FILES['UploadedFile']['type'] = 'text/comma-separated-values' openSuse machine and Konqueror: $_FILES['UploadedFile']['type'] = 'text/csv' ok. what's CORRECT way to validate uploaded file? thanks. -afan Get the mime type of the uploaded tmp file, no what the browser sends. Fatal error: Call to undefined function mime_content_type() in /srv/www/... it looks like Mimetype is not installed on my server :-) Do you have fileinfo? It's a php5 pecl extension. Aside from that I'm not really sure. This is how I always test files since browser mime type is unreliable/spoofable. Fatal error: Call to undefined function finfo_open() in /srv/www/... no luck :-) If you don't have access to the functions, you could try reading the first line of the file to determine it's in the right format. could you please be more specific? I don't remember I ever saw file type when I was opening csv or txt or doc file? -afan Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to recognize CSV file?
On Sat, Sep 20, 2008 at 10:23 AM, Afan Pasalic [EMAIL PROTECTED] wrote: Ashley Sheridan wrote: On Fri, 2008-09-19 at 14:24 -0500, Afan Pasalic wrote: Eric Butera wrote: On Fri, Sep 19, 2008 at 3:14 PM, Afan Pasalic [EMAIL PROTECTED] wrote: Eric Butera wrote: On Fri, Sep 19, 2008 at 2:59 PM, Afan Pasalic [EMAIL PROTECTED] wrote: hi, I have form where administrator has toupload csv file to update dome data in mysql. I was trying to validate entered file but got some crazy stuff I don't understand: for the same uploaded csv file, in different browser I'll get different results: Windows machine and IE: $_FILES['UploadedFile']['type'] = 'text/plain' Windows machine and Firefox: $_FILES['UploadedFile']['type'] = 'application/octet-stream' Windows machine and Opera: $_FILES['UploadedFile']['type'] = 'comma-separated-values' Windows machine and Chrome: $_FILES['UploadedFile']['type'] = '' (doesn't show anything! empty?!?!!??) openSuse machine and Firefox: $_FILES['UploadedFile']['type'] = 'text/csv' openSuse machine and Opera: $_FILES['UploadedFile']['type'] = 'text/comma-separated-values' openSuse machine and Konqueror: $_FILES['UploadedFile']['type'] = 'text/csv' ok. what's CORRECT way to validate uploaded file? thanks. -afan Get the mime type of the uploaded tmp file, no what the browser sends. Fatal error: Call to undefined function mime_content_type() in /srv/www/... it looks like Mimetype is not installed on my server :-) Do you have fileinfo? It's a php5 pecl extension. Aside from that I'm not really sure. This is how I always test files since browser mime type is unreliable/spoofable. Fatal error: Call to undefined function finfo_open() in /srv/www/... no luck :-) If you don't have access to the functions, you could try reading the first line of the file to determine it's in the right format. could you please be more specific? I don't remember I ever saw file type when I was opening csv or txt or doc file? -afan Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php You could just try using fgetcsv. If that fails then it isn't a csv file. I always use get/put csv for working with these types. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Calculation assistance.. :)
Stephen Johnson a écrit : OK.. Math is NOT my forte ... I am converting a site from ASP to PHP ... And this calc is in the ASP Code : $nMonthlyInterest = $nRate / (12 * 100) Wow, that's rather not good. Learn about http://en.wikipedia.org/wiki/Geometric_progression. Because : 12 % of 100 is 12 but if you get 1 % each month : 1 % of 100 the first month 1 % of 99 the second month etc. so it will be less than 12. -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Calculation assistance.. :)
Eric ... I LOVE YOU... Well Eric, I think you've pulled... -- Richard Heyes HTML5 Graphing for IE7, FF, Chrome, Opera and Safari: http://www.phpguru.org/RGraph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Passing variables between pages
tedd wrote: At 12:42 PM -0400 9/19/08, Dan Joseph wrote: On Fri, Sep 19, 2008 at 12:35 PM, tedd [EMAIL PROTECTED] wrote: At 12:22 PM -0400 9/19/08, Jason Pruim wrote: It's interesting that another topic (i.e. [PHP] SESSIONS vs. MySQL) is discussing the differences in storing variables in SESSIONS as compared to storing them in MySQL when using this technique would not require either. You've definitely raised an interesting topic. Question though... a system requires different levels of access to see various parts of the system. How does your method of doing things w/o sessions accomidate that? Does it use that information from the origin POST? Also, is this secure? Any loop holes? I don't see any loop holes and it's secure as any other php script. The technique holds all variables intact, including POST, GET, SESSION, et all arrays. This does work -- as shown by this: http://www.webbytedd.com/bb/tedd/index.php Here's another example: http://www.webbytedd.com/bb/php-run-php/ Note that $test is defined and populated with This is a test at the start of the parent script -- however, the contents of the variable remain regardless of which script you choose. Cheers, tedd sorry to wade in on this one but it seem's like a bit of false logic to me; and isn't actually doing anything different than standard php functionality. (includes always have access to get/post/session/server and variables defined before the script was included) For years people have simply ran a whole website through a single index.php and called the modules via include (the whole ?mod=contact era) This is exactly the same; you don't need $_SESSION's in this case because all you're doing is POST'ing the data every time.. from the source of you're demo: input type='hidden' name='var2' value='This is another string here' p input type=submit value='Click to Continue' /p Thus all we are talking about is replacing session with multiple posts to carry the data; which is a nightmare; shows up awful messages if a user clicks back in IE and asks the user to resend data in firefox where obviously they'll be like er what data did I send :o Am I missing something here..? Regards and no ill-intention meant. Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Calculation assistance.. :)
At 8:25 PM +0100 9/20/08, Richard Heyes wrote: Eric ... I LOVE YOU... Well Eric, I think you've pulled... -- Richard Heyes Oh for Goodness sake, get a room. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Passing variables between pages
At 8:31 PM +0100 9/20/08, Nathan Rixham wrote: Am I missing something here..? Yes. You are missing the point. This is exactly the same; you don't need $_SESSION's in this case because all you're doing is POST'ing the data every time.. And that's what you are missing -- it's not continued POSTing! Follow closely, http://www.webbytedd.com/bb/php-run-php/ While I'm using a Submit Post button to go from this script to the next script I am NOT sending any data via the POST. To prove it, use FF and see what's passed. All data is passed/available to the next script because the next script is an include. For example, this parent script has the variable: $test = This is a test; And the next script (either a.php, or b.php, or c.php -- your choice) simply echo's $test. Please note, the contents of the variable $test was NOT passed via a POST, but rather retained because the parent script included the next script. Do you see the difference? Here's another example presenting the same technique in a different way: http://www.webbytedd.com/bb/tedd/index.php All the variables remain intact AND there is nothing in the REQUEST, SESSION nor COOKIE arrays. I have a hard time trying to get people to understand this simple concept. It's so simple that people often overlook how powerful it is. For example, with a little forethought, I think there isn't a script I've written that I could not have used this technique and dispensed with SESSION's all together. That's pretty powerful, don't you think? Do you understand what I'm doing now? no ill-intention meant. That's Okay -- I realize you meant no ill-intent. Neither do I -- I realize that occasionally simple concepts are hard for you smarter guys to get because you have to dumb down a lot to consider what we're talking about. But I think it's an interesting concept to consider. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to detect the host (window or Linux)?
Hi, How can I detect the host is window or linux in PHP code? Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to detect the host (window or Linux)?
$win = stripos(PHP_OS, 'win') !== false ? true : false; Anderson Franco Web Developer Franco Tecnologia Bras. e Com. LTDA Phone / Fax: +55 (19) 3455 2262 Email: [EMAIL PROTECTED] MSN/GTalk: [EMAIL PROTECTED] Skype: francotecnologia On Sat, Sep 20, 2008 at 7:38 PM, hce [EMAIL PROTECTED] wrote: Hi, How can I detect the host is window or linux in PHP code? Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Accountancy for a webshop/ecommerce system
Am 2008-08-21 07:57:51, schrieb Rene Veerman: What i'm worried about is the accounting part of a webshop system. I've downloaded some accounting manuals and programs, to see 'how its done'. I've also downloaded some other webshop php apps (notably oscommerce.com) to see how they do things. OS-commerce provides very little reporting. There's no balance sheet, no statement of loss/profits, etc. I'm wondering how a webshop operator/owner would keep track of inventory and profits/losses. I have installed osCommerce om http://onlinestore.tamay-dogan.net/ and I am very disappointed from it... There are bugs which can not be solved (some boxes are without colored head but use the same function) and of course, the same problems you have encountered... Taken to the extreme, a webshop system would require accountancy reporting functionality, a general ledger, journals, etc. How much information would you provide to a webshop owner? InterShop 4 is the right thing, but I am not willing to pay arround 12.000 € for it... I think, I will take the ideas from osCommerce and build a fork from it. And of course a software which write its configs on 4 files and into the database is crap since I have set the /session/ and /cache/ directories and searched it to hell as I moved the installation from my @home server to my hosting provider... Also I find, a software which depends on a specific database is crap too since my own programs have its definitions inseperated database-db.inc and can be fully configured... And the system how to add options to a product is crap, e.g. selling a Debian install CD as ONE product and then let the customer choose which architecture... You have to add each architecture seperately... There are noch checkboxes where you can select and add it with a singel click. And of course, I hate forums... I can not access it over GSM/UMTS and osCommerce.com does not provide mailinglists... Even if it is a nice project, I say: Forget it! -- At least in this state. 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] Re: Accountancy for a webshop/ecommerce system
Am 2008-08-21 08:54:50, schrieb Per Jessen: I don't know much about e.g. osCommerce, but I would expect a webshop system to only provide the input for a general ledger- and/or inventory-system. Just like a human shop-assistant or cashier does when he/she operates the check-out register. Taken to the extreme, a webshop system would require accountancy reporting functionality, a general ledger, journals, etc. This sounds like a severe case of scope-creep. I don't think any of that belongs in a webshop system, just like a webshop doesn't belong in a general ledger system. OK, but osCommerce does not provide anything for it... I have already started to code my own OnlineStore which of course support PostgreSQL and took the ideas from osCommerce... Currently Iam writing my ledger and of course PHP5 based, so I can make all actions in my Intranet and of course worldwide... If this is done, I write the onlineStore stuff... which must be more flexibel as osCommerce since there are to many limitations (try only to change the design collors or such... you get the hell with ist!) And without working mailingliste, a software is only half usable... 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] Problem with sorting
* 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, I have a Database of µChips and I want to sort it case insensitive and in numerical order in the same time. Since the name of the µChips are mostly [:alpha:][:num:]* I am running into problems since the first one can have 0-5 characters. So, what I need is to get the substring (leading [:alpha:]) unify and sort it and not use a loop over it, and get all chips from the category. Now from each category cut the [:alpha:], the sort numerical and after this re-add the cuted [:alpha:]. H, first I am searching a solution the get the Categories, which mean, the leading [:alpha:] AND, if numerical categories exist, there first number. The listing should be something like 3 8 AW AT DS ICL LM MAX W Does somone has a solution for it? (I do not like to reinvent the wheel) 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] Re: render html
Am 2008-08-25 23:24:41, schrieb VamVan: hello, i have html tags in the bod of text like: $body = hellobr/ulier/ulhellohello; ^ Should be br / print $body; Some how it does not render html properly in a html page , what might be going wrong? br still get displayed as br instead of line breaks. How can I render my HTML properly. Please note that it happens in my cms. Do you have the correct DOCTYPE definition? E.g.: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; THIS MUST BE THE VERY FIRST LINE OF YOUR HTML FILE. 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] Re: Large/unreliable file uploading over HTTP
Am 2008-09-08 09:49:08, schrieb Craige Leeder: The only concern I would have is that you are using a third party software/applet to do these uploads. I'm not a fan of MAKING users have a piece of software enabled to allow them basic web-standard ^^ functionality on a site. ^ How does this fit with the Subject:? LARGE fileuploads are not realy a basic feature for a website... 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] Re: Large/unreliable file uploading over HTTP
Am 2008-09-08 11:47:34, schrieb Jason Pruim: Hey Todd, This sounds exactly like what my day job needs... I just took over the website, and currently they have it where people have to ftp the file into their server to get large files, and with them being a print shop... A couple gigs per job is not unheard of. If there is anything that I can do to help get that finished up let me know! :) I am using a PHP5 Script which the $USER download and execute on her/his machine... It works under Linux/BSD/Windows using php-cli. But my tool is very specifc to my PostgreSQL. My question is: Where is the problem coding a script which: 1) get the md5sum of the original file 2) split the original file into chunks of e.g. 1 MByte 3) get the md5sums of all chunks 4) send the index file with all chunks and md5sums to the server 5) send request for chunkupload and $SERVER answer with a) yes, send it b) no, I have it already send next one 6) If all chunks are complete, Script on Server put all chunks together and check md5sum 7) $SERVER send ACK or NACK back. If you use a session_cache or something like this, such uploads can be done over several days with several interuptions... It is realy easy to code... Need only the SERVER side script (maybe with Webserver; I have a bad experience with TCP connections from php5) and the CLIENT side script. 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] Re: Large/unreliable file uploading over HTTP
Hi Todd, Am 2008-09-08 11:11:45, schrieb Boyd, Todd M.: I'd be more than happy to spread the source around. Files of any size are not a problem... the Applet breaks a file into (I believe) 512kb chunks for transfer. The first POST to PHP tells PHP how many chunks and some other identifying information. Each POST after that is a 512k chunk of the file. These files are then strung back together after the last chunk is uploaded. Oops, this is what I do since 2 years, but using php-cli interface on the CLIENT side... I probably need to do some hash checking to ensure that files have, in fact, uploaded (and uploaded completely)... but for testing on my local machine, I didn't bother (yet). The problem is that a few bytes (depending on the size of the file--and therefore, the number of chunks) are missing from the uploaded file. This makes MP3s sound like they were recorded underwater, and text files miss a letter every now and again. I use: exec(split --suffix-length=4 --numeric-suffixes --bytes=${SIZE} ${FILE} UPLOAD_0); exec(md5sum UPLOAD_0* UPLOAD_md5sums); ... /* upload a file and receive a cookie */ exec(wget --save-cookies=UPLOAD_cookies --http-user=${user} --http-password=${password} --post-file=UPLOAD_0${CHUNK} ${URL}); /* use the cookie to get the status of the next file */ exec(wget --load-cookies=UPLOAD_cookies --http-user=${user} --http-password=${password} ${URL}); ... 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] Re: Google Chrome
Am 2008-09-04 19:35:40, schrieb Bastien Koert: DDoS is a Distributed Denial of Service attack where a server is attacked via multiple computers (like a bot net) at the same time AFAIK And what is, if you access a webpage which is CGI/php5 driven and the webPAGE is in the size of the Brockhaus? It has happen to me when I have coded a small error im my new php5 driven website and it outputed a whole table of my PostgreSQL database and the HTML produced was growing arround 120 MByte... Since I was using my IBM ThibkPad 570 (P2/366/192MB) my Lappi was not more responsive and the kernel kicked on app after one and then Oops... So a client can even have a DDoS too. 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] Re: geolocation
Am 2008-09-02 15:05:05, schrieb clive: Hi, Have any developed a site that determines a users location based on IP address, Im not looking for accurate locations, just what country they are coming from. I know I could possible get a list of IP blocks allocated to countries or make use of some web server to get the information, I just want to know how others are doing this? hüstel... This does not work for my (136) Servers and Dial-Up, DSL, Wifi-APs since I have 64 blocks of 256 IPs which I use between Iran, Turkey, Germany, france, Morocco, Algeria and other countries... Same for Compuserve or ALOL. The required IPs are allocated dynamicaly... 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] Re: geolocation
Am 2008-09-02 09:08:50, schrieb Schiz0: I use the GeoIP libraries. They work perfectly. YOu just need to install the pecl-GeoIP package, then make sure you keep the binary database up-to-date (from www.maxmind.com). http://php.net/geoip How does ths work with Compuserver or ALOL or even my IP's? We are using dynamicaly allocated IPs arround teh world... AOL in Germany is using IPs from the USA (ARIN) I use IPs from Germany (RIPE) but they are dynamicaly allocated in Iran, Turkey, Gemany or other Countries where I have POPs 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] Re: Confused
Am 2008-09-02 14:34:23, schrieb Robert Cummings: So you're script runs long enough for you to check? I think he doe not get any connections because ifx_connect(..., $user, $pass) REQUIRE ALL parameters and if $_SERVER['HTTP_USER'] is empty... If he use ifx_connect(..., $user, $pass) then it is passed as EMPTY string to the database and the database connection is there but terminated because an EMPTY user string. 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] Re: Header() - POST
Hi Stut, Am 2008-09-05 17:11:58, schrieb Stut: You're trying to post to the browser which won't know how to handle it. The header() function is modifying the response headers that are being sent back to the browser, they do not create a new request. If you want to do a new request I suggest looking at curl. If you actually want the browser to make the new request the only way is to return a hidden form and auto-submit it with JS. However, as someone else pointed out if that second request is coming back to the same server there probably isn't any need for a second request at all. Why using JS? echo meta http-equiv=\refresh\ content=\0; . $FULL_URL \; would do the trick... 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] Re: Confused
You have: ?php echo substr($_SERVER['AUTH_USER'], 13); ? and how do you want to get something? The subscring is displayed after the 13th character and if the AUTH_USER is shorter... Also you have: if (!$connect_id = ifx_connect([EMAIL PROTECTED], $user, $pass)) { // THE ACTUAL CONNECTION echo Unable to connect to Informix Database\n; // DISPLAY IF CONNECTION FAILS exit(); } and do you have tried: $connect_id = ifx_connect([EMAIL PROTECTED], $user, $pass)) || die(Unable to connect to Informix Database.); IF $user is the same as $_SERVER[AUTH_USER] and it is empty, you not connect since ifx_connect() exits befor it is started since you need all parameters. So you have to use: $connect_id = ifx_connect([EMAIL PROTECTED], $user, $pass)) || die(Unable to connect to Informix Database.); which pass at least TWO empty $user and $pass strings to the functions. 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] Re: Sending username/password
Am 2008-09-05 17:51:03, schrieb Robert Cummings: On Fri, 2008-09-05 at 17:45 -0400, Robert Cummings wrote: On Fri, 2008-09-05 at 15:39 -0500, Jay Moore wrote: That'll teach you to use Google Chrome. ;) Pshaw. IE5 4 lyfe, yo. I have IE5 running in a vmware appliance. I check sites in it once in a while for kicks :) I also have IE 3 running and Netscape 4. It's amazing how ugly the new tech looks when you go retro... though still looks good if you go retro to wget ;) Err, I meant retro to links or lynx. I prefer Mozilla 1.15 (1995) on my nifty WfW 3.11 box. (UM8810P-AIO, Am5x86-133, 4 x 16 MByte, Conner CFS1275A) Hell, this pig want to die... 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] Re: translations for PHP app
Am 2008-09-08 14:45:05, schrieb Per Jessen: Shawn McKenzie wrote: I need translations from English into the most common languages of my users: Spanish, French, Italian, Chinese, Indian, Russian. Also, anyone having expertise in other languages, I would love to have them, please contact me. Maybe it's worth trying http://www.elance.com ? (btw, Indian covers several different languages). Serveral is realy GOOD! Hindi ist standard and then you have 26 others. (Currently I am learning Hindi since I have Sik-Friends) 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] Re: Shopping Carts/Checkout Software
Am 2008-09-08 11:17:16, schrieb Dan Joseph: Check out osCommerce (oscommerce.com), its open source, written in php, uses mysql, and you should be able to hook into it pretty easily like you want. I have installed osCommerce and it is crap. Since there is NO mailinglist and I can not access the crappy forums I can not submit a singel bugreport o one of the arround 160 bug I found. osCommerce is 100% based on HTML tables which are the last crap specialy for handicaped peoples. osCommerce double my works, since I need a ledger and then have to copy all stuff into osCommerce. Design can not be changed (colors, look and feel) since it is HTML table fixed. Also the boxes left and in the middle have broken headings (Titles) which I have tried to solv, but since the sourcecode is not realy clear it is hopeless to do something with it. Also it does not fit the need for european law in sales... since if you sale for the netto price, you must indicate to each product the Sales Tax in % for the country, where the OnlineStore is located. If I sell a product, e.g, Debian CD's I can set a flavour, speak, the customer select Debian CD and then later in the schoping cart, he/she can choose which architecture for example. So I have added +3Euro for rarely used architecture because I have downloaded the CD/DVD images from the Debian Servers and stock them on my fileserver which COST money but now, I can not add a note, to inform the users WHY it cost 3 Euro more and thats not all, I like to see those +3Euro as seperated item with an explanation. Also if customers want to donate to Debian/SPI and such, I like to see a donate item and for the previosly thing, I like to see, that for example the additional fee of +3Euro is donate to the Debian Project/SPI... And there are more things If I setup an Item and it is running out of stock, I like to give the customers the possibilitiy to reserve an item if I receive a new stock. User should made partial payments for such case. However, I can hack down arround 200 kByte of text here about laking features but it is easier, if I take the idea of osCommerce and code my own OnlineStore. Oh yes, before I forget it, osCommerce is fixed to use mySQL which is crap. Good software should never relay on a singel database. My Ledger and OnlineStore will definitive havve support for PostgreSQL and if someone has better knowledge about mySQL as me, he/she can take the template with the skeleton of the functions and fill it with the appropriated mySQL command/Functions or even Microsoft SQL or Oracle if you feel happier with it. Note: A test installation is on http://onlinestore.tamay-dogan.net/ and will be removed in some days since I can not see it anymore. 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] Re: Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2
Am 2008-09-14 17:09:53, schrieb Ashley Sheridan: on earth anyone is going to give Debian to a Linux newbie, and if they do they should be taken out and shot! If I find you I will kill you!!! I am Debian GNU/Linux Consultant for many years and even Newbies running here Debian... It just works... if you do not use the bleading edge Hardware... This year I will pass my 3000th Debian installation and I would not consider installin another Distribution @freinds or customers... OK, currently I am arghhh poking arround with Fedora since oracle want run on Debian... And a customer IS FORCED to use a software which support ONLY Oracle... Hell, for the price of this Software AND Oracle (1.780.000 Euro), I can engage a whole team to build a custom software based on GNU/Linux since from the client side it is egal, what you run on the 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 # 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: Shopping Carts/Checkout Software
Salut Charlene, Am 2008-09-08 11:03:07, schrieb Charlene: My boss is a little biased against it. We converted a client from it a couple of years ago. The replacement wasn't much better. I don't know what version they were using of osCommerce, but the credit card numbers were being stored in plain text in the db. While we were in the process of converting but after taking over their hosting and we had to quick get them to sign an agreement that we weren't responsible for credit card information being stolen while they were using the old system. If you know of a good review for osCommerce I can use to convince my boss it is very much improved in the last 3 years, I'd appreciate it. Charlene Simply forget osCommerce, I have installed it for testing on http://onlinestore.tamay-dogan.net/ and gaved up... To many flaws with it you can not simple hook your own Ledger into it and you have to rewrite the whole pig... Currently I am writing a more or less complex ledger where I can enter all buy/sales, rebats and more. If this ledger is done, I continue to work on my OnlineStore which is based on the ideas of osCommerce but does not use crappy HTML tables. I am working entirely with CSS and HTML base templates which can be entirely customized to ANY needs... Note: I have checked over 30 different OnlineShops and there are only Intershop and a second one which would fit my needs, but I am not willing to pay 6000-12000 Euro to sell arround 200 products. 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] Re: The Best PHP Editor.
Am 2008-09-10 20:21:29, schrieb jmatt: Hi, I was using NVU to edit PHP but when I upload the index.php file back there will always be a slight error in disorientation. Example using NVU I edited the text just a bit then bam..The webpage became really funny What is the best to edit my PHP file? I use mc (Midnight Commander) since I can edit the files over fish or ftp online. Also I have syntax high-lightening and more... ANd the best, it works on the console... If X crashs, you can continue updating your website... ;-) 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] Re: Shopping Carts/Checkout Software
Am 2008-09-08 15:14:23, schrieb Micah Gersten: ZenCart Reasons: PHP-based Open Source lots if plugins Take a look at this: http://en.wikipedia.org/wiki/Zen_Cart Sorry, but I can read the same stuff about osCommerce which is crap and I get the hell with Abmahn Anwälten if I try to get it in real online. osCommerce AND ZenCart is not suitable for European LAW!!! 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] Re: Thank you...
Hello Aschwin, Am 2008-09-11 15:27:38, schrieb Aschwin Wesselius: Hi, I'm not an American (nor I ever will be), but GW declared the War himself, so he started it. There's no defense if you start a war and start attacking another country on behalf of it's citizens. What these called 'terrorists' was not on behalf on any countries authorities. BTW, I still think 9/11 is inflicted by the government of the U.S. of A. themselves, because a lot points towards their involvement and none points to anyone like Bin Laden.. Or try to anwser at least some of these questions: http://www.rense.com/general24/t500.htm I know all the Rense stuff and I have a list of over 2000 Websites about the 9/11 lie. I am owning Satelit Photos (from UNOSAT) of Pensilvania and the Pentagon which show, that there was NO attentat... not even Airplain wrecks... If you want to get free from your government, check out these pages and at least know your rights: http://www.thinkfree.ca/ http://spiritualeconomicsnow.net/ I was kicked of my Service (I was colonel) from the French Army (DGSE) on 2007-07-31 since I do not agree with Sarcozy and his politic of terror. In 2008-01-01 my BioFuel Micro-Refinery in Marrakech/Morocco was destructed by 3 bombs placed by the french DST and they immediatly claimed it was an attentat of Maghrebien El Quaida terroists... I have the ORIGINAL videos of 8 surveillance cameras which show the 4 men which have killed my girlfrind with one of the three bombs. Why? France is currently investing very much mone into BioFuel and they need it CHEAP! In Europe you can get 700 liter Rape-Oil from 1 ha Rape. In Morocco arround 450 liter. In Germany you can buy 10 liter for 13 Euro incl. VAT and Farmers earn abouth 240 Euro/ha. I have payed 60 Euro/ha in Morocco but France pay only 20 Euro... So in general, it is the same as the USA doing it with Iraq... Realy, I HAT this world while I am siting alone @home because my four daughters (19y, 16y, 12y and 7y) went killed in October 2007 in Casablanca... The Enquet was closed from one day to another... I am slightly sure, it has something to do with the american military in Morocco since Chantale (my oldest) was in the morocain Army and the told me wired things about this US military base in the near of Rabbat... 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] Re: Thank you...
Am 2008-09-11 09:18:36, schrieb Jason Pruim: Never said they did... It's just today I wanted to say thank you to everyone that defends their country Which include the Garde Republican of Iraq with there fight against american Invaders! Time for me to go back to Iran... 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] Re: Browser could not get mp3 files from http site
Am 2008-09-12 18:14:23, schrieb hce: Hi, I have a php file audio.php to send mp3 file audio.mp3 to browsers, the browser needs following html code to play mp3 file. I thought it should work if I put the the audio.mp3 file in the same localtion with the http://www.myweb.com/audio.php. But the browser could not get the audio.mp3. I guess something is missing here, please correct me. embed target=audio.mp3 Hey, what are you blubbering here? It is: embed src=audio.mp3 width=320 height=240 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] Re: Browser could not get mp3 files from http site
Am 2008-09-13 00:22:59, schrieb Ashley Sheridan: As far as I'm aware, the embed tag is not supported in any HTML standard, and as such, it's a little hit and miss. Depending on what you want to achieve, you should look towards the object tag instead: http://joliclic.free.fr/html/object-tag/en/ It is a Netscape/Mozilla Extension: 8-- Multimedia (Netscape) embed src=URI width=Breite height=Höhe Gehört nicht zum HTML-Standard! Für URI eine Web-Adresse oder ein Ziel mit oder ohne Pfad der gewünschten Datei angeben, die angezeigt werden soll. Für Breite und Höhe eine Zahl wie z.B. 100 für Pixel angeben, oder einen Prozentwert wie z.B. 60% für Größe in Bezug auf Umgebung. Seite Beschreibung 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 # 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: Browser could not get mp3 files from http site
Am 2008-09-14 13:54:01, schrieb hce: I've tried the object tag as Ash suggested, the object tag crashed firefox): (1) If I open following audio.html directly from Open File file:///home/webserver/audio.html, the embed tag works just fine, the audio can play. The /home/webserver is the directory where all applications audio.php and audio.mp3 are stored. (2) If I open from http://www.myweb.com/audio.php, the audio.mp3 does not download to firefox. Nothing is played. html embed src=audio.mp3 autostart=1/embed /html It should be: html embed src=audio.mp3 / /html The embed tag is ONLY working on Netscape 2-7 and for Mozilla but NOT Firefox, Seamonkey, Iceape and such... 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
Re: [PHP] Re: Thank you...
Look... Spam the list, but PLEASE do NOT open up this thread again we all let it rest 3 weeks ago. -- -Dan Joseph www.canishosting.com - Plans start @ $1.99/month. Build a man a fire, and he will be warm for the rest of the day. Light a man on fire, and will be warm for the rest of his life.
[PHP] Re: RE: Sale 79% OFF !!!
Am 2008-08-21 15:12:07, schrieb Per Jessen: Ashley Sheridan wrote: And do they really expect it to work?! Yes, and it does. Even for women? :-P 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
Re: [PHP] Re: Re: Why MS Won't Retire Browsers -- was: Interntet Explorer 8 beater 2
On Sat, 2008-09-20 at 03:30 +0200, Michelle Konzack wrote: Am 2008-09-14 17:09:53, schrieb Ashley Sheridan: on earth anyone is going to give Debian to a Linux newbie, and if they do they should be taken out and shot! If I find you I will kill you!!! I am Debian GNU/Linux Consultant for many years and even Newbies running here Debian... It just works... if you do not use the bleading edge Hardware... This year I will pass my 3000th Debian installation and I would not consider installin another Distribution @freinds or customers... OK, currently I am arghhh poking arround with Fedora since oracle want run on Debian... And a customer IS FORCED to use a software which support ONLY Oracle... Hell, for the price of this Software AND Oracle (1.780.000 Euro), I can engage a whole team to build a custom software based on GNU/Linux since from the client side it is egal, what you run on the servers... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant What I was getting at was not that Debian was hard to use, but harder to install than ones like Suse or Ubuntu. I understand what you mean about being forced into specific software though. For some reason the company I work for was advised ages ago that IIS, MSSQL and ColdFusion was the combination to use, and now we have a load of legacy sites that we have to maintain. This combo is just not good for websites, and to do anything useful with CF you have to buy loads of addons. :( Ash www.ashleysheridan.co.uk
Re: [PHP] Re: Shopping Carts/Checkout Software
On Sat, 2008-09-20 at 04:30 +0200, Michelle Konzack wrote: Design can not be changed (colors, look and feel) since it is HTML table fixed. Also the boxes left and in the middle have broken headings (Titles) which I have tried to solv, but since the sourcecode is not realy clear it is hopeless to do something with it. I have to disagree here. Although it uses tables for layout, it can be changed quite a bit by going into the code that makes up the pages. I had to do this for a previous site I worked on which used OSCommerce. As well as changing the whole design, I had to add loads of functionality to it on the product display area. It took quite a while, as the system is not intuitive, but it is possible. I do know what you mean about the source code though, it took me a long time to get to grips with it in the end! Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Browser could not get mp3 files from http site
On Sat, Sep 20, 2008 at 1:29 PM, Michelle Konzack [EMAIL PROTECTED] wrote: Am 2008-09-12 18:14:23, schrieb hce: Hi, I have a php file audio.php to send mp3 file audio.mp3 to browsers, the browser needs following html code to play mp3 file. I thought it should work if I put the the audio.mp3 file in the same localtion with the http://www.myweb.com/audio.php. But the browser could not get the audio.mp3. I guess something is missing here, please correct me. embed target=audio.mp3 Hey, what are you blubbering here? It is: embed src=audio.mp3 width=320 height=240 Are you sure you can make following my original code work to play the mp3 automatically in firefox or any other browsers? html embed src=audio.mp3 autostart=1/embed /html BTW, I also tried to change object type=audio/x-mpeg ., did not work either. Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: The Best PHP Editor.
On Sat, 2008-09-20 at 04:52 +0200, Michelle Konzack wrote: What is the best to edit my PHP file? Recently I've been doing quick updates in vim but I designed my friends DJ website in Geany and Quantum. Geany is really quite good. You'll need GTK libraries, it's a Gnome program. -- Michael S. Dunsavage -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error message
Terry J Daichendt wrote: The error message told it all. Jochem was correct albiet not in the style I prefer. I had the code in an HTML page after the header. I've been a programmer for 15 years but I'm brand new to PHP. Anyone can make a rookie mistake. Thanks everyone for the help. Everyone was partially correct in assessing the problem. Terry Eric Gorr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sep 18, 2008, at 5:52 PM, Terry J Daichendt wrote: I'm pasting this code from the example at php.net and getting these errors. Can anyone determine what I'm doing wrong? ?php // page1.php session_start(); echo 'Welcome to page #1'; $_SESSION['favcolor'] = 'green'; $_SESSION['animal'] = 'cat'; $_SESSION['time'] = time(); // Works if session cookie was accepted echo 'br /a href=page2.phppage 2/a'; // Or maybe pass along the session id, if needed echo 'br /a href=page2.php?' . SID . 'page 2/a'; ? Well, this is weird. When I copied your text and tried it myself, the error I got was: Parse error: syntax error, unexpected T_STRING in /Users/ericgorr/ Sites/page1.php on line 9 Now, of course, there is nothing visibly wrong with line 9 ($_SESSION['animal'] = 'cat';). But, when I had my text editor show invisible characters, there were some on that line and line 10. Do you have a text editor that can show invisible characters? On the Mac, the one I really like (and is free) is TextWrangler (http://www.barebones.com/products/textwrangler/ ) and has this capability. This may be part of your problem. Once I got rid of the invisible characters, the example worked without any problems. Also, are you certain there are no spaces or anything (even invisible characters) before ?php? Whenever I've gotten a similar error in the past, that was nearly always the problem. You are welcome to compress the text file and send it to me directly so I can see exactly what it contains. Since you're a PHP rookie, to sum it up: there can not be any output before you start a session. When PHP interprets a file (include or otherwise) it considers anything before ?php as HTML, so it outputs it as HTML (newlines, spaces, whatever). So if you have whitespace before the ?php, then the PHP interpreter outputs it, thus the output before the session_start() error. -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php