[PHP] Re: background=#

2004-07-22 Thread Torsten Roehr
the page reloaded several times. Search the mailing list archives and you might find the thread: http://marc.theaimsgroup.com/?l=php-general Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] HTML numeric string

2004-07-21 Thread Torsten Roehr
Koriun A. Margarian [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello how to convert HTML numeric string like #1394;#1377;#1378;#1377;#13 to original text ? -- Best regards, Koriun Try this: http://de.php.net/manual/de/function.html-entity-decode.php Regards, Torsten

[PHP] Re: hide elements on page based on cookie

2004-07-21 Thread Torsten Roehr
you want to check the string length of the cookie instead of its value? Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem of a beginner with Array

2004-07-21 Thread Torsten Roehr
, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: hide elements on page based on cookie

2004-07-21 Thread Torsten Roehr
want to check the string length of the cookie instead of its value? Regards, Torsten Roehr You wrote you have three states, so the three condition should be: // secure if (isset($_COOKIE['levelCookie'] $_COOKIE['levelCookie'] === 1)) { } // sales if (isset($_COOKIE['levelCookie'] $_COOKIE

Re: [PHP] Problem of a beginner with Array

2004-07-21 Thread Torsten Roehr
Henri marc [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello Torsten, try this: input name=Grid1[1] typecheckbox file://1st grid, 1st checkbox input name=Grid1[2] typecheckbox file://1st grid, 2nd checkbox... Seems I can't do another way than this. Not possible to do

[PHP] Re: URL

2004-07-21 Thread Torsten Roehr
to redirect them again... I know that are some fuctions to manage this, or not... any solucion ?? thx in advance ! Bruno Santos Hi Bruno, do a print_r($_SERVER) on the page and look out for the value/array key that fits your needs. Regards, Torsten Roehr -- PHP General Mailing List (http

[PHP] Re: how to use session?

2004-07-21 Thread Torsten Roehr
the session. Look at the user comments in the manual and search the mailing list archives. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Unable To Gain Access to phpMyAdmin Through Internet Browser

2004-07-21 Thread Torsten Roehr
) And this if you only have one database (otherwise leave blank): $cfg['Servers'][$i]['only_db'] = 'dbname';// If set to a db-name, only Of course you have got to change the values to your access values you got from your ISP. Hope it helps, Torsten Roehr -- PHP General Mailing List (http

[PHP] Re: Line breaks again....

2004-07-21 Thread Torsten Roehr
where to go from here since it's not working... Suggestions are appreciated. Thanks, Beauford You can also use chr(10) for your linebreaks. Try to str_replace() all \r\n with chr(10). Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Plain Number

2004-07-20 Thread Torsten Roehr
instead of take away items. Jeff Take a look at number_format(): http://de3.php.net/number_format Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Login Script

2004-07-20 Thread Torsten Roehr
Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Brian I am developing a members area for our website and have chosen to use session cookies. Easy stuff really. Easy - with a LOT of help from the mailing list ;) No need for Pear, downloaded files to the client PC etc.

[PHP] Re: PHP error catching....

2004-07-20 Thread Torsten Roehr
function (or static class method) and let it deal with all errors triggered by PHP: http://de2.php.net/set_error_handler Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Mixing $_POST with text in a variable

2004-07-19 Thread Torsten Roehr
. Markus Hi Markus, try putting curly braces around the POST values like {$_POST['Name']}. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Login Script

2004-07-19 Thread Torsten Roehr
id from page to page via POST (e.g. as a hidden field in a form) or GET: a href=page2.php?php= SID ?link/a I would recommend searching the mailing list archives. You will find LOADS of useful information on sessions. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net

[PHP] Re: Emtying Variables

2004-07-17 Thread Torsten Roehr
for the user via get (or store it in a session variable). Hope this helps. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem Stuffing Variable Value into an E-mail

2004-07-17 Thread Torsten Roehr
is located at: http://www.arrasresources.co.uk/pmoclinic/ Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mysql connection question

2004-07-16 Thread Torsten Roehr
. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Most used oop pattern to use for php application development?

2004-07-16 Thread Torsten Roehr
can use more than one pattern within an application (Singleton, Decorater etc.) so maybe you have to change your question ;) Here's some good resource on the topic: http://www.phppatterns.com/ Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: date difference

2004-07-15 Thread Torsten Roehr
in seconds) you can then substract/add them like normal numbers. $date = '2004-07-15 01:00:00'; $date2 = '2004-07-15 02:00:00'; $timestamp = strtotime($date); $timestamp2 = strtotime($date2); echo $timestamp2 - $timestamp1; // will output 3600 (seconds) Hope this helps. Regards, Torsten Roehr

[PHP] Re: Opinion: PHP Sessions or Cookies

2004-07-14 Thread Torsten Roehr
sessions. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Simple POP3 mailbox checker script

2004-07-14 Thread Torsten Roehr
Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Simple POP3 mailbox checker script

2004-07-14 Thread Torsten Roehr
I.A. Gray [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks- I will take a look. But (sigh) my hosting company doesn't have PEAR. Sob, sob... You can use your own copy of PEAR. Either install it locally and then upload it to your web space or just unzip the archives (packages)

[PHP] Re: MCAL Function

2004-07-14 Thread Torsten Roehr
that PHP can create on-pine calendars...? I'm looking for tutorials but no joy. Can anyone point me in the right direction...? PEAR has an excellent calendar package - if this is what you are looking for: http://pear.php.net/package/Calendar Regards, Torsten Roehr -- PHP General Mailing List

[PHP] Re: MCAL Function

2004-07-14 Thread Torsten Roehr
Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'll have a look at that Torsten, thanks. Can a user create their own entries then...? I guess you'll have to create the admin frontend/backend yourself. The package is mostly for presenting/displaying calender data. Take a

Re: [PHP] Re: Opinion: PHP Sessions or Cookies

2004-07-14 Thread Torsten Roehr
-Original Message- have you tried storing your session data in a database? Storing session data in a database has some advances over the standard file based solution, mainly data security und comfort. For example, if you want to get the number of the active sessions just do a

[PHP] Re: problem with forms

2004-07-14 Thread Torsten Roehr
are not the first one experiencing this problem: http://marc.theaimsgroup.com/?l=php-generalm=108981108604272w=2 There seems to be a general problem with PHP 5.0.0 and POST. Maybe someone should file a bug... Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: shuffle

2004-07-14 Thread Torsten Roehr
);} Problem is, I want to have the array shuffled so the rows are randomly displayed each time the user hits the page. I have tried shuffle around the @mysql_fetch_array call and $this-queryID but nothing seems to work...any ideas? Thanks, Eddie Regards, Torsten Roehr -- PHP General Mailing

Re: [PHP] shuffle

2004-07-14 Thread Torsten Roehr
Edward Peloke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] it is strange... if I do this: function nextRecord(){ $this-[EMAIL PROTECTED]($this-queryID); $test=$this-record; echo $test; $status=is_array($this-record); return ($status); } Array is echoed for $test so I

[PHP] Re: PHP and HTML Conventions

2004-07-13 Thread Torsten Roehr
extension, haven't tested it. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: unset empty elements in an array

2004-07-12 Thread Torsten Roehr
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Justin French: On 12/07/2004, at 6:38 PM, Thomas Seifert wrote: My view of internal functions is that they solve common, repetitive problems. Sure, some of those problems are quite complex, but others

[PHP] Re: Retrieving Data To Edit

2004-07-09 Thread Torsten Roehr
Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This is really confusing and I'm sure very simple to achieve. I already have values selected that I want to open and edit: $sql = SELECT * FROM RegisteredMembers WHERE UserID='$_POST[TXT_UserID]'; Hi, please put quotes

[PHP] Re: Common MySQL database function class

2004-07-08 Thread Torsten Roehr
you are looking for. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] Re: Form Submission

2004-07-07 Thread Torsten Roehr
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Torsten Roehr: How do you check which button was pressed (read: which action should be performed) when not relying on this? The button is generally *not* sent by the browser if you hit enter

[PHP] Re: PHP / Email / ActionScript

2004-07-07 Thread Torsten Roehr
. Thank you. Hi, here you'll find all control structures available in PHP (with usage examples): http://de2.php.net/manual/en/language.control-structures.php Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] Re: Form Submission

2004-07-07 Thread Torsten Roehr
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Torsten Roehr: Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Torsten Roehr: And if it did, which one does it send? If there are multiple buttons on a page, does

[PHP] Re: encode $searchenquiry

2004-07-07 Thread Torsten Roehr
=\.$searchenquiry.\ John Hi John, you are looking for htmlentities(): http://de3.php.net/htmlentities Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] Re: Form Submission

2004-07-07 Thread Torsten Roehr
Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 7 Jul 2004 10:06:25 +0200, Torsten Roehr [EMAIL PROTECTED] wrote: Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Torsten Roehr: How do you check which button

[PHP] Re: Form Submission

2004-07-06 Thread Torsten Roehr
Shaun [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, How can I check if a form has been submitted, I have seen a demo that uses the following: if(isset($HTTP_POST_VARS)) But I understand that $HTTP_POST_VARS is depricated... Thanks for your help Check the $_POST

Re: [PHP] Re: Form Submission

2004-07-06 Thread Torsten Roehr
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tuesday 06 July 2004 17:50, Torsten Roehr wrote: How can I check if a form has been submitted, I have seen a demo that uses the following: if(isset($HTTP_POST_VARS)) But I understand that $HTTP_POST_VARS

Re: Re[2]: [PHP] Re: Form Submission

2004-07-06 Thread Torsten Roehr
Richard Davey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello Jason, Tuesday, July 6, 2004, 2:37:08 PM, you wrote: JW It might not be a good idea to rely on the submit button to be set. Some JW browsers do not set/send it if you didn't explicitly click on the submit JW

Re: Re[2]: [PHP] Re: Form Submission

2004-07-06 Thread Torsten Roehr
Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 6 Jul 2004 18:15:17 +0200, Torsten Roehr [EMAIL PROTECTED] wrote: Richard Davey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello Jason, Tuesday, July 6, 2004, 2:37:08 PM, you wrote

[PHP] Re: make an image disappear when page loads

2004-07-05 Thread Torsten Roehr
data Page 2 will be shown as long as page 3 is processing the data. When page 3 has finished processing the data and started output page 2 will disappear. Is this what you are looking for? Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: quick newbie q: mysql_insert_id()

2004-07-05 Thread Torsten Roehr
, and the PEAR docs don't seem to show the same function. Please search the PEAR general mailing list archive. This question is being asked (and answered) frequently: http://marc.theaimsgroup.com/?l=pear-general Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: User Logon Procedure Fails

2004-07-04 Thread Torsten Roehr
Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Another day another problem. This time it appears that users are able to enter their details but I get a query execution error with the following section of code: /* Verify Login */ $sql = SELECT

Re: [PHP] session id changing all the time on some pc's

2004-07-03 Thread Torsten Roehr
Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 2 Jul 2004 22:45:23 + Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Torsten Roehr: Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The only thing i want to know

Re: [PHP] session id changing all the time on some pc's

2004-07-03 Thread Torsten Roehr
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] No, this is exactly what I wanted to know. But it would contradict everything I experienced with sessions until now - and it does. I just tested your code (with session_start() also at the top of page2). It does not

Re: [PHP] session id changing all the time on some pc's

2004-07-03 Thread Torsten Roehr
Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Zilvinas Saltys [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, 2 Jul 2004 22:45:23 + Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Torsten Roehr: Zilvinas Saltys [EMAIL PROTECTED

[PHP] Re: MySQL Results Not Being Commited To Database

2004-07-03 Thread Torsten Roehr
, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RE: MySQL Results Not Being Committed To Database

2004-07-03 Thread Torsten Roehr
Torsten I managed to work through it and this is the code: $NewUserID=$_POST['TXT_UserID']; $NewUserPassword=$_POST['TXT_UserPassword']; $NewUserComments=$_POST['TXT_Comments'];

Re: [PHP] RE: MySQL Results Not Being Committed To Database

2004-07-03 Thread Torsten Roehr
John W. Holmes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] $query = mysql_query($sql); $mysql_result = mysql_query ($sql, $Connection) or die (Invalid Query - . mysql_error()); You're running the query twice. Take out that first line. Michael, that's where your duplicate

Re: [PHP] HTTP_AUTHORIZATION question

2004-07-02 Thread Torsten Roehr
://pear.php.net/package/HTTP_Download Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Reference Scripts: Imaging Database, Recursion, Age Validation, Reg Ex

2004-07-02 Thread Torsten Roehr
?name=Forumsfile=viewtopict=13 They all have working demos except for the Imaging Database stuff. Hope these can help somebody. Plan to be adding more soon. Thanks Jason for sharing your code with us. Greatly appreciated! Torsten Roehr -- PHP General Mailing List (http://www.php.net

[PHP] Re: Uploading multiple files

2004-07-02 Thread Torsten Roehr
using 2 files of 246K each. Where do you think the problem might lay? Thank you, Gennaro Losappio How do you know you are getting upload attacks? Any symptoms? Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
having weird cookie settings in their browser. Cookies are fine for intranets where you know the infrastructure you are dealing with. Passing the session id via GET/POST may be ugly but makes you independent of the browser's cookie settings. Regards, Torsten Roehr -- PHP General Mailing List (http

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
/POST may be ugly but makes you independent of the browser's cookie settings. Regards, Torsten Roehr I can agree with this. I created an internal website for my company that requires login. And even then some users a restricted to certain areas of the website depending on their user level

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Instead of passing the session_id through the URL ($_GET) just assign it to $_SESSION and pass that around. Then it'll stay transparent to the user. Could you describe the last paragraph a bit more in detail? Thanks

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Instead of passing the session_id through the URL ($_GET) just assign it to $_SESSION and pass that around. Then it'll stay transparent to the

Re: [PHP] session id changing all the time on some pc's

2004-07-02 Thread Torsten Roehr
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The $_SESSION['sid'] will follow from page to page. As long as the user stays in the current session, all $_SESSION variables will follow from page to page as long as session_start() is used. OK, but HOW do you manage

[PHP] Re: Converting strings to match multiple charsets

2004-07-01 Thread Torsten Roehr
Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] yep, as i said it was displayed correctly everywhere expect in the forms oh i might mention - Mozilla worked well but IE destroyed the data (only in textareas) Do you run the utf8 decoded data through htmlentities()? What

[PHP] Re: Help ASAP

2004-07-01 Thread Torsten Roehr
Syed Ghouse [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All Will anybody tell me how to execute a shell script thru php and how to create a unix user thru php Thanks in advance Regards Syed Take a look here: http://de.php.net/function.shell-exec Regards, Torsten Roehr

[PHP] Re: Redirecting a user

2004-07-01 Thread Torsten Roehr
Shaun [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, Please could someone tell me how I can redirect a user to the page they came from including any query strings attached to the URL? header('location: ' . $_SERVER['REQUEST_URI']); exit; Regards, Torsten Roehr -- PHP General

[PHP] Re: I'm very curious about the object-orientated thingies in PHP 5.....

2004-07-01 Thread Torsten Roehr
way, not both way? Hi Scott, a bit of self-research shouldn't be too hard: http://zend.com/php5/index.php Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Torsten Roehr
. escape POST data and insert into DB again Hope this helps. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Torsten Roehr
Justin Patrin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 30 Jun 2004 19:02:50 +0200, Torsten Roehr [EMAIL PROTECTED] wrote: Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using data that goes from the HTML textbox to PHP to MYSQL

Re: [PHP] Re: How to escape apostrophe in HTML textbox exactly???

2004-06-30 Thread Torsten Roehr
Chris W. Parker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]01.ati.local... Torsten Roehr mailto:[EMAIL PROTECTED] on Wednesday, June 30, 2004 10:03 AM said: 1. get data from DB 2. convert for valid HTML output (stripslashes(), htmlentities()) 3. output as HTML (into the form

[PHP] Re: Converting strings to match multiple charsets

2004-06-30 Thread Torsten Roehr
.php.net/manual/en/function.html-entity-decode.php Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Converting strings to match multiple charsets

2004-06-30 Thread Torsten Roehr
Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [...] Can't you use utf8_decode() to display the utf8 encoded data? [...] The displayed data worked out fine for some languages but others didn't and even simple german chars like äöü won't show up correctly within a

Re: [PHP] Is PEAR worth the effort?

2004-06-30 Thread Torsten Roehr
it a try, you will not regret it. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Converting strings to match multiple charsets

2004-06-30 Thread Torsten Roehr
Red Wingate [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [] Hi Red, I'm actually working on a project as well at the moment that uses utf8 data in MySQL. All chars should be OK when output with utf8_decode(). Do the chars only look wrong within textarea or also outside

[PHP] Re: Send a page using mail()

2004-06-28 Thread Torsten Roehr
Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: clearing font tags

2004-06-28 Thread Torsten Roehr
appreciated Hi Chris, take a look at strip_tags(): http://de2.php.net/manual/en/function.strip-tags.php You can define which tags should NOT be stripped from the supplied string. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: Date Diff function

2004-06-28 Thread Torsten Roehr
regards, Hi Richard, take a look at PEAR's Date package: http://pear.php.net/package/Date Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mail program

2004-06-28 Thread Torsten Roehr
://marc.theaimsgroup.com/?l=php-general This question is being asked (and answered) frequently. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OOP, Classes, Sharing Code

2004-06-28 Thread Torsten Roehr
{ var $photoID; var $albumID; var $name; } Just my 2c. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Concatenate PHP code into a string

2004-06-28 Thread Torsten Roehr
INTO table SET '; $set = ''; foreach ($values as $column = $value) { $set .= (empty($set)) ? $column = '$value' : , $column = '$value'; } $query .= $set; ... Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Works in Mozilla, not in IE

2004-06-28 Thread Torsten Roehr
/HTTP_Download Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] This weird behavior is killing

2004-06-18 Thread Torsten Roehr
'; include_once DIR_INCLUDE . 'file2.php'; HTH, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] in data

2004-06-18 Thread Torsten Roehr
have all encountered it. You need to escape the character and other characters as well. Start here http://www.php.net/addslashes The manual is your friend Another way is to convert the quotes to quot; because this is the proper character for HTML output. Regards, Torsten Roehr -- PHP General

[PHP] Re: PDF Templates with PHP

2004-06-17 Thread Torsten Roehr
with get_file_contents() or fopen() and replace the placeholders with their values with str_replace(). Hope it helps. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unexpected behaviuor with __CLASS__

2004-06-16 Thread Torsten Roehr
case test2. Any ideas? Thanks and best regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Sending email with php

2004-06-16 Thread Torsten Roehr
Phpu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, How can i send email in php usig the smtp server? I'm looking for a tutorial or a good script. Take a look at PEAR's Mail package: http://pear.php.net/package/Mail Regards, Torsten Roehr -- PHP General Mailing List (http

Re: [PHP] Unexpected behaviuor with __CLASS__

2004-06-16 Thread Torsten Roehr
Robin Vickery [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wed, 16 Jun 2004 11:49:31 +0200, Torsten Roehr [EMAIL PROTECTED] wrote: Hi list, on RedHat with PHP 4.3.6 the following code produces 'test' - I'm expecting 'test2': class test { function printClass

[PHP] Re: PHP MySQL DATE comparison

2004-06-16 Thread Torsten Roehr
it to a timestamp via strtotime() and check it against time(): $date = strtotime($dateFromDb); if ($date time()) { echo 'Date is in the past.'; } Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Value in URL issue

2004-06-16 Thread Torsten Roehr
it via $_GET['page']. You can always do a print_r($_REQUEST) to see which variables are available. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: referencing an existing object

2004-06-15 Thread Torsten Roehr
($sql); } } But this is a case of personal preference. Best regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Unit Testing

2004-06-15 Thread Torsten Roehr
on PHP Unit testing in general? Don't have any experience myself but here's a nice article by Harry about SimpleTest: http://www.sitepoint.com/blog-post-view.php?id=175190 Hope it helps. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: referencing an existing object

2004-06-15 Thread Torsten Roehr
I would suggest something like this: class myotherclass { var $db function myotherclass($db){ $this-db = $db; $sql=select * from mytable; $this-db-dosql($sql); } } $db = new mydbclass(); $other = new myotherclass($db); I would also

[PHP] Re: Excel files with multiple sheets

2004-06-15 Thread Torsten Roehr
, but was looking for something a little more powerful before I try to create my own. No sense in re-inventing the wheel... Hi Robert, have you looked at PEAR's Spreadsheet_Excel_Writer?: http://pear.php.net/package/Spreadsheet_Excel_Writer Regards, Torsten Roehr -- PHP General Mailing List (http

[PHP] Re: converting a char variable to an int?

2004-06-14 Thread Torsten Roehr
/UPDATE statement? Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Load 2 Frames (possibly OT)

2004-06-14 Thread Torsten Roehr
'; Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Password protected downloads

2004-06-13 Thread Torsten Roehr
/HTTP_Download Hope this helps. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Limit number of characters in a string

2004-06-11 Thread Torsten Roehr
://de2.php.net/manual/en/function.substr.php Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: passing a function as a parameter

2004-06-11 Thread Torsten Roehr
Bob Lockie [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I want to pass a function as a parameter and execute it in another function. A callback. :-) For example: function a() { echo a; } function b( $func ) { func(); echo b; } The output of b( a ) will

[PHP] Re: nested statement problem

2004-06-11 Thread Torsten Roehr
and manually checked them? By the way, you don't need braces around each condition: if (($fr == 'FR') ($xe == 'XE') ($co == 'CO')) {} works also as: if ($fr == 'FR' $xe == 'XE' $co == 'CO') {} Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: addslashes

2004-06-11 Thread Torsten Roehr
/addslashes Pay attention to the notes on magic_quotes. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Expedia.com

2004-06-09 Thread Torsten Roehr
form to page 2 page 2: load screen (don't start processing), forward search keywords to page 3 page 3: start processing I hope you get my point. Regards, Torsten Roehr René fournier [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When Expedia.com is searching for flights, it displays

[PHP] Re: Undefined index ???

2004-06-09 Thread Torsten Roehr
Michael Jonsson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Why do I get an error if the $_SESSION['user_status'] is NULL ??? Script## session_start(); echo $_SESSION['user_status']; #error## Notice: Undefined index: user_status in

[PHP] Re: Refresh a frame?

2004-06-09 Thread Torsten Roehr
: parent.myFrame.location.href = 'index.html'; Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Refresh a frame?

2004-06-09 Thread Torsten Roehr
the location: URL for the full page, but how do I do it for JUST a single page? More a JavaScript than a PHP question, but anyway: parent.frames[0].location.href = 'index.html'; I think you can also use the frame name: parent.myFrame.location.href = 'index.html'; Regards, Torsten Roehr

<    1   2   3   4   >