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

2005-08-01 Thread Mark Cain
x27;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 - From: <[EMAIL PROTECTED]> To: Sent: Monday, August 01, 2005 8:44 PM Subject: [

Re: [PHP] Prepopulating form fields afer an error

2005-07-25 Thread Mark Cain
Here's the way I do it: The following is an HTML code snippet with embedded PHP code for the intelligence. >DHL >FedEx >UPS Mark Cain - Original Message - From: "Jack Jackson" <[EMAIL PROTECTED]> To: "[php] PHP General List" Sen

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 Tu

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 ""; print_r ($a); print ""; e

Re: [PHP] What is faster?

2005-06-06 Thread Mark Cain
Care to point me in a direction where I could learn more? Mark Cain - Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: "Mark Cain" <[EMAIL PROTECTED]> Cc: "Andy Pieters" <[EMAIL PROTECTED]>; Sent: Sunday, June 05, 200

Re: [PHP] looping through an array problem

2005-06-05 Thread Mark Cain
One way to do it is to change this : $pub_sidebar[] = " To: Sent: Sunday, June 05, 2005 4:37 PM Subject: [PHP] looping through an array problem > This is something dumb I am doing but: > > Trying to pull all names of publishers in db. This sql: > > SELECT art.art_id,art.publisher_id,publisher.p

Re: [PHP] What is faster?

2005-06-05 Thread Mark Cain
;End Time: " . $end1 . "" . $lapse1; ?> Mark Cain - Original Message - From: "Andy Pieters" <[EMAIL PROTECTED]> To: Sent: Sunday, June 05, 2005 12:24 PM Subject: [PHP] What is faster? > Hi all > > Of these two expressions, which one is

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

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
FlashMovie() { var flashMovie=getFlashMovieObject(); flashMovie.StopPlay(); } 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 PR

Re: [PHP] Site Design Strategy

2005-06-03 Thread Mark Cain
il the right time or to repost a recurring article at certain times.. Works wonderfully well and elevates my perceived status to that of near genius! Here is a link to see it in action or at least to see the finished content. The entire web site is maintained by non-technical volunteers and they hav

Re: [PHP] write to file question, rewritten

2005-06-01 Thread Mark Cain
nction is available to your code you can 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: Sent: Wednesday, June 01, 2005 7:01

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

Re: [PHP] html editor written in PHP

2005-05-18 Thread Mark Cain
ions of JS CMS which work wonderfully well on windows machine and appear broken on Macs. Mark Cain - Original Message - From: "Dustin Krysak" <[EMAIL PROTECTED]> To: "PHP" Sent: Wednesday, May 18, 2005 6:02 PM Subject: [PHP] html editor written in PHP > Has anyo

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: Sent: Friday, May 06, 2005 12:44 PM Subject: [PHP] need class to send email w/attachments Any rec

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: Sent: Wednesday, May 04, 2005 7:44 AM Subjec

Re: [PHP] age function

2005-05-04 Thread Mark Cain
The following code was taken directly from www.php.net/date $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: &q

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Mark Cain
_data; or a little more succinctly $my_data = "foo bar"; $new_data = preg_replace('/(.*)(<\/.*>)$/i', '$1' . $my_data . '$2', file_get_contents('./test.txt')); echo $new_data; Mark Cain - Original Message - From: "Jared Sherman&

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Mark Cain
_data; or a little more succinctly $my_data = "foo bar"; $new_data = preg_replace('/(.*)(<\/.*>)$/i', '$1' . $my_data . '$2', file_get_contents('./test.txt')); echo $new_data; Mark Cain - Original Message - From: "Jared Sherman&

Re: [PHP] Newbie Help

2005-05-01 Thread Mark Cain
the variable -- resulting in main.php, links/index.php.php, 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

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 le

Re: [PHP] Newbie Help

2005-05-01 Thread Mark Cain
thing like that. Mark Cain - Original Message - From: "Thomas Bonham" <[EMAIL PROTECTED]> To: 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 ca

Re: [PHP] empty function and array indices

2005-05-01 Thread Mark Cain
cho array_key_exists('c', $a)? 'empty':'not empty'; Mark Cain - Original Message - From: "Gabriel Birke" <[EMAIL PROTECTED]> To: Sent: Sunday, May 01, 2005 4:47 PM Subject: [PHP] empty function and array indices > Hello! > > Suppos

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

2005-04-28 Thread Mark Cain
that called the header in # 4 ? 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

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