Re: [PHP] PHP editor for linux

2008-08-15 Thread Mario Guenterberg
On Thu, Aug 14, 2008 at 07:32:13PM -0400, Eric Butera wrote:
 What sort of plugins do you use with vim?  For a while I was
 interested with it after seeing some presentations on it.  I never
 could figure out how to get it to do code completion based on methods
 of a class, it sort of jumbled all of them from a project together.  I
 also felt like it was a bit clunky jumping between files.  Using MVC
 means at least 3 files per uri so that got to be very tedious for me
 jumping between so many different files.  Any tips there?
 
 One of my favorite parts of pdt is the fact that I can code complete
 any class in my current project or anything that I specify in my
 include path.  Also you can jump to the exact class/method by control
 clicking on it too which is a huge time saver.  Is there anything like
 this?

Hi

I use vim + some plugins and a custom configuration. It works fine
in cli and as vim-gtk under debian/ubuntu.

The Plugins are NERDTree, PDV and debugger. This and a little own
vimrc makes we wonder how powerfull vim is.

The vim installation is a standard apt-get install way installation.

You can open mutliple files with NERDTree if you use the the tab-key. 
It is easy to handle more than 3 files recently, but a bigger 
resolution on your desktop is needed ;-)

So i can coding some lines or files, press CTRL-L for syntax
checking and have a wonderfull customizable syntax highlightning.

The autocomplete function works also very well. I have downloaded
the php5 funclist from rasmus and extend it if needed. Variables and
contants defined in the file that i edit are also autocompleted.

Happy coding
Mario

-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M-
V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D  G++ e* h
r+++ y
--END GEEK CODE BLOCK--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] import XLS sheet into DB

2008-08-15 Thread Mario Guenterberg
On Fri, Aug 15, 2008 at 10:29:40AM +0200, Alain R. wrote:
 Hi,

 I would like to import content of an XLS sheet into a PostgreSQL DB (table).

 How can i do that ?

Your question is not php related ;-)

Maybe, export the sheet as comma separated csv file and import it to postgresql.

Happy coding
Mario

-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M-
V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D  G++ e* h
r+++ y
--END GEEK CODE BLOCK--


signature.asc
Description: Digital signature


Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Mario Guenterberg
On Tue, Jul 08, 2008 at 07:23:49PM -0400, tedd wrote:
 Hi gang:

 I'm running a Mac (so I know mine is a bit different size wise) but I'm 
 currently using Veranda at 14 point for coding.

 Just out of curiosity, what font and size do you ppls use for your 
 programming?


Monospace 9pt in Eclipse+PDT.

Greetings
Mario

-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M-
V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D  G++ e* h
r+++ y
--END GEEK CODE BLOCK--


signature.asc
Description: Digital signature


Re: [PHP] PHPExcel

2008-07-03 Thread Mario Guenterberg
On Thu, Jul 03, 2008 at 02:36:18PM -0400, Dan Shirah wrote:
 UGH!
 
 I am now constantly getting an error of PHP Fatal error: Allowed memory
 size of 16777216 bytes exhausted (tried to allocate 936 bytes) on line 689
 
 Is there a way to continuously write to the file and avoid getting this
 error?

Hi Dan...

change the value of memory_limit in your php.ini to a greater
value than 16M.

Greetings
Mario

-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M-
V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D  G++ e* h
r+++ y
--END GEEK CODE BLOCK--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] preg_match_all

2008-05-29 Thread Mario Guenterberg
On Thu, May 29, 2008 at 01:07:11PM -0500, Chris W wrote:
 What I want to do is find all links in an html file.  I have the pattern  
 below.  It works as long as there is only one link on a line and as long  
 as the whole link is one line.  It seems there should be a way to get  
 this to work with more than one link on a single line.  The work around  
 I have done for now is to read the whole file into a buffer and remove  
 all new lines and then add a new line after every closing a tag.  Then  
 process each line.  There has to be a better way.

 Any Ideas?  Also note I don't want to find any a tags that don't have an  
 href there probably aren't any but just in case.


 preg_match_all(/( *a[^]*href[^]+)(.*)\/a/, $Line, $matches,  
 PREG_PATTERN_ORDER);

Hi...

I have a little function to explode URLs with the following pattern:

$str = filename;

$pattern = '=^.*a .* href\=(.*[://]|[:])(\S+)[^]*(.*)/a.*$=ims';

while (preg_match($pattern, $line, $exploded_url)) {
some usefull stuff
returns an array ($exploded_url)
}

$exploded_url[1] = protocoll;
$exploded_url[2] = URL;
$exploded_url[3] = name of the URL;

greetings
MG

-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M-
V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D  G++ e* h
r+++ y
--END GEEK CODE BLOCK--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Incorrect version shown in phpinfo() and phpversion() in 5.2.6

2008-05-06 Thread Mario Guenterberg
On Tue, May 06, 2008 at 02:00:33PM -0400, Scott Lerman wrote:
 Yup, I restarted Apache several times. The httpd.conf line I have is
 LoadModule php5_module C:/Program
 Files/PHP/php-5.2.6-Win32/php5apache2.dll. If nobody else has seen
 this problem, I'll just assume it's some oddity on my system. I just
 figured I'd mention it in case others were having the same problem.

It's better to use a path without whitespaces, eg. c:\php instead of
c:\program files\php.

Have you copied some php5X.dlls from prior installations of php to
windows's system folder?

Greetings
guenti

-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M-
V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D  G++ e* h
r+++ y
--END GEEK CODE BLOCK--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache child pid segfault + APD

2008-05-05 Thread Mario Guenterberg
On Mon, May 05, 2008 at 02:41:17AM -0700, Waynn Lue wrote:
 My main problem with using xdebug was that it seemed to require KDE to
 interpret the traces that it took, which I don't have installed on my
 server.  I only spent 15 minutes looking at it, though, so that could
 be completely unjustified...
 
 Would upgrading glibc help?
 
 On Sat, May 3, 2008 at 12:48 AM, Mario Guenterberg [EMAIL PROTECTED] wrote:
  On Fri, May 02, 2008 at 10:24:03PM -0700, Waynn Lue wrote:
 
*** glibc detected *** free(): invalid pointer: 0x002a9956d000 ***
 
   Hi Waynn,
 
   try to use xdebug instead of APD to profile you app. There is a problem 
  with your glibc
   version and your APD version.
 
   In my environment php 5.2.6 with suhosin/apc, apache 2.2.8 and xdebug 
  2.0.2 it works fine.

Upgrading the glibc on a server is not the best choice to solve a
problem with a extension for php ;-).

There's a webfrontend for xdebug.

Greetings
guenti

-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M-
V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D  G++ e* h
r+++ y
--END GEEK CODE BLOCK--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Apache child pid segfault + APD

2008-05-03 Thread Mario Guenterberg
On Fri, May 02, 2008 at 10:24:03PM -0700, Waynn Lue wrote:

 *** glibc detected *** free(): invalid pointer: 0x002a9956d000 ***

Hi Waynn,

try to use xdebug instead of APD to profile you app. There is a problem with 
your glibc
version and your APD version.

In my environment php 5.2.6 with suhosin/apc, apache 2.2.8 and xdebug 2.0.2 it 
works fine.

Greetings
Mario

-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M-
V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D  G++ e* h
r+++ y
--END GEEK CODE BLOCK--

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php-5.2.5 glibc detected *** free()

2008-02-23 Thread Mario Guenterberg
On Sat, Feb 23, 2008 at 12:03:16PM +0100, [EMAIL PROTECTED] wrote:
 Hello all

 I got glibc detected errors about several php extensions on my debian  
 box both by executing php-cgi or php-cli.

 Config:
 # cat /proc/version
 Linux version 2.6.24-rc7-vs2.2.0.5.0.7 ([EMAIL PROTECTED]) (gcc version 4.1.2 
  
 20061115 (prerelease) (Debian 4.1.1-21)) #2 SMP

 # gcc --version
 gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

 # dpkg -l libc6
 libc6   2.3.6.ds1-13etch5

 I'm running on debian-etch stable/backports.

 I build php-5.2.5 with this configure line:

 ./configure  --enable-bcmath  --enable-calendar  --enable-exif  
 --enable-ftp  --enable-shmop  --enable-soap  --enable-sockets  
 --enable-sysvmsg  --enable-sysvsem  --enable-sysvshm  
 --enable-memory-limit  --enable-wddx  --enable-fastcgi  --enable-dio  
 --enable-dmalloc  --enable-force-cgi-redirect  --enable-discard-path  
 --with-gmp=shared,/usr  --with-gettext=shared,/usr  
 --with-mysql=shared,/usr  --with-pdo-mysql=shared,/usr  
 --with-mysqli=shared  --with-gd=shared  --with-jpeg-dir=/usr  
 --with-png-dir=/usr  --with-zlib  --with-zlib-dir=/usr  
 --with-xpm-dir=/usr  --with-freetype-dir=/usr  --with-libt1=/usr  
 --enable-gd-native-ttf  --with-pgsql=shared,/usr  
 --with-pdo-pgsql=shared,/usr  --with-curl=shared,/usr  
 --with-curlwrappers  --with-xsl  --with-xmlrpc  --enable-xslt  
 --with-xslt-sablot=/usr  --with-mhash=shared,/usr  
 --enable-dba=shared,/usr  --with-gdbm=/usr  --with-db4=/usr  --with-cdb  
 --with-mm=/usr  --with-bz2=shared,/usr  --with-imap=shared,/usr  
 --with-kerberos  --with-imap-ssl  --with-readline  --with-pcre-regex  
 --enable-pcntl  --enable-simplexml  --enable-ctype  
 --with-ming=shared,/usr  --with-ncurses=shared,/usr  --enable-mbstring  
 --with-inifile  --with-flatfile  --with-iconv  --with-ldap=shared,/usr  
 --enable-gd-native-ttf  --with-dom=/usr  --with-dom-xslt=/usr  
 --with-dom-exslt=/usr  --with-expat-dir=/usr  --with-zip=shared,/usr  
 --with-openssl=/usr  --with-snmp=shared,/usr  --with-ttf=shared,/usr  
 --with-libxml-dir=/usr  --enable-dbase  --enable-dbx  --enable-dio  
 --enable-filepro  --enable-sqlite-utf8  --with-mcrypt=shared,/usr  
 --with-pspell=shared,/usr  --with-unixODBC=shared,/usr

 The errors occurs when i want to activate several shared extensions:  
 pgsql, snmp, mcrypt.

 I'm really confused because if i build these extensions statically all  
 works fine ( ./configure ..blabla... --with-pgsql ... --with-mcrypt )

 I've a little script script to test pgsql connection :

 ?
 $dbconn = pg_connect(host=192.168.0.230 port=5432  user=demo  
 password=demo dbname=demo);
 $query = pg_exec ($dbconn, SELECT * FROM agenda);
 
 ?

 If i call this script via a web browser i got in apache log:

 [Fri Feb 22 21:40:30 2008] [error] [client 192.168.0.22] *** glibc  
 detected *** free(): invalid pointer: 0xb6b3f880 ***
 [Fri Feb 22 21:40:30 2008] [error] [client 192.168.0.22] Premature end  
 of script headers: listepg.php

 If i call this script on command line, same error:

 etch:/web/clients/client1/www# php -c ../php.ini listepg.php
 connexion*** glibc detected *** free(): invalid pointer: 0xb48b8280 ***
 Abandon

 I'm knocking my head on the walls since several months about this issue  
 which i didn't meet with previous versions of php (i compile myself  
 since php-5.0.0RC1). All was working fine until i upgrade to php-5.2.x.

 More strange: i've installed php-xxx.deb from dotdeb packages (added in  
 my sources.list) where these extensions are shared and in this case all  
 works fine. I've asked dotdeb developper what may cause this issue on my  
 box but he couldn't spent many time to debug my problem.

 In doubt, i've reinstalled all lib-dev invoked by configure script  
 but always same error. I've tried on 2 others machines with same distro  
 and i got same error, too.

 I think i make a mistake during php configuration but can't find where.

 Any help/idea please ...

 If you need more info, i can provide them

Hello

download the php-xxx.diff.gz from dotdeb source repo and see if there 
any differences in the debian/rules file from this diff to your 
configure options. The debian/control file has listed all the 
dependencies for build the php-xxx.deb packages. See also in this file
for mistakes in your environment.

Greetings
Mario

-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M-
V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D  G++ e* h
r+++ y
--END GEEK CODE BLOCK--


signature.asc
Description: Digital signature


Re: [PHP] PHP To an EXE Executable for Win32 ( Is it possible)

2008-02-21 Thread Mario Guenterberg
On Thu, Feb 21, 2008 at 02:16:55PM -0700, Dan wrote:
 I know that there's apparently some way to compile PHP to make it run  
 faster.  But has anyone come up with a system to turn PHP scripts into an 
 .exe?  What I mean is you would run the exe and see exactly the same 
 thing as if you were viewing the script through a webbrowser, but without 
 having to install php.

 What is the name of this?

Hi...

look at this:
http://www.php-editors.com/forums/other-php-tools/2374-php-compiler-embedder-php2exe.html

Greetings
Mario

-- 
-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/CM d- s++: a+ C$ UBL*$ P++ L+++ E--- W+++ N+ o-- K- w O- M-
V-- PS++ PE++ Y PGP+++ t--- 5 X R++ tv- b+++ DI D  G++ e* h
r+++ y
--END GEEK CODE BLOCK--


signature.asc
Description: Digital signature


Re: [PHP] PHP ide?

2007-11-11 Thread Mario Guenterberg
On Fri, Nov 09, 2007 at 01:44:19PM +, Lester Caine wrote:
 Tiago Silva wrote:
 Lester Caine escreveu:
 Robert Cummings wrote:
 Ubuntu = Debian + New Life

 Mandriva has Eclipse and PHPEclipse 'out of the box' along with Apache 
 and PHP
 I can build a fully functional development machine from a pile of bits in 
 under an hour ;)
 And currently that includes downloading the latest updates :)

 I use an OS called Windows Vista :-P
 hahahha crap(I use openSuse... ;-) )
 Guys, talking about features of distributions is a looping question...it's 
 a vicious endless thing...
 let's talk about PHP ide's ok?
 I use eclipse, with PHPEclipse it's fullfeatured for PHP, look, FOR PHP!
 The good programmer don't need a full featured IDE, like Delphi for PHP 
 and anyothers that wrap you behind the scenes...

 Not had to bother with vista yet - in fact a lot of my hardware intensive 
 stuff simply will not run on it :(
 BUT the best thing about Eclipse is that it runs the same on windows as 
 Linux, so I don't have to have different environments on each. I just run a 
 local CSV server and sync things between the two environments. And now I 
 can move stuff that was originally developed on Windows over to Linux
 - or replace it with PHP powered stuff :)

Hi all...

in the past i'd worked for a web development company. We had some
Windows, some MacOSX and some Linux workstations and a central
Dedian development server. The best solution to work with an IDE 
was the use of Eclipse with the needed plugins. On every machine the
same environment for development and the individual stuff for
design/grafix and more. No problems with a central subversion/CVS
repo and a NFS/Samba share for the apache document root on the devel
server.

regards
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


signature.asc
Description: Digital signature


Re: [PHP] Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Mario Guenterberg
On Fri, Jul 13, 2007 at 12:44:35PM +0200, David Négrier wrote:
  Hi Mario, hi Stuart,
 
  I fixed the SVN repository. You can try it now, it works better.
  Regarding the way Xaja is pronounced well  that's a good 
  question.
  Actually, I'm French and my pronunciation is... well... French ;), so I 
  won't give you any advice on how to pronounce it.
  However, I will present Xaja in San Francisco at the Ajax Experience (a 
  conference about Web 2.0 development). I will ask some people there if they 
  can give me a clue on the way to pronounce it in English ;).
 
  Best regards,
  David.

Now it works fine. :-) Thanks.
I will test it and give you some response, if you want it.

Greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


pgpKtNDgyNqk7.pgp
Description: PGP signature


Re: [PHP] Announcing Xaja, a PHP Reverse Ajax framework

2007-07-13 Thread Mario Guenterberg
On Fri, Jul 13, 2007 at 10:10:15AM +0200, David Négrier wrote:

  Xaja is still in an early stage of development, but it is time for us to get 
  some feedback (or some help, since it is released in GPL). You can download 
  an alpha version of Xaja from http://www.thecodingmachine.com/projects/xaja
  You can view a screencast presenting Xaja at : 
  http://www.thecodingmachine.com/cmsDoc/xaja/trunk/screencast.html?group_id=29
 
  Thanks in advance to anyone sending me comments or problems regarding Xaja.
 

Hi...

I will test your framework but the checkout for the svn repo don't
accept the username and password documented in the website. :-(

Greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


pgpiWaKUOc2F6.pgp
Description: PGP signature


Re: [PHP] About Eclipse JVM Termination

2007-07-10 Thread Mario Guenterberg
On Tue, Jul 10, 2007 at 02:25:49AM -0700, Kelvin Park wrote:
  Do you know the cause of this error?
  I'm trying to run it on 64bit Fedora 7. I have AMD64 and JRE 1.6.0_02 64bit
  is installed.
  Do you know how to fix the following error? if yes how?
 
  
 **
  JVM terminated. Exit code=13
  /usr/java/jre1.6.0_02/bin/java
  -Xms40m
  -Xmx256m
  -jar
  
 /home/kelvino/downloads/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070516.jar
  -os linux
  -ws gtk
  -arch x86
  -showsplash
  -launcher /home/kelvino/downloads/eclipse/eclipse
  -name Eclipse
  
 --launcher.library/home/kelvino/downloads/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.0.v20070516/eclipse_1017.so
  -startup
  
 /home/kelvino/downloads/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070516.jar
  -exitdata 158008
  -clean
  -data /tmp_workspace
  -vm /usr/java/jre1.6.0_02/bin/java
  -vmargs
  -Xms40m
  -Xmx256m
  -jar
  
 /home/kelvino/downloads/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070516.jar
 
 
  
 **

Ehm, wrong list?
Try the eclipse mailing lists to solve your problem.

Greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


pgpV2yMR6YWYT.pgp
Description: PGP signature


Re: [PHP] Where does PHP look for php.ini??

2007-07-09 Thread Mario Guenterberg
On Mon, Jul 09, 2007 at 05:16:20PM +0200, Tijnema wrote:
  I've build my own Linux, so good to know how to change it :)
 
  Tijnema

Ahh, a linux from scratch user, eh? :-)
If you need it or want some usefull input, I have very usefull
build scripts for apache/php and mysql/postgresql. I use this scripts
for my own builds from scratch or vanilla source.

Greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


pgpfL9WPzFBoe.pgp
Description: PGP signature


Re: [PHP] Where does PHP look for php.ini??

2007-07-09 Thread Mario Guenterberg
On Mon, Jul 09, 2007 at 10:38:24PM +0200, Tijnema wrote:
  On 7/9/07, Mario Guenterberg [EMAIL PROTECTED] wrote:
  On Mon, Jul 09, 2007 at 05:16:20PM +0200, Tijnema wrote:
I've build my own Linux, so good to know how to change it :)
  
Tijnema
 
  Ahh, a linux from scratch user, eh? :-)
  If you need it or want some usefull input, I have very usefull
  build scripts for apache/php and mysql/postgresql. I use this scripts
  for my own builds from scratch or vanilla source.
 
  Greetings
  Mario
 
 
  It has an LFS base yes ;)
 
  When I had the base LFS system, I continued on my own, no BLFS or
  such, and a lot of unstable code fixes, which was more like making
  bugs in programs to fix compile errors ;), commenting out some mem
  calls or such :P

  Can't remember that I've changed anything in PHP/Apache/MySQL or
  PostgreSQL, but still interested in your scripts :)
 
  Tijnema

I don't change the sources even if security bugs or issues are known.
The only 3rd party patch I ever applied for php is hardened php/suhosin.

I attach the scripts to this mail.

Greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


build-apache2.sh
Description: Bourne shell script


build-mysql5.sh
Description: Bourne shell script


build-pgsql8.sh
Description: Bourne shell script


build-php5.sh
Description: Bourne shell script


pgpXXBXUvZAVs.pgp
Description: PGP signature


Re: [PHP] Where does PHP look for php.ini??

2007-07-08 Thread Mario Guenterberg
On Sat, Jul 07, 2007 at 02:08:21AM +0200, Tijnema wrote:
  Hi,
 
  I just noted that my php (CLI and Apache2 SAPI) doesn't read my php.ini in 
  /etc
  I have compiled php with --prefix=/usr, and my /usr/etc is symlinked
  to /etc, but it doesn't read the php.ini file..
  when I use the CLI with -c /etc it works fine :)
 
Hi...

you can use the configure parameter --with-config-file-path.

Greetings
Mario
-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


pgpxq2gntGTLy.pgp
Description: PGP signature


Re: [PHP] Re: php security books

2007-07-04 Thread Mario Guenterberg
On Wed, Jul 04, 2007 at 11:36:06AM -0700, bruce wrote:
 andrew...
 
 are you sure about this... i would have thought that if you have an apache
 user 'apache' and allow php to be run as/by 'apache' than this would provide
 complete access to anything php needs to do as 'apache'.
 
 this should definitely work if you allow the 'group' for the apache err log
 files be accessed by this user...
 
 so.. i ask again.. are you sure about this..
 

Hi all...

the only owner with write permissions of the logs is root! I mean
the standard configuration for the apache webserver. Read
permissions for groups for the apache logs can be different per distribution. 
You can configure your environment for the PHP processes to log in seperate
files. 
If you allow write access for the 'group' you open the door
wide for hackers.

greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


pgpQLSOhWvwKR.pgp
Description: PGP signature


Re: [PHP] Cannot remove PHP Version 5.2.1-0.dotdeb.1

2007-04-04 Thread Mario Guenterberg
On Tue, Apr 03, 2007 at 08:56:12PM -0300, Miles Thompson wrote:
 Mario,
 
 Boy it's been a long day - it seems that every item I had in by configure
 batch had to be installed; then at the very end of the day it finally got to
 the --with-mysql. Had quite a scramble tryingto find the correct dev
 environment, then finally I was down to to two warning errors, one of  which
 was for sqlite.
 
 Tried a make, but it wouldn't go, so I ran configure again, explicitly
 stating with no sqlite.
 
 Tried make again and it completed.
 
 Ran checkinstall and it packaged the puppy, installed it and signed off with
 a pleasant note on how to uninstall if necessary.
 
 Tomorrow we'll see how it  works, and I hope I did not clobber mysql as part
 of this.
 
 There's an incompatibility between bzip2 and prefork-apache2-dev (or
 something like that). Running one clobbers the other, so since I needed
 apxs2 more than bzip2, that was dropped from the configuration.
 
 If you're interested I'll post another update tomorrow.
 

Hi Miles,

can you post your ./configure options.
apache2-prefork-dev is the right devel package and in my environment
that works fine with bzip2 and sqlite. Have you installed the
libsqlite0-dev and libsqlite3-dev packages and the libbz2-dev
package?

I've written a little install shellscript for my own use.

Greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


build-php5.sh
Description: Bourne shell script
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cannot remove PHP Version 5.2.1-0.dotdeb.1

2007-04-03 Thread Mario Guenterberg
On Tue, Apr 03, 2007 at 08:50:31AM -0300, Miles Thompson wrote:
 Mario,
 
 That did it - when I tried to reload the phpinof.php script Apache did not
 know what to do with the file.
 
 Now I'll drag the compiler from it's dusty corner and start from scratch.

Not the debian/ubuntu way but sometimes the best solution ;-)

 Thanks a million - Miles
:-)

Greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


signature.asc
Description: Digital signature


Re: [PHP] Cannot remove PHP Version 5.2.1-0.dotdeb.1

2007-04-02 Thread Mario Guenterberg
On Mon, Apr 02, 2007 at 04:52:02PM -0300, Miles Thompson wrote:
 This probably belongs under php-install, but thought I would try here first,
 and it comes under the general header of Be careful what you wish for.
 
 On a new Ubuntu (Debian) server I installed this version of PHP because I
 wanted some 5.2 features. It's the hardened version, and not the one we
 want.
 
 I have done the conventional aptitude remove php5, and then went to all of
 the directories returned by whereis php5 and manually removed them.
 
 I've rebooted both the server and my own computer, and still a
 http://localhost/phpinfo.php returns the phpinfo() data AND shows
 configuration file paths: etc/php5/apache2 and /etc/php5/apache2/conf.d
 which have been deleted.

Try dpkg --purge php-5.2.1 or so.
You may have only the php binaries (CLI) removed.
This removes the config-scripts at all.
Apt-get remove libapache2-mod-php5 removes your apache2 modules and
the dpkt --purge libapache2-mod-php5 removes all the config scripts
of them.

I have build php 5.2.1 from source on Ubuntu 6.10 and it works
fine. Installad in /usr/local for some system reasons and of course
a easy way to upgrade.

Greetings
Mario
-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


signature.asc
Description: Digital signature


Re: [PHP] FastCGI + PHP5

2007-03-31 Thread Mario Guenterberg
On Fri, Mar 30, 2007 at 07:00:07PM -0400, Stevie wrote:
 Hi all.

 anyone have any decent docs getting the config working? i guess not many 
 people using FastCGI w/PHP because it's seems so complicated to setup.
 btw i have already installed the fastcgi libs and mod_fastcgi. what 
 should an apache configure line look like when you complie php/fastcgi 
 with it.. am i suppose to install apache first? some people say you have 
 to install apache first but if you install apache first how will it 
 locate the php libs?

Hi..

Try this http://www.fastcgi.com/docs/faq.html#PHP

Greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


signature.asc
Description: Digital signature


Re: [PHP] FastCGI + PHP5

2007-03-31 Thread Mario Guenterberg
On Fri, Mar 30, 2007 at 07:00:07PM -0400, Stevie wrote:

or this:
http://www.webhostingtalk.com/archive/index.php/t-509127-p-1.html

Greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


signature.asc
Description: Digital signature


Re: [PHP] Ide help needed

2007-03-30 Thread Mario Guenterberg
On Fri, Mar 30, 2007 at 11:09:02PM +0530, [EMAIL PROTECTED] wrote:
 I am a beginer with php and i need to know which IDE is best suited
 under windows and linux both
 
 i have seen dreamweaver working and have heard about GoLive too but don't
 know whichone to go for
 
 can you please help me decide
 and also
 tell me some other IDE's if possible

Hi...

I use Eclipse with a PHP plugin on both Windows and Linux.
There are 2 good plugins available: PHP-IDE from eclipse.org and
PHPEclipse. I prefer PHP-IDE. You can use any usefull other plugins
(Tidy, Clay, Quantum) for work with any solution you need.
All of this is open source...

Greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


signature.asc
Description: Digital signature


Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't

2007-03-28 Thread Mario Guenterberg
On Wed, Mar 28, 2007 at 07:20:37AM -0500, Myron Turner wrote:
 It's hard to see how this could be a browser issue.  Firefox does not 
 parse the scripts.  The scripts are parsed on the server, under Apache.  
 The server outputs the result of the parsing and the browser displays 
 the result. 

I know that the browser does not parse the scripts. But what the
hell is the problem? I have changed the apache log settings to debug 
and nothing to see in the log files. The amusing of this is the
old mozilla works fine with the same script. Firefox pop up a download
window. The script is well formed, ?php ? tags are included. I
would not be surprised when I see the source of the script in
firefox. But a download window???

The problem is very irregularly. Sometimes the effect steps on new
scripts, sometimes on old scripts that worked before. 

Greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


signature.asc
Description: Digital signature


Re: [PHP] Re: PHP 5.2.1: Some scripts are being parsed, but most aren't

2007-03-28 Thread Mario Guenterberg
On Wed, Mar 28, 2007 at 01:50:39PM +0100, Colin Guthrie wrote:

 Should get you some output... check the headers, check the content etc.

I've checked twice the big apache log files and found some
segmentation faults! Mhm, with a vanilla apache 2.2.4 the problem
did not emerge. I would change the default apache 2.0.55 from ubuntu
to vanilla apache 2.2.4.

Greetings and thanks
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


signature.asc
Description: Digital signature


[PHP] Smarty Website down?

2007-03-27 Thread Mario Guenterberg
Hi...

I try to connect in the last hours and the results are timeouts.

Greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Smarty Website down?

2007-03-27 Thread Mario Guenterberg
On Tue, Mar 27, 2007 at 07:27:18AM -0500, itoctopus wrote:
 looks ok now
 
The site is ok now.

Thanks Mario
-- 
 --
| havelsoft.com - Ihr Service Partner fuer Open Source |
| Tel:  033876-21 966  |
| Notruf: 0173-277 33 60   |
| http://www.havelsoft.com |
|  |
| Inhaber: Mario Guenterberg   |
| Muetzlitzer Strasse 19   |
| 14715 Maerkisch Luch |
 --


signature.asc
Description: Digital signature


Re: [PHP] PHP 5.2.1: Some scripts are being parsed, but most aren't

2007-03-27 Thread Mario Guenterberg
On Tue, Mar 27, 2007 at 10:22:40PM -0700, Eddie wrote:
 Hi all,
 
 Previously, I had installed Apache 1.3.37 with PHP 5.2.1 as
 a static module on Ubuntu 6.06. I am having a problem where,
 for some reason, some of my PHP scripts just show source
 code, while some are parsed.

Hi...

I have a problem something similar. Any scripts would be parsed, any
would be downloaded in fireofx 2.x. I use Ubuntu 6.10. My solution
is to start the ancient Mozilla browser, with this browser works
everything fine. I think it is a firefox problem?! My server is
apache 2.0.55 with php 5.2.1.

Greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -


signature.asc
Description: Digital signature


Re: [PHP] Performance: While or For loop

2007-03-22 Thread Mario Guenterberg
On Fri, Mar 23, 2007 at 12:24:45AM -0500, Travis Doherty wrote:
 After multiple runs I see that the for pre-increment loop is fastest. 
 Note that the while loop with a post-increment runs once more than with
 a pre-increment.
 
 Everytime I run, the results are *very* different, though still fall
 within similar comparitive domains.

Hi...

I used your script and my results are different from yours.
The post-while increment is generally the fastest result on my
machine (Core 2 Duo, php 5.2.1 and apache 2.2.4).

I ran the script multiple times:

[schnipp ]

For pre-increment (10): 0.066
For post-increment (10): 0.066
While pre-increment (10): 0.028
While post-increment (11): 0.025

[schnipp ]

Greetings
Mario

-- 
 -
| havelsoft.com - Ihr Service Partner für Open Source |
| Tel:  033876-21 966 |
| Notruf: 0173-277 33 60  |
| http://www.havelsoft.com|
| |
| Inhaber: Mario Günterberg   |
| Mützlitzer Strasse 19   |
| 14715 Märkisch Luch |
 -

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php