RE: [PHP] Portland, Oregon

2001-10-25 Thread Jerry Lake

Rasmus,

I'm not sure how I missed that,
I would have liked to attend.
where were you ?

Jerry Lake -[EMAIL PROTECTED]
Interface Engineering Technician



-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 3:54 PM
To: Richard Baskett
Cc: PHP General
Subject: Re: [PHP] Portland, Oregon


 So Rasmus.. how about coming to Portland, Oregon?  I havent seen a PHP
 class, tutorial, anything in this area.. and I would love to attend one :)

I was there 2 months ago.

-Rasmus


--
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]



-- 
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] php code to fax

2001-10-22 Thread Jerry Lake

I could be wrong, but it would seem
easiest to have an an email to fax
gateway and use your php to send mail

Regards,

Jerry Lake   
Interface Engineering Technician



-Original Message-
From: Glenn Antoine [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 6:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php code to fax


I am working on a project that will require the ability to take input
from a web interface and then fax the content out to some of the
members.  If anyone has had any experience with a similar project, I
would greatly appreciate any assistance.

Thanks in advance,
Glenn


-- 
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]



-- 
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] display query results at random

2001-09-26 Thread Jerry Lake

I'm not positive on this, but I think I catch your drift.
when you get the results of your query...

place 1 = $results[2]
place 2 = $results[0]
place 5 = $results[4]

Later,

Jerry Lake
Interface Engineering Technician



-Original Message-
From: Matthew Delmarter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 9:15 PM
To: [EMAIL PROTECTED]
Cc: PHP Mailing List
Subject: RE: [PHP] display query results at random


Hi Lawrence,

Thanks for your reply.

I should clarify that I want to control where I output the result.

Place 1 - show details for record 3 //I specifically want record 3
details here
Place 2 - show details for record 1 //I specifically want record 1
details here
Place 5 - show details 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 PROTECTED]
Subject: RE: [PHP] display query results at random


Return into an array, then loop through the array or shuffle it
(easier)?.

Note if you have nulls in DB, you will have to do something different.

n'est pas?



e.g. (untested)

mysql_fetch_array

?php
mysql_connect ($host, $user, $password);
$result = mysql_db_query (database,select user_id, fullname from
table);
$j=0;
while ($row[$j] = mysql_fetch_array ($result)) {
$j++;
}
mysql_free_result ($result);

srand ((float)microtime()*100);
shuffle ($row);

//do output stuff with array

?

-Original Message-
From: Matthew Delmarter [mailto:[EMAIL PROTECTED]]
Sent: September 26, 2001 12:01 PM
To: PHP Mailing List
Subject: [PHP] display query results at random


How do I return a specific record from a db outside of the query?

Let's say I select * from table (using mysql_fetch_object) and get 5
results. I want to display the 5 results in different / random places
on the page.

Place 1 - show details for record 3
Place 2 - show details for record 1
Place 5 - show details for record 5

How do I do this?

I know how to loop thru a mysql result - but what if want to display
things in a random order around the page? I could have multiple select
statements - but this would increase the load on the server and is
unnecessary as all the data was returned 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]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
[EMAIL PROTECTED]


-- 
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]



-- 
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]




[PHP] nested loop confusion

2001-09-06 Thread Jerry Lake

Ok, I will try to explain myself as clearly as possible
please let me know if I need to be more so.

On my admin page I have a review form. there is a select
box that is self populating from a readir. that part works
fine. however I would like for the files to not show up if
they have been used in a prior review, the ones that have been
used are noted in the MySQL review database. here is the
code that I am trying to work with, if anyone has any ideas,
please let me know.

snip
?php

$handle=opendir('/home/upstarter/public_html/images/albums/');
while (false!==($file = readdir($handle)))
{
 // new code here
 $cExt = explode( ., $file );
 // and here
 while($myrow =  mysql_fetch_array($result))
 {
$image_url = $myrow[image_url];
$image = explode( /, $image_url );

 if ($file != .  $file != ..  $file != $image[2]  $cExt[1]
== gif || $cExt[1] == jpg)
 {
echo option value=\$file\.$file./option;
 }
}
}
 echo /select;
closedir($handle);

?
/snip

Jerry Lake
Interface Engineering Technician


-- 
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] book help

2001-09-05 Thread Jerry Lake

since it was the only book you could
find, that makes it a good choice by
default, if you ask me. you can also
visit www.devshed.com for some great
tutorials.

Regards,

Jerry Lake 
Interface Engineering Technician



-Original Message-
From: Nikola Veber [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 05, 2001 10:36 AM
To: php forum
Subject: [PHP] book help


I am a begginer in php and I have bought the Sterling 
Huges' php developer's cookbook since it was the only 
book I could find. Is it a good choise ? 



-- 
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]



-- 
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] Random PowerBall Generator

2001-08-22 Thread Jerry Lake

if array_unique does what I think,
The biggest problem with that
is that Powerball being a reasonable 
semblance of random, does allow non-unique series
to be selected. i.e. the powerball can be the
same as one of the other five.

Jerry Lake 
Interface Engineering Technician



-Original Message-
From: Montz, James C. (James Tower) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 2:00 PM
To: Php-General (E-mail)
Subject: [PHP] Random PowerBall Generator


More as an exercise to get back into the swing of PHP, I have created the
PowerBall number generator. (for those of you un-aware, the powerball is at
$200 mil).

Took me a while to figure out using arrays, and the array_unique function.
It also incorporate the imagepng function.

Thanks to CC Zona for pointing me to the function I needed to get the job
done!

The page is at http://www.usrlinux.com/pball.php

Source code is available for viewing.  Suggestions on cleaning up code
welcome.

Enjoy!

James

___
James C. Montz
James Tower
http://www.jamestower.com 
[EMAIL PROTECTED] 

-- 
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]



-- 
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] looong date formatting for MySQL

2001-08-17 Thread Jerry Lake

NOW()

Jerry Lake
Interface Engineering Technician



-Original Message-
From: Adam Rambousek [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 4:20 PM
To: CGI GUY; [EMAIL PROTECTED]
Subject: Re: [PHP] looong date formatting for MySQL


date(Y-m-d) should do the job

 There's gotta be an easier way to get create a date
 properly formatted for MySQL's standard -MM-DD
 DATE field format.  Any suggestions,
 smacks-upside-the-head, etc. on how to reduce this
 would be greatly appreciated.



--
Adam Rambousek
email: [EMAIL PROTECTED] ICQ: 47596279 Jabber:
[EMAIL PROTECTED]
www: http://adamovy.cestiny.czhttp://hemzeni.poda.cz/matrix
* I'll save you from yourself, From those demons of the night
  They promise fame and fortune, All that you eagerly desire.  - Era


--
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]



-- 
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] looong date formatting for MySQL

2001-08-17 Thread Jerry Lake

(regarding my previous post)

although, it probably doesn't apply
to what your doing.

Jerry Lake 
Interface Engineering Technician



-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 4:28 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] looong date formatting for MySQL


NOW()

Jerry Lake
Interface Engineering Technician



-Original Message-
From: Adam Rambousek [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 4:20 PM
To: CGI GUY; [EMAIL PROTECTED]
Subject: Re: [PHP] looong date formatting for MySQL


date(Y-m-d) should do the job

 There's gotta be an easier way to get create a date
 properly formatted for MySQL's standard -MM-DD
 DATE field format.  Any suggestions,
 smacks-upside-the-head, etc. on how to reduce this
 would be greatly appreciated.



--
Adam Rambousek
email: [EMAIL PROTECTED] ICQ: 47596279 Jabber:
[EMAIL PROTECTED]
www: http://adamovy.cestiny.czhttp://hemzeni.poda.cz/matrix
* I'll save you from yourself, From those demons of the night
  They promise fame and fortune, All that you eagerly desire.  - Era


--
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]



-- 
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]



-- 
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]




[PHP] array issues

2001-08-09 Thread Jerry Lake

I believe that there is a better way to do what I am trying to
do here. I have an online form to enter interviews into a MySQL db

right now it is like this

input type=text name=q1 size=100
input type=text name=a1 size=100

input type=text name=q2 size=100
input type=text name=a2 size=100

etc... each going to their own spot in the table.

with this
$query = insert into
interviews(id,interviewed,interviewer,q1,a1,q2,a2,q3,a3,q4,a4,q5,a5,q6,a6,q7
,a7,q8,a8,q9,a9,q10,a10,interview_date)
values('','$interviewed','interviewer','$q1','$a1','$q2','$a2','$q3','$a3','
$q4','$a4','$q5','$a5','$q6','$a6','$q7','$a7','$q8','$a8','$q9','$a9','$q10
','$a10',NOW());


I think it would be easier if I could put them into arrays
like this
input type=text name=q[] size=100

I'm just not sure how to go about the insert statement then the retrieval
and formatting for the web.

any thoughts or advise is appreciated.

Jerry Lake
Interface Engineering Technician


-- 
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] phpAds advice needed

2001-08-06 Thread Jerry Lake

I've got phpads(new) up and running on www.upstarter.com
but I'm not exactly sure what type of help your needing
if your up and running and adding banners, what are you
in need of help with. Let me know and I'll do my best
to try and help.

Regards,

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Jack [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 06, 2001 3:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP] phpAds advice needed


I am trying to install phpAdsNew to my site, the given docs don't seems to
have enough information about how can I add banner details into table
banners correctly. I mean, I know how to insert data into a table and all
that, but I am talking about each parameters in that table and what are they
suppose to do specifically.
If there is anyone who has experiences about using this phpAdsNew or phpAds,
please give me some advice or tell me where could I get further information
beside the given docs that come when you download it.
Jack
[EMAIL PROTECTED]
Love your enemies, it will drive them nuts


-- 
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] Content Type Text?

2001-08-01 Thread Jerry Lake

text/plain

Jerry Lake 
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Jeff Oien [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 01, 2001 2:35 PM
To: PHP
Subject: [PHP] Content Type Text?


I've looked all over and can't find a content-type declaration for text.
This is my guess
header(Content-Type: text/txt);
but I'm not sure if this is right. I know this is more HTTP than PHP.
I want info to be displayed in a browser as plain text not HTML.
Thanks.
Jeff Oien

-- 
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]



-- 
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] mkdir

2001-07-30 Thread Jerry Lake

I can create single directories,
just not subdirectories. and only in
the directory the script is in
I'm guessing that it may be a permission
issue ...?

Jerry Lake  
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 28, 2001 7:31 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] mkdir


On Sat, 28 Jul 2001, Jerry Lake wrote:

 when using mkdir
 I cant seem to make subdirectories
 ?
 $oldumask = umask(0);
 mkdir('test/test', 0777);
 umask($oldumask);
 ?
 
 is there any way to do this ?

does the first test directory already exist? you may need to make them in
two steps. i believe mkidir has a switch to force it to create any needed
directories along the way.

 -- mike cullerton



-- 
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]



-- 
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]




[PHP] idiotic question

2001-07-27 Thread Jerry Lake

for the life of me I can't remember
how to convert a string to just the first
letter of itself i.e. $string = test
...a function
$string_first = t

I must be thinking in circles today.

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com



-- 
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]




[PHP] mkdir

2001-07-27 Thread Jerry Lake

when using mkdir
I cant seem to make subdirectories
?
$oldumask = umask(0); 
mkdir('test/test', 0777);
umask($oldumask);
?

is there any way to do this ?

Jerry Lake 
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com



-- 
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] Sorry To Repeat Repeat Repeat Repeat Re.......

2001-07-26 Thread Jerry Lake

Or try http://www.hotscripts.com/PHP/Scripts_and_Programs/

Jerry Lake   
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Nathan Cook [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 26, 2001 1:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Sorry To Repeat Repeat Repeat Repeat Re...


Just check out px.sklar.com.

Nathan Cook
[EMAIL PROTECTED]
- Original Message -
From: Kyle Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 26, 2001 10:14 PM
Subject: [PHP] Sorry To Repeat Repeat Repeat Repeat Re...


Could you people please send me any scripts you have made which are not too
complecated but are quite useful without the use of mySQL?
To restore my faith in PHP


Thanks in advance
-legokiller666-
http://www.StupeedStudios.f2s.com
New address new site

ICQ: 115852509
MSN: [EMAIL PROTECTED]
AIM: legokiller666





-- 
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]



-- 
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]




[PHP] 4.06 install problem

2001-07-24 Thread Jerry Lake

I just tried installing PHP 4.06 for PWS
with the installshield installer.

I didn't seem to work however. I am getting a
500 Internal server error everytime I try to
load a php file.

Has anyone else had this problem ? are there any
quick remedies ?

Jerry Lake 
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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] 4.06 install problem

2001-07-24 Thread Jerry Lake

Ben, Christian
sorry about the direct email
it was totally unintentional
I forgot to edit the email I 
hit reply to.

Regards,

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Phil Driscoll [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 1:26 PM
To: Jerry Lake; Ben Bleything; Christian Dechery
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] 4.06 install problem


On Tuesday 24 July 2001 21:10, Jerry Lake wrote:
 I just tried installing PHP 4.06 for PWS
 with the installshield installer.

 I didn't seem to work however. I am getting a
 500 Internal server error everytime I try to
 load a php file.

 Has anyone else had this problem ? are there any
 quick remedies ?


There are some tips on what to do near the bottom of install.txt

Cheers
-- 
Phil Driscoll


-- 
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] PWS setup with PHP

2001-07-20 Thread Jerry Lake

Or there are some pre-configured executables
that will install apache, MySQL, PHP and PhpMyAdmin
all from one download go to www.hotscripts.com

btw you can use php with PWS, but it is a pain.

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Brave Cobra [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 3:31 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PWS setup with PHP


Don't even try to get it working on PWS. Download the Apache Win 32 version
instead (http://www.apache.org )or if that is too complicated for you, try
Xitami (http://www.imatix.com). The latter is a great http server that is
very easy to configure (only for Win32). The setup of PHP Win32 can
configure your Xitami webserver to run PHP. No extra configuration
necessary.

Brave Cobra
- Original Message -
From: Minardi boy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 20, 2001 11:23 AM
Subject: [PHP] PWS setup with PHP


 I'm desperate! I have tried hard to set up PHP4 on my computer in order to
 go on with the book I bought (Beginning Php4 from wrox press)
 And it doesn't work. I can't get into the php test screen

 I got some failure messages when I installed the pws (failure with the
 transaction server)

 Can anybody help?

 Robert-Jan



 --
 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]




--
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]



-- 
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] Credit card number checker?

2001-07-16 Thread Jerry Lake

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 PROTECTED]]
Sent: Monday, July 16, 2001 4:49 PM
To: John Donagher
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Credit card number checker?


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

Maybe I am the only one, but I would NEVER do business with ANY
company that charged my credit card just to see if it was valid.

At any rate, the initial request was to see if their was a way by which
you could tell whether the number is valid BEFORE it is sent to the
bank for processing.  Since this solution requires sending the card to
the bank for processing to see if the number is valid, it would defeat the
purpose.

Christopher Ostmo
a.k.a. [EMAIL PROTECTED]
AppIdeas.com
Innovative Application Ideas
Meeting cutting edge dynamic
web site needs since the
dawn of Internet time (1995)

For a good time,
http://www.AppIdeas.com/

--
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]



-- 
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] which php shopping cart is this?

2001-07-13 Thread Jerry Lake

I think that is opencart, or openshop something
like that. I ran across it at www.hotscripts.com
a while back.

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 10:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] which php shopping cart is this?


Greetings!

Which php-based shopping cart is being used at this site?
http://shop.t-shirtoutlet.com/catalog/


Thanks!



Max Pyziur BRAMA - Gateway Ukraine
[EMAIL PROTECTED]  http://www.brama.com/

-- 
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]



-- 
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] which php shopping cart is this?

2001-07-13 Thread Jerry Lake

Never mind that last message,
It is The Exchange Project
http://theexchangeproject.org/catalog/default.php?

Jerry Lake 
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 10:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] which php shopping cart is this?


Greetings!

Which php-based shopping cart is being used at this site?
http://shop.t-shirtoutlet.com/catalog/


Thanks!



Max Pyziur BRAMA - Gateway Ukraine
[EMAIL PROTECTED]  http://www.brama.com/

-- 
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]



-- 
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]




[PHP] regex questions

2001-07-10 Thread Jerry Lake

ok, I'm having some continual regex
issues and perhaps someone can help
me out with this. I've got a series
of line of html that I am changing
to xhtml and in doing so, each of those
lines need to be appended with a  /
before the closeting bracket.

the only pattern that they share is
that the end of the line ends with a number,
quotes and a closing bracket i.e. 7
I can match that pattern, with .\d but
when I try to replace it, I also replace
the number at the end, and not just append 
the line like I want to.

can someone show me where I am going wrong

Thanks,

Jerry Lake 
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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] Problem writting to file...

2001-07-06 Thread Jerry Lake

try this

?php
$fp = fopen(./data.txt, w+);
$counter = 0;
while ($counter  6)
{
$counter++;
fwrite($fp, $counter . \n);
} 
fclose ($fp);
?

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: James Bartlett [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 11:30 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Problem writting to file...


No errors at all...
  - Original Message - 
  From: Tyler Longren 
  To: php-general ; James Bartlett 
  Sent: Friday, July 06, 2001 7:29 PM
  Subject: Re: [PHP] Problem writting to file...


  Any errors being given to you?

  Tyler

  - Original Message -
  From: James Bartlett [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, July 06, 2001 1:15 PM
  Subject: [PHP] Problem writting to file...


  Hi,

  I'm trying to write data to a file but for some reason it will not store
  numbers in the file...Here's the code I'm using...(as an example)

  ?php
  $fp = fopen(./data.txt, w+);
  $counter = 0;
  while ($counter 6)
  {
  fwrite($fp, $counter . \n);
  $counter = $counter +1;
  }
  fclose ($fp);
  ?

  Thanks for any help...

  James




-- 
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]




[PHP] email a file after the file is x lines long

2001-07-06 Thread Jerry Lake

Is it possible the set a script
to email a file after it becomes so many lines
long ? I have an email address that accepts
only catalog requests and I'd like to be able
to have a complete list mailed to me instead of
doing it one at a time.

any suggestions are appreciated

Thanks,

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Steve Edberg [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 1:29 PM
To: Chad Day; [EMAIL PROTECTED]
Subject: [PHP] Re: string formatting help


In the original message below, did you mean that you're actually
SEEING the br tags in the output? If so, there may be a conversion
with htmlentities() going on somewhere that converts the br tags to
lt;brgt; (so they are displayed instead of being interpreted).

If you replaced the br's with spaces or newlines, the output
_should_ all be on one line, since HTML considers ALL strings of
whitespace (tabs, newlines, returns, spaces) to be a single space. If
you replaced br's with newlines and you are getting the line breaks
still, your output may be in a pre.../pre block.

- steve


At 3:36 PM -0300 7/6/01, InÈrcia Sensorial [EMAIL PROTECTED] wrote:
   Maybe:

$array = explode(br, $string);

foreach ($array as $key = $value) {
 echo $value;
}

   Would separate the string by br's and print all in one line.



Or, more compactly:

echo str_replace('br', '', $string);

This would only work if tags were lowercased; to handle mixed case,
you'd need to do

echo eregi_replace('br', '', $string);

or use the preg equivalent




   Julio Nobrega.

A hora est· chegando:
http://sourceforge.net/projects/toca

Chad Day [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  I'm trying to pull a string from a database to use in a javascript
  function.. but it's doing line breaks on me, which in turn messes up the
  javascript.

  The string in the mysql db is like:
  kjdsakjadkbrskjdksbrbrkjkdfjdfkjfd

  When I pull it out, it becomes:

  kjdsakjadk
  br
  skjdks
  br
  br
  kjkdfjdfkjfd

  I've tried replacing the br's with blank spaces or new line characters,
but
  in the html code it still breaks on those breaks when I echo it back
out.
  How can I force this string to be all on one line?

  Thanks,
   Chad


--
+-- Factoid: Of the 100 largest economies in the world, 51 are --+
| Steve Edberg   University of California, Davis |
| [EMAIL PROTECTED]   Computer Consultant |
| http://aesric.ucdavis.edu/  http://pgfsun.ucdavis.edu/ |
+--- corporations -- http://www.ips-dc.org/reports/top200text.htm ---+

--
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]



-- 
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] closing window after submit

2001-06-30 Thread Jerry Lake

onMouseUp=window.close()

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Richard Kurth [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 3:57 PM
To: php
Subject: [PHP] closing window after submit


I have a form that is in a pop up window it has an image for a submit
button how can I close the pop up after submitting. I know I can do it
with javascript with a standard submit button. but how can I do it when
I use an image for a submit button


  form method=post action=?echo  $PHP_SELF;?
   input type=TEXT name=email size=30 maxlength=50
  input type=image src=fm_sub.gif width=71 height=11
border=0








Best regards,
 Richard
mailto:[EMAIL PROTECTED]


--
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]



-- 
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]




[PHP] a+ group or list, sorry for the OT

2001-06-21 Thread Jerry Lake

I know it's OT, but is anyone aware
of an A+ cert prep list or newsgroup

Thanks,

Jerry Lake  
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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] Forum script

2001-06-20 Thread Jerry Lake

www.phorum.org

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Rosen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 8:23 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Forum script


Hi
Can someone recommend me some good script for forums ?

Thanks,
Rosen




-- 
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]



-- 
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] how to install pws on win2k

2001-06-20 Thread Jerry Lake



You 
need IIS on win2k

Jerry LakeInterface Engineering TechnicianEuropa 
Communications - http://www.europa.comPacifier Online 
 - http://www.pacifier.com

  -Original Message-From: sagar chand 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, June 20, 2001 9:58 
  AMTo: [EMAIL PROTECTED]Subject: [PHP] how to 
  install pws on win2k
  hi everyone,
  
  I have recently shifted from win98 to win2k. the 
  pws i'm using is not installing on win2k. Is there any remedy 4 
  this?
  
  thanks for all u guys who help here with this 
  mailing list.
  
  bye
  sagar


RE: [PHP] Discussion board

2001-05-22 Thread Jerry Lake

I like Phorum
http://phorum.org/

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: James Atkinson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 12:23 PM
To: Thomas Deliduka; PHP List
Subject: RE: [PHP] Discussion board


http://www.phpbb.com

:)

- James

 -Original Message-
 From: Thomas Deliduka [mailto:[EMAIL PROTECTED]]
 Sent: May 22, 2001 12:10 PM
 To: PHP List
 Subject: [PHP] Discussion board


 Is there a good PHP alternative for a discussion board or something else
 that allows for moderators and other good features that will run on Linux?

 --

 Thomas Deliduka
 IT Manager
  -
 New Eve Media
 The Solution To Your Internet Angst
 http://www.neweve.com/



 --
 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]


--
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]



-- 
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] Image problem

2001-05-15 Thread Jerry Lake

This is how I fixed that same issue
in the head of my page
snip
if (ereg (new, $PHP_SELF)) {
$header = img src=location/of/header/image;
$title = www.website.com - What's New; }
elseif (ereg (products, $PHP_SELF)) {
$header = img src=location/of/header/image;
$title = www.website.com - Products; }
else {
$header = img src=location/of/header/image;
$title = www.website.com; }
/snip

then call the header in in the appropriate place in
your html ? echo $header; ?

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Michael O'Neal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 10:14 AM
To: php
Subject: [PHP] Image problem


Hi,

I'm still pretty new to PHP, and would like help on a solution for a 
problem I have.

I have a website that has 6 different sections.  (about, news, buying, 
selling, community, and relocation)  Each of the sections has it's own 
subfolder in the root directory of the website.  (/about, /news, etc...)  
Each of the sections also has a header image and footer image associated 
with that section.  (hdr_txt_about.gif, ftr_txt_about.gif, 
hdr_txt_news.gif, etc..)

I want to use PHP to know what section of the website the user is in, 
and load the appropriate header/footer image.  I know that I need some 
sort of if/then statement, and I know that it has to use the URL to see 
where it is, but I don't know where to implement it, and I'm not quite 
sure how.  The website is setup with an included header that has most of 
the html/javascript, a mostly text file for the content, and an included 
footer that takes care of the rest.  

Any help with this would be greatly appreciated.

Thanks,

mto

Michael O'Neal
Web Producer/ Autocrosser
ST 28 '89 Civic Si
-
 M   A   N   G   O
B  O  U  L  D  E  R 
-
http://www.thinkmango.com
[EMAIL PROTECTED]
p-303.442.1821
f-303.938.8507



-- 
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]



-- 
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]




[PHP] again with the regex

2001-05-15 Thread Jerry Lake

I hate to keep asking regex stuff,
but it is really evasive for me..
I'm pulling phone numbers out of a DB
in the format of 1234567890, I would
like to format them like (123) 456-7890
or something else that at least breaks them 
up a bit.

any help is appreciated,
Thanks,

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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] again with the regex

2001-05-15 Thread Jerry Lake

Thanks folks, much better now.

Jerry Lake 
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 3:52 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] again with the regex


Jerry, try sprintf(). Here's an example:

sprintf((%s) %s-%s, substr($GLOBALS[appPhoneHome], 0,
3),substr($GLOBALS[appPhoneHome], 3, 3),substr($GLOBALS[appPhoneHome],
6, 4))

Kirk

 -Original Message-
 From: Jerry Lake [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 15, 2001 4:48 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] again with the regex
 
 
 I hate to keep asking regex stuff,
 but it is really evasive for me..
 I'm pulling phone numbers out of a DB
 in the format of 1234567890, I would
 like to format them like (123) 456-7890
 or something else that at least breaks them 
 up a bit.
 
 any help is appreciated,
 Thanks,
 
 Jerry Lake
 Interface Engineering Technician
 Europa Communications - http://www.europa.com
 Pacifier Online   - http://www.pacifier.com
 
 
 -- 
 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]
 

-- 
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]



-- 
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]




[PHP] ereg issues

2001-05-10 Thread Jerry Lake

I'm feeling a bit stupid today
how do I truncate a string to the
first two [a-zA-Z] characters ?

this sure isn't working
snip
$test = jerry;
$test = ereg_replace(^\w*, ^[a-zA-Z]{2} ,$test);
/snip

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com



-- 
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] ereg issues

2001-05-10 Thread Jerry Lake

Cool, thanks

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jack
Dempsey
Sent: Thursday, May 10, 2001 12:39 PM
To: scott [gts]
Cc: Php-General
Subject: Re: [PHP] ereg issues


print preg_replace('/^(.*?)([a-zA-Z]{2})(.*)/','\\2',$blah);

try that

-jack

scott [gts] wrote:

 oh yeah.  sorry...

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jack
  Dempsey
  Sent: Thursday, May 10, 2001 3:15 PM
  To: ..s.c.o.t.t.. [gts]
  Cc: Php-General
  Subject: Re: [PHP] ereg issues
 
 
  isn't a \w a word character, meaning a-zA-Z_0-9 (in perl)?
  if so, that wouldn't match the a-zA-z he originally intended...
  am i missing something?
 
  -jack
 
  ..s.c.o.t.t.. [gts] wrote:
  
   print preg_replace('/(.*?)(\w{2})(.*)/', '\\2', $blah);
  
   works for:
  
   $blah = *9 scott 777zxsdf;
   and
   $blah = scott;
  
-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Subject: [PHP] ereg issues
   
I'm feeling a bit stupid today
how do I truncate a string to the
first two [a-zA-Z] characters ?
   
this sure isn't working
snip
$test = jerry;
$test = ereg_replace(^\w*, ^[a-zA-Z]{2} ,$test);
/snip
  
   --
   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]
 
  --
  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]
 

 --
 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]

--
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]



-- 
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]




[PHP] coding brain fade

2001-05-10 Thread Jerry Lake

umm, what am I missing ?
I can't get the userfile to
name itself when copying...
?php
 $test = $HTTP_POST_FILES['type'];
 echo $test;
 echo br;
 echo $userfile;
copy($userfile, c:/apache/htdocs/.$userfile);
} else {
echo Possible file upload attack: filename '$userfile'.;
}

?

Jerry Lake 
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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]




[PHP] user authentication

2001-05-09 Thread Jerry Lake

Does anyone know of a good user authentication/sessions
tutorial for php 4? I've looked through the ones at phpbuilder
and they are not quite as in-depth as I would like.

Jerry Lake- [EMAIL PROTECTED]
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com



-- 
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] apache toolbox

2001-05-03 Thread Jerry Lake

Just out of curiosity, what problems did
you have ?

Jerry Lake- [EMAIL PROTECTED]
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Chris Schneck [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 5:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] apache toolbox


This might be a useful link for some people who are having problems with the
combination of apache + ssl / php / mysql. I've used it and I had a couple
problems, but after I actually read the README, everything was smooth :)

www.apachetoolbox.com


--
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]



-- 
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]




[PHP] install issue with 4.0.5

2001-05-03 Thread Jerry Lake

I've just tried to compile and install
php 4.0.5 with apache and when I try to
restart apache I get the following. I added
the location of libphp4.so to ld.so.conf and
ran ldconfig and then make clean and re-compiled
php etc... any ideas as to what is going on ?

snip
[root@localhost bin]# ./apachectl start
Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: undefined
symbol:
uncompress
./apachectl start: httpd could not be started
/snip

Jerry Lake- [EMAIL PROTECTED]
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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]




[PHP] cell iterations in loop

2001-04-26 Thread Jerry Lake

I've got some code that I am 
creating that creates a table with
a loop. and it works fine for what
it is, but my question is how do I
compensate for rows that aren't divisible
by 5 ? i.e. the empty cells at the table.
additionally if it ends on a complete row
(divisible by 5) I end up with an additional
empty row at the end of the table, I can
see why it does, I'm just trying to get around
it. no big hurry on this, I'm just trying to
learn more.

snip
table width=450 border=1 align=center
tr
?
$x = 0;
while ($x = 42)
{
$x++;
if ($x % 5 == 0)
{
echo td.$x./td\n;
echo /tr\ntr\n;
}
else
{
echo td.$x./td\n;
}
}
?
/tr
/table
/snip

Jerry Lake- [EMAIL PROTECTED]
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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] cell iterations in loop

2001-04-26 Thread Jerry Lake

Thanks, that worked with the removal
of the first 

Jerry Lake- [EMAIL PROTECTED]
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 1:18 PM
To: [EMAIL PROTECTED]; Jerry Lake
Subject: RE: [PHP] cell iterations in loop


I'm a little unclear as to what you're trying to do, but here's my
interpretation:

problem 2: if it ends on a complete row...
solution: put the echoing of the first and last tr's inside your
conditional. When $x is initialized to 0, the if will return true, and you
will output the very first tr...same at the end...so i'd have something like
this:

table width=450 border=1 align=center
!-- we delete this first tr //--
?
$x = 0;
#different here for later reason
$length = 42;
while ($x = $length)
{
$x++;
if ($x % 5 == 0)
{
echo tr\n;
}
echo td.$x./td\n;
if ($x % 5 == 0)
{
echo /tr\n;
}

}

#also added in
if($length % 5 != 0){
{
#then we know that it did not end completely, so echo you're final /tr
echo /TR\n;
}
#no need for an else block because it would do nothing
?
!-- as well as this one /tr //--
/table

Now if it ends on a complete row, you're fine!

problem 1: what about if it ends at 42 or something, with just a closing
/td?
solution: make a final check to see if you need that closing /tr
That is the if statement after you're loop...

I hope this helps.

-jack



-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 2:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] cell iterations in loop


I've got some code that I am
creating that creates a table with
a loop. and it works fine for what
it is, but my question is how do I
compensate for rows that aren't divisible
by 5 ? i.e. the empty cells at the table.
additionally if it ends on a complete row
(divisible by 5) I end up with an additional
empty row at the end of the table, I can
see why it does, I'm just trying to get around
it. no big hurry on this, I'm just trying to
learn more.

snip
table width=450 border=1 align=center
tr
?
$x = 0;
while ($x = 42)
{
$x++;
if ($x % 5 == 0)
{
echo td.$x./td\n;
echo /tr\ntr\n;
}
else
{
echo td.$x./td\n;
}
}
?
/tr
/table
/snip

Jerry Lake- [EMAIL PROTECTED]
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


--
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]





-- 
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] cell iterations in loop

2001-04-26 Thread Jerry Lake

Thanks, that worked with the removal
of the first if clause for part 2 of
my question, as far as part one, I will
try to explain better. if you view the
chunk of code in a browser you will get
a table with borders number 1-43 however
there will be a blank space at the end
where 44  45 would be. how can I make
the loop echo enough tdnbsp;/td lines
to show empty cells instead of blank space
regardless of the number of cells I am
creating ?

Jerry Lake- [EMAIL PROTECTED]
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 1:18 PM
To: [EMAIL PROTECTED]; Jerry Lake
Subject: RE: [PHP] cell iterations in loop


I'm a little unclear as to what you're trying to do, but here's my
interpretation:

problem 2: if it ends on a complete row...
solution: put the echoing of the first and last tr's inside your
conditional. When $x is initialized to 0, the if will return true, and you
will output the very first tr...same at the end...so i'd have something like
this:

table width=450 border=1 align=center
!-- we delete this first tr //--
?
$x = 0;
#different here for later reason
$length = 42;
while ($x = $length)
{
$x++;
if ($x % 5 == 0)
{
echo tr\n;
}
echo td.$x./td\n;
if ($x % 5 == 0)
{
echo /tr\n;
}

}

#also added in
if($length % 5 != 0){
{
#then we know that it did not end completely, so echo you're final /tr
echo /TR\n;
}
#no need for an else block because it would do nothing
?
!-- as well as this one /tr //--
/table

Now if it ends on a complete row, you're fine!

problem 1: what about if it ends at 42 or something, with just a closing
/td?
solution: make a final check to see if you need that closing /tr
That is the if statement after you're loop...

I hope this helps.

-jack



-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 2:32 PM
To: [EMAIL PROTECTED]
Subject: [PHP] cell iterations in loop


I've got some code that I am
creating that creates a table with
a loop. and it works fine for what
it is, but my question is how do I
compensate for rows that aren't divisible
by 5 ? i.e. the empty cells at the table.
additionally if it ends on a complete row
(divisible by 5) I end up with an additional
empty row at the end of the table, I can
see why it does, I'm just trying to get around
it. no big hurry on this, I'm just trying to
learn more.

snip
table width=450 border=1 align=center
tr
?
$x = 0;
while ($x = 42)
{
$x++;
if ($x % 5 == 0)
{
echo td.$x./td\n;
echo /tr\ntr\n;
}
else
{
echo td.$x./td\n;
}
}
?
/tr
/table
/snip

Jerry Lake- [EMAIL PROTECTED]
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


--
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]




-- 
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: RE: [PHP] cell iterations in loop

2001-04-26 Thread Jerry Lake

Right, I understand that
if I use td/td it is blank space
if I use tdnbsp;/td it is an empty cell

right now $length is set at 42 (this is arbitrary)
and there needs to be two empty cells at the end of
the last row. if length is 41 I will need 3 and 40
will need 4. but if I don't know what the value of
$length is going to be on a dynamic page such as
showing x amount of images from a folder. I need
for the loop to know how many tdnbsp;/td to
echo out at the end depending on the $length;

I apologize if I am not explaining this very well.
I usually am quite concise.

Jerry Lake- [EMAIL PROTECTED]
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 2:00 PM
To: Jerry Lake
Cc: [EMAIL PROTECTED]
Subject: Re: RE: [PHP] cell iterations in loop


ok, again, trying to understand blank space...but, try this:
if you print out td/td you'll get something i think you're referring to
as blank space...
try using a nonbreaking space in there...either nbsp; or a space in the
code; this will force
the emptiness to show up...

-jack

- Original Message -
From: Jerry Lake [EMAIL PROTECTED]
Date: Thursday, April 26, 2001 4:54 pm
Subject: RE: [PHP] cell iterations in loop

 Thanks, that worked with the removal
 of the first if clause for part 2 of
 my question, as far as part one, I will
 try to explain better. if you view the
 chunk of code in a browser you will get
 a table with borders number 1-43 however
 there will be a blank space at the end
 where 44  45 would be. how can I make
 the loop echo enough td /td lines
 to show empty cells instead of blank space
 regardless of the number of cells I am
 creating ?

 Jerry Lake- [EMAIL PROTECTED]
 Interface Engineering Technician
 Europa Communications - http://www.europa.com
 Pacifier Online- http://www.pacifier.com


 -Original Message-
 From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 26, 2001 1:18 PM
 To: [EMAIL PROTECTED]; Jerry Lake
 Subject: RE: [PHP] cell iterations in loop


 I'm a little unclear as to what you're trying to do, but here's my
 interpretation:

 problem 2: if it ends on a complete row...
 solution: put the echoing of the first and last tr's inside your
 conditional. When $x is initialized to 0, the if will return true,
 and you
 will output the very first tr...same at the end...so i'd have
 something like
 this:

 table width=450 border=1 align=center
 !-- we delete this first tr //--
 ?
 $x = 0;
 #different here for later reason
 $length = 42;
 while ($x = $length)
{
$x++;
if ($x % 5 == 0)
{
echo tr\n;
}
echo td.$x./td\n;
if ($x % 5 == 0)
{
echo /tr\n;
}

}

 #also added in
 if($length % 5 != 0){
 {
#then we know that it did not end completely, so echo
 you're final /tr
echo /TR\n;
 }
 #no need for an else block because it would do nothing
 ?
 !-- as well as this one /tr //--
 /table

 Now if it ends on a complete row, you're fine!

 problem 1: what about if it ends at 42 or something, with just a
 closing/td?
 solution: make a final check to see if you need that closing /tr
 That is the if statement after you're loop...

 I hope this helps.

 -jack



 -Original Message-
 From: Jerry Lake [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 26, 2001 2:32 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] cell iterations in loop


 I've got some code that I am
 creating that creates a table with
 a loop. and it works fine for what
 it is, but my question is how do I
 compensate for rows that aren't divisible
 by 5 ? i.e. the empty cells at the table.
 additionally if it ends on a complete row
 (divisible by 5) I end up with an additional
 empty row at the end of the table, I can
 see why it does, I'm just trying to get around
 it. no big hurry on this, I'm just trying to
 learn more.

 snip
 table width=450 border=1 align=center
tr
 ?
 $x = 0;
 while ($x = 42)
{
$x++;
if ($x % 5 == 0)
{
echo td.$x./td\n;
echo /tr\ntr\n;
}
else
{
echo td.$x./td\n;
}
}
 ?
/tr
 /table
 /snip

 Jerry Lake- [EMAIL PROTECTED]
 Interface Engineering Technician
 Europa Communications - http://www.europa.com
 Pacifier Online- http://www.pacifier.com


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact

RE: RE: RE: [PHP] cell iterations in loop

2001-04-26 Thread Jerry Lake

Ok, after a few hours of messing here and there
I've got it to work. you can adjust for any number
of columns, and the pictures and it makes solid
tables.

Thanks, for all of the help

snip
table width=450 border=1 align=center
?php
//set this number to the columns you would like
$columns = 7;
$pictures = 25;//could be from a database query
echo tr\n;
for ($x=1; $x=$pictures; $x++)
{
echo td.$x./td\n;
if ($x % $columns == 0)
{
$loopcount++;
if ($loopcount  $x )
{
echo /tr\n;
}
else
{
echo /tr\ntr;
}
}
}
$test = (($loopcount + 1) * $columns);
$td = (($loopcount + 1) * $columns) - ($x -1);
if($td != $columns)
{
for ($x=0; $x$td; $x++)
{
echo tdbEMPTY/b/td\n;
}
}
#also added in
if($x % $columns != 0)
{
#then we know that it did not end completely, so echo you're final /tr
echo /tr\n;
}
?
/table
/snip

Jerry Lake- [EMAIL PROTECTED]
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 26, 2001 2:26 PM
To: Jerry Lake
Cc: [EMAIL PROTECTED]
Subject: Re: RE: RE: [PHP] cell iterations in loop


ah, i got it...
ok, try this:
$length is arbitrary...
$x is your counter...
do the loop as before, but each time through the loop, $loopcount++;
So, if you do the loop 5 times, $loopcount == 5.
Then, at the end, $length - ($loopcount*$x) gives you the amount of td
/td's to
echo. Put another for loop with these parameters after you've printed your
normal
td's...you could do this all in one for loop, and would just need some more
if statements...
i think this is what you need...let me know how it goes...

-jack
- Original Message -
From: Jerry Lake [EMAIL PROTECTED]
Date: Thursday, April 26, 2001 5:20 pm
Subject: RE: RE: [PHP] cell iterations in loop

 Right, I understand that
 if I use td/td it is blank space
 if I use td /td it is an empty cell

 right now $length is set at 42 (this is arbitrary)
 and there needs to be two empty cells at the end of
 the last row. if length is 41 I will need 3 and 40
 will need 4. but if I don't know what the value of
 $length is going to be on a dynamic page such as
 showing x amount of images from a folder. I need
 for the loop to know how many td /td to
 echo out at the end depending on the $length;

 I apologize if I am not explaining this very well.
 I usually am quite concise.

 Jerry Lake- [EMAIL PROTECTED]
 Interface Engineering Technician
 Europa Communications - http://www.europa.com
 Pacifier Online- http://www.pacifier.com


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 26, 2001 2:00 PM
 To: Jerry Lake
 Cc: [EMAIL PROTECTED]
 Subject: Re: RE: [PHP] cell iterations in loop


 ok, again, trying to understand blank space...but, try this:
 if you print out td/td you'll get something i think you're
 referring to
 as blank space...
 try using a nonbreaking space in there...either   or a space in the
 code; this will force
 the emptiness to show up...

 -jack

 - Original Message -
 From: Jerry Lake [EMAIL PROTECTED]
 Date: Thursday, April 26, 2001 4:54 pm
 Subject: RE: [PHP] cell iterations in loop

  Thanks, that worked with the removal
  of the first if clause for part 2 of
  my question, as far as part one, I will
  try to explain better. if you view the
  chunk of code in a browser you will get
  a table with borders number 1-43 however
  there will be a blank space at the end
  where 44  45 would be. how can I make
  the loop echo enough td /td lines
  to show empty cells instead of blank space
  regardless of the number of cells I am
  creating ?
 
  Jerry Lake- [EMAIL PROTECTED]
  Interface Engineering Technician
  Europa Communications - http://www.europa.com
  Pacifier Online- http://www.pacifier.com
 
 
  -Original Message-
  From: Jack Dempsey [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, April 26, 2001 1:18 PM
  To: [EMAIL PROTECTED]; Jerry Lake
  Subject: RE: [PHP] cell iterations in loop
 
 
  I'm a little unclear as to what you're trying to do, but here's my
  interpretation:
 
  problem 2: if it ends on a complete row...
  solution: put the echoing of the first and last tr's inside your
  conditional. When $x is initialized to 0, the if will return true,
  and you
  will output the very first tr...same at the end...so i'd have
  something like
  this:
 
  table width=450 border=1 align=center
  !-- we delete this first tr //--
  ?
  $x = 0;
  #different here

[PHP] php install issues on IIS

2001-04-23 Thread Jerry Lake

Some of my co-workers are trying to install
php and when I run
phpinfo() I get this error, any ideas ?
I've only setup php on unix systems, so I am
at a loss here.

HTTP Error 403
403.1 Forbidden: Execute Access Forbidden

This error can be caused if you try to execute a CGI, ISAPI, or other
executable program from a directory that does not allow programs to be
executed.

Please contact the Web server's administrator if the problem persists.

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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]




[PHP] Reynolds Reynolds - php use

2001-04-18 Thread Jerry Lake

Has anyone here ever had to work with a
Reynolds and Reynolds system ? they make
auto dealer management software. It is a
closed system, but apparently sites like
autotrader.com access them from various
dealers to extract inventory data...autotrader
appears to use jsp, so I assume that I can
use php as well. if any one has any experience
with anything remotely like this, please let me know

Thanks,

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Plutarck [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 4:59 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Importing Data from Text File


Use file() to read the file up into an array (we'll call it $array).

Then I would personally use:

foreach ($array as $val)
{
 trim($val);
 $arr = explode("\t", $val); // "\t" means tab, but it will not work if
it's only spaces instead of a real tab

 $stock_name = $arr[0];
 $stock_desc = $arr[1];
 $stock_length = $arr[2];
 $stock_qty = $arr[3];
 $stock_price = $arr[4];

 // Do your insert/update SQL query right here, before the ending
bracket.

}


There you go. Now inside that loop you have 5 variables with the values they
should have, ready for you to do whatever you'd like with them.

If your wondering, trim() is used to remove the newline characters and
extraneous spaces from the begining and end of the string. As long as they
are using an actual "tab" button between each piece of data, and only ONE
tab, it works.

Tell me if this works for you. If it doesn't I can rethink it :)


--
Plutarck
Should be working on something...
...but forgot what it was.

"Chris Aitken" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi Everyone,

 Ive been asked to do a task here at my work and its something ive never
 done before. I was hoping you guys could point me in the right direction
so
 I can research some more and discover how in the hell im gonna do this :)

 Basically, I have been issued a TAB delimited text file which I need to
 process and insert all the data into a table. Here is a basic example of
 what I need to do..

 Say the text file had the following lines (thousands of them, 1 record per
 line)

 Screw   Big 12  200 1.99
 Screw   Big 10  400 1.50

 And I wanted to import each line into a table (Mysql DB) that had 6 fields
 (5 for each of the above plus an autoincremented ID field

 stock_id
 stock_name
 stock_desc
 stock_length
 stock_qty
 stock_price


 Any suggestions and direction pointing will be greatly appreciated.




 --
Chris Aitken - Webmaster/Database Designer - IDEAL Internet
 email: [EMAIL PROTECTED]  phone: +61 2 4628   fax: +61 2 4628 8890
  

Unix -- because a computer's a terrible thing to waste!


 --
 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]




--
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]




-- 
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] What variable are being sent to my script?

2001-04-13 Thread Jerry Lake

Loop through $HTTP_POST_VARS

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 4:28 PM
To: PHP User Group
Subject: [PHP] What variable are being sent to my script?


Hello,

I there a way for me to find out what variables are being sent to script?
Example:

http://www.myscript.com/myscript.php?var1=asdfvar2=asdf

that above would be $var1 and $var2

Thanks
Brandon


-- 
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]



-- 
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] windows 2000 install

2001-04-11 Thread Jerry Lake

What are you using as a test ?

try saving this below as info.php

?
phpinfo();
?

make sure you are saving this to your webroot
and calling it through your browser
http://localhost/info.php

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Deborah Dennison [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 1:55 PM
To: [EMAIL PROTECTED]
Subject: [PHP] windows 2000 install


Desperate and frustrated new php peep here. Trying to install php4 on
windows 2000 using IIS5. I have tried EVERYTHING. Last thing I tried was
the easyinstaller from the phpeverywhere people. No luck. Everytime I try a
test, I get a blank page???

Take pity on me please!!! If I cannot get this to work I have to use
Lotus Domino (yuck) and I am signed up to take a class but have to have php
installed first. I already bought the book. I want to use this. I like
this. But cannot get past the installation. Am I a lost cause already???

Is there anyone out there who has been in my shoes and worked this all out?
Can someone give me a list of what to check etc.. Everytime I try to
install. I follow the directions and nothing seems to work. I have been to
the php.net site and no luck with those instructions either. And no, I
cannot use Apache so please don't even mention it.

The sad thing is I had installed Apache and php4 on Windows NT in about a
1/2 hour. Ran my phpinfo test and it worked. Then, my system config changed
and now under 2000/IIs I cannot get it to work. Help me please...

Thanks So much
Deb

P.S. I have tried sending this to the windows php list and it keeps getting
returned so I thought I would try here


-- 
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]



-- 
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]




[PHP] better functionality in query ?

2001-04-05 Thread Jerry Lake

I'm in process of creating a online whitepages directory for
a small town phone company and I am having a little difficulty
in refining my selection. My search form has two fields; last
and first name. I would like to be able to have more of a wild
card approach and some refinement when a user enters both a
first and last name. I am unsure how to go about this, should
I restructure my query, or make changes to my PHP. here is the
query I am currently using. and the site is located at
http://whitepages.maadtelco.com/ any assistance/direction is certainly
appreciated.

snip
$query = "select * from whitepages WHERE last_name LIKE '$last_name' ORDER
BY last_name" or die("Nothing to see here");
/snip

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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] better functionality in query ?

2001-04-05 Thread Jerry Lake

Damn, if I'd a known it was that easy ;)
Thanks for the help, works great now.

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Jason Lotito [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 05, 2001 7:09 PM
To: Jerry Lake; [EMAIL PROTECTED]
Subject: RE: [PHP] better functionality in query ?



 I'm in process of creating a online whitepages directory for
 a small town phone company and I am having a little difficulty
 in refining my selection. My search form has two fields; last
 and first name. I would like to be able to have more of a wild
 card approach and some refinement when a user enters both a
 first and last name. I am unsure how to go about this, should
 I restructure my query, or make changes to my PHP. here is the
 query I am currently using. and the site is located at
 http://whitepages.maadtelco.com/ any assistance/direction is certainly
 appreciated.

 snip
 $query = "select * from whitepages WHERE last_name LIKE '$last_name' ORDER
 BY last_name" or die("Nothing to see here");
 /snip


$query = "SELECT * FROM whitepages WHERE last_name LIKE '%$last_name%' ORDER
BY last_name" or die("Nothing to see here");

Question, why are you 'die'ing on a variable assigntment? Wouldn't you want
to 'die' on the actualy db_query()?

Note the added '%', this is assuming you are using MySQL, though they are
generally the same, I believe, with other DB's.  The % is essentially
wildcard of any amount.  So, if the last_name was BOB

it would find

BOBBY
BOBBER
ADOBOB

$query = "SELECT * FROM whitepages WHERE last_name LIKE '%$last_name%'
$andor first_name LIKE '%$first_name' ORDER
BY last_name" or die("Nothing to see here");

In this query, we are including the First Name.  In this, we are also using
the $andor variable, which you can define as AND, or OR, or allow the user
to define it by using a radio box or the like when making the search.  I
suggest setting a default of OR for the variable $andor.

Jason Lotito
www.NewbieNetwork.net
Where those who can, teach;
and those who can, learn.



-- 
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] Warning: 1 is not a valid File-Handle resource

2001-04-03 Thread Jerry Lake

I had that same warning the other day
and the problem was a slight syntax
error in my query statement.

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: WK [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 8:35 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Warning: 1 is not a valid File-Handle resource



""WK"" [EMAIL PROTECTED] wrote in message
9abfvp$v4$[EMAIL PROTECTED]">news:9abfvp$v4$[EMAIL PROTECTED]...
 $fp2=fopen ("userdata","r")or die("unable to open file ($userdata)");
 $fp2 is getting a value 1 or 0

 if ($fp2=fopen ("userdata","r") ) {
 lock file
 write some stuff
unlock file --forgot this
 }
 else {
 echo ("file would not open");
 }

 wk

 ""Richard Kurth"" [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
  I am using the newest ver of PHP and newest ver of apache on win98
  just installed new php and apache yesterday set php up as a module
 
   Don't know. Code looks good, what version of PHP are you using? Module
 or
   cgi? What version  of windows? These are the things the PHP/Zend guys
   probably need to know.
  
   On 4/2/01 4:59 PM, "Richard Kurth" [EMAIL PROTECTED] wrote:
  
What is causing this error
   
   
Warning: 1 is not a valid File-Handle resource in
c:/httpd/htdocs/autosetup/auto/createaccount.php on line 88
   
This is the cod in question
   
$tab = chr(9); // define tabulator
if(file_exists("userdata")) {
$fp2=fopen ("userdata","r")or die("unable to open file
($userdata)");
flock($fp2, 2); //unless ($use_flock == 0);
while ($data = fgetcsv ($fp2, 1000, $tab)) {   ---this is line 88
  $num = count ($data);
$row++;
for ($c=0; $c$num; $c++) {
   
  }
   
  
  
   --
   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]
  
  
 
  --
  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]
 



 --
 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]




--
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]



-- 
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] sanity check please

2001-03-30 Thread Jerry Lake

you can put you database connection
in a file below the web root
and include it into the script.
that way it isn't visible in the source.

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Les Neste [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 3:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP] sanity check please


Hi,

I have a question about security with PHP.  I'm building a site with PHP
and some of the scripts connect to MySQL.  All someone needs to do to get
my MySQL passwords is view the PHP source, right?  And the recommended
approach around this is to use Zend, right?

Please correct me if I'm off base here.  TIA!






Les Neste  678-778-0382  http://www.lesneste.com

--
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]



-- 
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] Hello $variable, whats your name?

2001-03-22 Thread Jerry Lake

$HTTP_POST_VARS

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: JCampbell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 12, 2000 4:06 PM
To: Main PHP List
Subject: [PHP] Hello $variable, whats your name?


I would like to know if there is a way to determine the name of a variable.

Example:
I have the variable $firstname, with a value of Jon

I want to be able to

echo name_of_variable : value_of_variable;

So the user would see

firstname : Jon

I want to be able to do this without knowing what variables will be passed
to the PHP script in advance.

Any help is appreciated in advance.

Jon
===
And shepards we shall be
For thee, my lord, for thee
For thou hath descended forth from thy hands
That our feats may swiftly carry out thy command
We will flow a river forth unto thee
And teaming with souls shall it ever be...
===
http://jcampbell.blacklightning.net


-- 
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]



-- 
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]




[PHP] where to learn to make a shopping cart

2001-03-20 Thread Jerry Lake

What are some good resources I can look at
to learn how to make a shopping cart, that
will function with php3/MySQL ? I know of 
the one at Devshed, but any other resources
are certainly appreciated.

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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] where to learn to make a shopping cart

2001-03-20 Thread Jerry Lake

Now that I take a look, the one at devshed
assumes PHP4... of course. and that would
be great if I could get my sysadmin to upgrade.

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 20, 2001 10:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] where to learn to make a shopping cart


What are some good resources I can look at
to learn how to make a shopping cart, that
will function with php3/MySQL ? I know of 
the one at Devshed, but any other resources
are certainly appreciated.

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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]



-- 
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]




[PHP] write form data to a text file

2001-03-13 Thread Jerry Lake

How can I write the form data a user fills out
and send it to a text file?

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Jordan Elver [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 12:13 PM
To: Pierre-Yves Lemaire
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Getting path of script


Hi,
Thanks for all the suggestions.

I worked out a fix in the meantime:

$path = strstr(strrev($SCRIPT_FILENAME), '/');
echo strrev($path);

Cheers,
Jord

On Tuesday 13 March 2001 12:35, you wrote:
 check out,
 dirname() // Returns directory name component of path

 py

 - Original Message -
 From: Hardy Merrill [EMAIL PROTECTED]
 To: Jordan Elver [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, March 13, 2001 5:21 PM
 Subject: Re: [PHP] Getting path of script

  How 'bout using a Perl regex with $HTTP_SERVER_VARS["SCRIPT_NAME"]
  like this:
 
 echo "Starting with SCRIPT_NAME=[" . $HTTP_SERVER_VARS["SCRIPT_NAME"]
  .

 "]BR";

 if (preg_match("/(\S+)\/\S+$/", $HTTP_SERVER_VARS["SCRIPT_NAME"],

 $matches)) {

echo "Found $matches[1]br";
 }
 
  HTH.
 
  --
  Hardy Merrill
  Mission Critical Linux, Inc.
  http://www.missioncriticallinux.com
 
  Jordan Elver [[EMAIL PROTECTED]] wrote:
   Hi,
   I want to get the path of a script. I know about
   HTTP_SERVER_VARS["SCRIPT_FILENAME"] this returns someting like:
  
   /phpcode/misc/phpinfo.php
  
   But I want to strip off the file name and just have the directory
path,

 like:
   /phpcode/misc/
  
   Any ideas?
  
   Jord
  
   --
   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]
 
  --
  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]

--
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]



-- 
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] write form data to a text file

2001-03-13 Thread Jerry Lake

This goes along with my previous question
I don't see a php function to make a file

I am trying to use an online form to create
an addweb profile.ini file to in turn be
emailed to my customer service dept. so
they can save the file into the addweb batch
directory for an import and autorun thus
saving the time of re-typing all of the form
information.

when my form gets filled out I need to be able to
create a new file, write text to it from the variables
and then email it to a CSR

any ideas on where to start with this are greatly appreciated.

Thanks,

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 12:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] write form data to a text file


How can I write the form data a user fills out
and send it to a text file?

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Jordan Elver [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 12:13 PM
To: Pierre-Yves Lemaire
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Getting path of script


Hi,
Thanks for all the suggestions.

I worked out a fix in the meantime:

$path = strstr(strrev($SCRIPT_FILENAME), '/');
echo strrev($path);

Cheers,
Jord

On Tuesday 13 March 2001 12:35, you wrote:
 check out,
 dirname() // Returns directory name component of path

 py

 - Original Message -
 From: Hardy Merrill [EMAIL PROTECTED]
 To: Jordan Elver [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, March 13, 2001 5:21 PM
 Subject: Re: [PHP] Getting path of script

  How 'bout using a Perl regex with $HTTP_SERVER_VARS["SCRIPT_NAME"]
  like this:
 
 echo "Starting with SCRIPT_NAME=[" . $HTTP_SERVER_VARS["SCRIPT_NAME"]
  .

 "]BR";

 if (preg_match("/(\S+)\/\S+$/", $HTTP_SERVER_VARS["SCRIPT_NAME"],

 $matches)) {

echo "Found $matches[1]br";
 }
 
  HTH.
 
  --
  Hardy Merrill
  Mission Critical Linux, Inc.
  http://www.missioncriticallinux.com
 
  Jordan Elver [[EMAIL PROTECTED]] wrote:
   Hi,
   I want to get the path of a script. I know about
   HTTP_SERVER_VARS["SCRIPT_FILENAME"] this returns someting like:
  
   /phpcode/misc/phpinfo.php
  
   But I want to strip off the file name and just have the directory
path,

 like:
   /phpcode/misc/
  
   Any ideas?
  
   Jord
  
   --
   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]
 
  --
  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]

--
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]



--
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]



-- 
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]




[PHP] attach file from server to an email

2001-03-13 Thread Jerry Lake

Ok, I created a form handler that writes the
.ini file that I need for an auto-import, now
what should I look at attach it to an email
the file is just ascii text

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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]




[PHP] upload file problems

2001-03-12 Thread Jerry Lake

Using this code
snip
?php
if (is_uploaded_file($userfile)) {
 echo $userfile;
copy($userfile, "/www/workbox/htdocs/audio");
} else {
echo "Possible file upload attack: filename '$userfile'.";
}

?
/snip

I keep getting the following error. the directory exists and is chmoded to
777, what am I doing wrong ?
Warning: Unable to create '/www/workbox/htdocs/audio': Is a directory in
/www/workbox/htdocs/upload.php on line 4

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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]




[PHP] file upload tutorial.

2001-03-09 Thread Jerry Lake

Anyone know where I can find a file upload
tutorial ?

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com



-- 
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] file upload tutorial.

2001-03-09 Thread Jerry Lake

With the info in the manual (thanks)
I keep getting this error
Warning: Unable to create '/www/htdocs/uploads': Is a directory in
/www/workbox/htdocs/upload.php on line 4
I have the directory chmoded to 777
what is my problem, aside from general idiocy...

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Aaron Tuller [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 1:17 PM
To: Jerry Lake; [EMAIL PROTECTED]
Subject: Re: [PHP] file upload tutorial.


does anyone look at the manual anymore?

there's TONS of info at:

http://www.php.net/manual/en/features.file-upload.php

-aaron

At 1:10 PM -0800 3/9/01, Jerry Lake wrote:
Anyone know where I can find a file upload
tutorial ?

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online- http://www.pacifier.com



--
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]



-- 
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] Advanced PHP

2001-03-09 Thread Jerry Lake

The chicken did.

as the Chicken is an actual chicken
and the egg is a potential chicken.
Actuality precedes potentiality

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Keith Vance [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 3:14 PM
To: Kath
Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED]
Subject: Re: [PHP] Advanced PHP


What came first the chicken or the egg?

Keith

On Fri, 9 Mar 2001, Kath wrote:

 Yeah.  I even see some PHP book authors, like Julie Meloni here on this
 list.

 There is never a question, no matter how retarded, that this list or #php
on
 irc.openprojects.net has never been able to answer.

 - Kath


 - Original Message -
 From: "Krznaric Michael" [EMAIL PROTECTED]
 To: "'Rick St Jean'" [EMAIL PROTECTED];
[EMAIL PROTECTED]
 Sent: Friday, March 09, 2001 5:11 PM
 Subject: RE: [PHP] Advanced PHP


  If I'm not mistaken, the big boys keep an eye out over here.
 
  Mike
 
 
  -Original Message-
  From: Rick St Jean [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 09, 2001 4:54 PM
  To: [EMAIL PROTECTED]
  Subject: [PHP] Advanced PHP
 
 
  Does anyone know of any other lists that are a little more advanced,
  And has a little less traffic?  I am not the end all be all by any means
 of
  programming or PHP.  I just want to know where the big boys hang out
  and learn some secrets that require some understanding.
 
  Rick
  ##
  #  Rick St Jean,
  #  [EMAIL PROTECTED]
  #  President of Design Shark,
  #  http://www.designshark.com/
  #  Quick Contact:  http://www.designshark.com/messaging.ihtml
  #  Tel: 905-684-2952
  ##
 
 
  --
  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]
 
  --
  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]
 


 --
 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]




--
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]




-- 
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] Advanced PHP

2001-03-09 Thread Jerry Lake

I'm nearly certain they came from
smallish chicken shaped rocks

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Rick St Jean [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 4:20 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Advanced PHP


Of course... where did you think they came from... monkeys?



At 04:01 PM 3/9/01 -0800, Keith Vance wrote:
Where did the chicken come from, God?

Keith

On Fri, 9 Mar 2001, Jerry Lake wrote:

  The chicken did.
 
  as the Chicken is an actual chicken
  and the egg is a potential chicken.
  Actuality precedes potentiality
 
  Jerry Lake- [EMAIL PROTECTED]
  Web Designer
  Europa Communications - http://www.europa.com
  Pacifier Online   - http://www.pacifier.com
 
 
  -Original Message-
  From: Keith Vance [mailto:[EMAIL PROTECTED]]
  Sent: Friday, March 09, 2001 3:14 PM
  To: Kath
  Cc: Krznaric Michael; 'Rick St Jean'; [EMAIL PROTECTED]
  Subject: Re: [PHP] Advanced PHP
 
 
  What came first the chicken or the egg?
 
  Keith
 
  On Fri, 9 Mar 2001, Kath wrote:
 
   Yeah.  I even see some PHP book authors, like Julie Meloni here on
this
   list.
  
   There is never a question, no matter how retarded, that this list or
#php
  on
   irc.openprojects.net has never been able to answer.
  
   - Kath
  
  
   - Original Message -
   From: "Krznaric Michael" [EMAIL PROTECTED]
   To: "'Rick St Jean'" [EMAIL PROTECTED];
  [EMAIL PROTECTED]
   Sent: Friday, March 09, 2001 5:11 PM
   Subject: RE: [PHP] Advanced PHP
  
  
If I'm not mistaken, the big boys keep an eye out over here.
   
Mike
   
   
-Original Message-
From: Rick St Jean [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 09, 2001 4:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Advanced PHP
   
   
Does anyone know of any other lists that are a little more advanced,
And has a little less traffic?  I am not the end all be all by any
 means
   of
programming or PHP.  I just want to know where the big boys hang out
and learn some secrets that require some understanding.
   
Rick
##
#  Rick St Jean,
#  [EMAIL PROTECTED]
#  President of Design Shark,
#  http://www.designshark.com/
#  Quick Contact:  http://www.designshark.com/messaging.ihtml
#  Tel: 905-684-2952
##
   
   
--
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]
   
--
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]
   
  
  
   --
   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]
  
  
 
 
  --
  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]
 
 
 


--
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]

##
#  Rick St Jean,
#  [EMAIL PROTECTED]
#  President of Design Shark,
#  http://www.designshark.com/
#  Quick Contact:  http://www.designshark.com/messaging.ihtml
#  Tel: 905-684-2952
##


--
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]



-- 
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] populate select box with contents of a file?

2001-03-08 Thread Jerry Lake

Ok, I am using this modified code from the
manual. It works great, but how do I modify
it further to only show .jpg files ?

snip
?php
$handle=opendir('.');
 echo "select name=image_url";
while (false!==($file = readdir($handle))) {
if ($file != "."  $file != "..") {
 echo "option ";
 echo "value=".$file."";
 echo $file;
 echo "/option\n\r";
}
}
echo "/select";
closedir($handle);
?
/snip

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Sean R. Bright [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 4:50 PM
To: 'Jerry Lake'; 'Henrik Hansen'; 'php general'
Subject: RE: [PHP] populate select box with contents of a file?



Take a look at dir() and readdir().  Those along with echo() should help you
out.

Sean

 -Original Message-
 From: Jerry Lake [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 07, 2001 7:40 PM
 To: Henrik Hansen; php general
 Subject: [PHP] populate select box with contents of a file?


 I would like to be able to populate
 the options of a select box with the
 contents of my images directory online
 so I can select the image I want to
 go with the form I am filling out.
 what functions do I need to look into
 to figure this one out?

 Jerry Lake- [EMAIL PROTECTED]
 Web Designer
 Europa Communications - http://www.europa.com
 Pacifier Online   - http://www.pacifier.com



 --
 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]



--
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]



-- 
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] $HTTP_POST_VARS

2001-03-08 Thread Jerry Lake

You're not setting a value for the first variable ie.."Name"
unless you put something in the text box to represent the variable
it will come across as empty.

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: mat t [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 2:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] $HTTP_POST_VARS


Please can you help:

I can't send duplicate input types to $HTTP_POST_VARS
For example:
---HTML---
First person:

NAME input type="text" name="Name" size="24" value=""
input name="Name_type" type="hidden" value="textbox"

Phone No.input type="text" name="Phone" size="24" value=""
input name="Phone_type" type="hidden" value="textbox" 

Second Person:

NAME input type="text" name="Name" size="24" value=""
input name="Name_type" type="hidden" value="textbox"

Phone No.input type="text" name="Phone" size="24" value=""
input name="Phone_type" type="hidden" value="textbox"

---

Then when I use :

reset ($HTTP_POST_VARS);
while (list ($key, $val) = each ($HTTP_POST_VARS))
  {
echo "$key = $valbr\n";
  }

Here is the output

Output--

Name = 
Name_type = textbox
Phone = 
Phone_type = textbox



What happened to the Second person?
How can I stop it ignoring duplicates and insert in the array 1 by 1?


_
Pick up your email anywhere in the world --- http://www.remail.net

-- 
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]



-- 
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] RNV PHP=o.k.....Apache=o.k..... So... What the #$$% : )

2001-03-08 Thread Jerry Lake

view the php file through localhost on your browser with
apache running

http://localhost/whateverfile.php

make sure the file is somewhere in your document root.

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Rodolfo NAva [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 4:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] RNV PHP=o.k.Apache=o.k. So... What the "#$$% : )


Hi. I installed Apache... no problem... the classic
MSDOS window with... Apache running and the path
for Php4.

Php installed, I made a
bodyheadtitleHola/Title
body ? php phpinfo(); ? /body and saved it as
test.php

then... I went to MsDos... c: php test.php [Enter]

I got a large list with html tags... ok... so PHP
running well

But if I want to run it from windows... I mean, two
clicks to test.php then comes that hateful window
with... with which program would you like to open this
file?

So I cant get an answer of html Whats wrong...I
changed the httpd.conf file... something wrong there?

I hope you can help me... if I can make this thing
working... maybe I will hold my job and maybe my
boss's job... :0)

thank you.
Rodolfo Nava

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

--
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]



-- 
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]




[PHP] on the list yesterday regarding mysql time

2001-03-07 Thread Jerry Lake

I know this was on the list yesterday,
but I for some reason erased it.

I have an online form that I would like
to have record the time submitted and
recorded into a MySQL date field, how
the hell do I use the date and mktime
functions to make the date compatible
with the MySQL -00-00 format?

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: george [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 1:51 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] passing variables again



not really sure I understand,

but what I want to do is take the HTML generated in step 3 and place it
between the form tags in the last page where the code is displayed

ie

tdTitle/tdtd mr/stronginput type=radio name=title value=mr checked

mrs/stronginput type=radio name=title value=mrs

Miss/stronginput type=radio name=title
value=missbr/td/trtdname/tdtdinput type=text
name=name/td/trtrtdaddress/tdtdinput type=text
name=address/td/trtdaddress2/tdtdinput type=text
name=address2/td/trtd valign="top"message/tdtdtextarea
name="message" cols= rows=/textarea/td/tr

that is the code from step 3 how do I get that to display on the next page.



TIA


george




--
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]



-- 
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]




[PHP] RE: on the list yesterday regarding mysql time

2001-03-07 Thread Jerry Lake

never mind anything below my signature
I forgot to erase it, damn non-thread
capable email...

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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] on the list yesterday regarding mysql time

2001-03-07 Thread Jerry Lake

Thanks, that worked great.

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: John Huggins [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 07, 2001 2:49 PM
To: Jerry Lake; [EMAIL PROTECTED]
Subject: RE: [PHP] on the list yesterday regarding mysql time


Forget about the PHP functions and do this:

$query  = "INSERT INTO tablename ";
$query .= "SET field1 = '$field1', ";
$query .= "field2 = '$field2', ";
$query .= "datesubmitted = NOW();

Let MySQL simply do this for you with the NOW() SQL command.

 -Original Message-
 From: Jerry Lake [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, March 07, 2001 5:41 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] on the list yesterday regarding mysql time
 
 
 I know this was on the list yesterday,
 but I for some reason erased it.
 
 I have an online form that I would like
 to have record the time submitted and
 recorded into a MySQL date field, how
 the hell do I use the date and mktime
 functions to make the date compatible
 with the MySQL -00-00 format?
 
 Jerry Lake- [EMAIL PROTECTED]
 Web Designer
 Europa Communications - http://www.europa.com
 Pacifier Online   - http://www.pacifier.com


-- 
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]




[PHP] populate select box with contents of a file?

2001-03-07 Thread Jerry Lake

I would like to be able to populate
the options of a select box with the
contents of my images directory online
so I can select the image I want to
go with the form I am filling out. 
what functions do I need to look into
to figure this one out?

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com



-- 
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]




[PHP] regex help

2001-02-27 Thread Jerry Lake

how do I select the first space after some alpha-numeric characters?
I can ^\D\s to get the characters and the space, but how can I select
the space only?

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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]




[PHP] archive location

2001-02-26 Thread Jerry Lake

What is the newsgroup archive location ?
marc.themaesgroup.something ?

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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]




[PHP] php quit working

2001-02-26 Thread Jerry Lake

I just installed php as an apache DSO module
on the first try of a phpinfo(); it worked
just as it should, then I loaded phpmyadmin
and now when I make a request for a php file
it tries to download, my httpd.conf file seems
to be in order...any ideas?

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com

-- 
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]




[PHP] date format for MySQL

2001-02-21 Thread Jerry Lake

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 Format)

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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] Newbie: [PHP] $HTTP_POST_VARS

2001-02-20 Thread Jerry Lake

or 
?
phpinfo();
?

for an entire list of php setup and http variables

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Chris Lee [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 2:08 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Newbie: [PHP] $HTTP_POST_VARS


I dont think HTTP_POST_VARS is what your looking for I think its more
HTTP_SERVER_VARS

?php
echo $HTTP_SERVER_VARS['HTTP_HOST'];
?


--


Chris Lee
Mediawaveonline.com

em. [EMAIL PROTECTED]

ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120



""Phil Labonte"" [EMAIL PROTECTED] wrote in message
331AB909C797484B84CF8CF3C711BD4E0992A2@xchange">news:331AB909C797484B84CF8CF3C711BD4E0992A2@xchange...
 I have a Newbie question,

 What is the syntax to get the info from HHTP_POST_VARS?

 I mean what is the syntax to get the variable COMPUTERNAME for example or
to
 get HTTP_HOST?

 Thanks


 Phil Labonte
 Systems Administrator
 Atreus Systems
 (p) 613-233-1741 x243
 (c) 613-277-1697
 [EMAIL PROTECTED]


 --
 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]




-- 
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]



-- 
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]




[PHP] input type=file

2001-02-16 Thread Jerry Lake

this doesn't relate directly to PHP,
but it will when I am done.

How can I create a file input that
reads from a directory on the server
instead of the users machine

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com

-- 
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] input type=file

2001-02-16 Thread Jerry Lake

that should be contents of,
not contents or...

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 4:16 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] input type=file


so then maybe, if I understand it correctly
(which may or may not be true) I could read
the contents or a directory and populate a
dropdown list...?

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 4:16 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] input type=file


to put it simply, you can't...

but you could put an input type of text with a link or a button next to it
manually, and then on the onClick of either this button or link open a
secondary window running a PHP script that reads a particular directory
structure with full navigation support.  Then when the user clicks a
filename, place that into the input in the first window and close the
secondary window.

However, this would require JavaScript and a full recursive directory
browser script in PHP.  I have something similiar to this in a content
manager script I've written, but it doesn't check other directories.  It
picks an image from an /ImageLibrary/ directory, allowing the user to
preview an image, upload new images, delete images, rename images, but most
importantly pick a filename.  Then it populates a field in the content
manager screen for saving to a database.

Joseph E. Sheble
a.k.a. Wizaerd
Wizaerd's Realm
Canvas, 3D, Graphics,
ColdFusion, PHP, and mySQL
http://www.wizaerd.com
=

 -Original Message-
 From: Jerry Lake [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 16, 2001 4:57 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] input type=file


 this doesn't relate directly to PHP,
 but it will when I am done.

 How can I create a file input that
 reads from a directory on the server
 instead of the users machine

 Jerry Lake- [EMAIL PROTECTED]
 Web Designer
 Europa Communications - http://www.europa.com
 Pacifier Online   - http://www.pacifier.com

 --
 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]





-- 
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]



-- 
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]



-- 
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]




[PHP] regex

2001-02-15 Thread Jerry Lake

is there a way I can make a regex to add a comma
to the beginning of every line of a comma delimited
file ?

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com

-- 
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]




[PHP] Credit Cards

2001-02-09 Thread Jerry Lake

I have a basic shopping cart setup
and I am curious as to how I go about
being able to handle real-time credit 
card transactions. I realize there are
card services like cybercash and such,
but how do I go about hooking cybercash
up to the existing cart? (the host already
has a merchant connection kit)

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-- 
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] Pricing for PHP programming???

2001-02-01 Thread Jerry Lake

Yep, ain't it grand...
I got hired on as a designer
and somebody got the bright idea
that I must be a programmer as well
funny I don't remember that on my resume.

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Robin Vickery [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 3:43 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Pricing for PHP programming???


 "JG" == "Josh G" [EMAIL PROTECTED] writes:

  I hear you. Another thing that's hard to find, is somebody who is a
  good programmer, and a good graphic designer. 

I've never quite understood why employers seem to expect that a
php/perl programmer should also be doing graphic design. They're
quite unrelated activities using completely different skills. It's
not something that's generally expected from other professions
(when was the last time you saw an advert for an accountant that
required they be proficient with Photoshop?) so why programmers?


-robin (who can't draw for toffee)


-- 
Robin Vickery.
BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE

-- 
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]



-- 
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]




[PHP] function list

2001-01-31 Thread Jerry Lake

Is there somewhere I can get a list
of all the php functions and a brief
description, instead of the full manual
like a cheat sheet of sorts

Jerry Lake


-- 
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]




[PHP] MySQL and Array Problem

2001-01-17 Thread Jerry Lake

I'm trying to store an array into a MySQL
table, what datatype should the column be, Varchar?

second this is the code I use to store it.
mysql_connect("$DBHost","$DBUser","$DBPass");
$name = implode(",", $name);
mysql("$DBName","INSERT INTO CartItems VALUES
('$UID','$ItemID','$ItemQuantity','$all_toppings','$Date','$CartItemsID')");

this works fine, it stores the comma delimited info
into the table. however when I extract it and try to count($name)
it comes back as 1 and if I try to implode it it says Warning
bad argument to implode() and if I do this
echo "font size=-2".$name."/font";
$name_test = explode("," $name);
echo $name_test;

the names item1,item2,item3 is returned,
but I get a parse error on the explode,
what am I missing...?

Jerry Lake


-- 
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 and Array Problem

2001-01-17 Thread Jerry Lake

Never mind, I caught my syntax error
it works fine now.

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com


-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 10:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] MySQL and Array Problem


I'm trying to store an array into a MySQL
table, what datatype should the column be, Varchar?

second this is the code I use to store it.
mysql_connect("$DBHost","$DBUser","$DBPass");
$name = implode(",", $name);
mysql("$DBName","INSERT INTO CartItems VALUES
('$UID','$ItemID','$ItemQuantity','$all_toppings','$Date','$CartItemsID')");

this works fine, it stores the comma delimited info
into the table. however when I extract it and try to count($name)
it comes back as 1 and if I try to implode it it says Warning
bad argument to implode() and if I do this
echo "font size=-2".$name."/font";
$name_test = explode("," $name);
echo $name_test;

the names item1,item2,item3 is returned,
but I get a parse error on the explode,
what am I missing...?

Jerry Lake


--
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]




-- 
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]


[PHP] RE: if php is so great, why is it so hard to make it work?

2001-01-16 Thread Jerry Lake

That is probably a good way not to get much help
however, there are install kits out there that
do all of the work for you. phpTriad is one.

Jerry Lake 

-Original Message-
From: Serge Montmarquette [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 10:14 AM
To: [EMAIL PROTECTED]
Subject: [PHP] if php is so great, why is it so hard to make it work?


if php is so great, why is it so hard to make it work?
please...someone ...for win2000 nt 5.0 ...I have apache, iis installed 
...nothing's working, did changes to php.ini, my registry...httpd.conf 
nothing! nothing! nothig!!!


-- 
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]



-- 
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] string replace

2001-01-16 Thread Jerry Lake

Here is a bad way to do it, but it works

?
$string = "test.jpg";

$replace = eregi_replace("$", "", $string);

echo $replace;
?

Jerry Lake 

-Original Message-
From: Tait Grove [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 12:01 PM
To: PHP GENERAL
Subject: [PHP] string replace


How can I strip everything past a certain character in a string?

i.e.:

$foo = "test.gif";

// strip past the .gif

$foo = "test";

// again

$foo2 = "test.jpeg";

// strip past the .jpeg

$foo2 = "test";


Tait


-- 
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]




[PHP] looping

2001-01-15 Thread Jerry Lake

excuse my density today
my brain is still in weekend mode

how would I make this loop put 4 or 5 items (haven't decided)
per line instead of just one item and the checkbox on each line?

snip
echo "table border='1' cellpadding='2' cellspacing='2'";

while($myrow =  mysql_fetch_array($result2))
{
$name = $myrow["name"];
$personal_cost = $myrow["personal_cost"];
$small_cost = $myrow["small_cost"];
$large_cost = $myrow["large_cost"];
$category = $myrow["category"];

echo "tr";
echo "td";
echo $name;
echo "/td";
echo "tdinput type=checkbox name=topping value=".$cost."".$cost."/td";
echo "/tr";
}
echo "/table";
/snip

Jerry Lake


-- 
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] looping

2001-01-15 Thread Jerry Lake

Thanks, (Ignacio)
I came up with this

snip
$counter++;
if ($counter  "4") {
   $counter = "1";
echo "/trtr bgcolor=" . $colors[ $i ++ % count( $colors ) ] . "";
}
/snip
Jerry Lake

-Original Message-
From: Ignacio Vazquez-Abrams [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 15, 2001 1:22 PM
To: Jerry Lake
Cc: PHP List
Subject: Re: [PHP] looping


On Mon, 15 Jan 2001, Jerry Lake wrote:

 excuse my density today
 my brain is still in weekend mode

 how would I make this loop put 4 or 5 items (haven't decided)
 per line instead of just one item and the checkbox on each line?

 snip
 echo "table border='1' cellpadding='2' cellspacing='2'";

 while($myrow =  mysql_fetch_array($result2))
 {
 $name = $myrow["name"];
 $personal_cost = $myrow["personal_cost"];
 $small_cost = $myrow["small_cost"];
 $large_cost = $myrow["large_cost"];
 $category = $myrow["category"];

 echo "tr";
 echo "td";
 echo $name;
 echo "/td";
 echo "tdinput type=checkbox name=topping
value=".$cost."".$cost."/td";
 echo "/tr";
 }
 echo "/table";
 /snip

 Jerry Lake


Join the club :)

?php
define('PERLINE', 4); // or 5, depending on taste
 ...

echo "table border='1' cellpadding='2' cellspacing='2'";
echo "tr";

$i=0;
$numrows=mysql_num_rows($result2);
while($myrow =  mysql_fetch_array($result2))
{
  ++$i;
   ...
  echo "td";
   ...
  echo "/td";
  if (!($i%PERLINE) and ($numrows!=$i))
  {
echo("/trtr");
  };
};
echo "/tr";
echo "/table";
?

--
Ignacio Vazquez-Abrams  [EMAIL PROTECTED]




-- 
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]




[PHP] checkboxes into MySQL

2001-01-15 Thread Jerry Lake

I know this has been discussed,
but it messing with me.

in a script I'm working on
I pull out an array of checkboxes
from a database,

how do I store what people select
back to the DB

all I end up with is the last selection
of the array.

Jerry Lake 

-Original Message-
From: jeremy brand [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 15, 2001 1:57 PM
To: WreckRman2
Cc: 'Php-General@Lists. Php. Net'
Subject: Re: [PHP] Array...


for ($i=100; $i0; $i++)
  print "OPTION VALUE=\\\"$i\\\"/OPTION\n";

But, I presume you would rather do this:
for ($i=100; $i0; $i++)
  print "OPTION VALUE=\"$i\"/OPTION\n";

because I can't imagine why you would want to escape double quotes in
HTML.

Jeremy

Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED]
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more 
Get your own Free, Private email at http://www.smackdown.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   "body"   -- Quoted from Yahoo! homepage, http://www.yahoo.com

On Mon, 15 Jan 2001, WreckRman2 wrote:

 Date: Mon, 15 Jan 2001 16:48:21 -0500
 From: WreckRman2 [EMAIL PROTECTED]
 To: "'Php-General@Lists. Php. Net'" [EMAIL PROTECTED]
 Subject: [PHP] Array...
 
 
 How can I do an array like below 100-1?
 
 OPTION VALUE=\"100\"/OPTION
 OPTION VALUE=\"99\"/OPTION
 OPTION VALUE=\"98\"/OPTION
 OPTION VALUE=\"97\"/OPTION
 
 to
 
 OPTION VALUE=\"3\"/OPTION
 OPTION VALUE=\"2\"/OPTION
 OPTION VALUE=\"1\"/OPTION
 
   WreckRman2
   Combat Flight Center
   http://www.combatfs.com
 
 -- 
 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]
 
 


-- 
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]



-- 
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]




[PHP] checkboxes into MySQL(trying again)

2001-01-15 Thread Jerry Lake

sorry about that,
I forgot to erase the old post
info

here is a chunk of the code I am using
snip
//inclusion of pizza toppings from DB
$query = ("SELECT * FROM toppings");
$result2 = mysql_db_query($DBName, $query) or
die("Error in MySQL query");

echo "table border='1' cellpadding='2' cellspacing='2'";
echo "tr bgcolor=" . $colors[ $i ++ % count( $colors ) ] . "";

$colors = array( '#e4e4e4', '#ff' );
 
$i = 0;

while($myrow =  mysql_fetch_array($result2)) {
$counter++;
if ($counter  "4") {
   $counter = "1";
echo "/trtr bgcolor=" . $colors[ $i ++ % count( $colors ) ] . "";
}
$name = $myrow["name"];
$personal_cost = $myrow["personal_cost"];
$small_cost = $myrow["small_cost"];
$medium_cost = $myrow["medium_cost"];
$large_cost = $myrow["large_cost"];
$category = $myrow["category"];
/snip

snip
echo "td valign=top align=left\r\n";
echo "input type=checkbox name=".$name." value=".$cost."".$name."/td";
echo "/td\r\n";
}
if ($counter  3) {
while ($counter  3) {
echo "tdnbsp;/td";
$counter++;
}
}
echo "/tr";

echo "/table";
// memory flush
mysql_free_result($result2);
//end topping section
/snip

Jerry Lake- [EMAIL PROTECTED]
Web Designer
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com



-- 
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]




[PHP] advise (MyCart)

2001-01-12 Thread Jerry Lake

I'm currently working on an installation
of rosenet's MyCart and I am curious if
anyone has used this cart and modified it
to include product options, size color etc..
my intended end product is an online ordering system
for a pizza place, so essentially my options
will be pizza sizes and toppings, if anyone has
any ideas on how to go about what I'm trying I'd
appreciate it.

Jerry Lake 


-- 
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]




[PHP] CodeCharge

2001-01-12 Thread Jerry Lake

Does anyone know if CodeCharge create SQL dump
files as well as the code, or do you have to
create them for your specific needs?

Jerry Lake 


-- 
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] regex

2001-01-12 Thread Jerry Lake

I have a small phone directory
bust the name listings are combined
for example
Schwartz Bob  Amelia   555-1212Oxford
Scirkin Bill555-1213Brooks

I need to add a tab or a comma after the
lastname so I can have as a separate field
when I dump it into MySQL and there is about
3500 records and I'd hate to have to do it by hand
any ideas?

Jerry Lake- [EMAIL PROTECTED]

-Original Message-
From: Cynic [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 3:25 PM
To: Jerry Lake; [EMAIL PROTECTED]
Subject: RE: [PHP] regex


depends. is the set of strings preceeding the space limited 
and known, or is it something like [^abc]{3,12} ?


At 00:13 13.1. 2001, Jerry Lake wrote the following:
-- 
and how would I go about that?

Jerry Lake

-Original Message-
From: Cynic [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 3:10 PM
To: Jerry Lake; [EMAIL PROTECTED]
Subject: Re: [PHP] regex


yes

At 23:54 12.1. 2001, Jerry Lake wrote the following:
-- 
is it possible with regex to
change one or more text characters
followed by a space into the same
characters followed by a tab?

Jerry Lake 


-- 
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]
--end of quote-- 




Cynic:

A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.

[EMAIL PROTECTED]




-- 
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]
--end of quote-- 




Cynic:

A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.

[EMAIL PROTECTED]



-- 
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]



-- 
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] regex

2001-01-12 Thread Jerry Lake

Bolgrihn Michael555-5566142 Hillyer St  Oxford
Bollenbach Gary V   555-5078315 Freedom Rd  Oxford
Bonaguidi Daniel555-5155N4663 10th Av   Montello
Bonnett Agatha  John   555-5363547 Fawn Ct Oxford
Bonnett Bernard  Norma 555-4360116 E Ormsby St Oxford
Bonnett Bob  Eleanor   555-5627527 Fern Av Oxford

Here is a sample from the listing there are numbers in the address
as well. 
$NewString = ereg_replace("([[:alpha:]]+) ", "\\1".",", $test);
that works to an extent, except that it adds the comma after
every word that is followed by one space and not just the first occurance

Jerry Lake 

-Original Message-
From: Cynic [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 3:41 PM
To: Jerry Lake; [EMAIL PROTECTED]
Subject: RE: [PHP] regex


looks like you need to find all the spaces _before_ the _first_ 
digit on the row, and _after_ the _last_ digit on the row. 
does that fit your data? are there no other numbers than the 
telephone ones?

At 00:29 13.1. 2001, Jerry Lake wrote the following:
-- 
I have a small phone directory
bust the name listings are combined
for example
Schwartz Bob  Amelia   555-1212Oxford
Scirkin Bill555-1213Brooks

I need to add a tab or a comma after the
lastname so I can have as a separate field
when I dump it into MySQL and there is about
3500 records and I'd hate to have to do it by hand
any ideas?

Jerry Lake- [EMAIL PROTECTED]

-Original Message-
From: Cynic [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 3:25 PM
To: Jerry Lake; [EMAIL PROTECTED]
Subject: RE: [PHP] regex


depends. is the set of strings preceeding the space limited 
and known, or is it something like [^abc]{3,12} ?


At 00:13 13.1. 2001, Jerry Lake wrote the following:
-- 
and how would I go about that?

Jerry Lake

-Original Message-
From: Cynic [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 3:10 PM
To: Jerry Lake; [EMAIL PROTECTED]
Subject: Re: [PHP] regex


yes

At 23:54 12.1. 2001, Jerry Lake wrote the following:
-- 
is it possible with regex to
change one or more text characters
followed by a space into the same
characters followed by a tab?

Jerry Lake 


-- 
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]
--end of quote-- 




Cynic:

A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.

[EMAIL PROTECTED]




-- 
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]
--end of quote-- 




Cynic:

A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.

[EMAIL PROTECTED]



-- 
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]



-- 
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]
--end of quote-- 




Cynic:

A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.

[EMAIL PROTECTED]




-- 
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] How can I get a random number

2001-01-10 Thread Jerry Lake

We may as we set it up in space
to minimalize gravity and friction
-can't be adding any predictable forces ;)

Jerry Lake

-Original Message-
From: Philip Olson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 3:19 PM
To: Cal Evans
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] How can I get a random number



Through recognition technologies this will work nicely, am looking forward
to it.  The key is using oversized ping pong balls as to allow oversized
letters, about a 8" radius ping pong ball will work.  Be sure to use black
ink.  Also, keep in mind that ink increases weight so use balancing
ink, similar to what one uses for tires (although tires use lead, not
ink).  The balancing ink should be transparent as to create a square
plot, this way the ink will be evenly distributed on each ping pong ball
as to create a truly random result.  Granted it's a subtle difference but
we DO want a random result.

The trick is getting the camera to read the ping pong ball, read the
manual on that.  Some have inserted transmitters within the balls but that
creates needless costs so it's not suggested.

philip

On Wed, 10 Jan 2001, Cal Evans wrote:

 Put a web cam on it and we've got a winner!  :)

 Cal

 -Original Message-
 From: Monte Ohrt [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 10, 2001 4:21 PM
 To: [EMAIL PROTECTED]; Brandon Orther
 Subject: Re: [PHP] How can I get a random number


 You can blow some ping pong balls around in an enclosure and pick one,
 that's pretty random :)

 For the next best thing to "random", you can use the rand() function in
 PHP.

 Brandon Orther wrote:
 
  How can I get a random number
 
  Thank you,
 
  
  Brandon Orther
  WebIntellects Design/Development Manager
  [EMAIL PROTECTED]
  800-994-6364
  www.webintellects.com
  
 
  --
  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]

 --
 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]



 --
 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]




--
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]



-- 
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] How can I get a random number

2001-01-10 Thread Jerry Lake

I'll go ahead and get that investment
money rolling, as soon as I see my
return from mindpixel...haha!

I hear that MIR can be had for about
the cost of a decent case of vodka though

Jerry Lake

-Original Message-
From: Philip Olson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 3:36 PM
To: Jerry Lake
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] How can I get a random number



Good idea!

I hear MIR is for sale.  This could make a good PHP random function, one
that always works!  Let's pool our resources and get on it.  Great thing
is, no need for these mysterious seeds.

philip


On Wed, 10 Jan 2001, Jerry Lake wrote:

 We may as we set it up in space
 to minimalize gravity and friction
 -can't be adding any predictable forces ;)

 Jerry Lake

 -Original Message-
 From: Philip Olson [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 10, 2001 3:19 PM
 To: Cal Evans
 Cc: [EMAIL PROTECTED]
 Subject: RE: [PHP] How can I get a random number



 Through recognition technologies this will work nicely, am looking forward
 to it.  The key is using oversized ping pong balls as to allow oversized
 letters, about a 8" radius ping pong ball will work.  Be sure to use black
 ink.  Also, keep in mind that ink increases weight so use balancing
 ink, similar to what one uses for tires (although tires use lead, not
 ink).  The balancing ink should be transparent as to create a square
 plot, this way the ink will be evenly distributed on each ping pong ball
 as to create a truly random result.  Granted it's a subtle difference but
 we DO want a random result.

 The trick is getting the camera to read the ping pong ball, read the
 manual on that.  Some have inserted transmitters within the balls but that
 creates needless costs so it's not suggested.

 philip

 On Wed, 10 Jan 2001, Cal Evans wrote:

  Put a web cam on it and we've got a winner!  :)
 
  Cal
 
  -Original Message-
  From: Monte Ohrt [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 10, 2001 4:21 PM
  To: [EMAIL PROTECTED]; Brandon Orther
  Subject: Re: [PHP] How can I get a random number
 
 
  You can blow some ping pong balls around in an enclosure and pick one,
  that's pretty random :)
 
  For the next best thing to "random", you can use the rand() function in
  PHP.
 
  Brandon Orther wrote:
  
   How can I get a random number
  
   Thank you,
  
   
   Brandon Orther
   WebIntellects Design/Development Manager
   [EMAIL PROTECTED]
   800-994-6364
   www.webintellects.com
   
  
   --
   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]
 
  --
  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]
 
 
 
  --
  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]
 



 --
 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]



 --
 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]






-- 
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]