[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 wa

[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 easil

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 a

[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

[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 --

[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/p

[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] 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'

[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 elem

[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 ?

[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

[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 a

[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

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 > >

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

[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 t

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.

[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

[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. Unfortunatell

[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

[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

[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 shoul

[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.

[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

[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 c

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

[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="

[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 th

[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

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

2001-05-12 Thread Robert Mena
/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 script

[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:

[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:

[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

[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

[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. __

[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://pro

[PHP] Re: strtok bug

2002-01-14 Thread Robert Mena
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 w

[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

[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: Compilat

[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 ht

[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! Sp

[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 t

[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

[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.

[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 shoul

[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

[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)

[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) firs

[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 tea

[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 igno

[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 p

[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' '--w

[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

[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,

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]>: > > > Tha

[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

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 '".$l

[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 an

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

2004-09-07 Thread robert mena
> 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.a

[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 t

[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

[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

[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),

[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

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

2010-06-28 Thread robert mena
e 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: >

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

2010-06-29 Thread robert mena
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 Soa

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

2010-06-29 Thread robert mena
end/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 (li

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

2010-06-29 Thread robert mena
shark. 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 >

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

2010-06-30 Thread robert mena
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, ro

[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 fun

[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] whe

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 co

[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

[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 test

[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 f

[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

[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 an

[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

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 us

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

2004-06-30 Thread robert mena
gt; > 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. > &g

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

2004-07-02 Thread robert mena
e 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 t

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

2004-07-02 Thread robert mena
t; 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] 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

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/u

Re: [PHP] Sending email without an email server

2004-07-19 Thread robert mena
1 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 200

[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

[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

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

[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). Th

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

2007-11-09 Thread robert mena
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]

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

[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 te

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

2008-05-19 Thread robert mena
ration > > 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]>: > > >

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

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 M

[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 wh

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

2007-05-29 Thread robert mena
<[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, > >

[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.n

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,

  1   2   >