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: PHP editor for linux
On Fri, Aug 15, 2008 at 5:11 PM, Shawn McKenzie [EMAIL PROTECTED]wrote: It flance wrote: Hi, What do you think is the best php editor for linux. I'm using the Debian distribution. Thanks I use Aptana which is based on eclipse and has built-in HTML/JS/PHP?SVN stuff. Also a cool plugin that lets you easily develop for the iPhone and preview it. Aptana is very good. I use it in addition to Eclipse PDT. Aptana brings html, css and ftp features. Brice -Shawn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Inspiration for a Tombstone.
On Thu, Jun 26, 2008 at 4:31 PM, tedd [EMAIL PROTECTED] wrote: Hi gang: For a break in our normal serious thinking, I suggested tombstone wit of: Always on the edge of greatness Dan offered: /cruelWorld or /Dan or ?php function dan($dateOfDeath) { return Daniel P. Brown: 01-01-1970 - .$dateOfDeath; } die(dan('00-00-')); ? What would you like on your Tombstone? (-- that's actually a trademarked saying) A classical : ?php echo So long and thanks for all the PHP; die(); ? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: euro currency convert
On Sun, May 18, 2008 at 10:34 AM, Per Jessen [EMAIL PROTECTED] wrote: Yui Hiroaki wrote: You are right! I would like to know how to convert german currency(old) to Euro currency. There was a fixed exchange rate at the time Germany converted. I'm sure can look it up somewhere. Maybe there : http://en.wikipedia.org/wiki/Euro Regards, Brice Favre The same goes for the other Euro-countries. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Threads PHP
On Fri, May 16, 2008 at 9:10 PM, Cesar D. Rodas [EMAIL PROTECTED] wrote: Hello, Is there a way to have threads in PHP? Hi, Look at this tutorial : http://www.ibuildings.com/blog/archives/811-Multithreading-in-PHP-with-CURL.html. Copix framework provide some classes which use socket. http://www.copix.org/ Best Regards, Brice Favre -- Best Regards Cesar D. Rodas http://www.cesarodas.com http://www.thyphp.com http://www.phpajax.org Phone: +595-961-974165
Re: [PHP] PHP Unit Test - Code Coverage - Continuous Intergration?
Hello, I think of PHPUnit+Xdebug+PHPUndercontrol. Brice Favre On Wed, Apr 16, 2008 at 8:17 PM, Jay Paulson [EMAIL PROTECTED] wrote: Hi everyone, I¹m just not getting into unit testing and was wondering what tools are out there that will automatically run unit tests continuously and make reports if a test failed and how much/what code was tested. Currently in Java land I¹m using Hudson, ant, Junit, and Coberatura. Thanks! Jay
Re: [PHP] newsletter administration
On Thu, Apr 10, 2008 at 12:55 PM, Alain Roger [EMAIL PROTECTED] wrote: Hi, I need to do a little CMS for managing Newsletter for 1 of my customers. as i never worked on such thing in the past, i would be glad to have your feedback. basically, web site users are registered into DB. my customer would like to send them a newsletter to promote new products and services. this newsletter should be in HTML format and send 1 by 1 to each customer. where can i find information or template how to develop such managing tool for newsletter ? You can use http://www.phplist.com/ Regards, Brice Favre i mean online, customer will create his newsletter layout and add images, links, text, and so on... to what should i pay attention ? thanks a lot, -- Alain Windows XP SP2 PostgreSQL 8.2.4 / MS SQL server 2005 Apache 2.2.4 PHP 5.2.4 C# 2005-2008
Re: [PHP] Can PHP do this? -- w/o using event handler
On Mon, Mar 3, 2008 at 8:57 AM, Louie Miranda [EMAIL PROTECTED] wrote: Could PHP do.. 1. Connect and send a parameter to a remote host 2. Wait for the host to reply -- not using event handler 3. Send XML data to the host Probably with a socket : http://php.net/manual/en/ref.sockets.php -- Louie Miranda ([EMAIL PROTECTED]) http://www.axishift.com Security Is A Series Of Well-Defined Steps chmod -R 0 / ; and smile :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Calculating dates
I like this way too but it will not work with a date before the first January 1901. Do you have another method? Brice Favre On Sat, Mar 1, 2008 at 7:08 AM, Jim Lucas [EMAIL PROTECTED] wrote: Ron Piggott wrote: Is there an easy way to calculate the number of days between two dates? Example: 2008-02-27 - 2007-12-03 = 86 days The dates will be in the format above -MM-DD Ron This should do the trick ?php $date1 = '2008-02-27'; $date2 = '2007-12-03'; $udate1 = strtotime($date1); $udate2 = strtotime($date2); $factor = 86400; $difference = (($udate1 - $udate2) / $factor); echo The difference is {$difference} days; Jim -- 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] Template system in PHP
Hi, I suggest you to use a framework. Lots of them implements template system and more. You'll don't have to reinvent the wheel. My favorit is Copix http://www.copix.org/ Email me if you need help. Brice On Feb 12, 2008 11:01 AM, Xavier de Lapeyre [EMAIL PROTECTED] wrote: Hi, I need to develop a website, but my management is rather unstable in his vision for the layout. I'm thinking of developing the components as classes and functions, and then use a template system to render the layout. If the management wishes to change the layout, I'll just have to modify my template and the jobs' done. Do any of you guys gurls know of a way to implement that template system. (The best one I know of is that of Wordpress) Regards, Xavier de Lapeyre Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how can i use timeout in php's socket?
On Dec 17, 2007 8:10 AM, 陆星光 [EMAIL PROTECTED] wrote: how can i use timeout in php's socket? You can put an option with socket_set_option : http://php.net/manual/en/function.socket-set-option.php Availables options are listed here : http://php.net/manual/en/function.socket-get-option.php Brice Favre http://www.copix.org/
[PHP] What's is the needed configuration to enable SOAP?
Hello all, I have a little problem with Soap. I programmed a script which works well on all server except one. I had an 'HTTP Error : Couldn't open socket connection to server' Too bad for me it's the main one. I wonder if there is a configuration problem? I just saw that socket is disabled on the main server. Is soap extension needs to enable socket? Google and php documentation said nothing about that. Thanks in advance for your help. Brice Favre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Brain Teasers
On 7/6/07, tedd [EMAIL PROTECTED] wrote: My favorite. /world End of the world. Great! Brice 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] Difficulties including scripts from another folder (apache2.2, PHP5, Vista)
Thanks a lot guys! Eventually Richard hit on the issue: require(.\foo.inc.php); ?# If you put .\ in there, then maybe PHP thinks you mean to NOT use the include_path, but only the local directory? Take .\ out. it was the .\ that stopped it working. taking it out worked a treat! thanks again! Brice -- Reality is that which, when you stop believing in it, doesn't go away.-Philip K. Dick
[PHP] Difficulties including scripts from another folder (apache2.2, PHP5, Vista)
Hi, I was wondering if anybody had any ideas about how to tackle this problem: I have just set up Apache2.2 and php5 on VISTA using mod_php. Php page load work fine for most things. However, when i try to separate some .php files for inclusion throughout the website in a separate folder to the visited pages, I get a non-verbose error which stops the php script working. the rest of the page (the html) looks fine, but the script doesn't do anything, and doesn't print an error message (i did NOT use @include, but include) the folders go like this: e:\httpdocs\php-bin\foo.inc.phpfile to be included e:\httpdocs\documents\index.phpfile doing the including where: -php.ini is loaded correctly in c:\windows\php.ini, as shown by phpinfo(), and where #include_path = .;e:\httpdocs\php-bin# -the call to foo.inc.php is in the head element of index.php as #?php require(.\foo.inc.php); ?# -the apache doc root is e:\httpdocs\ I have tried making sure that the include path was correct by using: #ini_set(include_path, e:\httpdocs\php-bin);# as well as #set_include_path(e:\httpdocs\php-bin);#, but to no avail. the only way to make this work is by using this: #require(..\php-bin\foo.inc.php);# , but i shouldn't have to do that as i have set my include_path correctly ( i think). This will cause major headaches as the website grows, since each page will have to be customised for the level in the hierachy. any ideas why that is and how it could be solved? brice
Re: [PHP] Do you use any framework in your applications?
On 5/12/07, cajbecu [EMAIL PROTECTED] wrote: Hello, I was wondering if some of you use any framework in your application. If you do that, can you post the name of the framework and advantages/disadvantages of it? 2 weeks ago I started to learn symfony framework (www.symfony-project.com) wich apears to be a good and reliable framework. I work with Copix http://www.copix.org/ Great framework and a new release coming soon. The only disadvantages is that the doc is only in French. Brice cajb. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] WSDL Generator class
Hello all, I'am looking for an WSDL generator class. The aim is to generate an wsdl file to use with the soap extension. The generator will look at the included classes and print all functions (except maybe abstract or private) in a correct xml format. I tried this one which is great : http://www.schlossnagle.org/~george/blog/index.php?/archives/234-WSDL-Generation.htmlbut i have to modify a lot of code and it appears it's not maintained. So what do you do in order to create WSD? Is the soap extension or a PEAR classes will include this kind of function? Thanks Brice
Re: [PHP] how to control if it is a date
On 3/24/07, Alain Roger [EMAIL PROTECTED] wrote: Hi, user can enter a string with following format dd.mm.. Application should transform it to postgresql timestamp date. however, i would like to be sure that what user typed is a real and valid date. how can i do that ? With checkdate i think : http://php.net/checkdate Brice Favre i was thinking to use date(string format, strtotime(string_entered_by_user)); but it does not ensure me that it is a valid date... thx. -- Alain Windows XP SP2 PostgreSQL 8.1.4 Apache 2.0.58 PHP 5
Re: [PHP] Text Editor for Windows?
On 2/8/07, Stephen [EMAIL PROTECTED] wrote: I am finding that notepad is lacking when correcting syntax errors in my php code. No line numbers. What can people recommend for use under Windows? Try notepad++. It's a great software, specially when you code with many languages : http://notepad-plus.sourceforge.net/ Brice Thanks Stephen
Re: [PHP] random string
On 10/17/06, Ross [EMAIL PROTECTED] wrote: Hi, I want to randomise a string $myrandom = rand(ross, andrea); I suggest : $array_name = array(rose,andrea); $myrandom = array_rand($array_name); echo $myrandom[0]; Brice. I know this doesn't work but is there a built in function to do this? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: What's a Blog?
On 2/13/06, Sam Smith [EMAIL PROTECTED] wrote: I have a client who wants to blog or he wants a blog on his website. I don't know anything about these blogs except it's sort of a fad I think. Isn't a blog just a simple web form with a big textarea on the blogger's side writing to a database and then the data is displayed in chronological order on the readers side of a website? I could create that in under an hour. Exactly. You can add a wysiwyg editor like tiny_mce :http://tinymce.moxiecode.com/ Brice. What don't I know? I searched up some scripts, some were free some were $500! Somebody like to point me at a good script that would enlighten me? Thanks -- 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: Preparing site content for RSS XML feed
On 2/2/06, Murray @ PlanetThoughtful [EMAIL PROTECTED] wrote: Hi All, I currently generate a simple rss.xml file for syndication from my site, containing nothing more than the subject of the post and a link to the article on my site. I'd like to syndicate the the actual content of each of the posts, but as I understand it RSS / XML is somewhat demanding in what it expects of how various html entities are treated etc? I don't suppose, by any chance, that there are any PHP tools that can be easily factored in to a process to take content that would include normal HTML (ie DIV and SPAN tags, links, TABLEs etc)? Why don't you use htmlspecialchars() and utf8_encode() for this? Brice Failing that, does anyone know of a good guide on what steps need to be taken to create a valid RSS feed where the content contains HTML? Any help appreciated! Much warmth, Murray -- Lost in thought :- http://www.planetthoughtful.org A blog devoted to urban legends, superstitions, ghost stories, and all things folkloric. :- http://www.ulblog.org -- 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: PHP/MySql noob falls at first hurdle
On 12/9/05, Paul Jinks [EMAIL PROTECTED] wrote: Hi all I've been asked to put simple database interactivity on an academic site. They want users to enter a few details of their projects so other researchers can search and compare funding etc. How difficult can that be, I thought I've built the database in MySQL and entered some dummy data, and I'm now trying in the first place to get the data to display with a simple select query to display the variable projTitle from the table project thus: head snip ? $SQLquery = SELECT projTitle FROM project; $result = mysql_query($SQLquery) or die (couldn't execute query); mysql_close($connect) ? body pResult of b?=$SQLquery ?/b/p p ? while($ouput_row = mysql_fetch_array($result)) { ? ?=$output_row[projTitle]?br / ? } ? /p /body Try to check the key of your result row with a print_r or a var_dump command. Brice Favre http://pelmel.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP/MySql noob falls at first hurdle
Are short tags disabled? Change this line... ?=$output_row[projTitle]?br / To... ?php echo ( $output_row[projTitle] ) ?br / This line seems to work : pResult of b?=$SQLquery ?/b/p -- Brice Favre http://pelmel.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP/MySql noob falls at first hurdle
On 12/9/05, Paul Jinks [EMAIL PROTECTED] wrote: Brice wrote: Try to check the key of your result row with a print_r or a var_dump command. Brice Favre http://pelmel.org/ Like this? ?php while($ouput_row = mysql_fetch_array($result)) print_r($output_row); ? Exactly but you had a difference between the variable you instanciate and the one you print. If you can, try to modify the error reporting level on you php.ini. It can help for problem like this. -- Brice. http://pelmel.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php