Re: [PHP] Text area with an echo command

2003-10-17 Thread Will
Eugene, Thank You much :) I really appreciate it!!! Will PS: I am curious on other guys and gals would do this code. Eugene Lee wrote: On Sat, Oct 18, 2003 at 01:27:05AM -0400, Will wrote: : : Thanks for the code but it comes up a parse error. I know I am new, but : this is driving me cr

Re: [PHP] Text area with an echo command

2003-10-17 Thread Eugene Lee
On Sat, Oct 18, 2003 at 01:27:05AM -0400, Will wrote: : : Thanks for the code but it comes up a parse error. I know I am new, but : this is driving me crazy!!! :( : Here is the code that I am working with: : : $display_block = " : : : : : : : ||Cage No.: $care_id | Common Name: : $common

[PHP] Re: File attachment to mail() doesn't work....

2003-10-17 Thread Manuel Lemos
Hello, On 10/17/2003 08:13 PM, Scott Fletcher wrote: I already whipped up the script to get the PHP mail() to send an email with body text, along with the file attachment. Still haven't got this to work right. If I omit out the attachment feature then the mail() work successfully and I recei

[PHP] Re: SQL injection

2003-10-17 Thread Manuel Lemos
Hello, On 10/17/2003 12:15 AM, Yann Larrivee wrote: Hi i read many thing on sql injection but i just cant sumarize all the information. Most site (PHPadvisory.com, phpsecure.info, other found on google) dont talk to mutch on how to prevent SQL injection. At some place, they mentionned having a bad

[PHP] Re: PHP Class ArrayQueue

2003-10-17 Thread Manuel Lemos
Hello, On 10/16/2003 09:26 AM, Antonio Bologna wrote: Hello everyone, I'm just curious, I implemented a Array Queue in php, but not sure why is not working, this ArrayQueue is missing some functions like doubleQueue and dequeue, but anyway I'm trying to implmeneted in php, does anyone knows what's

Re: [PHP] Text area with an echo command

2003-10-17 Thread Will
Thanks for the code but it comes up a parse error. I know I am new, but this is driving me crazy!!! :( Here is the code that I am working with: $display_block = " ||Cage No.: $care_id | Common Name: $common|| Date: echo "Notes:\n " . htmlentities($notes) . "\n"; "; I know it does not

[PHP] Re: generating nested xml from mysql

2003-10-17 Thread Manuel Lemos
Hello, On 10/16/2003 05:33 AM, [EMAIL PROTECTED] wrote: Hi there i am having a problem generating nested xml from mysql My class is ok with one loop. But there is a problem when i want to do a query and within that loop result do another query. More specifically i want my xml to look like this.

[PHP] Re: What's a good regex to validate an email address? ;)

2003-10-17 Thread Manuel Lemos
Hello, On 10/16/2003 02:29 AM, John W. Holmes wrote: Heh... I was adding a note to the PHP Manual and I thought it was really funny they had to include this note in the "rules": (And if you're posting an example of validating email addresses, please don't bother. Your example is almost certain

Re: [PHP] Text area with an echo command

2003-10-17 Thread Eugene Lee
On Sat, Oct 18, 2003 at 12:24:44AM -0400, Will wrote: : : John W. Holmes wrote: : : >Will wrote: : > : >>I have a question on echoing text from a database into a form. The : >>database is populated but it does not show up in the modify script : >>page. Can someone help me?? : >> : >>Here is the

Re: [PHP] Text area with an echo command

2003-10-17 Thread Will
John, I have that script: $sql = "UPDATE $table_name5 SET care_id = '$_POST[care_id]', date = '$_POST[date]', common = '$_POST[common]', notes = '$_POST[notes]' WHERE notes_id ='$_POST[notes_id]'"; $result = @mysql_query($sql,$conn) or die(mysql_error()); header("Location:

Re: [PHP] Text area with an echo command

2003-10-17 Thread John Nichel
Will wrote: That worked great!! But how do I get the info from the modify script back into the database?? With that code: $value It does not populated the database with the new text that was modified. Is there another way to do it?? I am learning PHP on my own so bare with me. Will You'll

Re: [PHP] Error Handling

2003-10-17 Thread Robert Cummings
On Sat, 2003-10-18 at 00:07, Frank Tudor wrote: > Interjinn looks great but my development box is a windows me > machine with easyphp (globals turned off) How am I supposes to > get this stuff to work. I actually just unzipped it to my www > dir and it has been sitting there the whole day. > > a

Re: [PHP] Error Handling

2003-10-17 Thread Greg Beaver
Frank, http://pear.php.net/HTML_QuickForm It's that easy. There are full docs accessible from the page listed above. Average time from download to output of your first form with validation: 30 minutes to 1 hour. Tops. Regards, Greg Frank Tudor wrote: I would really be interested in quickfo

Re: [PHP] Text area with an echo command

2003-10-17 Thread Will
That worked great!! But how do I get the info from the modify script back into the database?? With that code: $value It does not populated the database with the new text that was modified. Is there another way to do it?? I am learning PHP on my own so bare with me. Will John W. Holmes wro

Re: [PHP] Error Handling

2003-10-17 Thread Frank Tudor
Interjinn looks great but my development box is a windows me machine with easyphp (globals turned off) How am I supposes to get this stuff to work. I actually just unzipped it to my www dir and it has been sitting there the whole day. and I still have my vailidation (form handling) problem. I w

Re: [PHP] Error Handling

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 23:14, John Nichel wrote: > > I had InterJinn Simonize my car this morning. :) Hmm, that's an odd word to use... I hope your car enjoyed its simonizing. But don't let it get carried away :) Cheers, Rob -- .. | Int

Re: [PHP] Question on references and writing a PHP extension..

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 22:04, Philip Hallstrom wrote: > Hi - > I'm just getting into writing my own PHP extension and have a > question I can't find the answer to. > Not to be picky, but this group is developing with PHP, not generally developing for PHP :) Try the PECL group at: [EMAIL PROT

Re: [PHP] Error Handling

2003-10-17 Thread John Nichel
John W. Holmes wrote: Robert Cummings wrote: "Error Handling"?? Do you mean form validation? InterJinn does form validation and allows custom validators for any kind of form field. I believe PEAR's Quickform can also do similar. I'm thinking about getting a vasectomy; what does InterJinn recomme

Re: [PHP] SQL Query OT question for the experts :)

2003-10-17 Thread Nicholas Robinson
The following works in MySQL, but obviously (and unlike your client!) you'll want to do this on a copy of the table first... update londonhotelsallphotos set Number = ( if (@hi != HotelID, @line := 1, @line := @line + 1)), HotelID = (@hi := HotelID) Note that if you run this query more than onc

Re: [PHP] Text area with an echo command

2003-10-17 Thread John W. Holmes
Will wrote: I have a question on echoing text from a database into a form. The database is populated but it does not show up in the modify script page. Can someone help me?? Here is the code that I am using: Notes: There is no "value" attribute for a textarea... $value -- ---John Holmes...

[PHP] RE: [PHP-WIN] Re: $_POST in MySQL query issue...

2003-10-17 Thread Socheat
Dear all , Could anyone help me to use crypt() function on window system ? , I want to use all libraries that currently not support in PHP like crypt(), but I want to use it.How could i make it work? -Original Message- From: Lang Sharpe [mailto:[EMAIL PROTECTED] Sent: Thursday, Oct

[PHP] Text area with an echo command

2003-10-17 Thread Will
Hello everyone, I have a question on echoing text from a database into a form. The database is populated but it does not show up in the modify script page. Can someone help me?? Here is the code that I am using: Notes: The above is a display_block in the PHP code itself. Thanks in advance,

[PHP] Logging logins...possible?

2003-10-17 Thread Ryan A
Hi, I want to log logins to a directory protected by a .htaccess file every someone logs in with username ASDF i want to increment a counter. According to the documentation if a php script calls/invokes the basic authentication box, it is passed back the username/password (which is exactly what I

[PHP] Question on references and writing a PHP extension..

2003-10-17 Thread Philip Hallstrom
Hi - I'm just getting into writing my own PHP extension and have a question I can't find the answer to. Let's say I've written an extension that has a "double_number" function which acts like the following in PHP $n = 10; double_number(&$n); // $n = 20; In my extension do I need to use a

Re: [PHP] Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-17 Thread John Black
Hey David, >Hey, that's a nice offer. Thanks, we aim to please :-) this offer is open to _anybody_ on the list, but please send us one file at at time to "example encode" and not more. >work in progress (see it at > http://hd-vzw.com/internal/ I got a basic authentication box pop up at me...!!?

[PHP] Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-17 Thread John Black
Hi, Nope sorry, we dont have an "actual example" anywhere but we can do better than that, send me any file, however big and i'll encode it and send it back to you. Remember: It does not matter if you have HTML,XML or greek in your php file... Cheers, -JB. <[EMAIL PROTECTED]> John Black: > If

Re: [PHP] Re: Getting spam from manual notes email address...

2003-10-17 Thread Marek Kilimajer
I don't think that spambots are that smart. If I really want to hide an email address I use image for display and javascript for real mailto: address. Comex wrote: <[EMAIL PROTECTED]> Jon Kriek: Same issue here. Is it possible to use CSS and display:none or something to mask the e-mail? -- PHP

Re: [PHP] File attachment to mail() doesn't work....

2003-10-17 Thread Marek Kilimajer
I don't have the will to look into your code but why don't you use a class to send out the mail. That's what I always do. Scott Fletcher wrote: Hi Fellas! I already whipped up the script to get the PHP mail() to send an email with body text, along with the file attachment. Still haven't got

[PHP] Re: (ANNOUNCE) codeSECURE 1.0 released - - Protecting PHP code

2003-10-17 Thread Comex
<[EMAIL PROTECTED]> John Black: > If you have any questions...fire away, I and my partner will try our > best to answer all questions/suggestions/criticisms etc. Is there an actual example somewhere? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] PHP/MySQL/Server not working

2003-10-17 Thread Marek Kilimajer
Are the variables quoted out by php setting magic_quotes_gpc or do you have to use addslashes in your code? conbud wrote: Hey, just a quick question, I have a form that users can fill out to join a certain group, we can then view that info from an admin page that requires logging in. When a user

[PHP] Re: Use include function (newbie)

2003-10-17 Thread Comex
<[EMAIL PROTECTED]> Rich Fox: > But *why* does logic.php need html.php? > > There is no recursion issue, or endless nesting of includes, because > html.php refers to logic.php as an action for a form... this does not > "include" the logic.php code into the html.php page. > > Rich The idea is, AFAIK

Re: [PHP] PHP SESSSION Not Behaving

2003-10-17 Thread Marek Kilimajer
Did you try it with another browser? Make some really simple example and see if this is still happening. [-^-!-%- wrote: Environment: Linux , PHP 4.2.3,MySql 3.23.39,Apache, and so on The Problem: I have a user authentication script that uses sessions to track the user id. Everything works fine

[PHP] Re: Getting spam from manual notes email address...

2003-10-17 Thread Comex
<[EMAIL PROTECTED]> Jon Kriek: > Same issue here. Is it possible to use CSS and display:none or something to mask the e-mail? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL Query OT question for the experts :)

2003-10-17 Thread Marek Kilimajer
I think you (or me) will make some php code out of kindness. Order the rows by the id (still there should be some REALLY uniq id) ad then update the same row with a variable that you reset each time that you encounter new id. $i=0; while($row=...) { if($prev != $row['HotelID']) { $i=0; $pr

Re: [PHP] strange MySQL result problem

2003-10-17 Thread Marek Kilimajer
Is your query correct? Try: function query($sql, $current_line) { $this->Result = mysql_query($sql) or die($this->stop($current_line)); if(!$this->Result) { echo mysql_error(); } $this->Result_total_fields = mysql_num_fields($this->R

Re: [PHP] Error Handling

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 18:49, John W. Holmes wrote: > Robert Cummings wrote: > > > "Error Handling"?? Do you mean form validation? InterJinn does form > > validation and allows custom validators for any kind of form field. I > > believe PEAR's Quickform can also do similar. > > I'm thinking about

[PHP] Re: Getting spam from manual notes email address...

2003-10-17 Thread Jon Kriek
Same issue here. -- Jon Kriek http://phpfreaks.com "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I added a note to a manual page yesterday with a unique address that > hasn't been used anywhere else and it took one day to receive a spam > message to the address.

[PHP] Getting spam from manual notes email address...

2003-10-17 Thread John W. Holmes
I added a note to a manual page yesterday with a unique address that hasn't been used anywhere else and it took one day to receive a spam message to the address. I guess the whole "name at address dot something dot com" isn't fooling somebody's bot... -- ---John Holmes... Amazon Wishlist: www.amazo

Re: [PHP] Error Handling

2003-10-17 Thread John W. Holmes
Robert Cummings wrote: "Error Handling"?? Do you mean form validation? InterJinn does form validation and allows custom validators for any kind of form field. I believe PEAR's Quickform can also do similar. I'm thinking about getting a vasectomy; what does InterJinn recommend? Seriously, is it ju

[PHP] PHP/MySQL/Server not working

2003-10-17 Thread conbud
Hey, just a quick question, I have a form that users can fill out to join a certain group, we can then view that info from an admin page that requires logging in. When a user fills out the form I get an email letting me know that the form was submitted with the users info as well. Here recently, I'

RE: [PHP] Any graphics people?

2003-10-17 Thread Joseph Bannon
Yes, it's a paying job. J. -Original Message- From: Kit Knight [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 5:03 PM To: Joseph Bannon Subject: Re: [PHP] Any graphics people? Hey, I do graphics, but is it a paying job coz I cant afford non paying right now. Paypal accepted :

[PHP] File attachment to mail() doesn't work....

2003-10-17 Thread Scott Fletcher
Hi Fellas! I already whipped up the script to get the PHP mail() to send an email with body text, along with the file attachment. Still haven't got this to work right. If I omit out the attachment feature then the mail() work successfully and I receive an email with body message successfully

Re: [PHP] Filemanager v1.0

2003-10-17 Thread Ryan A
Hahahaha I totally agree, but the problem is this d*** knows a fu* hellava lot about PHP and we would be pretty lost on the list without him. Its the old problem of which is worse...the devil or the deep sea... Cheers, -Ryan >> and another thing, don't ask John H for help (or sarcastic

Re: [PHP] Page breaks and printing?

2003-10-17 Thread BAO RuiXian
Don't know the HTML thead/tbody/tfoot elements can hold down on a single page. The CSS command page-break-before:always and page-break-after:always should play the trick on a XML sensible browser like IE or Opera. For example, you can have a look at this page: http://www.codeave.com/css/code.a

Re: [PHP] Page breaks and printing?

2003-10-17 Thread Leif K-Brooks
J J wrote: Is there a good way in PHP to determine page breaks for long reports and printing? I'd like to be able to best determine where pages should begin and end and reprint things like table/page headers and footers on each page so the reports print nicely. Just use HTML thead/tfoot elemen

Re: [PHP] Page breaks and printing?

2003-10-17 Thread David T-G
J J -- 1) This has nothing to do with BTML. Please don't hijack threads; next time you want to talk about a completely fresh topic start a completely fresh message. ...and then J J said... % % Is there a good way in PHP to determine page breaks There isn't, really, because it up to the local b

[PHP] (ANNOUNCE) New PHP & MySQL Web Log Site

2003-10-17 Thread Boaz Yahav
Hello I was not sure that it's a common practice to send PHP related announcements to the list so i asked and was told it's ok. Just wanted to let anyone interested that after almost 6 years, http://www.weberdev.com now has a new brother (sister?) site called http://www.weberblog.com. This new

Re: [PHP] Re: Yes!!! BTML v1.0 is here!!!

2003-10-17 Thread Comex
Now I'm confused, because of the canceled message. <[EMAIL PROTECTED]> Chris Shiflett: > --- Comex <[EMAIL PROTECTED]> wrote: >> Bas: >>> That tags? It should not be used anyway... >> what??? > > Would you two please take this discussion elsewhere? This is about > the tenth message that makes no

[PHP] Page breaks and printing?

2003-10-17 Thread J J
Is there a good way in PHP to determine page breaks for long reports and printing? I'd like to be able to best determine where pages should begin and end and reprint things like table/page headers and footers on each page so the reports print nicely. I'd like to avoid having to output to PDF or W

Re: [PHP] Re: Yes!!! BTML v1.0 is here!!!

2003-10-17 Thread Comex
<[EMAIL PROTECTED]> Chris Shiflett: > --- Comex <[EMAIL PROTECTED]> wrote: >> Bas: >>> That tags? It should not be used anyway... >> what??? > > Would you two please take this discussion elsewhere? This is about > the tenth message that makes no sense to anyone else. > > Thank you. > > Chris > > ==

Re: [PHP] Re: Yes!!! BTML v1.0 is here!!!

2003-10-17 Thread Chris Shiflett
--- Comex <[EMAIL PROTECTED]> wrote: > Bas: > > That tags? It should not be used anyway... > what??? Would you two please take this discussion elsewhere? This is about the tenth message that makes no sense to anyone else. Thank you. Chris = My Blog http://shiflett.org/ HTTP Developer's

[PHP] PHP SESSSION Not Behaving

2003-10-17 Thread [-^-!-%-
Environment: Linux , PHP 4.2.3,MySql 3.23.39,Apache, and so on The Problem: I have a user authentication script that uses sessions to track the user id. Everything works fine with HTTP, but $_SESSIONS['var'] renders nothing under a secure connection (SSL). Using $_SESSION['myVar']= 'myValueGoesH

[PHP] Re: Yes!!! BTML v1.0 is here!!!

2003-10-17 Thread Comex
<[EMAIL PROTECTED]> Bas: > That tags? It should not be used anyway... what??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Rename the current page

2003-10-17 Thread Grant Rutherford
Thanks for your response, What I tried was the following: header("Content-type: text/plain"); header("Content-Disposition: attachment; filename=\"textfile.txt\""); echo $output; This works properly on Mozilla, however the following problems occur in IE: IE version 5.50.4522.1800 -> 2 dialog boxe

Re: [PHP] Error Handling

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 16:29, Frank Tudor wrote: > I have found some great code that handles errors through > PHP_SELF > > However I have radio buttons and drop down selections that I > cannot do a $_POST (the POST only works on my text fields). > > Does someone have some sample code that can chec

RE: [PHP] Error Handling

2003-10-17 Thread Jay Blanchard
[snip] I have found some great code that handles errors through PHP_SELF However I have radio buttons and drop down selections that I cannot do a $_POST (the POST only works on my text fields). Does someone have some sample code that can check for errors on a drop down selection or radio buttons

[PHP] Error Handling

2003-10-17 Thread Frank Tudor
I have found some great code that handles errors through PHP_SELF However I have radio buttons and drop down selections that I cannot do a $_POST (the POST only works on my text fields). Does someone have some sample code that can check for errors on a drop down selection or radio buttons and the

RE: [PHP] variables in e-mail 2nd

2003-10-17 Thread Daevid Vincent
Oh, one more thing that's worthy of note. This method "renders" a page so you don't have to worry about htaccess protected content and authentication. What do I mean by that? Well, for example, my CRiMson project uses mod_auth_mysql to validate a user and let them in. It protects the entire /crims

[PHP] Maeler Deamon Problem with PHP-DB list

2003-10-17 Thread Roger Spears
WTF does all this mean? Hi. This is the qmail-send program at pb1.pair.com. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <[EMAIL PROTECTED]>: This message is looping: it already has my Delivered-To

[PHP] Any graphics people?

2003-10-17 Thread Joseph Bannon
I'm doing all the programming for my site, but I suck at graphics. Does anyone know where I can find a graphic designer? I posted a message on webhostingtalk.com and mostly everyone there does business sites when I'm looking for something more retro and for an entertainment site. J. -- PHP Genera

[PHP] SQL Query OT question for the experts :)

2003-10-17 Thread Andrew Brampton
Hi, I have a client with a database of around 17k entries. Now due to powers out of my control the table structure looks like: CREATE TABLE londonhotelsallphotos ( HotelID double default NULL, active_hotel_photo_Name varchar(255) default NULL, URL varchar(255) default NULL, Number varchar(

Re: [PHP] Filemanager v1.0

2003-10-17 Thread John Nichel
CPT John W. Holmes wrote: From: "Ryan A" <[EMAIL PROTECTED]> and another thing, don't ask John H for help (or sarcastic comments)... that too is reserved just for me. You have been warned This John H guy sounds like a dick. Someone should boot him. ---John Holmes... I agree. In fact, the

Re: [PHP] Filemanager v1.0

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 15:49, CPT John W. Holmes wrote: > From: "Ryan A" <[EMAIL PROTECTED]> > > > and another thing, don't ask John H for help (or sarcastic comments)... > > that too is reserved just for me. > > You have been warned > > This John H guy sounds like a dick. Someone should boot

Re: [PHP] Rename the current page

2003-10-17 Thread CPT John W. Holmes
From: "Grant Rutherford" <[EMAIL PROTECTED]> > I have tried many variations of the header command, but no luck so far. > It seems to work okay on Mozilla browsers but not IE. Okay, what have you actually tried? What are you using now? Have you read through _all_ of the comments on the manual page

Re: [PHP] What's a good regex to validate an email address? ;)

2003-10-17 Thread CPT John W. Holmes
From: "Daevid Vincent" <[EMAIL PROTECTED]> > Not PHP, but in js, I use this: Dude... read the messages before you reply. you know, the whole "think before you say" thing?? ;) ---John Holmes... > > -Original Message- > > From: John W. Holmes [mailto:[EMAIL PROTECTED] > > Sent: Wednesday,

RE: [PHP] What's a good regex to validate an email address? ;)

2003-10-17 Thread Jeremy Russell
No... I replied to a reply think it was the original... :/ Doh!! > -Original Message- > From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] > Sent: Friday, October 17, 2003 2:48 PM > To: Jeremy Russell; Daevid Vincent; [EMAIL PROTECTED] > Subject: Re: [PHP] What's a good regex to validat

[PHP] Vanity Sites

2003-10-17 Thread Kevin Stone

Re: [PHP] Filemanager v1.0

2003-10-17 Thread CPT John W. Holmes
From: "Ryan A" <[EMAIL PROTECTED]> > and another thing, don't ask John H for help (or sarcastic comments)... > that too is reserved just for me. > You have been warned This John H guy sounds like a dick. Someone should boot him. ---John Holmes... -- PHP General Mailing List (http://www.ph

Re: [PHP] What's a good regex to validate an email address? ;)

2003-10-17 Thread CPT John W. Holmes
From: "Jeremy Russell" <[EMAIL PROTECTED]> > Will get nearly everything that resembles an email address. Holy crap, batman... did you even read the original message? ---John Holmes... > > -Original Message- > > From: John W. Holmes [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, Octob

Re: [PHP] Rename the current page

2003-10-17 Thread Grant Rutherford
Grant Rutherford wrote: Alternatively, is there some way that I could generate that file, redirect the user to it, and then delete the file again afterwards? I know how to do all of this except delete the file. Is there some way to schedule a command to be run after the script is finished? T

RE: [PHP] Hanmir I'm gonna kill you, you son of a..........

2003-10-17 Thread Sean Straw / PSE
This thread was flagged as probable Sp*am / twitmail at my server because of the abundance of punctuation in the subject, but on reviewing the sp*am report, I couldn't belp but look into what this thread must be about. that [EMAIL PROTECTED] is REJECT'd. But for some reason the emails still come

RE: [PHP] What's a good regex to validate an email address? ;)

2003-10-17 Thread Jeremy Russell
[EMAIL PROTECTED](net|com|org|gov|...) or [EMAIL PROTECTED] Will get nearly everything that resembles an email address. [EMAIL PROTECTED] would even go through the second one. Best thing to do maybe is try to send a email to the address to verify it. > -Original Message- > From: Da

[PHP] Rename the current page

2003-10-17 Thread Grant Rutherford
Hi there, I would like a user to request the page "view_file.php", and I would like php to generate an arbitrary file and send it to the user. This is all okay, however, I would like to rename the sent page so that the browser doesn't open it in a window as an html file but instead brings up

Re: [PHP] Filemanager v1.0

2003-10-17 Thread John Nichel
Ryan A wrote: [snip] Please dont post all the programs you write and then ask, 'help me make this better.' [/snip] Yes, don't *ever* do that, only I am allowed to do that... and another thing, don't ask John H for help (or sarcastic comments)... that too is reserved just for

Re: [PHP] Login system

2003-10-17 Thread John Nichel
Clarence wrote: Why are you folks even responding to Bas? He's obviously not willing to read any documentation or do any work on his end. Let this one go... I don't mean to be a snob, but someone requesting help should try and do SOME work. It's okay...in cases like this, being a 'snob' is perfe

Re: [PHP] Login system

2003-10-17 Thread John Nichel
Bas wrote: Which one does not use mysql and is free? http://www.php.net/manual/en/ref.session.php http://www.phpclasses.org/goto/browse.html/class/21.html http://www.devarticles.com/art/1/639 My guess is that if you ACTUALLY go to those URL's, you'll find out that answeror do you need a free b

RE: [PHP] Filemanager v1.0

2003-10-17 Thread Ryan A
[snip] Please dont post all the programs you write and then ask, 'help me make this better.' [/snip] Yes, don't *ever* do that, only I am allowed to do that... and another thing, don't ask John H for help (or sarcastic comments)... that too is reserved just for me. You have b

RE: [PHP] Filemanager v1.0

2003-10-17 Thread Jay Blanchard
[snip] Please dont post all the programs you write and then ask, 'help me make this better.' if I did this I'd probably be passing John up in #posts on the list [/snip] *LOL* Ditto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Filemanager v1.0

2003-10-17 Thread Curt Zirzow
* Thus wrote Bas ([EMAIL PROTECTED]): > I have my second program: > > Filemanager!!! > > It contains 2 files(this files are in the admin directory of the folder > meant in the showindex.php file($dir)): > > showindex.php > --- [.. snip insecure code ..] > --- > Change $dir to your dir > / is the

Re: [PHP] Login system

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 14:10, Bas wrote: > And also... the interjinn website wont open... Whaddaya mean it won't open? Are you smoking crack :l Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :--

[PHP] What's a good regex to validate an email address? ;)

2003-10-17 Thread Daevid Vincent
Not PHP, but in js, I use this: function emailCheck(str) { var at="@" var dot="." var lat=str.indexOf(at) var lstr=str.length var ldot=str.indexOf(dot) if (str.indexOf(at)==-1){ retur

[PHP] Sending htaccess auth information through php

2003-10-17 Thread Daevid Vincent
This is what I use. IE is smart enough to parse out the user/pw from the location bar, so you should be pretty good. FYI, some forms of media may need this sent too, like mediaplayer -- which is annoying b/c it tries to authenticate! Bastards. http://$username:[EMAIL PROTECTED]/protected/ And for

RE: [PHP] Login system

2003-10-17 Thread Chris W. Parker
Bas on Friday, October 17, 2003 11:11 AM said: > And also... the interjinn website wont open... And also... it worked for me... And also... please don't top post... c. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~ja

Re: [PHP] Login system

2003-10-17 Thread Clarence
Why are you folks even responding to Bas? He's obviously not willing to read any documentation or do any work on his end. Let this one go... I don't mean to be a snob, but someone requesting help should try and do SOME work. On Friday, October 17, 2003, at 01:54 PM, Bas wrote: Which one does

Re: [PHP] Login system

2003-10-17 Thread Bas
And also... the interjinn website wont open... "Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 2003-10-17 at 13:39, Bas wrote: > > Do you mean non-commercial? i plan to use it at home to test some websites > > and showing them to my friends > > The term "non-

Re: [PHP] Login system

2003-10-17 Thread CPT John W. Holmes
From: "Robert Cummings" <[EMAIL PROTECTED]> > On Fri, 2003-10-17 at 12:57, Bas wrote: > > I want a login system with sessions and without mysql. > > > > I have tried to make one but that one is without sessions(i don't know > > anything about sessions) and with mysql... > > InterJinn supports file

RE: [PHP] Login system

2003-10-17 Thread Chris Hubbard
Bas, Based on your (somewhat limited) requirements, I recommend that you look at using Uma. http://sourceforge.net/projects/uma/ It's easy to use, and you can drop it into your application without any trouble. Chris -Original Message- From: Bas [mailto:[EMAIL PROTECTED] Sent: Friday, Oct

RE: [PHP] Login system

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 14:02, Jay Blanchard wrote: > [snip] > Which one does not use mysql and is free? > > > Forget about what you want. Here's what you need: > > http://www.php.net/manual/en/ref.session.php > > http://www.phpclasses.org/goto/browse.html/class/21.html > > http://www.devarticles.c

[PHP] best way to use session vars?

2003-10-17 Thread David T-G
Hi, all -- Well, now that I have to change my code around, I suppose I should learn the best way, if there is one in particular, to manage sessions. Should I use $_SESSION for everything or should I use session_start and session_register and friends instead? Is there a clear win with either one?

[PHP] strange MySQL result problem

2003-10-17 Thread Chris W. Parker
Hey peeps. Let me be quick (or try to at least). Here is a snippet of my db class. function query($sql, $current_line) { $this->Result = mysql_query($sql) or die($this->stop($current_line)); // the following two lines work if they are in the next // method get_query_res

RE: [PHP] Login system

2003-10-17 Thread Jay Blanchard
[snip] Which one does not use mysql and is free? > Forget about what you want. Here's what you need: > http://www.php.net/manual/en/ref.session.php > http://www.phpclasses.org/goto/browse.html/class/21.html > http://www.devarticles.com/art/1/639 [/snip] **slaps forehead** All of them, with mo

[PHP] RESOLVED, sort of -- Re: [PHP] where is my session data on my new server?

2003-10-17 Thread David T-G
Hi, all -- It appears that the change from 4.2.3 to 4.3.4rc1 was not something that got broken but instead something that got fixed. Oh, yay. But what do I do now? Hmmm... The code \n" ; session_unregister('pw') ; } print "\n" ; print "Password:\n" ; print "\

RE: [PHP] Login system

2003-10-17 Thread Jay Blanchard
[snip] Which one does not use mysql and is free? > Forget about what you want. Here's what you need: > http://www.php.net/manual/en/ref.session.php > http://www.phpclasses.org/goto/browse.html/class/21.html > http://www.devarticles.com/art/1/639 [/snip] **slaps forehead** All of them. -- PH

RE: [PHP] variables in e-mail 2nd

2003-10-17 Thread Daevid Vincent
What I do is make a PHP page/template with php variables in place. Then do something like this... $report = "path/to/mytemp.php"; $today = date(); ob_start(); include($report); $message = ob_get_contents(); ob_end_clean(); //echo $message;

Re: [PHP] Login system

2003-10-17 Thread Bas
Which one does not use mysql and is free? <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Okay, here is what i want: > [snip!] > > Forget about what you want. Here's what you need: > http://www.php.net/manual/en/ref.session.php > http://www.phpclasses.org/goto/browse.html/class/21.

Re: [PHP] Login system

2003-10-17 Thread Robert Cummings
On Fri, 2003-10-17 at 13:39, Bas wrote: > Do you mean non-commercial? i plan to use it at home to test some websites > and showing them to my friends The term "non-commercial" was purposefully not used in the license because it is too narrow of a definition. The license should be quite clear on wh

RE: [PHP] Login system

2003-10-17 Thread Jay Blanchard
[snip] Okay, here is what i want: * Login system * No mysql * Sessions * Easy adjustable register page(copy generic files to dir of user) [/snip] Let's see, bas releases not one, but two applications this week and then condemns another'swhoa. Bas, RTFM at http://us4.php.net/session -- PHP Ge

Re: [PHP] Login system

2003-10-17 Thread subs
> Okay, here is what i want: [snip!] Forget about what you want. Here's what you need: http://www.php.net/manual/en/ref.session.php http://www.phpclasses.org/goto/browse.html/class/21.html http://www.devarticles.com/art/1/639 Almost everyone needs to use sessions and user authentication eventual

Re: [PHP] Login system

2003-10-17 Thread Chris Wanstrath
Bas, I think a suggested reading would be www.php.net/man. It's the PHP manual and can answer many, if not all, of your questions related to sessions. Yes, even questions like "what are the basic functions to make a session." I am usually not one of the people that get uptight about certain type

Re: [PHP] Login system

2003-10-17 Thread Bas
Do you mean non-commercial? i plan to use it at home to test some websites and showing them to my friends "Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 2003-10-17 at 13:31, Bas wrote: > > > > I want to try that InterJinn out but... is it free? > > It is fre

  1   2   >