[PHP] rad tools, form paser/validator

2002-11-24 Thread Robert Mena
Hi all,

I've been working with php for a while and whenever I
have the chance I give some tutorials/speeches about
it to other developers, specially those with no
experience with web development.

They all find easy but in one point or another start
asking about an IDE with a debugger, variable watch
etc or RAD tools (they come from Visual Basic/Delphi
enviroments).

In the IDE part I know we have some paid tools (such
as Zend) but can't tell anything that could count as
RAD tool.

So, I'd like to know if there are any RAD tools ,
either free or paid that you know.

One thing that I am planing to develop, or enhance if
I found something similar already, is a form
"parser/validator".

Suppose your design department comes with a real nice
html-css-form and you need to validate it, send the
content as email or add in a database.

This tool would read the HTML and prompt you for the
optional/required fields, validation options
(minimum/max length) etc, send via email or add in a
database..

Then would generate the php code to validate and
perform the required actions.

I think there is a classe (from manuel lemos) that
does soemthing similar but also generate the form
itself based on a definition.

What do you thing about it ?

The ideia is to speed up the repetitive/boring stuff
leting the developer focus on special logic - usually
restricted to fewer options.

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




[PHP] Advice with encrypting+storing sensitive data

2002-12-04 Thread Robert Mena
Hi,

I need to develop an application where the protection
of the data (to be stored on a database) should be
very important (perhaps the principal requirement).

THe goal is to have the data stored in a way that even
the admin or anyone that hacks the web and/or database
server could not (or easily) recover the original
data.

First of all I am not a security expert and the
protection need not to be military-grade, just strong
enough to make things harder.

I would like to share a couple of ideias but mostly
interestered in phpers experiences and opinions.

1) Use mcrypt

The user should have to create a phrase and all
sensitive data will be stored using this phrase. 
Since the phrase will not be hardcoded in the php
scripts, even if the web is hacked it will not be
recovered.

For each row I would store the encrypted value and the
initialization vector.

In order to recover the value at the beginning of the
session (when the user logs in) I could store the
phrase as session variable (encrypted with mcrypt and
a system phrase?)

If the user decides to change the phrase a big update
in all encrypted rows/fields would be necessary.

2) Use PGP

Basically the same ideia but differnt encryption
tool/scheme.
Not sure how to implement or if there is any gain.

Well any tips/sugestions/opinions are welcome.


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: [PHP] Advice with encrypting+storing sensitive data

2002-12-05 Thread Robert Mena
Thanks Bahwi, 

I agree with you regarding the client-side aspect.
But since we are talking about a regular web-based
application in php I think I will have to deal with
that.

The other security concerns are already addressed,
such as the use of SLL to encrypt the traffic and
possibly the use of an encoder do hide the source
code.

I do not think I understood your ideia : 
>The next best thing is to store it in session
> variables, but build your own system perhaps, and
yes, encrypt it lightly with some system and a 
> system passphrase




__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




[PHP] Win32 php : MS Access support (odbc support)

2002-12-19 Thread Robert Mena
Hi, 

I will have to retrieve data stored in a MDB (MS
Access) "database".

Since this MDB file be hosted in a Windows machine I'd
like to have a CGI version of PHP with ODBC support so
I can retrieve the data locally and send to a remote
mysql database automatically.

Since I've never used the CGI version to MDB any
tips/caveats will be appreciated.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




[PHP] Problems to compile php (cvs)

2003-01-26 Thread Robert Mena
Hi, I usually fetch php from cvs a couple of times in
order to try new features etc.

Unfortunately since the beginning of this week I have
been unable to compile, no matter what I do.

I have been cvsing daily, buildconf and the same
./configure settings I have been using for ages.

./configure --with-apxs2 --enable-gd-native-ttf
--with-xml --with-openssl --with-zlib --with-dom
--with-gd --with-ttf

The error :

home/php4/ext/standard/basic_functions.c: In function
`php_simple_ini_parser_cb':
/home/php4/ext/standard/basic_functions.c:2827:
`ZEND_INI_PARSER_POP_ENTRY' undeclared (first use in
this function)
/home/php4/ext/standard/basic_functions.c:2827: (Each
undeclared identifier is reported only once
/home/php4/ext/standard/basic_functions.c:2827: for
each function it appears in.)

Any tips ?

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




[PHP] strange behaviour with 4.3.0 : warning of an unspecified open_basedir

2003-01-29 Thread Robert Mena
Hi,  I've upgraded the php version from 4.2.2 to 4.3.0
yesterday and some of my users started complaining
about errors in php scripts.

The errors do not occur all the times and the messages
shown are weird (for me at least) !

The user is accessing a php file located under
/var/www/html/site.com/private/alt.php3. It performs a
mysql query.

I have a virtual host in apache so
/var/www/html/site.com/ is mapped as www.site.com.

The error messages :
Warning: Unknown(): open_basedir restriction in
effect. File(/var/www/html/site.com/private/alt.php3)
is not within the allowed path(s):
(/home/httpd/html/anothersite.com/) in Unknown on line
0

Warning:
Unknown(/var/www/html/site.com/private/alt.php3):
failed to create stream: Operation not permitted in
Unknown on line 0

Warning: Unknown(): Failed opening
'/var/www/html/site.com/private/alt.php3' for
inclusion
(include_path='.:/usr/local/lib/php/:/home/httpd/html/php/:/home/httpd/html/include/php/')
in Unknown on line 0


The strange part is that the safe_mode is off and it
mentions a directory from another virtual host
(anothersite.com).


ServerAdmin webmaster
DocumentRoot /home/httpd/html/site.com/
ServerName www.site.com.br
ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/

#php_admin_value doc_root
"/home/httpd/html/site.com/"
php_admin_flag safe_mode off
#php_admin_value open_basedir
"/home/httpd/html/site.com/:/tmp/"



System : Linux / Redhat 7.3 / Apache 1.3

'./configure' '--with-gd' '--with-apxs' '--with-xml'
'--with-ftp' '--enable-session' '--enable-trans-sid'
'--with-zlib' '--enable-inline-optimization'
'--with-mcrypt=/usr/local' '--with-imap=../imap-2001a
' '--with-kerberos'
'--with-oci8=/u01/app/oracle/product/8.1.7/'
'--enable-sigchild' '--with-gettext' '--with-freetype'
'--with-ttf' '--with-ftp' '--enable-ftp'

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




[PHP] Problems with 4.3.0 cli and paths

2003-01-31 Thread Robert Mena
Hi,

I have upgraded my server with the 4.3.0 version.  The
cli was upgraded also and all my scripts started to
crash.

I ususally put a #!/husr/local/bin/php -q in all
scripts that need to be executed from the crontab.

All the sudden the scripts ended with error messages
such as Warning: main(../php/define.php)
[http://www.php.net/function.main]: failed to create
stream: No such file or directory in
/home/httpd/html/script.php on line 11

What's going on ?

Do I need to put the full path now ?

regards.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




[PHP] another problem with 4.3.0 : imagecreatefromjpeg undefined

2003-01-31 Thread Robert Mena
Hello again,

another problem with 4.3.0. I have gd support but
after the upgrade my scripts started complaing :

Fatal error: Call to undefined function:
imagecreatefromjpeg()

My ./configure (the same used for ages).

'./configure' '--with-apxs' '--with-ttf' '--with-xml'
'--with-gd' '--with-ftp' '--enable-session'
'--enable-trans-sid' '--with-zlib'
'--enable-inline-optimization' '--with-mcrypt'
'--enable-sigchild' '--with-config-file-path=/etc' '--with-freetype'

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




[PHP] Sax-like : accessing form fields elements

2003-02-16 Thread Robert Mena
Hi,

I am developing an application which will have to
parse a html page and extract information about the
forms found.

I tried the HTMLSAX class
(http://www.phpclasses.org/browse.html/package/678.html)
which is ok except by the fact that I can not retrieve
the default/checked status from the elements.

Ie. 

Any ideias ?

Since the html will usually be ill-formed a standard
DOM-tree (with builtin functions at least) wont be possible.

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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




[PHP] Correct number format (curency)

2003-02-20 Thread Robert Mena
Hi,

I have one application where the users enter a curency
value.

Unfortunately even tough I write the "correct" format
I keep receiving all kinds.

Example

1.000,00
1000.00
1,000.00

I would like to convert those to a single format
1000.00

Is there any function in php that already does that ? 
Or perhaps any code snippets ?

thanks.

__
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 4.3.0/4.3.2 - Strange problem with exec / move_uploaded_file

2003-07-04 Thread Robert Mena
Hi,

I am faciing a strange problem.  I have some php
script to  receive images (via file upload).

The script is failling to work because it can't
move/copy the file.

I've added a sleep(x) in order to make the temporary
file stick around.

  20 -rw---1 apache   apache  19402 Jul  4
10:49 /tmp/phpFj6Irk

I've added apache to an upload group

upload:x:1098:apache

And changed the owner of the directory.

ls -sla /home/httpd/html/foo.com/img/news/
total 24
   4 drwxrwxr-x6 webmaste upload   4096 Jul  4
10:11 .
   4 drwxrwxr-x5 webmaste webmaste 4096 Jun 10
15:55 ..
   4 drwxrwxr-x2 webmaste upload   4096 Jun  4
09:41 1
   4 drwxrwxr-x2 webmaste upload   4096 Jul  4
10:48 10
   4 drwxrwxr-x2 webmaste upload   4096 Jul  4
09:54 2

And the both commands below fail.

move_uploaded_file($tmpfile,$destination)
exec("/bin/cp $tmpfile $destination",$array)

The var_dump in array shows 

array(0) { }

The $destination var has (checked with echo)

/home/httpd/html/foo.com/img/news/10/xxx.jpg

Any ideias ?

__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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



[PHP] Help with "secure" virtual host setup

2003-08-03 Thread Robert Mena
Hi all,

I host some virtual domains within my apache 1.3.x/php
4.3.x setup.

Those domains are mantained by the users via ftp and I
was wondering if I could secure the configuration a
little bit more.  I know that are limitations but the
requirements would be :

a) the user should not be able to access files outside
the DocumentRoot besides system libraries or temporary
files
b) I'd like to have a system wide repository where
common libraries, classes should be accessed without
having to copy and mantain individually
c) Since the user has some php thet perform a file
upload, those scripts must be able to move, rename,
delete files located under the document root

As a starting point the user has a ftp login and the
document root is owned by the login.apache so the user
and the apache can access and alter the contents.

Best regards.

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



[PHP] PHP / Oracle support (8/9) under Redhat 9

2003-08-03 Thread Robert Mena
Hi,

I am planning to migrate my current web server from
redhat 7.x to 9 and I am currently evaluating what may
go wrong or need special attention before I actually
replace it.

After searching the archives and other lists I still
have a couple of questions :

a) apache

It seems that apache + php does not work well under
heavy load so I should stick with 1.3.X right ?  Any
ideas where I can find a rpm package for redhat 9 ?

b) oracle support

For the current setup I've downloaded and installed
the oracle 8i (8.1.5) in a separate machine, tar.gz
the lib directory in order to compile and run php with
oracle 8i.

Is this the best approach for Redhat 9 or should I try
to install oracle 9 which hopefully may have a
devel-only option ?  Note that php needs to access
external oracle 8 servers which I do not mantain.

Regards.

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: [PHP] PHP / Oracle support (8/9) under Redhat 9

2003-08-04 Thread Robert Mena
Hi Juan,

But I'd need to compile php with oracle support.

Do you have any experience with this setup ? RH9 + PHP
with oracle support ?

Regards.

--- Juan Nin <[EMAIL PROTECTED]> wrote:
> From: "Robert Mena" <[EMAIL PROTECTED]>
> 
> > a) apache
> >
> > It seems that apache + php does not work well
> under
> > heavy load so I should stick with 1.3.X right ? 
> Any
> > ideas where I can find a rpm package for redhat 9
> ?
> 
> Yes, stick with apache-1.3.x
> Latest 1.3.x version RPM from Red Hat for RH 7.3 is
> apache-1.3.27-2.i386.rpm
> 
> I'm using the latest RH 7.1 apache RPM in a RH 9 and
> runs ok, which is
> apache-1.3.27-1.7.1
> 
> Latest PHP version for RH 7.1 is php-4.1.2-7.1.6
> For RH 9 it's php-4.2.2-17, I guess there should be
> no problem in running
> that version with the apache-1.3.x from RH 7.x
> 
> Regards,
> 
> Juan
> 
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: [PHP] PHP / Oracle support (8/9) under Redhat 9

2003-08-04 Thread Robert Mena
Thanks for the reply.

I already use 4.3.1 in my current server.

I always compile my version of php since the ones that
come with the distro are always too old and usually
does not contain support for need features such as
mcrpyt or oracle.

- rt


--- Justin French <[EMAIL PROTECTED]> wrote:
> I can't help with the Oracle question, but yes,
> stick with apache 1.3.x 
> for the moment...
> 
> It would also pay to look at what version of PHP
> you're currently 
> running (eg 4.1) and see what major changes you're
> likely to experience 
> when upgrading to the latest stable version.
> 
> If your existing version is pre 4.1, the register
> globals will be an 
> issue, for example.
> 
> Sorry, I have no idea what version of PHP was on RH
> 7
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



[PHP] comparing xml files, removing some html tags

2003-08-17 Thread Robert Mena
Hi,

I need to compare two XML files in order to find if
they are "similar", i.e their DOM tree have the same
structure.

The ideia is to use Xerces to balance HTML files in
order to create Xhtml and then compare.

To make things a little easier for Xerces I am
considering to remove some elements that do not make
diference for my similarity point of view, for
example,  tags, before calling
xerces.

So I was wondering which regular expression should I
use to remove the content and so
on...

regards.



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: [PHP] comparing xml files, removing some html tags

2003-08-20 Thread Robert Mena
Thanks to all (actually just one) that answered my
question.  Unfortunatelly I was hoping a more
"complete" answer since the part I asked was not the
main goal... bu t anyway...

I'd like to ask then if the viewers could validate my
new approach or at least point ways of actually
implementing it.

Suppose I use Xerces and tidy to turn two html files
into two xhtml ones.

I'd like to remove the data found between the Tags and
generate two new files only with the scructure
elements (tables, Br, p and so on).

Then I could use regular diff from unix and if they
differ in more than X% I assume they are different.

Assuming that this approach is ok any tips regarding
the actual implementation ?  Any snippets of code
would be great.


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



[PHP] PHPOPENCHAT: he script tried to execute a method or access a property of an incomplete object.

2003-08-22 Thread Robert Mena
Hi,

I've installed and tested phpopenchat 3.0b2 in my
development machine (Apache/1.3.27 (Unix) 
(Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6
PHP/4.3.0) with no problems.

When I moved to the "real server" (PHP Version 4.3.2)
it keeps giving me this answer

Fatal error: Unknown(): The script tried to execute a
method or access a property of an incomplete object.
Please ensure that the class definition
adodb_mysql of the object you are trying to
operate on was loaded _before_ the session was started
in /var/www/html/chat/include/class.Chat.inc on line
1130

I've used the test.php script that comes with no
problem (it basically tests for user/password,
existance of directories)

Any ideias ?

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



[PHP] How to solve include_path / safe_mode / open_basedir /document_root ?

2003-03-25 Thread Robert Mena
Hi,  I host some virtual servers in a Linux/apache/php
4 enviroment.

I'd like to set up as secure as possible since the
users have ftp access to upload files.

So each virtual domain has a safe_mode/open_basedir
settings in order to make it difficult to mess with
each other's files.

Unfortunatelly this seems to have a side effect. 
Whenever I need to provide tools/classes such as
Jpgraph, Smarty and so on I have to copy to the user's
directory since the include_path could not reach
outside the document root/open_basedir directory.

So, is there a way to configure so I have a "secure"
enviroment and yet be able to define a common
repository.

Regards.

__
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

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



[PHP] Oracle support under PHP / 8i or 9 and a RedHat 9 / Apache 1.3.X machine

2003-06-03 Thread Robert Mena
Hi,

I have a server (currently 7.1) with apache + php
compiled with oracle (mcrypt, imap, gettext) support.

In order to do so I've installed the 8i linux
versions, make a tar.gz of the libs directory and
installed in my server.

I runs fine accessing a remote (not mantained by me)
oracle database.

I am planning to switch to a newer distribution and
was considering the RH9 but with the "old" apache.

Since I do not actually use Oracle (just enable php
scripts to do so) I am kind of lost if the combo (old
8i libs with redhat 9) are stable enough or should I
try a newer version, such as oracle 9.

And in that case if PHP level of support is the same
(oracle 8 or 9).

Since the answer can be slighty OT fell free to send
me directly.

Thanks.

__
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

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



[PHP] Redhat 8.0 / php-cvs - /usr/lib/httpd/build/instdso.sh: No such file or directory

2002-10-10 Thread Robert Mena

Hi, I've reinstalled my devel machine with RedHat 8.0.

After a cvs update of php I've decided to recompile
and install since the mod-php (which I did not
install) from RedHat is a little outdated :)

I've removed the config.cache, make clean and make.

The compilation was ok, but while trying to make
install

Installing PHP SAPI module
/usr/lib/httpd/build/instdso.sh
SH_LIBTOOL='/usr/lib/httpd/build/libtool' libphp4.la
/usr/lib/httpd/modules
sh: line 1: /usr/lib/httpd/build/instdso.sh: No such
file or directory
apxs:Error: Command failed with rc=8323072

Any tips.

I've searched the archives with no luck.

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

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




[PHP] XML, Parser and newbie links

2001-01-16 Thread Robert Mena

Hi, recently I was given the task to create an
application to generate xml files in order to exchange
data.

Since my knowleadge of xml is close to zero :) I also
received an english text explaining the DTD and an
example of how the file should be written.

So I got to a point where I simply should create a php
script to access my databases and output the data in
the requested format, right ?

Well close but not quite.  I am supposed to parse the
file with the DTD in order to validade it.

This seems to be the place where I got lost.  So how
exactly (with php or perhaps another tool) can do this
?

Thanks.

PS. If possible send me some urls with a tutorial of
XML so my next questions wont be so basic ;)

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Oracle + PHP + RH 6.2 (and 7.0)

2001-03-17 Thread Robert Mena

Hi, I was wondering if anyone has some links about
articles, code snippets or tips regarding the use of
oracle as rdbms and php.

I have experience with mysql so I am considering the
use of an abstraction layer to access so I could
easily por existing apps.

BTW. Does anybody know If the latest 8.1.7 works with
RedHat 7.0 ?
Is it possible to install just the necessary libs to
compile and run php+apache with oracle support ? My
web server is in a different machine than the actual
db server and I would not like to install the whole
package uncessary.

Thanks.



__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] php + apache.src.rpm

2001-04-18 Thread Robert Mena

Hi, I've donwloaded apache_1.3.12.src.rpm from
RedHat's site and I am trying to build it.

Unfortunately it keeps giving me error

+ adding selected modules
o rewrite_module uses ConfigStart/End
  disabling DBM support for mod_rewrite
  (perhaps you need to add -ldbm, -lndbm or -lgdbm
to EXTRA_LIBS)
o db_auth_module uses ConfigStart/End
Error: None of Berkeley-DB 1.x, 2.x or 3.x libraries
found.
   Either disable mod_auth_db or provide us with
the paths
   to the Berkeley-DB include and library files.
   (Hint: INCLUDES, LDFLAGS, LIBS)

The "funny" things it that I do have db1, db3 and gdbm
(devel also) installed.

rpm -qi db1
Name: db1 
Relocations: /usr
Version : 1.85 
Vendor: Red Hat, Inc.
Release : 4 Build
Date: Thu 17 Aug 2000
09:06:58 PM AMT
Install date: Fri 03 Nov 2000 08:03:45 AM AMT 
Build Host:
porky.devel.redhat.com
Group   : System Environment/Libraries   Source
RPM:
db1-1.85-4.src.rpm
Size: 76370   
License: BSD
Packager: Red Hat, Inc.

URL : http://www.sleepycat.com
Summary : The BSD database library for C (version
1).

ldconfig -v shows
libdb1 e db3

ldconfig -v | grep db
ldconfig: Path `/usr/lib' given more than once
libnss_db.so.2 -> libnss_db.so.2.0.0
libnss_db.so.1 -> libnss_db.so.1.0.0
libdb-3.1.so -> libdb-3.1.so
libpwdb.so.0 -> libpwdb.so.0.61.1
libthread_db.so.1 -> libthread_db-1.0.so
libgdbm.so.2 -> libgdbm.so.2.0.0
libdb.so.3 -> libdb2.so.3
libdb.so.2 -> libdb1.so.2
libkdb5.so.3 -> libkdb5.so.3.0

I am using the original .spec. and a standard RH 7.0 +
upgrades machine

Why is this related to php ? Because I'll need to
compile apache with phtreads support in order to use
php+oracle.

thanks.


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] zlib.output_compression - how to turn it on

2001-05-01 Thread Robert Mena

Hi, after downloading and compiling php4.0.6dev (from
cvs) I've decided to try the new "much improved" zlib
output support (already enabled in 4.0.5).

The announcement from the changelog says check the
zlib.output_compression ini.

I've searched the php.net site as well as the mailing
lists but could not find a reference for it.

I've tried to put zlib.output_compression=on (or yes)
in my /usr/local/etc/php.ini and even tough I've
restarted the server, phpInfo() shows me no
difference.

The php was compiled with zlib support. How can I turn
it on ?

thanks.

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] zlib.output_compression - how to turn it on

2001-05-02 Thread Robert Mena

Yasuo,

thanks for the reply. Yes I do have zlib support
(shows me in phpinfo()).

Sorry the stupid question but How do I check the size
of the page ?

If I access it and use save as I will have the
uncompressed version right ?

Which .ini directive did you use ?

- thanks

>>If you want to check if it is working.

>>Display phpinfo() and check the size of the file.
>>I get 6 KB compressed, where I get 50KB
uncompressed.

>> You have zlib support, right?

--
Yasuo Ohgaki

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Mcrypt + urlencode : how to pass encrypted values

2001-05-07 Thread Robert Mena

Hi I am developing an application which will encrypt
(using mcrypt library) some data.

Everyting is ok except the fact that I can no longer
have links (GET) passing the values. 

For ex.
I used to have
a href="script.php?plaintext=foobar"

now I need to pass that foobar value encrypted.

a
href="script.php?iv=Z%A3%BCH%B7%ED%EDo&encrypted=ÀšœÒÿk‰~"

How do I make it work?  urlencode seems to break when
I use with encrypted data.

hidden post variables are not an option.  Sessions
either.

thanks

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Detecting error in OCIExecute calls

2001-05-08 Thread Robert Mena

Hi, I am accessing an oracle database from PHP using
stored procedures available.

I'd like to detect when a problem occurs in order to
stop trying to fetch results.  In mysql I check for
rc=0 as an error.  The php doc does not tell if this
applies to oracle as well.

The code is something like this 
$res = OCINewCursor($oraCon); 
$stm = OCIParse ( $oraCon, " 
BEGIN 
  MY_PROCEDURE(:LOGIN, :PASS, :KEY, :INITIAL, :FINAL,
:RES); 
END; 
"); 

OCIBindByName ( $stm, ":LOGIN", &$login, -1); 
OCIBindByName ( $stm, ":PASS", &$pass, -1); 
OCIBindByName ( $stm, ":KEY", &$key, -1); 
OCIBindByName ( $stm, ":INITIAL", &$initial, -1); 
OCIBindByName ( $stm, ":FINAL", &$final, -1); 
OCIBindByName ( $stm, ":RES", &$res, -1, OCI_B_CURSOR
); 

$rc = @OCIExecute ( $stm ); 
if($rc)
{
OCIExecute ($res); 
...
}
else
{
// Error do something!
}

Thanks.

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP 4.0.5 - segmentation fault when using OCI8

2001-05-11 Thread Robert Mena

Hi, I have a development machine with 4.0.4pl1 which
has been used for creating a set of scripts to access
oracle (using stored procedures).

It seems to be working fine (the problems that I've
encountered seems to be related to the
oracle/procedure itself).

Last night I moved the scripts to the production
server.  Eveything was working ok until I try to
access the part the uses the oracle where it hangs for
a while and then gives me a [notice] child pid X
exit signal Segmentation fault (11).

I've compiled using './configure' '--with-apxs'
'--with-ttf' '--with-xml' '--with-gd' '--with-ftp'
'--enable-session' '--enable-trans-sid' '--with-zlib'
'--enable-inline-optimization'
'--with-oci8=/u01/app/oracle/product/8.1.7/'
--with-mcrypt  --enable-sigchild

Any ideas ?

Thanks.

__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP 4.0.5 - segmentation fault when using OCI8

2001-05-12 Thread Robert Mena

Hi Thies,

Yes, httpd is linked against pthread.
I've compiled 4.0.4pl1 and so far it is working ok. 
This problem (segmentation fault) seems to be
happening quite often (after reading some posts).

ldd /usr/sbin/httpd
libm.so.6 => /lib/libm.so.6 (0x4001a000)
libcrypt.so.1 => /lib/libcrypt.so.1
(0x40037000)
libdb.so.3 => /lib/libdb.so.3 (0x40065000)
libdl.so.2 => /lib/libdl.so.2 (0x4009f000)
libpthread.so.0 => /lib/libpthread.so.0
(0x400a4000)
libc.so.6 => /lib/libc.so.6 (0x400b7000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2
(0x4000)

- Thanks.
--- "Thies C. Arntzen" <[EMAIL PROTECTED]> wrote:
> On Fri, May 11, 2001 at 06:51:35AM -0700, Robert
> Mena wrote:
> > Hi, I have a development machine with 4.0.4pl1
> which
> > has been used for creating a set of scripts to
> access
> > oracle (using stored procedures).
> > 
> > It seems to be working fine (the problems that
> I've
> > encountered seems to be related to the
> > oracle/procedure itself).
> > 
> > Last night I moved the scripts to the production
> > server.  Eveything was working ok until I try to
> > access the part the uses the oracle where it hangs
> for
> > a while and then gives me a [notice] child pid
> X
> > exit signal Segmentation fault (11).
> > 
> > I've compiled using './configure' '--with-apxs'
> > '--with-ttf' '--with-xml' '--with-gd' '--with-ftp'
> > '--enable-session' '--enable-trans-sid'
> '--with-zlib'
> > '--enable-inline-optimization'
> > '--with-oci8=/u01/app/oracle/product/8.1.7/'
> > --with-mcrypt  --enable-sigchild
> 
> is your apache linked against -lpthread?
> 
> please read
> http://www.php.net/bugs-dos-and-donts.php and
> submit a bug report (with backtrace).
> 
> re,
> tc


__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] oracle 8i stored procedures + php access

2001-12-27 Thread Robert Mena

Hi, I have a delphi application that uses oracle as db
server with stored procedures (running ok).

I've been trying to make a php version of such
application with no luck so far.

I've created a user to access such thing and I keep
getting the following error

Warning: OCIStmtExecute: ORA-06550: line 3, column 3:
PLS-00905: object
SYSTEM.CAD013_PSQ_RSV is invalid ORA-06550: line 3,
column 3: PL/SQL:
Statement ignored in
/somewhere/test.php on line 20

Warning: OCIFetchInto: ORA-24338: statement handle not
executed in
/somewhere/test.php on line 31

If I try with user system the messages are diferent

Warning: OCIStmtExecute: ORA-06550: line 3, column 3:
PLS-00905: object SYSTEM.CAD013_PSQ_RSV is invalid
ORA-06550: line 3, column 3: PL/SQL:
Statement ignored in
/somewhere/test.php on line 20

Warning: OCIFetchInto: ORA-24338: statement handle not
executed in /somewhere/test.php on line 31

The script follows


 putenv("ORACLE_BASE=/u01/app/oracle") ;
 putenv("ORACLE_HOME=/u01/app/oracle/product/8.1.7");
 putenv("ORACLE_SID=oracle") ;

  $usernameOracle=dbuser;
  $passwordOracle=dbpassword;
  $hostOracle=dbhost;

 $tsA = time() ;
  $con =
OCIPLogon($usernameOracle,$passwordOracle,$hostOracle);
  $tsD = time() ;

$res = OCINewCursor($con);
$stm = OCIParse ( $con, "
BEGIN
  CAD013_PSQ_RSV(:pkey, :Option, :RES);
END;
");

$name = "foo";
$option = "0";

OCIBindByName ( $stm, ":pkey", $nome, -1);
OCIBindByName ( $stm, ":Option", $option, -1);
OCIBindByName ( $stm, ":RES", &$res, -1,
OCI_B_CURSOR
);
@OCIExecute ( $stm );
OCIExecute ($res);

$arrError = OCIError($res);

if ($arrError['code'])
{
  echo
$arrError['code']."-".$arrError['message']."
"; exit; } while (OCIFetchInto($res,&$data)) var_dump($data); } OCIFreeCursor($stm); OCIFreeStatement($res); The stored procedure has one code bellow IF (vmINT_QtdLines <= 0) THEN -- PHP raise_application_error( -20005, 'NAME NOT FOUND' ); -- DELPHI -- DBMS_OUTPUT.PUT_LINE('NOTHING FOUND:'||pkey); -- RAISE Erro; END IF; I am not quite sure where the problem is located. Any help (if directly related to oracle emails directly) wl be appreciated. Thanks. __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] oracle 8i stored procedures + php access

2001-12-27 Thread Robert Mena

Hi, I have a delphi application that uses oracle as db
server with stored procedures (running ok).

I've been trying to make a php version of such
application with no luck so far.

I've created a user to access such thing and I keep
getting the following error

Warning: OCIStmtExecute: ORA-06550: line 3, column 3:
PLS-00905: object
SYSTEM.CAD013_PSQ_RSV is invalid ORA-06550: line 3,
column 3: PL/SQL:
Statement ignored in
/somewhere/test.php on line 20

Warning: OCIFetchInto: ORA-24338: statement handle not
executed in
/somewhere/test.php on line 31

If I try with user system the messages are diferent

Warning: OCIStmtExecute: ORA-06550: line 3, column 3:
PLS-00905: object SYSTEM.CAD013_PSQ_RSV is invalid
ORA-06550: line 3, column 3: PL/SQL:
Statement ignored in
/somewhere/test.php on line 20

Warning: OCIFetchInto: ORA-24338: statement handle not
executed in /somewhere/test.php on line 31

The script follows


 putenv("ORACLE_BASE=/u01/app/oracle") ;
 putenv("ORACLE_HOME=/u01/app/oracle/product/8.1.7");
 putenv("ORACLE_SID=oracle") ;

  $usernameOracle=dbuser;
  $passwordOracle=dbpassword;
  $hostOracle=dbhost;

 $tsA = time() ;
  $con =
OCIPLogon($usernameOracle,$passwordOracle,$hostOracle);
  $tsD = time() ;

$res = OCINewCursor($con);
$stm = OCIParse ( $con, "
BEGIN
  CAD013_PSQ_RSV(:pkey, :Option, :RES);
END;
");

$name = "foo";
$option = "0";

OCIBindByName ( $stm, ":pkey", $nome, -1);
OCIBindByName ( $stm, ":Option", $option, -1);
OCIBindByName ( $stm, ":RES", &$res, -1, OCI_B_CURSOR
);
@OCIExecute ( $stm );
OCIExecute ($res);

$arrError = OCIError($res);

if ($arrError['code'])
{
  echo
$arrError['code']."-".$arrError['message']."";
  exit;
}

while (OCIFetchInto($res,&$data))

  var_dump($data);
}

OCIFreeCursor($stm);
OCIFreeStatement($res);

The stored procedure has one code bellow

IF (vmINT_QtdLines <= 0) THEN
-- PHP
  raise_application_error(
  -20005,
  'NAME NOT FOUND'
);
-- DELPHI
--  DBMS_OUTPUT.PUT_LINE('NOTHING
FOUND:'||pkey);
--  RAISE Erro;
END IF;

I am not quite sure where the problem is located.  Any
help (if directly related to oracle emails directly)
wl be appreciated.

Thanks.



__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Support for GIF, PNG and JPEG. How ?

2001-12-31 Thread Robert Mena

Hi,
I was wondering if there is a wayto compile php with
gd support for the gif, png and jpg file types.

As far as I know gd dropped gif support while ago when
it added png.

regards,


__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] problems with php 4.1.1 (strtok?)

2002-01-04 Thread Robert Mena

Hi,
I have a script to upload/insert records in a mysql
db.  I was running fine before the upgrade (php
4.0.4pl1) now it confuses the columns starting with
the column number 9.

I've attached a one line file that I used with the
scripts. the problem seems to be with strok and null
values.  One of the columns is empty so I have
value1\t\tvalue2 and it seems to confuse itself.

The script that parses the line is like this

$C_F=strtok($line,"\t");
$dt=strtok("\t");
$DT=strtok("\t");


Using the same script under php4.0.6 with the same
upload file it shows (correct) :
insert into table values
values('05','01/11/01','10:01','MYCOMPANY','04.679.080/0001-04','OTHERCOMPANY','SP-SAO
PAULO','47.427.653/0014-30','109726','02','091330','15','VOL','PROD','383,1000','10075/01','EQT-0001','EQT-0001','','','','','','','','','01/11/01','08:00','01/11/01','18:00','09/11/01','08:00','09/11/01','08:00','','7D,22H','')

Using the same script under php4.1.1 with the same 
upload file it shows (incorrect 02 at column number 9)
: 
insert into cargas values
values('05','01/11/01','10:01','MYCOMPANY','04.679.080/0001-04','OTHERCOMPANY','SP-SAO
PAULO','47.427.653/0014-30','02','091330','15','VOL','PROD','383,1000','10075/01','EQT-0001','EQT-0001','01/11/01','08:00','01/11/01','18:00','09/11/01','08:00','09/11/01','08:00','7D,22H','050210972604.679.080/0001-0447.427.653/0014-30091330','/
/','','','','','','','','','109726')

Thanks.

__
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

05  2001110101/11/0110:01   MYCOMPANY   04.679.080/0001-04 
 OTHERCOMPANYSP-SAO PAULO47.427.653/0014-30  109726  02  
091330  15  VOL PROD383,100010075/01EQT-0001
EQT-0001
01/11/0108:00   01/11/0118:00   09/11/0108:00   09/11/01   
 08:00   7D,22H  050210972604.679.080/0001-0447.427.653/0014-30091330/  /  
  


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP] output compression and imp 2.x not working under IE

2002-01-05 Thread Robert Mena

Hi, I've recently upgraded my server to php 4.1.1 and
turned on the output compression under php.ini.
For some browsers (IE 5/5.5 so far) it made imp stop
working.

Does anybody know if this is a "limitation" of php,
imp or explorer ?

Anyone has tried that with the latest imp/horde ?

thanks.

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] strtok bug

2002-01-13 Thread Robert Mena

Hi, does anybody know when the strtok bug introduced
in 4.1.1 will be fixed ?
Will we have a 4.1.2 or should I try to grab a cvs
tree (assuming that it is already solved) ?

thanks.

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: strtok bug

2002-01-14 Thread Robert Mena

Hi Manuel and all developers.

I understand that the implementation of strtok was
"broken" (non POSIX compliant) but since it has been
like this for ages would be better to give a chance to
developers worldwide (that has been using and relied
on this broken implementation) to control the
behaviour of such feature much the same way
REGISTER_GLOBALS (or something) in recently 4.1.0.

Imagine recoding 100+ distributed scripts to change
this!

The decision of having this "fixed" is great but not
paying attention (like you always did in the past)
with backwards compatibility is (IMHO) a mistake.

Best regards,
Robert


--- Manuel Lemos <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> Robert Mena wrote:
> > 
> > Hi, does anybody know when the strtok bug
> introduced
> 
> After 4.0.6 .
> 
> > in 4.1.1 will be fixed ?
> > Will we have a 4.1.2 or should I try to grab a cvs
> > tree (assuming that it is already solved) ?
> 
> You may want to ask that in php-dev mailing list
> because last time that
> I reported it I was told that it would not be fixed
> because it was just
> me complaining.
> 
>

__
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Accessing Oracle DBMS_OUTPUT from PHP

2002-02-04 Thread Robert Mena

Hi,

I have developed some php scripts to interact to an
oracle db using a set of predefined stored procedures
(which I did not write).

Those procedures are called either by a desktop delphi
application and my php scripts
(linux+apache+mod_php...).

I'd like to know how can I access the contents of
DBMS_OUTPUT so I can echo the custom error messages ?

A fragment of code of the actual procedure

 IF (vmINT_QtdLines <= 0) THEN
  DBMS_OUTPUT.PUT_LINE('NOTHING FOUND UNDER
THIS ID.');
  RAISE MyError;
END IF;

Calling from delphi it shows the custom message, under
php it only shows the ORA .

Any ideas ?


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

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




[PHP] Strange behaviour : php accessing Oracle (PLS-00553: character set name)

2002-02-15 Thread Robert Mena

Hi,
Ie developed some scripts to access oracle.  Using my
development machine it works great.

When I switch to the production server I keep getting

Warning: OCIStmtExecute: ORA-06550: line 3, column 33:
PLS-00553: character set name is not recognized
ORA-06550: line 0, column 0: PL/SQL: Compilation unit
analysis terminated in /var/www/html/test.php on line
35
 
This only happens with stored procedures.  Regular
selects work fine.

Since the same production server is used by many
delphi applications I may be doing something wrong.

Any tips will be appreciated.

If this is considered off-topic please email me
directly.

Regards,

__
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail 
http://mail.yahoo.com

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




[PHP] building a "crawler" with PHP

2002-05-13 Thread Robert Mena

Hi, I'd like to know if anyone has good references
(links, ps, pdf etc) about building a crawler and tips
regarding doing that with PHP.

This would be mostly for learning purposes.

thanks.

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




[PHP] SOAP status

2002-02-25 Thread Robert Mena

Hi,

I was wondering if anyone has developed web services
using SOAP with php.  I'd like to use it in a future
project but was wondering which  "tools" (classes,
exemples) do we have and how stable are they.

regards,
Rt.

__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




[PHP] Oracle & NLS : Access from PHP

2002-02-27 Thread Robert Mena

Hi,

I have some script to access an Oracle database using
stored procedures.  When I access a development
database everything runs fine.  When I access the
production database I get errors PLS-00553: character
set name is not recognized ORA-06550.

The problem seems to be related to NLS.  So in the
beginning of the script I've put :

putenv("ORACLE_BASE=/u01/app/oracle") ;
putenv("ORACLE_HOME=/u01/app/oracle/product/8.1.7");
putenv("ORA_NLS33=/u01/app/oracle/product/8.1.7/ocommon/nls/admin/data/")
;
putenv("ORACLE_SID=MYSID") ;
putenv("NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1") ;


But the error continues.  The remote database has the
following parametes (select * from
nls_database_parameters)

'NLS_LANGUAGE','AMERICAN'
'NLS_TERRITORY','AMERICA'
'NLS_CURRENCY','$'
'NLS_ISO_CURRENCY','AMERICA'
'NLS_NUMERIC_CHARACTERS','.,'
'NLS_CHARACTERSET','WE8ISO8859P1'
'NLS_CALENDAR','GREGORIAN'
'NLS_DATE_FORMAT','DD-MON-RR'
'NLS_DATE_LANGUAGE','AMERICAN'
'NLS_SORT','BINARY'
'NLS_TIME_FORMAT','HH.MI.SSXFF AM'
'NLS_TIMESTAMP_FORMAT','DD-MON-RR HH.MI.SSXFF AM'
'NLS_TIME_TZ_FORMAT','HH.MI.SSXFF AM TZH:TZM'
'NLS_TIMESTAMP_TZ_FORMAT','DD-MON-RR HH.MI.SSXFF AM
TZH:TZM'
'NLS_DUAL_CURRENCY','$'
'NLS_COMP','BINARY'
'NLS_NCHAR_CHARACTERSET','WE8ISO8859P1'
'NLS_RDBMS_VERSION','8.1.7.0.1'

My development database has the following settings :

SQL> select * from nls_database_parameters;

PARAMETER  VALUE
--

NLS_LANGUAGE   AMERICAN
NLS_TERRITORY  AMERICA
NLS_CURRENCY   $
NLS_ISO_CURRENCY   AMERICA
NLS_NUMERIC_CHARACTERS .,
NLS_CHARACTERSET   US7ASCII
NLS_CALENDAR   GREGORIAN
NLS_DATE_FORMATDD-MON-RR
NLS_DATE_LANGUAGE  AMERICAN
NLS_SORT   BINARY
NLS_TIME_FORMATHH.MI.SSXFF AM
NLS_TIMESTAMP_FORMAT   DD-MON-RR HH.MI.SSXFF
AM
NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZH:TZM
NLS_TIMESTAMP_TZ_FORMATDD-MON-RR HH.MI.SSXFF
AM TZH:TZM
NLS_DUAL_CURRENCY  $
NLS_COMP   BINARY
NLS_NCHAR_CHARACTERSET US7ASCII
NLS_RDBMS_VERSION  8.1.7.0.1

Help! :)

Rt.

__
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

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




[PHP] SAFE_MODE + deleting files

2001-11-22 Thread Robert Mena

Hi,
I have enabled the safe mode in a virtual host that
uses php in order to try to prevent the user from
uploading (via ftp) a php that could sniff around
other's people files.

Unfortunately I got stucked in a problem.  this site
uses php to upload and manage some files remotely. 
The webserver runs as nobody.nobody but the files are
owned by the user's id.

Warning: SAFE MODE Restriction in effect. The script
whose uid is 1515 is not allowed to access
/home/httpd/html/some_site/img/foo.jpg 
owned by uid 99 in .php on line 43

Any tips ?

Best regards.

__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] libclntsh.so.8.0 : oracle+php under linux rh 6.2

2001-03-22 Thread Robert Mena

Hi, I've succesfully installed a oracle 8.1.7 (chose
server option) under a development redhat 6.2 box.

I've compiled php as DSO with a
--with-oci8=path/to/ORACLE_HOME and it compiled ok. 
If I try to start httpd I keep getting

Cannot load /etc/httpd/modules/libphp4.so into server:
libclntsh.so.8.0: cannot open shared object file: No
such file or directory
  
  

I've tried to find it with no luck.  Any tips ?

Thanks.

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Oracle + apache + php + linux Red Hat 6.2(update)

2001-03-22 Thread Robert Mena

Hi,

I've managed to install oracle and to compile and
install php (--with-oci8).  Unfortunately when I start
the server it gives me a httpd dead but subsys locked.

Searching the archives I found one link to PHP.net
manual (http://www.php.net/manual/en/ref.oci8.php)
where it tells me that I should compile apache with
pthreads support.

Well, I downloaded apache-1.3.14.src.rpm from redhat
(6.2 updates) and compiled it but no luck (the same
result).

My ldd /usr/sbin/httpd shows :
libpthread.so.0 => /lib/libpthread.so.0 (0x4001b000)
libm.so.6 => /lib/libm.so.6 (0x4002e000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x4004b000)
libdb.so.3 => /lib/libdb.so.3 (0x40078000)
libdl.so.2 => /lib/libdl.so.2 (0x400b2000)
libc.so.6 => /lib/libc.so.6 (0x400b7000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000)

I do not know if is this is related but the
/var/log/httpd/errorlog shows me
PHP Warning:  Function registration failed - duplicate
name - define in Unknown on line 0
PHP Warning:  Function registration failed - duplicate
name - defined in Unknown on line 0
PHP Warning:  Function registration failed - duplicate
name - each in Unknown on line 0
PHP Warning:  Function registration failed - duplicate
name - strlen in Unknown on line 0
PHP Warning:  Function registration failed - duplicate
name - strcmp in Unknown on line 0
PHP Warning:  Function registration failed - duplicate
name - strcasecmp in Unknown on line 0
PHP Warning:  Function registration failed - duplicate
name - error_reporting in Unknown on line 0
PHP Warning:  Function registration failed - duplicate
name - leak in Unknown on line 0
PHP Warning:  Function registration failed - duplicate
name - function_exists in Unknown on line 0
PHP Warning:  Basic Functions:  Unable to register
functions, unable to load in Unknown on line 0

Thanks.

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Which DB abstraction ?

2001-06-21 Thread Robert Mena

Hi,

I am in a middle of the process of chosing which DB
will be used for future projects.  I've been using
Mysql for almost 5 years (coupled with php of course)
but it seems to have reached it's limits (actually the
lack of some features).

The other options include some traditional comercial
dbs and postgresql.  I am about to choose postgresql
because it seems to support the features I need
(foreign key, transaction, triggers, stored
procedures) and is open source with active
development.

Even tough I'd like to receive (perhaps in private)
personal thought about this decision I would not like
to start a war...so my focus here is : which db
abstraction layer is ready for use ? disavantages ?

I am considering : Manuel Lemos' Metabase, Phplib and
Pear.

So far I've played a little bit with pear, and read
about metabase and phplib with no real experience in
both.

The ideia is to start using it right away so the
adption of other DB would be painless (almost).

Thanks,
RT

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] 4.0.6 + mcrypt = segmentation fault

2001-06-30 Thread Robert Mena

Hi, I've recently downloaded and instaled PHP4.0.6 in
my linux box.  

Eveything seems fine expect by the fact that my mcrypt
scripts  started to cause a segmentation fault in
apache.

libmcrypt 2.4.4
php 4.0.6
Linux RedHat 7.0 + updates

ldd libphp4.so
libpam.so.0 => /lib/libpam.so.0 (0x4014f000)
libdl.so.2 => /lib/libdl.so.2 (0x40157000)
libpq.so.2 => /usr/lib/libpq.so.2 (0x4015a000)
libmcrypt.so.4 => /usr/local/lib/libmcrypt.so.4
(0x4016a000)
libltdl.so.0 => /usr/lib/libltdl.so.0 (0x4017)
libgd.so.1.8 => /usr/lib/libgd.so.1.8 (0x40174000)
libz.so.1 => /usr/lib/libz.so.1 (0x401a5000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x401b3000)
libresolv.so.2 => /lib/libresolv.so.2 (0x401e1000)
libm.so.6 => /lib/libm.so.6 (0x401f3000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40212000)
libc.so.6 => /lib/libc.so.6 (0x40229000)
libssl.so.0 => /usr/lib/libssl.so.0 (0x4034b000)
libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0x40379000)
libttf.so.2 => /usr/lib/libttf.so.2 (0x40431000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40458000)
libpng.so.2 => /usr/lib/libpng.so.2 (0x40477000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x8000)

ldd /usr/sbin/httpd
libm.so.6 => /lib/libm.so.6 (0x4001e000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x4003d000)
libdb.so.3 => /usr/lib/libdb.so.3 (0x4006b000)
libdb-3.1.so => /lib/libdb-3.1.so (0x400a9000)
libdl.so.2 => /lib/libdl.so.2 (0x40126000)
libc.so.6 => /lib/libc.so.6 (0x40129000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x4000)

Is this happening to somebody else ?
Should I upgrade to a latter mcrypt ? I've noticed
that there is a 2.4.15...

Thanks.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] To be or not to be : safe mode

2001-07-03 Thread Robert Mena

Hi, 
I've decided to turn on/set safe_mode, document_root
and open_basedir in apache's httpd.conf in order to
make the scripts a little more secure (some upload
files such as image) in a virtual host.

Everything worked fine except for a couple of scripts.
Those scripts (used for file upload) first move (with
move_uploaded_file from /tmp to a folder/directory
located under the document root of the site.

The user verifies that he really wants that image and
then (another script) moves to the definitive
folder/directory.

Since the 2 part was not working I've changed to use
the copy function and it gave me a 
"..SAFE MODE Restriction in effect.  The script whose
uid is X is not allowed to access
/home/httpd/html/somewhere/imgtmp/uploaded_img.png
owned by uid Y (the web server) in
/home/httpd/html/somewhere/script.php3 on line 34" 

How do I solve this ?  For now I've disabled
safe_mode. 

But I am considering setting it back on and change
(somehow) the default upload dir to a new one. Since
move_uploaded_file still works (even with safe_mode) I
assume I will work but another problem arises.
The name of the uploded file (which I do not control)
is something like phpUKXh6R so how to tell the browser
of the correct mime-type ?  I do have the original
name...

Changing the uid of the scripts to the same of the web
server seems to bring aditional security problems.

Thanks.




__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP/Apache security question : bugtraq, suExec etc

2001-07-09 Thread Robert Mena

Hi, I follow bugtraq and recently there was a thread
regarding safe_mode of php and how to "break" it.
The thread was killed without a conclusion to where
this is really a new threat or the same problem
(scripts executed with sage uid/gid of the web
server).

So, I was wondering if the php-dev team has already
reached a veredict.

I recently saw a post about the use of suExec and I'd
like to know the performance impact and is there
anything php could do to make such thing easier
(perhaps this is more an apache issue).

Up to now all my virtual domains have used safe_mode,
openbase_dir and document_root settings limiting the
access to files/scripts located under the virtual
directory and no access to override the settings with
a .htaccess.

Is this secure "enough" ? My major concern is the
hability to upload a php code (using ftp), some c
files of a local exploit, compile it and execute as
apache...

thanks.


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] enable_dl : manual not clear enough?

2001-07-09 Thread Robert Mena

Extension Loading Directives

Hi, 
While reading the english version of the manual I got
stucked in a part that seems a little confusing.

"enable_dl boolean
This directive is really only 

The main reason for turning dynamic loading off is
security. With dynamic loading, it's possible to
ignore all the safe_mode and open_basedir
restrictions. 

The default is to allow dynamic loading, except when
using safe-mode. In safe-mode, it's always imposible
to use dl()."

Well it is or isn't possible to use dl with safe_mode
?

It says "...With dynamic loading, it's possible to
ignore all the safe_mode and open_basedir 
restrictions."  and then "In safe-mode, it's always
imposible to use dl().".




__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Converting from paradox DB to mysql

2001-07-13 Thread Robert Mena

Hi,

Does anybody knows how can I convert from a Paradox DB
to mysql ?  I've searched freshmeat.net but pxtools
gives me core dump and unixODBC seems to be "just" the
driver (i.e I'd have to write a convertion tool).

Thanks.

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Segmentation fault (11) : mcrypt

2001-08-14 Thread Robert Mena

Hi, I've trying to use mcrypt and php (4.06 or
4.07-dev) with no luck.  Everytime I use I got a
[notice] child pid 16630 exit signal Segmentation
fault (11) in my apache's error.log.

I am using the latest libmcrypt-2.4.15 and php (a hour
ago cvs update).

Is this a known bug ?

'./configure' '--with-apxs' '--with-ttf' '--with-xml'
'--with-gd' '--with-ftp' '--enable-session'
'--enable-trans-sid' '--with-zlib'
'--enable-inline-optimization' '--with-pgsql'
'--with-openssl' '--with-imap=../imap'
'--with-gettext' '--with-mcrypt=/usr/local' 



__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] mcrypt segfault (still)

2001-09-05 Thread Robert Mena

Hi,  a couple of weeks ago I posted a problem with
mcrypt under php with at least 4.0.5,4.0.6 and
4.0.7-dev.

The server works ok until you use a mcrypt function
(it segfaults).

The bug has been reported in bugs.php.net and
assigned.  Unfortunately so far no solution or news
regarding this.

Does anybody have a working php 4.0.5+ and mcrypt
installation ?

Perhaps it is something with the latest libmcrypt.

Best regards.

__
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Permutation in PHP

2001-09-16 Thread Robert Mena

Hi I am looking for an algorithm to generate the
permutation of the elements of a vector, say . 
Does anybody know / have implemented such (in PHP or
different languages).

Best regards.

__
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP Web Mail

2004-07-25 Thread robert mena
Yeah, but it is slow as hell.  webmiau in the other way is fast

On Mon,  5 Jul 2004 12:45:33 +0100, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Try www.horde.org
> 
> It's not only a webmail client, but has a whole load more!
> 
> Nunners
> 
> Quoting "I.A. Gray" <[EMAIL PROTECTED]>:
> 
> > Thanks- looked at Squirrel Mail.  Looks really good, however we use POP3- I
> > don't think Squirrel Mail uses POP3 does it?
> >
> >
> >
> > -Original Message-
> > From: Jose Leon [mailto:[EMAIL PROTECTED]
> > Sent: 05 July 2004 12:09
> > To: I.A. Gray
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [PHP] PHP Web Mail
> >
> >
> > Hello,
> > > Does anyone know a good PHP-based (free if possible) web mail other than
> > > UebiMiau that they would recommend?
> > Why not Squirrel Mail?
> >
> > http://www.squirrelmail.org
> 
> 
> >
> > Regards.
> > --
> > qadram :: software development
> > http://www.qadram.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

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



[PHP] managing cvs from php

2004-08-19 Thread robert mena
Hi,

I use cvs from my internal projects and will soon need to let others
change template files from a web form.

The user will load the current template, edit, preview and if ok "publish".

Since I'd like to keep a history and track those changes one option
for me would be to add a cvs call with a commit off the changed file.

I do not need to do other "fancy" functions.  Just commit and get the
result if it worked.

My current (not working) test script is simply

$cmd = "cd ".$pathToFile." ; /usr/bin/cvs ci -m '".$logMsg."' ".$file ;

passthru($cmd) ;

If I echo the $cmd and paste in a shell the command works.  When I
execute from web nothing happens and no output is seen
(error_reporting(E_ALL))

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



Re: [PHP] managing cvs from php

2004-08-22 Thread robert mena
Michal,

The directories have a 777 (ok unsecure but just a test) setting.

Any tips of how can I get the stderr or a better way to do this cvs interface ?

On Thu, 19 Aug 2004 11:45:26 -0400 (EDT), Michal Migurski
<[EMAIL PROTECTED]> wrote:
> > $cmd = "cd ".$pathToFile." ; /usr/bin/cvs ci -m '".$logMsg."' ".$file ;
> >
> > passthru($cmd) ;
> >
> > If I echo the $cmd and paste in a shell the command works.  When I
> > execute from web nothing happens and no output is seen
> > (error_reporting(E_ALL))
> 
> Does the apache user have read/write privileges on the files in that
> directory? CVS makes heavy usage of stderr, so that may be a reason you
> are not seeing output.
> 
> -
> michal migurski- contact info and pgp key:
> sf/cahttp://mike.teczno.com/contact.html
> 
>

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



[PHP] Dinamic generate PDF : which way ? (classes, docbook)

2004-09-06 Thread robert mena
Hi,

I plan to dynamic generate some of the documents I need on a regular
basis.  Sometimes they only differ by the name of the company so my
first attempt would be to generate "templates" in word and ask/replace
for the values needed.

I am evaluating the http://www.ros.co.nz/pdf/, www.fpdf.org and php
classes that generate pdf and as another option use docbook to
convert.

I am not sure which way is better.

>From my point of view:
a) Both classes seem to be fine but in order to generate (static)
tables and other elements I will need a lot of programming
calls/variables.  So I'd have a manual and perhaps tedious/error
procedure to convert the document into the "programable-version" of
it.

b) I do not have experience with DocBook (even tough I can code html
and latex) but I could use  an editor to generate the document with
the tables, place images etc.  Identify the template variables and
call docbook to generate the pdf.  I'd still have to manually convert
the file but would not need a lot of calls to generate a table or even
use a php programmer.  I am assuming the the tags needed are more
easly understanded than $pdf->addCell($data,width..)

Any ideias ?

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



Re: [PHP] Dinamic generate PDF : which way ? (classes, docbook)

2004-09-07 Thread robert mena
Thanks.  I'll check it out.

My main concern is that what seems great about using those php classes
to generate the pdf directly is the possibilite to pull data from
mysql (or other db) and generate an up-to-date report.

But since this is not the case seems a lot of work just to generate a
simple table.

I don't work with docbook yet so it can be a wrong feeling but seems
easier to train a person which already uses HTML to code using
docbook's tags than teach php/class.  Specially if what I want does
not involve fancy features.

- rt

On Mon, 6 Sep 2004 09:39:34 -0700, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> 
> 
> Hello Robert,
> 
> I would suggest that if your data is such that it can use DocBook,
> definitely go the DocBook route. You can also use Apache's Cocoon publish
> your DocBook content to PDF/HTML/RTF/SVG/TXT etc.
> 
> Here are some samples that use Apache Cocoon to perform dynamic conversion
> to PDF/HTML: http://www.xml-dev.com/blog/#88
> 
> Here are some other utilities to convert to PDF:
> http://www.xml-dev.com/blog/#101
> 
> This one is pretty good: http://html2pdf.seven49.net/seven49.aspx?
> 
> Thanks.
> Saqib Ali
> http://validate.sf.net
> 
> robert mena <[EMAIL PROTECTED]> wrote on 09/06/2004 04:56:18 AM:
> 
> 
> 
> > Hi,
> >
> > I plan to dynamic generate some of the documents I need on a regular
> > basis.  Sometimes they only differ by the name of the company so my
> > first attempt would be to generate "templates" in word and ask/replace
> > for the values needed.
> >
> > I am evaluating the http://www.ros.co.nz/pdf/, www.fpdf.org and php
> > classes that generate pdf and as another option use docbook to
> > convert.
> >
> > I am not sure which way is better.
> >
> > From my point of view:
> > a) Both classes seem to be fine but in order to generate (static)
> > tables and other elements I will need a lot of programming
> > calls/variables.  So I'd have a manual and perhaps tedious/error
> > procedure to convert the document into the "programable-version" of
> > it.
> >
> > b) I do not have experience with DocBook (even tough I can code html
> > and latex) but I could use  an editor to generate the document with
> > the tables, place images etc.  Identify the template variables and
> > call docbook to generate the pdf.  I'd still have to manually convert
> > the file but would not need a lot of calls to generate a table or even
> > use a php programmer.  I am assuming the the tags needed are more
> > easly understanded than $pdf->addCell($data,width..)
> >
> > Any ideias ?
> >
> > --
> > 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] Problem with php 4/5, segmentation fault

2004-10-20 Thread robert mena
Hi,

I have a Linux Fedora Core2 system with apache 2.0.51 and php
installed. Recently I 've noticed that some pages stopped working.

Those pages while accessed does not output anything.

After some tests I noticed that the page comes back to live if I
remove the mysql_pconnect call.

I've tried to upgrade php (to 4.3.9 and even 5.0.2).  The mysqlclient
tool can connect with no problem.

The test script is



If I access via http nothing appears.  If I use the cli version I can connect.

Regular html and php without db access work ok.

I've even tryed to downgrade or reinstall apache to 2.0.50 or back to 2.0.51.

Any ideas ?

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



[PHP] Unable to get output from exec "ssh remote-server 'ping -c4 ip'"

2009-12-27 Thread robert mena
Hi,

I need to develop an interface that will, for example, ping IPs from a
remote server. So the php script will be hosted in a server with ssh access
(key) to the remote server.

I can make it work from the console but when I try

$cmd = "ssh remote-server 'ping -c 4 ip'"
exec($cmd, $ouput);

the output is empty.

the same command (with the remote-server and IP changed to the real ones)
works fine from command line.

I've added the key/config in the webserver's user .ssh directory so I am
assuming that that there is something wrong with my setup.

any ideas?


[PHP] Help with security configuration for a shared hosting environment

2009-12-30 Thread robert mena
Hi,

I am setting a shared hosting server and I'd like to gather some advices
regarding the security. Since the code will not be produced by me I'd like
to focus on environment strategies.

For now I've added a noexec in the mount options of the /tmp and the homedir
of the web server, disabled the devel tools (such as gcc).

In terms of the PHP I am inclined to use mod_suPHP to avoid having the
problem with the script generated files (such as uploads) being owned by the
webserver itself and I'd like to use the available php.ini options to try to
make it harder for an attacker to cause problems.

I will disable the register_globals and the allow url fopen.  But what else
can I do (open_basedir/doc_root/safe_mode etc)?

I need to allow the user to access the pear classes.

Using linux/php 5.2.x

Regards.


[PHP] Using array_intersect with an unknown number of arrays

2010-05-06 Thread robert mena
Hi,

I have a result set coming from a database that can be of the form below

$lines = array(0 => array('idA' => 1, 'idU' => 1),
1 => array('idA' => 1, 'idU' => 2),
2 => array('idA' => 2, 'idU' => 1),
3 => array('idA' => 2, 'idU' => 2),
4 => array('idA' => 3, 'idU' => 1),
5 => array('idA' => 3, 'idU' => 2));

I used the code to generate arrays based on the idA, i.e, one array
containing all the idU from each idA

foreach ($lines as $r)
{
if(!isset($list[$r['idA']]))
{
$list[$r['idA']] = array();
}

array_push($list[$r['idA']], $r['idU']);
}

Now need just the idU that occurs in all.

In my example I could simply

$x = array_intersect($list[1], $list[2], $list[3]);

This works but the problem is that I do not know in advance how many (and
which) indexes I will get from that foreach since the results will differ
from the database.

Is there a way around this ?


[PHP] Problem with SOAP and authentication? SoapFault exception: [HTTP] Unauthorized

2010-06-26 Thread robert mena
Hi,

I am trying to access a webservice using php's soapclient but I keep getting
the error SoapFault exception: [HTTP] Unauthorized

If I try using a web browser I can authenticate using the same credentials
used by the php code.

I've searched but the only mention that I found led to a 'won't fix' bug
registered to php 5.1.6.  I am using 5.2.10.

Any ideas of what may be causing this?  Is there a workaround?

Regards.


Re: [PHP] Problem with SOAP and authentication? SoapFault exception: [HTTP] Unauthorized

2010-06-28 Thread robert mena
Hi,

I'll have a look.  I am using Zend Framework's Zend_Soap_Client which in
turn uses SoapClient.  I'll try to use SoapClient directly.

I am not using https and I am not going through a proxy (using a non
standard port).  I've tested with another SOAP client (a standalone
application called SoapUI) without a problem.

Is there anyone using SoapClient (or Zend_Soap_Client) with auth with
success?   What other library (that does not use SoapClient) could I try?

On Mon, Jun 28, 2010 at 6:27 AM, Richard Quadling wrote:

> On 26 June 2010 23:46, robert mena  wrote:
> > Hi,
> >
> > I am trying to access a webservice using php's soapclient but I keep
> getting
> > the error SoapFault exception: [HTTP] Unauthorized
> >
> > If I try using a web browser I can authenticate using the same
> credentials
> > used by the php code.
> >
> > I've searched but the only mention that I found led to a 'won't fix' bug
> > registered to php 5.1.6.  I am using 5.2.10.
> >
> > Any ideas of what may be causing this?  Is there a workaround?
> >
> > Regards.
> >
>
> Can you show the SoapClient construction you are using?
>
> The documentation says that you can supply HTTP authentication [1] ...
>
> "For HTTP authentication, the login and password options can be used
> to supply credentials. For making an HTTP connection through a proxy
> server, the options proxy_host, proxy_port, proxy_login and
> proxy_password are also available. For HTTPS client certificate
> authentication use local_cert and passphrase options. An
> authentication may be supplied in the authentication option. The
> authentication method may be either SOAP_AUTHENTICATION_BASIC
> (default) or SOAP_AUTHENTICATION_DIGEST."
>
> There was recent activity on a Soap Authorisation Header bug [2].
>
> If this issue is appropriate, you can try a building your code code
> from SVN (no win32 snapshots for a LONG time now).
>
> Regards,
>
> Richard.
>
> [1] http://docs.php.net/manual/en/soapclient.soapclient.php
> [2] http://bugs.php.net/bug.php?id=50976
> --
> -
> Richard Quadling
> "Standing on the shoulders of some very clever giants!"
> EE : http://www.experts-exchange.com/M_248814.html
> EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
> ZOPA : http://uk.zopa.com/member/RQuadling
>


Re: [PHP] Problem with SOAP and authentication? SoapFault exception: [HTTP] Unauthorized

2010-06-29 Thread robert mena
I was hoping for a "userland" soap library (like nuSoap if I understand
correctly).   I can't change the fact that the remote webservice requires
http auth.

Hopefully someone in this list uses either zend_soap or soapClient directly
with auth to confirm or deny that the problem is in this part specifically.

On Tue, Jun 29, 2010 at 7:23 AM, Richard Quadling wrote:

> On 28 June 2010 22:37, robert mena  wrote:
> > Hi,
> > I'll have a look.  I am using Zend Framework's Zend_Soap_Client which in
> > turn uses SoapClient.  I'll try to use SoapClient directly.
> > I am not using https and I am not going through a proxy (using a non
> > standard port).  I've tested with another SOAP client (a standalone
> > application called SoapUI) without a problem.
> >
> > Is there anyone using SoapClient (or Zend_Soap_Client) with auth with
> > success?   What other library (that does not use SoapClient) could I try?
> > On Mon, Jun 28, 2010 at 6:27 AM, Richard Quadling 
> > wrote:
> >>
> >> On 26 June 2010 23:46, robert mena  wrote:
> >> > Hi,
> >> >
> >> > I am trying to access a webservice using php's soapclient but I keep
> >> > getting
> >> > the error SoapFault exception: [HTTP] Unauthorized
> >> >
> >> > If I try using a web browser I can authenticate using the same
> >> > credentials
> >> > used by the php code.
> >> >
> >> > I've searched but the only mention that I found led to a 'won't fix'
> bug
> >> > registered to php 5.1.6.  I am using 5.2.10.
> >> >
> >> > Any ideas of what may be causing this?  Is there a workaround?
> >> >
> >> > Regards.
> >> >
> >>
> >> Can you show the SoapClient construction you are using?
> >>
> >> The documentation says that you can supply HTTP authentication [1] ...
> >>
> >> "For HTTP authentication, the login and password options can be used
> >> to supply credentials. For making an HTTP connection through a proxy
> >> server, the options proxy_host, proxy_port, proxy_login and
> >> proxy_password are also available. For HTTPS client certificate
> >> authentication use local_cert and passphrase options. An
> >> authentication may be supplied in the authentication option. The
> >> authentication method may be either SOAP_AUTHENTICATION_BASIC
> >> (default) or SOAP_AUTHENTICATION_DIGEST."
> >>
> >> There was recent activity on a Soap Authorisation Header bug [2].
> >>
> >> If this issue is appropriate, you can try a building your code code
> >> from SVN (no win32 snapshots for a LONG time now).
> >>
> >> Regards,
> >>
> >> Richard.
> >>
> >> [1] http://docs.php.net/manual/en/soapclient.soapclient.php
> >> [2] http://bugs.php.net/bug.php?id=50976
> >> --
> >> -
> >> Richard Quadling
> >> "Standing on the shoulders of some very clever giants!"
> >> EE : http://www.experts-exchange.com/M_248814.html
> >> EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
> >> Zend Certified Engineer :
> http://zend.com/zce.php?c=ZEND002498&r=213474731
> >> ZOPA : http://uk.zopa.com/member/RQuadling
> >
> >
>
> You can, of course, do it all yourself with cURL or sockets, but I
> believe the overhead would be significant.
>
> I think in the first instance, can we see the code you are using to
> make the request?
>
> I use the Zend_Soap_[Client|Server|WSDL|AutoDiscovery] but not with
> external Auth (like you are wanting). Instead, one of my services is
> the auth service (username is sent plain text and password is sent MD5
> with a nonce - I believe the principle is sound. I chose this as I was
> being REALLY lazy in not learning about how to do Auth any other way.
>
> Richard.
>
>
> --
> -
> Richard Quadling
> "Standing on the shoulders of some very clever giants!"
> EE : http://www.experts-exchange.com/M_248814.html
> EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
> ZOPA : http://uk.zopa.com/member/RQuadling
>


Re: [PHP] Problem with SOAP and authentication? SoapFault exception: [HTTP] Unauthorized

2010-06-29 Thread robert mena
Hi Richard,

Thanks for taking the time.

Unfortunately I can't give you access to the actual webservice.   I am using
Zend_Soap_Client so my code is like this

$soapOptions = array(
  "login"  => 'xxx',
  "password"   => 'y');

$client = new Zend_Soap_Client('http://myproviders.com/wsdl.xml',
$soapOptions);
$rc = $client->mi_request($var);

I get

PHP Fatal error:  Uncaught SoapFault exception: [HTTP] Unauthorized in
/usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php:987
Stack trace:
#0 [internal function]: SoapClient->__doRequest('http://10.200', 'http://sap.com/...', 2)
#1 /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php(987):
call_user_func(Array, 'http://10.200', '
http://sap.com/...', 2)
#2 [internal function]:
Zend_Soap_Client->_doRequest(Object(Zend_Soap_Client_Common), 'http://10.200', 'http://sap.com/...', 2, 0)
#3
/usr/local/zend/share/ZendFramework/library/Zend/Soap/Client/Common.php(70):
call_user_func(Array, Object(Zend_Soap_Client_Common), 'http://10.200', 'http://sap.com/...', 2, 0)
#4 [internal function]: Zend_Soap_Client_Common->__doRequest('http://10.200', 'http://sap.com/...', 2, 0)
#5 /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php(1113):
SoapClient->__soapCall('mi_request_ in
/usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php on line 987

Calling the SoapClient directly gives me the same result.


On Tue, Jun 29, 2010 at 9:41 AM, Richard Quadling wrote:

> On 29 June 2010 13:58, robert mena  wrote:
> > I was hoping for a "userland" soap library (like nuSoap if I understand
> > correctly).   I can't change the fact that the remote webservice requires
> > http auth.
> > Hopefully someone in this list uses either zend_soap or soapClient
> directly
> > with auth to confirm or deny that the problem is in this part
> specifically.
> >
> > On Tue, Jun 29, 2010 at 7:23 AM, Richard Quadling 
> > wrote:
> >>
> >> On 28 June 2010 22:37, robert mena  wrote:
> >> > Hi,
> >> > I'll have a look.  I am using Zend Framework's Zend_Soap_Client which
> in
> >> > turn uses SoapClient.  I'll try to use SoapClient directly.
> >> > I am not using https and I am not going through a proxy (using a non
> >> > standard port).  I've tested with another SOAP client (a standalone
> >> > application called SoapUI) without a problem.
> >> >
> >> > Is there anyone using SoapClient (or Zend_Soap_Client) with auth with
> >> > success?   What other library (that does not use SoapClient) could I
> >> > try?
> >> > On Mon, Jun 28, 2010 at 6:27 AM, Richard Quadling <
> rquadl...@gmail.com>
> >> > wrote:
> >> >>
> >> >> On 26 June 2010 23:46, robert mena  wrote:
> >> >> > Hi,
> >> >> >
> >> >> > I am trying to access a webservice using php's soapclient but I
> keep
> >> >> > getting
> >> >> > the error SoapFault exception: [HTTP] Unauthorized
> >> >> >
> >> >> > If I try using a web browser I can authenticate using the same
> >> >> > credentials
> >> >> > used by the php code.
> >> >> >
> >> >> > I've searched but the only mention that I found led to a 'won't
> fix'
> >> >> > bug
> >> >> > registered to php 5.1.6.  I am using 5.2.10.
> >> >> >
> >> >> > Any ideas of what may be causing this?  Is there a workaround?
> >> >> >
> >> >> > Regards.
> >> >> >
> >> >>
> >> >> Can you show the SoapClient construction you are using?
> >> >>
> >> >> The documentation says that you can supply HTTP authentication [1]
> ...
> >> >>
> >> >> "For HTTP authentication, the login and password options can be used
> >> >> to supply credentials. For making an HTTP connection through a proxy
> >> >> server, the options proxy_host, proxy_port, proxy_login and
> >> >> proxy_password are also available. For HTTPS client certificate
> >> >> authentication use local_cert and passphrase options. An
> >> >> authentication may be supplied in the authentication option. The
> >> >> authentication method may be either SOAP_AUTHENTICATION_BASIC
> >>

Re: [PHP] Problem with SOAP and authentication? SoapFault exception: [HTTP] Unauthorized

2010-06-29 Thread robert mena
Hi,

I am using soapUI which is a client soap tester (that works with this
webservice) to compare what is being generated.  In the header I see
Authorization: Basic =XYS

So the default (using SoapClient) should also work...

I've captured the tcpdump file and will try to load using wireshark.

On Tue, Jun 29, 2010 at 5:18 PM, Richard Quadling wrote:

> On 29 June 2010 20:53, robert mena  wrote:
> > Hi Richard,
> > Thanks for taking the time.
> >
> > Unfortunately I can't give you access to the actual webservice.   I am
> using
> > Zend_Soap_Client so my code is like this
> > $soapOptions = array(
> >   "login"  => 'xxx',
> >   "password"   => 'y');
> > $client = new Zend_Soap_Client('http://myproviders.com/wsdl.xml',
> > $soapOptions);
> > $rc = $client->mi_request($var);
> > I get
> > PHP Fatal error:  Uncaught SoapFault exception: [HTTP] Unauthorized in
> > /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php:987
> > Stack trace:
> > #0 [internal function]: SoapClient->__doRequest(' > 'http://10.200', 'http://sap.com/...', 2)
> > #1 /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php(987):
> > call_user_func(Array, 'http://10.200',
> > 'http://sap.com/...', 2)
> > #2 [internal function]:
> > Zend_Soap_Client->_doRequest(Object(Zend_Soap_Client_Common), ' > version="...', 'http://10.200', 'http://sap.com/...', 2, 0)
> > #3
> >
> /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client/Common.php(70):
> > call_user_func(Array, Object(Zend_Soap_Client_Common), ' version="...',
> > 'http://10.200', 'http://sap.com/...', 2, 0)
> > #4 [internal function]: Zend_Soap_Client_Common->__doRequest(' > version="...', 'http://10.200', 'http://sap.com/...', 2, 0)
> > #5
> /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php(1113):
> > SoapClient->__soapCall('mi_request_ in
> > /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php on line
> 987
> > Calling the SoapClient directly gives me the same result.
> >
> > On Tue, Jun 29, 2010 at 9:41 AM, Richard Quadling 
> > wrote:
> >>
> >> On 29 June 2010 13:58, robert mena  wrote:
> >> > I was hoping for a "userland" soap library (like nuSoap if I
> understand
> >> > correctly).   I can't change the fact that the remote webservice
> >> > requires
> >> > http auth.
> >> > Hopefully someone in this list uses either zend_soap or soapClient
> >> > directly
> >> > with auth to confirm or deny that the problem is in this part
> >> > specifically.
> >> >
> >> > On Tue, Jun 29, 2010 at 7:23 AM, Richard Quadling <
> rquadl...@gmail.com>
> >> > wrote:
> >> >>
> >> >> On 28 June 2010 22:37, robert mena  wrote:
> >> >> > Hi,
> >> >> > I'll have a look.  I am using Zend Framework's Zend_Soap_Client
> which
> >> >> > in
> >> >> > turn uses SoapClient.  I'll try to use SoapClient directly.
> >> >> > I am not using https and I am not going through a proxy (using a
> non
> >> >> > standard port).  I've tested with another SOAP client (a standalone
> >> >> > application called SoapUI) without a problem.
> >> >> >
> >> >> > Is there anyone using SoapClient (or Zend_Soap_Client) with auth
> with
> >> >> > success?   What other library (that does not use SoapClient) could
> I
> >> >> > try?
> >> >> > On Mon, Jun 28, 2010 at 6:27 AM, Richard Quadling
> >> >> > 
> >> >> > wrote:
> >> >> >>
> >> >> >> On 26 June 2010 23:46, robert mena  wrote:
> >> >> >> > Hi,
> >> >> >> >
> >> >> >> > I am trying to access a webservice using php's soapclient but I
> >> >> >> > keep
> >> >> >> > getting
> >> >> >> > the error SoapFault exception: [HTTP] Unauthorized
> >> >> >> >
> >> >> >> > If I try using a web browser I can authenticate using the same
> >> >> >> > credentials
> >> >> >> > used by the php c

Re: [PHP] Problem with SOAP and authentication? SoapFault exception: [HTTP] Unauthorized

2010-06-30 Thread robert mena
Well,

I've captured using wireshark both communications:

The one that works

POST /XISOAPAdapter/MessageServlet?channel=:Y_BS_SIP_DEV:cc_soap_snd_sip_dev
HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://sap.com/xi/WebService/soap1.1";
User-Agent: Jakarta Commons-HttpClient/3.1
Host: X.Y.Z.W:5
Content-Length: 535

Using cUrl I tried to mimic the behavior.  The content is the same (I've
even tried to reproduce some of the headers). but I get an error.

POST /XISOAPAdapter/MessageServlet?channel=:Y_BS_SIP_DEV:cc_soap_snd_sip_dev
HTTP/1.1
Authorization: Basic Ym9sOmJlbW9sMjAxMA==
Host: X.Y.Z.W:5
Accept: */*
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://sap.com/xi/WebService/soap1.1";
User-Agent: Jakarta Commons-HttpClient/3.1
Content-Length: 535

Any ideas?

On Tue, Jun 29, 2010 at 6:45 PM, robert mena  wrote:

> Hi,
>
> I am using soapUI which is a client soap tester (that works with this
> webservice) to compare what is being generated.  In the header I see
> Authorization: Basic =XYS
>
> So the default (using SoapClient) should also work...
>
> I've captured the tcpdump file and will try to load using wireshark.
>
>
> On Tue, Jun 29, 2010 at 5:18 PM, Richard Quadling wrote:
>
>> On 29 June 2010 20:53, robert mena  wrote:
>> > Hi Richard,
>> > Thanks for taking the time.
>> >
>> > Unfortunately I can't give you access to the actual webservice.   I am
>> using
>> > Zend_Soap_Client so my code is like this
>> > $soapOptions = array(
>> >   "login"  => 'xxx',
>> >   "password"   => 'y');
>> > $client = new Zend_Soap_Client('http://myproviders.com/wsdl.xml',
>> > $soapOptions);
>> > $rc = $client->mi_request($var);
>> > I get
>> > PHP Fatal error:  Uncaught SoapFault exception: [HTTP] Unauthorized in
>> > /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php:987
>> > Stack trace:
>> > #0 [internal function]: SoapClient->__doRequest('> > 'http://10.200', 'http://sap.com/...', 2)
>> > #1
>> /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php(987):
>> > call_user_func(Array, 'http://10.200',
>> > 'http://sap.com/...', 2)
>> > #2 [internal function]:
>> > Zend_Soap_Client->_doRequest(Object(Zend_Soap_Client_Common), '> > version="...', 'http://10.200', 'http://sap.com/...', 2, 0)
>> > #3
>> >
>> /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client/Common.php(70):
>> > call_user_func(Array, Object(Zend_Soap_Client_Common), '> version="...',
>> > 'http://10.200', 'http://sap.com/...', 2, 0)
>> > #4 [internal function]: Zend_Soap_Client_Common->__doRequest('> > version="...', 'http://10.200', 'http://sap.com/...', 2, 0)
>> > #5
>> /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php(1113):
>> > SoapClient->__soapCall('mi_request_ in
>> > /usr/local/zend/share/ZendFramework/library/Zend/Soap/Client.php on line
>> 987
>> > Calling the SoapClient directly gives me the same result.
>> >
>> > On Tue, Jun 29, 2010 at 9:41 AM, Richard Quadling 
>> > wrote:
>> >>
>> >> On 29 June 2010 13:58, robert mena  wrote:
>> >> > I was hoping for a "userland" soap library (like nuSoap if I
>> understand
>> >> > correctly).   I can't change the fact that the remote webservice
>> >> > requires
>> >> > http auth.
>> >> > Hopefully someone in this list uses either zend_soap or soapClient
>> >> > directly
>> >> > with auth to confirm or deny that the problem is in this part
>> >> > specifically.
>> >> >
>> >> > On Tue, Jun 29, 2010 at 7:23 AM, Richard Quadling <
>> rquadl...@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> On 28 June 2010 22:37, robert mena  wrote:
>> >> >> > Hi,
>> >> >> > I'll have a look.  I am using Zend Framework's Zend_Soap_Client
>> which
>> >> >> > in
>> >> >> > turn uses SoapClient.  I'll try to use SoapClient directly.
>> >> >> > I am not using https and I am not going through a proxy (using a
>> non
>> >> >> > standard p

[PHP] Invalid chars in XML

2010-09-20 Thread robert mena
Hi,

I am trying to parse a XML file with simplexml_load but it gave me error.
 While inspecting the contents I found a & inside the value of a tag.
something & something.

After I've removed the & everything went fine.  So which chars I should not
put in my file?   Should I use some conversion function like html_entities?

Does the receiver of the XML has to do anything to convert is back?


[PHP] Problems converting strings with 0 to integer

2010-11-03 Thread robert mena
Hi,

I have a text file (utf-8 encoded) which contains lines with numbers and
text separated by \t.  I need to convert the numbers that contains 0 (at
left) to integers.

For some reason one line that contains 0002 is casted to 0 instead of 2.
 Bellow the output of the cast (int) $field[0]  where I get this from
explode each line.

0 0002
4 0004


Re: [PHP] Problems converting strings with 0 to integer

2010-11-04 Thread robert mena
Hi,

The core of the code is simply

$fp = fopen('file.tab', 'rb');
while(!feof($fp))
{
   $line = fgets($fp);
   $data = explode("\t", $line);
...
}

So I try to manipulate the $data[X].  For example $data[0] is supposed to be
numeric so I  $n = (int) $data[0]

One other thing if the second column should contain a string.  If I check
the string visually it is correct but a if( $data[1] == 'stringX')  is false
even if in the file I can see this (and print those two)

I even did a md5 of both and they are different.

I seems to be an encoding issue.  Is it safe to use explode with utf8
strings?

I even tried this code but no match found (jst to replace the explode)

$str = "abc 文字化けefg";

$results = array();
preg_match_all("/\t/u", $str, $results);
var_dump($results[0]);

(I am sending this again without the reply because the first email was
refused for some reason)


[PHP] unable to allocate memory for pool (php 5.2.16)

2011-01-06 Thread robert mena
Hi,

My system got upgraded with the rpm version of php 5.2.16 and since them I
am getting errors with 'Unable to allocate memory for pool'.   Reverting php
to the older version solves the problem and  while using the 5.2.16 the
problems does not seem to occur with a specific pattern, i.e sometimes the
same page works sometimes doesn't.

Any idea or similar results?


[PHP] Online tests for php

2011-04-13 Thread robert mena
Hi,

I am trying to hire some php developers for a local taks and I need to
somehow perform a triage. One of the aspects is the knowledge of PHP itself
so I was wondering if there is any set of questions (multiple choice) to try
to do that.

I am not looking for a  certification level in those tests but a way to at
least know what this guy knows.


[PHP] Understanding deprecated features from 5.2 -> 5.3

2011-07-31 Thread robert mena
Hi,

I am planning to upgrade my server from 5.2 to 5.3 but I am not sure if the
deprecated features will simply throw warning messages but work or won't
work at all.  So far I've read that deprecated features are going to be
removed on later versions.

Unfortunately I host sites and some may use features like register_globals
and I need to know what to expect.


[PHP] Problems with interoperability: MCrypt AES PHP x Java

2011-08-09 Thread robert mena
Hi,

I am having problems while trying to decrypt an encrypted string (generated
from a java system) in PHP.

To take external factors out of the way I decided to make them work first in
my local system.

So I've created a sample encrypt/decrypt from PHP (using mcrypt's extension)
and the java code found at
http://java.sun.com/developer/technicalArticles/Security/AES/AES_v1.html.

I've added a System.out.println("KEY: " + asHex(raw));

to get the key used in the java and set the same in PHP.   There is no
mention in Java but since I didn't see a initialization vector I assume we
are use ECB mode.

Unfortunately the same string /key produces different encrypted values.


[PHP] Anyone has mcrypt working with Zend Community Edition and Mac OS X Lion?

2011-08-19 Thread robert mena
Hi,

After I've upgraded it stopped working and even if I reinstall the Zend CE
package it complains.

Regards.


[PHP] Dependency Injection containers

2011-10-31 Thread robert mena
Hi,

I am trying to avoid reinventing the wheel so I am looking for
dependency injection containers that work with PHP 5.2.  So Symphony2
and ZF2 DI are out of question.

I found this 
http://www.potstuck.com/2010/09/09/php-dependency-a-php-dependency-injection-framework/
 but I was wondering if anyone has a opinion about it or alternatives.

regards.

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



[PHP] safe mode/open basedir not working ?

2004-06-30 Thread robert mena
Hi,

I host a few virtual domains in apache 2 and use php.

The virtual domain is something like


ServerAdmin [EMAIL PROTECTED]
DocumentRoot /home/httpd/html/domain.com
ServerName www.domain.com
ErrorLog   logs/domain.com-error_log
CustomLog  logs/domain.com-access_log combined
ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/

AllowOverride AuthConfig Limit
php_admin_value doc_root "/home/httpd/html/domain.com/"
php_admin_flag safe_mode on
php_admin_value open_basedir "/home/httpd/html/domain.com:/tmp/"



Recently I had a minor problem with a user that uploaded via ftp a php
script in his domain and this domain used exec/system etc to call
perl, read files.

Shouldn't the settings above retrict such thing ?

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



Re: [PHP] safe mode/open basedir not working ?

2004-06-30 Thread robert mena
Marek,

but the program was executed using a system call from a php script.

- rt

On Wed, 30 Jun 2004 23:50:02 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> 
> robert mena wrote --- napísal::
> 
> > Hi,
> >
> > I host a few virtual domains in apache 2 and use php.
> >
> > The virtual domain is something like
> >
> > 
> > ServerAdmin [EMAIL PROTECTED]
> > DocumentRoot /home/httpd/html/domain.com
> > ServerName www.domain.com
> > ErrorLog   logs/domain.com-error_log
> > CustomLog  logs/domain.com-access_log combined
> > ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
> > 
> > AllowOverride AuthConfig Limit
> > php_admin_value doc_root "/home/httpd/html/domain.com/"
> > php_admin_flag safe_mode on
> > php_admin_value open_basedir "/home/httpd/html/domain.com:/tmp/"
> > 
> > 
> >
> > Recently I had a minor problem with a user that uploaded via ftp a php
> > script in his domain and this domain used exec/system etc to call
> > perl, read files.
> >
> > Shouldn't the settings above retrict such thing ?
> >
> 
> no, this setting affects only php, not programs executed from php
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

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



Re: [PHP] safe mode/open basedir not working ?

2004-06-30 Thread robert mena
Marek, Justin,

am I doing something wrong with the setup because I saw the logs and a
redeye.php was used to system("perl -") and was not supposed to.

On Thu, 01 Jul 2004 00:32:07 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> 
> Justin Patrin wrote --- napísal::
> > On Wed, 30 Jun 2004 23:50:02 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> >
> >>robert mena wrote --- napísal::
> >>
> >>>Hi,
> >>>
> >>>I host a few virtual domains in apache 2 and use php.
> >>>
> >>>The virtual domain is something like
> >>>
> >>>
> >>>ServerAdmin [EMAIL PROTECTED]
> >>>DocumentRoot /home/httpd/html/domain.com
> >>>ServerName www.domain.com
> >>>ErrorLog   logs/domain.com-error_log
> >>>CustomLog  logs/domain.com-access_log combined
> >>>ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
> >>>
> >>>AllowOverride AuthConfig Limit
> >>>php_admin_value doc_root "/home/httpd/html/domain.com/"
> >>>php_admin_flag safe_mode on
> >>>php_admin_value open_basedir "/home/httpd/html/domain.com:/tmp/"
> >>>
> >>>
> >>>
> >>>Recently I had a minor problem with a user that uploaded via ftp a php
> >>>script in his domain and this domain used exec/system etc to call
> >>>perl, read files.
> >>>
> >>>Shouldn't the settings above retrict such thing ?
> >>>
> >>
> >>no, this setting affects only php, not programs executed from php
> >
> >
> > If you have safe mode on, you can set various things to stop this. One
> > is safe_mode_exec_dir.
> 
> Actualy you have to if you want to use any of the exec functions:
> 
>

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



Re: [PHP] safe mode/open basedir not working ?

2004-07-02 Thread robert mena
Ok. How about set the safe_mode_exec_dir to /dev/null then ?

On Wed, 30 Jun 2004 21:55:17 -0700, Justin Patrin <[EMAIL PROTECTED]> wrote:
> 
> YES. You need to set the safe_mode_exec_dir path to be some path
> without binaries. Such as: /etc, although that's a bad example. Make a
> directory with only root write access and point that config option to
> it.
> 
> 
> On Wed, 30 Jun 2004 22:31:27 -0400, robert mena <[EMAIL PROTECTED]> wrote:
> >
> > Marek, Justin,
> >
> > am I doing something wrong with the setup because I saw the logs and a
> > redeye.php was used to system("perl -") and was not supposed to.
> >
> >
> > On Thu, 01 Jul 2004 00:32:07 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> > >
> > > Justin Patrin wrote --- napísal::
> > > > On Wed, 30 Jun 2004 23:50:02 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> > > >
> > > >>robert mena wrote --- napísal::
> > > >>
> > > >>>Hi,
> > > >>>
> > > >>>I host a few virtual domains in apache 2 and use php.
> > > >>>
> > > >>>The virtual domain is something like
> > > >>>
> > > >>>
> > > >>>ServerAdmin [EMAIL PROTECTED]
> > > >>>DocumentRoot /home/httpd/html/domain.com
> > > >>>ServerName www.domain.com
> > > >>>ErrorLog   logs/domain.com-error_log
> > > >>>CustomLog  logs/domain.com-access_log combined
> > > >>>ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
> > > >>>
> > > >>>AllowOverride AuthConfig Limit
> > > >>>php_admin_value doc_root "/home/httpd/html/domain.com/"
> > > >>>php_admin_flag safe_mode on
> > > >>>php_admin_value open_basedir 
> > > >>> "/home/httpd/html/domain.com:/tmp/"
> > > >>>
> > > >>>
> > > >>>
> > > >>>Recently I had a minor problem with a user that uploaded via ftp a php
> > > >>>script in his domain and this domain used exec/system etc to call
> > > >>>perl, read files.
> > > >>>
> > > >>>Shouldn't the settings above retrict such thing ?
> > > >>>
> > > >>
> > > >>no, this setting affects only php, not programs executed from php
> > > >
> > > >
> > > > If you have safe mode on, you can set various things to stop this. One
> > > > is safe_mode_exec_dir.
> > >
> > > Actualy you have to if you want to use any of the exec functions:
> > >
> > >
> >
> > 
> > !DSPAM:40e37582309468563245817!
> >
> >
> 
> --
> paperCrane --Justin Patrin--
>

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



Re: [PHP] safe mode/open basedir not working ?

2004-07-02 Thread robert mena
Ok. It did not worked.  I had to create an empy dir.

Well, one problem.

Since I have users with ftp access and they host php scripts that
handle "file uploads".  The files are created with apache.apache and
are usually moved to the user's directory using move_uploaded_file.

Since the owner/gorup of the script would be foo.ftponly this would
fail due to uid differences.

How do I solve this ?  Change the user's group from ftponly to apache
and use the safe_mode_gid on ?

- rt

On Fri, 2 Jul 2004 11:28:39 -0700, Justin Patrin <[EMAIL PROTECTED]> wrote:
> 
> That *may* not work as it's a file, not a folder. You're welcome to
> try, though. :-)
> 
> On Fri, 2 Jul 2004 14:19:25 -0400, robert mena <[EMAIL PROTECTED]> wrote:
> >
> > Ok. How about set the safe_mode_exec_dir to /dev/null then ?
> >
>

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



[PHP] Sending email without an email server

2004-07-13 Thread robert mena
Hi,

I have a small script hosted in a win32/apache/php4 enviroment where I
do not have a local email server.

I was wondering how could I send emails either connecting directly to
the mx or sending through a relay.

regards.

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



Re: [PHP] PHPEclipse?

2004-07-16 Thread robert mena
I have downloaded the latest .zip from source forge but it keeps
giving me "an error has occured when activating this view.." and hsow
the php browser.

eclipse 3.0, linux fedora core2, java 1.4.2_04-fcs

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



Re: [PHP] Sending email without an email server

2004-07-19 Thread robert mena
Hi jason,

I've added the SMTP to a smtp server, saved the .ini and restarted the
server with no luck.

It complains

Warning: mail(): "sendmail_from" not set in php.ini or custom "From:"
header missing in c:\program files\apache
group\apache\htdocs\email.php on line 131

Line 131 is the end of the file (?>)

The mail command is

mail("Webmail <".$emailTo.">","[Contact]",$msg,"From: Webmail
<[EMAIL PROTECTED]> \nReply-To: ".$name." <".$emailFrom.">\n");

Any tips ?

On Tue, 13 Jul 2004 19:20:25 +0800, Jason Wong <[EMAIL PROTECTED]> wrote:
> 
> 
> On Tuesday 13 July 2004 18:46, robert mena wrote:
> 
> > I have a small script hosted in a win32/apache/php4 enviroment where I
> > do not have a local email server.
> >
> > I was wondering how could I send emails either connecting directly to
> > the mx or sending through a relay.
> 
> mail() on Windows system does (only) use SMTP. Just configure your php.ini
> correctly and it should work.
> 
> --
> 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
>

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



[PHP] Live support system (in php)

2007-08-23 Thread robert mena
Hi,

I am looking for solutions to enable live support in my websites.  I
was told that phplivesupport (http://www.phplivesupport.com/) is a
good solution but it seems to be dead (no anwser to emails, always
offline).

Does anybody have another solution (with source code available) within
the same price range? (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Loosing session data between requests

2007-09-06 Thread robert mena
Hi,

I am facing a strange problem.  I have two servers (both Centos 4.5, httpd
2.0.52, php 5.1.6) and in one of them a webmail (uebimiau) looses session
data between requests and in another it does not.

I've compared php.ini from both with nothing different except for some
memory limits they are equal.

I've checked both /tmp and the session file sess_x in one server is
empty and in another has the data.  Both $_SESSION are ok (I've checked with
a var_dump).

What could it be?

thanks.


Re: [PHP] Loosing session data between requests

2007-09-06 Thread robert mena
Edward,

My session.save_path = "/tmp".

The sess_X is created but with no contents


On 9/6/07, Edward Kay <[EMAIL PROTECTED]> wrote:
>
>
>
> robert mena wrote:
> > I've checked both /tmp and the session file sess_x in one server is
> > empty and in another has the data.  Both $_SESSION are ok (I've checked
> with
> > a var_dump).
> >
> >
> Check the permissions on /var/lib/php/session
>
> Edward
>


[PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread robert mena
Hi,

One server that hosts several domains ended up with the message "Owned
by W4n73d H4ck3r".While still performing an audit I am very
confident that this was caused by a php script (it is a linux server)
uploaded via FTP or by a defective site hosted (perhaps vulnerable
version of a CMS).

The symptons seem clear, files owned by apache are vulnerable and the
attacker script scanned the web tree and started running.

So, basically two questions:
- how to detect where this came from
- how to prevent it from happening again

Thanks.

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



Re: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread robert mena
Hi Daniel,

Thanks for the reply.

I agree that there are steps that go outside php scope (chroot apache
etc) but I think this partially belongs to this list specially since
google shows that the same message (perhaps a copycat?) appears in
tons of sites.

I was hoping that someone already had tips regarding the php part
(like disabling some functions etc).

But since I am also copying you directly please feel free to email me privately.

Thanks again.

On Nov 9, 2007 11:41 AM, Daniel Brown <[EMAIL PROTECTED]> wrote:
>
> On Nov 9, 2007 9:27 AM, robert mena <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > One server that hosts several domains ended up with the message "Owned
> > by W4n73d H4ck3r".While still performing an audit I am very
> > confident that this was caused by a php script (it is a linux server)
> > uploaded via FTP or by a defective site hosted (perhaps vulnerable
> > version of a CMS).
> >
> > The symptons seem clear, files owned by apache are vulnerable and the
> > attacker script scanned the web tree and started running.
> >
> > So, basically two questions:
> > - how to detect where this came from
> > - how to prevent it from happening again
> >
> > Thanks.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>Robert,
>
>That's really not so much a PHP question, but a general Linux
> security question.  Primarily, my job is computer forensics and
> security, so if you'd like, you can reply to me off-list and I'll be
> glad to offer you a hand.
>
> --
> Daniel P. Brown
> [office] (570-) 587-7080 Ext. 272
> [mobile] (570-) 766-8107
>
> If at first you don't succeed, stick to what you know best so that you
> can make enough money to pay someone else to do it for you.
>

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



Re: [PHP] Help securing a server : Owned by W4n73d H4ck3r

2007-11-09 Thread robert mena
Hi Daniel,

According to the audit this happened yesterday.

I am searching astalavista but could not find anything, probably
because I am being too specific.

>From the php side (or closely) what steps would you recommend in order
to have a better security?

I could not find a consistent 'list' of configuration settings to
disable or change besides the register_globals.

>From the system side my list so far includes (some already in place previous)
- no devel tools installed on the server (gcc etc)
- /tmp mounted with no_exec
- chroot apache
- use mod_security

Thanks.

> >
>
>It's all good.  We go off on tangents enough here anyway, so I
> suppose one more wouldn't hurt.  ;-P
>
>The person doing this seems to be relatively new to the scene,
> only defacing websites with common vulnerabilities that you can find
> anywhere on the Internet (http://astalavista.box.sk/ for example).
> Check out Zone-H (http://www.zone-h.net/) to see if your domains are
> on there, and to see if you can build a pattern from his/her past
> exploits.  That should help you in determining how he/she is doing it.
>
>You're on the right track in guessing that it was CMS-related.
> Remember how many sites and servers were compromised when phpBB
> exploits were announced and left unpatched?  These jackass skript
> kiddies just Google for known versions and deface whatever they can.
> It's not like the old days where you picked a target and found a way
> in now it's just that you pick your way in and find a target.
>
>*yawn!* No challenge anymore these kids are too lazy
>
>
> --
>
> Daniel P. Brown
> [office] (570-) 587-7080 Ext. 272
> [mobile] (570-) 766-8107
>
> If at first you don't succeed, stick to what you know best so that you
> can make enough money to pay someone else to do it for you.
>

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



[PHP] Improving development process / help with developer setup

2008-05-10 Thread robert mena
Hi,
I am looking for tips regarding improving the development process.  I'll
explain my current setup and please feel free to comment.

My developers all use windows + eclipse PDT, the workspace is hosted (via
samba) in a Linux server with Apache/PHP/MySQL.   I am in the process of
adopting Unit testing (PHPUnit2) and debug (Xdebug) so I have concerns about
how to property use this.

For example, in my current setup I'd have to enable SSH so they could run
the tests from the command line in the development server, but I am not sure
if I could remotely use Xdebug.

Thanks.


Re: [PHP] Improving development process / help with developer setup

2008-05-19 Thread robert mena
Hi,
Thanks for all answers.   Please let me add that I do use CVS (migrating to
 SVN) and the reason to use samba is that doing this allows the developer
machine (windows) to access the shares hosted in a linux server so when
he/she tests it will be run in the 'same' environment that the staging and
production servers and because in order to assure browser compatibility they
have to test from firefox/IE.

So, in order to allow phpunit to be ran, have the firefox/IE support and use
xdebug I have two basic options:
a) stay with windows, install XAMPP (or any other all-in-one).  And live
with the fact that some things will have to be taken care of (such as
PATH differences between unix/windows)
b) switch to linux with the development stack, enable a windows server to be
connected from rdesktop so they can test the IE

In both cases I'll have extra work in order to maintain the developer's
machine somewhat synchronized with the production server.

Am I missing a third/fourth (better) etc option?

thanks.

On Sat, May 10, 2008 at 8:44 PM, Gabriel Sosa <[EMAIL PROTECTED]> wrote:

> I suggest you if you are running live on linux, then developing on
> linux, could be the same dist or not..
> but definitely don't mix OS, because the extensions could fail, etc.
> one big issue it's the case insensitive in windows.
>
> definitely some version control system such as SVN or GIT
>
> you can use Hudson for continuous integration
>
> and selenium for automatics QA test over browsers
>
> again, try to don't mix OS.
>
> saludos
>
> gabriel
>
> On Sat, May 10, 2008 at 1:44 PM, David Otton <[EMAIL PROTECTED]> wrote:
> > 2008/5/10 robert mena <[EMAIL PROTECTED]>:
> >
> >> I am looking for tips regarding improving the development process.  I'll
> >> explain my current setup and please feel free to comment.
> >>
> >> My developers all use windows + eclipse PDT, the workspace is hosted
> (via
> >> samba) in a Linux server with Apache/PHP/MySQL.   I am in the process of
> >> adopting Unit testing (PHPUnit2) and debug (Xdebug) so I have concerns
> about
> >> how to property use this.
> >>
> >> For example, in my current setup I'd have to enable SSH so they could
> run
> >> the tests from the command line in the development server, but I am not
> sure
> >> if I could remotely use Xdebug.
> >
> > Your description (specifically, Samba) suggests that you're not using
> > source control. If you want to go for TDD (I don't know that you do,
> > but IMO it's a good direction to move in) I would suggest a
> > three-server setup - dev, staging and live.
> >
> > The dev server(s) are where you work. One per developer. Once you're
> > happy with your code and your tests, you commit your changes to source
> > control. This is where it gets clever. You can use pre- and
> > post-commit hooks to run an automated build process that pushes the
> > changes to a staging server, automatically runs the unit tests, and
> > accepts/rejects the commits based on the test results. You can even
> > lint the code, and reject anything that isn't in the house style.
> >
> > With larger projects, where an entire publish-and-test on each commit
> > becomes impractical, you can just run the build process and unit tests
> > every n hours, and mail out the results.
> >
> > Publishing to the live server is simply a matter of running the build
> > scripts with a different destination.
> >
> > On top of all that, run an issue tracker. /Everything/ goes in the
> > issue tracker, bugs, features, whatever. When you make a commit, that
> > commit should be closing an issue in the issue tracker (via commit
> > hooks again). That way you can track each change that's been made back
> > to its reason.
> >
> > All of this is opinion, of course, there's no Right Way. Just take
> > what's useful to you.
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>
> --
> Los sabios buscan la sabiduría; los necios creen haberla encontrado.
> Gabriel Sosa
>


Re: [PHP] Improving development process / help with developer setup

2008-05-19 Thread robert mena
Hi Zoltan,

If the windows would be used just for IE I think it's cheaper to have one
windows machine (server 2003/2008), have the users connect via terminal
service (rdesktop).  I think it's easier than having to install/maintain
than multiple windows installations, even if it is a virtual machine.


>
> why not switch everything to linux and run IE in wine or vmware on the
> developer's machine? that way you don't have to maintain windows machines
> at all
>
> greets,
> Zoltán Németh
>
>


Re: [PHP] Improving development process / help with developer setup

2008-05-19 Thread robert mena
Unfortunately this is not an option due to budget :)  I use Mac myself (with
VMWare fusion) but would not be feasible to depoly this with all the devel
team.


>>
> Or depending on your budget, Switch the developers to Macintosh computers,
> install windows via parallels, and then you can test in Mac/Unix/Windows all
> from 1 computer :)
>
>


[PHP] Tipos about which CMS use

2007-05-17 Thread robert mena

Hi there,

I'd like to replace my 'intranet' site with a CMS system to speed up
the edit process.  Some of my requirements are :

- written in PHP  :)
- mysql based
- documented/'well structured' - to allow development of customizations
- ability to define which pages or sections are public and which are
private (and in this case which users can access)
- use AJAX (not mandatory) but since some access to the page will come
from dial-up to reduce the need to transfer entire html just to update
a search or list contents..

thanks

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



Re: [PHP] Re: Tipos about which CMS use

2007-05-29 Thread robert mena

Hi,

Thanks for the reply.  I already use wordpress for my blog but not as a CMS.

I could not find, for instance, the hability to create users with some sort
of priviledge regarding reading/writing particular documents or areas.

Can you send me more info about it?


On 5/17/07, itoctopus <[EMAIL PROTECTED]> wrote:


I've said it before and I'll say it again: Wordpress.

Joomla/Mambo are also a good choice.

--
itoctopus - http://www.itoctopus.com
""robert mena"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi there,
>
> I'd like to replace my 'intranet' site with a CMS system to speed up
> the edit process.  Some of my requirements are :
>
> - written in PHP  :)
> - mysql based
> - documented/'well structured' - to allow development of customizations
> - ability to define which pages or sections are public and which are
> private (and in this case which users can access)
> - use AJAX (not mandatory) but since some access to the page will come
> from dial-up to reduce the need to transfer entire html just to update
> a search or list contents..
>
> thanks

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




[PHP] Chat system

2007-06-19 Thread robert mena

Hi,

I am looking for a simple php chat system (no registration, no private
channels).   Unfortunately the ones I've found (phpopenchat,
phpfreechat) are too complicate, requiring the user to register or
fail to work properly in IE6 or IE7.

Any tips?

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



Re: [PHP] Chat system

2007-06-19 Thread robert mena

Hi Daniel,

Thanks.

How can the user chooses the nickname? How about the list of connected users?


On 6/19/07, Daniel Brown <[EMAIL PROTECTED]> wrote:

On 6/19/07, robert mena <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am looking for a simple php chat system (no registration, no private
> channels).   Unfortunately the ones I've found (phpopenchat,
> phpfreechat) are too complicate, requiring the user to register or
> fail to work properly in IE6 or IE7.
>
> Any tips?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

I have a one that I started putting together a few days ago that
uses AJAX.  It can accept user registration, multiple rooms, et
cetera, but unless the files are included with the distribution, it's
a single room without registration.

Check it out: http://www.pilotpig.net/gchat/

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107



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



  1   2   >