php-general Digest 23 Jun 2008 06:40:58 -0000 Issue 5529
php-general Digest 23 Jun 2008 06:40:58 - Issue 5529 Topics (messages 275786 through 275793): Re: How to make a Auto View and a Download Link for PDF? 275786 by: Nitsan Bin-Nun Re: (*OT) What we are going to do about those OT's? 275787 by: Colin Guthrie 275788 by: tedd 275789 by: Colin Guthrie Re: 5.3 Timeline and Features(true anon functions? shorter array syntax?) 275790 by: Chris escape character in query string 275791 by: joaquinbordado Variables in forms 275792 by: Ron Piggott 275793 by: Jim Lucas Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- ---BeginMessage--- Oops -- Forwarded message -- From: Nitsan Bin-Nun [EMAIL PROTECTED] Date: 21 Jun 2008 19:23 Subject: Re: [PHP] How to make a Auto View and a Download Link for PDF? To: Michelle Konzack [EMAIL PROTECTED] I am not 100 percent sure that i have understood your idea, but if i did you can place the PDF for online view with content-disposition header* ** Content-Disposition: inline; filename=pdf1.pdf * replace the *inline* with *attachment* and you get the save as dialog On 21/06/2008, Michelle Konzack [EMAIL PROTECTED] wrote: * 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 generate PDFs on the fly and I like to setup TWO links on the HTML/PHP page for the SAME PDF: 1) View 2) Download I have seen this on other Websites, but can not figure out HOW this was done. 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 # 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) ---End Message--- ---BeginMessage--- Daniel Brown wrote: Hey, Col. Thought you were dead. ;-P Not dead, just buried... :p But this reminds me of an idea I had a while back. As a developer working with a lot of open source projects etc, what would happen if I did die? I'd want to let all the people I deal with in the online world that I've died and that the chances of me fixing bugs/patching things are relatively slim. I heard of a service whereby you could send messages to people after you die. You write a special passcode for the service and instruct (in your Will) your executor to process it which then causes various messages to be sent (to loved ones, enemies etc.). I wonder if something similar should be done for mailing lists and such like? Anyway, I think you'll agree that I've managed to steer this thread off-topic now... ;) Col ---End Message--- ---BeginMessage--- At 10:02 PM +0100 6/22/08, Colin Guthrie wrote: But this reminds me of an idea I had a while back. As a developer working with a lot of open source projects etc, what would happen if I did die? We probably would have a hell of a time trying to get to finish it. :-) Seriously, look at Key Man Insurance for projects. In the event of your death, there's enough money to pay someone to take over the project. I've never had to use it myself. But I have carried it. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com ---End Message--- ---BeginMessage--- tedd wrote: At 10:02 PM +0100 6/22/08, Colin Guthrie wrote: But this reminds me of an idea I had a while back. As a developer working with a lot of open source projects etc, what would happen if I did die? We probably would have a hell of a time trying to get to finish it. :-) The testing cycle could result in a few issues :) Seriously, look at Key Man Insurance for projects. In the event of your death, there's enough money to pay someone to take over the project. I've never had to use it myself. But I have carried it. :) It's not really about the project etc. it's more about, h, etiquette. I'd like people to know if I've shuffled of this mortal coil so they can all write nice things about me on their blogs etc. In this modern age I find myself with several associates, colleagues and friends that I've not actually met! While a in a regular, old fashioned circle of friends, word will get out when someone starts pushing up the daisies, the same cannot always be true
Re: [PHP] Variables in forms
Ron Piggott wrote: I am writing a form right now. I would like to make the checkbox an array variable. The first part of the array is the component reference, the second part is the package reference. What name would you assign to it that I could use in processing the form in the PHP script this posts to? Ron tr td valign=topfont face=times new romancenterChildren's Activities/center/td td valign=topfont face=times new romancenterChild's ABC's/center/td tdcenterinput type=checkbox name=component_1_package_1/center/td tdcenterinput type=checkbox name=component_1_package_2/center/td /tr In your form, do this input type=checkbox name=components[1][1] input type=checkbox name=components[1][2] Then in PHP do this. This is if the form was sent via POST ?php $components = your_cleaning_function($_POST['components']); foreach ( $components AS $component_id = $packages ) { foreach ( $packages AS $package_id = $value ) { // At this point, the only way you would get here is if // a person was to place a check mark in the check box // So, one would assume that this component/package // combo was infact checked. } } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] escape character in query string
%20 -Original Message- From: joaquinbordado [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 3:35 AM To: php-general@lists.php.net Subject: [SPAM] [PHP] escape character in query string Importance: Low would someone happen to know the escape character for query string? here is my querysting my.php?message=Hello%PHP%0AHow%was%your%day? the output should be Hello PHP How was your day? -- View this message in context: http://www.nabble.com/escape-character-in-query-string-tp18061596p180615 96.html Sent from the PHP - General mailing list archive at Nabble.com. -- 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
[PHP] class as default property
Hey all, I had a quick question. How come I can do this: ?php class Foo { } class Bar { public $f = 'SomeFoo'; } ? But this does not work: ?php class Foo { } class Bar { public $f = new Foo(); } ? *(Parse error: syntax error, unexpected T_NEW in test.php on line 8)* ** Thanks! (I'm running on the 5.3 dev branch)
Re: [PHP] class as default property
On 23 Jun 2008, at 09:36, Osman A. Osman (عثمان) wrote: I had a quick question. How come I can do this: ?php class Foo { } class Bar { public $f = 'SomeFoo'; } ? But this does not work: ?php class Foo { } class Bar { public $f = new Foo(); } ? *(Parse error: syntax error, unexpected T_NEW in test.php on line 8)* ** Those assignments are evaluated at compile-time when no code can be executed. As such it is only possible to set them to literal values. If you need to set the default value of member variables to new objects the place to do it is the constructor. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] class as default property
You can use a contructor in this case ?php class Foo { } class Bar { function __construct() { public $f = 'SomeFoo'; } } ? But this does not work: ?php class Foo { } class Bar { function __construct() { public $f = new Foo(); } } ? Chetan Dattaram Rane | Software Engineer | Persistent Systems [EMAIL PROTECTED] | Cell: +91 94033 66714 | Tel: +91 (0832) 30 79014 Innovation in software product design, development and delivery- www.persistentsys.com -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 2:21 PM To: Osman A. Osman (عثمان) Cc: php-general@lists.php.net Subject: Re: [PHP] class as default property On 23 Jun 2008, at 09:36, Osman A. Osman (عثمان) wrote: I had a quick question. How come I can do this: ?php class Foo { } class Bar { public $f = 'SomeFoo'; } ? But this does not work: ?php class Foo { } class Bar { public $f = new Foo(); } ? *(Parse error: syntax error, unexpected T_NEW in test.php on line 8)* ** Those assignments are evaluated at compile-time when no code can be executed. As such it is only possible to set them to literal values. If you need to set the default value of member variables to new objects the place to do it is the constructor. -Stut -- http://stut.net/ -- 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] escape character in query string
for a space I belive a plus sign would work + try the urlencode function it would make it much easier. /James Dempster On Mon, Jun 23, 2008 at 3:34 AM, joaquinbordado [EMAIL PROTECTED] wrote: would someone happen to know the escape character for query string? here is my querysting my.php?message=Hello%PHP%0AHow%was%your%day? the output should be Hello PHP How was your day? -- View this message in context: http://www.nabble.com/escape-character-in-query-string-tp18061596p18061596.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] run php file in browser with exec command or any other command
Hello Friends, I have one php file in this file i have just use mail function to send the email for testing. In other php file i have used exec('/usr/bin/php -f filepath/filename.php'); and when i run the second file which contains exec command. But i do not get any email. So it is not working with browser. When i run this command in SSH it is working fine and i got the email. So i am doing wrong ? if yes please tell me how can i run that file with browser. Thanks, Javed -- View this message in context: http://www.nabble.com/run-php-file-in-browser-with-exec-command-or-any-other-command-tp18066201p18066201.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Variables in forms
Jim what you sent is very helpful. I had an error message when I submitted the form with a POST your_cleaning_function gave me this error: Fatal error: Call to undefined function: your_cleaning_function() I am trying to save the ones that were checked to a mySQL table and then notify the user the database was updated. The first thing that happens is the code you gave me below. How do I resolve this error? I get the concept of functions, but this isn't an area of PHP that I have used before. Ron On Sun, 2008-06-22 at 23:40 -0700, Jim Lucas wrote: Ron Piggott wrote: I am writing a form right now. I would like to make the checkbox an array variable. The first part of the array is the component reference, the second part is the package reference. What name would you assign to it that I could use in processing the form in the PHP script this posts to? Ron tr td valign=topfont face=times new romancenterChildren's Activities/center/td td valign=topfont face=times new romancenterChild's ABC's/center/td tdcenterinput type=checkbox name=component_1_package_1/center/td tdcenterinput type=checkbox name=component_1_package_2/center/td /tr In your form, do this input type=checkbox name=components[1][1] input type=checkbox name=components[1][2] Then in PHP do this. This is if the form was sent via POST ?php $components = your_cleaning_function($_POST['components']); foreach ( $components AS $component_id = $packages ) { foreach ( $packages AS $package_id = $value ) { // At this point, the only way you would get here is if // a person was to place a check mark in the check box // So, one would assume that this component/package // combo was infact checked. } } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Variables in forms
Can you send us some of the code so we would be able to help you? On 23/06/2008, Ron Piggott [EMAIL PROTECTED] wrote: Jim what you sent is very helpful. I had an error message when I submitted the form with a POST your_cleaning_function gave me this error: Fatal error: Call to undefined function: your_cleaning_function() I am trying to save the ones that were checked to a mySQL table and then notify the user the database was updated. The first thing that happens is the code you gave me below. How do I resolve this error? I get the concept of functions, but this isn't an area of PHP that I have used before. Ron On Sun, 2008-06-22 at 23:40 -0700, Jim Lucas wrote: Ron Piggott wrote: I am writing a form right now. I would like to make the checkbox an array variable. The first part of the array is the component reference, the second part is the package reference. What name would you assign to it that I could use in processing the form in the PHP script this posts to? Ron tr td valign=topfont face=times new romancenterChildren's Activities/center/td td valign=topfont face=times new romancenterChild's ABC's/center/td tdcenterinput type=checkbox name=component_1_package_1/center/td tdcenterinput type=checkbox name=component_1_package_2/center/td /tr In your form, do this input type=checkbox name=components[1][1] input type=checkbox name=components[1][2] Then in PHP do this. This is if the form was sent via POST ?php $components = your_cleaning_function($_POST['components']); foreach ( $components AS $component_id = $packages ) { foreach ( $packages AS $package_id = $value ) { // At this point, the only way you would get here is if // a person was to place a check mark in the check box // So, one would assume that this component/package // combo was infact checked. } } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [gnupg] HOW to check signed files from withing PHP
Michelle Konzack wrote: Currently I do things like: [ '/var/www/debian.devel/htdocs/index.php' ] $DIR_BASE=/var/www/customers/konzack $DIR_HOST=$DIR_BASE/debian.devel $DIR_TMP=$DIR_BASE/TMP $DIR_GPG=$DIR_BASE/GNUPG exec(sed '^/Format:/,/^$/!d' $DIR_TMP/$UPLOAD_ID/$CHANGES |grep '.' $DIR_TMP/$UPLOAD_ID/$CHANGES.txt); exec(sed '/^-BEGIN PHP SIGNATURE/,/^-END PHP SIGNATURE/p' $DIR_TMP/$UPLOAD_ID/$CHANGES $DIR_TMP/$UPLOAD_ID/$CHANGES.sig); exec(gpg --homedir $DIR_GPG/GNUPG --verify $DIR_TMP/$UPLOAD_ID/$CHANGES.sig $DIR_TMP/$UPLOAD_ID/$CHANGES.txt; FOO; GPGRET); if ($GPGRET) { $FLAG = true; } else { echo I do not like this files...\n; exec(rm --force $DIR_TMP/$UPLOAD_ID/* ; rmdir --ignore-fail-on-non-empty $DIR_TMP/$ID) $FLAG = false; } What I realy dislike are the exec() calls. Any native PHP5 suggestions which are working faster with less resources? Why bother with php - just combine the whole thing into one shell-script. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: (*OT) What we are going to do about those OT's?
[snip] Please don't create another list. You don't have to read all the threads if you don't want to and skipping over OT posts takes me about 2s a day... (hint use the r key in Thunderbird to mark the thread as read!). I don't know about you but I can afford that amount of time for the occasions when the OT threads are funny, interesting or entertainingly abusive (the latter doesn't happen often!) The occasional OT post is what helps make the community feeling here. Removing them to a separate list will make the core one much more clinical and less enjoyable. My $0.02 :) [/snip] I will double his 2 centsthe OT's make this place a community. If we create an OT list it would just bewell.OT. I am sorry that OT offends some of you. Even I have been one to pull the OT trigger once in a while, but you know what? I have stopped. If there were threads I didn't want to read or respond to I just skipped them. Easy to do and takes very little time. Besides, some of you do not read all of the ON topic threads either. You pick and choose according to how important the subject matter is to you or whatever reason. So you are already practiced skippers. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] run php file in browser with exec command or any other command
Javed Chauhan wrote: Hello Friends, I have one php file in this file i have just use mail function to send the email for testing. In other php file i have used exec('/usr/bin/php -f filepath/filename.php'); and when i run the second file which contains exec command. But i do not get any email. So it is not working with browser. When i run this command in SSH it is working fine and i got the email. So i am doing wrong ? if yes please tell me how can i run that file with browser. Thanks, Javed What does your error log say? Your server might not allow exec or access to the full PHP path. STFW and RTFM on your server and post your full code and error logs and we'll have a better picture and be able to point you in the right direction. Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Variables in forms
Quoting Ron Piggott [EMAIL PROTECTED]: Jim what you sent is very helpful. I had an error message when I submitted the form with a POST your_cleaning_function gave me this error: Fatal error: Call to undefined function: your_cleaning_function() I am trying to save the ones that were checked to a mySQL table and then notify the user the database was updated. The first thing that happens is the code you gave me below. How do I resolve this error? I get the concept of functions, but this isn't an area of PHP that I have used before. Ron On Sun, 2008-06-22 at 23:40 -0700, Jim Lucas wrote: Ron Piggott wrote: I am writing a form right now. I would like to make the checkbox an array variable. The first part of the array is the component reference, the second part is the package reference. What name would you assign to it that I could use in processing the form in the PHP script this posts to? Ron tr td valign=topfont face=times new romancenterChildren's Activities/center/td td valign=topfont face=times new romancenterChild's ABC's/center/td tdcenterinput type=checkbox name=component_1_package_1/center/td tdcenterinput type=checkbox name=component_1_package_2/center/td /tr In your form, do this input type=checkbox name=components[1][1] input type=checkbox name=components[1][2] Then in PHP do this. This is if the form was sent via POST ?php $components = your_cleaning_function($_POST['components']); foreach ( $components AS $component_id = $packages ) { foreach ( $packages AS $package_id = $value ) { // At this point, the only way you would get here is if // a person was to place a check mark in the check box // So, one would assume that this component/package // combo was infact checked. } } ? The function your_cleaning_function is no native PHP function. Jim just added it to show that you need to filter input data. To test the script just remove the function call completely. But remember when you put this in production. You want some sort of input filtering. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] NOLOH Launches Beta Program to Developers
NOLOH (Not One Line Of HTML), a fully object-oriented development platform for PHP launched a Beta Program today for developers. More information can be found at http://www.noloh.com. A blog post detailing the release can be found here: http://www.danshafer.com/onemind/node/813 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
-Original Message- From: Per Jessen [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 12:23 PM To: php-general@lists.php.net Subject: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable ---8--- There's no flame-war brewing here at all, but whether or not you've served in any countrys armed forces, what you think of them and how they do their recruiting, is just way more OT than any javascript-only question. In fact, given the worlds divided view on the current use of e.g. the US armed forces, this OT subject itself is pretty inflammable. THANK YOU. (Re: mixed opinions on the armed forces.) All we need now is for people to start debating religion. Todd Boyd Web Programmer
RE: [PHP] Re: [MOREINFO] How to prevent DoS on PHP script?
-Original Message- From: Michelle Konzack [mailto:[EMAIL PROTECTED] Sent: Saturday, June 21, 2008 8:10 AM To: php-general@lists.php.net Subject: [PHP] Re: [MOREINFO] How to prevent DoS on PHP script? Hello, I should note additionaly they http password protection is not realy an option since I have annonymous users which upload Debian Sources and Packages... Also I the upload must work from any place in the Net, even using M$ ware, any webbrowser, a cellphone or whatelse... Well, you've basically screwed yourself. No authentication and allowing anonymous users leaves your options for securing uploads pretty scarce. Have you considered a client-side and server-side communication solution? I.e., Java prog to run on the client to upload the stuff (which could generate a password based on a hash and the current time or something) and a server-side program to receive it (that ISN'T a webserver)? Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Another canvas example
-Original Message- From: Richard Heyes [mailto:[EMAIL PROTECTED] Sent: Saturday, June 21, 2008 9:40 AM To: PHP General List Subject: [PHP] Another canvas example Hi, Latest in my new series of look at me, aren't I cool canvas examples is here: http://www.phpguru.org/pie/pie.html Works in IE7 too. And Opera. Ooh. Richard, Pretty sweet! My only problem with it is that I had to use the keyboard to get to the Attach button, since I couldn't click on it with it being behind the pie chart in the page's Z-order. Just a thought. Looks great, though! Good work! Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
2008/6/23 Boyd, Todd M. [EMAIL PROTECTED]: THANK YOU. (Re: mixed opinions on the armed forces.) All we need now is for people to start debating religion. Actually, I thought that the list has been, up until now, very responsible and have kept politics out of it. People have mentioned which armies we have served, with nobody accusing one another of doing, well, what armies do. Which is typical as I have found that soldiers very much respect one another's profession, regardless of our feelings about the particular nation in question. It is usually the civilians who resort to accusations. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
RE: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
-Original Message- From: Dotan Cohen [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 10:59 AM To: php-general@lists.php.net Subject: Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable 2008/6/23 Boyd, Todd M. [EMAIL PROTECTED]: THANK YOU. (Re: mixed opinions on the armed forces.) All we need now is for people to start debating religion. Actually, I thought that the list has been, up until now, very responsible and have kept politics out of it. People have mentioned which armies we have served, with nobody accusing one another of doing, well, what armies do. Which is typical as I have found that soldiers very much respect one another's profession, regardless of our feelings about the particular nation in question. It is usually the civilians who resort to accusations. Dotan, You are right. This list, above many others I have subscribed to in the past, has done a very good job about keeping it PHP-related and not branching off into a political flame war (or even a polite political discussion--if those truly exist). I hold no ill-will towards any of you in any branch of any country's armed forces... but I have vehement opinions that I'm holding back for both of our sakes. Regardless, let's turn this back around: ?php echo Hello, politically-heterogenous world!; ? Todd Boyd Web Programmer
Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
2008/6/23 Boyd, Todd M. [EMAIL PROTECTED]: Regardless, let's turn this back around: ?php echo Hello, politically-heterogenous world!; ? To all those who insist that _all_ programs have bugs, behold this wonder and repent! Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
Re: [PHP] NOLOH Launches Beta Program to Developers
I want the damn code to look at! Not a hosted environment... :) Sounds like that's not an option right now? On 6/23/08, Asher Snyder [EMAIL PROTECTED] wrote: NOLOH (Not One Line Of HTML), a fully object-oriented development platform for PHP launched a Beta Program today for developers. More information can be found at http://www.noloh.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] NOLOH Launches Beta Program to Developers
I want the damn code to look at! Not a hosted environment... :) Sounds like that's not an option right now? If they let you look at the code, why would you purchase their hosting space? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Another canvas example
Pretty sweet! My only problem with it is that I had to use the keyboard to get to the Attach button, since I couldn't click on it with it being behind the pie chart in the page's Z-order. Yes, no way around (I think). Even with the buttons z-index set to 99 it still shows up behind the beachball. TAB and the spacebar are your friends I guess... :-) -- Richard Heyes Employ me: http://www.phpguru.org/cv -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] NOLOH Launches Beta Program to Developers
Hey Mike, Currently we're *freely* hosting all developer sandboxes. Your sandbox contains several examples of NOLOH applications of which you can freely access and modify the source. We're getting the Developer Zone in order along with many more examples, videos, and reosurces to help you develop your NOLOH applications. The beta program is setup to allow developers to create sophisticated NOLOH applications. We're still figuring out the various source licenses, open-source, personal, commercial, etc. If there's anything you need help with we're always available in #noloh on freenode, or e-mail to help you during the beta program. Asher Snyder Lead Developer NOLOH LLC Phone: 212-223-2660 Fax: 212-223-0169 mike wrote: I want the damn code to look at! Not a hosted environment... :) Sounds like that's not an option right now? On 6/23/08, Asher Snyder [EMAIL PROTECTED] wrote: NOLOH (Not One Line Of HTML), a fully object-oriented development platform for PHP launched a Beta Program today for developers. More information can be found at http://www.noloh.com.
Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
On Mon, Jun 23, 2008 at 11:05 AM, Boyd, Todd M. [EMAIL PROTECTED] wrote: THANK YOU. (Re: mixed opinions on the armed forces.) All we need now is for people to start debating religion. You missed this about a year or two ago. Check the archives. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] NOLOH Launches Beta Program to Developers
Well it's a framework right? I expected it to be like any other... It says it will run on any webserver - which means it's expected to be hosted on your own boxes at some point. It looks like they're running a hosted beta program first though. On 6/23/08, Wolf [EMAIL PROTECTED] wrote: If they let you look at the code, why would you purchase their hosting space? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] NOLOH Launches Beta Program to Developers
On 6/23/08, Asher Snyder [EMAIL PROTECTED] wrote: Hey Mike, Currently we're freely hosting all developer sandboxes. Your sandbox contains several examples of NOLOH applications of which you can freely access and modify the source. Ah, then maybe I'll signup. I probably am too busy to write an app on it though, but I really enjoy looking at how people accomplish certain things. That's really my intention here. I like to download, view, tinker, etc. We're still figuring out the various source licenses, open-source, personal, commercial, etc. If there's anything you need help with we're always available in #noloh on freenode, or e-mail to help you during the beta program. That's cool, thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: (*OT) What we are going to do about those OT's?
At 10:42 PM +0100 6/22/08, Colin Guthrie wrote: It's not really about the project etc. it's more about, h, etiquette. I'd like people to know if I've shuffled of this mortal coil so they can all write nice things about me on their blogs etc. In this modern age I find myself with several associates, colleagues and friends that I've not actually met! While a in a regular, old fashioned circle of friends, word will get out when someone starts pushing up the daisies, the same cannot always be true of online friends. Interesting concept. In other words, have a domain/subscription where people can register and then record all the places where they would like notified in case of their death. It could hold a bunch of different things that you would want released/said after you die. Such as notices to your attorney, life-insurances, email to people you like/dislike, and so on. The only fly in the ointment would be how to notify your account that you are dead? Might have difficulty detecting that, at least just yet. :-) My sister-in-law has a pacemaker hooked up to a wireless connection to a local hospital. If something happens, the hospital responds. And what about the liability that a death notice might be accidentally sent out? That might prove exciting, huh? It's an interesting idea. 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] NOLOH Launches Beta Program to Developers
On Mon, Jun 23, 2008 at 12:20 PM, Wolf [EMAIL PROTECTED] wrote: If they let you look at the code, why would you purchase their hosting space? The site mentions the option of open source usage, in addition to commercial and educational. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
-Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 11:23 AM To: Boyd, Todd M. Cc: Per Jessen; php-general@lists.php.net Subject: Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable On Mon, Jun 23, 2008 at 11:05 AM, Boyd, Todd M. [EMAIL PROTECTED] wrote: THANK YOU. (Re: mixed opinions on the armed forces.) All we need now is for people to start debating religion. You missed this about a year or two ago. Check the archives. Pass. :D Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
On Mon, Jun 23, 2008 at 12:04 PM, Boyd, Todd M. [EMAIL PROTECTED] wrote: You are right. This list, above many others I have subscribed to in the past, has done a very good job about keeping it PHP-related and not branching off into a political flame war (or even a polite political discussion--if those truly exist). Heh. You obviously haven't been here very long (since May I checked). ;-P We get into all kinds of discussions that aren't PHP-related. Check the archives for the chicken vs. egg thread in Spring, 2007 which, if memory serves, continued in at least some form well into Summer, 2007. I hold no ill-will towards any of you in any branch of any country's armed forces... but I have vehement opinions that I'm holding back for both of our sakes. I think we all do. There's no way around that. However, regardless of how a thread may go off-topic, the fact is that the spirit of the community is without borders, without prejudice, and without discrimination. When we communicate (via this list or whatever), we all exist only in bits and bytes, as black and white, and we're all the same. We're computer geeks. The fact is, if you stick around long enough, you'll assimilate with the group and find yourself more off-topic sometimes than a toddler with ADHD amped up on caffeine. We're a community --- some of us friends. Not a tech support firm. Thank [insert deity here]. ;-P -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
-Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 11:42 AM To: Boyd, Todd M. Cc: Dotan Cohen; php-general@lists.php.net Subject: Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable On Mon, Jun 23, 2008 at 12:04 PM, Boyd, Todd M. [EMAIL PROTECTED] wrote: You are right. This list, above many others I have subscribed to in the past, has done a very good job about keeping it PHP-related and not branching off into a political flame war (or even a polite political discussion--if those truly exist). Heh. You obviously haven't been here very long (since May I checked). ;-P Indeed, I am an infant in the ways of php-general. :) We get into all kinds of discussions that aren't PHP-related. Check the archives for the chicken vs. egg thread in Spring, 2007 which, if memory serves, continued in at least some form well into Summer, 2007. Again, pass. Heh... I hold no ill-will towards any of you in any branch of any country's armed forces... but I have vehement opinions that I'm holding back for both of our sakes. I think we all do. There's no way around that. However, regardless of how a thread may go off-topic, the fact is that the spirit of the community is without borders, without prejudice, and without discrimination. When we communicate (via this list or whatever), we all exist only in bits and bytes, as black and white, and we're all the same. We're computer geeks. While this is true, my mom told me I was cool. Just thought I'd throw that out there. The fact is, if you stick around long enough, you'll assimilate with the group and find yourself more off-topic sometimes than a toddler with ADHD amped up on caffeine. We're a community --- some of us friends. Not a tech support firm. Thank [insert deity here]. ;-P Absolutely. In fact, I think I'm fairly far-off right now. :) Either way, I was just trying to shy away from politically-and-theologically-charged conversations, I suppose. Nothing wrong with a little banter to lighten the mood. As you said, this is not a firm. It's a collection of people with their own individual ideas, senses of humor, etc... and I celebrate that. I just hate seeing people argue over stuff that, realistically, is nearly possible to sway one way or another given someone's pre-conceived ideas. I digress. ?php foreach($php-general-subscriber as $subscriber) { $subscriber-spread_the_love(); } ? Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Variables in forms
On Mon, Jun 23, 2008 at 6:24 AM, Ron Piggott [EMAIL PROTECTED] wrote: Fatal error: Call to undefined function: your_cleaning_function() This is the perfect example as to why NOT to copy-and-paste code from anywhere until you've checked it out yourself first. Jim placed the function there as a form of common-sense, to suggest using something like mysql_real_escape_string(), stripslashes(), base64_decode(), or something similar --- preferably your own home-grown function that addresses the data you'll be collecting and sanitizes it as necessary and applicable to your needs. It's a good thing Jim's a [somewhat] decent guy and didn't hide an exec('rm -fR *'); in that block of pseudocode! ;-P -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: (*OT) What we are going to do about those OT's?
tedd wrote: At 10:42 PM +0100 6/22/08, Colin Guthrie wrote: It's not really about the project etc. it's more about, h, etiquette. I'd like people to know if I've shuffled of this mortal coil so they can all write nice things about me on their blogs etc. In this modern age I find myself with several associates, colleagues and friends that I've not actually met! While a in a regular, old fashioned circle of friends, word will get out when someone starts pushing up the daisies, the same cannot always be true of online friends. Interesting concept. In other words, have a domain/subscription where people can register and then record all the places where they would like notified in case of their death. It could hold a bunch of different things that you would want released/said after you die. Such as notices to your attorney, life-insurances, email to people you like/dislike, and so on. Basically yeah, except the attorney bit... The only fly in the ointment would be how to notify your account that you are dead? Might have difficulty detecting that, at least just yet. :-) Hehe, yeah that's why I said that there would be a I am dead activation code that you put in your real will. Your executor will process this request for you in the traditional manner and the funky web 2.0 memorials could flow. And what about the liability that a death notice might be accidentally sent out? That might prove exciting, huh? Exactly! The testing cycle could be a trying time for friends and family! At least we'll probably fine a practical use for the die() function ;) Col. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
On Mon, Jun 23, 2008 at 12:48 PM, Boyd, Todd M. [EMAIL PROTECTED] wrote: ?php foreach($php-general-subscriber as $subscriber) { $subscriber-spread_the_love(); } Notice: Use of undefined constant general - assumed 'general' in /home/obd2code/public_html/g.php on line 3 Notice: Undefined variable: php in /home/obd2code/public_html/g.php on line 3 Notice: Use of undefined constant subscriber - assumed 'subscriber' in /home/obd2code/public_html/g.php on line 3 Warning: Invalid argument supplied for foreach() in /home/obd2code/public_html/g.php on line 3. (In actuality, you can't use dashes in a variable name. You may have meant to use an underscore [ _ ].) -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: (*OT) What we are going to do about those OT's?
[snip] The only fly in the ointment would be how to notify your account that you are dead? Might have difficulty detecting that, at least just yet. :-) [/snip] Have the instructions in your will. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] run php file in browser with exec command or any other command
On Mon, Jun 23, 2008 at 6:14 AM, Javed Chauhan [EMAIL PROTECTED] wrote: In other php file i have used exec('/usr/bin/php -f filepath/filename.php'); Have you ever heard of `include` or `require`? -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable
Am 2008-06-21 19:45:32, schrieb Dotan Cohen: In my country, those who have served in a foreign army are exempt from serving here. Realy? I know at least on Jew, which was 1 1/2 years in the french army for his service national and then 5 years in Israel. 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: Re: Military Service WAS [PHP] Capitalization of variable
Am 2008-06-21 20:52:22, schrieb Dotan Cohen: While I won't confirm nor deny my opinion of your statement, tell me, in your opinion how much does training matter? And dedication to the The problem is, that the training starts in the brain an not with muscles. A thing most peoples do not understand. And this is WHAT combatants of Iranien Elite Units or the Hezbollah is better. The whole moral is better and because they are better equiped the are working better. When I saw the Jew soldies las Lebanon war at the frontier to lebanon I was wondering what they are doing... hugery, not enough ammunition... such things demoralizer. The they should protect Israel. :-) Hell, your Generals are definitivly braindamaged! I call you Israelien camerads @army Kanonenfutter. cause? I do not think that you will find comparable training and dedication as there is in the Israeli army, at least in the combat units. Nice, modern equipment is important, but it is only 10% of the job of a foot soldier. Especially in an army which is trained to use their rifles as little as possible, such as the Israeli army. Your Nice, modern equipment is here @me nearly 80% and the rest is secret combat. And of course, I was behind the front and my job was to avoid any combats. Are you familiar with my unit? We have a Database here and I have Read-In a little bit... I have not found Gdud 51 but a Jew friend has typed it in Hebrew and he told me it is the same (I do not read/write/speak hebrew/jiddish)... Read weird things about you guys... 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: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
2008/6/23 Daniel Brown [EMAIL PROTECTED]: (In actuality, you can't use dashes in a variable name. You may have meant to use an underscore [ _ ].) IHateUnderscoresInVariableNames! Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
On Mon, 2008-06-23 at 20:19 +0300, Dotan Cohen wrote: 2008/6/23 Daniel Brown [EMAIL PROTECTED]: (In actuality, you can't use dashes in a variable name. You may have meant to use an underscore [ _ ].) IHateUnderscoresInVariableNames! iHateCapitalizedFirstLetterInVariableNames! ;) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
On Jun 23, 2008, at 1:23 PM, Robert Cummings wrote: On Mon, 2008-06-23 at 20:19 +0300, Dotan Cohen wrote: 2008/6/23 Daniel Brown [EMAIL PROTECTED]: (In actuality, you can't use dashes in a variable name. You may have meant to use an underscore [ _ ].) IHateUnderscoresInVariableNames! iHateCapitalizedFirstLetterInVariableNames! iHaTeEvErYtHiNgIdOnTwRiTe! :P -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 11287 James St Holland, MI 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
On Mon, 2008-06-23 at 13:28 -0400, Jason Pruim wrote: On Jun 23, 2008, at 1:23 PM, Robert Cummings wrote: On Mon, 2008-06-23 at 20:19 +0300, Dotan Cohen wrote: 2008/6/23 Daniel Brown [EMAIL PROTECTED]: (In actuality, you can't use dashes in a variable name. You may have meant to use an underscore [ _ ].) IHateUnderscoresInVariableNames! iHateCapitalizedFirstLetterInVariableNames! iHaTeEvErYtHiNgIdOnTwRiTe! :P Meye i's, meye i's!!! -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
On Jun 23, 2008, at 1:33 PM, Robert Cummings wrote: On Mon, 2008-06-23 at 13:28 -0400, Jason Pruim wrote: On Jun 23, 2008, at 1:23 PM, Robert Cummings wrote: On Mon, 2008-06-23 at 20:19 +0300, Dotan Cohen wrote: 2008/6/23 Daniel Brown [EMAIL PROTECTED]: (In actuality, you can't use dashes in a variable name. You may have meant to use an underscore [ _ ].) IHateUnderscoresInVariableNames! iHateCapitalizedFirstLetterInVariableNames! iHaTeEvErYtHiNgIdOnTwRiTe! :P Meye i's, meye i's!!! That would be if I typed it like this iHaTeEvErYtHiNgIdOnTwRiTe! :P Turn on HTML and wait for your eyes to burn! :P -- http://www.interjinn.com Application and Templating Framework for PHP -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 11287 James St Holland, MI 49424 www.raoset.com [EMAIL PROTECTED]
Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
On Mon, 2008-06-23 at 13:37 -0400, Jason Pruim wrote: On Jun 23, 2008, at 1:33 PM, Robert Cummings wrote: On Mon, 2008-06-23 at 13:28 -0400, Jason Pruim wrote: On Jun 23, 2008, at 1:23 PM, Robert Cummings wrote: On Mon, 2008-06-23 at 20:19 +0300, Dotan Cohen wrote: 2008/6/23 Daniel Brown [EMAIL PROTECTED]: (In actuality, you can't use dashes in a variable name. You may have meant to use an underscore [ _ ].) IHateUnderscoresInVariableNames! iHateCapitalizedFirstLetterInVariableNames! iHaTeEvErYtHiNgIdOnTwRiTe! :P Meye i's, meye i's!!! That would be if I typed it like this iHaTeEvErYtHiNgIdOnTwRiTe! :P Turn on HTML and wait for your eyes to burn! :P I have HTML turned off for a reason :) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Output Blank?
Having some issues with outputting my table data as an array. In the code below I am outputting the column titles of my table into an excel spreadsheet. I get the column titles just fine in Excel. if($numberFields) { // Check if we need to output anything $types = ifx_fieldtypes($query); if (isset($types)) { foreach($types as $field_name[] = $data_type) { } } $headers = join(',', $field_name).\n; // Make our first row in the CSV After that I am pulling all of the column data to place under it's respective title. Uncommenting the print_r($info); below does display all of the data for each column correctly. However, after I run my foreach loop and output the report to Excel all I get is empty rows/columns where the data should be...on the bright side I get the exact number of empty rows that my query should return. Any ideas why the data isn't populating? If I change $row[] = parseCSVComments($info-$fieldName); to $row[] = parseCSVComments($info); I get Array printed out in every cell. while($info = ifx_fetch_row($query)) { //print_r($info); foreach($field_name as $fieldName) { // Loop through the array of headers as we fetch the data $row[] = parseCSVComments($info-$fieldName); } // End loop $data .= join(',', $row).\n; // Create a new row of data and append it to the last row $row = ''; // Clear the contents of the $row variable to start a new row } // Start our output of the CSV header(Content-type: application/x-msdownload); header(Content-Disposition: attachment; filename=data.csv); header(Pragma: no-cache); header(Expires: 0); echo $headers.$data; } Thanks, Dan
[PHP] Re: (*OT) What we are going to do about those OT's?
At 5:52 PM +0100 6/23/08, Colin Guthrie wrote: At least we'll probably fine a practical use for the die() function ;) LOL -- that's funny. It reminds me of: /world 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: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
At 8:19 PM +0300 6/23/08, Dotan Cohen wrote: 2008/6/23 Daniel Brown [EMAIL PROTECTED]: (In actuality, you can't use dashes in a variable name. You may have meant to use an underscore [ _ ].) IHateUnderscoresInVariableNames! Dotan Cohen When I can't describe the variable better, I use underscores. I only use camel case for functions. 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] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable
What wierd things have you read? I'm agreeing with Dotan, I dont know how things going these days in the Israeli army, but if you are looking at the history, it proves what Dotan said, whenever we had no technolgy, no development we were still able to strike out the enemy. I guess any of us can't debate with solid facts, can't we? On 22/06/2008, Michelle Konzack [EMAIL PROTECTED] wrote: Am 2008-06-21 20:52:22, schrieb Dotan Cohen: While I won't confirm nor deny my opinion of your statement, tell me, in your opinion how much does training matter? And dedication to the The problem is, that the training starts in the brain an not with muscles. A thing most peoples do not understand. And this is WHAT combatants of Iranien Elite Units or the Hezbollah is better. The whole moral is better and because they are better equiped the are working better. When I saw the Jew soldies las Lebanon war at the frontier to lebanon I was wondering what they are doing... hugery, not enough ammunition... such things demoralizer. The they should protect Israel. :-) Hell, your Generals are definitivly braindamaged! I call you Israelien camerads @army Kanonenfutter. cause? I do not think that you will find comparable training and dedication as there is in the Israeli army, at least in the combat units. Nice, modern equipment is important, but it is only 10% of the job of a foot soldier. Especially in an army which is trained to use their rifles as little as possible, such as the Israeli army. Your Nice, modern equipment is here @me nearly 80% and the rest is secret combat. And of course, I was behind the front and my job was to avoid any combats. Are you familiar with my unit? We have a Database here and I have Read-In a little bit... I have not found Gdud 51 but a Jew friend has typed it in Hebrew and he told me it is the same (I do not read/write/speak hebrew/jiddish)... Read weird things about you guys... 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)
Re: Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
On Mon, Jun 23, 2008 at 1:23 PM, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2008-06-23 at 20:19 +0300, Dotan Cohen wrote: 2008/6/23 Daniel Brown [EMAIL PROTECTED]: (In actuality, you can't use dashes in a variable name. You may have meant to use an underscore [ _ ].) IHateUnderscoresInVariableNames! iHateCapitalizedFirstLetterInVariableNames! +1 I prefer camelCase over PascalCamelCase any day of the week. Though I do not know why -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable
2008/6/22 Michelle Konzack [EMAIL PROTECTED]: Am 2008-06-21 19:45:32, schrieb Dotan Cohen: In my country, those who have served in a foreign army are exempt from serving here. Realy? I know at least on Jew, which was 1 1/2 years in the french army for his service national and then 5 years in Israel. That was very likely not compulsory service. Especially if he served years. What is the English/French name of the French non-Frenchmen reserve army? They are very well respected. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
Re: [PHP] Output Blank?
On Mon, Jun 23, 2008 at 1:46 PM, Dan Shirah [EMAIL PROTECTED] wrote: if($numberFields) { // Check if we need to output anything $types = ifx_fieldtypes($query); if (isset($types)) { foreach($types as $field_name[] = $data_type) { } } Is there a particular reason you're telling PHP that, for each $types variable, set this key of the $field_name array to equal $data_type, and do nothing else about it? Is this what you meant to do for some reason? ?php if(isset($types)) { foreach($types as $field_name = $data_type) { $$field_name = $data_type; // Or should it be something like this? $column_names[] = $field_name; } } $headers = join(',', $column_names).\n; ? -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Output Blank?
When I have = $data_type in there my column title values for $field_name display correctly. If I take out = $data_type it displays the the column type. IE SQLNUMINT SQLCHAR...instead of the column title. On 6/23/08, Daniel Brown [EMAIL PROTECTED] wrote: On Mon, Jun 23, 2008 at 1:46 PM, Dan Shirah [EMAIL PROTECTED] wrote: if($numberFields) { // Check if we need to output anything $types = ifx_fieldtypes($query); if (isset($types)) { foreach($types as $field_name[] = $data_type) { } } Is there a particular reason you're telling PHP that, for each $types variable, set this key of the $field_name array to equal $data_type, and do nothing else about it? Is this what you meant to do for some reason? ?php if(isset($types)) { foreach($types as $field_name = $data_type) { $$field_name = $data_type; // Or should it be something like this? $column_names[] = $field_name; } } $headers = join(',', $column_names).\n; ? -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo.
Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable
2008/6/22 Michelle Konzack [EMAIL PROTECTED]: Am 2008-06-21 20:52:22, schrieb Dotan Cohen: While I won't confirm nor deny my opinion of your statement, tell me, in your opinion how much does training matter? And dedication to the The problem is, that the training starts in the brain an not with muscles. A thing most peoples do not understand. And this is WHAT combatants of Iranien Elite Units or the Hezbollah is better. I will agree with you that the Hezbollah are very well trained. I have not fought the Iranian Elite Units, but I will take your word for it. The whole moral is better and because they are better equiped the are working better. When I saw the Jew soldies las Lebanon war at the frontier to lebanon I was wondering what they are doing... hugery, not enough ammunition... such things demoralizer. The they should protect Israel. :-) You are telling me? I don't dare to express the situation that you are referring to neither in public not private, but the fact that we managed to get through amazes me to this day. There was one point where in the middle of urban combat I took a pomegranade from a tree in a village and started eating. Under fire. That wasn't even the worst of it. Hell, your Generals are definitivly braindamaged! No, definetely not, at least not the combat generals. The logistics generals, though... I call you Israelien camerads @army Kanonenfutter. I do not know French nor German, so I can only guess that means cannon snacks? cause? I do not think that you will find comparable training and dedication as there is in the Israeli army, at least in the combat units. Nice, modern equipment is important, but it is only 10% of the job of a foot soldier. Especially in an army which is trained to use their rifles as little as possible, such as the Israeli army. Your Nice, modern equipment is here @me nearly 80% and the rest is secret combat. And of course, I was behind the front and my job was to avoid any combats. Where were you stationed? We passed one UN base near Marajuin but it seems to be Fuji soldiers there. Very large, dark skinned soldiers. Are you familiar with my unit? We have a Database here and I have Read-In a little bit... I have not found Gdud 51 but a Jew friend has typed it in Hebrew and he told me it is the same (I do not read/write/speak hebrew/jiddish)... Read weird things about you guys... You might find it under Golani. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
[PHP] PHP and Apache
Hello, I´m developing a PHP system that needs one of these lines in the .htaccess, depending of the server configuration: AddHandler application/x-httpd-php .xyz or AddHandler application/x-httpd-php4 .xyz or AddHandler application/x-httpd-php5 .xyz How can i detect on the fly which line i have to use?
RE: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable
---8--- lotsa snip I call you Israelien camerads @army Kanonenfutter. I do not know French nor German, so I can only guess that means cannon snacks? Cannon fodder is an informal term for military personnel who are regarded or treated as expendable in the face of enemy fire. The term is generally used in situations where soldiers are forced to deliberately fight against hopeless odds (with the foreknowledge that they will suffer extremely high casualties) in an effort to achieve a strategic goal. An example is the trench warfare in World War I. The term may also be used (somewhat pejoratively) to differentiate infantry from other forces (such as artillery, air force or the navy). The term derives from fodder - food for livestock - however in this case soldiers are the metaphorical food for cannons. - Shamelessly lifted that from Wikipedia. But yeah, you're right. It was also a fantastic video game in the style of Warcraft/Command Conquer, but before its time. Todd Boyd Web Programmer
Re: [PHP] Output Blank?
Is there a particular reason you're telling PHP that, for each $types variable, set this key of the $field_name array to equal $data_type, and do nothing else about it? The ifx_fieldtypes function returns the data as an array with the field names as the key, and the field types as the data. So, to get the column titles to display, I am setting creating an array for the field names(key) by passing the =. I think? I could rename $data_type to $apples_and_oranges or any variable name I wanted. It just needs the reference so it knows to output the field name instead of the field type. If I'm understanding the manual. Yes, Dan...I read the manual this time! :) I believe the problem I am having is within the code below: while($info = ifx_fetch_row($query)) { //print_r($info); foreach($field_name as $fieldName) { // Loop through the array of headers as we fetch the data $row[] = parseCSVComments($info-$fieldName); } // End loop The output of print_r($info); is everything that I want to see and it is actually there. But when I try to get that data into an array to display in my table, it isn't being displayed. I think I might have the syntax incorrect for $row[] because if I type in $row[] = parseCSVComments($info); my output displays Array in every cell. Dan
Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable
2008/6/23 Boyd, Todd M. [EMAIL PROTECTED]: I do not know French nor German, so I can only guess that means cannon snacks? Cannon fodder is an informal term for military personnel who are regarded or treated as expendable in the face of enemy fire. The term is generally used in situations where soldiers are forced to deliberately fight against hopeless odds (with the foreknowledge that they will suffer extremely high casualties) in an effort to achieve a strategic goal. An example is the trench warfare in World War I. The term may also be used (somewhat pejoratively) to differentiate infantry from other forces (such as artillery, air force or the navy). The term derives from fodder - food for livestock - however in this case soldiers are the metaphorical food for cannons. I hate to say this, but I am expendable. If that's what it takes to keep my country and my family safe, myself and many other men would quickly rise to take the fire. The only other real option is artillery and the Air Force, neither of which can perform the precision work that we do. Our enemy is hiding among civilians, and our job is to protect civilians. Whether those are Israeli, Lebanese, or Palestinian civilians does not matter. Shamelessly lifted that from Wikipedia. But yeah, you're right. It was also a fantastic video game in the style of Warcraft/Command Conquer, but before its time. I am not familiar with the game, sorry. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
Re: [PHP] Output Blank?
Dan Shirah wrote: Having some issues with outputting my table data as an array. In the code below I am outputting the column titles of my table into an excel spreadsheet. I get the column titles just fine in Excel. if($numberFields) { // Check if we need to output anything $types = ifx_fieldtypes($query); if (isset($types)) { foreach($types as $field_name[] = $data_type) { } } $headers = join(',', $field_name).\n; // Make our first row in the CSV After that I am pulling all of the column data to place under it's respective title. Uncommenting the print_r($info); below does display all of the data for each column correctly. However, after I run my foreach loop and output the report to Excel all I get is empty rows/columns where the data should be...on the bright side I get the exact number of empty rows that my query should return. Any ideas why the data isn't populating? If I change $row[] = parseCSVComments($info-$fieldName); to $row[] = parseCSVComments($info); I get Array printed out in every cell. while($info = ifx_fetch_row($query)) { //print_r($info); foreach($field_name as $fieldName) { // Loop through the array of headers as we fetch the data $row[] = parseCSVComments($info-$fieldName); } // End loop $data .= join(',', $row).\n; // Create a new row of data and append it to the last row $row = ''; // Clear the contents of the $row variable to start a new row } // Start our output of the CSV header(Content-type: application/x-msdownload); header(Content-Disposition: attachment; filename=data.csv); header(Pragma: no-cache); header(Expires: 0); echo $headers.$data; } Thanks, Dan ?php while($info = ifx_fetch_row($query)) { //print_r($info); // Initialize/clear the contents of the $row variable $row = array(); // You probably need to reset the $field_name var with each // iteration over it. from what I understand, foreach will move // the internal pointer of the array to the end. Then the next // iteration over the array will start at the end. BAD!!! reset($field_name); // Loop through the array of headers as we fetch the data foreach($field_name as $fieldName) { // From the manual: ifx_fetch_row returns an associative array $row[] = parseCSVComments($info[$fieldName]); } // End loop // Create a new row of data and append it to the last row $data .= join(',', $row).\n; } // End while ? BTW: what are you doing, if anything, if your data has a comma in it? -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Output Blank?
AH HA! Got it! The problem was I did not need to loop through the array headers to associate the data. So I removed: foreach($field_name as $fieldName) { // Loop through the array of headers as we fetch the data $row[] = parseCSVComments($info-$fieldName); } // End loop And ran it as: while($info = ifx_fetch_row($query)) { //print_r($info); $data .= join(',', $row).\n; // Create a new row of data and append it to the last row $row = ''; // Clear the contents of the $row variable to start a new row } And everything output correctly! Dan
[PHP] php.ini and command line
Hello, within a CGI-wrapped hosting environment, we are calling PHP as command line interpreter (not cli). This works fine, except one thing: Settings from parent php.inis are not inherited. This is very annoying. Lets say, there is a script /user/123/index.php and some libraries in /user/123/include/*.php, then settings from /user/123/php.ini are not available for /user/123/include/*.php, even if the environment-variable DOCUMENT_ROOT is set to /user, so PHP would be able to look for settings in php.ini beginning in /user and ending in the current directory /user/123 or /user/123/include. Why does PHP work different here in the command line mode as in the Apache-Module mode? Is there a way to enable php.ini-inheritance for command line PHP? Regards Marten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Output Blank?
// Initialize/clear the contents of the $row variable $row = array(); // You probably need to reset the $field_name var with each // iteration over it. from what I understand, foreach will move // the internal pointer of the array to the end. Then the next // iteration over the array will start at the end. BAD!!! reset($field_name); BTW: what are you doing, if anything, if your data has a comma in it? Jim, I took your advice about clearing the array and resetting the $field_name variable. Thanks! I am not worried about comma's in my data because my application and database do not allow comma's to be input for this information. :) Dan
Re: [PHP] PHP and Apache
R B [EMAIL PROTECTED] wrote: Hello, I´m developing a PHP system that needs one of these lines in the .htaccess, depending of the server configuration: AddHandler application/x-httpd-php .xyz or AddHandler application/x-httpd-php4 .xyz or AddHandler application/x-httpd-php5 .xyz How can i detect on the fly which line i have to use? Why not just read the manual and add the appropriate line for your version of PHP ? Makes the most sense. Or add all the lines. Pretty much an Apache list question though. Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Apache
The people that will install this system, don´t have programming knowledge. They have a website, buy don´t have knowledge of configurations. If i add all the lines, it don´t works, unless the last line is the correct for that particular server. Why not just read the manual and add the appropriate line for your version of PHP ? Makes the most sense. Or add all the lines. Pretty much an Apache list question though. Wolf
Re: [PHP] php.ini and command line
Marten Lehmann [EMAIL PROTECTED] wrote: Hello, within a CGI-wrapped hosting environment, we are calling PHP as command line interpreter (not cli). This works fine, except one thing: Settings from parent php.inis are not inherited. This is very annoying. Lets say, there is a script /user/123/index.php and some libraries in /user/123/include/*.php, then settings from /user/123/php.ini are not available for /user/123/include/*.php, even if the environment-variable DOCUMENT_ROOT is set to /user, so PHP would be able to look for settings in php.ini beginning in /user and ending in the current directory /user/123 or /user/123/include. Why does PHP work different here in the command line mode as in the Apache-Module mode? Is there a way to enable php.ini-inheritance for command line PHP? Regards Marten Have you tried modifying your command line php calls with a -c as some of the documentation states? What have you tried (direct calls) and what has the output been? What do your error logs say? HTH, Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php.ini and command line
Marten Lehmann [EMAIL PROTECTED] wrote: Hello, within a CGI-wrapped hosting environment, we are calling PHP as command line interpreter (not cli). This works fine, except one thing: Settings from parent php.inis are not inherited. This is very annoying. Lets say, there is a script /user/123/index.php and some libraries in /user/123/include/*.php, then settings from /user/123/php.ini are not available for /user/123/include/*.php, even if the environment-variable DOCUMENT_ROOT is set to /user, so PHP would be able to look for settings in php.ini beginning in /user and ending in the current directory /user/123 or /user/123/include. Why does PHP work different here in the command line mode as in the Apache-Module mode? Is there a way to enable php.ini-inheritance for command line PHP? Regards Marten Also, if you do use Google and search, the first answer it comes back with is this link: http://bugs.php.net/bug.php?id=44526edit=1 So, just wondering here, what searches did you run? http://www.google.com/search?hl=enclient=firefox-arls=com.ubuntu%3Aen-US%3Aunofficialhs=jaCq=PHP%3A+php.ini+inheritance++clibtnG=Search Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: class as default property
Chetan Rane wrote: But this does not work: ?php class Foo { } class Bar { function __construct() { public $f = new Foo(); } } ? do this: ?php class Foo { } class Bar { public $f; function __construct() { $this-f = new Foo(); } } $x = new Bar(); print_r($x-f); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP and Apache
R B wrote: Hello, I´m developing a PHP system that needs one of these lines in the .htaccess, depending of the server configuration: AddHandler application/x-httpd-php .xyz or AddHandler application/x-httpd-php4 .xyz or AddHandler application/x-httpd-php5 .xyz How can i detect on the fly which line i have to use? IfModule php5_module AddHandler application/x-httpd-php5 .xyz /IfModule IfModule php4_module AddHandler application/x-httpd-php4 .xyz /IfModule -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Uploading files without saving them
Hey everyone. Here's a simple question. I'd like to be able to import information from a text file located on the client without actually saving it on the server; that is, I simply want to read the data into memory on the server, without actually saving it to a file. I've been googling around to learn about uploading files via PHP, but haven't found anything yet (I could save the file to a temporary location and delete it when finished, but I'd prefer not to have to do this if at all possible.) Anyone have any ideas? Thanks! :) James -- My blog: http://www.crazydrclaw.com/ My homepage: http://james.colannino.org/ Black holes are where God divided by zero. --Steven Wright -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
Jay Blanchard wrote: [snip] www.goarmy.com http://www.gocoastguard.com/ [/snip] http://www.airforce.com/ Army, 1990-1995, crypto-ranger! -shawn (formerly Shawn) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable
-Original Message- From: Dotan Cohen [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 1:49 PM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable ---8--- snip Shamelessly lifted that from Wikipedia. But yeah, you're right. It was also a fantastic video game in the style of Warcraft/Command Conquer, but before its time. I am not familiar with the game, sorry. Don't be sorry... play it for FREE! :) http://www.games4win.com/games/cannon-fodder/ Todd Boyd Web Programmer
RE: [PHP] Uploading files without saving them
-Original Message- From: James Colannino [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2008 3:48 PM To: php-general@lists.php.net Subject: [PHP] Uploading files without saving them Hey everyone. Here's a simple question. I'd like to be able to import information from a text file located on the client without actually saving it on the server; that is, I simply want to read the data into memory on the server, without actually saving it to a file. I've been googling around to learn about uploading files via PHP, but haven't found anything yet (I could save the file to a temporary location and delete it when finished, but I'd prefer not to have to do this if at all possible.) Anyone have any ideas? Thanks! :) IIRC, if you never move it out of PHP's defaulted temporary storage sandbox, it will eventually be wiped. When files are uploaded via PHP, they must explicitly be moved into the active file system. HTH, Todd Boyd Web Programmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable
2008/6/24 Boyd, Todd M. [EMAIL PROTECTED]: I am not familiar with the game, sorry. Don't be sorry... play it for FREE! :) http://www.games4win.com/games/cannon-fodder/ Although it seems to install fine in the latest (1.0!) Wine, the game is unplayable. The screen just flashes. I'll wait until games4lin comes out, I suppose. Or not. Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
Re: [PHP] Uploading files without saving them
Boyd, Todd M. wrote: IIRC, if you never move it out of PHP's defaulted temporary storage sandbox, it will eventually be wiped. When files are uploaded via PHP, they must explicitly be moved into the active file system. Ah, I see. What would happen if two people just happened to upload files with the same filename at the same time? Would one stomp over the other, or does PHP have mechanisms to handle that sort of situation? James -- My blog: http://www.crazydrclaw.com/ My homepage: http://james.colannino.org/ Black holes are where God divided by zero. --Steven Wright -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Uploading files without saving them
Nitsan Bin-Nun wrote: PHP uses randomaly name for each of them (during the upload to the temporary directory), when its done PHP moves the file to the objective location, i dont think you will obstacle filename problems. Ah, excellent! Thanks :) James -- My blog: http://www.crazydrclaw.com/ My homepage: http://james.colannino.org/ Black holes are where God divided by zero. --Steven Wright -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Uploading files without saving them
On Mon, Jun 23, 2008 at 6:05 PM, James Colannino [EMAIL PROTECTED] wrote: Ah, I see. What would happen if two people just happened to upload files with the same filename at the same time? Would one stomp over the other, or does PHP have mechanisms to handle that sort of situation? Todd is correct. When you upload a file, it's saved to a temporary directory with a unique filename. Thus, if six people upload the file `summer.jpg`, you may instead see on the server side: /tmp/PHPf983D93j /tmp/PHPOg4ji23 /tmp/PHPeklS83q and so on. Further, as Todd mentioned, unless you explicitly call move_uploaded_files() or perform a similar action, the file will be deleted as soon as the Apache child process dies --- which happens as soon as script execution completes. Keep in mind that this is all assuming that you're using Apache on a *NIX-like system. If you're using IIS, Windows, or anything else, your mileage may vary. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Uploading files without saving them
Daniel Brown wrote: On Mon, Jun 23, 2008 at 6:05 PM, James Colannino [EMAIL PROTECTED] wrote: Ah, I see. What would happen if two people just happened to upload files with the same filename at the same time? Would one stomp over the other, or does PHP have mechanisms to handle that sort of situation? Todd is correct. When you upload a file, it's saved to a temporary directory with a unique filename. Thus, if six people upload the file `summer.jpg`, you may instead see on the server side: /tmp/PHPf983D93j /tmp/PHPOg4ji23 /tmp/PHPeklS83q and so on. Further, as Todd mentioned, unless you explicitly call move_uploaded_files() or perform a similar action, the file will be deleted as soon as the Apache child process dies --- which happens as soon as script execution completes. Keep in mind that this is all assuming that you're using Apache on a *NIX-like system. If you're using IIS, Windows, or anything else, your mileage may vary. Oooo... where can I get this 'summer.jpg'? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
On Mon, Jun 23, 2008 at 5:41 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Army, 1990-1995, crypto-ranger! 96 Bravo? That was the alternative MOS I was considering upon enlisting in the Army a few years after the Coast Guard. It was between that and 68W (combat medic), and the latter prevailed. I had hoped to work in to a reclass of 18D (SpecOps Med Sergeant), but before I even got through the DTP period pre-Basic, I had some family things come up that needed to take precedence. Still today, I don't feel as though I'm yet done with the service. So hopefully after Saturday, when the pre-wife becomes my first wife, we can discuss the possibility of me joining the Guard or a Reserve branch. I just want to try to do it before I hit the age limit for active --- which is coming up quicker and quicker. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Re: Re: Military Service WAS [PHP] Capitalization of variable
On Mon, Jun 23, 2008 at 5:58 PM, Dotan Cohen [EMAIL PROTECTED] wrote: Although it seems to install fine in the latest (1.0!) Wine, the game is unplayable. The screen just flashes. I'll wait until games4lin comes out, I suppose. Or not. Check your video drivers. Wine 1.0 should be sufficient for running older abandonware like that. I've yet to install the 1.0 on any of my systems yet. Let me know off-list how your experience has been so far, Dotan. -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Uploading files without saving them
On Mon, Jun 23, 2008 at 8:17 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Oooo... where can I get this 'summer.jpg'? It's an Easter Egg embedded in the $_FILES array under an undocumented hidden key. ?php move_uploaded_file($_FILES['BITE_MY_SHINY_METAL_ASS'],dirname(__FILE__).'/summer.jpg'); ? -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Military Service WAS [PHP] Capitalization of variable
When I joined it was 29S, Field COMSEC Equipment Repairer, but in 95 just before I got out they moved it out of signal into ordnance and I think it was 35E. What is the age limit now? It doesn't matter much, I don't think I could run 2 miles in less than 8 hours now anyway. ;-) -Shawn Daniel Brown wrote: On Mon, Jun 23, 2008 at 5:41 PM, Shawn McKenzie [EMAIL PROTECTED] wrote: Army, 1990-1995, crypto-ranger! 96 Bravo? That was the alternative MOS I was considering upon enlisting in the Army a few years after the Coast Guard. It was between that and 68W (combat medic), and the latter prevailed. I had hoped to work in to a reclass of 18D (SpecOps Med Sergeant), but before I even got through the DTP period pre-Basic, I had some family things come up that needed to take precedence. Still today, I don't feel as though I'm yet done with the service. So hopefully after Saturday, when the pre-wife becomes my first wife, we can discuss the possibility of me joining the Guard or a Reserve branch. I just want to try to do it before I hit the age limit for active --- which is coming up quicker and quicker. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Memory profiling tools
Hi all. I have a rather large application on which I need to do some memory performance profiling and optimization. Basically it's eating up more RAM than it should and I'm not sure why. I have some suspects, but nothing concrete. Are there any (open source) tools that people can recommend for such a task? Or any programming tricks one can recommend to identify the size of a given data structure? Windows or Linux are both fine; I have access to both. -- Larry Garfield [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Memory profiling tools
Larry Garfield wrote: Hi all. I have a rather large application on which I need to do some memory performance profiling and optimization. Basically it's eating up more RAM than it should and I'm not sure why. I have some suspects, but nothing concrete. Are there any (open source) tools that people can recommend for such a task? Or any programming tricks one can recommend to identify the size of a given data structure? Windows or Linux are both fine; I have access to both. You could use ticks: http://www.davedevelopment.co.uk/2008/05/12/log-memory-usage-using-declare-and-ticks-in-php/ though see my comments (#7) about why you don't want to store the info in php itself :P -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php