Re: [PHP] Variable Passing

2005-04-09 Thread Jordi Canals
What I do to control it only by PHP without using the mod_rewrite for apache is to use URL with this format: http://sample.com/script.php/param1/param2/param3 Then, work in the script looking at the variable $_SERVER['REQUEST_URI'] wich will contain, in this sample: /script.php/param1/param2/para

[PHP] Problems compiling PHP-5.0.4 with cPanel.

2005-04-03 Thread Jordi Canals
Hi, I have an VPS server wich runs cPanel. My PHP version currently installed is 5.0.3 and had no problems until now. I've been trying to upgrade my PHP version from 5.0.3 to 5.0.4 with no success. I've tried doing it with WHM and also tried to do it manually with ./configure and make. Always I'

Re: [PHP] PHP 5 Status

2005-04-01 Thread Jordi Canals
On Apr 1, 2005 8:30 PM, Colin Ross <[EMAIL PROTECTED]> wrote: > Is PHP 5 ready for production environments? Is it concidered stable, > or is it just a matter of going a while with no new bugs discovered to > get to stable.. Yes, it is ready. I've been using on my production servers since version

Re: [PHP] Re: [suspicious - maybe spam] [ PHP] [suspicious - maybe spam] RE: [ suspicious - maybe spam] [PHP] [suspici ous - maybe spam] Résultats sur plusieurs pages

2005-03-22 Thread Jordi Canals
Please, This is an English list. I'll thank if you can write plain english on it. Thanks. On Tue, 22 Mar 2005 21:18:06 +0100, Aurélien Cabezon <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mike Johnson wrote: > > | Si je lis votre question correctement, vous

[PHP] Re: Understanding intval() and types conversion

2005-01-26 Thread Jordi Canals
Many thanks to all for clarifiying this. Finally I could remember some things and understand why things go that way. Thanks again. Jordi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [Fwd: DNS.050125191312.29782 (Re: Re: [PHP] Replace credit card numberswith X ???)]

2005-01-25 Thread Jordi Canals
On Tue, 25 Jan 2005 16:29:38 -, Chris Ramsay <[EMAIL PROTECTED]> wrote: > > > >Hey! > >I just got this emai lfrom RIPN mail processor at Moscow ?!?!?!?!? > > > > I have received this also with both my postings today...and probably will > again... > I've just sent ONE message to the list

[PHP] Understanding intval() and types conversion

2005-01-25 Thread Jordi Canals
Hi, I'm trying to understand how the intval() function works, but I'm unable to understand how exactly it works. Take a look at this piece of code (Tested on PHP 5.0.3): '. $a .' -> '. gettype($a); // Prints: a -> 8 -> double echo ''; echo 'b -> '. $b .' -> '. gettype($b); // Prints: b -> 7 -

Re: [PHP] Notice:Use of undefined constant

2005-01-24 Thread Jordi Canals
> > Wish List: PHP 6 uses E_ALL by default install. > I wish E_ALL | E_STRICT Regards, Jordi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: multiple sessions on same server/domain

2005-01-21 Thread Jordi Canals
On Fri, 21 Jan 2005 09:43:38 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > Thus my point remains: > On a shared server, I don't need to resort to calling this function to > hijack your Cookie/session. PHP can read the raw session files. I can > write a PHP script to read the raw sessi

Re: [PHP] Search engine

2005-01-20 Thread Jordi Canals
On Thu, 20 Jan 2005 14:04:44 +0200, Rosen <[EMAIL PROTECTED]> wrote: > > Hi, > Can someone recommend me a search engine script in PHP for inside one site? > http://www.phpdig.net/ Regards, Jordi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.p

Re: [PHP] NT domain info

2005-01-19 Thread Jordi Canals
On Thu, 20 Jan 2005 00:13:35 -, Mikey <[EMAIL PROTECTED]> wrote: > Hi NG! > > Does anyone here know of a way of getting at the user account information > from a windows domain controller from a Linux box, specifically in PHP? > The Windows domain controllers run LDAP. So, you can use the PHP

Re: [PHP] How to set an absolute include path?

2004-12-27 Thread Jordi Canals
On Mon, 27 Dec 2004 08:27:25 -0800, Brian Dunning <[EMAIL PROTECTED]> wrote: > Is there a command that will set the include path to the web server > root? set_include_path($_SERVER['DOCUMENT_ROOT']; > I'm trying to set up a directory structure where include files will be > called from all diffe

Re: [PHP] How to set register_globals=off in the script?

2004-12-21 Thread Jordi Canals
On Tue, 21 Dec 2004 14:56:03 -0500, Jerry Swanson <[EMAIL PROTECTED]> wrote: > I know that "register_globals = on" is not secure. But one program > requires to use register_globals=on. So in php.ini register_globals is > set to on. > > I have PHP 5.1, is it possible in the code set register_globa

Re: [PHP] Setting or Getting Relative Path for PHP Includes

2004-12-20 Thread Jordi Canals
Can use a directive on your .htaccess: php_value include_path /your/include/path/here This can also be set on your httd.conf in a virtual server basis. If you have access to php.ini is better to set the include there. Regards, Jordi. On Mon, 20 Dec 2004 12:41:06 -0800, Anthony Baker <[EMAIL

Re: [PHP] Performance of magic_quotes_gpc ??

2004-12-19 Thread Jordi Canals
Hi, a couple of comments: > --snip-- > htmlentities(htmlspecialchars($_POST['tentry_body'])) . "'"; > --snip-- Why are you using both htmlentities and htmlspecialchars? Think that html only converts some entities while htmlentities converts all ... so, for your purposes, apliying only one could

Re: [PHP] Mining protection / security code confirmation

2004-12-03 Thread Jordi Canals
On Fri, 03 Dec 2004 09:43:10 +0800, Ho!Tech Guy <[EMAIL PROTECTED]> wrote: > I have a classified ad section on my site which uses a privacy mail > function so users don't have to make their email address public. Recently > though, the site has been mined (I assume) and spam is being sent. > > I wa

Re: [PHP] Re: Understanding Static Methods

2004-11-19 Thread Jordi Canals
On Fri, 19 Nov 2004 12:01:16 +0100, Sebastian Mendel <[EMAIL PROTECTED]> wrote: > Jordi Canals wrote: > > I'm trying to understand static methods in a test class. Reading the > > manual, it says: "A member or method declared with static can not be > > accesse

Re: [PHP] Understanding Static Methods

2004-11-19 Thread Jordi Canals
On Fri, 19 Nov 2004 03:16:14 +0100, Sylvain Girard <[EMAIL PROTECTED]> wrote: > > I'm taking a wild guess here, but doesn't that got anything to do with the > public declaration of the method? > If I declare the method without the public declaration it bahaves the same ... static function TestS

[PHP] Understanding Static Methods

2004-11-18 Thread Jordi Canals
Hi all, I'm trying to understand static methods in a test class. Reading the manual, it says: "A member or method declared with static can not be accessed with a variable that is an instance of the object and cannot be re-defined in an extending class." Test code: str = 'Hello world';

Re: [PHP] Question regarding constructors and child classes

2004-11-17 Thread Jordi Canals
Hi, Comment inline On Wed, 17 Nov 2004 20:19:01 -0600, Brent Clements <[EMAIL PROTECTED]> wrote: > > > class foo { > > function foo () { > > echo "constructed!"; > > } > > } > > class childFoo extends foo { > > function childFoo() { > /

Re: [PHP] PHP Supremacy...

2004-11-17 Thread Jordi Canals
On Wed, 17 Nov 2004 16:17:44 -0600, Pedro Irán Méndez Pérez <[EMAIL PROTECTED]> wrote: > Hello my friends, I need your help in convince to my boss in adopt php for > development of a tool for intranet in my office, he told me that php is open > source and we don´t know if will disappear in a year,

Re: [PHP] Auto Class loading

2004-11-17 Thread Jordi Canals
On Wed, 17 Nov 2004 19:17:13 -0200, Bruno B B Magalhães <[EMAIL PROTECTED]> wrote: > Continuing the classes questions... > > I have a class loader called 'load_core_class($class=''), but if $class > equals to all I would like to load all classes in the core directory, > include then AND start the

Re: [PHP] php.ini

2004-11-16 Thread Jordi Canals
On Tue, 16 Nov 2004 00:17:27 -0800 (PST), [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > (on windows) can someone tell me where to define which php.ini gets used? > > On my dev box, I installed the zend editor. Now when i do a > localhost/phpinfo() > from a normal browser window (ie not from wit

Re: [PHP] Automatically Escape?

2004-11-16 Thread Jordi Canals
On Tue, 16 Nov 2004 12:33:15 +, Richard Davey <[EMAIL PROTECTED]> wrote: > G> Is there a function that can automatically escape special characters > G> before putting them into mySQL? > > See magic_quotes to have it done for you. Although this isn't a > recommend approach if you plan to distr

[PHP] session_set_cookie_params() for one level domains

2004-11-15 Thread Jordi Canals
Hi all, Something that has taken me some time to debug and wanted to share: session_set_cookie_params() does not work when the domain param is just a one level domain, like it was a TLD. I have a site in an intranet and our internal domain is .local, so trying to set the cookie session to the .lo

Re: [PHP] PHPINIPATH/PHPINIDIR/PHPININAME?

2004-11-14 Thread Jordi Canals
On Sun, 14 Nov 2004 23:42:58 +0700, David Garamond <[EMAIL PROTECTED]> wrote: > Greg Donald wrote: > > > > print_r($_ENV); > > What should I see in it? > RTFM http://www.php.net/manual/en/reserved.variables.php#reserved.variables.environment -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Shifting banner on re-display

2004-11-13 Thread Jordi Canals
On Sat, 13 Nov 2004 11:00:08 -0500, Andre Dubuc <[EMAIL PROTECTED]> wrote: > Hi, > > I have a very annoying problem with pages that re-display using the action tag>. On re-display the banner, which is set absolute position at 0px, > shifts down by about an inch. I've isolated the cause to the ta

Re: [PHP] Re: Unsetting vars when not needed?

2004-11-13 Thread Jordi Canals
On Fri, 12 Nov 2004 16:46:52 +, pete M <[EMAIL PROTECTED]> wrote: > Unsetting class objects does take time and is really of no benefit > unless there are memory problems > > as for freeing resuslts - the same applies > > pete Many thanks for comments. I see that if not having memory problems

[PHP] Unsetting vars when not needed?

2004-11-12 Thread Jordi Canals
Hi all, I was working now in a new site developed with PHP 5.0.2 and a wonder came to me: Is usefull and recommended to unset a class instance when not needed? Specially when the class was instantiated inside a function and the function ends. In this case, the system should automatically destro

Re: [PHP] Help:escape_string and stripslashes

2004-11-07 Thread Jordi Canals
On Sun, 7 Nov 2004 03:52:28 -0800 (PST), Stuart Felenstein <[EMAIL PROTECTED]> wrote: > I asked a question yesterday about this but I think my > question is now more fine tuned: > > Right now I have about 50+ session variables that will > be inserted into my mysql database in a transaction. > I n

Re: [PHP] Javascript and php

2004-11-07 Thread Jordi Canals
On Sun, 7 Nov 2004 11:44:33 +0100, Reinhart Viane <[EMAIL PROTECTED]> wrote: > Hope some of you also work on sundays :) > > I have a little javascript which displays a images (with previous / next > thing) > Now, i populate the javascript array with an php array: > > > >