Re: [PHP] html editor written in PHP

2005-05-18 Thread Mark Cain
wonderfully well on windows machine and appear broken on Macs. Mark Cain - Original Message - From: Dustin Krysak [EMAIL PROTECTED] To: PHP php-general@lists.php.net Sent: Wednesday, May 18, 2005 6:02 PM Subject: [PHP] html editor written in PHP Has anyone seen an example of a HTML editor

[PHP] Re: OT [PHP] What Works Works Validator

2005-06-01 Thread Mark Cain
Net Mechanic free for up to 5 pages spellchecker browser check image check link check load time calculations I've used it for many years. http://www.netmechanic.com/toolbox/html-code.htm Mark Cain - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: php-general@lists.php.net

Re: [PHP] write to file question, rewritten

2005-06-01 Thread Mark Cain
write your data in a manner like this: file_put_contents('/root/directory/pathtoyourfile/mydata.txt',$filecontent); Mark Cain - Original Message - From: mayo [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, June 01, 2005 7:01 PM Subject: [PHP] write to file question

Re: [PHP] Site Design Strategy

2005-06-03 Thread Mark Cain
-technical volunteers and they have populated hundreds of articles on dozen of pages. : http://www.southshorechurch.com/index.htl?php_gen If you need more info or functions to make this work, let me know. Hope this helps, Mark Cain . - Original Message - From: asinning [EMAIL PROTECTED

Re: [PHP] Frames or iframes? (Basically The devil or deap sea or A rock and a hard place etc) - - - - (0T)

2005-06-04 Thread Mark Cain
() { var flashMovie=getFlashMovieObject(); flashMovie.StopPlay(); } /SCRIPT Remember that if you change the name from test1 to something else, it must be change everywhere in the functions also. HTH, Mark Cain - Original Message - From: Ryan A [EMAIL PROTECTED] To: php php-general

Re: [PHP] url by mail

2005-06-04 Thread Mark Cain
$lines = file('http://www.example.com/'); foreach ($lines as $line) { echo $line . \n; } This ought to do it. Try it and see. But be aware that if the allow_url_fopen was not enable at the compile time, this won't work. Mark Cain - Original Message - From: vlad georgescu [EMAIL

Re: [PHP] What is faster?

2005-06-05 Thread Mark Cain
Time: . $end1 . P . $lapse1; ? Mark Cain - Original Message - From: Andy Pieters [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Sunday, June 05, 2005 12:24 PM Subject: [PHP] What is faster? Hi all Of these two expressions, which one is faster? if(!(is_null($customMenu

Re: [PHP] looping through an array problem

2005-06-05 Thread Mark Cain
One way to do it is to change this : $pub_sidebar[] = ul class='sidebar-menu'a class='img-link' to this: $pub_sidebar[$cartoon['publisher_id']] = ul class='sidebar-menu'a class='img-link' Mark Cain - Original Message - From: Jack Jackson [EMAIL PROTECTED] To: php-general@lists.php.net

Re: [PHP] What is faster?

2005-06-06 Thread Mark Cain
learn more? Mark Cain - Original Message - From: Chris Shiflett [EMAIL PROTECTED] To: Mark Cain [EMAIL PROTECTED] Cc: Andy Pieters [EMAIL PROTECTED]; php-general@lists.php.net Sent: Sunday, June 05, 2005 9:56 PM Subject: Re: [PHP] What is faster? Mark Cain wrote: I checked the first

Re: [PHP] split()?

2005-06-14 Thread Mark Cain
Here is one way to do it: $rr=thisscritjajsj[ OUT1 ]ajdamsda;sjo;tkpdk[ OUT2 ]sdfmjs[ OUT3 ]dfjlsd; preg_match(/.*\[(.*)\].*\[(.*)\].*\[(.*)\].*/, $rr, $match); list($whole_match[],$a[],$a[],$a[]) = $match; print pre; print_r ($a); print /pre; exit; Mark Cain - Original Message

Re: [PHP] GET form method and accessing its value into a cookie

2005-07-21 Thread Mark Cain
against the contents of the cookie, if they are different, delete the cookie and assign the new cookie (also remember to assign to the first page variable). Read this: http://us2.php.net/manual/en/function.setcookie.php Mark Cain - Original Message - From: Steve Turnbull [EMAIL

Re: [PHP] Prepopulating form fields afer an error

2005-07-25 Thread Mark Cain
? if ($shipped_via == UPS) echo selected; ?UPS /select Mark Cain - Original Message - From: Jack Jackson [EMAIL PROTECTED] To: [php] PHP General List php-general@lists.php.net Sent: Monday, July 25, 2005 2:37 PM Subject: [PHP] Prepopulating form fields afer an error Hi, I have a form

Re: [PHP] very simple, yet can't think how.

2005-08-01 Thread Mark Cain
the handling of an actual 404 just in case you don't have a user named joe or the surfer miss types. There's a ton of work in getting all of the bases covered - but it's sweet when it's done and you will know a lot of how a server works. Hope this helps. Mark Cain - Original Message

[PHP] Array Assignment

2001-05-04 Thread Mark Cain
I'm new to PHP (which will be obvious in just a minute). In Perl I can assign dynamic keys ad infinitum to an array such as: $sku{$id}{$line}{$price} = 99; But the syntax is escaping me for the same function in PHP. As I was trying to debug my thinking, I ran the following little test and am

[PHP] passing a variable through 2 required files embedded in Javascript

2005-04-28 Thread Mark Cain
? In other words, I want the name of #1 to be reported in #4. If I use $_SERVER[PHP_SELF], that variable reports the name of #4. It gets a little tricky because #3 is called from within a JavaScript tag. Got any suggestions? Mark Cain

Re: [PHP] empty function and array indices

2005-05-01 Thread Mark Cain
array_key_exists('c', $a)? 'empty':'not empty'; Mark Cain - Original Message - From: Gabriel Birke [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Sunday, May 01, 2005 4:47 PM Subject: [PHP] empty function and array indices Hello! Suppose I have the following code: $a = array

Re: [PHP] Newbie Help

2005-05-01 Thread Mark Cain
like that. Mark Cain - Original Message - From: Thomas Bonham [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Sunday, May 01, 2005 10:39 PM Subject: [PHP] Newbie Help Hello All, First of I'm new to this a hop I'm doing this right. If some one can help me with my web site

Re: [PHP] Newbie Help

2005-05-01 Thread Mark Cain
first remove the space between GET and [ I think this keeps your script from find the variable page secondly the variable page already has the php extension being passed to it via the GET statement make the include like: {include($_GET['page']);} try it and let us know. Mark Cain The code

Re: [PHP] Newbie Help

2005-05-01 Thread Mark Cain
, email/email.php.php and so forth. Do it one place or the other -- but do it consistently. Looks like you're close to getting it to work and I'm close to going to bed. Mark Cain The code that I'm trying to do this is the following: ?php if(isset($_GET ['page

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Mark Cain
; $new_data = preg_replace('/(.*)(\/.*)$/i', '$1' . $my_data . '$2', file_get_contents('./test.txt')); echo $new_data; Mark Cain - Original Message - From: Jared Sherman [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, May 03, 2005 2:00 AM Subject: [PHP] php newbie question with xml

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Mark Cain
; $new_data = preg_replace('/(.*)(\/.*)$/i', '$1' . $my_data . '$2', file_get_contents('./test.txt')); echo $new_data; Mark Cain - Original Message - From: Jared Sherman [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Tuesday, May 03, 2005 2:00 AM Subject: [PHP] php newbie question with xml

Re: [PHP] age function

2005-05-04 Thread Mark Cain
); $dob_day=substr($date_of_birth, 8, 2); if($cur_month$dob_month || ($dob_month==$cur_month $cur_day=$dob_day) ) return $cur_year-$dob_year; else return $cur_year-$dob_year-1; } ? Mark Cain` - Original Message - From: Ryan A [EMAIL PROTECTED

Re: [PHP] Finding out their server type

2005-05-04 Thread Mark Cain
you how many websites are on that server. I ran across one the other day that had about 4.000 websites on it. http://www.whois.sc/e-zekiel.com Mark Cain - Original Message - From: Computer Programmer [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, May 04, 2005 7:44 AM

Re: [PHP] need class to send email w/attachments

2005-05-06 Thread Mark Cain
You could try this link. I know that you will find something there: http://www.phpclasses.org/ Mark Cain - Original Message - From: Bosky, Dave [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, May 06, 2005 12:44 PM Subject: [PHP] need class to send email w/attachments