[PHP] INCLUDE vs Functions

2002-06-27 Thread Jeff Gannaway
ents into 1 file and defining them as functions would save on system resources and improve speed. In other words is More or less efficient than... Thanks, Jeff Gannaway "It's a feeling of fresh opportunity. You're placed in a position a lot of times where not only you

Re: [PHP] how to echo data in a textarea

2001-11-08 Thread Jeff Gannaway
No problem: Here is the default text that will appear in the text box. Later, Jeff At 06:40 PM 11/8/01 -0500, Scott wrote: >Could someone please show me how to echo data into a textarea field of a form? >e.g. I have used the following in text fields: >" size=3 maxlength=3>, >but textareas don

[PHP] How Do I Re-Compile PHP4

2001-10-28 Thread Jeff Gannaway
'm using a Linux/Apache system. How do I re-compile??? I assume it's fairly easy since I read so many messages that say "just recompile PHP with --with-blah-blah-blah". Thanks! -Jeff Gannaway ___ Save 15% on 2002 Calen

[PHP] FTP or Telnet files/directories with PHP?

2001-10-27 Thread Jeff Gannaway
ermissions too. Would this work? Where do I start? Thanks! -Jeff Gannaway ___ Save 15% on 2002 Calendars and Holiday Cards! http://www.AvantGifts.com Discount Code: hopper22ct Offer Good Through October 31, 2001 _

Re: [PHP] Excel to MySQL

2001-10-27 Thread Jeff Gannaway
-+ You see, when MySQL runs the LOAD DATA, new records are indicated by a NEW LINE. You'll want to check your ACCESS table for new lines before creating the export file. Later, Jeff Gannaway ___ S

[PHP] Setting A MySQL Column to NO DUPLICATES

2001-10-25 Thread Jeff Gannaway
Does anyone know how to set a column in a MySQL table to disallow any duplicate entries. I've already got a PRIMARY KEY defined for this table. I tried setting the other field to a MUL KEY, hoping that it would not permit duplicates, but it does. I've searched the MySQL docs without success. I

Re: [PHP] MKDIR Permission Denied

2001-10-25 Thread Jeff Gannaway
How do I set permissions for a certain user (ie nobody) for a directory? If I do this, won't anyone on teh server be able to write to that directory? Thanks, Jeff At 10:39 AM 10/25/01 -0700, Kurt Lieber wrote: >On Thursday 25 October 2001 10:08, you wrote: >> > $GalleryPHPName = "Pins"; >> mkdir

[PHP] MKDIR Permission Denied

2001-10-25 Thread Jeff Gannaway
Results in... MkDir failed (Permission denied) Any thoughts? -Jeff Gannaway ___ Save 15% on 2002 Calendars and Holiday Cards! http://www.AvantGifts.com Discount Code: hopper22ct Offer Good Through October 31, 2001

[PHP] Making "Setup" Files Through A Web-Based Form

2001-10-25 Thread Jeff Gannaway
data. Problems: That seems like A LOT of MySQL queries to run. Would it be a noticeable resource hog?? Thanks for your advice! -Jeff Gannaway ___ Save 15% on 2002 Calendars and Holiday Cards! http://www.AvantGifts.com Discount Code: hoppe

[PHP] Directing A Parked Domain To A Sub Directory

2001-08-30 Thread Jeff Gannaway
k WidgetWorld.com at MainDomain.com. However, if someone goes to WidgetWorld.com, it would pull up the index page for MainDomain.com. How can I use PHP to detect if the visitor wanted MainDomain.com (and display MainDomain/index.php) or WidgetWorld.com (and then display MainDomain/Widgets/index.php). T

[PHP] Cannot Set ExpireTime in a cookie

2001-08-08 Thread Jeff Gannaway
tSession",$SessionID,time()+3600); I also tried setting the expiration time earlier in a script and assigning it to a variable: $ExpTime = time()+3600 setcookie ("ArtPrintSession",$SessionID,$ExpTime); That also didn't work. The $ExpTime values look like: 997317780 What's t

[PHP] Bad SetCookie code or Bad Internet Explorer 4.0??

2001-08-08 Thread Jeff Gannaway
rm other sites. I know it's going throught the IF statement because a $SessionID is generated and printed out. Is there a bug in the script, or is this an IE problem? Thanks, Jeff Gannaway ___ Find the right art print for your home. * Search

[PHP] Finding Out Document That Included Another File

2001-07-12 Thread Jeff Gannaway
thing more elegant and have the INCLUDED file recognize the original file dynamically. Is there some environmental PHP variable that has that info? -- SAMPLE -- Filename: /dummy/BigFile.php Filename: /ImportantFile.php Results: /dummy/BigFile.php Thanks, Jeff Gannaway -- PHP General Mailing

Re: [PHP] Must Have Cookies. PHP/JavaScript

2001-07-05 Thread Jeff Gannaway
With a good start from the folks on this list and a little JavaScript digging, I found an excellent solution to my problem that I thought I'd share: Problem: Want to set a cookie then test for it on the same page. I don't want to to do page redirection to ensure optimal search engine friendlines

[PHP] Must Have Cookies. PHP/JavaScript

2001-07-05 Thread Jeff Gannaway
est to see if their cookie was accepted, and if not, print up a page that says "Sorry, you've got have your Cookies on or go somewhere else." Does anyone know how to do this with PHP, Java, or JavaScript? Code examples or example URLs would be appreciate

[PHP] Basic multi-dimensional array help

2001-07-03 Thread Jeff Gannaway
I've got input fields in a form that look like: The next script processes all this into a database. Here are the results I get from various commands: sizeof($Info): 2 sizeof($Info[0]): 4 print $Info[0][0]: Array[0] Any help? Jeff Gan

[PHP] Handling File Uploads : ASCII/Binary transfers

2001-02-21 Thread Jeff Gannaway
t by switcheing from Binary FTP to ASCII FTP. How can this be done with a PHP script??? Thanks! -Jeff Gannaway ___ 2001 Wall Calendars * Art, Jazz, Blues, Women's, African-American. * Everyday Discounts. * Excellent paper and

Re: [PHP] a good hosting experience

2001-02-21 Thread Jeff Gannaway
Don't know your definition of CHEAP but check out OLM.net or webAXXS.net (they're the same company, just different marketing plans). I've recent;y signed up for their new RSE servers which are a real bargain in my opinion... but then again I've got a site with 650 meg of graphics plus 6 or 7 smal

Re: [PHP] Determingin if cookies are useable?

2001-02-17 Thread Jeff Gannaway
At 08:35 AM 2/17/01 -0800, Chris Lee wrote: >I test for cookies support in the same manner you mentioned, set it, see if >its still there. Can this be done on one page? Or does one page have to set it, then when the visitor goes to the next page, have that page check to see if it was set? Thank

[PHP] .php3 in PHP4?

2001-02-17 Thread Jeff Gannaway
Can I configure PHP4 for to process .php .php4 .php3 and .phtml ?? I'm a first timer to configuring the PHP engine, so a few detials on how to would be appreciated as well. Thanks, Jeff Gannaway ___ 2001 Wall Calendars * Art,

[PHP] Setting The Font In SENDMAIL

2001-02-01 Thread Jeff Gannaway
with dynamically created data generated and mailed out with a PHP script? Thanks, Jeff Gannaway ___ 2001 Wall Calendars * Art, Jazz, Blues, Women's, African-American. * Everyday Discounts. * Excellent paper and reproductions.