Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-05 Thread Mark Maggelet
On Wed, 5 Sep 2001 17:13:59 -0400, Ryan Fischer ([EMAIL PROTECTED]) wrote: >You wrote: >> >Sure it is. Lists or list context. () is not that hard to >> determine >> >what it means. At least, not nearly as hard as you make it out to >> >be for any moderately-experienced programmer. >> >> So it's

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-05 Thread Mark Maggelet
On Wed, 5 Sep 2001 14:36:59 -0400, Ryan Fischer ([EMAIL PROTECTED]) wrote: >> > You wrote: >> > > ($var1, $var2) is magic. I hate magic. >> > >> > It's not magic. It's just simpler. >> > >> > > What do you look up in the Perl >> > > manual when you hit syntax like that? >> > >> > http://www.perl

Re: [PHP] Assign multiple variables from mysql_fetch_row() call

2001-09-04 Thread Mark Maggelet
>I use list context a lot in PHP and Perl, and I prefer Perl's way of >doing it *because* it allows you to be as verbose or terse as you >like. >PHP, unfortunately, doesn't give you that freedom. Hmm... the freedom to write unreadable, unmaintainable code, yes this is a very important feature.

Re: [PHP] FULLTEXT search sorting results

2001-09-03 Thread Mark Maggelet
On Mon, 3 Sep 2001 19:33:38 +0200, BRACK ([EMAIL PROTECTED]) wrote: >$result = mysql_query("SELECT skits.*,category.*,match >(skits.title,skits.descr,skits.skits) against ('$relev') as from oops, should be 'against ('$relev') as relevance from' >skits,category where (skits.title like '%$title_

Re: [PHP] FULLTEXT search sorting results

2001-09-01 Thread Mark Maggelet
On Sat, 1 Sep 2001 14:01:57 +0200, BRACK ([EMAIL PROTECTED]) wrote: >I have query - > >$res = mysql_query("SELECT >skits.*,category.cat_id,category.cat_name FROM skits,category WHERE >MATCH (title,descr,skits) AGAINST ('%$search_idea%') and skits.lang >like 'English' and skits.category like catego

Re: [PHP] Re: how to sort search results by relevance?

2001-08-29 Thread Mark Maggelet
On Wed, 29 Aug 2001 13:58:34 +0200, BRACK ([EMAIL PROTECTED]) wrote: >> In article <3B8A1D6A.4295.2947D@localhost>, [EMAIL PROTECTED] >> (Yura) wrote: >> >> > How to sort search results of php-mysql site by relevance? >> >> See the mysql manual's chapter on FULLTEXT indexes. > >I indexed column 't

Re: [PHP] Best Way?

2001-08-28 Thread Mark Maggelet
On Tue, 28 Aug 2001 11:35:33 -0400, Michael Kimsal ([EMAIL PROTECTED]) wrote: >So require them to have cookies turned on. If it's YOUR system, you >can require whatever you want. If this is something for your >company, >presumably >it's a business tool of some sort, and you can then require them

Re: [PHP] The future of PHP

2001-08-24 Thread Mark Maggelet
On Fri, 24 Aug 2001 16:25:08 -0400, Thomas Deliduka ([EMAIL PROTECTED]) wrote: >Wait, you blame someone convicting microsoft for a recession? Give >me a break. Things were on the way out before it started. Was that the cause? Not really, there were many causes and that was just one of them. Was

Re: [PHP] Eval error

2001-08-15 Thread Mark Maggelet
lots of things: 1) variables in single-quoted strings aren't evaluated so you don't need to escape the $ in $email 2) php uses . not + for concatenation. 3) try it like this: eval('$email = $email_'.$i.';'); or eval("\$email = \$email_$i;"); 4) you can save yourself the trouble by using arrays

Re: [PHP] How to stop images preloading in netscape?

2001-08-13 Thread Mark Maggelet
On Mon, 13 Aug 2001 23:16:35 +0100, Seb Frost ([EMAIL PROTECTED]) wrote: >I have a php page which generates a page of thumbnails from a >database. In >internet explorer all of the layout loads first, and the thumbnails >appear >one by one as they are downloaded. Netscape however seems to insist

Re: [PHP] How give a 'timed' online quiz?

2001-08-13 Thread Mark Maggelet
On Mon, 13 Aug 2001 17:06:37 -0400 (EDT), Daniel Adams ([EMAIL PROTECTED]) wrote: >Sounds like you could use javascript rather than php for this one. >Or you >could try using an http refresh after a certain number of seconds. > - Dan yeah but an http refresh won't post the form. you could t

RE: [PHP] ucwords Except 'The' 'And' etc?

2001-08-13 Thread Mark Maggelet
>Something like this, perhaps (untested): I needed this too so I just tested it. >function smart_ucwords($String) >{ > > $ExceptionList = array('the', 'an', 'a'); # should all be in >lowercase > > $String = ucwords(strtolower(ltrim($String))); # LINE A > > foreach ($ExceptionLi

Re: [PHP] strstr Question

2001-08-12 Thread Mark Maggelet
On Sun, 12 Aug 2001 18:42:48 -0500, Erich Zigler ([EMAIL PROTECTED]) wrote: >I am currently writing a piece of code that when a user enters in >their >email address it will check it for validity. > >In this instance they are supposed to type in [EMAIL PROTECTED] But if >they >just type in user I w

Re: [PHP] PHP in corporate settings?

2001-08-09 Thread Mark Maggelet
On Thu, 09 Aug 2001 14:30:43 -0500, Sheridan Saint-Michel ([EMAIL PROTECTED]) wrote: >Bzzzt...Wrong! But thank you for playing. If you read the FAQ on >Sun's "Open Source" website not only do they admit Java is not >open source, but they sort of tip toe around whether or not it ever >will be. w

Re: [PHP] checking for null form fields fails

2001-08-07 Thread Mark Maggelet
>Well, Mark... almost! You shouldn't use empty() _instead_ of >isset(). You should use 'm together: > > if (isset ($input) && !empty($input)) { > print ("Okay... form is completed!"); > } else { > print ("No way... can't do!"); > } > >Because, when you check using empty($input) there's still t

Re: [PHP] checking for null form fields fails

2001-08-06 Thread Mark Maggelet
On Mon, 6 Aug 2001 13:56:45 -0500, garman ([EMAIL PROTECTED]) wrote: >For all of my HTML forms, I put in some JavaScript to check and make >sure no >fields are left blank. When the forms are processed in PHP, I also >perform a >check to make sure the forms fields aren't null (redundant, I know).

Re: [PHP] dynamic checkboxes?

2001-08-06 Thread Mark Maggelet
On Mon, 6 Aug 2001 08:57:08 -0500, garman ([EMAIL PROTECTED]) wrote: >I have a form that generates a list of "categories" dynamically. >That is, for >each category in a database, the form has a corresponding checkbox. >The >checkboxes are given serialized names, such as "chkbx1", "chkbx2", >etc. >

Re: [PHP] Matching Question

2001-08-04 Thread Mark Maggelet
On Sat, 4 Aug 2001 12:40:42 -0500, Jeff Oien ([EMAIL PROTECTED]) wrote: >After a sign up page I want to check if someone is already entered >into a database. The First Name, Last Name and Address all have >to match exactly in order for it to be considered a duplicate. >However >this isn't doing wh

Re: [PHP] Take JS array send by form

2001-08-01 Thread Mark Maggelet
On Wed, 1 Aug 2001 23:17:49 +0200, Ivo ([EMAIL PROTECTED]) wrote: >Hi > >I faced following problem: > >I've a form where which could have one or more input text fields (it >is not >clear how many they will be - one or more). Thay have same name - pn >- and >if they are more that one JavaScript tre

Re: [PHP] PHP mail() function

2001-07-27 Thread Mark Maggelet
t; >- Original Message - >From: Mark Maggelet <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> >Sent: Friday, July 27, 2001 12:14 PM >Subject: Re: [PHP] PHP mail() function > > >On Fri, 27 Jul 2001 11:11:57 -0600, Kevin Leavell ([EMAIL

Re: [PHP] array through url?

2001-07-27 Thread Mark Maggelet
On Fri, 27 Jul 2001 14:21:41 EDT, ([EMAIL PROTECTED]) wrote: >Is it possible to send an array of numbers into a php file through a >url? >Like if I have a file that adds numbers together, could I send it > >www.domain.com/add.php?num=2,3,4,5 > >$num would be an array. on the next page just go: $

Re: [PHP] Payflow Pro Problems

2001-07-27 Thread Mark Maggelet
On Fri, 27 Jul 2001 09:31:50 -0700, Brandon Orther ([EMAIL PROTECTED]) wrote: >Hello, > >I am trying to get the Payflow pro library compiled with PHP and am >having any problems. When I compile it without shared it gives me a >-8 >error or SSL connection error. If I try to compile it with shared

Re: [PHP] PHP mail() function

2001-07-27 Thread Mark Maggelet
On Fri, 27 Jul 2001 11:11:57 -0600, Kevin Leavell ([EMAIL PROTECTED]) wrote: >mail0 is sending mail that can't be received by aol or my local isp. > That >same mail can be received by other sites on that same server. The >mail doesn't bounce but I am getting a few DSN errors in my maillog. it so

Re: [PHP] explode()

2001-07-16 Thread Mark Maggelet
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

Re: [PHP] Using an image as a reset button on a PHP script

2001-07-13 Thread Mark Maggelet
On Fri, 13 Jul 2001 14:46:41 -0700, Brandon Orther ([EMAIL PROTECTED]) wrote: >Hello, > >I am making a script at the moment and want to use images instead of >the >usual buttons. Does anyone know how I can use the image as a reset >button? >Thank you, > >--

Re: [PHP] multiple domains using one cookie

2001-07-05 Thread Mark Maggelet
On Thu, 5 Jul 2001 14:59:19 +0200, Tobias Talltorp ([EMAIL PROTECTED]) wrote: >Hello all. > >I want multiple domains to be able to read from one cookie, or set >one >cookie each for the different domains. > >Here is the case: >When the user logs in to my server, I want to set a cookie that has >th

[PHP] upgrading to gd2.0.1

2001-07-05 Thread Mark Maggelet
Hi, I just upgraded gd to 2.0.1 and recompiled apache1.3.20/php4.06. when I do phpinfo() it says: GD Support enabled GD Version 1.6.2 or higher WBMP Support enabled and when i call imagepng() it says: Warning: ImagePng: No PNG support in this PHP build any ideas what's going on here? I removed c

Re: [PHP] help: unzip files for php 3.0

2001-07-02 Thread Mark Maggelet
On Mon, 2 Jul 2001 12:55:32 -0700 (PDT), John Holcomb ([EMAIL PROTECTED]) wrote: >The company that houses our servers only has php 3.0 >installed. I need a function that can unzip files. >Are there any methods(functions) that can handle this >in php3.0 or any version of php that's before php 4.0

Re: [PHP] [OT-ish] Optional Extras.

2001-06-28 Thread Mark Maggelet
I don't see how this is weighted. I would suggest doing it the easy way and treating the options as keywords and just putting them all in a text field with a fulltext index. this will give you the weighting you want and it will be a lot easier to deal with, but you will have to watch out for thin

[PHP] setting output_buffering for certain hosts or directories

2001-06-28 Thread Mark Maggelet
Is there any way to set output_buffering per directory or host? I tried putting: php_value output_buffering On in my virtual host, also in , , and .htaccess the only place it seems to get noticed is in php.ini php4.7devel/apache1.3.20/linux thanks, - Mark -- PHP General Mailing List (http://w

RE: [PHP] Help with simple regular expression

2001-06-25 Thread Mark Maggelet
another way to match this that works with preg or ereg is to go like this: ]*> On Mon, 25 Jun 2001 15:31:29 -0400, scott [gts] ([EMAIL PROTECTED]) wrote: >exactly. use the non-greedy "?" with the perl regex's >to have perl match the least amount of characters it can. > >preg_match('//', $text, $

Re: [PHP] An idea

2001-06-20 Thread Mark Maggelet
it looks like you're getting your ereg and preg mixed up but try it like this: switch(1){ case ereg("\\.jpg$",$filename): echo "JPEG Image";break; case ereg("\\.gif$",$filename): echo "GIF Image";break; case ereg("\\.zip$",$filename): echo "Compressed File"; break; defa

Re: [PHP] Regular Expression Help

2001-05-22 Thread Mark Maggelet
On Tue, 22 May 2001 10:44:42 -0700, Jason Caldwell ([EMAIL PROTECTED]) wrote: >I'm trying to figure out how to "say" with a Regular Expression how >to check >for the following characters in a phone number: > >( ) - > >with a length between 1 and 20 -- > >I've tried the following and it doesn't see

Re: [PHP] Job listings DB

2001-05-21 Thread Mark Maggelet
On Mon, 21 May 2001 13:55:12 +0100, py ([EMAIL PROTECTED]) wrote: >> Hi, >> >> I am designing a system for my company to get employee resumes via >>the >Web, >> rather than paper. All resumes now go into a mySQL DB, which can be >> searched by HR (at least that's the theory :) > >[I would do it li

Re: [PHP] function to complete strings with white spaces on the left

2001-05-20 Thread Mark Maggelet
On Sun, 20 May 2001 22:03:05 -0300, Carlos Fernando Scheidecker Antunes ([EMAIL PROTECTED]) wrote: >Hello All, > >I need to output a string that must always be 17 characters even if >the inside value is not. > >Supose a have the HELLO word that is a 5 character string and I need >to output "HELLO

Re: [PHP] PHP Pros/Cons, Case Examples, PHP vs Servlets

2001-05-18 Thread Mark Maggelet
>The sercuity of java is better and the network controlling features >is better too . > >The loading time of servlet is faster since the server just need to >run the servlet one times You probably mean that it needs to load the jvm one time, the servlet gets run with every request (unless you cac

RE: [PHP] Change 'key' names of an associative array.

2001-05-15 Thread Mark Maggelet
reset($array); while(list($key,$value)=each($array)){ $array[strtoupper($key)]=$value; unset $array[$key]; } On Tue, 15 May 2001 16:19:41 -0400, Altunergil, Oktay ([EMAIL PROTECTED]) wrote: >Yes. But I want to change the name of the key, not the value. Plus I >want to >be able to

Re: [PHP] ssh

2001-05-14 Thread Mark Maggelet
On Mon, 14 May 2001 23:29:03 -0800, Christopher Ostmo ([EMAIL PROTECTED]) wrote: >Tyrone Mills pressed the little lettered thingies in this order... > >> How about using something like puTTY or SecureCRT? >> > >Just a side note. I also like SecureCRT, but it isn't "free" (which >was >the original

Re: [PHP] protecting video files

2001-05-11 Thread Mark Maggelet
On Fri, 11 May 2001 17:28:25 -0500, WebMaster ([EMAIL PROTECTED]) wrote: >I did :( went character by character and could find not extra spaces. > >At 06:16 PM 5/11/01 -0400, Michael Kimsal wrote: >>Check for extraneous spaces in your script. >> >>Tim Schulte wrote: >> >> > Hi there - >> > >> >

Re: [PHP] PC MAG article

2001-05-09 Thread Mark Maggelet
On Wed, 9 May 2001 20:19:34 -0400, Mike ([EMAIL PROTECTED]) wrote: >As a devoted php programmer I was surprised how bad PC MAG blasted >php this >month.It sound as if it doesnt scale very well(Ive never had more >than a few >people on my site at once).Any comments??? seeing as how zdnet is owned

Re: [PHP] Is there a string index funct?

2001-05-09 Thread Mark Maggelet
On Wed, 9 May 2001 18:08:45 -0700, Dexter ([EMAIL PROTECTED]) wrote: >Hi PHP sters, > >Looking for a function like Perls index function to get the first >occurrence of a string within another. > >Thanks > >Dexter http://www.php.net/manual/en/function.strpos.php -- PHP General Mailing List (htt

RE: [PHP] Apache error when installing PHP 4.0.5

2001-05-09 Thread Mark Maggelet
On Wed, 9 May 2001 15:49:51 -0500, Joseph Bannon ([EMAIL PROTECTED]) wrote: >> you need to point to the apache-source install >> ie: ./configure --with-apache=../apache-1.3.19 > > >But what if I have apache already installed? I have a Cobalt Raq3 >with >apache already installed. you need to recom

Re: [PHP] conversion script

2001-05-08 Thread Mark Maggelet
On Tue, 8 May 2001 11:09:18 -0700, Ryan Christensen ([EMAIL PROTECTED]) wrote: >Would anyone be able to help me out with this: > >I have quite a few (almost 2000) .html files that I would like to >change >over to the .php extension. Past that, I would also like to add >text to the >top & bottom o

Re: [PHP] MySQL select rand() with weighting?

2001-05-03 Thread Mark Maggelet
On Thu, 3 May 2001 20:15:26 +0100, James, Yz ([EMAIL PROTECTED]) wrote: >Hi Guys, > >Does anyone know how to select one field randomnly from a MySQL table >against a weighting column in the same row the field is selected >from? > >For example, "SELECT id, url, image FROM table ORDER BY rand() LIMI

Re: [PHP] timezones

2001-04-30 Thread Mark Maggelet
rence in hours between them and pst*3600 >2.) we have users ALL OVER the world - is there a place to find all >of the timezones at? good luck, there's tons and some of them are wacky or don't honor daylight saving time. > >--Joe > >On Mon, Apr 30, 2001 at 12:11:55PM

Re: [PHP] timezones

2001-04-30 Thread Mark Maggelet
On Mon, 30 Apr 2001 13:56:20 -0500, Joe Stump ([EMAIL PROTECTED]) wrote: >I have a quick question regarding timezones ... > >On the local side a record is inserted into the DB by someone in >Michigan, while >the server rests in CA. Thus a three hour difference. The local >mktime() will >create a t

Re: [PHP] cookies and clocks

2001-04-25 Thread Mark Maggelet
On Wed, 25 Apr 2001 17:48:48 -0700 (PDT), Rasmus Lerdorf ([EMAIL PROTECTED]) wrote: >> I have a cookie that times out after an hour for security reasons. >> About 1 out of 200 of my users send me an email saying they can't >>log >> into my site and I find out that it's usually because their clocks

Re: [PHP] cookies and clocks

2001-04-25 Thread Mark Maggelet
his though. I guess I'm asking if someone out there has had this problem and found a good way around it. thanks, - Mark >HTH, >DanO > > >"Mark Maggelet" <[EMAIL PROTECTED]> wrote in message >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >I have a cookie

Re: [PHP] Strange errors

2001-04-25 Thread Mark Maggelet
On Thu, 26 Apr 2001 09:54:04 +0930, Joseph Blythe ([EMAIL PROTECTED]) wrote: >Chris Fry wrote: > >> Have a look at php.ini in /usr/local/lib >> >> It looks like your prepend file is browser.php - just comment that >>line out. > >Those lines in the php.ini are blank > >; automatically add files bef

Re: [PHP] Big Problem

2001-04-25 Thread Mark Maggelet
On Thu, 26 Apr 2001 01:48:13 +0200, Thomas Booms ([EMAIL PROTECTED]) wrote: >Hi all, > >I'm using on my new machine (SuSE 7.0) PHP4. In one PHP4-Script I use >the mail-Function. But my /var/log/mail (qmail) does not give any >entry >for this mail. > >Is there a bug? > >In PHP3 it was all running g

[PHP] cookies and clocks

2001-04-25 Thread Mark Maggelet
I have a cookie that times out after an hour for security reasons. About 1 out of 200 of my users send me an email saying they can't log into my site and I find out that it's usually because their clocks are off. Has anyone had any luck using the time on the client to set cookies by instead of ser

Re: [PHP] Strange errors

2001-04-25 Thread Mark Maggelet
maybe it's something in auto_prepend_file or auto_append_file. do phpinfo() to check. On Thu, 26 Apr 2001 09:36:56 +0930, Joseph Blythe ([EMAIL PROTECTED]) wrote: >Hey all, > >I keep getting this error message on a couple of pages from a site I >am >currently working on, the strange thing about

RE: [PHP] Why is this happening

2001-04-17 Thread Mark Maggelet
On Tue, 17 Apr 2001 16:06:47 -0500, Boget, Chris ([EMAIL PROTECTED]) wrote: >> >Ok, I found out what the problem was. I'm still curious >> >why the problem is occuring. >> >> if( $tmpArray[errorNumber] & $typesToDisplay ) { >> you're using the bitwise & when you want the logical && > >No, I actua

RE: [PHP] Why is this happening

2001-04-17 Thread Mark Maggelet
On Tue, 17 Apr 2001 15:55:38 -0500, Boget, Chris ([EMAIL PROTECTED]) wrote: >Ok, I found out what the problem was. I'm still curious >why the problem is occuring. > >> if( $tmpArray[errorNumber] & $typesToDisplay ) { // line to >>comment out you're using the bitwise & when you want the logical

Re: [PHP] Finding Duplicate Numbers?

2001-04-17 Thread Mark Maggelet
On Tue, 17 Apr 2001 12:34:27 -0700, Colin Putney ([EMAIL PROTECTED]) wrote: >On Tuesday, April 17, 2001, at 12:19 PM, Mark Maggelet wrote: > >> That works for mysql. He probably just wants to kill the >>duplicates, >> so there's an easier way: add a unique index

Re: [PHP] Dynamic Pages and Google ???

2001-04-17 Thread Mark Maggelet
Google doesn't choke at all on dynamic pages. pages get ranked by keywords appearing on the page and even more importantly, the link text of links on other pages pointing to the page that's being indexed. in other words, if a lot of sites link to your page like so: google choke then a search for

Re: [PHP] Finding Duplicate Numbers?

2001-04-17 Thread Mark Maggelet
On Tue, 17 Apr 2001 11:30:07 -0700, Colin Putney ([EMAIL PROTECTED]) wrote: >On Tuesday, April 17, 2001, at 11:00 AM, Devin Atencio wrote: > >> I have a SQL Table that has over 1,000 records and I was wanting >> to write a script that would find duplicate phone numbers and >> then list the duplic

Re: [PHP] baffled :<:

2001-04-16 Thread Mark Maggelet
On Tue, 17 Apr 2001 15:59:37 +1000, Peter Houchin ([EMAIL PROTECTED]) wrote: >can any one see a problem with this loop? > > $db = include"connect.inc"; >$foo = "SELECT * FROM 6pci WHERE card='$card' ORDER BY card"; > > $result = mysql_query($foo,$db); > > >while ( ($myrow = mysql_fetch_array($res

Re: [PHP] Job in Whistler, BC

2001-04-16 Thread Mark Maggelet
On Mon, 16 Apr 2001 20:00:27 -0700, Dddogbruce \(@home.com\) ([EMAIL PROTECTED]) wrote: >Whistler's cool! Yeah, and a php job at a ski resort?! Hmm, that's way too good to be true. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Re: [PHP] Blur some text please

2001-04-16 Thread Mark Maggelet
check the projects page on php.net for an extension called php_imlib. On Tue, 17 Apr 2001 01:28:02 +0200, Richard ([EMAIL PROTECTED]) wrote: >Nah... It's up to the browser. 8-bit text cannot be given any >effects using >PHP. > >- Richard > >"Brandon Orther" <[EMAIL PROTECTED]> wrote in message >[

Re: [PHP] resultset array

2001-04-12 Thread Mark Maggelet
On Thu, 12 Apr 2001 15:42:54 -0400, Mike ([EMAIL PROTECTED]) wrote: >I would like to put a mysql resultset into an array of type >row(rownunber)(data).Any Ideas? >Mike P >[EMAIL PROTECTED] > > > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For a

[PHP] compile problems

2001-04-10 Thread Mark Maggelet
Hi , I'm having compile problems with php4.04pl1 and the latest development version (where can I get older?) here's what the end of make looks like: .libs/libphp4.a(xml.o): In function `xml_parser_dtor': /home/certscape/php4-200104102145/ext/xml/xml.c:304: undefined reference to `php_XML_ParserF

Re: [PHP] Limitation of redirecting using header()?

2001-04-10 Thread Mark Maggelet
On Tue, 10 Apr 2001 17:16:08 -0400, Daniel ([EMAIL PROTECTED]) wrote: >I might have misread this comment, but I found the opposite. > >In one instance, I had: >header("Location: $path/newpage.php"); >and in another instance: >header("Location: newpage.php"); I'm talking about using the full url (

Re: [PHP] Limitation of redirecting using header()?

2001-04-10 Thread Mark Maggelet
On Tue, 10 Apr 2001 14:18:54 -0400, Daniel ([EMAIL PROTECTED]) wrote: >I am writting a session enabled webapp that has a typical login >page. The >page submits to itself and upon validation, I want to allow the user >to >continue on to the next page. > >>From everything I have read so far, the on

Re: [PHP] Passing variables,,, I know its not this hard.

2001-04-09 Thread Mark Maggelet
On Mon, 09 Apr 2001 12:08:48 -0400, Curtis ([EMAIL PROTECTED]) wrote: >Hello, >Could someone please tell me where I am going wrong here. >I have an HTML form and I want to past the input from a text box to >the >next page url to connect >to my mysql database. > >Here is where I am at now > >

Re: [PHP] scramble the code-sneaky solution

2001-04-05 Thread Mark Maggelet
On Thu, 05 Apr 2001 10:11:20 -0700, Lindsay Adams ([EMAIL PROTECTED]) wrote: >If you don't want to rewrite any of your existing code, consider the >behavior of frames. >If you make a frameset with a 0 height for the top frame, and then >use the >bottom frame for everything, then the URL in the loc

Re: [PHP] Alphabetize array,.. please?

2001-04-03 Thread Mark Maggelet
On Tue, 03 Apr 2001 16:44:36 -0700, Brandon Orther ([EMAIL PROTECTED]) wrote: >Hello, > >I have an array from an ftp nlist. Is there any way I can >alphabetize the >array? sort($array); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: [PHP] Loading SQL files (not CSV) into mySQL

2001-04-03 Thread Mark Maggelet
I think you want: exec("/path/to/mysql -p$password -u$username $database < $filename"); On Wed, 04 Apr 2001 00:35:34 +0100, Andy Warwick ([EMAIL PROTECTED]) wrote: >I'm after some pointers on how to dump and load SQL files to and >from mySQL >using a PHP/HTML form. > >I've read the manual about "

Re: [PHP] Date difference

2001-03-31 Thread Mark Maggelet
On Sat, 31 Mar 2001 20:07:10 +0600, ([EMAIL PROTECTED]) wrote: >Dear Friends, > >I am accessing a MySQL database through PHP. > >I have to calculate the difference between todays date and the date >obtained >from MySQL database. select to_days(curdate())-to_days(datefield) from table; - Mark

Re: [PHP] Match em up

2001-03-29 Thread Mark Maggelet
On Thu, 29 Mar 2001 19:58:51 +0200, Johannes Janson ([EMAIL PROTECTED]) wrote: >Hi, > >SELECT a.list FROM db1 a, db2 b WHERE a.email!=b.email; > >this shoulds work no, this isn't even close. you need a left join, there's an example in the mysql docs under left join that shows you how to do what y

Re: [PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Mark Maggelet
On Tue, 27 Mar 2001 15:50:44 -0600 (Central Standard Time), Michael Champagne ([EMAIL PROTECTED]) wrote: >But then how would you process it in the same file? If I'm calling >it from >myfile and my link is to myfile then how does it know that it's >already been >clicked? well you can make the url

Re: [PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Mark Maggelet
On Tue, 27 Mar 2001 14:04:58 -0600 (Central Standard Time), Michael Champagne ([EMAIL PROTECTED]) wrote: >Is there a way to have an ordinary href link call some javascript >and say "are >you sure blah blah blah?" and then once you hit Ok it calls the same >php file >which then does all the databas

Re: [PHP] Environment extract

2001-03-27 Thread Mark Maggelet
On Tue, 27 Mar 2001 17:31:25 +0100, Costas ([EMAIL PROTECTED]) wrote: >when i try printing > >print $HTTP_USER_AGENT; > >I get the error message Undefined variable: HTTP_USER_AGENT > >have i missed a declaration of some sort or something else? > >thanks Are you doing this from inside a function

Re: [PHP] Benchmark single page

2001-03-21 Thread Mark Maggelet
On Wed, 21 Mar 2001 17:09:17 -0800, Jason Granum ([EMAIL PROTECTED]) wrote: >I'm wanting to benchmark a single PHP page to the millisecond (if >possible) that basicly just will put a > >This page generated in X.XXX seconds > >at the bottom of every page. > >I've tried looking through the past mess

Re: [PHP] trim string

2001-03-21 Thread Mark Maggelet
On Wed, 21 Mar 2001 18:09:47 +0800, Wen Ni Leong ([EMAIL PROTECTED]) wrote: >I need help in this basic string function. >I query from the database by using while loop and the result in in >array. I separated them by using "," . > >I want at the end of the string to be trim off. Unfortunately I >

Re: [PHP] MySQL "DISTINCT" query

2001-03-21 Thread Mark Maggelet
On Wed, 21 Mar 2001 11:04:48 -0700, Jared Howard ([EMAIL PROTECTED]) wrote: >I need to retrive all column information from a DISTINCT query. But >so >far, I only can get one column to show by using this: > >SELECT DISTINCT my_column FROM my_table; > >which then gives me a list of my_column inform

Re: [PHP] banner exchange, how to?

2001-03-21 Thread Mark Maggelet
On Tue, 20 Mar 2001 21:27:14 -0800, Ed Lazor ([EMAIL PROTECTED]) wrote: >Hi =) > >I'd like to setup a banner exchange with some friends. Some of them >don't >have PHP access, so I'm trying to come up with something that will >work for >everyone. I checked one site that's running a banner exchang

RE: [PHP] files with html extension

2001-03-20 Thread Mark Maggelet
for php4: AddType application/x-httpd-php .html for php3: AddType application/x-httpd-php3 .html On Tue, 20 Mar 2001 10:12:56 -0800, Rick VanNorman ([EMAIL PROTECTED]) wrote: >On 3/20/2001 at 12:29 PM Jack Dempsey wrote: > >>You can tell apache to have the php interpreter parse files with an >>h

Re: [PHP] dynamically change a variable name

2001-03-18 Thread Mark Maggelet
On Sun, 18 Mar 2001 20:36:15 -0500, Gary ([EMAIL PROTECTED]) wrote: >Is there a way to dynamically change a variable name? For example: >I want to change the variable name $DWG to >$DWG1 >$DWG2 >$DWG3 >with a for loop. Is there a way to do this? you could try: for($i=1;$i<=3;$i++){ ${"DW

Re: [PHP] Reminders

2001-03-15 Thread Mark Maggelet
Hi, I'm working on something like this too. I was hoping to be able to put something like this into an icapd server because my app might have been able to use mcal. It was too much effort though, so I'm looking at doing it with cron. Let me know if you find a more creative way of doing it. - Mar

RE: [PHP] 3 situations - PHP Power or... servlet(JSP) power ?

2001-03-15 Thread Mark Maggelet
nitely not one of them. >Marian Vasile >IT Manager >Schnecker van Wyk & Pearson >www.investments.ro > >-Original Message- >From: Mark Maggelet [mailto:[EMAIL PROTECTED]] >Sent: Thursday, March 15, 2001 9:11 PM >To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >Subjec

Re: [PHP] 3 situations - PHP Power or... servlet(JSP) power ?

2001-03-15 Thread Mark Maggelet
On Thu, 15 Mar 2001 19:59:50 +0200, Marian Vasile ([EMAIL PROTECTED]) wrote: >I have 3 situations and I need an answer about what is faster... > >1. A PHP script that it's executed 10 times in a second, and have to >update >a a MySQL table. >1. A PERL script that it's executed 10 times in a second

Re: [PHP] Good Free PHP Editor?

2001-03-14 Thread Mark Maggelet
editplus can do this. On Wed, 14 Mar 2001 13:49:04 -0900 (AKST), chris ([EMAIL PROTECTED]) wrote: >Do any of these editors support server mappings allowing one to >auomatically preview files through a server? I find this invaluable >in >HomeSite (which is also VERY stable for me using Win2K) and

Re: [PHP] adding to functionality of mysql_fetch_field

2001-03-14 Thread Mark Maggelet
On Wed, 14 Mar 2001 12:12:22 -0800, Dennis Gearon ([EMAIL PROTECTED]) wrote: >I'd like to see mysql_fetch_field() return as the last value in the >object, the allowable values for an enum field as an array. Could I >get >a cc as well as a listserver group answer from the PHP guys as to >whether th

Re: [PHP] payment

2001-03-12 Thread Mark Maggelet
On Mon, 12 Mar 2001 17:34:14 -0500, Russ Cobbe ([EMAIL PROTECTED]) wrote: >> On Mon, 12 Mar 2001 17:04:13 -0500, Russ Cobbe ([EMAIL PROTECTED]) >> wrote: >> >If you are worried about your payment processor going down (which >>to >> >me would be a very serious concern) you might want to look at >>

Re: [PHP] payment

2001-03-12 Thread Mark Maggelet
On Mon, 12 Mar 2001 17:04:13 -0500, Russ Cobbe ([EMAIL PROTECTED]) wrote: >If you are worried about your payment processor going down (which to >me would be a very serious concern) you might want to look at >www.opayc.com which is a standardized way to talk to about 30 or so >payment processors.

Re: [PHP] oohform validation help

2001-03-09 Thread Mark Maggelet
On Fri, 9 Mar 2001 09:12:46 -0600, Chris Lee ([EMAIL PROTECTED]) wrote: >using client side form verification is a bad idea anyhow, just write >a simple php verify. Imagine waiting 10 minutes for a 5 MB file to upload on a form just to get an error message that says 'please go back and fill out yo

Re: [PHP] Re: server side cookies

2001-03-02 Thread Mark Maggelet
On Fri, 02 Mar 2001 13:49:17 -0600, Michael David ([EMAIL PROTECTED]) wrote: >Jeff: > >You're talking about sessions, for the most part. I might be wrong but I think he's talking about setcookie(), for which the docs are here: http://www.php.net/manual/en/function.setcookie.php meaning that the

RE: [PHP] Developer certifications

2001-02-28 Thread Mark Maggelet
for free ... tomorrow they start charging $20 or so for each >exam > > >-----Original Message- >From: Mark Maggelet [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, February 28, 2001 2:14 PM >To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >Cc: [EMAIL PROTECTED] >Subject: Re

Re: [PHP] Developer certifications

2001-02-28 Thread Mark Maggelet
On Wed, 28 Feb 2001 20:54:07 +0200 (EET), Dragos Roua ([EMAIL PROTECTED]) wrote: >Hello, > >If you'll take a look at Brainbench.com you'll see a PHP4 cert exam >there. As >brainbench plan to become a paid service, their certifications may >start worth >something sometime. The brainbench exam is t

Re: [PHP] Need an array parser(CONT)

2001-02-28 Thread Mark Maggelet
On Wed, 28 Feb 2001 12:33:55 -0800, Dallas K. ([EMAIL PROTECTED]) wrote: >I am looking for somthing that will parse a multidimentional array >of any >size, and return a key / value listing for debugging > >Example: > >if I have an array such as... > >$arr[name] = dallas >$arr[address][city] =

Re: [PHP] mySQL table joins are slow, need rebuild?

2001-02-27 Thread Mark Maggelet
On Tue, 27 Feb 2001 15:04:09 -0800, Joe Stump ([EMAIL PROTECTED]) wrote: >You need to remember a few things when it comes to joins: > >the joined fields must be the EXACT same definition > - example: a join on id int(9) and id int(3) will NOT be optimized > - more: a join on id char(9)

Re: [PHP] Lets nock off any numbers at the begging of a string...

2001-02-26 Thread Mark Maggelet
On Mon, 26 Feb 2001 11:57:04 -0800, Brandon Orther ([EMAIL PROTECTED]) wrote: >Hello, > >Is there a way to remove the first numbers of a string? Here is an >example: > >$string1 = "12 this is number twelve"; >when done: " this is number twelve"; > >$sting1 = "123 this is number one twenty three"

Re: [PHP] isset()

2001-02-24 Thread Mark Maggelet
On Sat, 24 Feb 2001 17:51:07 +0100, Christian Reiniger ([EMAIL PROTECTED]) wrote: >On Saturday 24 February 2001 17:18, PHPBeginner.com wrote: >> in my preceding email I've written: >> >> if($var!='') >> >> will fix your all your worries without an intervention of a strings >> function. > >Except t

Re: [PHP] MySQL execution order?

2001-02-22 Thread Mark Maggelet
On Thu, 22 Feb 2001 17:41:43 -0500, ..s.c.o.t.t.. [gts] ([EMAIL PROTECTED]) wrote: >mysql executes the queries in the order it recieves >them, (so if your program's logic executes a select >before an update, you'll never see results from the >update in your select... at least not normally :) well

RE: [PHP] a good hosting experience

2001-02-21 Thread Mark Maggelet
On Wed, 21 Feb 2001 14:55:25 -0800, ..s.c.o.t.t.. ([EMAIL PROTECTED]) wrote: >liquidweb.com has some nice looking deals. > >last time i checked, they supported >MySQL/PHP/Perl/lots of other stuff well, most hosts do, but not many are using 3.23.30 or higher. I'm looking for a host that somebody k

Re: [PHP] a good hosting experience

2001-02-21 Thread Mark Maggelet
The last time I used these guys I didn't like them because the software they were running was way out of date. I can deal with an old version of php, but mysql needs to be current because there's too many things that old versions can't do. Right now I'm looking for a cheap virtual host that runs

Re: [PHP] date format for MySQL

2001-02-21 Thread Mark Maggelet
On Wed, 21 Feb 2001 11:36:02 -0800, Jerry Lake ([EMAIL PROTECTED]) wrote: >I have a field in my MySQL DB that is "DATE" > >on the form that populates this field, various >people will by typing in dates in various formats > >how to I convert say 2/21/01 or 02-21-2001 etc... >to 2001-02-21(MySQL For

Re: [PHP] How to determine the parameter is a 1 dimension array or not?

2001-02-19 Thread Mark Maggelet
On Tue, 20 Feb 2001 02:45:12 +0800, Zenith ([EMAIL PROTECTED]) wrote: >In a self defined function, a one dimension or two dimension array >may be >passed, >How can I check that, the passed in array is a one dimension array >or a two >dimension array? I guess you would call is_array() on one of th

Re: [PHP] save some typing

2001-02-16 Thread Mark Maggelet
On Fri, 16 Feb 2001 17:31:46 -0600, Christopher Allen ([EMAIL PROTECTED]) wrote: >Hola: >http://www.google.com/intl/en_extra/options/winnetscape.html > >Its kinda helpful: I modified the above to utilize the >www.php.net/some_function > >Heres the trivial js code: >javascript:q=document.getSelecti

  1   2   >