Re: [PHP] RE: help, weird include problem with functions

2001-08-09 Thread Clayton Dukes
You need to include settings.php in functions.php. - Original Message - From: "Jaxon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 09, 2001 12:48 PM Subject: [PHP] RE: help, weird include problem with functions > oh, this still happens when I fix the missing () in

Re: [PHP] Re: FAQ

2001-08-01 Thread Clayton Dukes
I have a question: Does anyone know what PHP stands for? It's not in any of the FAQ's I've looked at. -Clayton - Original Message - From: "scott [gts]" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Wednesday, August 01, 2001 11:40 AM Subject: RE: [PHP] Re: FAQ > and adding a

Re: [PHP] Find and Replace

2001-07-30 Thread Clayton Dukes
:-) -- Clayton Dukes CCNA, CCDA, CCDP, CCNP Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net - Original Message - From: "Matthew Loff" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 30, 2001 3:47 PM Subje

Re: [PHP] Find and Replace

2001-07-30 Thread Clayton Dukes
Try this: ---cut--- ### # Finds all *.inc from current directory and rename then to *.inc.php # then edit that file and replace all references to it as well # I haven't tested this, but it should work, but don't be a dumbass and not make a backup copy # of your files before runnin

Re: [PHP] GD library

2001-07-28 Thread Clayton Dukes
www.boutell.com - Original Message - From: "Manu Verhaegen" <[EMAIL PROTECTED]> To: "'Php-General (E-mail)" <[EMAIL PROTECTED]> Sent: Saturday, July 28, 2001 12:51 PM Subject: [PHP] GD library > I want to install the GD library for PHP > I seek libpng and zlib and jpeg-6b can you help

Re: [PHP] Example high-profile PHP sites

2001-07-26 Thread Clayton Dukes
Well, you can use mine if you like, http://www.gdd.net I'm using the Nuke portal software. More can be found at http://phpnuke.org -- Clayton Dukes CCNA, CCDA, CCDP, CCNP (c) 904.477.7825 (h) 904.292.1881 Download Free Essays, Term Papers and Cisco Training from

Re: [PHP] IE -> View Source

2001-07-26 Thread Clayton Dukes
Works fine for me... - Original Message - From: "Dennis Gearon" <[EMAIL PROTECTED]> To: "PHP Mailing Listl (E-mail)" <[EMAIL PROTECTED]> Sent: Thursday, July 26, 2001 11:17 AM Subject: Re: [PHP] IE -> View Source > Please try to read any of the browser printed text in this URL(I can't

Re: [PHP] Syntax Eyes

2001-07-25 Thread Clayton Dukes
gt; To: "Clayton Dukes" <[EMAIL PROTECTED]>; "Php-General" <[EMAIL PROTECTED]> Sent: Wednesday, July 25, 2001 9:58 AM Subject: RE: [PHP] Syntax Eyes > > -Original Message- > > From: Clayton Dukes [mailto:[EMAIL PROTECTED]] > > Sent:

[PHP] ereg_replace

2001-07-25 Thread Clayton Dukes
Can someone tell me why this doesn't work? $home_street = ereg_replace (" " , "+" , $home_street); The input is "123 happy trail" I need the output to be "123+happy+trail" Thanks, Clayton

Re: [PHP] Syntax Eyes

2001-07-24 Thread Clayton Dukes
disposition: filename=".$filename); @header( "Content-type: image/jpeg" ); */ $db->p("bin_data"); } else { echo "No Picture Available"; -Clayton - Original Message - From: "Matthew Loff" <[EMAIL PROT

Re: [PHP] Syntax Eyes

2001-07-24 Thread Clayton Dukes
Nevermind, I got it... Now, how do you reset header information if you need to redclare the header(); ie: Warning: Cannot add header information - headers already sent by (output started at ... -Clayton - Original Message - From: "Clayton Dukes" <[EMAIL PROTECT

[PHP] Syntax Eyes

2001-07-24 Thread Clayton Dukes
type='$input_file_type' where uid='$uid' )"); Can someone tell me why this is yeilding: MySQL Error: (1064) You have an error in your SQL syntax near '( 'Clayton Dukes', 'ÿØÿà\0JFIF\0\0H\0H\0\0ÿÛ\0C\0' at li

[PHP] Help with this-> pointers

2001-07-24 Thread Clayton Dukes
Hi everyone, Forgive my ignorance, I'm trying to re-write an old contact databse that didn't work. I have everything written out, but the old code used pointers (ie: this->$db). I'm not familiar with that type of code, how can I convert it? ---snip--- $sql="select distinct site from contacts_d

Re: [PHP] GET Command

2001-07-17 Thread Clayton Dukes
(www.whatever.com) And it runs this test, telling the user if it passes or fails, and returns the output? Btw, the security advisory comes from http://grc.com/dos/grcdos.htm which outlines some very interesting things happening with IRC based DoS attacks, in case your interested. Thanks! Clayt

[PHP] GEt Command

2001-07-17 Thread Clayton Dukes
Does anyone have a simple script that will GET a web page and return the reply?   Something like this:   function getpage($host, $path, getstr) {$getstr="whatever\r\n"; $host=www.whatever.com;       $hdr=sprintf("GET $getstr", $path);    $hdr .="Content-type: application/x-www-form-urlencode

[PHP] Wget and PHP

2001-07-15 Thread Clayton Dukes
Is there a utility available that will get PHP based websites? Wget doesn't do it   TIA!   Clayton DukesCCNA, CCDA, CCDP, CCNPDownload Free Essays, Term Papers and Cisco Training from http://www.gdd.net     -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Alternative to phpMyAdmin

2001-07-12 Thread Clayton Dukes
I'd like to cast my vote for Webmin :-) www.webmin.com Clayton Dukes CCNA, CCDA, CCDP, CCNP (c) 904.477.7825 (h) 904.292.1881 Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net - Original Message - From: "Matthew Loff" <[EMAIL PROTECTED]&

Re: [PHP] Question

2001-07-06 Thread Clayton Dukes
I'm no expert by any means, but couldn't you set a variable=now(); then when the user clicks again, set a variable2=now(); then subtract the difference and store the result? Clayton Dukes CCNA, CCDA, CCDP, CCNP (c) 904.477.7825 (h) 904.292.1881 Download Free Essays, Term Papers

[PHP] Removing Invalid Users

2001-07-04 Thread Clayton Dukes
TED]','','','001.gif','Jul 04, 2001','','title','location','text','',0,0,'','','','field',10,'',0,0,0,'',0, '','Default',4096,0

Re: [PHP] Getting Information from a CGI POST

2001-07-02 Thread Clayton Dukes
tMonth() + 1]; document.write( '<option value=\"' + yesterdayMonth + ' ' + yesterday.getDate() + '\">yesterday</option>'); - TIA! Clayto

[PHP] Getting Information from a CGI POST

2001-07-01 Thread Clayton Dukes
Then on the day you leave, it checks every thirty minutes or so starting a few hours before, and if there's any delay or cancellation, it sends an email. Can this be done? If so, can someone point me in the right direction? Specifically, how to get the CGI Post data returned from thier

[PHP] Re: Regular Expression help

2001-06-29 Thread Clayton Dukes
: ---snip--- if ((!$email) || ($email=="") || (!eregi("^[_\.0-9a-z-]+@domain.+[a-z]",$email)) || (!eregi("^[_\.0-9a-z-]+@otherdomain.+[a-z]",$email)) ) $stop = ""._ERRORINVEMAIL.""; ---snip--- This doesn't work. (i

[PHP] Regular Expression help

2001-06-29 Thread Clayton Dukes
EMAIL.""; Of course, this doesn't work, but you get the point. Thanks! P.S. Thanks for the Awesome List! Clayton Dukes CCNA, CCDA, CCDP, CCNP Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] converting Word documents to something sensible

2001-06-24 Thread Clayton Dukes
Hey folks, Do you know if there is anything like this that works on PDF's and can actually look decent? Not pdf2htm or something like that, it sux :-) Clayton Dukes CCNA, CCDA, CCDP, CCNP (c) 904.477.7825 (h) 904.292.1881 Download Free Essays, Term Papers and Cisco Training from

[PHP] Nuke

2001-06-20 Thread Clayton Dukes
r the Banner admin page, does anyone have an update/better english language file? 3. Does anyone know how to incliude a themesidebox monthly view of the calendar? If you answer all these for me, I'll name my firstborn after you ;-) TIA!!! Clayton Dukes -- PHP General Mailing

RE: [PHP] Re: Lists are back up

2001-06-18 Thread Clayton Dukes
Fair enough, I'll give you that :-) -=]-Original Message- -=]From: Alexander Skwar [mailto:[EMAIL PROTECTED]] -=]Sent: Monday, June 18, 2001 6:01 PM -=]To: Clayton Dukes -=]Cc: bard; John Donagher; [EMAIL PROTECTED] -=]Subject: Re: [PHP] Re: Lists are back up -=] -=] -=]So s

RE: [PHP] Re: Lists are back up

2001-06-18 Thread Clayton Dukes
Why not just set your filter to look for [EMAIL PROTECTED] in the to or cc line? Clayton Dukes MicroMuse, Inc. CIC Product Engineer CCNA, CCDA, CCDP, CCNP (c) 904-631-4131 (o) 904-880-5996 -=]-Original Message- -=]From: bard [mailto:[EMAIL PROTECTED]] -=]Sent: Monday, June 18, 2001 6:00

Re: [PHP] PHP-Nuke vs. PHP-BB vs. ???

2001-05-23 Thread Clayton Dukes
Try PHPWebsite, it's a cleaned up version of Nuke and runs very well. http://phpwebsite.appstate.edu Clayton Dukes CCNA, CCDA, CCDP, CCNP Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net - Original Message - From: "Tyrone Mills" <[EM

Re: [PHP] Expense

2001-05-19 Thread Clayton Dukes
Definately, thanks! Clayton Dukes CCNA, CCDA, CCDP, CCNP Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net - Original Message - From: "Kurth Bemis" <[EMAIL PROTECTED]> To: "Clayton Dukes" <[EMAIL PROTECTED]> Cc: <[EMAIL PR

Re: [PHP] Expense

2001-05-19 Thread Clayton Dukes
I did actually look there first. Nothing listed Thanks anyways :-) Clayton Dukes CCNA, CCDA, CCDP, CCNP Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net - Original Message - From: "Navid Yar" <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

[PHP] Expense

2001-05-19 Thread Clayton Dukes
Does anyone know where I can find some type of Expense Report/Tracking system written in PHP?   I'm tired of tracking all my stuff in Excel and sending it in so I thought I'd take a crack at making an online tracking system for multiple employees that could possibly export to Excel if needed.

Re: [PHP] Commercial sites that use PHP

2001-04-10 Thread Clayton Dukes
I don't know if he'll be impressed, but I am :-) http://www.gdd.net Offers free Cisco Training as well as High School and College level essays. Clayton Dukes CCNA, CCDA, CCDP, CCNP Internetwork Solutions Engineer Internetwork Management Engineer Thrupoint, Inc. Tampa, FL (c) 904.4

Re: [PHP] scramble the code -sneaky solution (redux)

2001-04-05 Thread Clayton Dukes
This is off topic, but I have a RAQ 2 for sale. If any of you are interested, please e-mail me off this list. Thanks :-) Clayton Dukes CCNA, CCDA, CCDP, CCNP - Download Free Essays, Term Papers and Cisco Training from http

Re: [PHP] Installation

2001-03-30 Thread Clayton Dukes
Actually, the "lite" only works with versions of Redhat lower than 7 (or something like that). The full version is only like 89 bux. But it is an awesome product, only takes about 5 minutes to install and works perfect. Clayton Dukes Download Free Essays, Term Papers and Cisco Tra

Re: [PHP] Help!

2001-03-29 Thread Clayton Dukes
I think I would have just killed myself if that were the case, I spent way too long building this puppy to let it go so quickly :-) Clayton Dukes CCNA, CCDA, CCDP, CCNP Internetwork Solutions Engineer Internetwork Management Engineer Thrupoint, Inc. Tampa, FL (c) 904.477.7825 (h) 904.292.1881

Re: [PHP] Help!

2001-03-29 Thread Clayton Dukes
So, I went back through my command line history and found the culprit, if anyone's interested I typed: chmod 666 file.php * When I should have typed chmod 666 file.php* Damn, I love Unix :-) Clayton Dukes CCNA, CCDA, CCDP, CCNP Internetwork Solutions Engineer Internetwork Manag

Re: [PHP] Help!

2001-03-29 Thread Clayton Dukes
Yes, I've got it now. Scared the crap out of me I must have typo'd on a perm change, man that'll ruin your friggin day! Clayton Dukes CCNA, CCDA, CCDP, CCNP Internetwork Solutions Engineer Internetwork Management Engineer Thrupoint, Inc. Tampa, FL (c) 904.477.7825 (

Re: [PHP] Help!

2001-03-29 Thread Clayton Dukes
Heh, Thanks. Btw, the web site I'm trying so frantically to fix has all the study materials for the Cisco Certs, free of course :-) http://www.gdd.net Clayton Dukes CCNA, CCDA, CCDP, CCNP Internetwork Solutions Engineer Internetwork Management Engineer Thrupoint, Inc. Tampa,

[PHP] Help!

2001-03-29 Thread Clayton Dukes
Arrrgh,   Something went haywire with my site a little while ago, can somebody tell me why I'm getting:   Warning: Failed opening 'themes/JET/theme.php' for inclusion (include_path='.:/etc/httpd/conf/php:/home/www/web:/home/www/websites/acxiom/phonebook/phplib/php:/home/www/web/plug-ins/phpwe

Re: [PHP] problem uploading big (50MB) file

2001-03-29 Thread Clayton Dukes
This is set by max_execution_time, did you restart apache to re-read your php.ini file? Clayton Dukes - Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net - Original Message - From

Re: [PHP] Extracting just the filename from REQUEST_URI

2001-03-28 Thread Clayton Dukes
and passes that into a search form on my website. Search: Where $SEARCH was the search that the user entered in Google. How can I do this? Clayton Dukes - Download Free Essays, Term Papers and Cisco Training

[PHP] Extracting just the filename from REQUEST_URI

2001-03-28 Thread Clayton Dukes
  I have a REQUEST_URI that comes in,   REQUEST_URI=//training/olddata/file.htm   How can I extract just the filename? ( $str=file.htm)     Clayton Dukes-Download Free Essays, Term Papers and Cisco Training from http

[PHP] eregi not working???

2001-03-20 Thread Clayton Dukes
""; if ($title == "") $title = "Untitled Document"; return $title; } it runs okay... But, when I use the function, everything is coming back as "Untitled Document".  Any suggestions?   Clayton Dukes -

Re: [PHP] PHP/Perl/CGI Question

2001-03-20 Thread Clayton Dukes
I was afraid you were going to say that... Anyone care to show me how to write that? Clayton Dukes - Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net - Original Message - From: "Andrew

Re: [PHP] mail() question

2001-03-20 Thread Clayton Dukes
$message .= $Info; $message .=""; $message .=$Phone; $message .=""; $message .=$Email; This should append everything, but I could be wrong, I'm no Guru :-) Clayton Dukes - Download Free Essays, Term

[PHP] PHP/Perl/CGI Question

2001-03-20 Thread Clayton Dukes
ource) comes up as: Search...datainclude("footer.php");?>   What am I doing wrong? Why is it printing the php tags instead of executing them?   Clayton Dukes-Download Free Essays, Term Papers and Cisco Training from ht

[PHP] escaping php syntax within perl

2001-03-20 Thread Clayton Dukes
Hey everyone,   Doesn anyone know how to escape the following line in a perl print statement?   if(!isset($mainfile)) { include("mainfile.php"); }   ie:   sub header{    print "\n"; }   What all needs to be escaped?     Thanks! Clayton DukesCCNA, CCDA, CCDP, CCNPInternetwork Solutions En

[PHP] Searching multiple tables

2001-03-19 Thread Clayton Dukes
I'm having a hard time chasing down a bug.   I have themes installed on my website, the color choices are stored in the database. I need to search all tables within the database for the word "red" how can I do this?   Thanks :-)       Clayton Dukes -- PHP General Mai

Re: [PHP] headers_sent

2001-03-18 Thread Clayton Dukes
Thanks :-) - Original Message - From: "Jack Dempsey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; "Clayton Dukes" <[EMAIL PROTECTED]> Sent: Monday, March 19, 2001 12:08 AM Subject: RE: [PHP] headers_sent > don't you need the () after hea

[PHP] headers_sent

2001-03-18 Thread Clayton Dukes
What's the proper syntax for headers_sent?   I tried: if(!isset(headers_sent)) { include("header.php"); }   But I get: Parse error: parse error, expecting `T_VARIABLE' or `'$'' in /home/www/websites/pw/cisco/config/index.htm on line 3       Clayton DukesCCNA, CCDA, CCDP, CCNPInternetwork So

Re: [PHP] form post without pathinfo

2001-03-18 Thread Clayton Dukes
Yeah, I just can't figure out how to do it. Anyone care to enlighten me? Clayton Dukes - Original Message - From: Chris Anderson To: Clayton Dukes Sent: Wednesday, March 14, 2001 1:04 PM Subject: Re: [PHP] form post without pathinfo Sounds like you just ne

[PHP] form post without pathinfo

2001-03-17 Thread Clayton Dukes
ath changes and screws up the images, colors, etc after the user submits.   TIA!   Clayton Dukes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Headers

2001-03-17 Thread Clayton Dukes
Thanks :-) Clayton Dukes - Original Message - From: "Brett" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Saturday, March 17, 2001 9:17 AM Subject: Re: [PHP] Headers > > How do I do something like: > > if headers_sent=false >

Re: [PHP] Headers

2001-03-17 Thread Clayton Dukes
Thanks, How do I do something like: if headers_sent=false include header.inc else some other thing Please forgive my inexperience, I'm still learning :-) Clayton Dukes - Original Message - From: "Gianluca Baldo" <[EMAIL PROTECTED]> To: "Clayton Duk

[PHP] Headers

2001-03-17 Thread Clayton Dukes
I'm sure everyone's seen the following:   Warning: Cannot add header information - headers already sent by (output started   But, How can I add check to see if the header information has not been sent and add it if it hasn't (else just print without the header info)?     TIA

Re: [PHP] Call to undefined function

2001-03-15 Thread Clayton Dukes
it's an older app. But I got it. Thanks :-) Clayton Dukes CCNA, CCDA, CCDP, CCNP Internetwork Solutions Engineer Internetwork Management Engineer Thrupoint, Inc. Tampa, FL (c) 904.477.7825 (h) 904.292.1881 - Original Message - From: "Jack Dempsey" <[EMAIL PROTEC

Re: [PHP] Call to undefined function

2001-03-15 Thread Clayton Dukes
Nevermind. The php.ini was replaced which changed my include path. Clayton Dukes CCNA, CCDA, CCDP, CCNP Internetwork Solutions Engineer Internetwork Management Engineer Thrupoint, Inc. Tampa, FL (c) 904.477.7825 (h) 904.292.1881 - Original Message - From: Clayton Dukes To

[PHP] Call to undefined function

2001-03-15 Thread Clayton Dukes
Hey everyone,   I just upgraded from php v4.03pl1 to php 4.04pl. Everything seems to work okay except my IMP/Webmail.   When I load the url, I get: Fatal error: Call to undefined function: page_open() in /home/www/websites/horde/imp/index.php3 on line 15   Is this something that is no longer

[PHP] Interactive Shells

2001-03-15 Thread Clayton Dukes
Can PHP work with interactive shells such as telnet like Expect does?   ie: waitfor "ogin:" put $login waitfor "assword:" put $password     etc.     TIA! :-)       Clayton DukesCCNA, CCDA, CCDP, CCNPInternetwork Solutions EngineerInternetwork Management EngineerThrupoint, Inc.Tampa, FL(c) 904

Re: [PHP] demo application suggestions

2001-03-08 Thread Clayton Dukes
Try IMP webmail - Original Message - From: Chad Cunningham <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 08, 2001 8:30 PM Subject: [PHP] demo application suggestions > > I am going to be manning a booth on apache at a Linux trade show, and I'm > looking for suggesti

Re: [PHP] system() and stdout

2001-03-04 Thread Clayton Dukes
You have to have the output as part of the system or exec command, Here's a ping function, maybe this will help: exec("/bin/ping -c3 $ipaddr", $output, $error); echo "\n"; while (list(,$line) = each($output)){ echo $line, "\n"; } if ($error){ die("OS Error:

Re: [PHP] Cutting long strings for tables

2001-03-01 Thread Clayton Dukes
Juan, I'm not sure, but isn't there a wrap function? - Original Message - From: Juan Germano <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, March 01, 2001 6:29 PM Subject: [PHP] Cutting long strings for tables > Hi. I use this function with the strings I'll be showing

Re: [PHP] A small Q

2001-02-28 Thread Clayton Dukes
It can bee .poopoo if you want it to be :-) - Original Message - From: "Harshdeep S Jawanda" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Wednesday, February 28, 2001 10:04 AM Subject: [PHP] A small Q > Hi, > > Does the extension of files that are require()-d or in

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, >

[PHP] Converting code to a function

2001-02-27 Thread Clayton Dukes
E FROM ABOVE... }   But then I get:   Warning: Supplied argument is not a valid MySQL result resource in /home/www/websites/gdd/inc/funcs.inc on line 76Fatal Error - Can't fetch docid     when I call it from a web page using:   viewdoc($docid);     What have I done wrong?       TIA! Cl

Re: [PHP] search + sitemap scripts

2001-02-27 Thread Clayton Dukes
Try DGS Search, very easy and works great! http://www.digitalgenesis.com/software/dgssearch.html - Original Message - From: "Ali" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 27, 2001 2:22 PM Subject: [PHP] search + sitemap scripts > could anybody help with lin

Re: [PHP] good ide?

2001-02-27 Thread Clayton Dukes
Ouch! At $250.00, I'll stick to using Vim for free :-) - Original Message - From: "James Moore" <[EMAIL PROTECTED]> To: "Luke Loeffler" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 27, 2001 2:14 PM Subject: RE: [PHP] good ide? > May I suggest the Zend IDE, at the mo

Re: [PHP] How to wrap output of formatted text

2001-02-26 Thread Clayton Dukes
row = mysql_fetch_array($sth); if ($row[0] != "") { echo $row[0]; prints the data, but some of the results are long strings of text that don't wrap in the browser, how can I force them to

[PHP] How to wrap output of formatted text

2001-02-26 Thread Clayton Dukes
wrap in the browser, how can I force them to wrap at the edge of the browser?       Thanks, Clayton Dukes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Making a variable -Trim output

2001-02-26 Thread Clayton Dukes
Dan... You are the man, thanks! :-) - Original Message - From: "Dan Olsen" <[EMAIL PROTECTED]> To: "Clayton Dukes" <[EMAIL PROTECTED]> Sent: Monday, February 26, 2001 12:30 PM Subject: RE: [PHP] Making a variable -Trim output > > clayton

Re: [PHP] Making a variable -Trim output

2001-02-26 Thread Clayton Dukes
ct: RE: [PHP] Making a variable > > you can concatentate the variable inside the foreach loop. > > foreach (file("$file.txt") as $line) { > $data .= ("" . trim(str_replace("'", "''", $line)) . "\n"); > } > > >

Re: [PHP] Making a variable

2001-02-26 Thread Clayton Dukes
e("$file.txt") as $line) { > $data .= ("" . trim(str_replace("'", "''", $line)) . "\n"); > } > > > > -Original Message- > From: Clayton Dukes [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 26, 2001 8:

[PHP] Making a variable

2001-02-26 Thread Clayton Dukes
("" . trim(str_replace("'", "''", $line)) . "\n");   }   Simply adding the $data = in front of it doesn't work, I assume it needs to be enclosed by () or ; or something right?     Thanks :-)     Clayton Dukes -- PHP General Mailing List

Re: [PHP] PERL to PHP

2001-02-26 Thread Clayton Dukes
How? I don't know perl all that well, I am just trying to convert some scripts. - Original Message - From: "kevin1" <[EMAIL PROTECTED]> To: "Clayton Dukes" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, February 26, 2001 10:29 AM

[PHP] PERL to PHP

2001-02-26 Thread Clayton Dukes
  Hi :-) Can someone tell me how to do the equivalant of this Perl script in PHP?   ## This function prints all lines between the dashes read in a text file### ### The file looks like this:   # - # Somedata:   something # Someother:  something else # -

[PHP] Printing long strings

2001-02-25 Thread Clayton Dukes
How can I get php to print a long string and ignore any of the characters in the string?   ie: $string = "so print $string;   isn't there some kind of command to use that keeps the string exactly as it is?       Clayton DukesCCNA, CCDA, CCDP, CCNPInternetwork Solutions EngineerInternetwork Ma

Re: [PHP] Unwanted Characters

2001-02-25 Thread Clayton Dukes
riginal Message ----- From: <[EMAIL PROTECTED]> To: "Clayton Dukes" <[EMAIL PROTECTED]> Sent: Sunday, February 25, 2001 2:28 AM Subject: Re: [PHP] Unwanted Characters > Clayton Dukes wrote: > > > > How do I remove unwanted/unprintable characters from a vari

[PHP] Unwanted Characters

2001-02-24 Thread Clayton Dukes
How do I remove unwanted/unprintable characters from a variable? $sometext = "ThÀe cØar röøan over mÖy dog" needs to be filtered and reprinted as: "The car ran over my dog" Thanks :-) Clayton Dukes

Re: [PHP] comparing numbers

2001-02-24 Thread Clayton Dukes
Ahh, cool, thanks :-) - Original Message - From: "Joe Stump" <[EMAIL PROTECTED]> To: "Clayton Dukes" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, February 24, 2001 10:03 PM Subject: Re: [PHP] comparing numbers > just replace the

[PHP] comparing numbers

2001-02-24 Thread Clayton Dukes
How can I do something like the following shell script, in PHP? (I know this won't work normally, but you get the idea). if [ $id <= 59 ]; then $id=81 TIA! Clayton Dukes

Re: [PHP] Help with mass import to MySQL using PHP

2001-02-24 Thread Clayton Dukes
the first field, ID, is just for keeping a standard sequence and isn't called from any web pages. The second ($docid) is a random field which is called from a web page, which makes it harder (if not impossible) to guess/hack. This makes it a bit more secure. A note about the old docid #'s, my int

Re: [PHP] Help with mass import to MySQL using PHP

2001-02-24 Thread Clayton Dukes
1. Local Server 2. Either one, I'm trying to learn PHP 3. Yes, this is just a project for which I am not making any money, but I can pay someone in respect and admiration ;-) - Original Message - From: Todd Pillars To: Clayton Dukes Sent: Saturday, February 24, 2001 2:

[PHP] Help with mass import to MySQL using PHP

2001-02-24 Thread Clayton Dukes
Hi everyone,   I'm working on converting my site to PHP/MySql.     I need to figure out a way to import several thousand text files into the database while applying certain PHP functions to them.     From now on, when a user submits a new document, it gets a random docid assigned to it using

Re: [PHP] Help INSERTing to MySQL

2001-02-23 Thread Clayton Dukes
Thanks! :-) Man, what a great list! You guys kick a$$ - Original Message - From: "Kyndig" <[EMAIL PROTECTED]> To: "Clayton Dukes" <[EMAIL PROTECTED]>; "Philip Olson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, Febru

Re: [PHP] Help INSERTing to MySQL

2001-02-23 Thread Clayton Dukes
y','Mythology'), date varchar(10), subject varchar(200), title varchar(200), author varchar(200), email varchar(50), language enum('English','Danish','Dutch','Finnish','German','Spanish'), grade int(3), level en

[PHP] Help INSERTing to MySQL

2001-02-23 Thread Clayton Dukes
Hello, This is my first attempt, so I'm prolly doing something stupid, but can someone tell me why this doesn't work? All it returns is "Unable to INSERT to database"       ---BEGIN---    $time = time();   $rand = Random_Password(5);   $docid = $time . $rand;       if (isset($email) && isset