[PHP] Automatic Form Generation with PHP

2002-09-25 Thread debbie_dyer
Hi We are shortly to release the next version of Form Generator Pro (automatic generation of HTML form/PHP processing code) and are looking for some comments on the way in which we intend to make the software available. Due to the fact that we cannot distribute this PHP application without com

Re: [PHP] Getting a mysql set info

2002-09-25 Thread debbie_dyer
You need to use SHOW COLUMNS FROM table LIKE 'yoursetfieldname' You can then retrieve the values from the ["Type"] column which will look like - set('val1','val2'...etc) - you will need to parse this string Debbie - Original Message - From: "Henry" <[EMAIL PROTECTED]> To: <[EMAIL PROTEC

Re: [PHP] Re: Automatic Form Generation with PHP

2002-09-25 Thread debbie_dyer
Wednesday, September 25, 2002 10:05 AM Subject: [PHP] Re: Automatic Form Generation with PHP > Hi Debbie, > > What are you going to do about customers who don't have PHP? To run the > field definition extractor part of the system. > > Henry > > > > > "Deb

Re: [PHP] Re: Automatic Form Generation with PHP

2002-09-25 Thread debbie_dyer
part to gain access to the > database structure if not the actual data. > > Henry. > > "Debbie_dyer" <[EMAIL PROTECTED]> wrote in message > 00f501c26476$49fcd4a0$19153c3e@homepc">news:00f501c26476$49fcd4a0$19153c3e@homepc... > > Hi Henry > > &g

Re: [PHP] slashes added before '

2002-09-25 Thread debbie_dyer
You probably have magic_quotes_gpc in php.ini off on your Windows platform and on on your Linux platform Magic_quotes_gpc automatically applies addslashes to POST, GET and cookie data if its on. Use stripslashes to remove it or to write code thats portable - write a function like:- function str

Re: [PHP] Displaying full array contents

2002-09-26 Thread debbie_dyer
You could use recursion example:- function printArray($arr) { for ($i =0; $i < count($arr); $i++) { if (!is_array($arr[$i])) { echo $arr[$i]; } else { printArray($arr[$i]); } } } $arr = array("Orange", "Peach", "Apple"); $arr2 = array("Banana"

Re: [PHP] Displaying full array contents

2002-09-26 Thread debbie_dyer
of how deep into an array I am. It should be fairly simple, but I > seem to be having a brain freeze. > > Brad > > > > Debbie_dyer wrote: > > > You could use recursion example:- > > > > function printArray($arr) { > > for ($i =0;

Re: [PHP] Session

2002-09-26 Thread debbie_dyer
PHP is automatically rewriting the URLs for the tags specified in url_rewriter.tags (php.ini) because the session cookie has not been accepted. I found it best to remove these tags and append the SID manually to the URLs that need it for when cookies are off - else SIDs can get appended where you

Re: [PHP] Displaying full array contents

2002-09-26 Thread debbie_dyer
eptember 26, 2002 9:17 PM Subject: Re: [PHP] Displaying full array contents > print_r($array); simply print out the entire array.. > It cant be easier. > > "Debbie_dyer" <[EMAIL PROTECTED]> wrote in message > 01bf01c26598$1d84ec00$0100a8c0@homepc">news:01bf0

Re: [PHP] Getting part of a string

2002-09-27 Thread debbie_dyer
I'm not an expert on regex but this seems to work:- ereg("^/[^/]*/([^/]*)/.*$", "/realtor/Remax/Ed/files/", $regs); if (isset($regs[1])) { print $regs[1]; } Debbie - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, September 27, 2002 4:23 PM Su

Re: [PHP] Multiple Domains in cookie?

2002-09-28 Thread debbie_dyer
Is this because you have domain aliases? Debbie - Original Message - From: "Tony Harrison" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 28, 2002 10:25 AM Subject: [PHP] Multiple Domains in cookie? > Is it possible to specify more than 1 domain in a cookie? > -

Re: [PHP] Posting a value to one form to another

2002-09-28 Thread debbie_dyer
Must be a register globals problem again - php.ini (register_globals) - on for linux off for windows. You should keep it switched off (or at least code for it being off) and use the superglobal arrays $_POST, $_GET etc Debbie - Original Message - From: "Uma Shankari T." <[EMAIL PROTECTE

Re: [PHP] headers?

2002-09-28 Thread debbie_dyer
It's giving you this error because you are sending the headers after outputting something (which could be just a blank line) - check in your functions.php that you dont have any blank lines before the start of or after the end of your script. ie. before the Debbie - Original Message - F

Re: Re[2]: [PHP] counting words in a string

2002-09-28 Thread debbie_dyer
You can get all the terms into an array using preg_match_all:- $str = "UNAVAILABLE More Info AVAILABLE More Info"; $regExp = "/(?:UN)?AVAILABLE|More Info/"; preg_match_all($regExp, $str, $regs); $regs[0] will contain the matched terms - you should then be able to use array functions to do whatev

Re: [PHP] Member's Area Script

2002-09-28 Thread debbie_dyer
$conn = $main; <- that line is the problem - you cant use global vars inside functions without declaring them as global - Original Message - From: "Stephen Craton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 28, 2002 11:49 PM Subject: [PHP] Member's Area Scrip

Re: [PHP] Session Not Saving?

2002-09-29 Thread debbie_dyer
Are you calling session_start() on the other pages inside the secure area? - Original Message - From: "Stephen Craton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 29, 2002 5:23 PM Subject: [PHP] Session Not Saving? > I'm having another problem with my member's a

Re: [PHP] calling session_start()

2002-09-29 Thread debbie_dyer
session_start() has to be called on every page where you want to use the session, before you try referencing it - you also have to call it before outputting anything else (you must be doing it after and this is what is causing your error) - Original Message - From: "Børge Strand" <[EMAIL

Re: [PHP] Not Displaying From Vars??

2002-09-29 Thread debbie_dyer
Yeah got to be register_globals and also a tip to save future problems if you are working with forms and u want to redisplay submitted data you will need to learn about stripslashes (if you have magic_quotes_gpc on) and htmlspecialchars. And for the db additions addslashes (for if magic_quotes_gp

Re: [PHP] Not Displaying From Vars??

2002-09-29 Thread debbie_dyer
data) and use the superglobals $_POST, $_GET, etc to access your data instead. - Original Message - From: "Stephen Craton" <[EMAIL PROTECTED]> To: "'debbie_dyer'" <[EMAIL PROTECTED]> Sent: Sunday, September 29, 2002 7:29 PM Subject: RE: [PHP] Not Disp

Re: [PHP] OT-best PDF creation tool

2002-09-29 Thread debbie_dyer
hey! you cant say hey guys these days - there are females in the industry too u know :) - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, September 29, 2002 7:40 PM Subject: [PHP] OT-best PDF creation tool Hey guys, I know this is totally off

Re: [PHP] hash function secret

2002-09-29 Thread debbie_dyer
I don't see how it could be randomly generated else how would you be able to use it for authenticating etc but then I'm not a security expert. I use a long character string known only to me and stored outside my web directory. Maybe other ppl do differently I don't know. - Original Message -

[PHP] Re: Debbie->Re: [PHP] OT-best PDF creation tool

2002-09-29 Thread debbie_dyer
ROTECTED]> To: "debbie_dyer" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, September 29, 2002 7:59 PM Subject: Debbie->Re: [PHP] OT-best PDF creation tool > Hey Debbie, > thanks for writing, > > Sorry, no offense meant but I call all my pals guys. &g

Re: [PHP] Not Displaying From Vars??

2002-09-29 Thread debbie_dyer
Wheres the form tag? - Original Message - From: "Stephen Craton" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, September 29, 2002 8:19 PM Subject: RE: [PHP] Not Displaying From Vars?? > Here's the part that's supposed to display the information. I've on

Re: [PHP] Not Displaying From Vars??

2002-09-29 Thread debbie_dyer
e to error and in my opinion anything that makes it easy to write bad code cannot be good. Debbie - Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: "debbie_dyer" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, September 29, 200

[PHP] mail headers & mail filtering

2002-09-30 Thread debbie_dyer
More and more emails seem to be getting blocked by mail filtering systems looking for spam (but trashing legitimate mail at the same time). Does anyone have any tips for ensuring mails get through these systems (with regard to headers) or do we just have to accept now that email can no longer b

Re: [PHP] mail headers & mail filtering

2002-10-01 Thread debbie_dyer
ering policy and if they do what is it. Debbie - Original Message - From: "Tom Rogers" <[EMAIL PROTECTED]> To: "debbie_dyer" <[EMAIL PROTECTED]> Sent: Tuesday, October 01, 2002 2:13 AM Subject: Re: [PHP] mail headers & mail filtering > Hi, > >