[PHP] php5.3 exec() : output truncate

2013-01-30 Thread patrick ficheux

Hi,

I want to get the list of running processes. also, I call exec() with 
ps -A

(ps -A displays almost all processes of all users)
Unfortunatly, the output of ps -A seems incomplete

the test file test.php:
?php
unset($buf);
unset($res);
exec(ps -A, $buf, $res);
for($i=0; $i  count($buf); $i++)
{
echo($buf[$i].br);
}
?

If I run the test.php under the context of httpd (from 
http://server/test.php), I can see only a subset of running processes 
(some processes of user apache)


PID TTY TIME CMD
3207 ? 00:00:00 httpd
3359 ? 00:00:00 httpd
3360 ? 00:00:00 httpd
3361 ? 00:00:00 httpd
3362 ? 00:00:00 httpd
3363 ? 00:00:00 httpd
3364 ? 00:00:00 httpd
3365 ? 00:00:00 httpd
3366 ? 00:00:00 httpd
3569 ? 00:00:00 ps

If I run the same script directly from php (from user apache) , I can 
see *all* processes as expected


# sudo -u apache php -f test.php
  PID TTY  TIME CMDbr
1 ?00:00:01 initbr
2 ?00:00:00 migration/0br
3 ?00:00:00 ksoftirqd/0br
4 ?00:00:00 watchdog/0br
5 ?00:00:00 events/0br
6 ?00:00:00 khelperbr
[...]

Is it a problem with exec() or with ps -A or with  ?

any ideas ?


more information :
OS = centos 5.5
# httpd -v
Server version: Apache/2.2.3
Server built:   Jan 10 2013 08:22:14
# php -v
PHP 5.3.3 (cli) (built: Jun 27 2012 12:25:37)


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



[PHP] [SOLVED] Re: [PHP] php5.3 exec() : output truncate

2013-01-30 Thread patrick ficheux

I found the reason of this issue : SELinux

by defaut, SELinux is enabled on CentOS5.5 =  httpd runs with 
restricted rights


If I temporary disabled SELinux + restart httpd = ps -A from my 
script  runs as expected

$ setenforce 0
$ /etc/init.d/httpd restart



Le 30/01/2013 19:14, patrick ficheux a écrit :

Hi,

I want to get the list of running processes. also, I call exec() with 
ps -A

(ps -A displays almost all processes of all users)
Unfortunatly, the output of ps -A seems incomplete

the test file test.php:
?php
unset($buf);
unset($res);
exec(ps -A, $buf, $res);
for($i=0; $i  count($buf); $i++)
{
echo($buf[$i].br);
}
?

If I run the test.php under the context of httpd (from 
http://server/test.php), I can see only a subset of running 
processes (some processes of user apache)


PID TTY TIME CMD
3207 ? 00:00:00 httpd
3359 ? 00:00:00 httpd
3360 ? 00:00:00 httpd
3361 ? 00:00:00 httpd
3362 ? 00:00:00 httpd
3363 ? 00:00:00 httpd
3364 ? 00:00:00 httpd
3365 ? 00:00:00 httpd
3366 ? 00:00:00 httpd
3569 ? 00:00:00 ps

If I run the same script directly from php (from user apache) , I can 
see *all* processes as expected


# sudo -u apache php -f test.php
  PID TTY  TIME CMDbr
1 ?00:00:01 initbr
2 ?00:00:00 migration/0br
3 ?00:00:00 ksoftirqd/0br
4 ?00:00:00 watchdog/0br
5 ?00:00:00 events/0br
6 ?00:00:00 khelperbr
[...]

Is it a problem with exec() or with ps -A or with  ?

any ideas ?


more information :
OS = centos 5.5
# httpd -v
Server version: Apache/2.2.3
Server built:   Jan 10 2013 08:22:14
# php -v
PHP 5.3.3 (cli) (built: Jun 27 2012 12:25:37)





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



Re: [PHP] basic captcha

2012-02-16 Thread Patrick Hafner
Hi,

have you tried reCAPTCHA by Google?
You can find the PHP library on the website.

Easy to use, customizable and free, but nothing to install on your server (no 
open source)

Best regards, 
Patrick Hafner

Am 17.02.2012 um 05:40 schrieb Donovan Brooke li...@euca.us:

 Hello,
 
 Does anyone know of a basic (open source or freeware) form captcha system for 
 PHP?
 
 TIA,
 Donovan
 
 
 
 
 -- 
 D Brooke
 
 -- 
 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] module add on Suse 10.3

2010-09-23 Thread Patrick Serru
  Hi everybody,

  I am using Open 10.3 with KDE 3.5.10 on an x86_64 system. I want to 
use the function http_post_data() from module pecl_http (in a script 
called from shell, which could be an important detail...). And did not 
succed!

  Is Open Suse repertories organised such a way that standard 
installation as read on the web (in the http://www.php.net/manual/ pages) 
does not work ?

  I allready gaveup in the past with an other module, that I just wanted 
to evaluate (gtk2). But now, it hangs!

  
 cd /home/me/bin/PHP/php-5.3.3/ext
 pecl download pecl_http
this gives a /home/me/bin/PHP/php-5.3.3/ext/pecl_http-1.7.0.tar file 
(uncompresssed) extraction with xml file inside, then:
 cd /home/me/bin/PHP/php-5.3.3
 rm configure
 ./buildconf --force
 ./configure --with-pecl_http
 make
# make install

(I did not see problem...)Then I try to execute a file containing:

#!/usr/bin/php --interactive
? /** bla-bla */

  $resp=http_post_data(
... );
...

and the result is:
PHP Fatal error:  Call to undefined function http_post_data() 
in /home/me/Developpements/Mes_scripts_php/essais_post_2_site.php on line 
88

  The computer is personnal and for local developement, which means that 
the module could be installed as part of PHP (cli | cgi) or as dynamicaly 
loadable  module...

  Thank for the time spent reading my mail
Patrick

NB I dont know since which try I got this mesage, at startup:

« Unable to load dynamic 
library '/usr/lib64/php5/extensions/pecl_http.so' - 
/usr/lib64/php5/extensions/pecl_http.so: 
cannot open shared object file: No such file or directory in Unknown on 
line 0 »

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



Re: [PHP] module add on Suse 10.3

2010-09-23 Thread Patrick Serru
Le jeudi 23 septembre 2010, a...@ashleysheridan.co.uk a écrit :
 Suse uses yast2 iirc, which you can use to list and install php modules.
 Search for 'php' in yast software manager module. 
--
  Thanks Ash,

  I id'nt find any iirc software / module... I relatively well know 
yast2 (since yast [SüSE 6.x]!). Are you sure about this iirc or is it 
a souvenir. I would like some sowtware to tell me the currently PHP 
installed modules!

  I really dont know where to look. The generated make file is so easy 
to read! I need to know how PHP installs it self. Usualy, the processes 
discripted in a software documentation for installation / modification work 
with open suse, but here... I am ready to reinstall all but this is risky: 
I would like apache to continue running correctly!

Patrick

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



Re: [PHP] module add on Suse 10.3

2010-09-23 Thread Patrick Serru
  Hello everybody,

  I removed all the Yast modules related to PHP and rebuilt:

m...@pat:~/bin/PHP/php-5.3.3 rm configure
m...@pat:~/bin/PHP/php-5.3.3 ./buildconf --force
Forcing buildconf
buildconf: checking installation...
buildconf: autoconf version 2.61 (ok)
buildconf: Your version of autoconf likely contains buggy cache code.
   Running vcsclean for you.
   To avoid this, install autoconf-2.13.
Can't figure out your VCS, not cleaning.
rebuilding configure
rebuilding main/php_config.h.in
autoheader: WARNING: Using auxiliary files such as `acconfig.h', 
`config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for 
`config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader:
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows one to define a template 
without
autoheader: WARNING: `acconfig.h':
autoheader:
autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader: [Define if a function `main' is needed.])
autoheader:
autoheader: WARNING: More sophisticated templates can also be produced, see 
the
autoheader: WARNING: documentation.
m...@pat:~/bin/PHP/php-5.3.3 make
...
m...@pat:.../php-5.3.3 # make install
...


m...@pat:~/bin/PHP/php-5.3.3 php --version
PHP 5.3.3 (cli) (built: Sep 16 2010 23:44:47)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

CLI works but after restarting apache2, FireFox asks me what to do with 
the .php file...

  Is there someone here in that list that ever succed installing in a 
Linux box an extra PHP module (please tell the distribution and the  
processor type too)

  I am near suicide...
Patrick

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



[PHP] anyone interested in PHP? Call for moderator

2009-09-15 Thread Patrick
It seems that list list has degenerated into a kindergarten brawl.

Is there a moderator here? Someone to silence all this name calling and
of topic non-sense

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



[PHP] IP to geo-location advice

2009-07-15 Thread Patrick
Hi Everyone

Could anyone give me some advice on the best way to do IP to
geo-location with php using open source code?

Thanks in advance-Patrick

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



Re: [PHP] Anyone know whats the best way to learn PHP

2009-06-01 Thread Patrick
I don't think there are any substitutes for good books but
www.phpvideotutorials.com has screencasts. I have really enjoyed them.
There are free ones and paid ones. If funds permit I would recommend the
paid ones, there are hours and hours of them. It does not work out to be
much at all per hour. The free ones are of course the place to start
however.

-Patrick

Muhammad Hassan Samee wrote:
 Hi

 Anyone know whats the best way to learn PHP? Every time I open an php book
 or look the codes online, my mind goes oh man, So many stuffs to learn and
 gets frustrated before i even start but on the other hand, I don't know why
 some how the brain keep on nagging me to learn PHP. I guess what's the fun
 way to learn php? Any good books?

   


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



[PHP] Re: Help me debug this

2009-04-21 Thread Patrick Moloney

Patrick Moloney wrote:
Some months ago I downloaded and installed Apache, PHP and MySql. With 
only light use they seem to be working.
I have downloaded a Test Script from the VBulletin vendor that is 
supposed to determine if your setup could run their product. The Test 
Script is php and appears as a form that allows you to enter a Mysql 
database name, user and password. I fill it in and select the button. 
The large blue window remains but the entry boxes and a border 
disappear. It hasn't totally crashed and can be closed - but it has 
stopped.


I've tried their help forum, but they keep telling me to create an empty 
database. Maybe the problem has something to do with Mysql, but for a 
test script, I'm getting zero feedback. I have an empty database and one 
with a couple of tables. I don't see a problem with Mysql. So, how does 
one begin to debug this php test script to see what's failing? I'm kind 
of new to php.


Thanks all for the help. I fixed my problem. I thought I would save some 
time running the vendor's test script, but wound up spending most of the 
day on this. Not very proficient in PHP, but I learned an odd variety of 
things.


Problem was I had PHP and Mysql installed and working, but not together. 
   The PHP for Windows 5.2 no longer automatically installs Mysql. 
Actually have to go back to Windows Control Panel where it will let you 
change the install. It then installs the dlls and modifies php.ini -- 
which I had already done.


Difficulty was because the vendor test script has errors disabled - 
maybe ok in a test script -- unless you don't handle the errors!


This took longer than installing Apache, PHP and MySql in the first place.

Thanks, the assistance helped.

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



[PHP] Help me debug this

2009-04-20 Thread Patrick Moloney
Some months ago I downloaded and installed Apache, PHP and MySql. With 
only light use they seem to be working.
I have downloaded a Test Script from the VBulletin vendor that is 
supposed to determine if your setup could run their product. The Test 
Script is php and appears as a form that allows you to enter a Mysql 
database name, user and password. I fill it in and select the button. 
The large blue window remains but the entry boxes and a border 
disappear. It hasn't totally crashed and can be closed - but it has stopped.


I've tried their help forum, but they keep telling me to create an empty 
database. Maybe the problem has something to do with Mysql, but for a 
test script, I'm getting zero feedback. I have an empty database and one 
with a couple of tables. I don't see a problem with Mysql. So, how does 
one begin to debug this php test script to see what's failing? I'm kind 
of new to php.


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



Re: [PHP] Help me debug this

2009-04-20 Thread Patrick Moloney

Stephen wrote:

Patrick Moloney wrote:
I've tried their help forum, but they keep telling me to create an 
empty database.

Have you tried creating an empty database?

Stephen


yes.

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



Re: [PHP] Re: Include File Errors with Comments

2009-03-12 Thread Patrick Moloney

Andrew Ballard wrote:


I do use PHP comments (probably not as much as I should), but I don't
usually use HTML comments. This is partly (largely?) because HTML
comments get passed on to the client which wastes (albeit usually a
small amount of) extra space and bandwidth for each request, and they
give out implementation details to people who least need to know them.

Andrew


That's another issue, but a good point. I was thinking about that too, 
and I think it influenced some of my comments.

This has been my first use of PHP so I'm still learning.

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



[PHP] Re: Include File Errors with Comments

2009-03-11 Thread Patrick Moloney

Thanks for all the replies.
As I said in my original post the comments are on the first lines of the 
included file and are HTML comments. I'll have to look closer at comment 
syntax - I see there are empty comments and issues with pairs of 
double hyphens.


My overall code worked well with 2 comment lines, then had issues with 
the third. I eventually removed my third comment (no problem) then 
copied my 2nd comment as the 3rd (problem returns).

I had some double hyphens -- which seemed to cause problems sometimes.
I'm also thinking that it is seeing pairs of -- that are causing 
issues in odd numbers (half-pairs) only.


I'll have to look closer.

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



[PHP] Re: Include File Errors with Comments

2009-03-11 Thread Patrick Moloney
OK, I think I've got the problem. I had to go back further than where 
the problem appeared to be. The 1st error was the comment code on the 
div line before the menu is Included. It had the -- in the comment.
Oddly, it interacts with the same error in the comment in the mainmenu 
file. I saw some suggestion that these work in pairs but fail in odd 
numbers. So, I have many pages that work like this.
Adding another bad comment to the mainmenu, causes it to fail (3 bad 
lines). Or, without a third line, fixing the only bad line in the 
mainmenu also fails! Now, correcting the bad line in the web page fixes 
that -- (whoops) - but causes all the other similar web site pages to 
start failing.

I'll have to fix them all, but at least I know the problem.
No wonder nobody comments code!


mainmenu.php

!-- Comment on the First Line --
!-- Comment on the -- Second Line --
Functional Menu code
...


webpage.php
...
Body
div id=menu !-- Include the -- menu here --
?php include 'mainmenu.php';  ?
/div
...

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



[PHP] Include File Errors with Comments

2009-03-10 Thread Patrick Moloney
I have a simple web site with a simple page that all works well, 
although I have had a similar problem a couple of times that seems to be 
caused by Comment Lines in the included files. I wonder if I have it 
entirely right.

All my files are .php files, but almost all the code is HTML.
The file for my Web page is a complete HTML document, the file is .php. 
The web page file Includes a few other files by putting the Include 
statement in PHP tags, all by itself. The problem file contains the menu 
as the include. I made a change to the menu, that works, but I added a 
line with a comment at the top, which causes problems. The menu is read 
like text.
The first few lines in my menu file, menu.php, are comments using HTML 
syntax. The menu file has on UL and LI tags for the menu items - no 
HTML, BODY etc. So I have a line of PHP in my web page file calling a 
.php file where the first 2 lines are HTML comments. It was working with 
2 comment lines, the failed with 3 lines. Even when it fails the 
remainder of the page displays ok although it is down lower because of 
the menu being displayed as text. I remove the comment it works.


Does PHP preprocess the file but treat the comments as text because I 
never said it was HTML? Would PHP comments have to be inside PHP tags?
Am I correct in having just a fragment of HTML in the included file 
without the entire HTML organization? I'd like to have comments in the file.


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



Re: [PHP] Re: Some kind of Popup

2009-02-07 Thread Patrick Moloney

Ashley Sheridan wrote:

On Sat, 2008-11-22 at 12:32 -0500, Patrick Moloney wrote:

Yeti wrote:

Another JavaScript method would be to load the content in a hidden div
with position: absolute.
I think that's what I was considering doing with CSS except it would be 
labels only in the content. I only wanted to retrieve the data record 
from mysql if the user asked for the specs.


One issue is I don't want to leave the space available on my regular web 
page and would like to try not to overwrite something there - I'd rather 
have a separate window of some sort that sort of floats over the web page.



The best way to have the popup work, even with popup blockers is to have
a link like this:

a href=details.php?id=1 target=details onclick=window.open('about:
blank', 'details','width=300,height=200');More Details/a

The onclick handler is called before the link is actioned, and it opens
a new window with your settings, called 'details'. When that is
finished, the browser continues actioning the link, looks to find the
window/frame called 'details', finds one, and uses it. This way, even if
a user has scripting turned off, the link still works and opens in a new
window.


Ash
www.ashleysheridan.co.uk



Ashley,
Thanks, I finally worked on the popup you suggested. That is the closest 
to what I am looking for. I'm sure there are some other settings that 
could be useful. For example, the popup window gets hidden behind the 
primary web page if the user goes back there, and does not come back if 
he clicks again.


But, my bigger question is this: Is this solution specific to MS 
Windows. What would happen if someone were viewing the website using 
Apple or Linus etc?


Here's hoping you see this.

Thanks,
Patrick

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



Re: [PHP] Re: Some kind of Popup

2009-02-07 Thread Patrick Moloney

Phpster wrote:
No, it's a generic solution, should be pretty much the same across 
browsers. Why not download more browsers and test?




Thanks all, I thought this might get lost in history here.
It's not just different browsers, it's different operating systems - 
Apple, Linux, more. I can't download those. Although I have thought 
about setting up one dedicated machine just to test Linux on such things.


I thought the Window function(?) is probably part of MS Windows. Maybe 
it's also implemented in Linux, possibly others just to be compatible.

I'll keep working on this with a little CSS and other options.
Thanks

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



Re: [PHP] Can GD make a JPG thumbnail of a PDF?

2008-12-11 Thread Patrick Moloney
It looks like there is something wrong with your newsreader because your 
replies are not being connected to what you are replying to. Have you 
noticed? Much harder for everyone. What newsreader are you using?


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



[PHP] Some kind of Popup

2008-11-22 Thread Patrick Moloney
I have web pages that display multiple physical products. I'd like to be 
able to include a button near each one to display certain 
characteristics (eg: height, length, depth, weight etc).
These characteristics will be in a single table record in Mysql for each 
product, so I can retrieve the record for that product. The question is, 
how to display them. I'd like a small display window to appear in front 
of the web page.
If possible, I'd like the user to be able to move it or request the 
specs for another product, and then have both displayed.

I realize that can get messy, and is not absolutely necessary.
I have considered locating an invisible display box near each product, 
but I think some kind of floating window would be better.

The web page uses CSS.
Any ideas on how to proceed?

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



[PHP] Re: Some kind of Popup

2008-11-22 Thread Patrick Moloney


Would #2 be blocked by user popup blocker?

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



Re: [PHP] Re: Some kind of Popup

2008-11-22 Thread Patrick Moloney

Yeti wrote:

Another JavaScript method would be to load the content in a hidden div
with position: absolute.


I think that's what I was considering doing with CSS except it would be 
labels only in the content. I only wanted to retrieve the data record 
from mysql if the user asked for the specs.


One issue is I don't want to leave the space available on my regular web 
page and would like to try not to overwrite something there - I'd rather 
have a separate window of some sort that sort of floats over the web page.


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



Re: [PHP] Printing Web Page

2008-11-13 Thread Patrick Moloney
Thanks to all. That worked well. I just had to insert the stylesheet 
link on each of a couple dozen pages, but it worked.
My pages were a little complicated and took some work - and could 
probably use more but I'll deal with that as I go.


Some samples I found were very simple print stylesheets, others were 
longer but written from scratch. I started with my previous screen 
stylesheet and modified it. That seemed to work pretty well.


Patrick

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



Re: [PHP] Printing Web Page

2008-11-08 Thread Patrick Moloney

Ashley Sheridan wrote:

On Thu, 2008-11-06 at 22:35 +0100, Frank Arensmeier wrote:

6 nov 2008 kl. 21.21 skrev Patrick Moloney:

I'd like to enable my users to print individual web pages from their  
browser. If they simply select the browser print button they don't  
get all the text that is displayed in a scrolling text area.

The web page is static html and css, in a php file.


This might be a good starting point.

http://www.alistapart.com/articles/printyourway

//frank



link href=print.css media=print type=text/css rel=stylesheet/

Then set out your CSS in print.css to lay out the page without scrolling
areas.


Ash
www.ashleysheridan.co.uk



Thanks all! So, to state the obvious (to you all) the solution is to 
address my original question through CSS. That sounds good.
Ashly, your post is helpful. What is the next step, to display the page 
on screen using the new stylesheet, then rely on the user to use the 
browsers print button?


Thanks,
Patrick


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



[PHP] Printing Web Page

2008-11-06 Thread Patrick Moloney
I'd like to enable my users to print individual web pages from their 
browser. If they simply select the browser print button they don't get 
all the text that is displayed in a scrolling text area.

The web page is static html and css, in a php file.

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



[PHP] HELP - I have tried to unsubscribe from this list mutiple times but cannot.

2007-06-29 Thread -Patrick
I no longer have a need for this list and My mailbox is getting flooded, 
Can someone assist ?


TIA
-Patrick

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



Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread -Patrick

M. Sokolewicz wrote:

Chris wrote:

M. Sokolewicz wrote:

Paul Scott wrote:

On Fri, 2007-06-29 at 01:59 -0400, -Patrick wrote:
I no longer have a need for this list and My mailbox is getting 
flooded, Can someone assist ?


Read the footer on every single mail posted to this list to 
unsubscribe


--Paul



 



All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 
I must have missed a lot of footers then because I can't find a 
single one which says anything about unsubscribing...!


You missed this?

To unsubscribe, visit: http://www.php.net/unsub.php



Yes, only about 1 in a hundred emails have that footer. Might be 
because I'm not subscribed, and just use the NNTP interface :)


Don't be jackasses - I specifically stated I have tried to unsubscribe 
What does that mean to you? That I just 'said i did' and didn't actually 
try it??? I used the official unsubscribe link at the bottom . IT DIDNT 
WORK FOR ME!


All I want is a Moderator or someone who runs the list or whatever to 
actually remove my email from the list - no matter how many times I 
attempt to unsubscribe using the links it doesn't work. Is that possible?


-Patrick

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



Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread -Patrick

Simon wrote:
Don't be jackasses - I specifically stated I have tried to 
unsubscribe What does that mean to you? That I just 'said i did' and 
didn't actually try it??? I used the official unsubscribe link at the 
bottom . IT DIDNT WORK FOR ME!


Call an ambulance too, just in case!

Wow, have you tried all possible ways? Using different browsers on the 
website, connecting directly to the modem, disabling your firewall, 
basically, try at someone else's house?...


Good luck!



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



Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread -Patrick
Yes, I am still having a problem,after trying to unsubscribe AGAIN, it 
sends me a confirm message. I reply to it then it sends me back the 
confirm-identity message, I reply with the text block it requires and 
still no positive result. I must mention that in the past when I have 
tried to do this it occasionally did not send me a confirm-identity 
message. It appears to randomly ask for confirmation of identity.


-Patrick



Stut wrote:

-Patrick wrote:
Don't be jackasses - I specifically stated I have tried to 
unsubscribe What does that mean to you? That I just 'said i did' and 
didn't actually try it??? I used the official unsubscribe link at the 
bottom . IT DIDNT WORK FOR ME!


Tell us what you tried and any messages you got. We're not 
mind-readers. And don't confuse being jackasses with simple sarcasm. 
And don't be so sensitive.


All I want is a Moderator or someone who runs the list or whatever to 
actually remove my email from the list - no matter how many times I 
attempt to unsubscribe using the links it doesn't work. Is that 
possible?


This list is not moderated so there is nobody that can remove you from 
the list. You need to go through the process.


I've use the form on the mailing list page to send an unsubscribe 
request to your email address. You should receive an email with 
instructions that you need to follow to complete the process. If you 
have problems feel free to let me know.


-Stut



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



Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread -Patrick
this message below should not have gone through as I tried to 
unsubscribe shortly before this reply


-Patrick wrote:
Yes, I am still having a problem,after trying to unsubscribe AGAIN, it 
sends me a confirm message. I reply to it then it sends me back the 
confirm-identity message, I reply with the text block it requires and 
still no positive result. I must mention that in the past when I have 
tried to do this it occasionally did not send me a confirm-identity 
message. It appears to randomly ask for confirmation of identity.


-Patrick



Stut wrote:

-Patrick wrote:
Don't be jackasses - I specifically stated I have tried to 
unsubscribe What does that mean to you? That I just 'said i did' 
and didn't actually try it??? I used the official unsubscribe link 
at the bottom . IT DIDNT WORK FOR ME!


Tell us what you tried and any messages you got. We're not 
mind-readers. And don't confuse being jackasses with simple sarcasm. 
And don't be so sensitive.


All I want is a Moderator or someone who runs the list or whatever 
to actually remove my email from the list - no matter how many times 
I attempt to unsubscribe using the links it doesn't work. Is that 
possible?


This list is not moderated so there is nobody that can remove you 
from the list. You need to go through the process.


I've use the form on the mailing list page to send an unsubscribe 
request to your email address. You should receive an email with 
instructions that you need to follow to complete the process. If you 
have problems feel free to let me know.


-Stut





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



Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread -Patrick

Stut wrote:


I've never known an unsubscribe request to need identity confirmation. 
Are you sure you're asking the system to unsubscribe you not subscribe 
you?


I'm really not sure how, or even if it's possible, to escalate this to 
the next level. I've subscribed and unsubscribed to PHP lists various 
times with several addresses and have never had any issues.


I call PEBKAC.

-Stut



Yes, I tried every link on that confirmation message when nothing would
work. And I am 110% positive I have used the confirmation-unsubscribe
link. It sends me a message asking if I am sure that I want to UNsubscribe.

Great, I am stuck receiving the email equivalent of spam(since I do not
want to receive it) for the rest of this email address's life. wtf.

-Patrick

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



Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread -Patrick

Edward Krack wrote:


To remove your address from the list, just send a message to
the address in the ``List-Unsubscribe'' header of any list
message. If you haven't changed addresses since subscribing,
you can also send a message to:
  [EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]


I'm done with you
--
Edward Krack 

Tried that many time.

And I'm done with you. Thanks.

-Patrick.

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



Re: [PHP] HELP - I have tried to unsubscribe from this listmutipletimes but cannot.

2007-06-29 Thread -Patrick

Yes, I've seen that page on php.net

And no Jim, I'm not sure this is the 'exact' same problem. I understand 
what you are saying and it's not working.


Ok, I am done for now with this list. Thanks for trying anyways.
-Patrick

Jim Lucas wrote:

-Patrick wrote:

Stut wrote:


I've never known an unsubscribe request to need identity 
confirmation. Are you sure you're asking the system to unsubscribe 
you not subscribe you?


I'm really not sure how, or even if it's possible, to escalate this 
to the next level. I've subscribed and unsubscribed to PHP lists 
various times with several addresses and have never had any issues.


I call PEBKAC.

-Stut



Yes, I tried every link on that confirmation message when nothing would
work. And I am 110% positive I have used the confirmation-unsubscribe
link. It sends me a message asking if I am sure that I want to 
UNsubscribe.


Great, I am stuck receiving the email equivalent of spam(since I do not
want to receive it) for the rest of this email address's life. wtf.

-Patrick



no, you have to make sure that you are sending and receiving all 
messages through this account.


If you have more then one account configured in your email client, 
make sure when it sends out the message, that it is using the account 
that is registered with the php mailing list.  I had the same problems 
years ago, until I realized that I was sending the requests from the 
wrong email account.


Not that I was submitting the wrong email address, but when I sent the 
request, it would send me the confirmation email, when I replied to 
that message, I used the wrong account because the default account in 
my email client was a different account then what I was getting the 
mailing list from.


Just a suggestion from someone that went through  the exact same problem.



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



[PHP] Did I find a bug in PHP 5.2.2?

2007-05-24 Thread Patrick Baldwin


First off, I'd like to explain I'm not a PHP programmer, so please
bear with me. I'm trying to configure a Horde/IMP server.  It worked
yesterday.  I installed rsync via packages, rebooted, and now no one
can log into my Horde/IMP install.  Why am I posting here? Well,
when I look in httpd-error.log, I see:

 [Thu May 24 14:05:59 2007] [notice] Apache/1.3.37 (Unix) PHP/5.2.2 with
 Suhosin-
 Patch configured -- resuming normal operations
   [notice] Accept mutex: flock (Default: flock)
 [Thu May 24 14:09:53 2007] [notice] child pid 729 exit signal
 Segmentation fault
   (11)
 [Thu May 24 14:13:30 2007] [notice] child pid 755 exit signal
 Segmentation fault
   (11)
 [Thu May 24 14:13:31 2007] [notice] child pid 759 exit signal
 Segmentation fault
   (11)
 [Thu May 24 14:25:09 2007] [notice] child pid 731 exit signal
 Segmentation fault
   (11)
 [Thu May 24 14:25:10 2007] [notice] child pid 727 exit signal
 Segmentation fault


As well as:


 webmail# tail messages
 May 24 14:09:52 webmail kernel: pid 729 (httpd), uid 80: exited on 
signal 11

 May 24 14:10:11 webmail ntpd[545]: time reset +0.227112 s
 May 24 14:10:11 webmail ntpd[545]: kernel time sync disabled 2041
 May 24 14:13:29 webmail kernel: pid 755 (httpd), uid 80: exited on 
signal 11
 May 24 14:13:30 webmail kernel: pid 759 (httpd), uid 80: exited on 
signal 11
 May 24 14:25:08 webmail kernel: pid 731 (httpd), uid 80: exited on 
signal 11
 May 24 14:25:09 webmail kernel: pid 727 (httpd), uid 80: exited on 
signal 11

 May 24 14:25:17 webmail ntpd[545]: kernel time sync enabled 2001


From http://wiki.horde.org/FAQ/Admin/Troubleshoot/IMP, I got the
impression that the Horde/IMP folks don't think it's very likely
that their software should be able to cause this sort of problem.

I'm using FreeBSD 6.2-RELEASE-p4, horde-base-3.1.4_2, imp-4.1.4_2,
Apache/1.3.37, and PHP 5.2.2 with the Suhosin patch.

If someone else has some idea about this already, that'd be
great.  I'm willing to try and help figure it out if more
experienced (at all experienced, really) PHP people think this
is a worthwhile avenue of inquiry, but I'm afraid I'll need a
little help.  For example, what does must have PHP configured with 
--enable-debug mean I need to do, exactly?  And where should I

be looking for php core files?  I suspect there's probably more
questions I don't even know to ask yet, but you got to start
somewhere.


Regards,

Patrcik Baldwin

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



[PHP] Lot's of nonexistentfile.php requests

2007-03-20 Thread Patrick Ale

Morning all,


I see a lot of /8398743dhdshjsd/nonexistentfile.php requests in my
Apache log, returned with 404 since the file doesn't exist.

What are people trying to do? Do they try to trigger a bug in php or
are they looking for some misconfigured forum?


Thanks :)


Patrick

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



Re: [PHP] Lot's of nonexistentfile.php requests

2007-03-20 Thread Patrick Ale

On 3/20/07, Jochem Maas [EMAIL PROTECTED] wrote:

Patrick Ale wrote:
 Morning all,
you're not the only one who has this in their logs - something google
could have told you:

http://www.google.nl/search?q=nonexistentfile.php


Hoi Jochem :)

I did try that on google actually, as you've seen yourself there are
lots of results return, and I actually took the efford of reading the
first 20 links mentioned, and only one mentioned the mod_rewrite, the
others just say how you've been hacked , my server hangs, ack ack
what can I do and all.

Which is why I asked here :)

Thanks for your answer, it's well appriciated :)

MvG / With kind regards,


Patrick

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



Re: [PHP] session id contains illegal characters

2006-10-27 Thread Patrick Aljord

On 10/27/06, Chris Shiflett [EMAIL PROTECTED] wrote:

Patrick Aljord wrote:
 I'm moving my page from php4 to php5 and I get this error:
 Warning: Unknown: The session id contains illegal characters,
 valid characters are a-z, A-Z, 0-9 and '-,' in Unknown on
 line 0

Can you check to see what session identifier the browser is sending when
you get this error message?

how can I check the session identifier the borwser is sending?

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



[PHP] session id contains illegal characters

2006-10-26 Thread Patrick Aljord

hey all,
I'm moving my page from php4 to php5 and I get this error:
Warning: Unknown: The session id contains illegal characters, valid
characters are a-z, A-Z, 0-9 and '-,' in Unknown on line 0

this is the code I use to start my session:

$_SESSION['user_id']=$user_id;
   $_SESSION['user_login']=$user_login;
   $_SESSION['user_pass']=$user_pass;
   $_SESSION['user_level']=$user_level;
$_SESSION['session_bool']=true;
$sessionid = session_id();
$_SESSION['session_id']= $sessionid;
$user_real_id=$_SESSION['user_id'];
$user_real_login=$_SESSION['user_login'];

$realsessionid = $_SESSION['session_id'];

any idea what's wrong?

thanx in advance

Pat

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



[PHP] belligerence colander

2006-05-09 Thread Patrick Larson







[PHP] need help to put input text value into url

2006-04-25 Thread Patrick Aljord
I have a form like this:
form action=search.php method=post target=_self
input type=text name=search_text cols=20 rows=10/input
input type=submit name=submit_search value=search /
/form

while this is working fine, I would like the url of search.php to be
something like search.php?q=value+of+search_text
eg, if I enter php rules in my text box, the url should be
http://myfakepage.com/search.php?q=php+rules;
any idea how to do that?

thanx in advance

Pat

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



[PHP] regular pattern to match �

2006-02-18 Thread Patrick
im trying to get my regular pattern to allow åäöÅÄÖ but it refuses to,
i have something like this:

[^a-zA-ZåäöÅÄÖ0-9-_ ]

But this dosent seem to work, anyone got any ideas?

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



[PHP] regular pattern to match swedish characters

2006-02-18 Thread Patrick
im trying to get my regular pattern to allow åäöÅÄÖ but it refuses to,
i have something like this:

[^a-zA-ZåäöÅÄÖ0-9-_ ]

But this dosent seem to work, anyone got any ideas?

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



[PHP] Regular expression

2006-02-14 Thread Patrick
Hi,

I am trying to validate a password, but havent figured out the pattern for 
it yet.
The password must contain atleast 6 characters
a-zA-Z0-9_
must start with a
a-zA-Z
and must have atleast one of the following characters
!#%$£

correct passwords would be:
a#aAb08
Plkpod!
t09_#8T
U_p#q#Pq

i was trying something like this, but it dosent seem to work:
^[a-zA-Z]{1}[!#%$]+[a-zA-Z0-9_]+

Patrick 

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



Re: [PHP] need help to update a mysql table from dynamic form

2006-02-05 Thread Patrick Aljord
On 2/4/06, Sumeet [EMAIL PROTECTED] wrote:
 Patrick Aljord wrote:
  could someone please help me on that one? 
  http://hashphp.org/pastebin?pid=6156
 
  basically this is how I do:
  I display a mysql table in an html table and I put each value in an
  input text box.
  At the bottom I put a submit button to update changes.
  My question is how do I update everything knowing that I don't know in
  advance the name of all the input textbox?
 
  Here is the code to display the table:
   table width=\1\ border=\1\
 tbody
   tr
 tdstrongEnglish/strong/td
 tdstrongFran#231;ais/strong/td
 tdstrongEspa#241;ol/strong/td
 
   ;
   $getdisplaycatname = select
  catid,categoryfr,categoryen,categoryes,categoryar from category;
   $getdisplaycatnameq = mysql_query($getdisplaycatname);
   while ($getcatrow = mysql_fetch_array($getdisplaycatnameq)){
   //$display_category=mysql_result($getcatnameq, 0);
   $showcatid=$getcatrow['catid'];
   $showcat=$getcatrow['categoryfr'];
   $showcaten=$getcatrow['categoryen'];
   $showcates=$getcatrow['categoryes'];
   echo   tr
 td input type=\text\ name=\\ value=\$showcaten\
  size=\18\//td
 td input type=\text\ name=\\ value=\$showcat\
  size=\18\//td
 td input type=\text\ name=\\ value=\$showcates\
  size=\18\//td
   /tr
;
   }
   echo 
   /tr
 /tbody
   /table
   br /input type=\submit\ name=\update\  value=\update\ //form
 
   ;
   thanx in advance
 
  Pat
 

 not sure of exactly u r try to do...but i can suggest the following code.

 while ($getcatrow = mysql_fetch_array($getdisplaycatnameq)){

/* assuming getcatrow is an array like
 getcatrow = array( field1 = value1,
field2 = value2);

   */

while( list($key,$value) = each($getcatrow) ) {
 echo input type='text' name='$key' value='$value'
   size='18'/;

Thanx a lot for your answer, but the problem is that for each $key I
have 3 column with the same id: categoryen, categoryfr and categoryes.
So that gives me three input type=text name=$key with the same $key
for the three categories then it goes to the next row. How can I make
the difference between the input text that have the same name when
updating?
see what I mean?

Thanx in advance
Pat

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



Re: [PHP] Reverse Engineering of Smarty

2006-02-05 Thread Patrick Aljord
There is unfortunately no way to reverse your code back, the only
thing you can do is google for file recovery techniques or just
recode the whole thing. If you don't have time for that, maybe
something like http://www.joomla.org/ could save your day.

Hope that helps

Pat

On 2/5/06, Zareef Ahmed [EMAIL PROTECTED] wrote:
 Hi All,

  Accidentally I got deleted all of my php code in one of my application, I 
 was using smarty and its compiled directory has the code in its native format.

 Is there any way so I can do some type of reverse engineering to bring back 
 my original code?

 Any suggestion?

 Thanks in advance.

 Zareef Ahmed


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



[PHP] need help to update a mysql table from dynamic form

2006-02-04 Thread Patrick Aljord
could someone please help me on that one? http://hashphp.org/pastebin?pid=6156

basically this is how I do:
I display a mysql table in an html table and I put each value in an
input text box.
At the bottom I put a submit button to update changes.
My question is how do I update everything knowing that I don't know in
advance the name of all the input textbox?

Here is the code to display the table:
 table width=\1\ border=\1\
   tbody
 tr
   tdstrongEnglish/strong/td
   tdstrongFran#231;ais/strong/td
   tdstrongEspa#241;ol/strong/td

 ;
 $getdisplaycatname = select
catid,categoryfr,categoryen,categoryes,categoryar from category;
 $getdisplaycatnameq = mysql_query($getdisplaycatname);
 while ($getcatrow = mysql_fetch_array($getdisplaycatnameq)){
 //$display_category=mysql_result($getcatnameq, 0);
 $showcatid=$getcatrow['catid'];
 $showcat=$getcatrow['categoryfr'];
 $showcaten=$getcatrow['categoryen'];
 $showcates=$getcatrow['categoryes'];
 echo   tr
   td input type=\text\ name=\\ value=\$showcaten\
size=\18\//td
   td input type=\text\ name=\\ value=\$showcat\
size=\18\//td
   td input type=\text\ name=\\ value=\$showcates\
size=\18\//td
 /tr
  ;
 }
 echo 
 /tr
   /tbody
 /table
 br /input type=\submit\ name=\update\  value=\update\ //form

 ;
 thanx in advance

Pat

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



[PHP] IMAP socket?

2005-08-30 Thread Patrick Barnes
Hi there,

Is there any way to get the file descriptor of an IMAP stream opened
with imap_open?

Patrick

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



Re: [PHP] CPU Usage

2005-08-11 Thread Patrick - Jupiter Hosting
Actually, yes there is :)

Do a google for phpsysinfo - that's exactly what you want, I guarantee
it :)


Patrick





On Thu, 2005-08-11 at 22:22 +0200, Evert | Rooftop wrote:
 Hi All,
 
 Is there a way to determine the current cpu usage using PHP. I'm mainly
 looking for a linux solution, but I would like to expand it to windows
 later on.
 
 Any ideas? The archives weren't any good =(
 
 Thanks,
 Evert
 

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



[PHP] Gathering CPU info from Linux and FreeBSD and placing it into a MySQL db

2005-08-10 Thread Patrick - Jupiter Hosting
Hey all,

First time poster to this mailing list, but I've been lurking for a week
now, and it seems like there are a lot of helpful people on this list.
I hope to help others out with problems I can answer for them in the
future.

Now, I have an important task at hand.  My company has assigned me to
write a script that will log into both our BSD and Linux boxes (we have
about 400 boxes), gather up all the information about each system
(Operating System, External IP Address, LAN Controller, Video Card, USB
devices, Serial Port, Amount of Memory, # of Hard Drives, HD Brand, and
HD Type (ide ata scsi raid)).

We've gone over a few ideas, although we're not set in stone which route
we want to take, or if there is an easier solution to this task at hand.
Heck, even if there is something that has already been coded and can act
as a foundation for this project would be grand.

Okay, so here's what we've come up with so far:

1) Using parts of PHPSysInfo

- Hack apart this script I found called phpsysinfo.  I've already hacked
it apart and it only displays what we're looking for.  You can see what
I'm talking about if you visit
http://morano.hopto.org/phpsysinfo/index.php

- Use the XML portion of the script to export all gathered data into an 
XML file.

- Take the XML file and import it into the MySQL db


2) Finding a script that already does all this already (Ideal Solution)

- I'm open to ideas on this one.  After snooping around Linux and BSD,
I've gathered that using a combination of sysctl, uname, and dmesg would
get me the results I need, but this seems like the hard way, unless
someone has already implemented a solution using these tools and PHP.
Finding a script that already does everything I want IS the ideal
solution, the trouble is finding it.

I know it can be done, but I've been bashing my head against the wall
for the past day and a half now.  My head hurts and has a couple knots
due to the wall being so thick, so now I turn to you folks in search for
some guidance.

If there is anything else I can answer to help clarify my task at hand,
please let me know.  I'm stepping out for lunch, but I'm pretty much
stuck at work until a solution has been found, so I'll be checking the
mailing list frequently (about every 5 mins!).

The URL I provided to contains everything that is needed to be gathered.

Also, if there are other resources such as forums, web site tutorials,
script archives, etc. that I might be able to find answers from, I'd
love to check them out.

Thanks in advance.


Patrick

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



RE: [PHP] Gathering CPU info from Linux and FreeBSD and placing it into aMySQL db

2005-08-10 Thread Patrick - Jupiter Hosting
Hi Nate,

We are a hosting company.  We use this Mambo-like CMS called CATS, which
pretty much tells us what company owns what server(s) in our data
centers.  CATS will provide us with a list of details on the specs for
each machine they own, which include the specs I listed (memory, # of
cpus, etc.)  Someone in our company deleted the table within the MySQL
db that listed our 400+ machines.  Since IT is slammed with other tasks,
they have assigned me to this job.  

This is a step by step as to what I've decided needs to happen, in order
for this task to operate (somewhat) smoothly.  

1) Read IP addresses from a tab-delimited file, which will follow the
format:

abc.com 64.64.64.1
domain.com  255.213.6.4
blah.co.uk  29.42.200.9
etc.net 13.14.15.255

2) Assign the $domain variable to the domain name in each line, then
assign $ipaddress to the actual ip address

3) Take $ipaddress and ssh into each box (we have a private/public ssh
key set up)

4) (This is the undecided step) Run script to gather the necessary
server information and export info into either a)CSV or b)XML

5) Take exported file and upload it/email it to my box/my email address

6) Take exported file and create a script to import the information into
the CATS MySQL db (not handled by me, but I can easily take over
responsibility on creating this script and implement it into my code)

7) Lather, rinse, repeat :)


Hope this helps to clear up some information.  I got more answers to any
questions anyone might have.  Thanks again :)

Patrick








On Wed, 2005-08-10 at 16:41 -0400, Nathan Tobik wrote:
 Can I ask why you are trying to write a script that from what I
 understand goes to each box to retrieve the data instead of pushing the
 data to the central db?  
 
 You could write a little script in PHP that gathers the required
 information and then does an insert into your database.  Then from the
 database you can create a webpage that is a view of all of your
 machines.  On the local machine you can schedule your script to run
 every X minutes via crontab.
 
 If I misread your email and headed down the wrong path please let me
 know.
 
 Nate Tobik
 (412)661-5700 x206
 VigilantMinds
 
 
 
 snip...
 

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



Re: [PHP] Gathering CPU info from Linux and FreeBSD and placing it into aMySQL db

2005-08-10 Thread Patrick - Jupiter Hosting
Hi Greg,

Thanks for the link, although I don't think this is exactly what I am
looking for.  I am looking for a rather simple way to automate the ssh
into each box and gathering of the system information, instead of
monitoring the servers.  This is going to be a one time operation, as
once we gather all the information, regular backups will (finally) be
made so this won't happen again in the future.

With this now being my 2nd week into the job, I'm learning that the new
people who just joined the company are replacing the rather unorganized
people who have thrown us into this rut.

Thanks again for the link (that's a rather cool piece of software!), but
I think I'm looking for something a tad more simple.  Got any more links
to throw at me?  :)

Patrick





On Wed, 2005-08-10 at 16:13 -0500, Greg Donald wrote:
 On 8/10/05, Patrick - Jupiter Hosting [EMAIL PROTECTED] wrote:
  Hi Nate,
  
  We are a hosting company.  We use this Mambo-like CMS called CATS, which
  pretty much tells us what company owns what server(s) in our data
  centers.  CATS will provide us with a list of details on the specs for
  each machine they own, which include the specs I listed (memory, # of
  cpus, etc.)  Someone in our company deleted the table within the MySQL
  db that listed our 400+ machines.  Since IT is slammed with other tasks,
  they have assigned me to this job.
 
 Sounds like you want Nagios.
 
 http://www.nagios.org/
 
 
 -- 
 Greg Donald
 Zend Certified Engineer
 MySQL Core Certification
 http://destiney.com/
 

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



[PHP] Re: call_user_func_array and mysqli_stmt_bind_result

2005-04-12 Thread Patrick
I ran into the same problem doing it oo style like this:

call_user_func_array(array($stmt, 'bind_result'),$rr);

Still don't understand why. Any input on this is very much welcome.

I could work around using eval:
$obj=$stmt; $mthd='bind_result'; $args[0]=''; $args[1]='';
eval(\$rval=\$obj-\$mthd($args););

The $args is primitive but only for testing purposes. The reason why I want
to use this is because of variable arglist and don't want to work with
switch.

cheers,
Pat



Patrick [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 This is working (as a packet of crackers):

 ...

 mysqli_stmt_bind_result ($stmt, $arr[1], $arr[2]);

 ...

 This I cannot get to work:

 ...

 $arr[0]=$stmt; $arr[1]=''; $arr[2]='';

 call_user_func_array ('mysqli_stmt_bind_result',$arr);

 ...

 I'm not sure if what I try to do is possible in any way?

 Btw, this is Win PHP v5.0.3 , Apache v2.0.53, Mysql v5.0.2-alpha-nt.

 cheers and thanks,

 Patrick from Belgium (Brussels)

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



[PHP] Re: call_user_func_array and mysqli_stmt_bind_result

2005-04-12 Thread Patrick
correction:
I made $args as this: $args='$rr[0],$rr[1]';


Patrick [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I ran into the same problem doing it oo style like this:

 call_user_func_array(array($stmt, 'bind_result'),$rr);

 Still don't understand why. Any input on this is very much welcome.

 I could work around using eval:
 $obj=$stmt; $mthd='bind_result'; $args[0]=''; $args[1]='';
 eval(\$rval=\$obj-\$mthd($args););

 The $args is primitive but only for testing purposes. The reason why I
want
 to use this is because of variable arglist and don't want to work with
 switch.

 cheers,
 Pat



 Patrick [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi,
 
  This is working (as a packet of crackers):
 
  ...
 
  mysqli_stmt_bind_result ($stmt, $arr[1], $arr[2]);
 
  ...
 
  This I cannot get to work:
 
  ...
 
  $arr[0]=$stmt; $arr[1]=''; $arr[2]='';
 
  call_user_func_array ('mysqli_stmt_bind_result',$arr);
 
  ...
 
  I'm not sure if what I try to do is possible in any way?
 
  Btw, this is Win PHP v5.0.3 , Apache v2.0.53, Mysql v5.0.2-alpha-nt.
 
  cheers and thanks,
 
  Patrick from Belgium (Brussels)

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



[PHP] call_user_func_array and mysqli_stmt_bind_result

2005-04-11 Thread Patrick
Hi,

This is working (as a packet of crackers):

...

mysqli_stmt_bind_result ($stmt, $arr[1], $arr[2]);

...

This I cannot get to work:

...

$arr[0]=$stmt; $arr[1]=''; $arr[2]='';

call_user_func_array ('mysqli_stmt_bind_result',$arr);

...

I'm not sure if what I try to do is possible in any way?

Btw, this is Win PHP v5.0.3 , Apache v2.0.53, Mysql v5.0.2-alpha-nt.

cheers and thanks,

Patrick from Belgium (Brussels)

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



[PHP] About DRES PHP application internationalisation...

2004-11-23 Thread Patrick Gelin
Hi,

I'm trying to make DRES project (http://sourceforge.net/projects/dres/)
compliant with ISO-8859-1.  I'm not using mbstring into my windows 2000
server, I know there is problem with Internet Explorer browser...

I saw DRES it use 'xmldoc' API  into the file xmlutil.php. But this fonction
seems not to be in use at this time. By the way I can't find any
documentation about UTF-8, ISO-8859-1 and so about XMLDOM API.

What I saw it's when I save a formula with DRES, it register a XML file, and
the content is:

?xml version=1.0?
requirement identifier= name=#xE0;#xE0;#xE0;#xE0;
priority=high status=draftrevision date=2004-11-19 13:14:45
label=author id=gelinpPatrick
Gelin/authorcomment/comment/revisiondescription#x9A69;/descripti
on/requirement

The name filed was originaly:

name=''

I don't know if it's UTF-8 or ISO-8859-1 format.

When the formula refresh it show:

name='Ã Ã Ã Ã '

Where does this come from? Is it a problem with XMLDOM API? How to correct
this?

Thank.

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



[PHP] About xmldoc and ISO-8859-1

2004-11-21 Thread Patrick Gelin
Hi,

I'm trying to make DRES project (http://sourceforge.net/projects/dres/)
compliant with ISO-8859-1.  I'm not using mbstring into my windows 2000
server, I know there is problem with Internet Explorer browser...

I saw DRES it use 'xmldoc' API  into the file xmlutil.php. But this fonction
seems not to be in use at this time. By the way I can't find any
documentation about UTF-8, ISO-8859-1 and so about XMLDOM API.

What I saw it's when I save a formula with DRES, it register a XML file, and
the content is:

?xml version=1.0?
requirement identifier= name=#xE0;#xE0;#xE0;#xE0;
priority=high status=draftrevision date=2004-11-19 13:14:45
label=author id=gelinpPatrick
Gelin/authorcomment/comment/revisiondescription#x9A69;/descripti
on/requirement

The name filed was originaly:

name=''

I don't know if it's UTF-8 or ISO-8859-1 format.

When the formula refresh it show:

name='Ã Ã Ã Ã '

Where does this come from? Is it a problem with XMLDOM API? How to correct
this?

Thank.

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



[PHP] find duplicated values in array and count them

2004-11-11 Thread Patrick Fehr
Hi all


I need to compare values of multiple arrays, the tricky thing: I can't just
use array_diff, because I also need to count all the occurences and give
them back. The more tricky thing: It's a foreach loop through $arr[x
['comparable value'] while x is 1,4,3,6... so it's not that easy to compare
one item in the array under index 4 with the next one(which is in 3)
because foreach just loops.

The idea is: If two keys of different arrays hold the same value, I want to
just show one entry and tell the same time, how often it occurs(in other
arrays), so I don't show all the entries(as I would, if they weren't the
same.
But it is still a bit more complicated, because: only if the date_s value
lies 7 days from each other, I want to concatenate them to one entry +
show the number of occurences.

In the example below, the lessons 18 and 15 fit that need.
so I want them to be shown as:
  [room] : Raum1
  [teacher] : Marianne
  [class] : SundayClass
  starttime : 1099404000 (which is Array[19][date_s])
  endtime : 099418400 + 7*24*60*60 (which is Array[15][date_e])
  occurences : 2
   
eg --
print_r($my_big_array) shows:

Array
(
[7] = Array
(
[name] = course1
[comment] = my bad comment
[lessons] = Array
(
[14] = Array
(
[room] = Raum2
[teacher] = Andrew
[class] = Team2
[date_s] = 1100796900
[date_e] = 1100805000
)

)

)

[3] = Array
(
[name] = test
[comment] = testing
[lessons] = Array
(
[19] = Array
(
[room] = Raum1
[teacher] = Marianne
[class] = SundayClass
[date_s] = 1099404000
[date_e] = 1099418400
)

[15] = Array
(
[room] = Raum1
[teacher] = Marianne
[class] = SundayClass
[date_s] = 1099404000 + 7*24*60*60
[date_e] = 1099418400 + 7*24*60*60
)

[13] = Array
(
[room] = Raum1
[teacher] = Peter
[class] = Team1
[date_s] = 1100798160
[date_e] = 1100803500
)

)

)


-- 
Patrick Fehr
Swiss Federal Institute Of Technology

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



[PHP] UPDATE: find duplicated values in array and count them

2004-11-11 Thread Patrick Fehr
Patrick Fehr wrote:

 Hi all
 
 
 I need to compare values of multiple arrays

The obvious problem is, that I can't use array_count_values() because the
values are in different arrays, and array_count_values() refuses to compare
over different arrays :)

greets to all
patrick

-- 
Patrick Fehr
Swiss Federal Institute Of Technology

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



[PHP] Re: [users@httpd] November 2, 2004

2004-11-01 Thread Patrick Donker
GH wrote:
Greetings:
  This is just a friendly reminder that if you are registered in the
United States to VOTE on November 2, 2004 (TOMORROW)
  Need to know where you vote?
 Please see the attached file (it is an image) that contains some information
Do we care? Realy? Unlikely. Maybe you should send your 'useful' info on 
 a national mailinglist only.

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


[PHP] php mail help

2004-10-28 Thread Patrick E Phillips
I have php installed on my PC as well as an apache webserver and mysql. I am
using cox.net as my cable internet provider. They block port 25 but I do not
know if that affects what I am trying to do... which is:

use the mail() function to send email for my user activation script. I am
trying to test everything for my website on my computer before I pay for
hosting. When I run the registration script I get this:

Warning: mail(): sendmail_from not set in php.ini or custom From: header
missing in C:\Program Files\Apache
Group\Apache2\htdocs\campushotties\reghandle2.php on line 137

now the funny thing is i have the following code in my php.ini file:

[mail function]
; For Win32 only.
SMTP = smtp.east.cox.net
smtp_port = 25

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

from the error message one would think that the email would be delivered but
with a bad From address field. However, nothing is delivered. I also tried
switching the smtp_port to port 26.. that didnt work either.

Thanks for any help,
Pat

 



Re: [PHP] compileproblem gd into php4.3.9 under gentoo[solved]

2004-10-23 Thread Patrick Fehr
It was php_mod that had to be emerged as well (with USEvar 'gd' enabled).
Now it works


thanks and cu
-- 
Patrick Fehr
Swiss Federal Institute Of Technology

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



[PHP] compileproblem gd into php4.3.9 under gentoo

2004-10-21 Thread Patrick Fehr

For the definition of some needed graphical functions,
I depend on gd compiled into php.
As I am using a linux gentoo2.6.8.1 box, I use portage for that kind.
I emerge'd php again, but with the USE-Flag +gd set, this seemed to work.

But still the function php_info(); shows that php was compiled without gd
support.

What I did:
emerge gd
emerge php (+gd)
emerge apache

do I need the flag gd-external as well or what am I doing wrong?
I tried to find a extension entry in the php.ini but all I could find was
a .dll entry, and under linux, this can't be the right thing :)


Well, I thank you for your consideration and hope to having written it
clearly enough(in a few words: gd doesn't get compiled into php, why?) and
I'm thankful for every hint

greets
Patrick

-- 
Patrick Fehr
Swiss Federal Institute Of Technology

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



[PHP] change server unix-win

2004-10-20 Thread Patrick Fehr
Hi
I have a serious problem:
The client want's to emigrate the webhosting from a unix server to a windows
server. Now my biggest problem are the path's.
Is there a way to fast convert all the /root-style directories into the
windows standard \  ??
Thanks for your consideration, I have the strong feeling that this is much
work coming.

-- 
Patrick Fehr
Swiss Federal Institute Of Technology

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



[PHP] Register globals off, still not secure?

2004-04-30 Thread Patrick Hutchinson
Hi, Even with register globals off isn't it possible to have a webpage 
like this:

html
head
/head
h2Hello, ?php echo $_SERVER['PHP_AUTH_USER']; ?
pI know your password is ?php echo $_SERVER['PHP_AUTH_PW']; ?
body
/body
html
Is there a way to make sure apache doesn't set the $SERVER['PHP_AUTH_PW 
'] global?

Thanks.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Patrick Hutchinson  [EMAIL PROTECTED]
Engineering Web Systems Administrator   408.527.0305 direct
Cisco Systems, Inc. 408.527.2313 fax
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Register globals off, still not secure?

2004-04-30 Thread Patrick Hutchinson
Thanks for the response. I basically have an environment analogous to an 
internal ISP. A lot of corporate users that have the ability to make web 
pages for the intranet etc. Basically management wants PHP turned off 
now because a rogue user could potentially gather and store people's 
passwords just by having a line like this in their web page. I'm looking 
for a way to not have $_SERVER pass the PHP_AUTH_PW portion at the very 
minimum, so I can justify to them to turn PHP back on.

I was under the impression that if an external auth method was used that 
these weren't set, but I guess I was mistaken. Since PHP is being run as 
a module, Apache basic auth isn't really external.

Thanks.

-Patrick

Richard Harb wrote:
Friday, April 30, 2004, 5:37:15 PM, thus was written:

Hi, Even with register globals off isn't it possible to have a webpage
like this:


Not sure what you are asking. You can have a webpage like this. And I
guess it even does what it should - print the information.

html
head
/head


h2Hello, ?php echo $_SERVER['PHP_AUTH_USER']; ?
pI know your password is ?php echo $_SERVER['PHP_AUTH_PW']; ?


body
/body
html



Is there a way to make sure apache doesn't set the $SERVER['PHP_AUTH_PW
'] global?


No, there is no way. The docs state that those Superglobals are always
set.
But I wouldn't necessarily say that this is insecure: A user does not
have access to those superglobals, except he managed to sneak in some
code onto your server - but then you'd have a problem somewhere else.
register_globals was intended as a shortcut for lazy programming (my
biased opinion only!) to automagically have $PHP_AUTH_PW, etc
available. That way some user would have been able to set this
variable easily, e.g. with a GET request. No way to directly set a
superglobal though by conventional means.
Richard



--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Patrick Hutchinson  [EMAIL PROTECTED]
Engineering Web Systems Administrator   408.527.0305 direct
Cisco Systems, Inc. 408.527.2313 fax
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Global Vars

2004-03-04 Thread Patrick Fowler
I installed SuSE Linux 9.0 along with php.  The flag below is turned off
by default.  I could not send any vars with a post or get form.  I
turned it one and all works well.  The comments tell you not to turn it
on because of possible security issues and to code around it.  My
question is how do you send vars and session var from page to page
without it turned on?  Any info would be a big help.  Thanks for your
time.
 
 
; You should do your best to write your scripts so that they do not
require
; register_globals to be on;  Using form variables as globals can easily
lead
; to possible security problems, if the code is not very well thought
of.
register_globals = On

 

Patrick Fowler 
Unix Admin/database Admin 
Wynit, Inc. 
6847 Ellicott Drive 
East Syracuse, NY 13057 
V (315)437-1086 x2172 
F (315)437-0432 

 


[PHP] HELP PLEASE PHP

2004-01-29 Thread Patrick
Hi,

I have an situation on my hands I have a form that I am stuck using PHP for
thanks to my friends choice of hosting company, I have no idea on how to
setup a form in PHP other than HTML or in Flash, I need some one any one
to give me some advice on this Posted layout it seems to work but not
really,
I managed to get it set up but for some reason when you hit Submit and an
error message goes off at the top the form is Reset. Other than that I am
not
sure I wrote all the code correctly.

Sorry About the long post

Any advice would be great.

www.mdycentrutionmtg.com/formtest.php

Formtest.php--


?PHP

if ($submit) {

if ($firstname = )
$message = Please enter your first name.;
else
if ($lastname = )
$message = Please enter your last name.;
else
if ($homephone = )
$message = Please enter your home phone number.;
else
if ($address = )
$message = Please enter your current home address.;
else
if ($city = )
$message = Please enter which city you currently live in.;
else
if ($state = )
$message = Please enter which state you currently live in.;
else
if ($zip = )
$message = Please enter your zip code.;
else
if ($monthlypayment = )
$message = Please enter the amount of your monthly payment.;
else
if ($presentemployer = )
$message = Please enter the name of your present employer.;
else
if ($rateofpay = )
$message = Please enter your rate of pay.;
else
if ($hoursperweek = )
$message = Please enter the average amount of hours worked in a week.;
else
if ($deposit = )
$message = Please enter the amount of your deposit.;
else
if ($maxpayment = )
$message = Please enter an average payment your comfortable with.;

if ($message)
   echo ($yo);

else {
   mail([EMAIL PROTECTED],
   Form Results,
   First Name $firstname,
   Middle Initial $middleinital,
   Last Name $lastname,
   Social Security Number $ss,
   Marital Status $maritalstatus,
   Home Phone $homephone,
   Address $address,
   City $city,
   State $state,
   Zip $zip,
   Apt Number $apt,
   Time at address $monthsataddress Months $yearsataddress Years,
   Type of residence $typeofres,
   Monthly Payment $monthlypayment,
   Current Employer $presentemployer,
   Time with Employer $monthswithemployer Months $yearswithemployer Years,
   Rate of Pay $rateofpay Dollars per $rateofpayper,
   Hours per week $hoursperweek,
   Work Phone $workphone,
   Work History $workhistory,
   Other Income $otherincome,
   Deposit $deposit,
   Maximum Payment $maxpayment,
   Type of Loan $typeofloan,
   Co First Name $cofirstname,
   Co Middle Initial $comiddleinital,
   Co Last Name $colastname,
   Co Social Security Number $coss,
   Co Marital Status $comaritalstatus,
   Co Home Phone $cohomephone,
   Co Address $coaddress,
   Co City $cocity,
   Co State $costate,
   Co Zip $cozip,
   Co Apt Number $coapt,
   Co Time at address $comonthsataddress Months $coyearsataddress Years,
   Co Type of residence $cotypeofres,
   Co Monthly Payment $comonthlypayment,
   Co Current Employer $copresentemployer,
   Co Time with Employer $comonthswithemployer Months $coyearswithemployer
Years,
   Co Rate of Pay $corateofpay Dollars per $corateofpayper,
   Co Hours per week $cohoursperweek,
   Co Work Phone $coworkphone,
   From: $firstname $lastname,
   Subject: Online Form Application);

   $message = Thank You.;
}
}
?

html
 head
  titleCenturion Loan Form/title
 /head
 body bgcolor=#71c4ca

form method=post
p
   div align=center
table border=0 cellpadding=0 cellspacing=0 width=660
 tr
  td colspan=2
   div align=center
bLoan Form/b
addressfont size=-2Please fill in all the fields below to the
best of your knowledge if you have any questions /fontfont
size=-2please feel free to call me at 248-770-7518br
 /font/address
   /div
   address
div align=center
 font size=2?php  echo $message;  ?/font/div
p
 /p
   /address
  /td
 /tr
 tr
  td
   pBorrower/p
  /td
  tdCo-Borrower/td
 /tr
 tr
  td
  /td
  td/td
 /tr
 tr
  tdFirst Name/td
  tdFirst Name/td
 /tr
 tr
  tdinput type=text name=firstname size=25 maxlength=30
tabindex=1 MI input type=text name=middleinitial size=2
maxlength=2 tabindex=2/td
  tdinput type=text name=cofirstname size=25 maxlength=30
tabindex=23 MI input type=text name=comiddleinitial size=2
maxlength=2 tabindex=24/td
 /tr
 tr
  tdLast Name/td
  tdLast Name/td
 /tr
 tr
  tdinput type=text name=lastname size=25 maxlength=30
tabindex=3/td
  tdinput type=text name=colastname size=25 maxlength=30
tabindex=25/td
 /tr
 tr
  td
   pS.S. #/p
  /td
  td
   pS.S. #/p
  /td
 /tr
 tr
  td
   pinput type=text name=ss size=25 maxlength=11
tabindex=4/p
  /td
  td
   pinput type=text name=coss size=25 maxlength=11

Re: [PHP] looking for some software (helpdesk, intranet)

2003-11-22 Thread Patrick
At 03:49 PM 11/21/2003 -0800, Chris W. Parker wrote:
I'm looking for some helpdesk software and some intranet software with a
MySQL backend.
I use OneOrZero's helpdesk software for a couple of sites.  Here's the 
website: http://helpdesk.oneorzero.com/

It's not perfect, but it's free.  Plus their forums have a number of hacks 
you can add in!

-Patrick





Patrick Schneider
[EMAIL PROTECTED]
Technical Support Specialist, RMS
Treasurer, Midwest Animation Promotion Society Board of Directors
External Operations Section Chief, ACEN 2k4
Director of Registration, ACEN 2k4
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] new install php not working. Please help.

2003-10-30 Thread Patrick Fowler
Folks,

I did the fillowing install

./configure --prefix=/www --with-mysql --withmssql=/usr/share/freetds --with
-apxs=/www/bin/apxs  --enable-track-vars --with-config-file-path=/www/conf

When I try access the index..php via the web the file it tries to download.
I checked all
of the config files and all looks good I can't find out why php will not
work.  When I search for the php.ini it only brings up a file from the
/usr/src/php/php-4.3.3/pear/tests/php.ini  Shouldn't this file be in the
/etc/ dir?
RH 9
Apache 2.0.48


httpd.conf
# LoadModule foo_module modules/mod_foo.so
LoadModule php4_modulemodules/libphp4.so

I can't get php to work..  Thanks for your help.

Patrick

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



[PHP] Compiling with LDAP support

2003-07-31 Thread Patrick Hutchinson
I was trying to follow the directions to compile PHP with LDAP support. 
It looks like the Netscape Directory Server 4.0 SDK is no longer 
available, and points to the Sun One Directory Server 5.1. I don't need 
to install an entire Directory server, I just need to point --with-ldap= 
 somewhere.

Anyone have any idea what I need to d/l from Sun to do this? I can't use 
OpenLDAP for my environment.

Thanks.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Patrick Hutchinson  [EMAIL PROTECTED]
Engineering Web Systems Administrator   408.527.0305 direct
Cisco Systems, Inc. 408.527.2313 fax
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Problem with 4.3.2 built as DSO

2003-07-14 Thread Patrick Hutchinson
Hi,

I recently upgraded from 4.2.2 to 4.3.2 built as a DSO for apache 
1.3.26. Now, documents are not being executed. I am just getting the 
source listed back. I have the propper AddModule/LoadModule stuff in my 
conf as well as the propper AddType for php documents. When I tried to 
revert back to 4.2.2 the same thing happens now.

Using my same config files with php built statically into apache 1.3.26 
(with the add/load module stuff removed of course) it works fine.

Any pointers on the next thing to look at would be greatly appreciated.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Patrick Hutchinson  [EMAIL PROTECTED]
Engineering Web Systems Administrator   408.527.0305 direct
Cisco Systems, Inc. 408.527.2313 fax
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Problem with 4.3.2 built as DSO

2003-07-14 Thread Patrick Hutchinson
Yeah, I have all that in the conf file. I've rebuilt it twice and made 
sure it was pointing to the propper apxs and everything. Even did a make 
clean to be sure. Still doesn't work. I've checked everything I can 
think of.

-Patrick

Ray Hunter wrote:
Here is how i trouble shoot it:

1. make sure that there is a libphp4.so file in libexec.
2. make sure that you have these lines in httpd.conf:
LoadModule php4_module  libexec/libphp4.so
AddType application/x-httpd-php .php 

3. restart apache 

That should work for you. Also make sure that when you configured php
that you supplied the correct path to apxs? Sometimes i mess this up and
give it a path to an older apache version.
--
BigDog
On Mon, 2003-07-14 at 15:38, Patrick Hutchinson wrote:

Hi,

I recently upgraded from 4.2.2 to 4.3.2 built as a DSO for apache 
1.3.26. Now, documents are not being executed. I am just getting the 
source listed back. I have the propper AddModule/LoadModule stuff in my 
conf as well as the propper AddType for php documents. When I tried to 
revert back to 4.2.2 the same thing happens now.

Using my same config files with php built statically into apache 1.3.26 
(with the add/load module stuff removed of course) it works fine.

Any pointers on the next thing to look at would be greatly appreciated.

--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Patrick Hutchinson  [EMAIL PROTECTED]
Engineering Web Systems Administrator   408.527.0305 direct
Cisco Systems, Inc. 408.527.2313 fax





--
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
Patrick Hutchinson  [EMAIL PROTECTED]
Engineering Web Systems Administrator   408.527.0305 direct
Cisco Systems, Inc. 408.527.2313 fax
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] REPLY NEEDED

2003-04-03 Thread PATRICK KOFI
STRICTLY CONFIDENTIAL

WE ARE MEMBERS OF A SPECIAL COMMITTEE FOR BUDGET AND PLANNING OF THE NIGERIAN NATIONAL 
PETROLEUM CORPORATION (NNPC). THIS COMMITTEE IS PRINCIPALLY CONCERNED WITH CONTRACT 
AWARDS AND APPROVAL. WITH OUR POSITIONS, WE HAVE SUCCESSFULLY SECURED FOR OURSELVES 
THE SUM OF THIRTY ONE MILLION, FIVE HUNDRED THOUSAND UNITED STATES DOLLARS (US$31.5M). 
THIS AMOUNT WAS CAREFULLY MANIPULATED BY OVER-INVOICING OF AN OLD CONTRACT.

BASED ON INFORMATION GATHERED ABOUT YOU, WE BELIEVE YOU WOULD BE IN A POSITION TO HELP 
US IN TRANSFERING THIS FUND (US$31.5M) INTO A SAFE ACCOUNT. IT HAS BEEN AGREED THAT 
THE OWNER OF THE ACCOUNT WILL BE COMPENSATED WITH 30% OF THE REMITTED FUNDS, WHILE WE 
KEEP 60% AS THE INITIATORS AND 10% WILL BE SET ASIDE TO OFFSET EXPENSES AND PAY THE 
NECESSARY TAXES.

ALL MODALITIES OF THIS TRANSACTION HAVE BEEN CAREFULLY WORKED OUT AND ONCE STARTED 
WILL NOT TAKE MORE THAN SEVEN (7) WORKING DAYS, WITH YOUR FULL SUPPORT. THIS 
TRANSACTION IS 100% RISK FREE.BE REST ASSURED OF SUCCESS.

IF THIS PROPOSAL SATISFIES YOU, PLEASE REACH US ONLY BY EMAIL FOR MORE INFORMATION. 
PLEASE, TREAT AS URGENT AND VERY IMPORTANT.

YOURS FAITHFULLY,

DR.PATRICK KOFI.



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



Re: [PHP] Is there a PHP for Dummies?

2003-03-28 Thread Patrick Teague
Not sure if you've looked at it already or not, but www.webmonkey.com has
great web programming info.  I followed a couple php tutorials from there 
was up  running... then again I've done alot of programming prior to PHP so
maybe I'm just warped.

Patrick

- Original Message -
From: Beauford.2002 [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 3:53 PM
Subject: [PHP] Is there a PHP for Dummies?


 I'm really tired of trying to figure out the PHP manual and need something
 that explains things in plain straight forward English. Like
 get_magic_quotes_gpc() for example - the manual says how to use it and
what
 it returns - but nowhere can I find out what it's for. Does it count
sheep,
 do a quote of the day, or what - maybe I'm just stupid - but in any event
I
 have spent more time in the last two weeks searching for things and
getting
 no answers - Any help in pointing me a good straight forward
tutorial/manual
 would be appreciated.

 B.



 --
 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] dynamic/multidimensional arrays in classes

2003-03-27 Thread Patrick Teague
I'm currently having a problem with another array in a class  I can't
figure it out -

class myClass
{
function myClass($arr = array( 'item1'=array('a','b','c'),
'item2'=array('a','b','c') ) )
{
print_r( $arr );
while( list($key,$val) = each($arr) )
{
print($key.=.$val);
}
}
}

now, if I say

$mine = myClass();

it only prints the print_r statement, but not the print($key.=.$val)
statment meaning it doesn't even bother entering the loop.  However if I say

$mine = myClass(array( 'item1'=array('a','b','c'),
'item2'=array('a','b','c') ) );

it prints both...  is there some reason why I need to repeat the default
value when creating the class?  I've also tried using a  string on class
creation, but no luck there either.

Patrick



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



[PHP] Reading GIF images in Win2k + Apache + PHP

2003-03-17 Thread Patrick Teague
I have a class that reads gif images  can then make jpeg or png thumbnails
of the gif image, but it only seems to work on linux.  Is there any way to
open/convert the gif to some other graphic format so I can at least read the
gif image in on windows?

here's the current code I have for reading in file types, but the gif
section blows up.  Is there a way with something like readfile() or fopen()
to get the information from a gif file?

  switch($type)
  {
   case gif:
$orig_img = imagecreatefromgif($filename);
break;
   case jpg:
$orig_img = imagecreatefromjpeg($filename);
break;
   case png:
$orig_img = imagecreatefrompng($filename);
break;
  }

Patrick



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



[PHP] GIF images

2003-03-13 Thread Patrick Teague
Ok, considering GIF support was dropped in the latest  greatest...  How
come on my linux webserver I can get imagecreatefromgif(() to work, but not
on my windows test server?  The seemingly strange thing is that
imagecreatefromgif() seems to be the only gif function that works on the
linux server  thank goodness because I need to be able to at least read gif
images (outputting to jpg or png is no problem).

Any ideas?  this is how I compiled php on my linux box -

./configure --with-apxs=/usr/local/apache_1.3.27/bin/apxs --with-xml \
 --enable-bcmath --enable-calendar --with-curl --enable-ftp \
 --with-gd --with-jpeg-dir=/usr/local \
 --with-png-dir=/usr --with-kerberos --with-imap=/usr \
 --with-ming --enable-magic-quotes \
 --with-mysql --with-pear --enable-safe-mode --enable-track-vars \
 --with-ttf --enable-versioning --with-zlib

I'm using the precompiled windows version from php.net on my windows box
with the php_gd.dll extension, I've also tried using the php_gd2.dll, but
neither seems to work.

Thanks for any help :)

Patrick



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



Re: [PHP] Is PHP designed (have the capability) to access remote DB?

2003-03-12 Thread Patrick LOK
Do u meant PHP can only access localhost DB?

./pl



Clint Tredway [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 PHP can access any database that the server that PHP is running on can get
 to and has the correct permissions to get to the database.

 Clint

 -Original Message-
 From: Patrick LOK [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 12, 2003 7:26 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
 [EMAIL PROTECTED]
 Subject: [PHP] Is PHP designed (have the capability) to access remote
 DB?


 Is PHP designed (have the capability) to access remote DB?

 Is there any PHP developer willing to answer the question?

 ./pl



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



[PHP] Re: [PHP-DEV] Is PHP designed (have the capability) to access remote DB?

2003-03-12 Thread Patrick LOK
IT IS ABOUT THE DESIGN AND DEVELOPMENT OF PHP



Derick Rethans [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Stop posting user questions to the php-dev and php5-dev list, as I
 explained before.

 Derick

 On Wed, 12 Mar 2003, Patrick LOK wrote:

  Is PHP designed (have the capability) to access remote DB?
 
  Is there any PHP developer willing to answer the question?
 
  ./pl
 

 --
 my other box is your windows PC
 -
  Derick Rethans http://derickrethans.nl/
  PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
 -



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



Re: [PHP] Re: [PHP-DEV] Is PHP designed (have the capability) to access remote DB?

2003-03-12 Thread Patrick LOK
I tried mssql_connect  pgsql_connect to remote db but never connected!
I have searched thru. the manual and QA but can't find an answer.
Any tips?
./pl


Clint Tredway [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 No its not. PHP does the same thing that ASP, ColdFusion, or JSP does in
the
 way of connecting to a databse. They can all access a database that is not
 on the localhost. It is not about the design and development of PHP.

 -Original Message-
 From: Patrick LOK [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 12, 2003 7:33 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Re: [PHP-DEV] Is PHP designed (have the capability) to
 access remote DB?


 IT IS ABOUT THE DESIGN AND DEVELOPMENT OF PHP



 Derick Rethans [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Stop posting user questions to the php-dev and php5-dev list, as I
  explained before.
 
  Derick
 
  On Wed, 12 Mar 2003, Patrick LOK wrote:
 
   Is PHP designed (have the capability) to access remote DB?
  
   Is there any PHP developer willing to answer the question?
  
   ./pl
  
 
  --
  my other box is your windows
PC

 -
   Derick Rethans http://derickrethans.nl/
   PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/

 -



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



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



Re: [PHP] Re: [PHP-DEV] Is PHP designed (have the capability) to access remote DB?

2003-03-12 Thread Patrick LOK
Well... just what _connect required! servername, userid, password.  What
else?

any tips?
./pl


Niklas lampén [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
You said before you got a odbc connection to your remote db = remote
connections are possible.

The problem is in:

a) db configuration
b) your way of trying to connect to db
c) your firewall
d) remote firewall
e) all above


Niklas


-Original Message-
From: Patrick LOK [mailto:[EMAIL PROTECTED]
Sent: 12. maaliskuuta 2003 15:33
To: [EMAIL PROTECTED]
Subject: [PHP] Re: [PHP-DEV] Is PHP designed (have the capability) to access
remote DB?


IT IS ABOUT THE DESIGN AND DEVELOPMENT OF PHP



Derick Rethans [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Stop posting user questions to the php-dev and php5-dev list, as I
 explained before.

 Derick

 On Wed, 12 Mar 2003, Patrick LOK wrote:

  Is PHP designed (have the capability) to access remote DB?
 
  Is there any PHP developer willing to answer the question?
 
  ./pl
 

 --
 my other box is your windows
 PC
 -
  Derick Rethans http://derickrethans.nl/
  PHP Magazine - PHP Magazine for Professionals   http://php-mag.net/
 -



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

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail. For
more information, connect to http://www.F-Secure.com/

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/



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



Re: [PHP] dynamic/multidimensional arrays in classes

2003-03-12 Thread Patrick Teague
Thanks, that solved the problem :)

I am however now having another problem inside 1 of the class functions

function return_statement()
{
$state = $this-statement;
print_r( $this-statement );
while( list($item,$arr) = each($this-statement) )
{
print Hello;
}
/*
while( list($item,$arr) = each($state) )
{
print Hello;
}
*/
}

$this-statement prints out as Array { [a] = Array ( [0]=1, [1]=2,
[2]=3, ), [b] = Array ( [0]=1, [1]=2, [2]=3, ) }

For some reason the first while() does not print anything, but comment the
first while()  let the 2nd run  it prints.  What's up with this?  Is this
correct or am I missing something obvious again?

Thanks again
Patrick


- Original Message -
From: James Holden [EMAIL PROTECTED]
To: Patrick Teague [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, March 10, 2003 4:01 AM
Subject: Re: [PHP] dynamic/multidimensional arrays in classes


 $this-$arr[]

  should be

  $this-arr[]

 You are using a variable defined within the class - since it is a class
variable you can reference it as you would anything else within the class,
using '$this-'





 Patrick Teague wrote:

 I'm having problems figuring this out.  This first way gives me a 'Fatal
 Error: Cannot use [] for reading in class.php on line xx'
 
 class myClass
 {
var $arr = array();
 
function add_something( $value )
{
   $this-$arr[] = $value;  // this is the line causing the error
}
 }
 
 I've also tried using count() to find out how many items are in $arr, but
it
 keeps saying that $r == 0...  i.e.
 
 function add_something( $value )
 {
$r = count($arr);
 /*
if( is_null( $r )
{
   $r = 0;
}
 */
//print( $r );
$this-$arr[$r] = $value;
 }
 
 I've tried this both with  without the commented section  still $r = 0
 even if you use '$class-add_something(my value);' 50 times.  I'm
guessing
 once this problem is solved it will work for multidimensional arrays as
 well?
 
 Patrick
 
 
 
 
 








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



[PHP] Re: [PHP-DB] How to Connect remote DB server?

2003-03-12 Thread Patrick LOK
There is no firewall within the LAN environment.

I tried the mssql_connect too using mssql_connect(testdb,sa,) but same
error returned!
Any idea?

./pl

Jason Wong [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 On Wednesday 12 March 2003 19:28, Patrick LOK wrote:
  It is possible to connect a remote db server using x_connect?
  e.g. a PostgreSQL in server PSQLDB, ip=192.168.0.100  and a MSSQL server
  MSSQLDB, ip=192.168.0.110
 
  I tried pgsql_connect(psqldb,administrator,) 
  pgsql_connect(192.168.0.100,administrator,) but failed!
 
  Error is Unable to connect to server: psqldb in psqltest.php on line 2

  Unable to connect to server: 192.168.0.100 in psqltest.php on line 2

 Yes, it is possible to connect to a remote DB server. You have to make
sure
 that:

 a) the DB server in question is configured to accept remote connections
 b) any intervening firewall is correctly configured to allow DB traffic


 --
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-db
 --
 /*
 Dr. Livingston?
 Dr. Livingston I. Presume?
 */




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



Re: [PHP] Re: [PHP-DB] How to Connect remote DB server?

2003-03-12 Thread Patrick LOK
Couldn't be !  I have MS client connecting to the db-server!  I tried
odbc_connect for both MSSQL  PostgreSQL and it is ok!
However, odbc connection is no good for db processing!

Further help?

./pl


Niklas lampén [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Possibly the db-server is accepting only localhost connections.


Niklas


-Original Message-
From: Patrick LOK [mailto:[EMAIL PROTECTED]
Sent: 12. maaliskuuta 2003 14:39
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] Re: [PHP-DB] How to Connect remote DB server?


There is no firewall within the LAN environment.

I tried the mssql_connect too using mssql_connect(testdb,sa,) but same
error returned! Any idea?

./pl

Jason Wong [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 On Wednesday 12 March 2003 19:28, Patrick LOK wrote:
  It is possible to connect a remote db server using x_connect?
  e.g. a PostgreSQL in server PSQLDB, ip=192.168.0.100  and a MSSQL
  server MSSQLDB, ip=192.168.0.110
 
  I tried pgsql_connect(psqldb,administrator,) 
  pgsql_connect(192.168.0.100,administrator,) but failed!
 
  Error is Unable to connect to server: psqldb in psqltest.php on
  line 2

  Unable to connect to server: 192.168.0.100 in psqltest.php on line
  2

 Yes, it is possible to connect to a remote DB server. You have to make
sure
 that:

 a) the DB server in question is configured to accept remote
 connections
 b) any intervening firewall is correctly configured to allow DB traffic


 --
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development
 *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-db
 --
 /*
 Dr. Livingston?
 Dr. Livingston I. Presume?
 */




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

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail. For
more information, connect to http://www.F-Secure.com/

###
This message has been scanned by F-Secure Anti-Virus for Internet Mail.
For more information, connect to http://www.F-Secure.com/



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



[PHP] dynamic/multidimensional arrays in classes

2003-03-09 Thread Patrick Teague
I'm having problems figuring this out.  This first way gives me a 'Fatal
Error: Cannot use [] for reading in class.php on line xx'

class myClass
{
   var $arr = array();

   function add_something( $value )
   {
  $this-$arr[] = $value;  // this is the line causing the error
   }
}

I've also tried using count() to find out how many items are in $arr, but it
keeps saying that $r == 0...  i.e.

function add_something( $value )
{
   $r = count($arr);
/*
   if( is_null( $r )
   {
  $r = 0;
   }
*/
   //print( $r );
   $this-$arr[$r] = $value;
}

I've tried this both with  without the commented section  still $r = 0
even if you use '$class-add_something(my value);' 50 times.  I'm guessing
once this problem is solved it will work for multidimensional arrays as
well?

Patrick



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



[PHP] Cannot connect PostgreSQL 7.3.1. Using PHP thru...

2003-03-07 Thread Patrick LOK
I have the following setups:
*PostgreSql 7.3.1 and MSSQL on Win2k server (A)
*Apache 1.3.x + PHP 4.3.1.1(using CGI  loaded w/ php_pgsql.dll) +  ODBC for
PostgreSql v7.02.00.05 on Win2K server (B)

I tried to use phppgadmin 2.4.2  and odbc for postgresql to connect
PostgreSql in (A) but both connection failed!

Can somebody give me some advices?
Can PHP access remote DB server?
Can ODBC for PostgreSql access remote DB server?

Best regards
./pl



Using  PHPPGADMIN 2.4.2 to administer but it says Wrong username/password.
Access denied.

The following is logged on psqlodbc_.log:
DSN info:
DSN='PostgreSQL',server='192.168.1.16',port='5432',dbase='tet',user='adminis
trator',passwd=''

onlyread='0',protocol='6.4',showoid='0',fakeoidindex='0',showsystable='0'
  conn_settings='',conn_encoding='OTHER'
  translation_dll='',translation_option=''


I wrote a simple php program in (B) to connect to server (A) using odbc for
postgresql but the connection failed!

?php
$rtn = odbc_connect(PostgreSql,administrator,);
$cur=odbc_exec($rtn,select d_base, high_jrnal from salfmsc);
while(odbc_fetch_row($cur)){
$fld1=odbc_result($cur,1);
$fld2=odbc_result($cur,2);
echo $fld1;
echo (-);
echo $fld2;
echo (p);
}
echo odbc_close($rtn);
?

BUT Warning is returned.
Warning: SQL error: Could not connect to the server; Could not connect to
remote socket., SQL state 08001 in SQLConnect in
d:\tmp\webcodetest\mstest.php on line 3

The following is logged on psqlodbc_.log:
DSN info:
DSN='PostgreSql',server='192.168.1.16',port='5432',dbase='tet',user='adminis
trator',passwd=''

onlyread='0',protocol='6.4',showoid='0',fakeoidindex='0',showsystable='0'
  conn_settings='',conn_encoding='OTHER'
  translation_dll='',translation_option=''
conn = 15742608, PGAPI_Connect(DSN='PostgreSql', UID='teter', PWD='')
Global Options: Version='07.02.0005', fetch=100, socket=4096,
unknown_sizes=0, max_varchar_size=254, max_longvarchar_size=8190
disable_optimizer=1, ksqo=1, unique_index=1,
use_declarefetch=0
text_as_longvarchar=1, unknowns_as_longvarchar=0,
bools_as_char=1 NAMEDATALEN=64
extra_systable_prefixes='dd_;', conn_settings=''
conn_encoding='OTHER'
CONN ERROR: func=PGAPI_Connect, desc='Error on CC_connect', errnum=101,
errmsg='Could not connect to the server'

henv=15742552, conn=15742608, status=0, num_stmts=16
sock=15753592, stmts=15761872, lobj_type=-999
 Socket Info ---
socket=-1, reverse=0, errornumber=4, errormsg='Could not connect
to remote socket.'
buffer_in=15753664, buffer_out=15757768
buffer_filled_in=0, buffer_filled_out=0, buffer_read_in=0



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



[PHP] Re: Cannot connect PostgreSQL 7.3.1. Using PHP thru...

2003-03-07 Thread Patrick LOK
tcpip_socket is enabled!
access to postgresql is granted; ip-address is added to pg_hba.conf - METHOD
= trust

./pl



Patrick Lok [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I have the following setups:
 *PostgreSql 7.3.1 and MSSQL on Win2k server (A)
 *Apache 1.3.x + PHP 4.3.1.1(using CGI  loaded w/ php_pgsql.dll) +  ODBC
for
 PostgreSql v7.02.00.05 on Win2K server (B)

 I tried to use phppgadmin 2.4.2  and odbc for postgresql to connect
 PostgreSql in (A) but both connection failed!

 Can somebody give me some advices?
 Can PHP access remote DB server?
 Can ODBC for PostgreSql access remote DB server?

 Best regards
 ./pl



 Using  PHPPGADMIN 2.4.2 to administer but it says Wrong
username/password.
 Access denied.

 The following is logged on psqlodbc_.log:
 DSN info:

DSN='PostgreSQL',server='192.168.1.16',port='5432',dbase='tet',user='adminis
 trator',passwd=''

 onlyread='0',protocol='6.4',showoid='0',fakeoidindex='0',showsystable='0'
   conn_settings='',conn_encoding='OTHER'
   translation_dll='',translation_option=''


 I wrote a simple php program in (B) to connect to server (A) using odbc
for
 postgresql but the connection failed!

 ?php
 $rtn = odbc_connect(PostgreSql,administrator,);
 $cur=odbc_exec($rtn,select d_base, high_jrnal from salfmsc);
 while(odbc_fetch_row($cur)){
 $fld1=odbc_result($cur,1);
 $fld2=odbc_result($cur,2);
 echo $fld1;
 echo (-);
 echo $fld2;
 echo (p);
 }
 echo odbc_close($rtn);
 ?

 BUT Warning is returned.
 Warning: SQL error: Could not connect to the server; Could not connect to
 remote socket., SQL state 08001 in SQLConnect in
 d:\tmp\webcodetest\mstest.php on line 3

 The following is logged on psqlodbc_.log:
 DSN info:

DSN='PostgreSql',server='192.168.1.16',port='5432',dbase='tet',user='adminis
 trator',passwd=''

 onlyread='0',protocol='6.4',showoid='0',fakeoidindex='0',showsystable='0'
   conn_settings='',conn_encoding='OTHER'
   translation_dll='',translation_option=''
 conn = 15742608, PGAPI_Connect(DSN='PostgreSql', UID='teter', PWD='')
 Global Options: Version='07.02.0005', fetch=100, socket=4096,
 unknown_sizes=0, max_varchar_size=254, max_longvarchar_size=8190
 disable_optimizer=1, ksqo=1, unique_index=1,
 use_declarefetch=0
 text_as_longvarchar=1, unknowns_as_longvarchar=0,
 bools_as_char=1 NAMEDATALEN=64
 extra_systable_prefixes='dd_;', conn_settings=''
 conn_encoding='OTHER'
 CONN ERROR: func=PGAPI_Connect, desc='Error on CC_connect', errnum=101,
 errmsg='Could not connect to the server'
 
 henv=15742552, conn=15742608, status=0, num_stmts=16
 sock=15753592, stmts=15761872, lobj_type=-999
  Socket Info ---
 socket=-1, reverse=0, errornumber=4, errormsg='Could not
connect
 to remote socket.'
 buffer_in=15753664, buffer_out=15757768
 buffer_filled_in=0, buffer_filled_out=0, buffer_read_in=0





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



Re: [PHP] Get data from 5 tables

2003-03-06 Thread Patrick Schnegg
To keep those similiar column names apart and more readable, you might want
to use AS.

SELECT table1.data AS data1, table2.data AS data2 ... FROM table1, table2
...

Of course this is optional, you can always use table1.data, table2.data
instead. Hope that answers your actual question as to how you know which
data comes from which table.

Osman Omar [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 ok,

 how do I know which data come from which table?



 On Wed, 5 Mar 2003, olinux wrote:

  SELECT * FROM table1, table2, table3, table4
  WHERE id = 1 AND
  table1.id=table2.id AND
  table2.id=table3.id AND
  table3.id=table4.id AND
  etc.
 
 
  or you can use a JOIN
  http://www.mysql.com/doc/en/JOIN.html
 
 
  --- Osman Omar [EMAIL PROTECTED] wrote:
   Hi,
  
   How do I query to get data from 5 tables with same
   id. (id=1).
  
   eg,
  
   table1
   id  data
   1   blue
   2   green
  
   table2
   id  data
   1   yellow
   3   green
  
   table3
   id  data
   1   black
   4   white
  
   etc.
  
   thanks
  
  
   --
   PHP General Mailing List (http://www.php.net/)
   To unsubscribe, visit: http://www.php.net/unsub.php
  
 
 
  __
  Do you Yahoo!?
  Yahoo! Tax Center - forms, calculators, tips, more
  http://taxes.yahoo.com/
 
 




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



[PHP] PHP ODBC

2003-03-06 Thread Patrick LOK
Is there ODBC for PHP4 for LINUX to connect MS-SQL?
p.s. other than openlink software

rgds
./pl


[PHP] Re: Compiling PHP5 In Linux

2003-03-05 Thread Patrick LOK
Don't panic... it is just a warning according to some expert users.  The
same WARNING appears in building PHP4 too.  I also suffered  spent 3 days
trying to fix!
Many many people asked WHY.  Nobody tells why!  Nobody is going to fix it!
I would also really want to know why such STUPID message shown!  WHO CAN
TELL IT(use of name 'tempnam' ) IS DANGEROUS, Right?

./pl


Clete Rivers Blackwell 2 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Oh, my configure

'./configure --with-apxs2=/usr/sbin/apache/bin/apxs --with-gd2 --enable-sock
 ets'

 Clete Rivers Blackwell 2 [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Ok,
 
  I have RedHat 8.0 with the everything box checked in packages... when I
  build the CVS of PHP5, it tells me that tempnam is dangerous and to use
  makename or something... I think it's a code bug, but just in case, does
  anyone know if this is due to an outdated version of some program?
 
  Thanks in advance,
  Clete2
 
 





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



[PHP] Is anyone use / evaluate lxp before?

2003-03-04 Thread Patrick LOK
Is anyone use / evaluate lxp before?
How do u comment this product?

rgds
./pl


[PHP] Performance Question

2003-03-04 Thread Patrick Teague
What's the difference in performance between

print( file_get_contents(myfile.html) );

and

include(myfile.html);

is there any particular reason for using one over the other?

Patrick



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



[PHP] Re: How to use the fields of an array as individual parameter for a function

2003-03-04 Thread Patrick Schnegg
Hi

Instead of worrying how to pass the individual parameters to foo2, simply
pass the whole array to it and process it within the function itself. Seems
more logical to me.

Christian Bartels [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello!

I'm new here on the list. I hope you can help me! :)

I have a function foo1 which has a parameter $params. In the function i want
to pass $params to another function foo2. if $params is an array the
elements should be passed to foo2 as individual parameters. Is this
possible? How do i do that?

Example:

function foo1($params) {
  if (is_array($params)) {
$object = new foo2(GET THE ELEMENTS OF $params AS INDIVIDUAL PARAMETERS
HERE);
  } else {
$object = new foo2($params);
  }
}

So when this is called:
foo1(array('blue', 'red', 'green'));

In foo1 foo2 should be called like this:
foo2('blue', 'red', 'green');

Is this possible?

Thanks for any help!

(sorry about my english ;-))

---
CB




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



Re: [PHP] Re: How to use the fields of an array as individual parameter for a function

2003-03-04 Thread Patrick Schnegg
In this case, I would write a third function that processes the array for
passing it correctly to foo2. In a way that you will end up with something
like this:

$object = new foo2(processArray($params));

Have you thought about that?


Christian Bartels [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Yes, i thought about this already. But it is more work for me to do, 'cause
i would have to rewrite the constructors of several classes.
Anyways i am interested, whether this (pass the elements as variables) is
possible in php.


---
CB

-Ursprüngliche Nachricht-
Von: Patrick Schnegg [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 4. März 2003 11:11
An: [EMAIL PROTECTED]
Betreff: [PHP] Re: How to use the fields of an array as individual parameter
for a function


Hi

Instead of worrying how to pass the individual parameters to foo2, simply
pass the whole array to it and process it within the function itself. Seems
more logical to me.

Christian Bartels [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello!

I'm new here on the list. I hope you can help me! :)

I have a function foo1 which has a parameter $params. In the function i want
to pass $params to another function foo2. if $params is an array the
elements should be passed to foo2 as individual parameters. Is this
possible? How do i do that?

Example:

function foo1($params) {
  if (is_array($params)) {
$object = new foo2(GET THE ELEMENTS OF $params AS INDIVIDUAL PARAMETERS
HERE);
  } else {
$object = new foo2($params);
  }
}

So when this is called:
foo1(array('blue', 'red', 'green'));

In foo1 foo2 should be called like this:
foo2('blue', 'red', 'green');

Is this possible?

Thanks for any help!

(sorry about my english ;-))

---
CB




--
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: mail() function

2003-03-04 Thread Patrick Schnegg
The mail() function will only send one mail at a time, to send multiple
mails you would write a loop like this (presuming you had your mail
addresses ready in an array called $emails):

foreach ($emails as $email) {
mail($email, your subject, your message);
}

Denis L. Menezes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello friends,

Can the mail() function send emails to multiple addresses which are
formatted as follows :

[EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] etc with a
comma or a semicolon between them?

Thanks
Denis





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



[PHP] Re: mail() function

2003-03-04 Thread Patrick Schnegg
Just in case you don't know, you can easily make an array out of your string
of emails by exploding using the commas as separators:

$emails = explode (,, $stringOfEmails);

Patrick Schnegg [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 The mail() function will only send one mail at a time, to send multiple
 mails you would write a loop like this (presuming you had your mail
 addresses ready in an array called $emails):

 foreach ($emails as $email) {
 mail($email, your subject, your message);
 }

 Denis L. Menezes [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Hello friends,

 Can the mail() function send emails to multiple addresses which are
 formatted as follows :

 [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] etc with a
 comma or a semicolon between them?

 Thanks
 Denis







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



Re: [PHP] Re: mail() function

2003-03-04 Thread Patrick Schnegg
Oh, silly me. Commas are indeed accepted. My apologies.

- Original Message - 
From: Jason Wong [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Tuesday, March 04, 2003 2:18 PM
Subject: Re: [PHP] Re: mail() function


 On Tuesday 04 March 2003 21:13, Patrick Schnegg wrote:
  The mail() function will only send one mail at a time, to send multiple
  mails you would write a loop like this (presuming you had your mail
  addresses ready in an array called $emails):
 
  foreach ($emails as $email) {
  mail($email, your subject, your message);
  }
 
  Denis L. Menezes [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
  Hello friends,
 
  Can the mail() function send emails to multiple addresses which are
  formatted as follows :
 
  [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED] etc with a
  comma or a semicolon between them?
 
 Denis, Patrick, both of you take a look at the example in the manual.
 
 -- 
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-general
 --
 /*
 Having the fewest wants, I am nearest to the gods.
 -- Socrates
 */
 


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



[PHP] Re: Remember scrolled position

2003-03-04 Thread Patrick Schnegg
I would tend to make this with common html using named anchors. Just enclose
every button with a an anchor and define its name numbering it with php.
Then simply make sure that when the button is pressed that number is
appended to the url so it will look like yourdocument.php?yourdata=blah#5
making the browser jump to the anchor named 5.

Lars Espelid [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 I'm trying to implement the following functionality into the file
test.php:

 When I scroll down the page and then hit a button, the page should
remember
 the scrolled position, refresh the page and then scroll down to the
 remembered position. If I knew how many form-schemas there would be on the
 page, this would be easy. But I don't so then I need a way to give each
form
 a unike name and this name I need to use in the function hentKoordinat().
 But when hentKoordinat is executed the variable containing the form-name
is
 not yet set.

 When someone hits a button in one of the form-schemas the following
 happens:
 1) hentKoordinat() is executed. The form-schemas hidden field named yKoord
 gets the value: the amunt of pixels scrolled in y-direction. This doesn't
 work because $teller is not yet set (needed to specify which form is
 submitted).
 2)the page is refreshed and $teller is set to a number whisch says which
 form is submitted and $yKoord is set to the amunt of pixels scrolled in
 y-direction.
 3)onload in body calls the function mScroll which scrolls the page to
where
 it was when someone clicked the button.

 Hoping someone can help, maybe I need to do this a totally different way?

 Thanks!

 Lars


 Tried to explain the code in test.php:

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 http://www.w3.org/TR/html4/loose.dtd;
 html
 head
 titleUntitled Document/title
 script language=JavaScript type=text/javascript
 !--

 function getPageScroll(){

 //this function returns scrollX and scrollY as probertys of
 getPageScroll. ScrollX and scrollY
 //contains the amount of pixels the page has been scrolled in x and y
 direction.

 var X, Y;
 if(typeof window.pageXOffset == 'number'){
 X = window.pageXOffset;
 Y = window.pageYOffset;
 }else{
 if((window.document.compatMode)
   (window.document.compatMode == 'CSS1Compat')){
 X = window.document.documentElement.scrollLeft;
 Y = window.document.documentElement.scrollTop;
 }else{
 X = window.document.body.scrollLeft;
 Y = window.document.body.scrollTop;
 }
 }
 return {scrollX:X,scrollY:Y};
 }
 function hentKoordinat() {

 // this function uses getPageScroll() to find pixels scrolled in
y-direction
 and inserts this value into the hidden-form-value named yKoord in the
form
 schema which holds the button clicked (form?php echo $teller; ?).


  //*Here the problem arises. The first time you click a button,
$teller
 is not set. This method is executed before the page is refreshed. The
value
 $teller is set when the page is refreshed.*

 document.form?php echo $teller; ?.yKoord.value = getPageScroll().scrollY
 }

 function mScroll() {

 //this function scrolls the page so many pixels that $yKoord holds in the
 y-direction.
 //to avoid error messages I set $yKoord like 0 if it is empty (scrolls
 nothing).

  ?php if(!isset($yKoord)) $yKoord=0; ?
  ?php if($yKoord=='') $yKoord=0; ?
  self.scrollTo(0,?php echo $yKoord; ?)
 }

 //--
 /script
 /head

 body onLoad=mScroll()
 ?php echo p Ykoordinat:  . $yKoord . p;
 echo Teller:  . $teller;

 for($i=0; $i150; $i++) {
 //prints 150 line breaks so that the page gets scrollable (the content
does
 not fit the monitor-area)
  echo 'br';
 }
 for($teller=0; $teller2; $teller++) {
 //prints two form-schemas. Later on I will print a varying amount of
 form-schemas (depends on the amunt of
 //data in a MySQL-table)
 //The form name includes $teller so that each form-schema gets a unike
name
 and I know which
 //$yKoord to update in hentKoordinat(). $teller and $yKoord is passed on
as
 variables when the page refreshes,
 //so that I know which form's button1 is submitted and how many pixels
there
 are to scroll when onload=mScroll()
 // in body is called (uses $yKoord).
 ?
  form action=test.php name=form?php echo $teller; ?
onsubmit=return
 hentKoordinat()
   input type=hidden name=teller value=?php echo $teller; ?
   input type=hidden name=yKoord
   input name=button1 type=submit value=Send input
  /form
  ?php $teller++; ?
 ?php
 } //for($teller=0; $i2; $i++) {
 ?
 /body
 /html





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



Re: [PHP] IMAP error while compiling PHP-4.3.0

2003-03-02 Thread Patrick Teague
I saw somewhere that if you don't have the kerberos stuff installed you'll
have problems compiling with imap, so as far as I can figure I have all the
rpms I need installed for imap support -

imap-2001a-9mdk
imap-devel-2001a-9mdk
krb5-devel-1.2.5-1mdk
krb5-libs-1.2.5-1mdk

Patrick

- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 01, 2003 1:42 AM
Subject: Re: [PHP] IMAP error while compiling PHP-4.3.0


 On Saturday 01 March 2003 06:30, Patrick Teague wrote:
  I'm trying to compile php on Mandrake 9, but this latest error during
  compile has me stumped as I've installed all the imap-devel type rpms.
 
  .
  checking for IMAP support... yes
  checking for pam_start in -lpam... yes
  checking for crypt in -lcrypt... (cached) yes
  configure: error: Cannot find imap library (libc-client.a). Please check
  your IMAP installation
 
  any ideas?  I checked the php.net faq on building, but I haven't found
any
  info about this.  I've searched the imap rpms I have  even searched the
  whole system, but it couldn't find 'libc-client.a' anywhere.

 Are you using RPMs? On a RH system that file is provided by the IMAP-devel
 package. I suppose it's similar for MDK. In general you need to install
the
 devel packages of any libraries that you wish to use.

 --
 Jason Wong - Gremlins Associates - www.gremlins.biz
 Open Source Software Systems Integrators
 * Web Design  Hosting * Internet  Intranet Applications Development *
 --
 Search the list archives before you post
 http://marc.theaimsgroup.com/?l=php-general
 --
 /*
 Hanson's Treatment of Time:
 There are never enough hours in a day, but always too many days
 before Saturday.
 */


 --
 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] 'make' PHP4.3.1 returns the use of function`tempnam' is dangerous --- WHY?

2003-03-02 Thread Patrick LOK
When I tried to 'make' PHP-4.3.1, it returns warning message and died.  I am
using RH8.0 + Apache 2.0.44
The warning tells me the use of function name 'tempnam' is dangerous (why?
who can tell?), and the 'make' process died.

The error is:
ext/mysql/libmysql/my_tempnam.lo: In function `my_tempnam':
/home/postgres/php-4.3.1/ext/mysql/libmysql/my_tempnam.c:103: the use of
`tempnam' is dangerous, better use `mkstemp'

I just follow the procedure from the php offical installation document from
( http://www.php.net/manual/en/install.apache2.php )

The command I use was:
#./configure --with-apxs2=/usr/local/apache2/bin/apxs
#make

Can somebody telling me why?  why function name 'tempnam' is dangerous (who
can tell whether it is dangerous, the compiler is not the GOD)? Can I
override this stupid idea?  Should I ask REDHAT about this STUPID thing?

How can I a 'make' PHP4.3.1 ?  Where can I find a PHP-4.3.1. rpm
instead.

I have attached all the make message, pls take a look if you have time.

Best regards
./pl



begin 666 make php error.txt
M6W)O;W1 V5R=F5R,2!P:' M-XS+C%=(R!M86ME#0HO8FEN+W-H(QI8G1O
M;[EMAIL PROTECTED]:6QE;[EMAIL PROTECTED];V1E/6-O;7!I;[EMAIL PROTECTED]( 
M26UA:6XO(U)+VAO
M;64O]S==R97,OAP+30N,RXQ+PT*;6%I;[EMAIL PROTECTED]/35])3D,@
M+4DO:]M92]P;W-T9W)ER]P:' M-XS+C$O:6YC;'5D92 M22]H;VUE+W!O
MW1GF5S+W!HTT+C,-BXQ+VUA:[EMAIL PROTECTED]:]M92]P;W-T9W)ER]P:' M
M-[EMAIL PROTECTED](O:6YC;'5D92 M22]H;VUE+W!O
MW1GF5S#0HOAP+30N,RXQ+UIE;[EMAIL PROTECTED]:]M92]P;W-T9W)ER]P:' M
M-XS+C$O97AT+WAM;]E'!A= @+4DO:]M92]P;W-T9W)ER]P:' M- T*
M+C,N,2]44U)-( M9R M3S(@(UPF5F97(MEC(UC(UA:6XO:6YT97)N
M86Q?9G5N8W1I;VYS+F,@+6\@;6%I;B]I;G1EFYA;%]F=6X-F-T:6]NRYL
M;PT*+V)I;B]S:!L:6)T;V]L(TMVEL96YT(TM;6]D93UL:6YK(=C8R M
M9R M3S(@+7!R969EBUP:6,@(UR%T: O:]M92]P;W-T9W(-F5S+W!H
MTT+C,N,2]L:6)S(UA=F]I9UV97)S:6]N(UM;V1U;4@(!E'0O8W1Y
M4O8W1Y4N;[EMAIL PROTECTED]W%L+W!H%]M7-Q#0IL+FQO(5X=]M7-Q
M;]L:6)M7-Q;]L:6)M7-Q;YL;R!E'0O;7ES6PO;EB;7ES6PO97)R
M;7-G+FQO(5X=]M7-Q;]L:6)M0T*W%L+VYE=YL;R!E'0O;7ES6PO
M;EB;7ES6PO=FEO;ET92YL;R!E'0O;7ES6PO;EB;7ES6PO%SW=O
MF0N;[EMAIL PROTECTED]W$-FPO;EB;7ES6PO;7E?:6YI=YL;R!E'0O;7ES
M6PO;EB;7ES6PO;7E?;EB+FQO(5X=]M7-Q;]L:6)M7-Q;]M5]S
M=%T:6,N#0IL;R!E'0O;7ES6PO;EB;7ES6PO;7E?;6%L;]C+FQO(5X
M=]M7-Q;]L:6)M7-Q;]M5]R96%L;]C+FQO(5X=]M7-Q;]L:0T*
M8FUYW%L+VUY7V-R96%T92YL;R!E'0O;7ES6PO;EB;7ES6PO;7E?95L
M971E+FQO(5X=]M7-Q;]L:6)M7-Q;]M5]T96UP;F$-FTN;[EMAIL PROTECTED]
M+VUYW%L+VQI8FUYW%L+VUY7V]P96XN;[EMAIL PROTECTED]W%L+VQI8FUYW%L
M+VUF7V-AV5C;G8N;[EMAIL PROTECTED]W%L+VQI#0IB;7ES6PO;7E?F5A9YL
M;R!E'0O;7ES6PO;EB;7ES6PO;7E?=W)I=4N;[EMAIL PROTECTED]W%L+VQI
M8FUYW%L+V5RF]RRYL;R!E T*=]M7-Q;]L:6)M7-Q;]M5]EG)O
MBYL;R!E'0O;7ES6PO;EB;7ES6PO;7E?9V5T=V0N;[EMAIL PROTECTED]W%L
M+VQI8FUYW%L+VT-GE?9EV+FQO(5X=]M7-Q;]L:6)M7-Q;]M9E]P
M86-K+FQO(5X=]M7-Q;]L:6)M7-Q;]M5]M97-S;F,N;[EMAIL PROTECTED]
MW%L#0HO;EB;7ES6PO;69?9ER;F%M92YL;R!E'0O;7ES6PO;EB;7ES
M6PO;69?9FY?97AT+FQO(5X=]M7-Q;]L:6)M7-Q;]M9E]W8PT*;VUP
M+FQO(5X=]M7-Q;]L:6)M7-Q;]T7!E;EB+FQO(5X=]M7-Q;]L
M:6)M7-Q;]S869E;6%L;]C+FQO(5X=]M7-Q;\-FQI8FUYW%L+VUY
M7V%L;]C+FQO(5X=]M7-Q;]L:6)M7-Q;]M9E]F;W)M870N;[EMAIL PROTECTED]
M+VUYW%L+VQI8FUYW%L+VUF7W!A=@N#0IL;R!E'0O;7ES6PO;EB;7ES
M6PO;69?=6YI'!A=@N;[EMAIL PROTECTED]W%L+VQI8FUYW%L+VUY7V9O5N
M+FQO(5X=]M7-Q;]L:0T*8FUYW%L+VUF7VQO861P871H+FQO(5X=]M
M7-Q;]L:6)M7-Q;]M5]P=AR96%D+FQO(5X=]M7-Q;]L:6)M7-Q
M;]M5]T:'(-E]I;FET+FQO(5X=]M7-Q;]L:6)M7-Q;]T:')?;75T
[EMAIL PROTECTED];[EMAIL PROTECTED]W%L+VQI8FUYW%L+VUU;%L;]C+FQO(5X=]M7-Q
M#0IL+VQI8FUYW%L+W-TFEN9RYL;R!E'0O;7ES6PO;EB;7ES6PO95F
M875L=YL;R!E'0O;7ES6PO;EB;7ES6PO;7E?8V]M')EPT*RYL;R!E
M'0O;7ES6PO;EB;7ES6PO87)R87DN;[EMAIL PROTECTED]W%L+VQI8FUYW%L
M+VUY7V]N8V4N;[EMAIL PROTECTED]W%L+VQI8FUYW$-FPO;ES=YL;R!E'0O
M;7ES6PO;EB;7ES6PO;7E?;F5T+FQO(5X=]M7-Q;]L:6)M7-Q;]D
M8G5G+FQO(5X=]M7-Q;]L:6)M#0IYW%L+W-TFUO=BYL;R!E'0O;7ES
M6PO;EB;7ES6POW1RUO=BYL;R!E'0O;7ES6PO;EB;7ES6POW1R
M;FUO=BYL;R!E'0O;0T*7-Q;]L:6)M7-Q;]S=')M86ME+FQO(5X=]M
M7-Q;]L:6)M7-Q;]S=')E;F0N;[EMAIL PROTECTED]W%L+VQI8FUYW%L+W-T
MF9I;P-BYL;R!E'0O;7ES6PO;EB;7ES6PO:7-?')E9FEX+FQO(5X
M=]M7-Q;]L:6)M7-Q;]I;G0RW1R+FQO(5X=]M7-Q;]L:6)M#0IY
MW%L+W-TC)I;G0N;[EMAIL PROTECTED]W%L+VQI8FUYW%L+W-TFENW1R+FQO
M(5X=]M7-Q;]L:6)M7-Q;]S=')C;VYT+FQO(5X= T*+VUYW%L+VQI
M8FUYW%L+W-TF-E;F0N;[EMAIL PROTECTED]W%L+VQI8FUYW%L+V)C:%N9V4N
M;[EMAIL PROTECTED]W%L+VQI8FUYW%L+V)M;W8-F4N;[EMAIL PROTECTED]W%L+VQI
M8FUYW%L+V)M;W9E7W5PYL;R!E'0O;7ES6PO;EB;7ES6PO;]N9VQO
M;FRW1R+FQO(5X=]M7-Q#0IL+VQI8FUYW%L+W-TG1O=6QL+FQO(5X
M=]M7-Q;]L:6)M7-Q;]S=')T;VQL+FQO(5X=]M7-Q;]L:6)M7-Q
M;]C:%R[EMAIL PROTECTED];[EMAIL PROTECTED]W%L+VQI8FUYW%L+V-T7!E+FQO(5X
M=]O=F5R;]A9]O=F5R;]A9YL;R!E'0O-R92]P8W)E;EB+VUA:V5T
M86(-FQERYL;R!E'0O-R92]P8W)E;EB+V=E=YL;R!E'0O-R92]P
M8W)E;EB+W-T=61Y+FQO(5X=]P8W)E+W!CF5L:6(O-R92YL#0IO(5X
M=]P8W)E+W!H%]P8W)E+FQO(5X=]P;W-I]P;W-IYL;R!E'0OV5S
MVEO;B]S97-S:6]N+FQO(5X=]S97-S:6]N+VUO9 T*7V9I;5S+FQO(5X
M=]S97-S:6]N+VUO9%]M;2YL;R!E'0OV5SVEO;B]M;V1?=7-EBYL;R!E
M'0OW1A;F1AF0O87)R87DN;[EMAIL PROTECTED]@-G0OW1A;F1AF0O8F%S938T+FQO
M(5X=]S=%N9%R9]B87-I8U]F=6YC=EO;G,N;[EMAIL PROTECTED])D

  1   2   3   >