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 the

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 little

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

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 Subject: RE: [PHP] Find and Replace

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 me

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 do it in

[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-25 Thread Clayton Dukes
I have a row in sql that is binary data (a jpeg) I need to echo that data to a table on the web page in the form of the original jepg, when I echo it now, I just get the actual data stream. How can I fix this? - Original Message - From: Mark Roedel [EMAIL PROTECTED] To: Clayton Dukes

[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

[PHP] Syntax Eyes

2001-07-24 Thread Clayton Dukes
='$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 line 1 ??? TIA! -- Clayton Dukes CCNA, CCDA, CCDP, CCNP (c) 904.477.7825 (h) 904.292.1881

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 PROTECTED] To: Php-General

Re: [PHP] Syntax Eyes

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

[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-urlencoded\r\n";

Re: [PHP] GET Command

2001-07-17 Thread Clayton Dukes
) 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! Clayton Dukes CCNA, CCDA, CCDP

[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] To: 'Steve Brett' [EMAIL

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 and Cisco

[PHP] Removing Invalid Users

2001-07-04 Thread Clayton Dukes
','','title','location','text','',0,0,'','','','field',10,'',0,0,0,'',0, '','Default',4096,0); ie: if the email field is bad (test using sendmail?) remove that entry from the database. How can I do this? TIA! Clayton Dukes CCNA, CCDA, CCDP, CCNP Download Free Essays, Term Papers and Cisco Training

Re: [PHP] Getting Information from a CGI POST

2001-07-02 Thread Clayton Dukes
[yesterday.getMonth() + 1]; document.write( 'option value=\' + yesterdayMonth + ' ' + yesterday.getDate() + '\yesterday/option'); /script /select /form - TIA! Clayton Dukes CCNA, CCDA

[PHP] Getting Information from a CGI POST

2001-07-01 Thread Clayton Dukes
, 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 server? Clayton Dukes CCNA, CCDA, CCDP

[PHP] Regular Expression help

2001-06-29 Thread Clayton Dukes
! 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 unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

[PHP] Re: Regular Expression help

2001-06-29 Thread Clayton Dukes
==) || (!eregi(^[_\.0-9a-z-]+@domain.+[a-z],$email)) || (!eregi(^[_\.0-9a-z-]+@otherdomain.+[a-z],$email)) ) $stop = center._ERRORINVEMAIL./centerbr; ---snip--- This doesn't work. (it returns the error no matter what I enter) Thanks guys (and gals?) Clayton Dukes CCNA

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 http

[PHP] Nuke

2001-06-20 Thread Clayton Dukes
for 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 List (http

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] 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 sprach

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 [EMAIL PROTECTED

[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] 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 PROTECTED] Sent: Saturday, May 19

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 PROTECTED]; [EMAIL PROTECTED] Sent: Saturday

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.477.7825 (h

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

[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

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, FL (c

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 (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 Management

[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] escaping php syntax within perl

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

[PHP] PHP/Perl/CGI Question

2001-03-20 Thread Clayton Dukes
ot;;} When I use the function though, the web page (source) comes up as: ?php include("mainfile.php");??php include("header.php");?titleSearch/title...data?include("footer.php");? What am I doing wrong? Why is it printing the php tags instead of executing them? C

Re: [PHP] mail() question

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

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

[PHP] eregi not working???

2001-03-20 Thread Clayton Dukes
ace:]]+", " " , $titlematch[1])); else $title = ""; if ($title == "") $title = "Untitled Document"; return $title;}itruns okay...But, when I use the function, everything is coming back as "Untitled Document". Any suggestions? Clayton

[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 Mailing

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 need

[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

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 headers_sent? if(!isset(hea

[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 notbeen sent and add it if it hasn't (else just print without the header info)? TIA! Clayton Dukes

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 Dukes" [EMAIL P

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 include header.inc if (hea

[PHP] form post without pathinfo

2001-03-17 Thread Clayton Dukes
ent on the path, so if I post using the method above, the path 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]

[PHP] Interactive Shells

2001-03-15 Thread Clayton Dukes
CanPHP 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)

[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

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

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 PROTECTED] To

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 suggestions on

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 in

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

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 moment

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 links

[PHP] Converting code to a function

2001-02-27 Thread Clayton Dukes
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! Clayton Dukes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] F

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

[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 #

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 Subject: Re: [PHP] PERL to

[PHP] Making a variable

2001-02-26 Thread Clayton Dukes
im(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 (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Making a variable

2001-02-26 Thread Clayton Dukes
) as $line) { $data .= ("" . trim(str_replace("'", "''", $line)) . "\n"); } -Original Message- From: Clayton Dukes [mailto:[EMAIL PROTECTED]] Sent: Monday, February 26, 2001 8:17 AM To: [EMAIL PROTECTED] Subject: [PHP] Making a variable How c

Re: [PHP] Making a variable -Trim output

2001-02-26 Thread Clayton Dukes
a variable you can concatentate the variable inside the foreach loop. foreach (file("$file.txt") as $line) { $data .= ("" . trim(str_replace("'", "''", $line)) . "\n"); } -Original Message- From: Clayton Dukes [mailto:[EMAIL PROT

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- the only pro

[PHP] How to wrap output of formatted text

2001-02-26 Thread Clayton Dukes
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] How to wrap output of formatted text

2001-02-26 Thread Clayton Dukes
= $text[$i]." "; $i++; } else { $output .= "\n"; $length = 0; } } return $output; } Then in the php file: echo (wraptext($row[0],80)); I'm learning :-) - Original Messag

Re: [PHP] Unwanted Characters

2001-02-25 Thread Clayton Dukes
e - 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 variable? $sometext = "The car ran over

[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 = "some'strin^g"; 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

[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 the

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:25 PM

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

[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

[PHP] Unwanted Characters

2001-02-24 Thread Clayton Dukes
How do I remove unwanted/unprintable characters from a variable? $sometext = "The car ran over my dog" needs to be filtered and reprinted as: "The car ran over my dog" Thanks :-) Clayton Dukes

[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($docid)) {

Re: [PHP] Help INSERTing to MySQL

2001-02-23 Thread Clayton Dukes
), authorcomments varchar(200), teachercomments varchar(200), approve enum('Y','N'), docdata text, PRIMARY KEY (id), UNIQUE id (id) - Original Message - From: "Philip Olson" [EMAIL PROTECTED] To: "Clayton Dukes" [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent:

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, February 23, 2001 8:50 PM Subject: Re: