Re: [PHP] download php

2003-07-10 Thread Daniel J. Rychlik
You should also store passwords in a non-readable to the world directory. -Dan - Original Message - From: "Marek Kilimajer" <[EMAIL PROTECTED]> To: "Mantas Kriauciunas" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, July 10, 2003 5:01 AM Subject: Re: [PHP] download php >

Re: [PHP] PHP and Macromedia Flash

2003-06-28 Thread Daniel J. Rychlik
: "Daniel J. Rychlik" <[EMAIL PROTECTED]> To: "Daniel J. Rychlik" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, June 28, 2003 7:26 PM Subject: Re: [PHP] PHP and Macromedia Flash > Anyone have any experience with PHPObject

Re: [PHP] PHP and Macromedia Flash

2003-06-28 Thread Daniel J. Rychlik
Anyone have any experience with PHPObject from http://ghostwire.com/resources/phpobject/ - Original Message - From: "Daniel J. Rychlik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, June 28, 2003 6:13 PM Subject: Re: [P

Re: [PHP] PHP and Macromedia Flash

2003-06-28 Thread Daniel J. Rychlik
Combe" <[EMAIL PROTECTED]> To: "Daniel J. Rychlik" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, June 28, 2003 6:09 PM Subject: Re: [PHP] PHP and Macromedia Flash > On Sun, 2003-06-29 at 00:00, Daniel J. Rychlik wrote: > > Does anyone know

[PHP] PHP and Macromedia Flash

2003-06-28 Thread Daniel J. Rychlik
Does anyone know if you can dynamically update a flash swf file with a PHP script ? For instance in menu navigation I was thinking of using a flash object to display an interactive menu and have in my main class a way to update the links or buttons from page to page. Thanks in advance, Dan

Re: [PHP] Another newbie

2003-06-28 Thread Daniel J. Rychlik
Take a close look at OO programming. Class objects are great for reusing code and making cleaner code. The art of designing code is a mastered art which is why my white board is always messy ;) . Never the less, oject oriented programming is definately the way to go. Chapter 6 in the PHP and My

Re: [PHP] Newbie and learning

2003-06-27 Thread Daniel J. Rychlik
PHP is, arguably, the better way to go when developing an ecomm solution. This list is full of very intelligent programmers that will help or direct you to the proper documentation. If you use $_GET you will be able to pass value pairs in the url. Make sure that in your data check script that you

[PHP] Array Dump

2003-06-27 Thread Daniel J. Rychlik
Hmm, I just noticed that array dump counts the number of charaters and white space and lables that number string... What function name is that ? The string counter I mean ? -Dan

[PHP] Zend Studio and DreamWeaver MX

2003-06-27 Thread Daniel J. Rychlik
Hey guys, Which is a better environment to write PHP code in? Zend or Dreamweaver ? Does zend provide a WYSIWYG for putting together a web page ? -Dan

Re: [PHP] Passing Array to object

2003-06-25 Thread Daniel J. Rychlik
And thats why Chris is the man. Your're right it doesnt look pretty but it works. If I come up with another solution I will email it out. Thanks again, Daniel - Original Message - From: "Chris Sherwood" <[EMAIL PROTECTED]> To: "Daniel J. Rychlik" <[EM

Re: [PHP] Passing Array to object

2003-06-25 Thread Daniel J. Rychlik
e the output as expected. For some reason its still giving me the warning. hmmm.. Ive tried everything that was suggested. I think I need to go back and take another look at OO programming in php. - Original Message - From: "Chris Sherwood" <[EMAIL PROTECTED]> T

Re: [PHP] Passing Array to object

2003-06-25 Thread Daniel J. Rychlik
wont work... I even try assigning $links to the array. - Original Message - From: "Daniel J. Rychlik" <[EMAIL PROTECTED]> To: "Chris Sherwood" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, June 25, 2003 1:08 PM Subject: Re: [PHP] Pas

Re: [PHP] Passing Array to object

2003-06-25 Thread Daniel J. Rychlik
yea, I gave that a shot, Same message. Logically it makes sense, but php doesnt like it. by the way, thanks for your help Chris. You've helped me in the past. -Daniel - Original Message - From: "Chris Sherwood" <[EMAIL PROTECTED]> To: "Daniel J. Rychlik&quo

[PHP] Passing Array to object

2003-06-25 Thread Daniel J. Rychlik
Hello, I am developing a site that uses classes to reuse code and objects. I have in my main class a function SetLinks($newlinks) { $this->links = $newlinks; } And another function that displays them in the same class main { I have another file called index.php that basically just pa

Re: [PHP] isset()

2003-06-14 Thread Daniel J. Rychlik
Its returning true when value is entered or when its not and placing a nice 1 in every field of my form. Im thinking $output_fname = isset($HTTP_POST_VARS['fname']) ? $HTTP_POST_VARS['fname'] is the answer and ive tried for several hours to fix it. -dan ----- Original Message

[PHP] isset()

2003-06-14 Thread Daniel J. Rychlik
Having a bit of trouble with my forms returnin 1 in the form fields accept the data that was entered. I think its because of this line, $output_fname = isset($HTTP_POST_VARS['fname']); I have a command action handler also that works in the same script and it seems to work well, the only pr

Re: [PHP] $command actions

2003-06-14 Thread Daniel J. Rychlik
It worked! thanks so much. I did however place another ( on the second $HTTP_POST_ to make it function with out error. Appreciate your time! dan - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "Daniel J. Rychlik" <[EMAIL PROTECTED]&

Re: [PHP] $command actions

2003-06-14 Thread Daniel J. Rychlik
I recieved a unexpected T_LOGICAL_AND, expecting ',' or ')'; - Original Message - From: "Leif K-Brooks" <[EMAIL PROTECTED]> To: "Daniel J. Rychlik" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, June 14, 2003

[PHP] $command actions

2003-06-14 Thread Daniel J. Rychlik
I have a line of code in my form that I am trying to get to work. $action = ($HTTP_POST_VARS['action'] == "data_input") ? "check" : "display"; I recieved undefined action when running. So I did this. $command = isset($HTTP_VARS['action'] == "data_input") ? "check" : "display"; I recieve unex

Re: [PHP] $_SESSION as $key=>$value

2003-06-13 Thread Daniel J. Rychlik
I tried to echo it as well, I recieved the same message. - Original Message - From: "Ralph" <[EMAIL PROTECTED]> To: "'Daniel J. Rychlik'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, June 13, 2003 6:50 PM Subject: RE: [PHP] $

Re: [PHP] $_SESSION as $key=>$value

2003-06-13 Thread Daniel J. Rychlik
here http://www.zend.com/zend/spotlight/form-pro-php4.php and I recieved the same message. Any Ideas, to help me break through these barriers? Thanks so much Dan - Original Message - From: "Ralph" <[EMAIL PROTECTED]> To: "'Daniel J. Rychlik'" &l

[PHP] $_SESSION as $key=>$value

2003-06-12 Thread Daniel J. Rychlik
Is this valid to iterate over a form variables.? foreach ($_SESSION as $key=>$value) and another question, do I need this in my form? Im really struggling with $_SESSION. Im trying to program smarter and make friendlier applications. Ive submitted several emails dealing with this func

[PHP] session_start questions.

2003-06-06 Thread Daniel J. Rychlik
Questions, Questions, Questions. Where do I start in understanding how this function works. Ive read the document multiple times, and I am having a bit of trouble figuring out how this function works. I know that you can take session data and hold it somewhere for a user and use that data

Re: [PHP] Passing values back to form

2003-06-06 Thread Daniel J. Rychlik
Thanks so much for your time. These are great tips, thanks again. - Original Message - From: "Kevin Stone" <[EMAIL PROTECTED]> To: "Daniel J. Rychlik" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, June 05, 2003 12:37 PM Subject: Re: [P

[PHP] Passing values back to form

2003-06-06 Thread Daniel J. Rychlik
Im new to PHP coming from a background in perl devlopement. I have a form that a user can fill out. On submit the values are iterated over a foreach to check for empty(). If the an emtyp $key is found then it passes an error string to my error function. I have 2 php files, one that is the

Re: [PHP] header function problem

2003-06-06 Thread Daniel J. Rychlik
> To: <[EMAIL PROTECTED]> Sent: Thursday, June 05, 2003 1:01 AM Subject: Re: [PHP] header function problem > On Thursday 05 June 2003 07:01, Daniel J. Rychlik wrote: > > Well, it works if I use the full path instead of relative So obviously > > its an apache permissions

Re: [PHP] header function problem

2003-06-05 Thread Daniel J. Rychlik
Well, it works if I use the full path instead of relative So obviously its an apache permissions issue. - Original Message - From: "Daniel J. Rychlik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 04, 2003 5:36 PM Subject: [PHP] header f

[PHP] header function problem

2003-06-05 Thread Daniel J. Rychlik
I am using a header function to take a user back to a form if they have mistyped or entered in data that is not desirable. I have multiple functions that Ive written but the one that pertains to this situation is listed function check_data () { if (!empty($value)) { go_ba

Re: [PHP] insert loop logic

2003-06-05 Thread Daniel J. Rychlik
perhaps, a foreach loop and use the empty () function. Thats how I did it. - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 03, 2003 5:24 PM Subject: [PHP] insert loop logic > Hi, > Can you tell me whats the best way of doing this plea

Re: [PHP] Calling HTML pages

2003-06-05 Thread Daniel J. Rychlik
; Sent: Wednesday, June 04, 2003 4:19 PM > To: Daniel J. Rychlik; [EMAIL PROTECTED] > Subject: RE: [PHP] Calling HTML pages > > > [snip] > > I was looking for a function that will take you to a html page. For > instance. > > I have a function that checks for !empty values

[PHP] Calling HTML pages

2003-06-05 Thread Daniel J. Rychlik
I was looking for a function that will take you to a html page. For instance. I have a function that checks for !empty values in $_POST; What I would like to do is if the field is empty then go back to the form. I have a function function display_error ($err) { echo $err; # I need to

Re: [PHP] regex problem

2003-06-01 Thread Daniel J. Rychlik
If I wanted to remove tags from my form as well as tags, would I use a preg_match function or is their another simple funtion that does this ? -Dan - Original Message - From: "Jim Lucas" <[EMAIL PROTECTED]> To: "Daniel J. Rychlik" <[EMAIL PROTECTE

Re: [PHP] Re: regex problem

2003-06-01 Thread Daniel J. Rychlik
x27;t be found > anywhere in that string. > > If you want the entire string to be tested for digits, you need to add the > length of the string to the regex pattern: > > $length = strlen($data); > preg_match("[0-9]{$length}", $data); > > Monty > >

[PHP] regex problem

2003-06-01 Thread Daniel J. Rychlik
Hello,, I have a preg_match issue matching numbers. I am currently using !preg_match ('/([0-9\-\.\#:])/', $_POST['nums1'] throw error[] This fails if you use something like ' asdf ' but if you use ' asdf789 ' it passes false and does not throw an error. This is not the obvious solution.

Re: [PHP] preg_match array question

2003-05-31 Thread Daniel J. Rychlik
- Original Message - From: "Ralph" <[EMAIL PROTECTED]> To: "'Daniel J. Rychlik'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, May 30, 2003 4:41 PM Subject: RE: [PHP] preg_match array question > foreach ($_POST as $key=>$value) { &

Re: [PHP] preg_match array question

2003-05-31 Thread Daniel J. Rychlik
End Foreach - Original Message - From: "Ralph" <[EMAIL PROTECTED]> To: "'Daniel J. Rychlik'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, May 30, 2003 2:42 PM Subject: RE: [PHP] preg_match array question > Not sure if I&#

Re: [PHP] preg_match array question

2003-05-31 Thread Daniel J. Rychlik
The problem is, that I have multiple fields and what I am trying to do is check each field to make sure I get the data that I need and not some crap, like letters in a number field or a

[PHP] preg_match array question

2003-05-31 Thread Daniel J. Rychlik
Hey, Im trying to use preg_match to validate numbers in multiple fields. I can check one field but Im having trouble checking multiple fields. preg_match ( '(foo)' , $_POST["num1"] ); <- That works fine. but I need to check multiple fields. I thought I would build an array with the POST

[PHP] A good function

2003-05-30 Thread Daniel J. Rychlik
What is a good function for striping white space and removing \\..\.. and possible "," Anything that would be considered unwanted user input??? I looked at trim() but its doesnt do all the things I need it to do. -Dan