php-general Digest 28 Aug 2008 07:22:34 -0000 Issue 5649
php-general Digest 28 Aug 2008 07:22:34 - Issue 5649 Topics (messages 278827 through 278857): Re: Sending a POST variable to an ASP page 278827 by: Nathan Nobbe 278834 by: shaun thornburgh 278835 by: Nathan Nobbe 278855 by: Nathan Nobbe Re: concatenating with . or , 278828 by: Robert Cummings 278837 by: tedd 278838 by: tedd 278845 by: tedd 278847 by: Stut 278849 by: Jason Pruim Re: Regex for email validation 278829 by: Per Jessen 278836 by: Lupus Michaelis 278840 by: tedd 278843 by: tedd 278844 by: Kevin Waterson 278848 by: mike 278857 by: Per Jessen About the magic function __call 278830 by: Paulo Sousa 278831 by: Nathan Nobbe 278832 by: Nathan Nobbe 278833 by: Paulo Sousa Re: Variable name as a string 278839 by: tedd 278841 by: Maciek Sokolewicz 278842 by: Micah Gersten 278846 by: tedd 278850 by: Shawn McKenzie 278851 by: Micah Gersten 278852 by: Chris 278853 by: Ross McKay 278854 by: Ross McKay ! function_exists(curl_init) BUT curl_init exists and works. 278856 by: daniel danon 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--- heres a simple example shaun, $cH = curl_init('url to asp box'); curl_setopt_array( $cH, array( CURLOPT_POST = TRUE, * CURLOPT_POSTFIELDS* = array( 'yourParamName' = 'yourParamVal' ) )); $response = curl_exec($cH); personally though, i prefer the http extension and its much cleaner api. -nathan ---End Message--- ---BeginMessage--- To: [EMAIL PROTECTED] Date: Wed, 27 Aug 2008 14:07:31 -0500 From: [EMAIL PROTECTED] Subject: [PHP] Re: Sending a POST variable to an ASP page shaun thornburgh wrote: Hi,I need to send a post variable to an ASP page, can I do this within my PHP script?I don't need to view the page, or get any acknowledgment back, just send the single POST variable... Thanks for your advice _ Get Hotmail on your mobile from Vodafone http://clk.atdmt.com/UKM/go/107571435/direct/01/ If you don't mind building the headers yourself in the code, it's just a matter of using fsockopen() and then fputs(). -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hi Shawn, I have tried the following but it doesnt seem to work: foreach($_POST['newsletter-group'] as $key = $value){ $_POST['addressbookid'] = $value; $out = POST /signup.ashx;$fp = fsockopen(server-url, 80, $errno, $errstr, 30); if (!$fp) {echo $errstr ($errno)br /\n; } else { fputs($fp, $out . \r\n);} fclose($fp); } Am I building the headers incorrectly? _ Make a mini you on Windows Live Messenger! http://clk.atdmt.com/UKM/go/107571437/direct/01/---End Message--- ---BeginMessage--- On Wed, Aug 27, 2008 at 2:41 PM, shaun thornburgh [EMAIL PROTECTED] wrote: To: [EMAIL PROTECTED] Date: Wed, 27 Aug 2008 14:07:31 -0500 From: [EMAIL PROTECTED] Subject: [PHP] Re: Sending a POST variable to an ASP page shaun thornburgh wrote: Hi,I need to send a post variable to an ASP page, can I do this within my PHP script?I don't need to view the page, or get any acknowledgment back, just send the single POST variable...Thanks for your advice _ Get Hotmail on your mobile from Vodafone http://clk.atdmt.com/UKM/go/107571435/direct/01/ If you don't mind building the headers yourself in the code, it's just a matter of using fsockopen() and then fputs(). -Shawn -- PHP General Mailing List ( http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hi Shawn, I have tried the following but it doesnt seem to work: foreach($_POST['newsletter-group'] as $key = $value){ $_POST['addressbookid'] = $value; $out = POST /signup.ashx;$fp = fsockopen(server-url, 80, $errno, $errstr, 30); if (!$fp) {echo $errstr ($errno)br /\n; } else { fputs($fp, $out . \r\n);} fclose($fp); } Am I building the headers incorrectly? _ Make a mini you on Windows Live Messenger! http://clk.atdmt.com/UKM/go/107571437/direct/01/ dude, honestly, why would you take that approach unless you had a particular reason for it? especially when you can knock it out in 2 minutes w/ curl... btw, google is pretty key as usual, try googling 'php curl post' ;) -nathan ---End Message---
[PHP] ! function_exists(curl_init) BUT curl_init exists and works.
! function_exists(curl_init) BUT curl_init exists and works. After my host blocked the file_get_contents and other functions, I am using CURL - but when I do function_exists(curl_init) it returns false but I can still use it anyone knows why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Regex for email validation
tedd wrote: The WG did solve this issue and came up with a way to do that -- the current algorithm is called PUNYCODE which allows Unicode code-points to appear in a domain name. I know this to be true because I have several domains that lie outside the standard ASCII AND they are real domains that have real web sites. That was never in dispute, Tedd - IDNs are well known, certainly around here. If you have a browser (like Safari) that is capable of showing the URL in it's native charset, then you will see the Rx.com in the url. If not, then you'll see xn--u2g.com. I think most browsers will work with IDNs today, possibly with the exception of MSIE (?) Now, email can be sent from that domain, but I have not found an application that will send nor receive it. The software has simply not caught up with the technology. Which is weird, to say the least. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Regex for email validation
Kevin Waterson wrote: There is no silver bullet regex to validate all RFC compliant email address. Many have tried, but they all fail at some point. The best you can do is cater to most _sane_ addresses. Exactly - the regex is a quick/cheap sanity check, nothing more. To go all the way, you could try doing an SMTP VRFY against the MX for the domain, but it's really taking it a bit too far. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Regex for email validation
That Rx.com domain name is really great stuff, but how do you expect the average user to type it in? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Regex for email validation
Yeti wrote: That Rx.com domain name is really great stuff, but how do you expect the average user to type it in? Sorry, I don't understand the problem. The average user will obviously have a suitable keyboard, such as this for instance: http://en.wikipedia.org/wiki/Image:KB_Swiss.svg /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP IDE needed
Though vim is not a so-called IDE, actually it's quite handy. On Wed, Aug 27, 2008 at 1:06 PM, Sascha Braun [EMAIL PROTECTED]wrote: Hi people, I have a webproject which is round about 3 GB in size. I was usually using eclipse to work with the software but over time eclipse became very instable regarding that project. As soon as I open classes with 2000 or more lines of code in it, an out of memory error occours. So I need a new IDE for linux. Please tell me which IDE might be a true alternative for projects at that size. Thank you friends, kind regards, Sascha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- With best regards, Shelley Shyan http://phparch.cn
RE: [PHP] restricted file access
Thanks for your reply. But what happens if the file is situated here: www.site.com/include/documents/file.doc and someone knows that path file somehow or they get a program to crawl the site. Then they would be able to get that file. How do we prevent that? Thanks in advance. -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: 27 August 2008 17:29 To: php-general@lists.php.net Subject: Re: [PHP] restricted file access At 4:13 PM +0200 8/27/08, Angelo Zanetti wrote: Hi all, We have a site and we have created an admin section where the admin can upload documents. We have made a user login section where they can view a list of the documents (from the DB) and download the file. We want to make the site however not allow ppl to type in the path of the document and retrieve the file. How is this accomplished? Are the documents stored in a hidden / non-web accessible directory? Or is this restricted with APACHE? Please advise Well...none of the above. I would have a php script deliver the files and not allow the user to see the path. Here's an example: http://php1.net/b/file-browser/index.php It would be a simple matter not to show the path but rather just show what's available to the user and then let the php script deliver the product to the user via a common url, like the demo does. In other words, the most that any user can get is the path to one spot where your script deposits the file for download. 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] restricted file access
Through PHP you can access the filesystem, so the folder containing your documents doesn't even have to be on the website. I would do this way: A HREF=getfile.php?filename=something.docClick here/A And in the PHP file: file_get_contents(DOCFOLDER . $_GET['filename']) or something like this. SanTa - Original Message - From: Angelo Zanetti [EMAIL PROTECTED] To: 'tedd' [EMAIL PROTECTED]; php-general@lists.php.net Sent: Thursday, August 28, 2008 10:50 AM Subject: RE: [PHP] restricted file access Thanks for your reply. But what happens if the file is situated here: www.site.com/include/documents/file.doc and someone knows that path file somehow or they get a program to crawl the site. Then they would be able to get that file. How do we prevent that? Thanks in advance. -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: 27 August 2008 17:29 To: php-general@lists.php.net Subject: Re: [PHP] restricted file access At 4:13 PM +0200 8/27/08, Angelo Zanetti wrote: Hi all, We have a site and we have created an admin section where the admin can upload documents. We have made a user login section where they can view a list of the documents (from the DB) and download the file. We want to make the site however not allow ppl to type in the path of the document and retrieve the file. How is this accomplished? Are the documents stored in a hidden / non-web accessible directory? Or is this restricted with APACHE? Please advise Well...none of the above. I would have a php script deliver the files and not allow the user to see the path. Here's an example: http://php1.net/b/file-browser/index.php It would be a simple matter not to show the path but rather just show what's available to the user and then let the php script deliver the product to the user via a common url, like the demo does. In other words, the most that any user can get is the path to one spot where your script deposits the file for download. 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 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] Manual Coding vs. CMS Systems
Hi all! And again, a slightly off topic subject for you all from yours truly :o) I have a customer (helicopter company) who is willing to give me some free flights for a small website. Now, I have been talking to my sister in law who is a designer (note: designer, not coder). She said I should be using Joomla or something of that sort and change it to fit my needs. I, on the other hand, am more into using my own code, starting with the first Hello World and ending up being a full fledged CMS with just the functions the customer needs. I have a lot of code in my code database already, so it would be a lot of copy and paste and a bit of coding. I think the whole thing will take about 60 work hours. I am into hand coding, to be honest. Using Joomla or other CMS systems is fine, but I want this to be a nice point on my CV if I ever need to get a new job. And, most important to me, it _feels_ much better to have it done from scratch all by yourself, doesn't it? So, I would love to hear your opinion on this. Sorry for being a bit off topic here as this is not 100% coding related, but I _had_ to get some feedback to backup my position ;o) Cheers! Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: ! function_exists(curl_init) BUT curl_init exists and works.
daniel danon schrieb: ! function_exists(curl_init) BUT curl_init exists and works. After my host blocked the file_get_contents and other functions, I am using CURL - but when I do function_exists(curl_init) it returns false but I can still use it anyone knows why? Hi Daniel, read here: http://de3.php.net/manual/en/function.function-exists.php Where is defined the curl_init function? this ist maybe why function_exists doesnt Work as you expected. Check the curl_init() with * method_exists() * is_callable() * get_defined_functions() Regards Carlos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Manual Coding vs. CMS Systems
On Aug 28, 2008, at 5:17 AM, Auto-Deppe, C. Haensel wrote: Hi all! And again, a slightly off topic subject for you all from yours truly :o) I have a customer (helicopter company) who is willing to give me some free flights for a small website. Now, I have been talking to my sister in law who is a designer (note: designer, not coder). She said I should be using Joomla or something of that sort and change it to fit my needs. I, on the other hand, am more into using my own code, starting with the first Hello World and ending up being a full fledged CMS with just the functions the customer needs. I have a lot of code in my code database already, so it would be a lot of copy and paste and a bit of coding. I think the whole thing will take about 60 work hours. I am into hand coding, to be honest. Using Joomla or other CMS systems is fine, but I want this to be a nice point on my CV if I ever need to get a new job. And, most important to me, it _feels_ much better to have it done from scratch all by yourself, doesn't it? So, I would love to hear your opinion on this. Sorry for being a bit off topic here as this is not 100% coding related, but I _had_ to get some feedback to backup my position ;o) Cheers! Chris Hi Chris, I have used Joomla and wordpress as CMS's before on different sites. Both have worked great for the purposes of the sites. The company that I freelance with uses them as a base on almost all the sites that they work on, and then I come in and clean it up a little... valid XHTML/ CSS section 508 compliance, things like that. What I'm trying to get at (And please keep in mind I still haven't had any coffee this morning...) is that hand coding everything is great I do all my own hand coding for my projects. But there is nothing wrong with using an established base if it suits your needs. And from a freelance standpoint, there are alot of jobs available for CMS customization, so some experience in that, might help get some jobs for the future. Good luck! -- 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: concatenating with . or ,
On 27 August 2008 18:45, Jay Blanchard advised: tedd-o has been around for a long time and has witnessed the evolution of said blow-ups dolls enough to know when he sees quality, form and function. I think I may be the second oldest regular on the listtedd and I had that discussion once before. So I am stuck neither in the toolbox or the crayon box. H'mm -- I think I might be competing in the golden oldies category, too, although from comments made on the list I think tedd at least beats me. I guess I'm a bit of a rusty scalpel these days (used to be good at fixing other people's problems / never seen the point(!) of blow-ups) -- so does that put me in an alternative toolbox??! ;) Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 812 4730 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Manual Coding vs. CMS Systems
Auto-Deppe, C. Haensel schrieb: Hi all! And again, a slightly off topic subject for you all from yours truly :o) I have a customer (helicopter company) who is willing to give me some free flights for a small website. Now, I have been talking to my sister in law who is a designer (note: designer, not coder). She said I should be using Joomla or something of that sort and change it to fit my needs. I, on the other hand, am more into using my own code, starting with the first Hello World and ending up being a full fledged CMS with just the functions the customer needs. I have a lot of code in my code database already, so it would be a lot of copy and paste and a bit of coding. I think the whole thing will take about 60 work hours. I am into hand coding, to be honest. Using Joomla or other CMS systems is fine, but I want this to be a nice point on my CV if I ever need to get a new job. And, most important to me, it _feels_ much better to have it done from scratch all by yourself, doesn't it? So, I would love to hear your opinion on this. Sorry for being a bit off topic here as this is not 100% coding related, but I _had_ to get some feedback to backup my position ;o) Cheers! Chris Hi Chris, in my Opinion in this case the CMS the best way to build a small website without too much unnecesary develop work. I think, if you use a CMS to build the (basic) Website, like sites, Forms and others, you will be able to offer more Add ons for your Client. I think is not really important, what kind of CMS you will use, because a small site do not need high level programming, or special caching for better performance or something like this. Hand Coding will eat more time to get the same result as the CMS itself, and your Client will pay more (if pay by hour ;-). With CMS you can offer other works like Data Integration, Tree Navigation, News, Feeds, Ajax and so one. I hope this was helpfully Regards Carlos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Sending a POST variable to an ASP page
Date: Wed, 27 Aug 2008 15:07:53 -0600From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [PHP] Re: Sending a POST variable to an ASP page well that would constitute a particular reason :) On Wed, Aug 27, 2008 at 2:55 PM, shaun thornburgh [EMAIL PROTECTED] wrote: Date: Wed, 27 Aug 2008 14:45:42 -0600 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: php-general@lists.php.net Subject: Re: [PHP] Re: Sending a POST variable to an ASP page On Wed, Aug 27, 2008 at 2:41 PM, shaun thornburgh [EMAIL PROTECTED] wrote:To: php-general@lists.php.net Date: Wed, 27 Aug 2008 14:07:31 -0500 From: [EMAIL PROTECTED] Subject: [PHP] Re: Sending a POST variable to an ASP page shaun thornburgh wrote: Hi,I need to send a post variable to an ASP page, can I do this within my PHP script?I don't need to view the page, or get any acknowledgment back, just send the single POST variable...Thanks for your advice _ Get Hotmail on your mobile from Vodafone http://clk.atdmt.com/UKM/go/107571435/direct/01/ If you don't mind building the headers yourself in the code, it's just a matter of using fsockopen() and then fputs(). -Shawn -- PHP General Mailing List ( http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hi Shawn, I have tried the following but it doesnt seem to work: foreach($_POST['newsletter-group'] as $key = $value){ $_POST['addressbookid'] = $value; $out = POST /signup.ashx; $fp = fsockopen(server-url, 80, $errno, $errstr, 30); if (!$fp) { echo $errstr ($errno)br /\n; } else { fputs($fp, $out . \r\n); } fclose($fp); } Am I building the headers incorrectly? _ Make a mini you on Windows Live Messenger! http://clk.atdmt.com/UKM/go/107571437/direct/01/dude, honestly, why would you take that approach unless you had a particular reason for it? especially when you can knock it out in 2 minutes w/ curl... btw, google is pretty key as usual, try googling 'php curl post' ;) -nathan Hi Nathan, Unfortunately I can't install CURL on my server. Win £3000 to spend on whatever you want at Uni! Click here to WIN!Hi guys, Can anyone help with how I need to add the headers to the following code please?foreach($_POST['newsletter-group'] as $key = $value){ $_POST['addressbookid'] = $value; $out = POST /signup.ashx; $fp = fsockopen(server-url, 80, $errno, $errstr, 30); if (!$fp) { echo $errstr ($errno)br /\n; } else { fputs($fp, $out . \r\n); } fclose($fp); }Many thanks _ Win a voice over part with Kung Fu Panda Live Search and 100’s of Kung Fu Panda prizes to win with Live Search http://clk.atdmt.com/UKM/go/107571439/direct/01/
RE: [PHP] Re: concatenating with . or ,
On 27 August 2008 19:04, Jay Blanchard advised: [snip] My memory may be a bit off but I think tedd is around 4017 (he uses rocks if you can recall) [/snip] I am certainly no less virile. Let's see if anyone can GREP this reference for my age; I was born The Day the Music Died Oh, so you're a couple of months older than my younger brother...!! ;) ;) Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 812 4730 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Variable name as a string
On 28 August 2008 04:26, Micah Gersten advised: You cannot have anything in the brackets for the name in a checkbox group. The brackets specify that it is an array. The name of the array is the key in $_POST that contains the values of the checkbox group that were checked. You can have as many groups as you like. So how come I have several million *working* forms that do exactly what you say I can't? (OK, so I exaggerate, but it's still significantly more than none! ;) Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 812 4730 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Variable name as a string
On 28 August 2008 00:04, tedd advised: At 12:07 AM +0200 8/28/08, Maciek Sokolewicz wrote: input type=check name=my_checkboxes[1] value=1 / 1br / input type=check name=my_checkboxes[2] value=1 / 1br / input type=check name=my_checkboxes[3] value=1 / 1br / input type=check name=my_checkboxes[4] value=1 / 1br / $my_checked_checkboxes = $_REQUEST['my_checkboxes']; // whichever you wish, $_GET or $_POST, I don't care right now; you choose. Yeah, I remember that -- but a bit different. Don't use indexes, but rather just my_checkboxes[] and on the php side $my_checked_checkboxes = $_REQUEST['my_checkboxes']; The array $my_checked_checkboxes equals the $_REQUEST$_/$_POST/$_GET array -- all the indexes will match (i.e., $my_checked_checkboxes[3] is the same as $_POST[3]). The only problem I have with that method is that the [] becomes confusing with dealing with javascript that can also handles the form. One of the ways to get around this is to: input type=checkbox name=my_checkboxes[] id=my_checkbox_1 value=1 That way php will use name and javascript will use id. Why??? form name=my_form ... input type=checkbox name=my_checkboxes[] ... /form script language=Javascript checkboxes = document.my_form[my_checkboxes[]]; /script Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 812 4730 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP IDE needed
2008/8/28 Shelley [EMAIL PROTECTED]: Though vim is not a so-called IDE, actually it's quite handy. And as PHP is not [generally] compiled, no IDE is needed. VIM is great, and for a GUI text editor I use Kate. Note that there will soon be a VIM mode in Kate! I cannot wait! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü
Re: [PHP] PHP IDE needed
On 28 Aug 2008, at 11:57, Dotan Cohen wrote: 2008/8/28 Shelley [EMAIL PROTECTED]: Though vim is not a so-called IDE, actually it's quite handy. And as PHP is not [generally] compiled, no IDE is needed. VIM is great, and for a GUI text editor I use Kate. Note that there will soon be a VIM mode in Kate! I cannot wait! What does compilation have to do with it? C/C++ are rarely interpreted but that certainly doesn't dictate a need for an IDE. This question comes up so often it's painful, but I don't think I've ever actually answered it. I use TextMate most of the time, Coda for remote projects and occasionally Zend Studio when I need to step through code. I've also gone through phases of using vi, vim, pico, nano, emacs, epsilon, kate, notepad(!), notepad2, aptana, eclipse, and many more I can't remember. It's text, use what works for you. I recently made the mistake of putting over 100k fairly small data files into the tree for my current project and it completely killed TextMate. Best option for lots of files or very large files is to disable any automatic scanning your editor does. You may lose some of the nice-to-have features like code completion but to me that's a small price to pay for being able to do anything at all. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP IDE needed
Please tell me which IDE might be a true alternative for projects at that size. Don't know for sure, but you can try Netbeans for PHP : http://php.netbeans.org/ kind regards, Brice Favre Thank you friends, kind regards, Sascha -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: concatenating with . or ,
[snip] There she was friends and neighbors in all her radiant beauty eating on a raisin, a pomegranate, a bowl of chitlins, two bananas, three Hershey bars, listening to the Grand Old Opry of TV, sipping on a RC coke a cola and signing Does your crewing gum lose it's favor and the bed post over night. [/snip] Too easy - Ahab the Arab, Ray Stevens (holy crap...this is on my iPod!) [snip] Ou ee, ou ah ah, ting tang wala wala bing bang? [/snip] Slightly harder - Witch Doctor. I want to say it was done by the guy who did Alvin and the Chipmunks, but I could be wrong there. Whose number one best selling song was a rock masterpiece with these lyrics? There's a message floatin' in the air Come from crazy horses ridin' everywhere It's a warning, it's in every tongue Gotta stop them crazy horses on the run -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Manual Coding vs. CMS Systems
Auto-Deppe, C. Haensel schreef: Hi all! And again, a slightly off topic subject for you all from yours truly :o) I have a customer (helicopter company) who is willing to give me some free flights for a small website. Now, I have been talking to my sister in law who is a designer (note: designer, not coder). She said I should be using Joomla or something of that sort and change it to fit my needs. designers should keep their mouths shut when it comes to code/coding ... I don't care if she's your sister or the queen of england. do we tell them what to draw? not if your smart, if your smart you'll only ever tell them when something is impossible to implement (this-is-the-web-not-a-sheet-of-A4), or when something is not cost effective to implement (i.e. the client will never agree to pay for X) make your own mind up as to what is the most effective solution. I, on the other hand, am more into using my own code, starting with the first Hello World and ending up being a full fledged CMS with just the functions the customer needs. I have a lot of code in my code database already, so it would be a lot of copy and paste and a bit of coding. I think the whole thing will take about 60 work hours. Im guessing you'd spend that much time just implementing a decent design into a Joomla or whatever. I mean a design that doesn't look like it was generated by Frontpage. I am into hand coding, to be honest. Using Joomla or other CMS systems is fine, but I want this to be a nice point on my CV if I ever need to get a new job. And, most important to me, it _feels_ much better to have it done from scratch all by yourself, doesn't it? So, I would love to hear your opinion on this. Sorry for being a bit off topic here as this is not 100% coding related, but I _had_ to get some feedback to backup my position ;o) Cheers! Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Manual Coding vs. CMS Systems
-:- -Original Message- -:- From: Jochem Maas [mailto:[EMAIL PROTECTED] -:- Sent: Thursday, August 28, 2008 1:46 PM -:- To: [EMAIL PROTECTED] -:- Cc: php-general@lists.php.net -:- Subject: Re: [PHP] Manual Coding vs. CMS Systems -:- -:- Auto-Deppe, C. Haensel schreef: -:- Hi all! -:- -:- And again, a slightly off topic subject for you all from -:- yours truly :o) -:- -:- I have a customer (helicopter company) who is willing -:- to give me some free -:- flights for a small website. -:- -:- Now, I have been talking to my sister in law who is a -:- designer (note: -:- designer, not coder). She said I should be using Joomla -:- or something of that -:- sort and change it to fit my needs. -:- -:- designers should keep their mouths shut when it comes to -:- code/coding ... -:- I don't care if she's your sister or the queen of england. -:- -:- do we tell them what to draw? not if your smart, if your -:- smart you'll only -:- ever tell them when something is impossible to implement -:- (this-is-the-web-not-a-sheet-of-A4), -:- or when something is not cost effective to implement (i.e. -:- the client will never -:- agree to pay for X) -:- -:- make your own mind up as to what is the most effective solution. -:- -:- I, on the other hand, am more into using my own code, -:- starting with the -:- first Hello World and ending up being a full fledged -:- CMS with just the -:- functions the customer needs. I have a lot of code in my -:- code database -:- already, so it would be a lot of copy and paste and a -:- bit of coding. I think -:- the whole thing will take about 60 work hours. -:- -:- Im guessing you'd spend that much time just implementing a -:- decent design into -:- a Joomla or whatever. I mean a design that doesn't look -:- like it was generated -:- by Frontpage. -:- -:- I am into hand coding, to be honest. Using Joomla or -:- other CMS systems is -:- fine, but I want this to be a nice point on my CV if I -:- ever need to get a -:- new job. And, most important to me, it _feels_ much -:- better to have it done -:- from scratch all by yourself, doesn't it? -:- -:- So, I would love to hear your opinion on this. Sorry for -:- being a bit off -:- topic here as this is not 100% coding related, but I -:- _had_ to get some -:- feedback to backup my position ;o) -:- -:- Cheers! -:- -:- -:- Chris -:- -:- -:- -:- -:- Hahaha.. THAT one told exactly what I feel! Thanks :o))) Also a big thanks to the others who already replied. Waiting for more on that Great one Jochem!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] grab the complete commandline used ...
hiya, anyone know if it's possible to grab the entire commandline that was used to start up a php script on the CLI, an example of what I'm looking to grab from within the script (test.php in this example): php -qC -ddisplay_errors=1 ./test.php -o -d -e [EMAIL PROTECTED] -f ./last.log | grep Exception of course I know what the script name and arguments are but I'd rather like the whole enchilada (php binary and it's args + the pipe to grep). possible? bad idea? down boy? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Manual Coding vs. CMS Systems
(is Joomla a kind of wysiwyg editor? Does CMS mean content management system? ..like blog software?) I leave the commentary about CMS Systems/Joomla -vs.- hand-coding to the experts here who have had way more experience with both than I have... What I can offer may be considered OT or just plain obvious/assumed, but for what it's worth: c.haensel : How you look on paper, or even what leads to the most lucrative position for you in this competitive market... neither are anywhere near as important as doing what your desire/intuition tell you. If you want to LEARN something, then go there. What you put your attention on, grows. What do you want to grow? personally, I like to go for the deepest thing that is still *fun* for me and then once I know where the power is, only then I feel free to let more superficial tools do the work when that suits the job better... I sleep better when I know what the bots are actually doing for me ;-) (at the moment I am still re-familiarizing myself with BBedit ;-) new job. And, most important to me, it _feels_ much better to have it done from scratch all by yourself, doesn't it?
Re: [PHP] Manual Coding vs. CMS Systems
Joomla is a large content management system that allows novice people to edit the pages without touching the actual design. It's all template driven and works quite well. Not the most lightweight solution though... On Aug 28, 2008, at 8:37 AM, Govinda wrote: (is Joomla a kind of wysiwyg editor? Does CMS mean content management system? ..like blog software?) I leave the commentary about CMS Systems/Joomla -vs.- hand-coding to the experts here who have had way more experience with both than I have... What I can offer may be considered OT or just plain obvious/assumed, but for what it's worth: c.haensel : How you look on paper, or even what leads to the most lucrative position for you in this competitive market... neither are anywhere near as important as doing what your desire/intuition tell you. If you want to LEARN something, then go there. What you put your attention on, grows. What do you want to grow? personally, I like to go for the deepest thing that is still *fun* for me and then once I know where the power is, only then I feel free to let more superficial tools do the work when that suits the job better... I sleep better when I know what the bots are actually doing for me ;-) (at the moment I am still re-familiarizing myself with BBedit ;-) new job. And, most important to me, it _feels_ much better to have it done from scratch all by yourself, doesn't it? -- 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] Manual Coding vs. CMS Systems
Auto-Deppe, C. Haensel schrieb: -:- -Original Message- -:- From: Jochem Maas [mailto:[EMAIL PROTECTED] -:- Sent: Thursday, August 28, 2008 1:46 PM -:- To: [EMAIL PROTECTED] -:- Cc: php-general@lists.php.net -:- Subject: Re: [PHP] Manual Coding vs. CMS Systems -:- -:- Auto-Deppe, C. Haensel schreef: -:- Hi all! -:- -:- And again, a slightly off topic subject for you all from -:- yours truly :o) -:- -:- I have a customer (helicopter company) who is willing -:- to give me some free -:- flights for a small website. -:- -:- Now, I have been talking to my sister in law who is a -:- designer (note: -:- designer, not coder). She said I should be using Joomla -:- or something of that -:- sort and change it to fit my needs. -:- -:- designers should keep their mouths shut when it comes to -:- code/coding ... -:- I don't care if she's your sister or the queen of england. -:- -:- do we tell them what to draw? not if your smart, if your -:- smart you'll only -:- ever tell them when something is impossible to implement -:- (this-is-the-web-not-a-sheet-of-A4), -:- or when something is not cost effective to implement (i.e. -:- the client will never -:- agree to pay for X) -:- -:- make your own mind up as to what is the most effective solution. -:- -:- I, on the other hand, am more into using my own code, -:- starting with the -:- first Hello World and ending up being a full fledged -:- CMS with just the -:- functions the customer needs. I have a lot of code in my -:- code database -:- already, so it would be a lot of copy and paste and a -:- bit of coding. I think -:- the whole thing will take about 60 work hours. -:- -:- Im guessing you'd spend that much time just implementing a -:- decent design into -:- a Joomla or whatever. I mean a design that doesn't look -:- like it was generated -:- by Frontpage. -:- -:- I am into hand coding, to be honest. Using Joomla or -:- other CMS systems is -:- fine, but I want this to be a nice point on my CV if I -:- ever need to get a -:- new job. And, most important to me, it _feels_ much -:- better to have it done -:- from scratch all by yourself, doesn't it? -:- -:- So, I would love to hear your opinion on this. Sorry for -:- being a bit off -:- topic here as this is not 100% coding related, but I -:- _had_ to get some -:- feedback to backup my position ;o) -:- -:- Cheers! -:- -:- -:- Chris -:- -:- -:- -:- -:- Hahaha.. THAT one told exactly what I feel! Thanks :o))) Also a big thanks to the others who already replied. Waiting for more on that Great one Jochem!! Kids Carlos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Manual Coding vs. CMS Systems
-:- -Original Message- -:- From: Carlos Medina [mailto:[EMAIL PROTECTED] -:- Sent: Thursday, August 28, 2008 2:48 PM -:- To: php-general@lists.php.net -:- Subject: Re: [PHP] Manual Coding vs. CMS Systems -:- -:- Auto-Deppe, C. Haensel schrieb: -:- -:- -Original Message- -:- -:- From: Jochem Maas [mailto:[EMAIL PROTECTED] -:- -:- Sent: Thursday, August 28, 2008 1:46 PM -:- -:- To: [EMAIL PROTECTED] -:- -:- Cc: php-general@lists.php.net -:- -:- Subject: Re: [PHP] Manual Coding vs. CMS Systems -:- -:- -:- -:- Auto-Deppe, C. Haensel schreef: -:- -:- Hi all! -:- -:- -:- -:- And again, a slightly off topic subject for you all from -:- -:- yours truly :o) -:- -:- -:- -:- I have a customer (helicopter company) who is willing -:- -:- to give me some free -:- -:- flights for a small website. -:- -:- -:- -:- Now, I have been talking to my sister in law who is a -:- -:- designer (note: -:- -:- designer, not coder). She said I should be using Joomla -:- -:- or something of that -:- -:- sort and change it to fit my needs. -:- -:- -:- -:- designers should keep their mouths shut when it comes to -:- -:- code/coding ... -:- -:- I don't care if she's your sister or the queen of england. -:- -:- -:- -:- do we tell them what to draw? not if your smart, if your -:- -:- smart you'll only -:- -:- ever tell them when something is impossible to implement -:- -:- (this-is-the-web-not-a-sheet-of-A4), -:- -:- or when something is not cost effective to implement (i.e. -:- -:- the client will never -:- -:- agree to pay for X) -:- -:- -:- -:- make your own mind up as to what is the most -:- effective solution. -:- -:- -:- -:- I, on the other hand, am more into using my own code, -:- -:- starting with the -:- -:- first Hello World and ending up being a full fledged -:- -:- CMS with just the -:- -:- functions the customer needs. I have a lot of code in my -:- -:- code database -:- -:- already, so it would be a lot of copy and paste and a -:- -:- bit of coding. I think -:- -:- the whole thing will take about 60 work hours. -:- -:- -:- -:- Im guessing you'd spend that much time just implementing a -:- -:- decent design into -:- -:- a Joomla or whatever. I mean a design that doesn't look -:- -:- like it was generated -:- -:- by Frontpage. -:- -:- -:- -:- I am into hand coding, to be honest. Using Joomla or -:- -:- other CMS systems is -:- -:- fine, but I want this to be a nice point on my CV if I -:- -:- ever need to get a -:- -:- new job. And, most important to me, it _feels_ much -:- -:- better to have it done -:- -:- from scratch all by yourself, doesn't it? -:- -:- -:- -:- So, I would love to hear your opinion on this. Sorry for -:- -:- being a bit off -:- -:- topic here as this is not 100% coding related, but I -:- -:- _had_ to get some -:- -:- feedback to backup my position ;o) -:- -:- -:- -:- Cheers! -:- -:- -:- -:- -:- -:- Chris -:- -:- -:- -:- -:- -:- -:- -:- -:- -:- -:- -:- Hahaha.. THAT one told exactly what I feel! Thanks :o))) -:- -:- Also a big thanks to the others who already replied. -:- Waiting for more on -:- that Great one Jochem!! -:- -:- -:- Kids -:- -:- Carlos -:- Watch him go... there is Carloos, the man infront of all the others. He is WAY ahead, and he is gaining more and more speed. He is an adult, and he is sooo adult that he can't even take a laugh... see him run from the humor! Faster and faster he runs... and there it is: the goal: an open casket for the people going through life without having a good laugh every now and then :o Aaanyhow... *grabs his coffee and keeps working while shaking his head because of the stupid comment posted by Carlos* Cheers :o -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP IDE needed
2008/8/28 Stut [EMAIL PROTECTED]: And as PHP is not [generally] compiled, no IDE is needed. VIM is great, and for a GUI text editor I use Kate. Note that there will soon be a VIM mode in Kate! I cannot wait! What does compilation have to do with it? C/C++ are rarely interpreted but that certainly doesn't dictate a need for an IDE. Non-compiled languages need only a text editor. Text editors have features such as code completion, library reference, code highlighting, code folding, multiple document interface, etc. Compiled languages need a compiler. Cooperation between the compiler and the text editor is done in an IDE. That's what the I in _Integrated_ Development Environment means. If you don't need to integrate with anything (specifically, a compiler) then you don't need an integrated development environment. This question comes up so often it's painful, but I don't think I've ever actually answered it. I use TextMate most of the time, Coda for remote projects and occasionally Zend Studio when I need to step through code. I've also gone through phases of using vi, vim, pico, nano, emacs, epsilon, kate, notepad(!), notepad2, aptana, eclipse, and many more I can't remember. It's text, use what works for you. I've also rarely answered this question, and I don't know why I spoke up today. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü
Re: [PHP] PHP IDE needed
On Thu, Aug 28, 2008 at 8:59 AM, Dotan Cohen [EMAIL PROTECTED] wrote: 2008/8/28 Stut [EMAIL PROTECTED]: And as PHP is not [generally] compiled, no IDE is needed. VIM is great, and for a GUI text editor I use Kate. Note that there will soon be a VIM mode in Kate! I cannot wait! What does compilation have to do with it? C/C++ are rarely interpreted but that certainly doesn't dictate a need for an IDE. Non-compiled languages need only a text editor. Text editors have features such as code completion, library reference, code highlighting, code folding, multiple document interface, etc. Compiled languages need a compiler. Cooperation between the compiler and the text editor is done in an IDE. That's what the I in _Integrated_ Development Environment means. If you don't need to integrate with anything (specifically, a compiler) then you don't need an integrated development environment. This question comes up so often it's painful, but I don't think I've ever actually answered it. I use TextMate most of the time, Coda for remote projects and occasionally Zend Studio when I need to step through code. I've also gone through phases of using vi, vim, pico, nano, emacs, epsilon, kate, notepad(!), notepad2, aptana, eclipse, and many more I can't remember. It's text, use what works for you. I've also rarely answered this question, and I don't know why I spoke up today. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü Well, while that is true about compiling, you're forgetting about other things inside of an IDE, such as debugging. Yes, you can just pull up a web browser or run the script at command line, but the debugger also has the stepping features and break points that can make debugging a whole lot easier and quicker. -- -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.
Re: [PHP] Manual Coding vs. CMS Systems
I've done quite a bit of work with Joomla, both installing/configuring as well as customizing and building components and modules. It's a great system to build off of, but it's a bit of a blank slate that's a little rough around the edges.I've also done my share of hand-coding, so don't think I'm Joomla biased. Depending on how many gadgets the client wants working, it can be quicker to start with Joomla and refine it. If what they want is some very basic functionality, it might be easier just to hand-code. I've found that even when the site is complicated, you may get close to your mark with Joomla (sort of like building something out of scraps you have laying around your tool shed) but that I've never quiet totally happy with how someone else has programmed their module/component for Joomla and end up customizing it anyway. I think Joomla itself could flow better and be more professional grade and many of the addons for it are programmed by amateurs or by people who have a different design sense than I do or flat out by people who understand coding but not human interaction... so the addon functions, but is painful for a human to use. I really like hand-coding things over working with Joomla, just because I get to control how everything comes out. BUT.. if they're going to have a lot of content updates and/or require a lot of functionality that's already covered in Joomla and the many addons, then you might start there and just customize it. My biggest issue is that with my work, I don't have time/budget to ever really customize Joomla to the point where it feels right, so I appreciate how much good it can do... I feel like I'm leaving jobs half done sometimes. -TG - Original Message - From: Auto-Deppe, C. Haensel [EMAIL PROTECTED] To: php-general@lists.php.net Date: Thu, 28 Aug 2008 11:17:03 +0200 Subject: [PHP] Manual Coding vs. CMS Systems Hi all! And again, a slightly off topic subject for you all from yours truly :o) I have a customer (helicopter company) who is willing to give me some free flights for a small website. Now, I have been talking to my sister in law who is a designer (note: designer, not coder). She said I should be using Joomla or something of that sort and change it to fit my needs. I, on the other hand, am more into using my own code, starting with the first Hello World and ending up being a full fledged CMS with just the functions the customer needs. I have a lot of code in my code database already, so it would be a lot of copy and paste and a bit of coding. I think the whole thing will take about 60 work hours. I am into hand coding, to be honest. Using Joomla or other CMS systems is fine, but I want this to be a nice point on my CV if I ever need to get a new job. And, most important to me, it _feels_ much better to have it done from scratch all by yourself, doesn't it? So, I would love to hear your opinion on this. Sorry for being a bit off topic here as this is not 100% coding related, but I _had_ to get some feedback to backup my position ;o) Cheers! Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP IDE needed
On 28 Aug 2008, at 13:59, Dotan Cohen wrote: 2008/8/28 Stut [EMAIL PROTECTED]: And as PHP is not [generally] compiled, no IDE is needed. VIM is great, and for a GUI text editor I use Kate. Note that there will soon be a VIM mode in Kate! I cannot wait! What does compilation have to do with it? C/C++ are rarely interpreted but that certainly doesn't dictate a need for an IDE. Non-compiled languages need only a text editor. Text editors have features such as code completion, library reference, code highlighting, code folding, multiple document interface, etc. Compiled languages need a compiler. Cooperation between the compiler and the text editor is done in an IDE. That's what the I in _Integrated_ Development Environment means. If you don't need to integrate with anything (specifically, a compiler) then you don't need an integrated development environment. The point I was trying to make which I apparently didn't do very well was that the need for an IDE has nothing to do with whether the language you're using is compiled or interpreted, but instead with what you want from your development tools. You can develop with C++ without an IDE in exactly the same way as you can with PHP. All you're doing is replacing the PHP interpreter with a C++ compiler. That extra tool is still needed, but integration with an editor is entirely optional. And thanks for the tasty eggs! -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Manual Coding vs. CMS Systems OT
Watch him go... there is Carloos, the man infront of all the others. He is WAY ahead, and he is gaining more and more speed. He is an adult, and he is sooo adult that he can't even take a laugh... see him run from the humor! Faster and faster he runs... and there it is: the goal: an open casket for the people going through life without having a good laugh every now and then :o Aaanyhow... *grabs his coffee and keeps working while shaking his head because of the stupid comment posted by Carlos* Cheers :o :-) Kids Carlos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problem with HTML special characters
* 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 *, On my Website I have a NEWS section which I can edit On-Line over my Web-Interface but I have a problem with umlauts. I can enter the ü as uulm; and it is saved as such and it works properly but, if I now want to re-edit the NEWS, it is schown as ü in the input field of the TEXTAREA. grmpf Is there a command/function which can convert a whole text that it is shown correctly with all ...; sequences? 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] PHP IDE needed
2008/8/28 Dan Joseph [EMAIL PROTECTED]: Well, while that is true about compiling, you're forgetting about other things inside of an IDE, such as debugging. Yes, you can just pull up a web browser or run the script at command line, but the debugger also has the stepping features and break points that can make debugging a whole lot easier and quicker. Dan, you are right. A debugger most certainly makes it an IDE. As I don't use a debugger I never really paid attention to their existence. I stand corrected. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü
Re: [PHP] PHP IDE needed
2008/8/28 Stut [EMAIL PROTECTED]: And thanks for the tasty eggs! Eggs? I've obviously missed something. So long, and thanks for all the fish! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü
Re: [PHP] Problem with HTML special characters
I'm wondering why you are using uuml;. If you had your site in UTF-8 it would not be necessary. Even google is using UTF-8 these days. I guess your browser automaticly converts the uuml; in your textarea into the namespace-proper ü. You could try using htmlentities to convert the into amp; or use a different namespace. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: concatenating with . or ,
There we go .. from concatenation to Who knows a song nobody can guess right?. Crazy Horses - The Osmonds http://www.youtube.com/watch?v=MyRiNZDb5EY -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Variable name as a string
At 11:50 AM +0100 8/28/08, Ford, Mike wrote: On 28 August 2008 00:04, tedd advised: One of the ways to get around this is to: input type=checkbox name=my_checkboxes[] id=my_checkbox_1 value=1 That way php will use name and javascript will use id. Why??? form name=my_form ... input type=checkbox name=my_checkboxes[] ... /form script language=Javascript checkboxes = document.my_form[my_checkboxes[]]; /script Cheers! Mike Mike: There is no Why?, this is just another way to do it. In fact, there are other ways to accomplish this than what both of us have shown. What's nice about the technique I described here, at least for me, is that the value attribute applies to both name and id. PHP uses name and javascript uses id -- it's simple. However, I've been leaning to using getElementById() to create unobtrusive javascript, which can be used to isolate and use name as well, thus reducing the html code. I think my next demo will be to show these various techniques. 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] PHP IDE needed
That's an opinion that you state as fact. I use an IDE for PHP for function referencing is very PHP. The open declaration feature is very helpful in eclipse. Also, subeclipse is great too. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Dotan Cohen wrote: Non-compiled languages need only a text editor. Text editors have features such as code completion, library reference, code highlighting, code folding, multiple document interface, etc. Compiled languages need a compiler. Cooperation between the compiler and the text editor is done in an IDE. That's what the I in _Integrated_ Development Environment means. If you don't need to integrate with anything (specifically, a compiler) then you don't need an integrated development environment. This question comes up so often it's painful, but I don't think I've ever actually answered it. I use TextMate most of the time, Coda for remote projects and occasionally Zend Studio when I need to step through code. I've also gone through phases of using vi, vim, pico, nano, emacs, epsilon, kate, notepad(!), notepad2, aptana, eclipse, and many more I can't remember. It's text, use what works for you. I've also rarely answered this question, and I don't know why I spoke up today. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP IDE needed
2008/8/28 Micah Gersten [EMAIL PROTECTED]: That's an opinion that you state as fact. You must be new here :) -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü
Re: [PHP] PHP IDE needed
I've been on the list for over a month and I post quite a bit. I do the same thing apparently. See 'Re: [PHP] Re: Variable name as a string' thread. :-) Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Dotan Cohen wrote: 2008/8/28 Micah Gersten [EMAIL PROTECTED]: That's an opinion that you state as fact. You must be new here :)
Re: [PHP] grab the complete commandline used ...
Does this work? $command = implode(' ', $argv); http://us2.php.net/manual/en/reserved.variables.argv.php Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Jochem Maas wrote: hiya, anyone know if it's possible to grab the entire commandline that was used to start up a php script on the CLI, an example of what I'm looking to grab from within the script (test.php in this example): php -qC -ddisplay_errors=1 ./test.php -o -d -e [EMAIL PROTECTED] -f ./last.log | grep Exception of course I know what the script name and arguments are but I'd rather like the whole enchilada (php binary and it's args + the pipe to grep). possible? bad idea? down boy? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Variable name as a string
The reason why... (I think) Id defines the element as a part of the DOM - it is the identifier of the element Name tells the browser the name of the parameter (i.e. the mane to associate with the value), not of the element. PHP and JS are looking for two different things - one wants the element, one the parameter - so it makes sense (sort of) to use two different terms. Simcha Younger -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2008 4:40 PM To: php-general@lists.php.net Subject: RE: [PHP] Re: Variable name as a string At 11:50 AM +0100 8/28/08, Ford, Mike wrote: On 28 August 2008 00:04, tedd advised: One of the ways to get around this is to: input type=checkbox name=my_checkboxes[] id=my_checkbox_1 value=1 That way php will use name and javascript will use id. Why??? form name=my_form ... input type=checkbox name=my_checkboxes[] ... /form script language=Javascript checkboxes = document.my_form[my_checkboxes[]]; /script Cheers! Mike Mike: There is no Why?, this is just another way to do it. In fact, there are other ways to accomplish this than what both of us have shown. What's nice about the technique I described here, at least for me, is that the value attribute applies to both name and id. PHP uses name and javascript uses id -- it's simple. However, I've been leaning to using getElementById() to create unobtrusive javascript, which can be used to isolate and use name as well, thus reducing the html code. I think my next demo will be to show these various techniques. 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 No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.10/1638 - Release Date: 27/08/2008 19:06 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: concatenating with . or ,
At 11:00 AM +0100 8/28/08, Ford, Mike wrote: On 27 August 2008 18:45, Jay Blanchard advised: tedd-o has been around for a long time and has witnessed the evolution of said blow-ups dolls enough to know when he sees quality, form and function. I think I may be the second oldest regular on the listtedd and I had that discussion once before. So I am stuck neither in the toolbox or the crayon box. H'mm -- I think I might be competing in the golden oldies category, too, although from comments made on the list I think tedd at least beats me. I guess I'm a bit of a rusty scalpel these days (used to be good at fixing other people's problems / never seen the point(!) of blow-ups) -- so does that put me in an alternative toolbox??! ;) Cheers! Mike I'm really not that old, I wrote my first line of code in college in 1965 -- I even remember the problem. It was how long a swimming pool would take to drain to a trickle with the drain open and a garden hose filling it. Of course, we were given all the data to solve it, but it was more an adventure in keypunching than programming. Considering that I never took a deferment for college, I was drafted in 1966. I didn't even know what Vietnam was -- at the time. In my younger days growing up as a hillbilly in the Ozarks of Missouri, I remember talking to old men who were alive during the Civil War -- that kind of puts a span of time on things, huh? An interesting side note -- in the 5th grade (in the Ozarks), we were taught how to make a still. It was known that a few of us would actually go into the business and the school didn't want us to make go-blind stuff -- you see, all of the school board drank. I'm not that old, but I've seen more than most. 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] Manual Coding vs. CMS Systems
At 11:17 AM +0200 8/28/08, Auto-Deppe, C. Haensel wrote: Hi all! And again, a slightly off topic subject for you all from yours truly :o) I have a customer (helicopter company) who is willing to give me some free flights for a small website. Now, I have been talking to my sister in law who is a designer (note: designer, not coder). She said I should be using Joomla or something of that sort and change it to fit my needs. I, on the other hand, am more into using my own code, starting with the first Hello World and ending up being a full fledged CMS with just the functions the customer needs. I have a lot of code in my code database already, so it would be a lot of copy and paste and a bit of coding. I think the whole thing will take about 60 work hours. I am into hand coding, to be honest. Using Joomla or other CMS systems is fine, but I want this to be a nice point on my CV if I ever need to get a new job. And, most important to me, it _feels_ much better to have it done from scratch all by yourself, doesn't it? So, I would love to hear your opinion on this. Sorry for being a bit off topic here as this is not 100% coding related, but I _had_ to get some feedback to backup my position ;o) Cheers! Chris WOW! Wouldn't it be interesting if they gave you a pilot who was learning how to fly while you learned how to do their web site. Nothing of any value to add, just an observation. :-) While CMS can help to maintain a web site, I have not seen any worth a damn to create one. But then again, I hand-code both. 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] PHP IDE needed
2008/8/28 Micah Gersten [EMAIL PROTECTED]: You must be new here :) I've been on the list for over a month and I post quite a bit. It is an internet meme for those who express surprise at some old internet habits. Probably most familiar to readers of /.. It was meant as an in-joke, with absolutely no offense intended. Quite the opposite, it is most often said to veterans. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ä-ö-ü-ß-Ä-Ö-Ü
Re: [PHP] grab the complete commandline used ...
On Thu, 2008-08-28 at 10:22 -0500, Micah Gersten wrote: Does this work? $command = implode(' ', $argv); Only do it that way if it's for a log of general output. If you're going to punt any of those parts back to the OS in another command you'll need to properly escape them. 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] Manual Coding vs. CMS Systems
On Thu, 2008-08-28 at 08:46 -0400, Jason Pruim wrote: Joomla is a large content management system that allows novice people to edit the pages without touching the actual design. It's all template driven and works quite well. Not the most lightweight solution though... I've used quite a few different CMS systems and while Joomla was not the worst, I feel Joomla is not well designed from the perspective of the ignorant unwashed masses. I find this issue to be etremely salient when considered in light of Joomla's multilingual capabilities and menu capabilities. Being Canadian, many websites here require support for both English and French... it's just ridiculous to have to use a plugin module for language and to have to go to a completely different area of the site than the original content in question to add the French version. Similarly, I find the creation of menus very cumbersome. I feel Drupal does a much better job of handling these aspects. Also, Drupal was a lot faster... Joomla feels like I'm walking through a swamp of molasses. At any rate, to drive home the client perspective... they are only adding the simplest of content because they have difficulty using the site. As such they send me much of the content to add... this is completely counter to the purpose of the CMS. 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: concatenating with . or ,
On 28 August 2008 16:40, tedd advised: I'm really not that old, I wrote my first line of code in college in 1965 -- I even remember the problem. It was how long a swimming pool would take to drain to a trickle with the drain open and a garden hose filling it. Of course, we were given all the data to solve it, but it was more an adventure in keypunching than programming. Considering that I never took a deferment for college, I was drafted in 1966. I didn't even know what Vietnam was -- at the time. Ha! You beat me by about 10 years, then -- in 1966, I was a strange English kid attending 4th grade at a School in Santa Monica, CA. (My dad was in a group of engineers seconded to his company's Los Angeles parent for a year, and the company paid for families to go too, lucky us ;) Lots of memories and odd stories -- I think my favourite is one my dad told for many years afterwards about his first few days in the drawing office where they worked mainly in pencil, and the shock on the face of the prim elderly secretary when he raised his head and asked, in all innocence, if anybody had a rubber!!! And one complete non-memory -- as I was in the US for the summer of 1966, I had no idea the England football team had won the world cup until long after we returned to the UK in 1967. And I'm convinced that a year's acclimatization to California climate, conflicting with native British reflexes, accounts for my body's strange reaction to exactly 68 degrees Fahrenheit Cheers! Mike -- Mike Ford, Electronic Information Developer, C507, Leeds Metropolitan University, Civic Quarter Campus, Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 812 4730 To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: concatenating with . or ,
On Thu, 2008-08-28 at 06:40 -0500, Jay Blanchard wrote: [snip] There she was friends and neighbors in all her radiant beauty eating on a raisin, a pomegranate, a bowl of chitlins, two bananas, three Hershey bars, listening to the Grand Old Opry of TV, sipping on a RC coke a cola and signing Does your crewing gum lose it's favor and the bed post over night. [/snip] Too easy - Ahab the Arab, Ray Stevens (holy crap...this is on my iPod!) Ooh... Ray Stevens, my mom was a big fan of him. You guys are ancient. Personally though, I'm a big fan of the Shriner's Convention :) 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] PHP IDE needed
Shelley a écrit : Though vim is not a so-called IDE, actually it's quite handy. Actually, it is. An IDE is a glue between a set of tools. Vim provides every services you need, and it is scriptable. -- 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] Re: concatenating with . or ,
On Thu, 2008-08-28 at 17:44 +0100, Ford, Mike wrote: On 28 August 2008 16:40, tedd advised: I'm really not that old, I wrote my first line of code in college in 1965 -- I even remember the problem. It was how long a swimming pool would take to drain to a trickle with the drain open and a garden hose filling it. Of course, we were given all the data to solve it, but it was more an adventure in keypunching than programming. Considering that I never took a deferment for college, I was drafted in 1966. I didn't even know what Vietnam was -- at the time. Ha! You beat me by about 10 years, then -- in 1966, I was a strange English kid attending 4th grade at a School in Santa Monica, CA. (My dad was in a group of engineers seconded to his company's Los Angeles parent for a year, and the company paid for families to go too, lucky us ;) Lots of memories and odd stories -- I think my favourite is one my dad told for many years afterwards about his first few days in the drawing office where they worked mainly in pencil, and the shock on the face of the prim elderly secretary when he raised his head and asked, in all innocence, if anybody had a rubber!!! Good thing he didn't ask to bum a fag ;) I guess he wasn't a smoker. I did ages 4 to 13 in Scotland so I'm familiar with some of the language differences :) 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] PHP IDE needed
I really like zend studio for eclipse, debugger is slow at times on large projects. I hope, zend said they won't, is provide xdebug support for zend studio. I also really like working with mylyn. --Brendon On Aug 27, 2008, at 1:06 AM, Sascha Braun wrote: Hi people, I have a webproject which is round about 3 GB in size. I was usually using eclipse to work with the software but over time eclipse became very instable regarding that project. As soon as I open classes with 2000 or more lines of code in it, an out of memory error occours. So I need a new IDE for linux. Please tell me which IDE might be a true alternative for projects at that size. Thank you friends, kind regards, Sascha -- 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] Re: concatenating with . or ,
Robert Cummings wrote: Good thing he didn't ask to bum a fag ;) I guess he wasn't a smoker. I did ages 4 to 13 in Scotland so I'm familiar with some of the language differences :) Ahh now you're speaking my language. Ignore my Irish domain name, it's just cos it fits... my home is Edinburgh :D And yes the language differences are always a great source of amusement: I know lots of people who go over to the states to do the summer camp thing and end up trying not to laugh when little girls come up to them crying their poor little eyes out and saying Miss, I hurt my fanny. :p Col -- Colin Guthrie gmane(at)colin.guthr.ie http://colin.guthr.ie/ Day Job: Tribalogic Limited [http://www.tribalogic.net/] Open Source: Mandriva Linux Contributor [http://www.mandriva.com/] PulseAudio Hacker [http://www.pulseaudio.org/] Trac Hacker [http://trac.edgewall.org/] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: concatenating with . or ,
On Thu, 2008-08-28 at 18:42 +0100, Colin Guthrie wrote: Robert Cummings wrote: Good thing he didn't ask to bum a fag ;) I guess he wasn't a smoker. I did ages 4 to 13 in Scotland so I'm familiar with some of the language differences :) Ahh now you're speaking my language. Ignore my Irish domain name, it's just cos it fits... my home is Edinburgh :D And yes the language differences are always a great source of amusement: I know lots of people who go over to the states to do the summer camp thing and end up trying not to laugh when little girls come up to them crying their poor little eyes out and saying Miss, I hurt my fanny. :p Yeah, when I was 13 and freshly returned to Canada my gym teacher used to tell everyone to sit on their fanny. It didn't take long to figure out the meaning but it's funny to hear when your internal definition and reference for appropriateness is so drastically different :) 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] grab the complete commandline used ...
2008/8/28 Jochem Maas [EMAIL PROTECTED]: anyone know if it's possible to grab the entire commandline that was used to start up a php script on the CLI, an example of what I'm looking to grab from within the script (test.php in this example): php -qC -ddisplay_errors=1 ./test.php -o -d -e [EMAIL PROTECTED] -f ./last.log | grep Exception of course I know what the script name and arguments are but I'd rather like the whole enchilada (php binary and it's args + the pipe to grep). possible? bad idea? down boy? Not possible, I'm afraid. Certainly not portably. The command line is manipulated quite heavily before your script gets run. (eg shell wildcard expansions). A quick Google suggests that it is possible under VMS, but I doubt that's much use to you. -- http://www.otton.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] restricted file access
At 10:50 AM +0200 8/28/08, Angelo Zanetti wrote: Thanks for your reply. But what happens if the file is situated here: www.site.com/include/documents/file.doc and someone knows that path file somehow or they get a program to crawl the site. Then they would be able to get that file. How do we prevent that? You don't! But file.doc doesn't have to be anything either. Try this: http://sperling.com/file.doc -- you won't find anything there. However, if I wanted something to be there for someone, I could put it there. Understand? 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] Regex for email validation
At 9:29 AM +0200 8/28/08, Yeti wrote: That Rx.com domain name is really great stuff, but how do you expect the average user to type it in? Of course the problem has always been how can the user enter these types of characters from their keyboard. But, that's pretty simply with a Mac and as the rest of the world continues to log-on to the Internet (in record numbers in their own languages) I am sure that the problem of how to type in non-ASCII characters will become more of an issue and the solution will solve my problem as well. But as it is now, it's not so much IF the domain name is easy to type in or not, but rather does the Rx.com show up in the URL once you get there? And it does for most browsers other than IE. You can get to the site very easily, try typing: http://rx-2.com That wasn't hard, now was it? The same could be done for: http://www.jnj.com or any other Pharmaceutical Company -- or at least that's what I'm selling. Now, will some bright young savvy pharmaceutical executive recognize the opportunity or will this idea continue to float around until it becomes obvious to the brain-dead -- your guess is as good as mine. But, the day is coming. I just hope that I don't have to will my symbol domains to my son or grandson to finally have them pay off. :-) 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] Regex for email validation
At 9:34 AM +0200 8/28/08, Per Jessen wrote: Yeti wrote: That Rx.com domain name is really great stuff, but how do you expect the average user to type it in? Sorry, I don't understand the problem. The average user will obviously have a suitable keyboard, such as this for instance: http://en.wikipedia.org/wiki/Image:KB_Swiss.svg /Per Jessen, Zürich I hope you're right. However, it's one thing to have a keyboard designed for a specific language and another to be able to enter code-points that aren't associated with any specific language (i.e., Dingbats and Math Symbols). For example, note that Rx,com is not associated with any language, which is the same as many of my other domains, as you can see some here: http://symboldomains.com/symbol-domains-for-sale.html I bought most of these eight years ago hoping that someone would see things the way I do. But despite all my time, effort, and cost -- the only thing I have received is being called a goofy nitwit -- which I probably am -- but I would like to think of myself as an entertaining nitwit. :-) I have grandiose plans, but unfortunately I'm the only one who see's them. 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] www.yfrindia.com
http://www.yfrindia.com/ Take FREE online TEST, read FREE articles, download FREE presentation, use FREE source code, useful links, competition updates, free ONLINE TEST TESTS, http://www.yfrindia.com/resources/Tests free APTITUDE TEST, English Test, Computer Test, Mechanical Test, Electronics Test, Electrical Test, GATE preparation, CAT preparation, Job preparation, resume. http://www.yfrindia.com -- View this message in context: http://www.nabble.com/www.yfrindia.com-tp19208138p19208138.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] Re: concatenating with . or ,
At 5:44 PM +0100 8/28/08, Ford, Mike wrote: Santa Monica, CA. I moved from Missouri to California when I was 12 just after the Feds paid my father a visit and my father took-off for parts unknown -- apparently they frown on embezzling. I didn't see my father again until I turned 30. I lived in the San Fernando Valley until after graduating from CSUN in 1975. Then I went to Michigan where I met my wife and received my MSc from MSU. Michigan is like big minnow trap -- once you swim in, you're caught. But, I don't miss California -- nice weather, but too much crime and too many people. At least Michigan is green and if you stay away from Detroit, there's not much crime either. 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] Manual Coding vs. CMS Systems OT
Carlos Medina schreef: Watch him go... there is Carloos, the man infront of all the others. He is WAY ahead, and he is gaining more and more speed. He is an adult, and he is sooo adult that he can't even take a laugh... see him run from the humor! Faster and faster he runs... and there it is: the goal: an open casket for the people going through life without having a good laugh every now and then :o Aaanyhow... *grabs his coffee and keeps working while shaking his head because of the stupid comment posted by Carlos* Cheers :o :-) Kids yes I have one, so? did he build your website per chance? :-P btw: I have two handcoded cmses that I use to build sites with, a bunch of code 'snippets' used to handcode very small odd-ball sites with and I sometimes use an out of the box CMS if it suits me (but not Joomla) ... and I always end up having to hack some customization into them. as a developer it's not just about getting a quick result but aquiring a level of expertise that allows one to understand and create things at a professional level, things like CMSes (somebody actually writes them!) using validating, tableless xHTML layouts, valid CSS, secure server-side code, unobtrusive (and sometimes even gracefully degrading) javascript, etc, etc. the pond is getting smaller and smaller, eventually there won't be any room for people who can just about run the installer script of CMS X[tm] and barely hack out HTML. I plan to be getting paid still when that happens ... rewriting the installer script of CMS X[tm] perhaps. Carlos -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] grab the complete commandline used ...
Robert Cummings schreef: On Thu, 2008-08-28 at 10:22 -0500, Micah Gersten wrote: Does this work? $command = implode(' ', $argv); no syntax errors, so in that sense it works. but it doesn't answer my question (check the body of the post as well as the subject and that might become clear). Only do it that way if it's for a log of general output. If you're going to punt any of those parts back to the OS in another command you'll need to properly escape them. true, and yes it's for a log and no join(' ', $argv); doesn't cut it :-) Cheers, Rob. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] grab the complete commandline used ...
David Otton schreef: 2008/8/28 Jochem Maas [EMAIL PROTECTED]: anyone know if it's possible to grab the entire commandline that was used to start up a php script on the CLI, an example of what I'm looking to grab from within the script (test.php in this example): php -qC -ddisplay_errors=1 ./test.php -o -d -e [EMAIL PROTECTED] -f ./last.log | grep Exception of course I know what the script name and arguments are but I'd rather like the whole enchilada (php binary and it's args + the pipe to grep). possible? bad idea? down boy? Not possible, I'm afraid. Certainly not portably. The command line is manipulated quite heavily before your script gets run. (eg shell wildcard expansions). I have a feeling I'm out of luck - probably security issues that keep you from doing such a thing as well. I did have the idea of grabbing the PID and then grepping the output of ps via exec() ... that would do it, but I reckon it smells. :-) A quick Google suggests that it is possible under VMS, but I doubt that's much use to you. STW wasn't giving me any joy either, it's for linux only (although it would be nice if it worked on my Mac) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] A better XSS trap (Feedback wanted)
Hej everybody, I built something I'd like to have feedback on. Looking at all the template engines out there made me think. I have two main requirements: - use PHP as the template language - effective XSS prevention without betting on discipline Plain PHP only satisfies the first. I also couldn't find a PHP template engine that satisfies both. (Savant doesn't.) So here is my own minimal solution and I would like to know your opinion. Also, if anybody has seen something like it out there, please point me to it. The Idea: Automatically wrap every output string into a Decorator object, which offers filtering methods like htmlentities. This also means intercepting access to strings contained in Arrays and Objects in order to decorate them. The code: http://code.google.com/p/cvphplib/source/browse/trunk/cvphplib/ svn checkout http://cvphplib.googlecode.com/svn/trunk/cvphplib/ Example usage: // first a simple string ? $string = CV_OutputFilter::filter( 'marqueeevil/marquee' ); ? ?=$string? triggers an error ?=$string-htmlentities()? works fine ?=$string-urlencode()?works fine ?=$string-raw()? outputs the unfiltered value // extracting a bunch of filtered variables into the local scope ?php $vars = array( 'x'=5, 'o'=new O(), 'array' = array('i'='b') ); extract( CV_OutputFilter::filter($vars)-toArray() ); ? // access to object members ?=$o-var? triggers an error ?=$o-method()? triggers an error ?=$o-var-htmlentities()? works fine ?=$o-method()-htmlentities()? works fine // access to array elements ?=$array['i']? triggers an error ?=$array['i']-htmlentities()? works fine // Iterating over an array ? foreach( $array as $value ){} ? works fine ? foreach( $array as $key = $value ){} ? throws an exception, because $key would not be filtered in this case // decorating array keys requires some iterator magic ? foreach( $array-key_as($key) as $value ): ? ?=$key-htmlentities()?: ?=$value-htmlentities()? br/ ? endforeach; ? Problems: - potentially slow (due to many object instantiations and reflection) Benefits: - effective XSS prevention without betting on discipline - template-engine-like variable extraction into local scope - clean and short syntax - very little to learn Functionality already implemented, but not shown in the example: - register custom filter methods - enable __toString() with custom default filter - use tuple array(key,value) for $value instead of 'key_as'-magic - register custom filter applied on keys in -toArray() - decoration of multidimensional arrays and webs of object references More example code: http://code.google.com/p/cvphplib/source/browse/trunk/cvphplib/examples/exampleOutputFilter.php http://code.google.com/p/cvphplib/source/browse/trunk/cvphplib/tests/CV/Test_OutputFilter.php So what do you think? Best regards Christopher -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Problems sending $_POST vairable to an ASP page
Hi guys, I need to send post variables to an ASP page. I have the following code which isn't producing any errors but isn't working either: foreach($_POST['newsletter-group'] as $key = $value){ $_POST['addressbookid'] = $value; $out = POST /signup.ashx; $fp = fsockopen(dmtrk.net, 80, $errno, $errstr, 30); if (!$fp) { echo $errstr ($errno)br /\n; } else { fputs($fp, $out . \r\n); } fclose($fp); } Can anyone tell me what I am doing wrong please? _ Get Hotmail on your mobile from Vodafone http://clk.atdmt.com/UKM/go/107571435/direct/01/
RE: [PHP] Problems sending $_POST vairable to an ASP page
[snip] I need to send post variables to an ASP page. I have the following code which isn't producing any errors but isn't working either: foreach($_POST['newsletter-group'] as $key = $value){ $_POST['addressbookid'] = $value; $out = POST /signup.ashx; $fp = fsockopen(dmtrk.net, 80, $errno, $errstr, 30); if (!$fp) { echo $errstr ($errno)br /\n; } else { fputs($fp, $out . \r\n); } fclose($fp); } Can anyone tell me what I am doing wrong please? [/snip] http://www.php.net/curl there was just a thread on this within the past week. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problems sending $_POST vairable to an ASP page
IIRC ASP cant recive PHP $_POST variables but it can recive HTML post from forms. If you want to send variables to another language. You can try via a get variable. Dont know if the items you want to send are safe to send over though. Ólafur Waage 2008/8/28 shaun thornburgh [EMAIL PROTECTED]: Hi guys, I need to send post variables to an ASP page. I have the following code which isn't producing any errors but isn't working either: foreach($_POST['newsletter-group'] as $key = $value){ $_POST['addressbookid'] = $value; $out = POST /signup.ashx; $fp = fsockopen(dmtrk.net, 80, $errno, $errstr, 30); if (!$fp) { echo $errstr ($errno)br /\n; } else { fputs($fp, $out . \r\n); } fclose($fp); } Can anyone tell me what I am doing wrong please? _ Get Hotmail on your mobile from Vodafone http://clk.atdmt.com/UKM/go/107571435/direct/01/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problems sending $_POST vairable to an ASP page
Date: Thu, 28 Aug 2008 16:21:19 -0500 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] Problems sending $_POST vairable to an ASP page [snip] I need to send post variables to an ASP page. I have the following code which isn't producing any errors but isn't working either: foreach($_POST['newsletter-group'] as $key = $value){ $_POST['addressbookid'] = $value; $out = POST /signup.ashx; $fp = fsockopen(dmtrk.net, 80, $errno, $errstr, 30); if (!$fp) { echo $errstr ($errno)br /\n; } else { fputs($fp, $out . \r\n); } fclose($fp); } Can anyone tell me what I am doing wrong please? [/snip] http://www.php.net/curl there was just a thread on this within the past week. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Hi Jay, Unfortunately I don't have curl installed on my server. _ Make a mini you on Windows Live Messenger! http://clk.atdmt.com/UKM/go/107571437/direct/01/
RE: [PHP] Problems sending $_POST vairable to an ASP page
[snip] Unfortunately I don't have curl installed on my server. [/snip] Unless you can open a socket or a curl session you will not be able to post values to a remote page. Curl is your best bet, can it be installed? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ASCII Captcha
Has anyone tried a ASCII Captcha method. To use a similar method like this ASCII generator (http://www.network-science.de/ascii/) Or even gone the next level and have an ASCII based simple math question? I know this isnt strictly a PHP question but spam free sites are very dear to us. Ólafur Waage [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] grab the complete commandline used ...
I suggest creating a shell wrapper for PHP that will write the command to a file for you and then call PHP with the appropriate arguments. PHP won't even see most of the command that you originally posted. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Jochem Maas wrote: Robert Cummings schreef: On Thu, 2008-08-28 at 10:22 -0500, Micah Gersten wrote: Does this work? $command = implode(' ', $argv); no syntax errors, so in that sense it works. but it doesn't answer my question (check the body of the post as well as the subject and that might become clear). Only do it that way if it's for a log of general output. If you're going to punt any of those parts back to the OS in another command you'll need to properly escape them. true, and yes it's for a log and no join(' ', $argv); doesn't cut it :-) Cheers, Rob. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problems sending $_POST vairable to an ASP page
Date: Thu, 28 Aug 2008 16:24:58 -0500 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; php-general@lists.php.net Subject: RE: [PHP] Problems sending $_POST vairable to an ASP page [snip] Unfortunately I don't have curl installed on my server. [/snip] Unless you can open a socket or a curl session you will not be able to post values to a remote page. Curl is your best bet, can it be installed? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php It appears I was wrong, I do have cURL installed! _ Win New York holidays with Kellogg’s Live Search http://clk.atdmt.com/UKM/go/107571440/direct/01/
Re: [PHP] Manual Coding vs. CMS Systems
Auto-Deppe, C. Haensel wrote: Hahaha.. THAT one told exactly what I feel! Thanks :o))) Also a big thanks to the others who already replied. Waiting for more on that Great one Jochem!! If they only want a simple set of pages, then it's probably not worth the hassle of configuring a CMS framework. The second you want to add 'customer login' so that their clients can view private things like their log book or next flight booking then you need a CMS with a good user management and security system. Event diary and other automated functions then come free with any decent framework. With bitweaver I can add my own special functions while still retaining all of the core functions of styling, themes, user management and security. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Manual Coding vs. CMS Systems
You're not really a PHP developer until you've written your own CMS from scratch. It's a right of passage to roll your own, realize what a bad idea it is, and move on to using a full on general CMS that will do 10x what you can do on you own in 1/10 the effort on your parts. My own bias is for Drupal, since that's the system I work on, but most will work well enough depending on your needs. (Drupal will work better, though! g) The bragging rights of doing it youself don't actually carry as much weight as you'd think; the bragging rights of knowing how to leverage a tier-one system that has major name recognition is even more valuable. The bragging rights of being a developer on that system is even more valuable. There's educational value to writing your own, but it will take longer and result in fewer features than using an existing system. Most major CMSes have tens of thousands of hours of work put into them; 60 hours won't even get you a really good blog. On Thursday 28 August 2008 4:17:03 am Auto-Deppe, C. Haensel wrote: Hi all! And again, a slightly off topic subject for you all from yours truly :o) I have a customer (helicopter company) who is willing to give me some free flights for a small website. Now, I have been talking to my sister in law who is a designer (note: designer, not coder). She said I should be using Joomla or something of that sort and change it to fit my needs. I, on the other hand, am more into using my own code, starting with the first Hello World and ending up being a full fledged CMS with just the functions the customer needs. I have a lot of code in my code database already, so it would be a lot of copy and paste and a bit of coding. I think the whole thing will take about 60 work hours. I am into hand coding, to be honest. Using Joomla or other CMS systems is fine, but I want this to be a nice point on my CV if I ever need to get a new job. And, most important to me, it _feels_ much better to have it done from scratch all by yourself, doesn't it? So, I would love to hear your opinion on this. Sorry for being a bit off topic here as this is not 100% coding related, but I _had_ to get some feedback to backup my position ;o) Cheers! Chris -- Larry Garfield [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ASCII Captcha
At 9:27 PM + 8/28/08, Ólafur Waage wrote: Has anyone tried a ASCII Captcha method. To use a similar method like this ASCII generator (http://www.network-science.de/ascii/) Or even gone the next level and have an ASCII based simple math question? I know this isnt strictly a PHP question but spam free sites are very dear to us. Ólafur Waage [EMAIL PROTECTED] These are what I've come up with: http://webbytedd.com/aa/assorted-captcha/ 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] grab the complete commandline used ...
Micah Gersten schreef: I suggest creating a shell wrapper for PHP that will write the command to a file for you and then call PHP with the appropriate arguments. PHP won't even see most of the command that you originally posted. which wouldn't catch the pipe to grep now would it. nevermind, I don't think you ge what I was looking for, not worry I can hack together a 'solution' using exec() ... by grepping the output of ps. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Jochem Maas wrote: Robert Cummings schreef: On Thu, 2008-08-28 at 10:22 -0500, Micah Gersten wrote: Does this work? $command = implode(' ', $argv); no syntax errors, so in that sense it works. but it doesn't answer my question (check the body of the post as well as the subject and that might become clear). Only do it that way if it's for a log of general output. If you're going to punt any of those parts back to the OS in another command you'll need to properly escape them. true, and yes it's for a log and no join(' ', $argv); doesn't cut it :-) Cheers, Rob. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Manual Coding vs. CMS Systems
Lester Caine schreef: Auto-Deppe, C. Haensel wrote: Hahaha.. THAT one told exactly what I feel! Thanks :o))) Also a big thanks to the others who already replied. Waiting for more on that Great one Jochem!! If they only want a simple set of pages, then it's probably not worth the hassle of configuring a CMS framework. The second you want to add 'customer login' so that their clients can view private things like their log book or next flight booking then you need a CMS with a good user management and security system. Event diary and other automated functions then come free with any decent framework. ah, Lester's banging the bitweaver drum :-) ... actually I quite like it, but then I am biased towards firebird :-) With bitweaver I can add my own special functions while still retaining all of the core functions of styling, themes, user management and security. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] grab the complete commandline used ...
On Fri, 2008-08-29 at 04:48 +0200, Jochem Maas wrote: Micah Gersten schreef: I suggest creating a shell wrapper for PHP that will write the command to a file for you and then call PHP with the appropriate arguments. PHP won't even see most of the command that you originally posted. which wouldn't catch the pipe to grep now would it. nevermind, I don't think you ge what I was looking for, not worry I can hack together a 'solution' using exec() ... by grepping the output of ps. I doubt it. The ps command sees what the script sees. If I do mplayer *.avi, ps shows me the expanded file list that was given to mplayer. Remember, shell gets first dibs before anything happens. BTW your subject line does not imply that you wanted the EXACT command line used :) 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: Variable name as a string
In writing the script, though, there are two points. I don't always use checkboxes, sometimes I just want to update all the records on the form. Eg I have a series of images and related text each with their ID in the database table, on clicking update all the form elements get submitted and I need to relate the relevant image, text, etc with the table ID. So I can't rely on checkboxes which only get posted if ticked. So again I have to iterate through all possible IDs. Which normally can be done but it is longer, eg because the images on the page in the first place may not be the result of a simple select query. So I suppose the solution there is to have a hidden field with all the IDs as a string, explode that and then iterate through that. Eg input type=hidden value=1_2_3 name=all_IDs $IDs=explode(_,$_POST['all_IDs']); and that gives me the table IDs to do update queries on etc. John ioannes wrote: Actually, you are right, as you just put the checkbox index in the POST and get the value from there. So you just need the number of checkboxes...sorry. ioannes wrote: Yes, Tedd, this does however incur the overhead of find out what i is, because it could be a range of IDs from the database, not necessarily a count of the checkboxes on the page: for ($i = 1; $i = 4; $i++) { $a = 'a' . $i; $b = 'whatever' . $i; if($_POST[$a] == 'on') { my_array[] = $_POST[$b] } } John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php