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: [
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
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
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
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
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
;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
$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
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
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
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
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]>
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
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
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
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
_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&
_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&
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
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
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
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
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
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
24 matches
Mail list logo