Message-
From: Kevin Stone [mailto:kevin;helpelf.com]
Sent: 06 November 2002 18:50
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Code Advice
All I have to go by is what I see. The method was this..
?
$get_allow = array('foo', 'bar', 'add', 'takeovertheworld');
while (list($key,$val)=each
Oh ho! Good call Mr. Vogelsinger. I would never have guessed. So infact
the code DOES work. My apologies Jason, I guess ya learn something new
every day. ;-)
-Kevin
- Original Message -
From: Ernest E Vogelsinger [EMAIL PROTECTED]
To: Jason Young [EMAIL PROTECTED]
Cc: [EMAIL
I believe it is mysql_data_seek($result, 0);
-Kevin
- Original Message -
From: ppf [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 06, 2002 12:38 PM
Subject: [PHP] To Move Recordset back to initial position
Hi All:
I am having a problem in MySQL records,If i used
Yes that has happened to me before. I don't know why it's so strict becuase
you can bet your bouncing booty there are ways around it. But did you heed
their advice and put MySQL somewhere in your message?
-Kevin
- Original Message -
From: electroteque [EMAIL PROTECTED]
To: [EMAIL
In your .htaccess file remove anything that looks like this:
AddHandler server-parsed .html
And add this line:
AddType application/x-httpd-php .php .htm .html
Do a search for parse html php for more help.
-Kevin
- Original Message -
From: Mike At Spy [EMAIL PROTECTED]
To: [EMAIL
For validation purposes I always like to print the Form within the script
that is doing the validation. It solves a lot of problems. As for coming
back to the Form at a later date the method is going to depend on how long
you want to keep the data. A Session will only last as long as the client
I think you're trying to defy logic here. How will the function know that
you want to keep color=cherry or flavor=cherry? What logical construct
makes that decision? The example you've given will result in an array that
looks eactly like $arr1 regardless of the content in either array.
$arr1 =
You must do session_start() before any output. You can get around this with
output buffering. ob_start(); ob_end_clean();
-Kevin
- Original Message -
From: Ben C. [EMAIL PROTECTED]
To: Adam Williams [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, November 12, 2002 3:35 PM
You bet there is..
fgetcsv();
http://www.php.net/manual/en/function.fgetcsv.php
-Kevin
- Original Message -
From: Greg [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 14, 2002 3:57 PM
Subject: [PHP] parse comma delimited file
Hi-\
Is there an easy way in PHP to
Great, thanks...didn't see that one :)
-Greg
Kevin Stone [EMAIL PROTECTED] wrote in message
news:176401c28c32$11cf7fe0$6601a8c0;kevin...
You bet there is..
fgetcsv();
http://www.php.net/manual/en/function.fgetcsv.php
-Kevin
- Original Message -
From: Greg [EMAIL
Copy and pasted from the PHP manual:
If the include occurs inside a function within the calling file, then all
of the code contained in the called file will behave as though it had been
defined inside that function. So, it will follow the variable scope of that
function.
So in other words any
Is ?php the very first line in the file? At some point here you're ending
up in the if() statment or the else() statment becuase those are the only
two places where you could have sent a header after they had already been
set. So I gotta figure you have some output before the if() statment.
What exactly are you doing? The code you posted doesn't explain much.
-Kevin
- Original Message -
From: vernon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 20, 2002 4:13 PM
Subject: [PHP] Session Not Registering on Page it is Set On
These pup session are going to
Somebody suggested downloading a pre-made script that does what you want but
I say that's no way to program. Simple scripts like this one clear the mind
and are good experience. Besides nobody ever got good at programming by
using pre-made scripts. ;-)
Okay down to basics. You can break up
Try.. printf(%.2f, $amount);
-Kevin
- Original Message -
From: Bryan Koschmann - GKT [EMAIL PROTECTED]
To: PHP General [EMAIL PROTECTED]
Sent: Tuesday, November 26, 2002 12:29 PM
Subject: [PHP] decimal places
Hello,
Does anyone here have a good way to make sure dollar amounts are
input type=text size=20 name=rsname ?php if($_SESSION['rfname'] !=
''){print value='{$_SESSION['rfname']}'';}
but I just get a ? in the value field, not the name.
Yeah there's a good reason for that. You're not ending yoiur PHP tag! :-P
Joking aside you're on the right track. This IS the
If all domains have access to the same database then there is absolutely nothing
preventing you from using a Cookie. Have a normal login on Domain1.com. Once
authenticated produce a random ID and store it in the database. Store the ID in a
cookie then Redirect the client to the desired
?
header(Content-type: application/pdf);
header(Content-disposition: attachment; filename=filename.pdf );
readfile(filename.pdf);
?
Launching this script will prompt a file download screen if the Acrobat Reader Plugin
is not available on the client browser. Otherwise it will display inside the
Matt Palermo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
I have an array of object for files on my site. The objects hold a file's
name, size, extension, etc... I was wondering if anyone knows where I could
find a relatively easy function for sorting the array of these objects
Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
[EMAIL PROTECTED] (Paul Van Schayck) wrote in
news:[EMAIL PROTECTED]:
First of all you need to check with the website you are going to check
if they really enjoy all bandwith required. And people will not see
their
Paul Van Schayck [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
[EMAIL PROTECTED] (Kevin Stone) wrote
Hello Kevin.
This is just a thought.. I have never employed this method
personally.. but I suppose you could read the page into a string and
use the md5() function
Delete the line with header(Content-disposition: ... ). Just set the content type
and output the file.
-Kevin
Pushpinder Singh Garcha [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
Hello Everyone,
I am trying to display a JPG image to a use, who has logged in. Some
research on
Forget the content length and disposition headers. Just set the content type then
output the file..
header(Content-type: application/pdf);
readfile(junk.pdf);
- Kevin
Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
I seem to be having problem with sending the PDF
.
- Kevin
Scott Fletcher [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
I can't do readfile() because of lots of bug in IE (Internet Explorer)
Kevin Stone [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Forget the content length and disposition headers. Just set the content
The Refresh directive is a valid header. I've used it for many years and it seems to
be supported by the majority of browsers. However I've never read anything that would
indicate that Refresh works any differently than Location. The only difference is
that Refresh allows you to set a number
Payne [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
Hi,
I am working on a project and I need to see sample quote for doing
random quotes. These quotes will be put from a database. Can some please
share me some sample code. Thanks.
Chuck
For more solutions go to,
Or... you could use array_count_values() and loop through the array it
produces to find out how many of each duplicate value exists in the
original array.
http://www.php.net/manual/en/function.array-count-values.php
Kevin
-Original Message-
From: Allowee [mailto:[EMAIL PROTECTED]
The period is a modifier within the expression (see manual on pattern
syntax link below). You need to escape it with a back slash:
\.
http://www.php.net/manual/en/pcre.pattern.syntax.php
--
Kevin
-Original Message-
From: Jake McHenry [mailto:[EMAIL PROTECTED]
Sent: Thursday,
-aliased text on an image? I'd appreciate any information, classes
and links to guides you can point me to.
Thanks!
Kevin Stone
[EMAIL PROTECTED]
501 - 530 of 530 matches
Mail list logo