În 16 Jul 2001 17:17:57 -0500 Matthew Garman a scris:
> Does all that work under Windows?
don't know, but you can setup a linux box only for fop, leave
the php site on windows as it is now (ouch!)
> Fop looked like it was part of the
> Apache project, and we're running IIS 5.0 on Windows 2000 P
Alvin,
the values for Pass in the table have been passed into the table using the
password('') command and I have also veiwed he content of the tables to
confirm it. IE the value (i've only got one row in the table at the moment)
I have passed to the table IS encrypted.
this is the insert command:
Sorry people just testing...
--
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]
Hi! Please help me to use PHP under Netscape Enterprise Server 3.51 or Fast
track 4.1 Daniel
--
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 PROTECT
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Tom Malone) wrote:
> I am using sessions to track visitors to my site, and one of the things I'd
> like to do is add a time-stamp to each entry in my MySQL database. The
> problem is that, for some reason, the time-stamp part only seems to work
Hi again,
Just a long shot: since password() encrypts the password that's passed
through it, how did the original password get in to db anyway? Was it
encrypted too? Cause if the password in the db is plain text and the user
submits a plain text in a form called $password, the password() funct
On Tue, 17 Jul 2001 15:41, Tim Olsen wrote:
> People,
> I have 4 forms in four seperate html pages included directly (no links
> to includes) in the same .php file, i have it so all the form actions
> is php.self, so when each form is submitted it goes on to display the
> next form in line, using
I think he means swap...
--
Lasse
"Jack Dempsey" <[EMAIL PROTECTED]> wrote in message
000601c10e81$03aca260$22ebd73f@2pqjp01">news:000601c10e81$03aca260$22ebd73f@2pqjp01...
> What exactly are you trying to do? "Switch around" in what way?
>
> Jack
>
> -Original Message-
> From: Alvin Ta
-Original Message-
From: Tim Olsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 2:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] passing variables from forms to the same page
repetatively
People,
I have 4 forms in four seperate html pages included directly (no links
to
inclu
People,
I have 4 forms in four seperate html pages included directly (no links to
includes) in the same .php file, i have it so all the form actions is
php.self, so when each form is submitted it goes on to display the next form
in line, using if and else statements, of course. I want to be able
Yea, I do mean SSH. Oops.
On Saturday 14 July 2001 18:29, you wrote:
> You probably mean SSH tunnel, which is quite feasable-- Hank Marquardt
> posted this earlier to the list:
>
> --- BEGIN QUOTE ---
>
> Works just fine ... as does postgres --
>
> ssh -N -2 -f -C -
Hey everybody,
I've been hacking away on some scripts to do various things (primarily,
a job listing and faculty listing database for my work, Oregon State
University), and I've got to admit, I'm pretty new to this stuff, and a
lot of it I'm just hacking away at.
For instance, today, I threw t
Jason,
I have tried what yoiu suggested. result is the same.
> From: Jason Murray <[EMAIL PROTECTED]>
> Date: Tue, 17 Jul 2001 15:28:11 +1000
> To: "'Brad Wright'" <[EMAIL PROTECTED]>, Alvin Tan
> <[EMAIL PROTECTED]>, PHP General List <[EMAIL PROTECTED]>
> Subject: RE: [PHP] mysql_query problem
Do you mean to suck down the pre-interpreted scripts from a remote
server?
Can't be done. The server interprets the scripts long before they ever
get put on the network. Your best bet will be to e-mail the admin and
ask =>
Ben
-Original Message-
From: Clayton Dukes [mailto:[EMAIL P
Some helpful people posted a PHP credit card number verify on this
list. It would verify Visa and MC cards. I made some modifications
to it so that it would verify other types of cards, and return the
type of card it found. That way, you could have something like this
on your webpage:
Visa
> Unless i have actually defined a function 'password()', calling 'echo
> password('$password') will (...does, i just double checked)
> causes a Fatal
> Error 'Undefined Function'.
> Nice try tho :)
the original mail said to echo $query, which will include some
text in it that says "password('i
What exactly are you trying to do? "Switch around" in what way?
Jack
-Original Message-
From: Alvin Tan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 12:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] regex help
hi all,
a little OT here, but need some quick help. I have a bunch o
the problem is (as i understand it), the password function is a mySQL
function and not a PHP function, therefor it works in the context of a
mysql_query, but not as a PHP function (which your suggested code calls).
Unless i have actually defined a function 'password()', calling 'echo
password('$p
> $testResult = mysql_query("SELECT * FROM login_table where Pass =
$query = "select * from login_table where Pass=password('$password')";
then echo $query to the screen and make sure you see what needs to be there.
Also try mysql_error etc.. from the manual
GL
--ccma
--
PHP General Mail
> > This approach worked pretty well with previous people i teached
> > PHP, but they already had some sort of programming background.
> > This guy hasn't. I find that he has some difficulties picking
> > it up. And I have some difficulties to further help him.
>
> Is he having problems with
I am not sure how easy it would be to learn PHP from scratch without any
prior programming experience...
In my case, knowing C and HTML very well made learning PHP easy as
pie... I think both are great starting points for someone who wants to
do PHP well.
-Original Message-
From: Jaso
Hi all',
I have a mysql_query that reads:
$testResult = mysql_query("SELECT * FROM login_table where Pass =
password('$password')") or die ("ouch");
$num_rows = mysql_num_rows($testResult);
the problem is that I keep getting a value of 0 for $num_rows when I know
the table has 1 entry for PAs
hi all,
a little OT here, but need some quick help. I have a bunch of e-mails to
convert into sql entries and I'm stuck here.
I have:
, John Doe, [EMAIL PROTECTED], ..
I just need to know what's the regex to switch around the name and e-mail
address.
TIA,
@lvin
--
PHP General M
I am using sessions to track visitors to my site, and one of the things I'd
like to do is add a time-stamp to each entry in my MySQL database. The
problem is that, for some reason, the time-stamp part only seems to work
part of the time. I know it can't be, but it almost seems arbitrary - i
haven
> This approach worked pretty well with previous people i teached
> PHP, but they already had some sort of programming background.
> This guy hasn't. I find that he has some difficulties picking
> it up. And I have some difficulties to further help him.
Is he having problems with PHP, or data
Hi,
I am teaching a fellow worker PHP. He is, like other 'students' I had working
on a small project with database interaction.
This approach worked pretty well with previous people i teached PHP, but they
already had some sort of programming background. This guy hasn't. I find that
he has so
> I must be doing something wrong with the headers. Can someone
> send me an example of how to send a message with multiple addresses
> as BCCs?
mail("[EMAIL PROTECTED]",
"Subject Line"
"Email Contect",
"Bcc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]\n");
Jason
--
I must be doing something wrong with the headers. Can someone send me an
example of how to send a message with multiple addresses as BCCs?
It is a program i wrote that builds the header from multiple email
addresses in a database. The people on the emails are not getting the
message.
Thanks in a
Hi All-
I'm having trouble with a simple script that allows HTTP upload. It's a
direct copy
of the code available on the PHP web site.
The script works fine on a UNIX machine running PHP 4.0.6 and a Windows 98
machine running 4.0.6.
However when I test it on a Windows NT machine running PHP 4.0
Sorry -- I should have clarified that .pls has been added as a php file
type in httpd.conf.
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 8:06 PM
To: 'Kurt Lieber'; 'PHP General List (E-mail)'
Subject: RE: [PHP] REPOST: converting multiple
How about changing link to
Big George
Where mymailer.php is something like
mailto:$email"; );
?>
( Now watch me get shot down for saying something silly )
At 09:30 17/07/2001 -0500, Jack wrote:
>Dear people,
>I have an email link on my page like this
>mailto:[EMAIL PROTECTED]";> Big
Hi...Experts:
I want to write a library for the PHP on Solaris.
But I don't know how to do and where I should put this
library than PHP could reach it.
Does anybody tell me how to do? Thanks... : )
--
Steven Yu
Mobile: 0916126491
Office: (0
Here is an opportunity that you can take up FREE. If you join as an
affiliate, we'll teach you how to build a profitable business on the
Internet, using our system to create an income stream and earn income
globally, 24 hours a day.
Don't let this opportunity slip past you - our organization i
The only data in the table (Login_TB) is one row:
Login = a, and Pass= password('a').
> From: Rasmus Lerdorf <[EMAIL PROTECTED]>
> Date: Mon, 16 Jul 2001 20:24:44 -0700 (PDT)
> To: Brad Wright <[EMAIL PROTECTED]>
> Cc: PHP General List <[EMAIL PROTECTED]>
> Subject: Re: [PHP] Whats wrong with t
Yep, I realise there was a discrepancy in the table names. That wasnt the
issue , i reposted the corrected code as soon as i realised.
> From: David Robley <[EMAIL PROTECTED]>
> Organization: Centre for Injury Studies
> Reply-To: [EMAIL PROTECTED]
> Date: Tue, 17 Jul 2001 12:53:57 +0930
> To: Bra
> Rasmus,
> you are dead right, it is returning 0 rows. I checked that before
> submiytting the original post. Sorry, i should have mentioned it. I guess
> the question is, why is it returning no rows?
Uh, that is something we can't answer without having access to your actual
data.
-Rasmus
--
On Tue, 17 Jul 2001 12:37, Brad Wright wrote:
> > From: Rasmus Lerdorf <[EMAIL PROTECTED]>
> > Date: Mon, 16 Jul 2001 19:56:29 -0700 (PDT)
> > To: Brad Wright <[EMAIL PROTECTED]>
> > Cc: PHP General List <[EMAIL PROTECTED]>
> > Subject: Re: [PHP] Whats wrong with this code?
> >
> >> Hi all, Im get
If PHP won't overload them to an array, you could parse $QUERY_STRING
manually.
-Original Message-
From: Jason Murray [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 11:06 PM
To: 'Kurt Lieber'; 'PHP General List (E-mail)'
Subject: RE: [PHP] REPOST: converting multiple URL value
Rasmus,
you are dead right, it is returning 0 rows. I checked that before
submiytting the original post. Sorry, i should have mentioned it. I guess
the question is, why is it returning no rows?
> From: Rasmus Lerdorf <[EMAIL PROTECTED]>
> Date: Mon, 16 Jul 2001 19:56:29 -0700 (PDT)
> To: Brad Wri
Hi Kurt,
> So, am I correct in assuming that $song will never be considered an
> array? (basically, given the above code and URL, $song will
> always equal 102)
If .pls is a PHP file, then in my experience yes you're right.
However, I've never seen a PHP file called .pls, it may be
something e
I posted this late on Sunday afternoon, so it may have been overlooked.
I haven't figured it out yet, so I'm reposting in the hopes someone can
help. Thanks.
---
I'm modifying some code for ampache (ampache.kveton.com) and have run
into a snag that I'm not sure I unde
> Hi all, Im getting mighty frustrated with this peice of code. It checks the
> first condition no probs, but the second IF statement doesnt work. So it
> will stop if it finds a du[plicate login, but cannot find duplicate
> passwords. the $num_rows2 variable always gets the value '0' even when th
Hi all, Im getting mighty frustrated with this peice of code. It checks the
first condition no probs, but the second IF statement doesnt work. So it
will stop if it finds a du[plicate login, but cannot find duplicate
passwords. the $num_rows2 variable always gets the value '0' even when there
is a
Dear people,
I have an email link on my page like this
mailto:[EMAIL PROTECTED]";> Big George
and I want to know how may people click on on this particular link to keep the record,
may be insert this record into a table as well ( but don't erally have to) Is there
any technique at all to achiev
I found out what was most likely the problem. I had missing bracket and
then an extra one. I marked them as such below.
In any case I learned a whole bunch more stuff in the process. Thank
you very much for your help. And sorry Jason didn't mean to make it
look like I snubbed you or anything. :)
On 16 Jul 2001 22:12:24 -, "Dr. Evil" <[EMAIL PROTECTED]> wrote:
>I know that credit cards have standard formats: There's a standard
>number of digits, and whether the card is Visa, MC, Amex, etc is
>encoded in the number, and there is some kind of checksum, and I think
>the expiration is als
Jeff Oien pressed the little lettered thingies in this order...
One more thing...
> >>error> if (${"element2$z"} == "select") {
I'm not sure f this has anything to do with it, but I have never made
variable variables work when specified like the above. Try:
${"element2".$z}
I quite hon
Jeff Oien pressed the little lettered thingies in this order...
> I get a 30 timeout on the line indicated when executing this code
> and can't figure it out. Does anyone know why? Thanks.
> Jeff Oien
>
You should pay attention to which variables are in quotes and which are
not. PHP (and ever
> Surely it is somehow not hitting the condition.
> -Rasmus
I coulda sworn I said that ;)
But then I guess it carries more weight when Rasmus says it...
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"Work now, freak later!"
--
PHP General Mailing List (http://www.php.n
Well, get rid of the quotes around $z="1"; and "$Number_Children" to start
with. Then print out $z inside the loop to see what it is doing. Surely
it is somehow not hitting the condition.
-Rasmus
On Mon, 16 Jul 2001, Jeff Oien wrote:
> I don't know. :) I tried again without $Number_Children i
I don't know. :) I tried again without $Number_Children in quotes
and still get the timeout but on a different line (3 lines down). It
seems it isn't necessarily a specific line causing it.
Jeff Oien
> Why is "$Number_Children" in quotes?
>
> On Mon, 16 Jul 2001, Jeff Oien wrote:
>
> > I know
Why is "$Number_Children" in quotes?
On Mon, 16 Jul 2001, Jeff Oien wrote:
> I know $Number_Children is 2. I printed it. And $z starts out as 1.
> I don't think that's it.
> Jeff Oien
>
> > > while ($z <= "$Number_Children") {
> > > >>error> if (${"element2$z"} == "select") {
> >
> > Looks to
I know $Number_Children is 2. I printed it. And $z starts out as 1.
I don't think that's it.
Jeff Oien
> > while ($z <= "$Number_Children") {
> > >>error>if (${"element2$z"} == "select") {
>
> Looks to me like $z is never reaching $Number_Children.
>
> Jason
>
--
PHP General Mailin
> while ($z <= "$Number_Children") {
> >>error> if (${"element2$z"} == "select") {
Looks to me like $z is never reaching $Number_Children.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
On 17 Jul 2001, Steve Sobol wrote:
> From 'John Donagher':
> >> accounts, and too many bogus cards would not look good.
> >>
> >
> >My suggestion is to run an authorization for an extremely small amount of money
> >($1.00 is fairly standard) and that will tell you if the account is valid or
> >n
I get a 30 timeout on the line indicated when executing this code
and can't figure it out. Does anyone know why? Thanks.
Jeff Oien
-
if ($missing == "1") {
echo "
Error
Error
Required information was missing:
>From 'John Donagher':
>> accounts, and too many bogus cards would not look good.
>>
>
>My suggestion is to run an authorization for an extremely small amount of money
>($1.00 is fairly standard) and that will tell you if the account is valid or
>not.
Bad idea.
Some software, in particular that
$arr = explode("-",$row[5]); $reqmonth=$arr[1];
Well, it's all on one line.
At 16:23 16/07/2001 -0700, Adam Plocher wrote:
>$reqmonth = ${}[1];
>
>Is there anyway I can get that to work without having to use multiple lines
>of code?
-
Brian White
Step Two Designs Pt
On Mon, 16 Jul 2001 16:23:19 -0700, Adam Plocher
([EMAIL PROTECTED]) wrote:
>$reqmonth = ${explode("-",$row[5])}[1];
>
>Is there anyway I can get that to work without having to use
>multiple lines
>of code?
hmm... how about
$reqmonth = array_pop(explode("-",$row[5],2));
--
PHP General Mailing
list (,$reqmonth) = explode ('-', $row[5]);
--zak
- Original Message -
From: "Adam Plocher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 5:23 PM
Subject: [PHP] explode()
> $reqmonth = ${explode("-",$row[5])}[1];
>
> Is there anyway I can get that to work with
John Donagher pressed the little lettered thingies in this order...
>
> Note, I said authorization, not charge. An authorization is a form of sale
> which is really a two-step process. The authorization places a hold on the
> funds, and then a capture transaction is initiated which indicates tha
$reqmonth = ${explode("-",$row[5])}[1];
Is there anyway I can get that to work without having to use multiple lines
of code?
Christopher Ostmo wrote:
> Dr. Evil pressed the little lettered thingies in this order...
>
> >
> > I know that credit cards have standard formats: There's a standard
> > number of digits, and whether the card is Visa, MC, Amex, etc is
> > encoded in the number, and there is some kind of checksum,
You could do it using the strpos() function to find the index of the first
occurance of "" and strrpos() for the last occurence. Then use
substr() to grab what you want...
On Mon, 16 Jul 2001, Julian Simpson wrote:
> I'm trying to parse an existing html file using php.
> I need to use regex to
Christopher Ostmo wrote:
> What companies issue card numbers that are not 16 numbers? Are
> they non-US cards? I haven't ever seen a card that wasn't 16 numbers.
The ones I care for when I do eCommerce apps:
Visa: 13, or 16 digits
MasterCard: 16
AmEx: 15
Di
On Mon, 16 Jul 2001, Christopher Ostmo wrote:
> John Donagher pressed the little lettered thingies in this order...
>
> > My suggestion is to run an authorization for an extremely small amount of
> > money ($1.00 is fairly standard) and that will tell you if the account is
> > valid or not. Doin
Ashley M. Kirchner pressed the little lettered thingies in this order...
> Christopher Ostmo wrote:
>
> > By law, the numbers are supposed to be
> > generated at random and not generated by any kind of algorithm or
> > formula.
>
> CC# must pass the Luhn MOD 10 formula, so the generated num
I ran across this function awhile back and it is what we use.
---
function CCValidationSolution ($Number) {
global $CardName;
# 1) Get rid of spaces and non-numeric characters.
$Number = OnlyNumericSolution($Number);
An authorization does not necessitate
a sale, it is a verification of available funds.
Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
-Original Message-
From: Christopher Ostmo [mailto:[EMAIL PROTEC
At the organization I'm interning at this summer, we have an intranet web.
My job is to update, maintain and enhance it.
On the main intranet web page, there's a weather channel "magnet" that
displays the local weather conditions. Now, since not everyone has
inTERnet access, some people simply
"Dr. Evil" wrote:
> I'm wondering if anyone can refer me to a site that describes what
> this format is, so I can write some PHP code that will check to see if
> a credit card number format is correct. I don't even want to try to
> run the card through my merchant account if the format is obviou
Dr. Evil pressed the little lettered thingies in this order...
>
> Thanks for the tip, but... there is a checksum in the CC card, which
> is worth checking. Some others have sent me some code that checks
> that. Or is that no longer valid?
>
Actually, I saw that... and maybe I'm wrong.
When
Christopher Ostmo wrote:
> > My suggestion is to run an authorization for an extremely small amount of
> > money ($1.00 is fairly standard) and that will tell you if the account is
> > valid or not. Doing validation yourself implies a fully-publicly-understood
>
> Maybe I am the only one, but I w
The check you want is called a MOD10 check. Most of the script libraries
have sample code. I found sample codes there. However, when I needed it, I
had to write it in ASP code. Here is the code that I use;
IF AccountNoLength > 16 THEN
ERRORState = "TRUE"
ErrorMssg =
"Account%20N
Christopher Ostmo wrote:
> By law, the numbers are supposed to be
> generated at random and not generated by any kind of algorithm or
> formula.
CC# must pass the Luhn MOD 10 formula, so the generated numbers can't be
(totally) random - they have to conform to the formula.
Also, not all
John Donagher pressed the little lettered thingies in this order...
> My suggestion is to run an authorization for an extremely small amount of
> money ($1.00 is fairly standard) and that will tell you if the account is
> valid or not. Doing validation yourself implies a fully-publicly-understood
Dr. Evil pressed the little lettered thingies in this order...
>
> I know that credit cards have standard formats: There's a standard
> number of digits, and whether the card is Visa, MC, Amex, etc is
> encoded in the number, and there is some kind of checksum, and I think the
> expiration is al
I'm trying to parse an existing html file using php.
I need to use regex to find the first (and only the first) occurance of
and the last (and only the last) occurance of in a string.
They will be replaced with ||.
example of a string:
blah blah some stuff that i need to get blah blah blah.
n
On 16 Jul 2001, Dr. Evil wrote:
>
> I'm wondering if anyone can refer me to a site that describes what
> this format is, so I can write some PHP code that will check to see if
> a credit card number format is correct. I don't even want to try to
> run the card through my merchant account if the
http://www.phpinsider.com/php/code/Smarty/
Version 1.4.4
-
- fixed problem with including insecure templates with security
enabled
(Monte)
- numerous documentation updates. (Monte)
- added ENT_QUOTES to escapement of html. (Monte, Sam Beckwith)
- implemented acc
On Mon, Jul 16, 2001 at 05:19:41PM +0300, Marius Andreiana wrote:
> În 16 Jul 2001 09:07:17 -0500 garman a scris:
> > I forgot to mention that I already looked into the PDF extensions.
> > Although
> > it looks like it would do exactly what I want, the PDFLib isn't free for
> You can generate xm
I know that credit cards have standard formats: There's a standard
number of digits, and whether the card is Visa, MC, Amex, etc is
encoded in the number, and there is some kind of checksum, and I think
the expiration is also encoded in the number. All of this is obvious
stuff that anyone design
"Justin Farnsworth" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You may have different behaviour between browsers, but you
> are never going to be able to use this method reliably because
> of the vagaries of "times" encountered on the client side.
> Just lo
There's more than one way to skin a cat - if not directly from PHP to PDF,
why not PHP to a .TeX LaTeX file, then use exec() to run latex and dvi2pdf
on it. No license restrictions there that I know of, and you can get some
very nice results with LaTeX.
-Andy
> -Original Message-
> From
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (J Smith) wrote:
> > I need a search function (if statement) that performs a search on a string
> > and if the string contains something like "aol.com", performs another
> > function. Can anyone help me? Thanks.
> >
> > Joseph
> >
>
> Try rese
Take a look at
http://www.php.net/manual/en/function.ereg-replace.php
There's a bit of sample code up there that may help...
-bob
--
Bob Scott Web / DB Developer
http://www.covalent.netCovalent Technologies, Inc.
On Mon, 16 Jul 1979, [EMAIL PROTECTED] wrote:
>
Here's a function I use on a text field..
function activateUrls( $s ) {
$o = '';
while ($s != '') {
$url = '';
$temp = split('://', $s, 2);
if (count($temp)>1) { # '://' found; now extract schema
$s = $temp[1];
$temp2 = split('[^[:alpha:]]', strrev($temp[0]), 2);
So sprach »Alexander 'Digital Projects' Skwar« am 2001-07-16 um 22:38:44 +0200 :
> anything..
correction: Whoops - there's a . missing
anything...
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.digitalprojects.com |
So sprach »Tyler Longren« am 2001-07-16 um 15:25:08 -0500 :
> function? Currently, nothing is printed to the browser.
No wonder, because you don't assign the returned value of expDate to
anything..
well, if you want to return two values, I'd suggest to use an array,
like so:
function expDate($
On 16-Jul-01 Tyler Longren wrote:
> Here's my code:
> function expDate($date) {
> $month = substr("$date", 0, 2);
> $len = strlen($date);
> $year = substr("$date", $len-2, $len);
> return $month;
> return $year;
> }
> expDate("11/2002");
> print "$month $y
I tried the imap_8bit function, but got:
Fatal error: Call to undefined function: imap_8bit() in
/home/www/foxjet/admin/mailer.php on line 44
I do not have control over what is compiled on my hosts machine. They are
running PHP 4.0.4pl1
I am not sure how to tell what has and has not been compi
> Here's my code:
> function expDate($date) {
> $month = substr("$date", 0, 2);
> $len = strlen($date);
> $year = substr("$date", $len-2, $len);
> return $month;
> return $year;
> }
> expDate("11/2002");
> print "$month $year";
> ?>
> I know this isn't the
Here's my code:
I know this isn't the correct usage of return, but how to I get the $month
and $year variables so I can print them after I've called the expDate()
function? Currently, nothing is printed to the browser.
Thanks,
Tyler
--
PHP General Mailing List (http://www.php.net/)
To unsub
I think you will want to use the imap_8bit() function:
http://php.net/imap_8bit
But, I'm not sure if there is a version available in PHP without compiling
in c-client IMAP.
Jeremy
Jeremy Brand :: Sr. Software Engineer :: +393485323988 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand
On Ray's advice I've given up on letting the users put html into my form.
But I would like any http:// type addresses they include to be turned into
hyper links:
http://www.mysite.com>www.mysite.com
is there a script or function some place I can use to do this? Or must I try
to write something
I don't know what to say, my comment was based on
http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40
note the author.
I ran your code in both windows and linux and got
faster speeds, on a regular basis, for echo. That
said, the speed differences were not great(minor is a
good descript
I am trying to put together a script that e-mails web pages (similar to the send page
functionality in IE).
Is there a function that will convert HTML from plaintext into Quoted-Printable
Encoding (ie = becomes =3D) so I can
e-mail it?
Or will one of the encodings available (ie rawurlencode)
nope. the fonts are normalenough when i i open them. and in fact i guess i
get slight different "boxes" for different fonts. but all of them are
alpha-numeric fonts
Thank You,
Jon Yaggie
www.design-monster.com
And they were singing . . .
'100 little bugs in the code
100 bugs in the code
Many special fonts don't have all the characters besides letters and
numbers. Perhaps thats the problem?
- Original Message -
From: "Jon Yaggie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 16, 2001 2:11 PM
Subject: [PHP] true type fonts
i am creating images using true
Mostly Taken from phpbuilder I beleive...
// =
// Function to start the timer.
// =
function start_timer(){
$timeparts = explode( " ",microtime() );
$starttime = $timeparts[1].substr( $timepa
1 - 100 of 182 matches
Mail list logo