[PHP] Can't make shorthand work in PHP5

2006-04-16 Thread abrea
Dear List, The shorthand form ?=$printthis? worked fine for me in PHP4, but I cannot make it work in PHP5. (?php print($printthis); ? works ok, however). Could anybody please tell me if this form is still available in PHP5, and, if so, if a different syntax is needed? I searched the matter in the

[PHP] Updating an open page with PHP

2005-06-14 Thread abrea
Dear list, Is there a way in PHP to update information on an open web page (e.g. to say Hello, user, I have just logged in), without the user having to refresh the page himself each time? Thank you Alberto Brea

Re: [PHP] form inside an email

2005-06-14 Thread abrea
Doesn't this work?: inside your email: form ... action=http://yoursite.com/yourpage.php; input ... name=var1 input ... name=var2 /form yourpage.php: ?php if(isset($_POST)): // process the input endif; ? Alberto Brea [EMAIL PROTECTED] -Original Message- From: Ross [EMAIL PROTECTED] To:

RE: [PHP] Updating an open page with PHP

2005-06-14 Thread abrea
Yes, but then the user would always have to reload the imbedded frame. -Original Message- From: Warren Vail [EMAIL PROTECTED] To: 'abrea' [EMAIL PROTECTED], 'PHP General List' php-general@lists.php.net Date: Tue, 14 Jun 2005 10:31:29 -0700 Subject: RE: [PHP] Updating an open page

Re: [PHP] [NEWBIE] How to allow for a href tags but no others?

2005-02-27 Thread abrea
Dave: I visited your website. I see that you wish to put the links in the middle of the text, which I didn't understand before. Now, if you let your users write tags you are bound to have a substantial number of them who don't even know what 'tag' means, let alone any occasional malice. Perhaps

Re: [PHP] [NEWBIE] How to allow for a href tags but no others?

2005-02-25 Thread abrea
Instead of allowing your users to enter a tags, why don't you put them in your own web page and just let them enter the url? For instance you would have your form: form method=post action=thepage.php input type=text size=40 name=url ... /form The action page (thepage.php) could include something

Re: [PHP] Student Suspended Over PHP use.

2005-02-09 Thread abrea
Aha I knew you guys were up to something Cheers Alberto Brea :-) -Original Message- From: Bosky, Dave [EMAIL PROTECTED] To: php-general@lists.php.net Date: Wed, 9 Feb 2005 08:53:24 -0500 Subject: [PHP] Student Suspended Over PHP use. I just ran across this

Re: [PHP] imap_mail problems

2004-12-21 Thread abrea
May I suggest that you use PHP's mail() function and avoid the problem altogether. The format is much the same as the one you are using. Alberto Brea [EMAIL PROTECTED] -Original Message- From: Paul Aviles [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Mon, 20 Dec 2004 20:00:22 -0500

[PHP] Software patents

2004-12-01 Thread abrea
Will the adoption and legalization of software patents actually threaten the activity of PHP software developers? I see some people quite worried about this, e.g. at http://www.knoppix.org and http://swpat.ffii.org/index.en.html Alberto Brea

Re: [PHP] Lost Variables

2004-11-23 Thread abrea
To turn $_POST[var1], $_POST[var2], $_POST[var3] into $var1, $var2, $var3: if(isset($_POST)) { foreach($_POST as $key=$value) { $$key= $value; print($$key= $value; br /); }} This should do it. The print statement is just to check the result. Regards Alberto Brea -Original Message-

[PHP] Best practices for php application

2004-10-21 Thread abrea
Dear list, Does anybody know of a url where I can find reading materials about best practices to organize the filesystem and variable structure of a php application? Although application purposes probably vary widely, I imagine that in one way or other most include adding, updating, deleting

[PHP] Can't install PHP on Windows/Apache

2004-07-19 Thread abrea
Dear list, I am trying to install PHP 4.3.8 as a module of Apache 2.0.50 on a Windows 98 computer. Apache alone runs ok. After I installed PHP with the installer package, I added the following line at the end of the Apache httpd.conf together with the AddType statements: # LoadModule

Re: [PHP] Re: Anyone knows when PHP5 is released?

2004-07-14 Thread abrea
Congratulations and good luck to the PHP 5.0.0 team!! Alberto Brea -Original Message- From: John W. Holmes [EMAIL PROTECTED] To: Ben Ramsey [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Tue, 13 Jul 2004 18:44:06 -0400 Subject: Re: [PHP] Re: Anyone knows when PHP5 is released? Ben Ramsey

Re: [PHP] checkbox

2004-06-30 Thread abrea
If you put square brackets after the name (e.g. var[]) your form should produce an array called $_POST[var] that comprises the checked boxes only. e.g. form method=post ... input type=checkbox name=var[] value=value1 input type=checkbox name=var[] value=value2 input type=checkbox name=var[]

[PHP] Concatenate PHP code into a string

2004-06-28 Thread abrea
Dear List, How can I include a dynamically generated array: e.g. for($i=0; $isizeof($cols); $i++) { $cols[$i]= mysql_field_name($fields,$i); } into a MySQL insert query of the type: $sql= INSERT cols[0],cols[1],cols[2], ..., comment INTO mytable SET cols[0]= '$cols[0]',