RE: [PHP] a user_auth script. 1 down any more ?

2002-02-12 Thread Matthew Darcy
any more ? Try closing all your { }. count them up, you are missing the closing bracket on your while statment.. Jim Lucas - Original Message - From: Matthew Darcy [EMAIL PROTECTED] To: hugh danaher [EMAIL PROTECTED]; php [EMAIL PROTECTED] Sent: Tuesday, February 12, 2002 10:25 AM Subject

RE: [PHP] Parse Error

2002-02-12 Thread Matthew Walker
I'd definitely check Line 19. You probably forgot a ; Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Jason Whitaker [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 12, 2002 4:01 PM To: [EMAIL PROTECTED] Subject: [PHP] Parse Error Ok I got

RE: [PHP] A MYSQL COUNTER

2002-02-11 Thread Matthew Walker
This is too much for a text file. You should definitely use MySQL for this. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Monday, February 11, 2002 3:22 PM To: [EMAIL PROTECTED] Subject: [PHP

[PHP] Rounding....

2002-02-10 Thread Matthew Clark
Seeing as the mathematically correct way to round numbers is to round down to n for n-1=m=n.5 and up to n+1 for n.5mn+1, I wonder why the PHP round() function couldn't include a little 'fuzz' to handle the rounding problems we encounter due to floating point representation in the hardware? It

RE: [PHP] 2 conditions why wont they work??

2002-02-10 Thread Matthew Clark
Yes - that's most likely the answer.. if the echo doesn't help, try something like this.. $result2 = mysql_query($query2,$db) or die(mysql_error()); If mysql is throwing up an error, that'll present it too you and stop execution.. -Original Message- From: Bogdan Stancescu

RE: [PHP] 2 conditions why wont they work??

2002-02-10 Thread Matthew Clark
In your code below, mysql will throw an error if $clientID is empty or non-numeric because it is not surrounded with quotation marks.. mysql will treat it as a field name (or just throw a syntax error if it's empty). -Original Message- From: Brad Wright [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] Trying to put ips into database

2002-02-08 Thread Matthew Walker
What type of field is 'ip'? Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 9:18 AM To: [EMAIL PROTECTED] Subject: [PHP] Trying to put ips into database I'm trying: $query

RE: [PHP] PHP and Apache authorization: how to logout. Help!

2002-02-01 Thread Matthew Walker
Does anyone have the answer for this question? I need it too... Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Aras Kucinskas [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 10:39 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Apache

RE: [PHP] PHP and Apache authorization: how to logout. Help!

2002-02-01 Thread Matthew Walker
I've done some investigating on my own. There is no way to do this. Period. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Matthew Walker Sent: Friday, February 01, 2002 3:37 PM To: Aras Kucinskas; [EMAIL PROTECTED] Subject: RE: [PHP] PHP

RE: [PHP] PHP and Apache authorization: how to logout. Help!

2002-02-01 Thread Matthew Walker
The entire browser has to close down to clear the auth data. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Lazor, Ed [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 4:41 PM To: Matthew Walker; Aras Kucinskas; [EMAIL PROTECTED] Subject

RE: [PHP] zend encoded files dont work

2002-01-31 Thread Matthew Walker
I'd imagine it's because windows zend has to compile them in a slightly different manner. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 12:41 PM To: php-list Subject

RE: [PHP] problems with mt_rand()

2002-01-31 Thread Matthew Walker
Did you remember to seed it? See http://www.php.net/manual/en/function.mt-srand.php for info on how to seed it. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Benjamin deRuyter [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 31, 2002 1:02 PM

RE: [PHP] Help with JPGraph in PHP.

2002-01-31 Thread Matthew Walker
You need to send the headers to tell the browser what kind of data you're sending. Try something like this: header(Content-type: image/png); Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]] Sent: Thursday

RE: [PHP] preg_replace() 'space' the final frontier

2002-01-30 Thread Matthew Walker
$statement=preg_replace(/ /,br,$original,19); Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: hugh danaher [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 12:35 PM To: Php-General Subject: [PHP] preg_replace() 'space' the final

RE: [PHP] MySQL Fetch_Array VS. Fetch_Object

2002-01-30 Thread Matthew Walker
Note that you can do this: print $row[field_name]; Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Bryan Gintz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 30, 2002 11:49 AM To: PHP List Subject: [PHP] MySQL Fetch_Array VS. Fetch_Object

RE: [PHP] preg_replace() 'space' the final frontier

2002-01-30 Thread Matthew Walker
Looking at what you wanted to do, I realized this isn't going to work. That line of code will put a BR between each of the first 19 words. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Matthew Walker Sent: Wednesday, January 30, 2002 12:47 PM

RE: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Matthew Walker
Exactly. The point of MD5 is that there is no way to get the password back. This makes things much more secure if your site gets hacked. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]] Sent: Wednesday

[PHP] setting up a members Login section on a webpage.

2002-01-29 Thread Matthew Darcy
Hi, I am looking at getting users to input their details to be stored in mysql, I would then like them to have to login to get access to certain functions when they come back. Does anyone have a good idea on how to do this, is the best / only way to do this sessions ? This must be quite

[PHP] get process id of a script?

2002-01-28 Thread Matthew Delmarter
Is there any way to get the process id of a script running on Apache? Regards, Matthew Delmarter -- 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

RE: [PHP] set_time_limit() in a loop

2002-01-27 Thread Matthew Delmarter
finish the loop OK - but as mentioned the script is still running 13 hours later. I don't get it. Any ideas? Is it possible to kill a script via PHP code? Matthew PS Here is the script again ? ignore_user_abort(true); set_time_limit(1800); while: personalise the message; mail

RE: [PHP] Outreaching (announcement)

2002-01-25 Thread Matthew Walker
I downloaded the current version to test, and I don't know how you call it stable enough to use. I continually get permission denied errors accessing the DB. Some of them go away if I refresh, others don't. And yes, the user has full permissions to the relevant DB. Matthew Walker Ecommerce

[PHP] set_time_limit() in a loop

2002-01-24 Thread Matthew Delmarter
it accumulate so that the timeout has 1800 seconds added to it every time? The reason I ask is that my ISP informs me that the script is still running 13 hours later! Or is this related to the ignore_user_abort? Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net

RE: [PHP] set_time_limit() in a loop

2002-01-24 Thread Matthew Delmarter
Thanks for your reply Martin. Any ideas why ignore_user_abort would cause this problem? -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 1:16 PM To: 'Matthew Delmarter'; PHP Mailing List Subject: RE: [PHP] set_time_limit() in a loop your

RE: [PHP] set_time_limit() in a loop

2002-01-24 Thread Matthew Delmarter
I should also mention that the loop is sending mail using mail(). Is it possible that this is the problem somehow? -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 1:16 PM To: 'Matthew Delmarter'; PHP Mailing List Subject: RE: [PHP

RE: [PHP] can anyone explain this error ?

2002-01-23 Thread Matthew Darcy
. Tomorrow is a new day; you shall begin it serenely and with too high a spirit to be encumbered with your old nonsense. - Ralph Waldo Emerson From: Matthew Darcy [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Jan 2002 22:10:30 - To: PHP developers [EMAIL PROTECTED] Subject: [PHP

[PHP] mail() question

2002-01-23 Thread Matthew Walker
]); arsenic.mth.com is the LAN name of my box. How can I get PHP to send mail as if it was from the DNS name for the box (mthmarketing.com)? Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com

[PHP] More on images...

2002-01-03 Thread Matthew Walker
Related to my last question about the cookies in images, is there any way to get the referrer from the calling page without passing it as an argument to the image generation script? Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked

RE: [PHP] More on images...

2002-01-03 Thread Matthew Walker
php. Any advice? Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Billy Harvey [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 3:25 PM To: Matthew Walker Subject: Re: [PHP] More on images... On Thu, 2002-01-03 at 16:51, Matthew Walker wrote

RE: [PHP] More on images...

2002-01-03 Thread Matthew Walker
I solved it using Javascript to get the referrer of the parent doc, and pass it as a get request. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Matthew Walker Sent: Thursday, January 03, 2002 3:46 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] More

RE: [PHP] easy quickie..

2002-01-02 Thread Matthew Clark
_Your_ browser has a back button.. great.. There are many situations in which the back button may not be visible/available/appropriate. You may also not want to go back in your _history_, just back to the previous page - and possibly set some variables in the page request. It is far more than a

RE: [PHP] XML Parsing Problem

2002-01-02 Thread Matthew Clark
Hi there, This is not a bug.. this is expected behaviour. The string would be chopped up into 3 parts because you have : 1. a string: Follow-up To Critique of BeOS 2. a predefined entity : amp; 3. a string: amp; Mac OS X There are not actually two ampersands.. you have amp; followed by amp;

[PHP] Cookies In Images...

2002-01-02 Thread Matthew Walker
Can anyone give me a pointer on where to go to find out how to send cookies through images, preferably in PHP? Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.310

RE: [PHP] Cookies In Images...

2002-01-02 Thread Matthew Walker
Thanks. That's what I suspected, but I needed to make sure. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Bas van Rooijen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 2:28 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Cookies

RE: [PHP] XML Parsing Problem

2002-01-02 Thread Matthew Clark
well thats just the way XML parsers work, according to the parser, what you have there is not a single string element, you have three child elements (the parent node being the title).. two string nodes broken up by an entity node. In other circumstances, this behaviour can be very useful. Matt.

RE: [PHP] Licensing??

2001-12-28 Thread Matthew Walker
Welcome to the world of free software. Matthew Walker Ecommerce Project Manager Mountain Top Herbs -Original Message- From: Andrew V. Romero [mailto:[EMAIL PROTECTED]] Sent: Friday, December 28, 2001 9:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Licensing?? I am looking

[PHP] Quick Question about Variables

2001-12-12 Thread Matthew Walkup
if each one is on. I think this would be the easiest, but maybe someone else has another idea. Thanks in advanced, Matthew Walkup [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

RE: [PHP] Quick Question about Variables --- NEVERMIND

2001-12-12 Thread Matthew Walkup
Hah, I saw parse error and assumed it was because i was trying to use a function that didnt exist. Little did I know I mistyped something. It works now, sorry for the inconvience. Thanks, Matt -Original Message- From: Matthew Walkup [mailto:[EMAIL PROTECTED]] Sent: Wednesday

[PHP] mail headers problem

2001-12-12 Thread Matthew Delmarter
, $newsletter_email, $newsletter_subject, 'Return-Path: [EMAIL PROTECTED]' ) It doesn't work! If I change 'Return-Path: [EMAIL PROTECTED]' to 'Reply-To: [EMAIL PROTECTED]' it does work. Any ideas? Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net

Re: [PHP] WEB PAGE CALCI

2001-12-10 Thread Matthew Moreton
Hi Chamarty, The function you are looking to use is: filesize(file); This will return the size of a file, surprisingly! Use it on all the files in your docuemnt and add the results. Regards Matt. Email: [EMAIL PROTECTED] - Original Message - From: Chamarty Prasanna Kumar [EMAIL

[PHP] PREG

2001-12-07 Thread Matthew Moreton
Hi people. I am having some trouble with the PREG functions in php. Here's what I am trying to do... First of all I am reading in a file which is 1.5mb's in size, it could be many more, going up to 8mb's, the contents of the file is input to a string. The format of the file is as follows...

Re: [PHP] Getting started - what do I need?

2001-12-07 Thread Matthew Moreton
I would suggest downloading PHPtriad. It installs Apache, PHP and mySQL all set up and ready to go. http://www.phpgeek.com to get it. The only resources I have used to teach myself php and mysql is the documentation provided at www.php.net and www.mysql.com respectively. Good luck Matt

RE: [PHP] xml header

2001-12-05 Thread Matthew Loff
The proper content type is text/xml. --Matt -Original Message- From: bill [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 05, 2001 3:11 PM To: Tyler Longren Cc: [EMAIL PROTECTED] Subject: Re: [PHP] xml header Hmmm. I'm thinking of the http headers. Assume you have an xml

RE: [PHP] XML and PHP - dynamic hell

2001-12-01 Thread Matthew Loff
Did you try adding: header(Content-Type: text/xml); To the top? -Original Message- From: Chris [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 01, 2001 12:34 AM To: [EMAIL PROTECTED] Subject: [PHP] XML and PHP - dynamic hell I'm having one page output XML for other sites to

RE: [PHP] Speed of Images from DB

2001-11-30 Thread Matthew Loff
It would be mighty handy for MySQL to have a binary file column type, like Oracle, where the file was stored externally, outside of the rest of the table data... Anyone heard of any plans to implement this? -Original Message- From: Julio Nobrega Trabalhando [mailto:[EMAIL PROTECTED]]

[PHP] CSV output displayed in Excel or similar.

2001-11-29 Thread Matthew Clark
, Matthew Clark. -- 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]

RE: [PHP] MySQL to Excel with mutiple sheets

2001-11-29 Thread Matthew Loff
tables) http://www.nusphere.com/products/tech_library.htm -Original Message- From: jimmy elab [mailto:[EMAIL PROTECTED]] Sent: Friday, November 30, 2001 1:34 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] MySQL to Excel with mutiple sheets Matthew Loff wrote: http://www.wotsit.org

RE: [PHP] PHP 4.1 out?

2001-11-28 Thread Matthew Loff
http://snaps.php.net/ Again, the whole not fully tested issue comes to play... I'd avoid using these on a production server, obviously. :) -Original Message- From: Mike Eheler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 28, 2001 4:04 PM To: Zeev Suraski; [EMAIL PROTECTED]

RE: [PHP] MySQL to Excel with mutiple sheets

2001-11-28 Thread Matthew Loff
Can't be done easily with PHP right now... To get that type of functionality, you'd need to write it in Perl using the SpreadSheet::WriteExcel module. http://homepage.tinet.ie/~jmcnamara/perl/WriteExcel.html -Original Message- From: Brian Lee [mailto:[EMAIL PROTECTED]] Sent:

RE: [PHP] MySQL to Excel with mutiple sheets

2001-11-28 Thread Matthew Loff
- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 1:02 AM To: 'Matthew Loff'; 'Brian Lee'; [EMAIL PROTECTED] Subject: RE: [PHP] MySQL to Excel with mutiple sheets Can't be done easily with PHP right now... To get that type of functionality, you'd need

RE: [PHP] Re: A tricky one?

2001-11-20 Thread Matthew Luchak
, $header ); ? Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Raymond Lilleodegard [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 20, 2001 1:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: A tricky one? Thanks

RE: [PHP] Re: Testing for the presence of HTML

2001-11-20 Thread Matthew Luchak
! my god, I'm advocating clippy :( ... You can then insert a boolean to mark the file according to their response. Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Richard S. Crawford [mailto:[EMAIL PROTECTED]] Sent: Tuesday

Re: [PHP] Dynamic Navigation w/PHP

2001-11-19 Thread Matthew Moreton
My website has a navigation menu that is written to the browser depending on what vars are set in the php script. I store all the link names in an array, then simply do a 'foreach' loop to write the output. This would allow me to add another menu item by just adding it into the array. Simple

Re: Re: [PHP] schedule a task

2001-11-19 Thread Matthew Moreton
You can launch IE with an address as a paramater from task scheduler. Example: C:\PROGRA~1\INTERN~1\IEXPLORE.EXE http://somehost.com/somepath/somescript.php Matt. Gab [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'll check with the tech support but nothng

RE: [PHP] exporting

2001-11-19 Thread Matthew Loff
I always stick with PHP for web apps, but I am in a similar situation, I have to write a script that generates statistics and item reports from a database... The client wanted them in Excel format... I could have done CSV, but for the sake of aesthetics, I decided to go with a native Excel

RE: [PHP] Transfer variable to next web-page

2001-11-17 Thread Matthew Loff
Richard already answered the variable part, but I thought I'd point out that you need to use double quotes in your HTML tags... Single quotes are incorrect... ? echo(P FORM method=\POST\ action=\join2.php\ text for button INPUT type=\submit\ value=\Next step\ INPUT type=\hidden\

RE: [PHP] Re: alzheimers and confused

2001-11-17 Thread Matthew Loff
I was waiting for someone to meantion de Morgan! 10 points for Mr. Elab. Ha ha... -Original Message- From: jimmy elab [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 17, 2001 1:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: alzheimers and confused de Morgan and Boole, not

RE: [PHP] Parse POST-Data myself

2001-11-16 Thread Matthew Luchak
was that the second field overwrote the first. How do you get an array? Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Stefan [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 10:03 AM To: PHP Subject: [PHP] Parse POST-Data

RE: [PHP] timing

2001-11-16 Thread Matthew Luchak
If the other application is written in PHP you can use flock. Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]] Sent: Friday, November 16, 2001 11:00 AM To: Php-General Subject

RE: [PHP] Setting variables from a text file

2001-11-14 Thread Matthew Luchak
How about pseudocode... $variable=variablename; $array = explode(|,$text); foreach ($array as $key = $value) { $variable$key=$value; } Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Jeff Lewis [mailto

RE: [PHP] variable issue

2001-11-09 Thread Matthew Luchak
if(!isset($dte)) { $dte=date(j, time()+$ctime);} You don't need the else statement. Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Clint Tredway [mailto:[EMAIL PROTECTED]] Sent: Friday, November 09, 2001 2:37 PM To: PHP

RE: [PHP] documentation comment

2001-11-04 Thread Matthew Loff
I would have to agree on a global scale. However, strictly in discussion of server-side languages, I haven't seen ASP documentation as complete/useful as PHP's... I have never had to use anything besides the PHP manual to solve a problem in writing something. -Original Message-

[PHP] defending PHP mail function

2001-10-31 Thread Matthew Luchak
47single=1) looks pretty good to me and was wondering if anyone has any experiences, shortcuts etc. to this kind of problem with mail. ________ Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED]

RE: [PHP] defending PHP mail function

2001-10-31 Thread Matthew Luchak
WIN 2000 Blankwhat os was it?!?!? -- 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]

RE: [PHP] defending PHP mail function

2001-10-31 Thread Matthew Luchak
[EMAIL PROTECTED] it doesn't mail. If I try [EMAIL PROTECTED], or the like, it mails. I first noticed this problem when inserting addresses into the From: field and have now found it happening (not) in the To: field. Matthew Luchak Webmaster Kaydara Inc. [EMAIL

RE: [PHP] defending PHP mail function

2001-10-31 Thread Matthew Luchak
Well hey, if mail() won't send to those addresses, what's wrong with us testing them? :-) ;) Can you send to those addresses from a regular email client? If so, can you do it from the command line with your MTA? Of course I am talking about valid addresses, in fact there is at least one

RE: [PHP] defending PHP mail function

2001-10-31 Thread Matthew Luchak
for is a solution to a PHP/SMTP problem. Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message- From: Kurt Lieber [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 31, 2001 11:57 AM To: PHP General List Subject: Re: [PHP] defending PHP mail

RE: Re[3]: [PHP] split array in 2 halfs

2001-10-31 Thread Matthew Loff
More generally, this should work: $smallarray1=array_slice($bigarray, 0, sizeof($bigarray) / 2); $smallarray2=array_slice($bigarray, sizeof($bigarray) / 2); I haven't tested it though... -Original Message- From: Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 31, 2001 4:32

[PHP] sharing data stored in mysql with another site

2001-10-30 Thread Matthew Delmarter
I have developed a site using PHP and MySQL. My question: How do I share the data stored in the database with another site? Regards, Matthew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

RE: [PHP] Problem with very big array !

2001-10-29 Thread Matthew Loff
What prevents you from doing this iteratively, (not loading all 150,000 rows into memory, but processing each row sequentially)? -Original Message- From: Nicolas Guilhot [mailto:[EMAIL PROTECTED]] Sent: Monday, October 29, 2001 11:44 AM To: Php General MailingList Subject: [PHP]

RE: [PHP] I'm not username, log me out....

2001-10-27 Thread Matthew Loff
I found sessions to be kind of fussy to get working, perhaps that's just because I didn't have any experience with them until the last site I did... A simple call to session_unset() won't erase the session, but should clear whatever username/passkey (I say passkey, assuming/hoping it's

RE: [PHP] Advanced. Trapped in architecture.

2001-10-26 Thread Matthew Loff
Response.Clear Response.Redirect Doesn't that imply that ASP buffers the output? The problem with redirecting the browser after you output data isn't a PHP issue, it's the HTTP spec. I think the best solution would be to turn on output buffering, then immediately flush the output buffer when

RE: [PHP] = 0 and = 0

2001-10-25 Thread Matthew Loff
The only reason I could see that not working is if PHP is typecasting test to (int) in the second example... $qty = 0; (string) test = test; (string) 0 != test (evaluates true) $qty = 0; (int) test = 0; (when cast to int) 0 != 0 (evaluates false) e.g. By comparing an int to a string in

RE: [PHP] delete html

2001-10-21 Thread Matthew Loff
The main manual seems to be down right now, probably being rebuilt... Take a look at: http://www.php.net/manual/en/html/ strip_tags() is under String Functions, and has been around for a while. -Original Message- From: jtjohnston [mailto:[EMAIL PROTECTED]] Sent: Sunday, October 21,

RE: [PHP] Tar and GZIP functions

2001-10-05 Thread Matthew Loff
Last time I checked, there is a class for creating tar files in PEAR... Check your PHP installation... Once you create a tar file, I'm sure you can filter it through zlib to create a .tar.gz file. -Original Message- From: Georgie Casey [mailto:[EMAIL PROTECTED]] Sent: Friday, October

[PHP] check if file is already in use before fopen

2001-10-04 Thread Matthew Luchak
Title: Blank Is there a way to verify if a file is in use by another user before fopening it? Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED]

[PHP] RE: check if file is already in use before fopen

2001-10-04 Thread Matthew Luchak
Title: Blank damn... RTFM. I just now discovered flock. Sorry 'bout that. ps. Don't flame me for being rude to the original poster. I am the original poster Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] -Original Message-From

Re: [PHP] php javascript

2001-10-03 Thread Matthew Armsby
Leave the input name as email. If you really want to call it email[], you should be able to reference this in JavaScript as the object document.myform[email[]] If you leave it as email, you can then convert the email variable into an array using explode() or split() as so: ?php // on the

Re: [PHP] php javascript

2001-10-03 Thread Matthew Armsby
document.myform[email[]] seems to give me a syntax error. Check if your already using you'll need to use single quotes as so: input type=button name=CheckAll value=Check All onClick=checkAll(document.myform['email[]']) (tested on IE 5.5 and NS 4.08, works) If you leave it as email, you can

Re: [PHP] Parsing a CSV file

2001-10-03 Thread Matthew Armsby
Example ?php exampleLine = R001,23,\2,5\; preg_match_all (/(\[^\]+\|[^,]+)/, exampleLine, $matches); for ($i=0; $i count($matches[0]); $i++) { echo matched: .$matches[0][$i].br; } ? Please note, empty elements will not be handled btw Any Australian employers want a programmer for

RE: [PHP] associative array syntax question - got it!

2001-10-03 Thread Matthew Loff
Have you tried using curly brackets? print td$a[B]td{$quotes[$a[B]]}td Does that work? Just cuious... -Original Message- From: Job Miller [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 03, 2001 8:44 PM To: Maxim Maletsky (PHPBeginner.com); [EMAIL PROTECTED] Subject: Re: [PHP]

[PHP] Restrict where PHP is Usable?

2001-10-02 Thread Matthew Walker
use PHP. They'll have to pay a (very small) monthly fee to have access to it. This is partly as a very loose security measure, so that not everyone has access to PHP. -- Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus

RE: [PHP] fprintf

2001-10-02 Thread Matthew Loff
The lack of fprintf() has been discussed on this list before, but I'm not sure what the status is on the PHP development side... http://bugs.php.net/bug.php?id=1027 -Original Message- From: Bill Rausch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 7:08 PM To: [EMAIL

[PHP] ereg

2001-09-30 Thread Matthew Delmarter
How do I use ereg to check for MSIE 5.5 and above. eg: eregi((MSIE.[56]),$HTTP_USER_AGENT) This only gets version 5 and 6 ... but I want 5.5 and above. Any ideas? Regards, Matthew Delmarter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] PEAR DB Questions

2001-09-26 Thread Matthew Walker
insert you performed. How do I get that information with the PEAR DB module? -- Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.281 / Virus Database: 149 - Release Date

RE: [PHP] PEAR DB Questions

2001-09-26 Thread Matthew Walker
Thanks. That will work quite nicely. -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 1:20 PM To: Matthew Walker; [EMAIL PROTECTED] Subject: RE: [PHP] PEAR DB Questions don't know about pear, but in case you can't do it, there's

[PHP] DB.php, and how to use?

2001-09-25 Thread Matthew Walker
a quick set of examples for how to use the class functions? I haven't done OO programming in a long time, and I've never done it in PHP. -- Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http

[PHP] display query results at random

2001-09-25 Thread Matthew Delmarter
from the query - it's just a matter of knowing how to get it! Can anyone help? I am sorry if the question is confusing, but I can't think of a better way to explain it at the moment (i'm tired)... Matthew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

RE: [PHP] display query results at random

2001-09-25 Thread Matthew Delmarter
for record 5 //I specifically want record 5 details here What I meant by 'random' was that it's not in the order returned by the mysql query. Matthew -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 3:56 PM To: [EMAIL PROTECTED] Cc: [EMAIL

RE: [PHP] Even more text document stuff!!

2001-09-24 Thread Matthew Loff
Read the manual. (Déjà vu?) http://www.php.net/manual/en/function.fread.php Even has an example that says -- get contents of a file into a string -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: Monday, September 24, 2001 7:42 PM To: [EMAIL PROTECTED] Subject:

RE: [PHP] Disk Usage

2001-09-23 Thread Matthew Loff
PROTECTED]] Sent: Sunday, September 23, 2001 4:11 AM To: Matthew Loff; 'Steve Werby'; [EMAIL PROTECTED] Subject: Re: [PHP] Disk Usage Well, it's an intriquing idea, but I'm not getting any success out of it. thanks for the suggestion. I'll keep plugging away. -- Scott Poarch http://www.globalhost.com

RE: [PHP] Re: Sessions and include()...

2001-09-22 Thread Matthew Walker
pieces would need to use the same session as if they were on /our/ server. -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Friday, September 21, 2001 10:25 PM To: Matthew Walker Cc: [EMAIL PROTECTED] Subject: [PHP] Re: Sessions and include()... I believe: include

RE: [PHP] Disk Usage

2001-09-22 Thread Matthew Loff
! -Matt -Original Message- From: Scott Poarch [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 22, 2001 10:37 PM To: Matthew Loff; 'Steve Werby'; [EMAIL PROTECTED] Subject: Re: [PHP] Disk Usage I appreciate the help. I understand the 'du -sk', but what's the (int) all about. Are you

[PHP] Sessions and include()...

2001-09-21 Thread Matthew Walker
What happens if you use include() to include a file from another server, and that file sets a session? Does the session get set for the domain of the wrapper page, or does it get set for the domain of the included page? -- Matthew Walker Ecommerce Project Manager Mountain Top Herbs

[PHP] include() problem...

2001-09-20 Thread Matthew Walker
error. Warning: Failed opening 'DB/mysql.php' for inclusion (include_path='') in /usr/local/httpd/htdocs/test.php on line 2 Help? Please? I'm at a loss as to how to fix this, and I kind of need to. -- Matthew Walker Ecommerce Project Manager Mountain Top Herbs --- Outgoing mail is certified

RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker
it properly. But when I try and do an include, I get the following error. Warning: Failed opening 'DB/mysql.php' for inclusion (include_path='') in /usr/local/httpd/htdocs/test.php on line 2 Help? Please? I'm at a loss as to how to fix this, and I kind of need to. -- Matthew Walker Ecommerce

RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker
Checked that. Plenty of permissions. Anyone else have any idea? -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 1:48 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] include() problem... Check the permissions on both the directory and

RE: [PHP] include() problem...

2001-09-20 Thread Matthew Walker
Okay... This is odd. Despite the fact that 'print_r(ini_get(include_path));' returns the right include_path, I just checked the php.ini file, and lo and behold, there is no include path set. So... Have I just discovered a bug? -Original Message- From: Matthew Walker [mailto:[EMAIL

RE: [PHP] Just for fun:

2001-09-20 Thread Matthew Loff
-Original Message- From: Jason Bell [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 8:32 PM To: PHP Users Subject: [PHP] Just for fun: Here is a question, just for fun: What is the biggest function (In terms of line count) you have ever written? I just finished one

[PHP] PHP code critique

2001-09-19 Thread Matthew Simpson
the pointer! :) (The reason for the HASH table is because SHOW TABLES in MySQL is rudimentary compared to a SELECT and does not sort the same way as the SELECTS do. I have to get the data from that into a format that I can SELECT with. Maybe an ARRAY in PHP would be faster?). Thanks, Matthew

Re: Re[2]: [PHP] Please help!!! Trying to write some chat script!

2001-09-19 Thread Matthew Simpson
I whole-heartedly agree with this statement. There are several great Java clients (including IRC clients) for chatting, but I have never seen a server side scripting chat implementation worth anything. - Original Message - From: Emile Bosch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

<    4   5   6   7   8   9   10   11   >