[PHP] Help, looking for.

2001-02-27 Thread Chris
Hi again, Has anyone here come accross a Rich Text Format to HTML converted based on PHP? Thanks, Chris

[PHP] hrm...only hit submit once

2001-02-27 Thread Kurth Bemis
i have a form set that my users can fill out thier information. at the end of the process the results are mailed to an email address. then only problem is that reloads the page the mail is send again. this can be a problem...any ideas on how to prevent it?? ~kurth -- PHP General Mailing

[PHP] help with branching eregi

2001-02-27 Thread W.D.
this script isnt working like I want itmainly I need multiple eregi() to check fields ?php if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST") { (eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email))(eregi("^[a-z]$", $FirstName))(eregi("[a-z]$", $LastName))? header("Location:

RE: [PHP] File downloading?

2001-02-27 Thread Jason Murray
Great, thanks. I looked at the file(), but it sounded like is was just for local file use. oops, should've been include(). Sorry :) Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

[PHP] NN Problem

2001-02-27 Thread Peter Houchin
Has any one had/heard this problem... My page doesn't load properly with netscape 4.5 Under Solaris but on WINNT 4 under both ie NN it loads perfectly can any one offer any suggestions? Peter Houchin Sun Rentals [EMAIL PROTECTED]

[PHP] LDAP Listing

2001-02-27 Thread Mike Tuller
I want to create a list of everyone on the LDAP server, and none of the examples I have in my books seems to work. What functions should I use to connect to the server, and list users in the LDAP to create a phone book type list to print out? Could someone also give me some sort of example that I

[PHP] nested include, eval, and function declaration problems

2001-02-27 Thread Jaxon
Thought I had this licked but it's giving me a headache ... can anyone help? here is the index.php: ? include_once("functions.inc"); echo functOne(); ? now functions.inc declares functOne() and functTwo()... functOne() performs an eval on $string, and $string contains an "echo

Re: [PHP] hrm...only hit submit once

2001-02-27 Thread Chris Lee
?php include_once('session.egn'); if (isset($HTTP_POST_VARS['submit'])) if ( isset($HTTP_SESSION_VARS['done']) AND $HTTP_SESSION_VARS['done'] == $PHP_SELF) { echo "a br\n"; echo "You can only press submit once br\n"; exit(); } else { echo "b br\n"; $done = $PHP_SELF;

Re: [PHP] NN Problem

2001-02-27 Thread Chris Lee
you have a url or code sample to look at ? have you run it through html tidy ? http://www.w3.org/People/Raggett/tidy/ also included in ultraedit 8.0a http://www.ultraedit.com/ -- Chris Lee Mediawaveonline.com ph. 250.377.1095 ph. 250.376.2690 fx. 250.554.1120 [EMAIL PROTECTED]

Re: [PHP] Help with a very small array problem

2001-02-27 Thread Chris Lee
?php foreach($blink as $pos = $val) echo "a href='{$blink[$pos]}'{$but[$pos]} /a "; ? or better. ?php $link['slashdot.org'] = 'http://slashdot.org'; $link['adcritic'] = 'http://www.adcritic.com'; $link['php.net'] = 'http://www.php.net'; foreach($link as $pos = $val) echo "a

Re: [PHP] session problem

2001-02-27 Thread Chris Lee
cookies disabled and using --trans-sid ? the only way PHPSESSID can be set is if PHPSESSID is set in the url (get) or in a form (post) if neither is set then your hooped. a new session will be created each time. ?php session_start() if (!isset($HTTP_SESSION_VARS['count'])) {

[PHP] whats happening with form

2001-02-27 Thread W.D.
I use session variables to retrieve values from form fields and send by mail(). Problem is upon testing after I fill out form once and send, then go back and test again with different info it sends the info from the first time. Whats wrong?

[PHP-CVS] cvs: php4 /ext/midgard article.c attachment.c calendar.c element.c event.c eventmember.c file.c group.c host.c image.c mail.c member.c mgd_article.h mgd_attachment.h mgd_calendar.h mgd_element.h mgd_event.h mgd_eventmember.h mgd_file.h mgd_group.h mgd_host.h mgd_image.h mgd_internal.h mgd_mail.h mgd_member.h mgd_oop.h mgd_page.h mgd_pageelement.h mgd_pagelink.h mgd_person.h mgd_preferences.h mgd_preparser.h mgd_sitegroup.h mgd_snippet.h mgd_snippetdir.h mgd_style.h mgd_topic.h midgard.c oop.c page.c pageelement.c pagelink.c parameter.c person.c preferences.c preparser.c sitegroup.c snippet.c snippetdir.c style.c topic.c

2001-02-27 Thread David Guerizec
davidg Tue Feb 27 17:00:40 2001 EDT Modified files: /php4/ext/midgard article.c attachment.c calendar.c element.c event.c eventmember.c file.c group.c host.c image.c mail.c member.c mgd_article.h

Re: [PHP] File Upload Strangeness

2001-02-27 Thread Chris Lee
you will find some browsers dont work like they should, opera doesnt seem to like my uploads. ?php include_once('database.egn'); include_once('time.egn'); if ($db_file != 'none' AND $db_file AND is_uploaded_file($db_file) AND filesize($db_file)) { $db_file =

RE: [PHP] File Upload Strangeness

2001-02-27 Thread Jason Murray
form method=post enctype='multipart/form-data' action='$PHP_SELF' input type=file name=db_file input type=submit /form Don't you need a MAX_FILE_SIZE for this to work properly? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] ftp connection

2001-02-27 Thread Chris Lee
this is probably NOT the problem, but I'll post anyway. Ive found if copying code from web browser, ie from phpbuilder.com in IE, that 0x0D and 0x0A get thrown in alot. this causes php to tell me that certain functions are undefined, even though I know they are. I remove all 0x0D and 0x0A. --

Re: [PHP] whats happening with form

2001-02-27 Thread W.D.
Do I have to call each variable like session_unset(var1, var2, var3); and session_destroy(var1, var2, var3)? I use session variables to retrieve values from form fields and send by mail(). Problem is upon testing after I fill out form once and send, then go back and test again with

Re: [PHP] File downloading?

2001-02-27 Thread Chris Lee
?php header("Content-Type: application/download "); header("Content-Disposition: filename=filename.txt "); readfile('/path/to/file.zip'); ? try this, works for me. everywhere I read they say Im supposed to use application/octlet-stream but it doesnt allways seem to work in some

[PHP-CVS] cvs: php4 /ext/imap CREDITS

2001-02-27 Thread Dan Kalowsky
kalowskyTue Feb 27 17:02:48 2001 EDT Modified files: /php4/ext/imap CREDITS Log: #adding name to credits. nothing to see here, keep moving. PR: Submitted by: Reviewed by: Obtained from: Index: php4/ext/imap/CREDITS diff -u

[PHP] Members area

2001-02-27 Thread Brandon Feldhahn
Hi, eveyone, my name is brandon, and i made a members area for my site, a database driven http authentication and a database for all my members i got everything working but how do i make a database connection that recieve the infomation for that user that has loggin into the members area. If i

[PHP] Please help with multi eregi

2001-02-27 Thread W.D.
I have this following if statement.?php if($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST") then I need to check the following three strings with eregi (eregi("^[a-z0-9\._-]+@+[a-z0-9\._-]+\.+[a-z]{2,3}$", $Email))? header("Location: http://www.site.com/thanks.php"): header("Location:

[PHP] very off the topic questions here but hope someone can help out

2001-02-27 Thread [EMAIL PROTECTED]
This is very off the topic question, people. But I just wanna see if anyone has this experience and can tell me the procedure. I need to change the registrant company of several domains we own to the new company name. I only know that I need to do that at networksolution but don't have any

Re: [PHP] Members area

2001-02-27 Thread Miles Thompson
Brandon, It's a little confusing. Are you saying: 1. You have the members area - a directory, what? 2. You have created a database containing your members information. and now you: 3. Want to know how to connect to the database? 4. Add information to the database about the

Re: [PHP] very off the topic questions here but hope someone can help out

2001-02-27 Thread Simon Garner
From: "Jacky@lilst" [EMAIL PROTECTED] This is very off the topic question, people. But I just wanna see if anyone has this experience and can tell me the procedure. I need to change the registrant company of several domains we own to the new company name. I only know that I need to do that

Re: [PHP] How to PHP process a .phtml file, or capture the output from within PHP?

2001-02-27 Thread Simon Garner
From: "Andy Jones" [EMAIL PROTECTED] Hi I'd normally start this mail with some background of what I'm doing, but to save everyone time, I'll start with the questions, and then in case anyone has alternative suggestions or workarounds, I'll fill in the what I'm doing and why... Within PHP

[PHP-CVS] Invalid Address

2001-02-27 Thread postmaster
** [EMAIL PROTECTED] is no longer a valid address. Try replacing @CELL1.com with @alltel.com If your email is still not delivered, please contact the recipient and request their new email address.

[PHP] Ideal cookie lift time???

2001-02-27 Thread Peter Houchin
Hiya as this is my first time using cookies could some one please give me an typical life time for a cookie before is destroys its self? thanks Peter Houchin Sun Rentals [EMAIL PROTECTED]

Re: [PHP] very off the topic questions here but hope someone can help out

2001-02-27 Thread richard merit
FWIW, some time back I had to change the owner of a domain name from my name to a corp name. Basically, you have to get the forms from Network Solutions, fill out the page, get it notorized and fax it back to network solutions, you can mail it if you want. Change over takes a couple of days if

RE: [PHP] Ideal cookie lift time???

2001-02-27 Thread Jochen Kaechelin
Hiya as this is my first time using cookies could some one please give me an typical life time for a cookie before is destroys its self? I always delete the cookie when the browsers is closed. set lifetime to "" to do this. But in some cases you need cookies to detect users after longer time.

[PHP] Converting code to a function

2001-02-27 Thread Clayton Dukes
Hi everyone :-) I need help, how can I convert the following code into a function so that I can just place it in a global include file and call it using viewdoc($docid); whenever necessary? ---START--- if ($docid == "") { echo "Fatal Error - DocID not supplied"; exit; } $dbh =

Re: [PHP] Converting code to a function

2001-02-27 Thread Simon Garner
Clayton, The problem is that some of your variables, e.g. $HOSTNAME, $DB_USER, etc., are not global variables, and so are not accessible from inside the function. I recommend making those settings define()s instead of variables, but if you keep them as variables then you just need to add:

Re: [PHP] Converting code to a function

2001-02-27 Thread Clayton Dukes
Thanks :-) - Original Message - From: "Simon Garner" [EMAIL PROTECTED] To: "Clayton Dukes" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, February 27, 2001 9:59 PM Subject: Re: [PHP] Converting code to a function Clayton, The problem is that some of your variables, e.g.

[PHP] PHP single user??

2001-02-27 Thread Todd Cary
I am having a very strange problem: PHP 4.0.4 on a NT 4 platform with IIS 5 is only allowing one surfer to do a DB Select. If the DB is busy with the first user, the page is not available to other users. And I have no problems with Win 2K. Am I missing something very obvious? Todd -- Todd

[PHP] re:mod_dav and dreamweaver 4.0

2001-02-27 Thread Joseph H Blythe
Hello, Sorry if this is a little off topic but has anyone successfully used mod_dav with dreamweaver 4.0, I have mod_dav setup but am having trouble connecting to it via dreamweaver. If anyone has successfully used this could they email me privately, as I don't want to waste any more

Re: [PHP] PostgreSQL vs InterBase

2001-02-27 Thread mwaples
Arnold Gamboa wrote: I hve heard a great deal about InterBase. Please comment on which is better: 1. Speed 2. Data Reliability 3. Compatibility with PHP Thanks for your comments. -- 1. I think Postgresql 2 and 3 I can't say which is better. Both seem to work ok - you might want

[PHP] Move a file from dir to another or delete file..?

2001-02-27 Thread Dhaval Desai
Hi! Well I would like to move a file from one directoy to another using php and a web browser. I could just find a function to move an uploaded file but not a normal file which is allready there in some directory. Is there any way I can move a file from one directory to another and also is

php-general Digest 28 Feb 2001 05:47:44 -0000 Issue 538

2001-02-27 Thread php-general-digest-help
php-general Digest 28 Feb 2001 05:47:44 - Issue 538 Topics (messages 41848 through 41952): regex help 41848 by: Jerry Lake Re: $PATH_INFO 41849 by: Sam Masiello 41850 by: Data Driven Design GD installed but imageFUNCTIONS dont work 41851 by: Helmut Ott

[PHP] Move a file from dir to another or delete file..?

2001-02-27 Thread Dhaval Desai
Hi! Well I would like to move a file from one directoy to another using php and a web browser. I could just find a function to move an uploaded file but not a normal file which is allready there in some directory. Is there any way I can move a file from one directory to another and also is

Re: [PHP] Double Click

2001-02-27 Thread Joe Stump
Make the id field on the db entry unique - the second query will fail. You should also be doing error checking on whether or not the record exists already. --Joe On Wed, Feb 28, 2001 at 12:15:38AM -0600, Fabian Fabela wrote: Hi, I have a page, and when I have to add a product I use a form,

Re: [PHP] Move a file from dir to another or delete file..?

2001-02-27 Thread Yasuo Ohgaki
Hi! Well I would like to move a file from one directoy to another using php and a web browser. I could just find a function to move an uploaded file but not a normal file which is allready there in some directory. These are probably you are looking for.

[PHP] function not working?

2001-02-27 Thread Kurth Bemis
i can't get his function to work. i pass the correct data to it...but no results heres the function function display_contents($table,$session) { $count = 0; $result = mysql_query( "SELECT * FROM $table WHERE session='$session'");

RE: [PHP] ++$i and $i++ whatz the difference?

2001-02-27 Thread Jay Klehr
From what I've read in the manual one is a post increment and the other is a pre increment. YOu may not see the difference in a loop statement... but if you use simple variables like the php manual does, you'll get different results. ref:

<    1   2