Re: [PHP] Code Advice

2002-11-06 Thread Kevin Stone
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

Re: [PHP] Code Advice

2002-11-06 Thread Kevin Stone
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

Re: [PHP] To Move Recordset back to initial position

2002-11-06 Thread Kevin Stone
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

Fw: [PHP] mysql list

2002-11-06 Thread Kevin Stone
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

Re: [PHP] PHP not working in html

2002-11-07 Thread Kevin Stone
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

Re: [PHP] data verification trough _POST arrays

2002-11-07 Thread Kevin Stone
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

Fw: [PHP] Re: wanted: array_diff for more than values

2002-11-08 Thread Kevin Stone
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 =

Re: Re: [PHP] Error Message

2002-11-12 Thread Kevin Stone
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

Fw: [PHP] parse comma delimited file

2002-11-14 Thread Kevin Stone
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

Fw: [PHP] parse comma delimited file

2002-11-14 Thread Kevin Stone
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

Fw: [PHP] http_get_var and isset() not working with script generated includes.

2002-11-18 Thread Kevin Stone
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

Re: [PHP] Create Login Page

2002-11-18 Thread Kevin Stone
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.

Fw: [PHP] Session Not Registering on Page it is Set On

2002-11-20 Thread Kevin Stone
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

Re: [PHP] Writing a Polling App - Need Some Advice

2002-11-21 Thread Kevin Stone
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

Re: [PHP] decimal places

2002-11-26 Thread Kevin Stone
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

Re: [PHP] IE Problems: disappearing text with 'Back' button

2002-11-26 Thread Kevin Stone
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

[PHP] Re: Central authentication for multiple sites

2003-09-29 Thread Kevin Stone
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

Re: [PHP] Read a PDF File using php

2003-10-01 Thread Kevin Stone
? 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

[PHP] Re: Sort an array of objects

2003-10-01 Thread Kevin Stone
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

[PHP] Re: Check for page change efficiently [was Re: Creating a blogrolling/link management system]

2003-10-08 Thread Kevin Stone
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

[PHP] Re: Check for page change efficiently [was Re: Creating a blogrolling/link management system]

2003-10-08 Thread Kevin Stone
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

[PHP] Re: Display a JPG Image

2003-10-10 Thread Kevin Stone
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

[PHP] Re: header() function for displaying an opened PDF document.

2003-10-13 Thread Kevin Stone
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

[PHP] Re: header() function for displaying an opened PDF document.

2003-10-13 Thread Kevin Stone
. - 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

[PHP] Re: header() refresh vs location

2003-10-14 Thread Kevin Stone
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

[PHP] a href=website-dictionary.html#vanitysiteVanity Sites/a

2003-10-17 Thread Kevin Stone

[PHP] Re: Random Quotes...

2003-10-22 Thread Kevin Stone
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,

RE: [PHP] removing all duplicate values from an array

2003-10-30 Thread Kevin Stone
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]

RE: [PHP] preg question

2003-11-13 Thread Kevin Stone
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,

[PHP] How to print nice looking text on an image?

2003-11-18 Thread Kevin Stone
-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]

<    1   2   3   4   5   6