[PHP] static Logging class?

2013-03-03 Thread Lars Nielsen
just want to log to a file) Best regards Lars Nielsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] static Logging class?

2013-03-03 Thread Lars Nielsen
Thanks a lot Larry! This PSR-3 looks just the way to do such things! :-) I hope i chat with you at DrupalCon Praha! http://www.linkedin.com/profile/view?id=18644639 Best regards Lars Nielsen Make a real classed object that you pass to various objects that need it. Otherwise you make your life

Re: [PHP] Friday - Return of Brain Teasers

2012-10-07 Thread Lars Nielsen
in the $cowbell array and then require the next one! ;-) -- Lars Nielsen l...@lfweb.dk LFWeb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Easiest way to create a web service based on a WSDL document

2012-08-31 Thread Lars Nielsen
/soapserver.soapserver.php Best Regards Lars Nielsen www.lfweb.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Performance / AB issue?

2012-05-15 Thread Lars Nielsen
On Fri, May 11, 2012 at 9:53 AM, Camilo Sperberg unrea...@gmail.com wrote: Sent from my iPhone 5 Beta [Confidential use only] On 11 mei 2012, at 07:09, Lars Nielsen l...@lfweb.dk wrote: On 10 mei 2012, at 23:26, Lars Nielsen wrote: Sent from my iPhone 5 Beta [Confidential use only

Re: [PHP] Performance / AB issue?

2012-05-15 Thread Lars Nielsen
On Fri, May 11, 2012 at 9:53 AM, Camilo Sperberg unrea...@gmail.com wrote: Sent from my iPhone 5 Beta [Confidential use only] On 11 mei 2012, at 07:09, Lars Nielsen l...@lfweb.dk wrote: On 10 mei 2012, at 23:26, Lars Nielsen wrote: Sent from my iPhone 5 Beta [Confidential use

Re: [PHP] Performance / AB issue?

2012-05-11 Thread Lars Nielsen
On Fri, May 11, 2012 at 9:53 AM, Camilo Sperberg unrea...@gmail.com wrote: Sent from my iPhone 5 Beta [Confidential use only] On 11 mei 2012, at 07:09, Lars Nielsen l...@lfweb.dk wrote: On 10 mei 2012, at 23:26, Lars Nielsen wrote: Sent from my iPhone 5 Beta [Confidential use only

[PHP] Performance / AB issue?

2012-05-10 Thread Lars Nielsen
apache. If I stress-test the site with : ab -c 50 -n 1500 http://sitename/static.html it works fine. I have set apache's errorlog to debug. But it writes nothing, either in the virtualhost or in the server-file. Can anyone give a hint about what can be wrong? Best regards LFWeb Lars Nielsen

Re: [PHP] Performance / AB issue?

2012-05-10 Thread Lars Nielsen
Sent from my iPhone 5 Beta [Confidential use only] On 10 mei 2012, at 17:40, Matijn Woudt tijn...@gmail.com wrote: On Thu, May 10, 2012 at 9:04 AM, Lars Nielsen l...@lfweb.dk wrote: Hi there, I have apache-2.22/php 5.3.10 set up on a dedicated server but I have a strange issue. I

Re: [PHP] Performance / AB issue?

2012-05-10 Thread Lars Nielsen
On 10 mei 2012, at 23:26, Lars Nielsen wrote: Sent from my iPhone 5 Beta [Confidential use only] On 10 mei 2012, at 17:40, Matijn Woudt tijn...@gmail.com wrote: On Thu, May 10, 2012 at 9:04 AM, Lars Nielsen l...@lfweb.dk wrote: Hi there, I have apache-2.22/php 5.3.10 set up

Re: [PHP] Zend Amf and Drupal?

2011-10-30 Thread Lars Nielsen
/Drupal? Regards Lars Nielsen lør, 29 10 2011 kl. 12:53 +0200, skrev Lars Nielsen: Hey List, I am making a webservice in Drupal with AMF Zend to provide some methods to a Flash app. I have now managed to use standard Drupal services (node,user and files) and I have made my own method to create

[PHP] Zend Amf and Drupal?

2011-10-29 Thread Lars Nielsen
. It says that it expects zero arguments but I have provided 4 arguments. I have posted some info here : http://drupal.org/node/1323678 Can you give me some guidelines? or pointers on what to do? Kind Regards Lars Nielsen www.lfweb.dk / www.gearworks.dk -- PHP General Mailing List (http://www.php.net

Re: [PHP] starting php by asking basic questions

2011-10-16 Thread Lars Nielsen
søn, 16 10 2011 kl. 11:40 +0200, skrev saeed ahmed: i want to learn php and i do not know much and my english is also limited.isthere anyone who can explain me php by most simple example,like explainig to a child,something like this:if you put this symbol or writing, in your php script,when

Re: [PHP] Generate CMS based on database schema

2011-09-30 Thread Lars Nielsen
If you like Drupal, you should definitely take a look at Drush. Its a shell for Drupal which allows you to install, configure and manage drupal from the commandline. Secondly you could make Drupal installprofiles which is you own custom drupal configuration. Last you can look at Aegir which is a

Re: [PHP] how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Lars Nielsen
lør, 28 05 2011 kl. 13:32 +0430, skrev Negin Nickparsa: because I echo the checkboxes like this: if($num0) { echo table border=2; for($i=0;$i$num;$i++) { $row=mysql_fetch_row($result); echo tr; echotdinput type='Checkbox' name='p$i' value='yes' unchecked //td; echotd$row[0]/td;

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread Lars Nielsen
)?' - '.$curYear : ''); ? Regards Lars Nielsen http://www.lfweb.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] database abstraction layer

2010-02-02 Thread Lars Nielsen
that I can use the same SQL, or should i make some exceptions? Regards Lars Nielsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] IDE with ftp and subversion?

2009-10-24 Thread Lars Nielsen
. Can anyone give me a hint? Regards Lars Nielsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] IDE with ftp and subversion?

2009-10-24 Thread Lars Nielsen
Hi, No I have not tryed that yet. Giving it a shot now! :-) Thanks /Lars lør, 24 10 2009 kl. 12:15 +0200, skrev John Black: Lars Nielsen wrote: Can anyone recommend an IDE with both subversion and ftp integration? I have played a little with eclipse but find the integrations a little

Re: [PHP] IDE with ftp and subversion?

2009-10-24 Thread Lars Nielsen
lør, 24 10 2009 kl. 12:15 +0200, skrev John Black: Lars Nielsen wrote: Can anyone recommend an IDE with both subversion and ftp integration? I have played a little with eclipse but find the integrations a little dificult to manage. Idealy I want a local development server with LAMP+svn

[PHP] php exception handling

2009-10-11 Thread Lars Nielsen
and then just write eg An error occurred or so on the webpage. Can anyone give me a hint about how to achieve this? Regards Lars Nielsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] modules in php?

2009-09-26 Thread Lars Nielsen
Hi, I am developing a cms and I want to make it able to use modules. Ex a statistics module. Can you give som examples or pointers to where i can start reading without getting lost in the details? regards Lars Nielsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] variable

2009-09-24 Thread Lars Nielsen
Hi Grega I think you might want to have a look at the array's section of the php manual. http://www.php.net/array regards Lars tor, 24 09 2009 kl. 19:10 +0200, skrev Grega Leskovšek: Suppose I have a variable $i = 0 or 1 or 2 and I have variables $item0, $item1 and $item2 how do I print the

[PHP] accessing variable from inside a class

2009-09-04 Thread Lars Nielsen
5.2.9. I get an error saying that $template_dir is undefined. Regards Lars Nielsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] accessing variable from inside a class

2009-09-04 Thread Lars Nielsen
-template_dir.$templateFile) : die('Error:Template file '.$template_dir.$templateFile.' not found'); } /Lars fre, 04 09 2009 kl. 14:49 -0700, skrev James Colannino: Lars Nielsen wrote: Hi, How do i access a variable from inside

[PHP] php cms?

2009-08-25 Thread Lars Nielsen
Hey list, I am going to use a cms for some sites and I have looked a little at Typo3, Joomla and php-fusion. Can anyone recommend a system where it is easy to customize the templates? regards Lars Nielsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] php cms?

2009-08-25 Thread Lars Nielsen
to customize the templates? regards Lars Nielsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Joomla or Drupal are good -- Bastien Cat, the other other white meat ok, thanks I'll give joomla! another shot. /Lars

[PHP] mirroring website

2009-06-21 Thread Lars Nielsen
approach? By the way... I'm using Fedora linux with LAMP (php5) best regards Lars Nielsen www.mit-web.dk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mirroring website

2009-06-21 Thread Lars Nielsen
Thanks for the cents. I will try a combination of multiple configuration files and rsync! /Lars søn, 21 06 2009 kl. 16:39 +0100, skrev Richard Heyes: Hi, I have the following issue! I want to develop my website on my local machine, and then upload the entire developed site to a production

[PHP] share code between sites

2009-06-21 Thread Lars Nielsen
Hey List Is there any good approach to share code between multiple sites? The code might be on the same server but on different domains. best regards Lars -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] share code between sites

2009-06-21 Thread Lars Nielsen
Yeah maybe thats the way to do it. It certantly sounds like a working solution. søn, 21 06 2009 kl. 16:02 -0400, skrev Eddie Drapkin: The same document root and different Vhosts? On Sun, Jun 21, 2009 at 4:01 PM, Lars Nielsenl...@mit-web.dk wrote: Hey List Is there any good approach to