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:

[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

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 desire

[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

[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): ?php $a = (0.1 + 0.7) * 10; $b = intval($a); echo 'a - '. $a .' - '. gettype($a); // Prints: a - 8 - double echo 'br';

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: snip Hey! I just got this emai lfrom RIPN mail processor at Moscow ?!?!?!?!? /snip I have received this also with both my postings today...and probably will again... I've just sent ONE message to the list

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 session

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

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 LDAP

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 different

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_globals=off

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 do

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 was

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

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 accessed with a variable that is an instance

[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: ?php class B {

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

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

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: ?php class foo { function foo () { echo constructed!; } } class childFoo extends foo { function childFoo() { // here you

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 distribute

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 within

[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

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/) To

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 it's

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

[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

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: SCRIPT LANGUAGE=JavaScript !--

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

Re: [PHP] SQL-Injection, XSS and Hijacking

2004-11-05 Thread Jordi Canals
On Wed, 3 Nov 2004 19:02:22 -0800 (PST), Chris Shiflett [EMAIL PROTECTED] wrote: There is a lot more. I highlight some of the things I think are of principal concern for PHP developers in something I call the PHP Security Workbook: http://shiflett.org/php-security.pdf That doesn't cover

Re: [PHP] RE: [PHP-WIN] Cannot load the mysql library

2004-11-03 Thread Jordi Canals
Hi, On Thu, 4 Nov 2004 01:12:40 +1000, Murray @ PlanetThoughtful [EMAIL PROTECTED] wrote: When I open the page, I receive the message: PHP Startup: Unable to load dynamic library './ext/php/_mysql.dll' Can't find the specified module. I don't know if this is the exact message, because

Re: [PHP] Re: **[SPAM]** Re: [PHP] email as link

2004-11-03 Thread Jordi Canals
On Wed, 03 Nov 2004 12:25:38 -0500, John Nichel [EMAIL PROTECTED] wrote: Jay Blanchard wrote: [snip] Sending as HTML will ensure that _almost_ everyone sees it as a link, but there are some who have their clients set to block HTML. [/snip] Text only on a list like this is just

Re: [PHP] Re: blank function parameters

2004-11-03 Thread Jordi Canals
On 3 Nov 2004 16:38:39 -, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: * Daniel Schierbeck [EMAIL PROTECTED]: function foobar ($a, $b, $c = null) { if (isset($c)) { echo 'The third argument was set'; } } That check should be for 'is_null($c)' as the

Re: [PHP] text email new line

2004-11-02 Thread Jordi Canals
On Tue, 2 Nov 2004 16:25:56 +, Richard Davey [EMAIL PROTECTED] wrote: Hello Jerry, JS I'm sending text email. How I can make new line. JS \n seems to be not working. \n in a text (not HTML) email will do the trick most of the time, sometimes I see \r\n, but \n works for me nicely. Are

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

2004-11-02 Thread Jordi Canals
On Tue, 2 Nov 2004 17:57:02 +0100, Enrico Weigelt [EMAIL PROTECTED] wrote: BUT: i personally think its okay to talk about such offtopics when they're so generally important. Perhaps is so important to US citizens, but not to much people outside the US ... and I think this is not a list about

Re: [PHP] VOTE TODAY

2004-11-02 Thread Jordi Canals
On Tue, 2 Nov 2004 16:07:58 -0800, Brian Dunning [EMAIL PROTECTED] wrote: I'm Canadian, please stop wasting my bandwidth. And I'm European and don't mind about US elections. Please STOP this politics offtopics here. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: Re[2]: [PHP] text email new line

2004-11-02 Thread Jordi Canals
Hi Richard, On Wed, 3 Nov 2004 00:19:59 +, Richard Davey [EMAIL PROTECTED] wrote: Hello Jordi, Tuesday, November 2, 2004, 5:34:00 PM, you wrote: JC I hope this will help in composing mail messages and my recommendation JC is to *follow the standard* and send messages always by using

Re: [PHP] Query Returning Error

2004-10-13 Thread Jordi Canals
On Wed, 13 Oct 2004 08:32:17 +0100, Harlequin [EMAIL PROTECTED] wrote: Morning all. this is such a basic question I'm embarrassed to ask but the query worked fine a few minutes ago and now returns an error: I get an error: Parse error: parse error, unexpected '=' in sample.php on line 2

Re: [PHP] fpassthru failure with mozilla

2004-10-12 Thread Jordi Canals
On Tue, 12 Oct 2004 09:17:30 -0700, ApexEleven [EMAIL PROTECTED] wrote: Why use fpassthru? I just use readfile, is there a difference? The main difference is with fpassthru you never show to the user the exacr location of the file, so must use the script to download it. In example, you can

[PHP] PHP_SELF SCRIPT_NAME differences

2004-10-12 Thread Jordi Canals
Hi all, I'd like to know the difference by using the $_SERVER['PHP_SELF'] and $_SERVER['SCRIPT_NAME'] variables. After I read the manual, I have not found the difference betwen the two when used in a Web Script. Also, in all tests I've done, I get the same result in both variables. Any comment

Re: [PHP] fpassthru failure with mozilla

2004-10-12 Thread Jordi Canals
On Wed, 13 Oct 2004 00:22:40 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote: Why use fpassthru? I just use readfile, is there a difference? I bet Apex11 meant readfile() php function. Oh, I see. Sorry for the mistake. In this case, I would like to know also the diference ;) Regards, Jordi

Re: [PHP] sending SMS messages to mobile phones from PHP

2004-10-11 Thread Jordi Canals
On Sun, 10 Oct 2004 15:23:54 +0100, Andrew Cowles [EMAIL PROTECTED] wrote: We operate an SMS Gateway service (http://www.kapow.co.uk/) which would do exactly what you need. It's been reliably sending SMS since 1995 - and MANY of our clients use PHP. Unfoturnately your price list is only in

Re: [PHP] SOMETIMES, my SID gets embedded in the URL ???

2004-10-11 Thread Jordi Canals
I had this problem in the past, and asking the PHP people, found that session.use_trans_sid is PHP_INI_DIR for PHP 4 and PHP_INI_ALL for PHP 5. That is the response I received from a bug I submited some time ago http://bugs.php.net/bug.php?id=28991 So, You're setting user_trans_sid with ini_set

Re: [PHP] URL verification

2004-10-08 Thread Jordi Canals
Hi, Check the port number: 80 for http and 443 for https (standard defaults). You can check it with $_SERVER['SERVER_PORT'] i.e.: if ($_SERVER['SERVER_PORT'] != 443) { header('Location: https://some.location.here'); } Also, there is not important if the login form is displayed in SSL mode

Re: [PHP] Quotes in form textarea fields

2004-10-08 Thread Jordi Canals
A user enters in a textarea field of FORM1.php: Bob is high Submitted to FROM2.php we get: Bob is \high\ Tha't's normal beacuse you have magic_quotes_gpc_on In a hidden field in FROM2.php we store the value: type=hidden, value=? echo stripslashes($_POST['textarea']); ? Value now Bob

Re: [PHP] session_save_path

2004-10-07 Thread Jordi Canals
For all you're talking about, It looks like your hosting provider is running PHPsuExec. So, PHP is now running as CGI and .htaccess does not work anymore to setup PHP values or flags (Will fire a 500 internal server error). Instead, you have to use a custom php.ini fle. (just write in this custom

Re: [PHP] session_save_path

2004-10-07 Thread Jordi Canals
You have to set the session_save_path(some_where) in all pages where you call to session_start(). And you should do it *before* calling session_start. On the manual: session_save_path() returns the path of the current directory used to save session data. If path is specified, the path to which

Re: [PHP] Two people working on the same app / script?

2004-09-30 Thread Jordi Canals
I use Subversion for that ... similar to CVS, but with new and interesting features and really easy to setup in any platform. But you can use any System to control versions and provide access to it to all developers. You can get Subversion at http://subversion.tigris.org/ Regards, Jordi. On

Re: [PHP] Apache 2 and php 5 compatibility

2004-09-23 Thread Jordi Canals
On Thu, 23 Sep 2004 10:33:54 +0200, Bostjan Skufca @ domenca.com We use php4 and php5 with apache2 on production servers without any problem (prefork MPM). I also have PHP 5 and Apache 2 running on some servers, as I need some Apache Modules that are only available for Apache 2 ... Also, I

Re: [PHP] Extrange behavior with Header('Location')

2004-09-21 Thread Jordi Canals
in links because I want all my pages being validated by the W3C validator service. Thanks again, Jordi Canals -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Extrange behavior with Header('Location')

2004-09-20 Thread Jordi Canals
I should take into consideration. Thanks to all for reading, Jordi Canals -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date function

2004-09-19 Thread Jordi Canals
On Sun, 19 Sep 2004 14:29:54 +0300, Magdy [EMAIL PROTECTED] wrote: my problem is with date( ) function which is display a GMT time which is different from my zone with 3 hours,,,how can i correct this. The date() function, gets the system current date/time if you don't pass the second

Re: [PHP] Variable just not Behaving Itself.

2004-08-10 Thread Jordi Canals
Harlequin wrote: I have the following: [SNIP] ... $Emp_Status_Rqmt=$row[Emp_Status_Rqmt]; } if( $Emp_Status_Rqmt == 'Permanent' ) { $UserStatus = 'Permanent'; } if( $Emp_Status_Rqmt == 'Contractor' ) { $UserStatus = 'Contractor'; } else { $UserStatus ==

Re: [PHP] php source management

2004-08-08 Thread Jordi Canals
CHAN YICK WAI wrote: if a project is worked by a small team of developers, is there a tool for source and version management for php source code? e.g. check which part of source is modified! Thanks for information. Regards, Yw If you're on windows I recommend using WinCVS and CVSnt.

Re: [PHP] Passing user entered data to DB

2004-08-05 Thread Jordi Canals
John Holmes wrote: $uservar = htmlspecialchars(strip_tags($uservar)); You don't need to use strip_tags _and_ htmlspecialchars()... unless you want strip_tags to get rid of such malicious and deadly content such as grin and wow. Just use htmlspecialchars(). Well, my idea was to apply both: I do

Re: [PHP] Why do I keep getting a 501 mail error?

2004-08-05 Thread Jordi Canals
#28038 http://bugs.php.net/bug.php?id=28038 ... and make your vote to have it solved in some future version ;) Regards. Jordi Canals -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Session Expire...

2004-08-04 Thread Jordi Canals
John Holmes wrote: A one hour timeout is better controlled with the session.gc_maxlifetime setting. This is the number of seconds after which an inactive session file will be deleted. No session file means no session for the user. Set this at 3600 and if the user is not active for over an hour,

[PHP] Passing user entered data to DB

2004-08-04 Thread Jordi Canals
to pass the $securevar to the database, or I should consider something more to be checked before. Any help or comment will be really usefull. Regards, Jordi Canals -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php coding software

2004-08-03 Thread Jordi Canals
will recommend you to get WinCVS wich provides a nice and easy-to-use CVS interface. (And you can get CVSnt for a Windows based CVS server). Regards. Jordi Canals -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php coding software

2004-08-02 Thread Jordi Canals
Brad Ciszewski wrote: Does anyone know any good software for PHP/mysql coding? I currently use DreamWeaver MX, however it doesn't have much PHP support, and no MySQL support. I just want an easy program to script in, and upload on to my webserver. Please help! :o Sorry, but you're wrong.

Re: [PHP] Number validation

2004-07-30 Thread Jordi Canals
Andre wrote: Hello I need one script in PHP to validate only numbers inserted from a form. For example like a telephone number. Thanks. Well ... you can write it or if don't want to code ... perhaps searching the web could help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Number validation again...

2004-07-30 Thread Jordi Canals
Andre wrote: Does exits any function in PHP to see if one string is compose for numbers. YES http://catb.org/~esr/faqs/smart-questions.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session Expiration Timeout

2004-07-28 Thread Jordi Canals
-PHP-Sessions A nice class: http://codewalkers.com/seecode/463.html Best regards, Jordi Canals -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Expiration Timeout

2004-07-28 Thread Jordi Canals
Matt M. wrote: - Wich is the default timeout for a session? And, is some way to know the expiration time for a session? Take a look at the ini variables. http://us2.php.net/session session.gc_maxlifetime Thanks Matt. for your quick and clear answer. I've readed about it, and seen the default is 24

Re: [PHP] how to use PHP-Nuke in safe mode

2004-07-22 Thread Jordi Canals
Porcupine PC wrote: How can i use PHP-Nuke in this safe mode? You must try to ask this in a PHP-Nuke especific list ... But the answer is NO, cannot be used in safe mode. Regards, Jordi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] current directory?

2004-07-20 Thread Jordi Canals
Justin French wrote: I've got some weirdness with files included via a symbolic link. Is there any way I can find out what directory PHP is currently trying include from? get_include_path(); Regards, Jordi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Embedded Email Directives

2004-07-20 Thread Jordi Canals
Curt Zirzow wrote: * Thus wrote Jordi Canals: Jordi Canals wrote: Should I filter all CR and LF Just in headers or also I should do that in the message body? (Which is sent in the SMTP DATA section). One of the things to ensure you dont do is blindly allow user entered data sending

Re: [PHP] Discussion Forum Online Chat

2004-07-20 Thread Jordi Canals
Vinayakam Murugan wrote: Hi We are developing a PHP / MySql based website. The requirements include a discussion forum and online chat application with open chat rooms, invited chat one-to-one chat. There are many packages which are available on sourceforge and the like. I would like the

Re: [PHP] Embedded Email Directives

2004-07-19 Thread Jordi Canals
Jordi Canals wrote: Dennis Gearon wrote: remove carriage returns to prevent embedded email directives In an other thread, I readed that sentence. I'm interested to find more information about that. I have some mail forms and want to make them as secure and possible, but do not know about what

Re: [PHP] php.net like doc pages

2004-07-18 Thread Jordi Canals
Ed Lazor wrote: phpNuke is also popular. And plenty of bugs and security holes ... Regards, Jordi. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Embedded Email Directives

2004-07-16 Thread Jordi Canals
Manuel Lemos wrote: Hello, On 07/15/2004 10:25 PM, Jordi Canals wrote: remove carriage returns to prevent embedded email directives Should I filter all CR and LF Just in headers or also I should do that in the message body? (Which is sent in the SMTP DATA section). Anyway, you may want to take

Re: [PHP] PHP upgrade... issues???

2004-07-15 Thread Jordi Canals
fixes some security bugs. Mine is upgrading today alto to 4.3.8 (From 4.3.7), and before where many, many upgrade versions. My only problem is that I cannot test pages on my preview server, during this time. My only worry is my pub being opened to have a beer with friend ;) Regards, Jordi

Re: [PHP] Encrypting passwords from page to page -mcrypt question

2004-07-15 Thread Jordi Canals
Scott Taylor wrote: I would like to go from page to page, submitting the password through a GET query string. Of course I wouldn't want to do this unencrypted. So is mcrypt the best option? I think to submit the password on the query string is a really bad idea. What will happend if a user

[PHP] Embedded Email Directives

2004-07-15 Thread Jordi Canals
Dennis Gearon wrote: remove carriage returns to prevent embedded email directives In an other thread, I readed that sentence. I'm interested to find more information about that. I have some mail forms and want to make them as secure and possible, but do not know about what and where should I

Re: [PHP] Email, Hotmail and PHP?

2004-07-13 Thread Jordi Canals
[EMAIL PROTECTED] wrote: Indeed... who doesn't enjoy a brief break to see what's happening in their world? I ended up using 'hail' (http://www.hailware.com/) As far as I can tell, it doesn't allow attatchments... Spending lunch hour checking personal mails... who can honestly admit that it

Re: [PHP] FW: NO SUCH ADDRESS

2004-07-13 Thread Jordi Canals
Ed Lazor wrote: Am I the only one getting these every time I post to the list? Everyone is getting it. But we cannot know wich address is giving back this message, as it is not reported. Just we know the domain it comes from. I've already added that domain to my spam list and forgot lazy people

[PHP] stripslashes() when reading from the DB

2004-07-12 Thread Jordi Canals
Hi, I usually stripslashes() when I read the info from the database (MySQL). Because the information was inserted after adding slashes, or the system has magic_quotes_gpc set to ON. I'd like to know, if I can do stripslashes() directly, as it is suposed that all data was inserted into DB

Re: [PHP] How to use multiple cookie statements

2004-07-12 Thread Jordi Canals
Ronald The Newbie Allen wrote: aHere is my code... ? setcookie(cookie[name],$_POST['name'], time()+86400) setcookie (cookie[email],$_POST['email'], time()+86400) setcookie (cookie[bgcolor],$_POST['bgcolor'], time()+86400) setcookie (cookie[tcolor], $_POST['tcolor'], time()+86400) ? I have to use

Re: [PHP] stripslashes() when reading from the DB

2004-07-12 Thread Jordi Canals
Philip Olson wrote: I usually stripslashes() when I read the info from the database (MySQL). Because the information was inserted after adding slashes, or the system has magic_quotes_gpc set to ON. To add further comment. If you're required to run stripslashes() on data coming out of your

Re: [PHP] Re: User Logon Procedure Fails

2004-07-05 Thread Jordi Canals
Curt Zirzow wrote: $userid = (int) $_POST['TXT_UserID']; $sql = ... WHERE UserID = $userid; Seing that I have a question around. Most cases I validate the $userid by using the function inval() in that way: $userid = inval($_POST['TXT_UserID']; $sql = ... WHERE UserID = $userid; I

[PHP] Problem with session on first page loaded

2004-07-02 Thread Jordi Canals
Hi all, I have an extrange problem with the session cookie: In all my pages there I have this two lines to start the session: session_name('jcwse'); session_start(); When I access my website, at any page, everytyhink works OK, and the session cookie is set with no problem except for links. In

Re: [PHP] Problem with session on first page loaded

2004-07-02 Thread Jordi Canals
Jordi Canals wrote: This problem only arises on my ISP hosting (Linux+Apache 1.3) and does not show on my devel computer (Windows+Apache 2.0). I've been searching the manual, but found no explanation about that. Sorry forgot it: The two platforms run PHP 4.3.7 Thanks again, Jordi. -- PHP General

Re: [PHP] Problem with session on first page loaded

2004-07-02 Thread Jordi Canals
have different settings in the PHP.ini file to that of your ISP, probably register_globals is set to off. I would check it. HTH Angelo Jordi Canals [EMAIL PROTECTED] 7/2/2004 11:14:28 AM session_name('jcwse'); session_start(); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Problem with session on first page loaded

2004-07-02 Thread Jordi Canals
Lars Torben Wilson wrote: About the cookie params (In PHP.INI) I checked them on the two platforms with phpinfo() and are exactly the same. Was your binary compiled with --enable-trans-sid? If so, I imagine the explanation would be something along the lines that because the session manager

Re: [PHP] Header or includes for one-level up access?

2004-07-02 Thread Jordi Canals
Andre Dubuc wrote: I thought a simple re-direct page might do the trick. I've tried three methods: the header approach header(location: ../conn-up.php); an absolute header: header(location: /vhome/conn-up.php); and an include approach: include(../conn-up.php); Te header methods will not

Re: [PHP] multiple php.ini

2004-06-09 Thread Jordi Canals
Vincent DUPONT wrote: We need to install one windows 203 server with various versions of the same application. The versions will be held in disticnt web sites on this server. In order to point to the different application versions, I need to point the include_path to the right php scripts (in

Re: [PHP] Re: file knowing its own directory

2004-06-09 Thread Jordi Canals
Red Wingate wrote: the magic constant __FILE__ will give you the absolut filesystem location of the file it is called. Eg: /home/www/tests/foo.php - ?php echo __FILE__ ; ? will print: '/home/www/tests/foo.php'; to retrieve the path only you could do: /home/www/tests/foo.php - ?php echo

Re: [PHP] CAUTION FRAUD: IMPORTANT MASSAGE FROM THE BANK

2004-06-03 Thread Jordi Canals
Some time ago, I was working for a governement departament, and I asked about this kind of messages. The answer was clear and explicit: This kind of message are a FRAUD (I don't now how they do the fraud) and are investigated and are INVESTIGATED and PERSECUTED by the Spanish Police in

Re: [PHP] Re: Problem with number_format

2004-05-25 Thread Jordi Canals
Martin Geisler wrote: My PHP manual (from a Debian package) has the following note on the page for round(): Caution When rounding on exact halves round() rounds down on evens and up on odds. If you want to always force it in one direction on a .5 (or .05 in your case) add or substract a tiny

Re: [PHP] Re: test

2004-05-25 Thread Jordi Canals
Sherri wrote: Woah! Signed up litterally 1 minute ago and I'm already getting spam. From Advance Credit Suisse Bank Just wait. There are some more waiting for you ;) You should receive the Information Desk and Ingram Computer Services mails yet. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Cpanel accounting library

2004-05-25 Thread Jordi Canals
Burhan Khalid wrote: Jordi Canals wrote: Hi all, Cpanel is a control panel to manage accounts for ISP's (And espcially ISP's resellers). I knnow there is some librarys to directly manage the accounts from PHP-Scripts and I got some very small and undocummented samples. I'm working on some

[PHP] Cpanel accounting library

2004-05-21 Thread Jordi Canals
Hi all, Cpanel is a control panel to manage accounts for ISP's (And espcially ISP's resellers). I knnow there is some librarys to directly manage the accounts from PHP-Scripts and I got some very small and undocummented samples. I'm working on some scripts to manage the accounts directly from

Re: [PHP] CONSTANTS and good coding practice

2004-05-21 Thread Jordi Canals
Al wrote: Can someone explain to me the value of using defined custom constants, in the context of good coding practice. I don't recall ever seeing define() used in the scripts I've seen and only the characteristics are described in the my php book and the php manual; but, not the use.

[PHP] Re: [PHP-ES] Proyecto GPL

2004-05-21 Thread Jordi Canals
Manuel González Noriega wrote: El vie, 21-05-2004 a las 19:12, Jordi Canals escribió: Queria comentar sobre un pequeño proyecto que tengo en mente: sería interesante que comentaras la motivación detrás del proyecto. ¿Ves carencias que solucionar en proyectos ya equivalentes a tu idea como PEAR o

Re: [PHP] Cpanel accounting library

2004-05-21 Thread Jordi Canals
Travis Low wrote: Jordi Canals wrote: I'm working on some scripts to manage the [cpanel] accounts directly from PHP (Scripts will be GNU/GPL licensed). After STFW, I've not found any good documentation on it, just the short samples on http://www.cpanel.net/remoteaccess-php.html I haven't found

Re: [PHP] Cannot Get Session Variables nor Global variables to work

2004-05-21 Thread Jordi Canals
You need to place session_start() at the top of test2.php. If you use session_start, you should not use using session_register(), just use $_SESSION. From Manual: If you are using $_SESSION and disable register_globals, do not use session_register(), session_is_registered() and

[PHP] Methods for instatiating an object

2004-05-12 Thread Jordi Canals
Hi all, It is not a big issue, but that is something that I never had clear. I've been looking at the manual and found no answer, so I will ask with an example: When instantiating an object, I could do it in two different ways: A) $object = new MyClass; B) $object = new MyClass; I

Re: [PHP] Methods for instatiating an object

2004-05-12 Thread Jordi Canals
Rudy Metzger wrote: It is as you say. The problem is normally negligible, but makes a big difference if there is alot done in the constructor of the object (e.g. scanning a huge file for certain strings). Then this will slow things down. This however is solved in PHP5. Thanks to all for your

  1   2   >