[PHP] compiling with stronghold

2001-04-23 Thread charles
Anyone know of docs in place for compiling php4 under stronghold? Its apache based, however I was hoping that someone had put some doc into place specific to this webserver. Thanks- charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] IMLIB

2001-04-25 Thread Charles
Hello, Somebody know how to make IMLIB library compile into php ? i tried --with, --enable, but doesn't work ! Thanks. -- Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] group comparision

2001-05-17 Thread charles
ing like: if ( ($add="1") && ($remove="1") || ($add="1") && ($view="1") || ($remove="1") && ($view="1") ) { Thanks! -Charles -- ** There are two major products to come out of Berkeley: LSD and UN

Re: [PHP] group comparision

2001-05-17 Thread charles
I don't think this is quite what I am looking for because I am hoping to issue an error message if more than one variable has a value of one. Sorry for not including this as a stipulation. Thanks -Charles On Thu, 17 May 2001, elias wrote: > I understand that you want to check if: &g

[PHP] while loops [ newbie ]

2001-05-17 Thread charles
the username field identically. $filename charles routers craig systems tonyportmasters i would think that a while loop could do this and possibly write the output, minus the line i want to take away to a temp file and then copy it over. in bash i would use a

[PHP] OOP Problem

2002-01-22 Thread Charles
php give me a error, call to undefined function: mysql_connect() php think that mysql_connect is my private function ? Charles Ps. sorry my poor english -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[PHP] PHP 5.4 new output control API callback buffer

2012-03-05 Thread Charles
Hi, I'm just wondering, what is the right output of below code should be ob_start(function($o) { fwrite(STDERR, $o); }); echo 'hello'; ob_end_clean(); Does it should print "hello" or does it should print nothing? In PHP 5.3, it prints hello, but in 5.4.0 it prints nothing. Looking at the C cod

Re: [PHP] no traffic

2012-03-06 Thread Charles
On Tue, Mar 6, 2012 at 8:55 PM, Lawrence Decker wrote: > I've been playing with PHP for about 6 years and I have no idea why this is > happening... I've been writing a script to auth to AD.  When I run the > script on my dev box, nothing.  I have wireshark running in the background > on the dev bo

Re: [PHP] no traffic

2012-03-06 Thread Charles
On Tue, Mar 6, 2012 at 8:55 PM, Lawrence Decker wrote: > I've been playing with PHP for about 6 years and I have no idea why this is > happening... I've been writing a script to auth to AD.  When I run the > script on my dev box, nothing.  I have wireshark running in the background > on the dev bo

Re: [PHP] Function mktime() documentation question

2012-03-07 Thread Charles
On Thu, Mar 8, 2012 at 7:01 AM, Simon Schick wrote: > $date = new DateTime($year . '-' . $current_month . '-1'); > $date->add( new DateInterval( 'P1M' ) ); // Add a period of 1 month to > the date-instance (haven't tried that with the 30th of Jan ... would > be kind-of interesting) > > $days_in_cu

Re: [PHP] Function mktime() documentation question

2012-03-08 Thread Charles
On Fri, Mar 9, 2012 at 9:23 AM, Tedd Sperling wrote: > On Mar 8, 2012, at 6:53 PM, Daniel Brown wrote: > On Mar 8, 2012 6:14 PM, "Tedd Sperling" wrote: >> >> > Side-point: I find it interesting that getdate() has all sorts of neat >> > descriptions for the current month (such as, what weekday a

Re: [PHP] Function mktime() documentation question

2012-03-09 Thread Charles
On Fri, Mar 9, 2012 at 10:58 PM, Tedd Sperling wrote: > On Mar 9, 2012, at 5:37 AM, Ford, Mike wrote: >>> From: Tedd Sperling [mailto:tedd.sperl...@gmail.com] >>> But why does anyone have to use the next month to figure out how >>> many days there are are in this month? Do you see my point? >> >>

Re: [PHP] Function mktime() documentation question

2012-03-09 Thread Charles
On Sat, Mar 10, 2012 at 12:07 AM, Tedd Sperling wrote: > On Mar 9, 2012, at 11:17 AM, Charles wrote: > >> On Fri, Mar 9, 2012 at 10:58 PM, Tedd Sperling >> wrote: >>> On Mar 9, 2012, at 5:37 AM, Ford, Mike wrote: >>>>> From: Tedd Sperling [mailto:t

Re: [PHP] Function mktime() documentation question

2012-03-09 Thread Charles
On Sat, Mar 10, 2012 at 12:52 AM, Charles wrote: > On Sat, Mar 10, 2012 at 12:07 AM, Tedd Sperling > wrote: >> On Mar 9, 2012, at 11:17 AM, Charles wrote: >> >>> On Fri, Mar 9, 2012 at 10:58 PM, Tedd Sperling >>> wrote: >>>> On Mar 9, 2012,

Re: [PHP] Function mktime() documentation question

2012-03-09 Thread Charles
On Sat, Mar 10, 2012 at 12:57 AM, Charles wrote: > On Sat, Mar 10, 2012 at 12:52 AM, Charles wrote: >> On Sat, Mar 10, 2012 at 12:07 AM, Tedd Sperling >> wrote: >>> On Mar 9, 2012, at 11:17 AM, Charles wrote: >>> >>>> On Fri, Mar 9, 2012 at 10:58 P

[PHP] Bug with "+" sign when using CLI?

2002-12-06 Thread Charles Bronson
I'm using the CLI script shown below to parse and show all argv variables passed to it. ## -rwxr-xr-x1 nobody nobody plusbug.php ## #!/usr/bin/php -q ### END

RE: [PHP] Problems with header

2002-12-06 Thread Charles Bronson
It looks like your trying to do something before redirecting the user. Try the below near the end of your script so everything completes before redirecting them. Echo "; Bronson_AT_udatasystems.com -Original Message- From: Carlos Alberto Pinto Hurtado [mailto:[EMAIL PROTECTED]] Sent: Fr

RE: [PHP] html output from system() command

2002-12-06 Thread Charles Bronson
If you try viewing the source of the webpage it will probably show up correctly. If this is the case, try putting the output into a variable and passing it to the nl2br() function. Echo nl2br($commandoutput); And/or make your way to http://www.php.net/manual/en/function.nl2br.php Bronson_AT_uda

RE: [PHP] Mail(): How much time?

2002-12-06 Thread Charles Bronson
There are a couple of spots it may be slowing down depending on how your doing things. I have a mysql database and submit one query in which I hold all the data in an array. Then I loop through the array so I do not need to send multiple queries. I use something like the following, though I like t

[PHP] JOIN for FREE ... Learn and Earn

2003-01-20 Thread Charles Cedeno
Hello: My name is Charles Cedeno. I am now focusing in one online opportunity.I have tried several of these opportunities full of hype promising us thousands of dollars every month. I would get all excited and run to my family and friends with another "Great Money Maker ". I

[PHP] date range assistance needed

2003-03-03 Thread charles kline
7;; Where datestamp is set in MySQL with a timestamp(14) and $attributes[startdate] and $attributes[enddate] are in the format mm/dd/ My query does not return any results. I know there must be something wrong, can anyone point it out? Thanks, Charles -- PHP General Mailing List (http://www.p

[PHP] dealing with dates

2003-03-03 Thread Charles Kline
will be entering the date ranges as mm/dd/. What is the best way to handle adding the date to the MySQL record, and also how to search for that date based on a range in the above stated format? Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] inserting date() into MySQL

2003-03-04 Thread Charles Kline
If I am going to use date('U') to insert an epoch timestamp into a mysql table, what is the appropriate field type to use? thanks charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File upload and permissions

2003-03-06 Thread Charles Kline
chmod 777 - not sure if this is good or not - pretty new to unix administration stuff. What do you all suggest? Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL Alias and PHP

2003-03-07 Thread Charles Kline
Hi all, I have this query: SELECT a.area_name, b.area_name FROM tbl_1 x, tbl_2 a, tbl_2 b WHERE x.area_1 = a.id AND x.area_2 = b.id I am using PEAR DB to get my results as an ASSOC ARRAY. How do I echo the values for a.id and b.id? Thnks Charles -- PHP General Mailing List (http://www.php.net

Re: [PHP] MySQL Alias and PHP

2003-03-07 Thread Charles Kline
, 2003, at 11:09 AM, Rich Gray wrote: Hi all, I have this query: SELECT a.area_name, b.area_name FROM tbl_1 x, tbl_2 a, tbl_2 b WHERE x.area_1 = a.id AND x.area_2 = b.id I am using PEAR DB to get my results as an ASSOC ARRAY. How do I echo the values for a.id and b.id? Thnks Charles I presume you

Re: [PHP] MySQL Alias and PHP

2003-03-07 Thread Charles Kline
E x.area_1 = a.id OR x.area_2 = b.id GROUP BY x.id But this ALWAYS returns the area_name (funding) in the value of area_b (have no idea why) Thanks for any help. It is appreciated. - Charles On Friday, March 7, 2003, at 01:42 PM, Jim Lucas wrote: Then the information in the DB is the

Re: [PHP] MySQL Alias and PHP

2003-03-07 Thread Charles Kline
Wow. That is ALMOST it. The only thing is it does not return the record with a 0 in tbl_1.area_2 - can you think of a workaround? Thanks for the help, Charles On Friday, March 7, 2003, at 06:39 PM, Barajas, Arturo wrote: Let's see: SELECT tbl_1.area_1, areas1.area

[PHP] file_exists() question

2003-03-08 Thread Charles Kline
e calling it, should it be otherwise? Thanks Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP with CGI WRAP

2003-03-13 Thread Charles Kline
appreciated. Thanks Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with string comparison

2003-03-13 Thread Charles Kline
7;%"; $sql .= $attributes['nametofind']; $sql .= "%\' ORDER BY lname ASC"; What I am trying to do is allow the user to find a personnel record that contains the name to find. Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with string comparison

2003-03-13 Thread Charles Kline
,lname,mname. Let me try to say what I am trying to do. I have a table of people and have the names saved in fields: fname, lname, mname. I want to have a search field where the user can find a persons record by typing in all or part of their name. What would this kind of query look like? Thanks

[PHP] PHP and MySQL Full Text Search Problem

2003-03-13 Thread Charles Kline
is to this query in $attributes['searchstring'] I get 0 results. If I pass Christine I get all 5. What do I need to modify to make this work? Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Newbie MySQL INSERT Q

2003-03-14 Thread Charles Kline
reak them up and use two of these? $result = $db->query($sql) Thanks Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to convert an array to variables?

2003-03-15 Thread Charles Kline
sing a foreach() I want to create a variable with a unique incremental name for each of the values. for example: $dra_1 = 5; $dra_2 = 8; $dra_3 = 9; How would I do this? A variable that has a variable name based on a counter in the loop? Not sure the syntax for that. Thanks Charles -- PHP Ge

[PHP] PHP User Groups

2003-03-15 Thread Charles Kline
New Jersey (USA) Please feel free to contact me off list. Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to convert an array to variables?

2003-03-15 Thread Charles Kline
) I want to create a variable with a unique incremental CK> name for each of the values. CK> for example: CK> $dra_1 = 5; CK> $dra_2 = 8; CK> $dra_3 = 9; CK> How would I do this? A variable that has a variable name based on a CK> counter in the loop? Not sure the syntax fo

Re: [PHP] File upload Stuff ... well kinda.

2003-03-15 Thread Charles Kline
to write to a directory. Check with the host on this. - Charles On Saturday, March 15, 2003, at 09:53 PM, Philip J. Newman wrote: RIghto then. Just make a nice website, on my windows box and everything and when i moved it to the live server, the things that didn't work where file up

Re: [PHP] building a large-scale application using oop

2003-03-16 Thread Charles Kline
ng at the sources. - Charles On Sunday, March 16, 2003, at 12:57 PM, [EMAIL PROTECTED] wrote: Hi, I am currently working on transforming a rather large software package to oop. I do have a few years of experience with php, but just started to use oop. One of the first question that arose was h

[PHP] PHP & MS Exchange Server problem

2003-07-16 Thread Charles Vos
Hello All--- I'm having some trouble getting PHP to communicate with my Windows 2000 MS Exchange Server... I'm running PHP 4.3.2 on a Win2000 machine serving with Apache 1.3. The code I'm using is: $mbox = imap_open("{x.x.x.x:143}","admin","adminpass", OP_HALFOPEN); $err = imap_errors();

Re: [PHP] File System

2003-03-16 Thread Charles Kline
On Monday, March 17, 2003, at 12:58 AM, Philip J. Newman wrote: How do i delete a file ... ? kill?? dele *srugs* -- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne

Re: [PHP] File System

2003-03-16 Thread Charles Kline
$result = unlink("file.txt") or die("Operation failed!'); On Monday, March 17, 2003, at 12:58 AM, Philip J. Newman wrote: How do i delete a file ... ? kill?? dele *srugs* -- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- PHP General Mailing List (ht

[PHP] stripping slashes before insert behaving badly

2003-03-17 Thread Charles Kline
e slash. I am not sure what to modify to fix this so the literal slash is not written. Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] re: variables with ""

2003-03-17 Thread Charles Kline
php has a function stripslashes() you could try using. - charles On Monday, March 17, 2003, at 10:11 AM, Ian A. Gray wrote: Using the \ or using single quotes instead of double is great. However I am now finding a problem if someone inputs either single or double quotes on a form which uses

Re: [PHP] stripping slashes before insert behaving badly

2003-03-17 Thread Charles Kline
John, You are right, something was adding the additional slash. I removed the addslashes() and it fixed the problem. Something I am doing must already be handling that... will step through the code AGAIN and see if I can find it. - Charles On Monday, March 17, 2003, at 12:19 PM, John W

[PHP] What is the difference: include()

2003-03-17 Thread Charles Kline
What is the difference as in... why one or the other? include('somefile.php'); include("somefile.php"); Just wondering... - ck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What is the difference: include()

2003-03-17 Thread Charles Kline
perfect. thanks for the explanation. cheers, charles On Monday, March 17, 2003, at 02:01 PM, Pete James wrote: Only that you can embed vars in the second one. if $foo='bar'; include('somefile_{$foo}'); will include the file 'somefile{$foo}', where include("

[PHP] strstr() question

2003-03-18 Thread Charles Kline
What is the expected return when using strtr() to compare a string to an empty string? example: $myval = strstr('bob', ''); Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Does PHP run better under any specific unix os?

2003-03-18 Thread Charles Kline
Just wondering. I am trying to decide whether to build a FreeBSD server or other... open to suggestions Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Anybody have any thoughts on Smarty?

2003-03-19 Thread Charles Kline
Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] date question

2003-03-19 Thread Charles Kline
verted is formatted, if you all get what I am saying... Thanks Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php, mysql, and method question

2003-03-20 Thread Charles Kline
have their order number incremented. Maybe there is a better way to do this? Just not sure. Maybe not with a database at all? Thanks for suggestions. Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] To use PEAR::DB or the PHP database functions

2003-03-20 Thread Charles Kline
Pear is really nice. I am very happy with it. - Charles On Thursday, March 20, 2003, at 02:56 PM, Merritt, Dave wrote: All, I've always used MySQL databases and the MySQL functions in PHP for my code in the past. However, I'm now working on a project that I want the project to be

Re: [PHP] Validation of Numeric string sent in a form

2003-03-20 Thread Charles Kline
is_numeric(yoursting); this returns true if string is a number On Thursday, March 20, 2003, at 08:32 PM, Orlando Pozo wrote: Hello all, I am Orlando Pozo How could I verify if a variable is a "Numeric string"? , I need help in this; for example when I submit a form, all texts fields are sent

[PHP] Parsing results from mySQL query

2003-03-22 Thread Charles Kline
Hi everyone, I have ALMOST gotten this working (mySQL part works). I have gotten the advice that this is easier to do in PHP then to try and make this query work in mySQL. Here is the query and a sampling of the current results (from phpMyAdmin) SELECT p.fname, p.lname, w.web_li

[PHP] prepare() and execute()

2003-03-24 Thread Charles Kline
hi Could anyone give me an example of a prepare() and execute() that retrieves a simple dataset as an associative array and then prints it to the screen? I can only seem to find examples that do an INSERT and I am having trouble doing the translation. Thanks charles -- PHP General Mailing

Re: [PHP] Dynamic Form

2003-03-24 Thread Charles Kline
If the page does not submit between changes, PHP will not be much help, that would be JavaScript's job. You could use PHP to prepare the arrays that JavaScript will use to accomplish this. - Charles On Monday, March 24, 2003, at 11:32 AM, Keven Jones wrote: Hi, Can someone tell me if

[PHP] formatting textarea input on output

2003-03-25 Thread Charles Kline
hi all, i have a textarea in a form which gets inserted into a table in my database (mySQL). When displaying this text back to the screen, how do i retain the line breaks etc. that were in the original input? thanks charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] MySQL and phpMyAdmin Issues

2003-03-25 Thread Charles Kline
I am by no means an expert (even remotely) but I do recall instructions on exactly how to do this in the documentation for MySQL - I think under the "how to upgrade" section. - Charles On Monday, March 3, 2003, at 06:53 PM, Stephen Craton wrote: Hello, Yesturday I made a big mist

Re: [PHP] formatting textarea input on output

2003-03-25 Thread Charles Kline
I hang my head in shame... yes. As a matter of fact, I did on my second skim through my PHP ref. manual... thanks for the pointer just the same. - charles On Tuesday, March 25, 2003, at 05:38 PM, CPT John W. Holmes wrote: i have a textarea in a form which gets inserted into a table in my

[PHP] html_quickform - array question

2003-03-26 Thread Charles Kline
gt; string(4) "2003" } I am used to getting this data like: $form->getSubmitValue("field_name"); But doing that with this array just returns: Array Anyone know how to get to the data? Thanks charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] html_quickform - array question

2003-03-26 Thread Charles Kline
Okay. I think I understand. So I do something like this: $thedate = $lr_form->getSubmitValue('lr_pub_date'); echo "The month: $thedate['m']"; Is that what you meant? - Charles On Wednesday, March 26, 2003, at 09:31 PM, Leif K-Brooks wrote: Are you trying to p

Re: [PHP] html_quickform - array question

2003-03-26 Thread Charles Kline
Great. Thanks. - Charles On Wednesday, March 26, 2003, at 09:48 PM, Leif K-Brooks wrote: Yes, but you can't put put the single quoted array key directly in the double-quotes string, try: $thedate = $lr_form->getSubmitValue('lr_pub_date'); echo "The month: {$thedate

[PHP] date math question

2003-03-27 Thread Charles Kline
, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date math question

2003-03-27 Thread Charles Kline
Okay cool. This leads me to another question. If I have stored the date as an epoch then is there a way using PHP and MySQL to say find all the records that have been added this YEAR (not last 365 days)? Thanks Charles On Friday, March 28, 2003, at 12:31 AM, Leo Spalteholz wrote: On March 27

Re: [PHP] date math question

2003-03-27 Thread Charles Kline
e ( 0, 0, 0, 1, 1, date['Y']); // first day of this year $end = mktime ( 0, 0, 0, 12, 31, date['Y']); // last day of this year then select all record where timestamp >= $start and timestamp <= $end should do the job Hope this helps Foong "Charles Kline" <[EM

Re: [PHP] Validate MySQL date

2003-03-31 Thread Charles Kline
try the checkdate() function. i think that will do what you need. On Monday, March 31, 2003, at 11:06 PM, Ben C. wrote: How do I easily check to see if a MySQL formatted date is valid such as if a user enters 2003/02/28 would return true 2003/02/31 would return false I have check the manual an

[PHP] getting values from objects

2003-04-01 Thread Charles Kline
hi there, if this: $res_pform->getSubmitValue("investigator5"); returns an array, how do I get to the individual values in that array without first setting it to a variable like: $myvar = $res_pform->getSubmitValue("investigator5"); echo $myvar['field&#x

Re: [PHP] getting values from objects

2003-04-01 Thread Charles Kline
he keys without setting it first to a variable (which is the only way I know how to now). Thanks, Charles On Tuesday, April 1, 2003, at 03:18 PM, Dan Joseph wrote: Have you tried: extract ($myvar = $res_pform->getSubmitValue("investigator5")); -Dan Joseph -Original Message-

[PHP] When to use a text file rather then a database

2003-04-05 Thread Charles Kline
Hello all, I have a text blurb that is on the home page of a site. I need to make this block of text editable through a form in the admin section of the site. Is it worth having a table in the db or would I be better off writing to a file for this? Thanks, Charles -- PHP General Mailing List

[PHP] reading a file into variable for using in a javascript

2003-06-08 Thread Charles Kline
x27;t figure out which to use. Thanks Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] stripping newlines from a string

2003-06-08 Thread Charles Kline
Hi all, How would i go about stripping all newlines from a string? Thanks, Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stripping newlines from a string

2003-06-08 Thread Charles Kline
Yes. Is weird. I thought this would work too, but for some reason it was not removing them all. I wonder if re-saving the files with UNIX linebreaks (or try DOS) would have any effect. Will report back. - Charles On Monday, June 9, 2003, at 02:24 AM, Joe Pemberton wrote: http://www.php.net

Re: [PHP] Can I perform a PHP script from a form but stay on the same page afterwards?

2002-08-15 Thread Charles Fowler
Check out Liz Fulgham article on PHP and Forms ->> http://softwaredev.earthweb.com/script/article/0,,12063_996351,00.html It show how the _SERVER fuction/varible is used. Cheers CJ Jim Dam wrote: > http://www.faqts.com/knowledge_base/view.phtml/aid/235/fid/17 > - Original Message - > F

[PHP] How can I strip the code from HTML pages to extract the contents of a HTML page.

2002-08-28 Thread Charles Fowler
This may be an interesting challenge for someone or has it been done before Can some one help me. I am looking for a laboursaving method of extracting the contents of a web page (Text only) and dumping the rest of the html code. I need the contents to rework the pages and put the contents into

Re: [PHP] How can I strip the code from HTML pages to extract thecontents of a HTML page.

2002-08-29 Thread Charles Fowler
I was looking into stripping HTML files that contain alot of links. I was trying to avoid the manual way of data entry. The contents i need are the name of the link (plain text which sits out side the HTML code) and all the a href tags. I would like the a href (ie.the hyperlink) tags to be displa

Re: [PHP] and or statement

2002-08-29 Thread Charles Fowler
 PHP and MYSQL Web Development manual by Welling and Thompson states  that logical operators are as follows: ___ Operator    Name    Use Result _

[PHP] zip/zziplib segfaults

2002-09-24 Thread Charles Galpin
_read (or even a zip_close immediately after the open). Can anyone shed some light on how to get zip support working? I'm working on getting a backtrace right now. thanks charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Processing current file

2002-10-30 Thread Charles Wiltgen
any tips. Thank you, -- Charles Wiltgen "Well, once again my friend, we find that science is a two-headed beast. One head is nice, it gives us aspirin and other modern conveniences... but the other head of science is bad! Oh beware the other head of science...it bites!&

[PHP] Plug-in strategies?

2002-10-30 Thread Charles Wiltgen
Hello, Does anyone know of articles that discuss best practices for supporting plug-ins? I searched for a while, but there doesn't seem to be anything out there. -- Charles Wiltgen "Well, once again my friend, we find that science is a two-headed beast. One head is nice, i

Re: [PHP] Re: Plug-in strategies?

2002-10-30 Thread Charles Wiltgen
; You may want to take a look at Metabase... > You may also want to look into MetaL... Thank you for the advice and pointers! :^) -- Charles Wiltgen "Well, once again my friend, we find that science is a two-headed beast. One head is nice, it gives us aspirin and other modern c

Re: [PHP] XML to MS Word

2002-10-30 Thread Charles Wiltgen
Justin French wrote... > I'd say RTF is a format you're going to be able to come to grips with > quicker than .doc -- just take a look at the source of a word doc -- it's > pretty obscure!!! And proprietary, and soon to be obsolete. But Office 11 files will be XML fil

Re: [PHP] XML to MS Word

2002-10-31 Thread Charles Wiltgen
e. But Office 11 files will be XML >> files. > > RTF is not a closed format. (I was talking about Office's native .doc format, not the .rtf file format.) -- Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 4.2.3 compile problem on OSX

2002-11-05 Thread Charles Wiltgen
structions on the Stepwise site. Mac OS X also comes with PHP pre-installed, although I'm not sure what version. -- Charles Wiltgen PlaybackTime <http://PlaybackTime.com/> - Great new QuickTime 6 book - Even pirates need parrots - Nokia's 6 new phones:

[PHP] fopen() with permissions?

2002-11-05 Thread Charles Wiltgen
fopen($thefile, "r")-ing from there (since I think that will be faster than sending everything through an FTP server). Any feedback is appreciated, -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fopen() with permissions?

2002-11-05 Thread Charles Wiltgen
x27;m stumped. Many thanks for the response, and I appreciate any additional thoughts. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fopen() with permissions?

2002-11-06 Thread Charles Wiltgen
se with most people's service providers. I'm starting to think that PHP, although a great choice for anything but in-house software, may not be the right choice for a product aimed at non- technical people. Is there a PHPriest in the house? -- Charles Wiltgen -- PHP General Mailing

Re: [PHP] fopen() with permissions?

2002-11-06 Thread Charles Wiltgen
prompt was, I would've gone with putting the burden on the user. -- Charles Wiltgen "Well, once again my friend, we find that science is a two-headed beast. One head is nice, it gives us aspirin and other modern conveniences... but the other head of science is bad! Oh beware

Re: [PHP] fopen() with permissions?

2002-11-06 Thread Charles Wiltgen
27;t directly use the file handle > returned by fopen - that's why the PHP god has created it :) A very good point, and this will work for me. I mentioned in my first note that I'm afraid that this is about 1,000 times slower than creating/writing a "local" file, but I d

Re: [PHP] fopen() with permissions?

2002-11-06 Thread Charles Wiltgen
ar to have compiled PHP with FTP support. Can anyone recommend a great FTP class? (I'm not exciting about doing this via sockets, but I will if I have to...) Thanks! -- Charles -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fopen() with permissions?

2002-11-06 Thread Charles Wiltgen
they have this? You could, however, always write a > tempfile, then exec your ftp client for a transfer... No curl, no exec. :^) I'm using sockets, and everything working except I can't CD to a directory with a period in it (which is, of course, what I need to do). Does I need t

Re: [PHP] fopen() with permissions?

2002-11-06 Thread Charles Wiltgen
Charles Wiltgen wrote... > I'm using sockets, and everything working except I can't CD to a directory > with a period in it (which is, of course, what I need to do). Does I need to > escapte this somehow for fputs()? Sorry, I'm an idiot...I went back to the FTP RFC and e

Re: [PHP] Running functions as other than nobody

2002-11-06 Thread Charles Wiltgen
27;m using fsockopen() to "speak FTP" to do things like delete files I've created with fopen(). This is far slower and more error-prone, and I'm very, VERY interested in other portable solutions. Please post whatever you find about this to the list, and I'll do the same.

[PHP] File locking problem

2002-11-06 Thread Charles Wiltgen
x27;t really flushed and closed properly. What else can I do? Thanks, -- Charles Wiltgen "Well, once again my friend, we find that science is a two-headed beast. One head is nice, it gives us aspirin and other modern conveniences... but the other head of science is bad! Oh

Re: [PHP] File locking problem

2002-11-06 Thread Charles Wiltgen
is no guarantee that a file is completely written, and I'm wondering what I can do besides insert sleep() statements. -- Charles Wiltgen "Love is a snowmobile racing across the tundra and then suddenly it flips over, pinning you underneath. At night, the ice weasels co

[PHP] Delete a file via FTP (without PHP FTP support)

2002-11-06 Thread Charles Wiltgen
// Delete a file via FTP function deleteFileViaFTP($ftpServer, $user, $password, $ftpDir, $ftpFile) { $error = FALSE; // Open connection to FTP port $ftp = fsockopen($ftpServer,21); $foo = fgets($ftp); if (!ereg("^220*", $foo)) { $error = "*** Error! FTP service not r

Re: [PHP] Delete a file via FTP (without PHP FTP support)

2002-11-07 Thread Charles Wiltgen
me the ability read and write files as another user, my problems would be solved. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Why this open_basedir warning?

2002-11-07 Thread Charles Wiltgen
20 times or so, and I can't figure out why PHP loses it's mind and thinks there's a open_basedir violation. -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why this open_basedir warning?

2002-11-07 Thread Charles Wiltgen
Path() . "index.php"); include($foo); ...and IT worked every time. So the problem appears to be related to using concatenation in my include statement (?). Odd. Many thanks for the response! -- Charles Wiltgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File locking problem

2002-11-07 Thread Charles Wiltgen
Charles Wiltgen wrote... > I'm having file locking problems. > > I'm using fopen() to write a file via FTP. At the end, I'm doing... > > fflush($fp); > fclose($fp); > > ...and then I include it immediately after. But many times I only get pa

  1   2   3   >