[PHP] 2d array?

2001-01-10 Thread Kurth Bemis

i'm confused by the method the go about this.

i want to have a location: home / company / about on a page like 
server.com/company/aboutus.php

i'm thinking that i can use an array containing the page name and then 
search the array and return the page title.  now - how do i do this with an 
array?  I know that i've seen it done like aboutus.php:About Company or 
something.  Its hard to explain - can anyone help me?

~kurth
Kurth Bemis - Network/Systems Administrator, USAExpress.net/Ozone Computer

People disagree with me.  I just ignore them.
 -- Linus Torvalds, regarding the use of C++ for the Linux kernel

[EMAIL PROTECTED] | http://www.usaexpress.net/kurth
PGP key available - http://www.usaexpress.net/kurth/pgp

Fight Weak Encryption!  Donate your wasted CPU cycles to Distributed.net 
(http://www.distributed.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]




Re: [PHP] Homepage

2001-01-17 Thread Kurth Bemis

At 04:35 PM 1/17/2001, S Bey wrote:

you need to set that in you apache configuration.

open it in pico the press +w and type DocumentIndex

add index.php to the line that you getmine looks like this

DirectoryIndex index.html index.htm index.shtml index.php3 index.php 
index.phtml default.html default.htm

not hard :-)

~kurth

>Just a small (and hopefully easy) question.
>
>Is there a PHP equivalent of index.html? I want to be able to go straight
>to a PHP script without the user specifying the filename.
>
>Thanks, Steve.
>
>
>--
>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] Hyperlink?

2001-01-17 Thread Kurth Bemis

At 04:42 PM 1/17/2001, Wee Chua wrote:

their defined in style sheets.  Point your browser to www.w3c.org for more 
information

~kurth

>Hi all,
>Could anyone tell me how to show a hyperlink without underline, just regular
>text which contains link. Thanks.
>
>regards
>Calvin Chua
>Systems Analyst
>InterClean Equipment, Inc.
>734-975-2967
>
>
>--
>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 "PHP" Stands For....

2001-01-22 Thread Kurth Bemis

At 10:27 PM 1/22/2001, Fraser MacKenzie wrote:

i like people hate perl :-)

~kurth

>Acthually, it stands for Personal Home Page
>
>Frasre
>
>On Tue, 23 Jan 2001, Alexander Wagner wrote:
>
> > Brian White wrote:
> > > 'PHP, which stands for "PHP: Hypertext Preprocessor" ...'
> > >
> > > I frankly don't beleive that "PHP" started life as a recursively
> > > defined acronym - I remember reading somewhere that it stood for
> > > "Personal Home Page" which makes more sense to me.
> > >
> > > Anybody know the truth?
> >
> > IIRC it started as Personal Home Pages and later PHP: Hypertext 
> Preprocessor"
> > was voted to be the new name.
> >
> > Wagner
> >
> >
>
>
>--
>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] non-php related question.

2001-01-23 Thread Kurth Bemis

At 12:05 PM 1/23/2001, Jason Jacobs wrote:

on linux use wget on windows use websnake.

both are available somewhere on the net.  wget is at freshmeat and websnake 
is available at download.com

~kurth

>Hey guys and gals!  I have my personal site on go.com, and I wanna move it.
>The problem is I don't have it all backed up on my machine (I think I only
>have some of the images), but I want to move it to my server at work.  Does
>anyone know of a script of some sort that will go to my site, copy all the
>files to a specified folder, and follow my internal links?  Thanks for the
>info.
>
>Jason
>
>
>--
>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] updating time fields

2001-01-26 Thread Kurth Bemis

i am wondering if anyone has written a snippet to process the current date 
or mktime into a mysql timestamp feild.

~kurth


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

2001-01-26 Thread Kurth Bemis

whats the php function that will let me update a db field?  I've been 
looking at the manual but there seems to be no mention of it.

~kurth


-- 
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] disregard last two questions

2001-01-26 Thread Kurth Bemis

i'm a bit slow todayplease disregard those last 2 questions from me and 
i answered them myself :-)


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

2001-01-26 Thread Kurth Bemis

i'm having a horrible time updating 2 fields in the same db.  I don't get 
an error but the fields aren't updatedcan anyone send me a snippet for 
the to learn from?

~kurth


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

2001-01-26 Thread Kurth Bemis

At 12:31 PM 1/26/2001, Krznaric Michael wrote:

sorry - here you all go..


// number crunching time
$count++;
$time = date("Y-m-d H:i:s");

$result = mysql_query("INSERT INTO links (count) VALUES $count WHERE lid=$id");

echo $result;



> You need to be a little more specific about DB and problem type.
>You may have to commit the transaction if commit is not implict (ex Oracle).
>There could be many resons including your SQL statement.
>
>Mike
>
>-Original Message-
>From: Kurth Bemis [mailto:[EMAIL PROTECTED]]
>Sent: Friday, January 26, 2001 12:23 AM
>To: [EMAIL PROTECTED]
>Subject: [PHP] arg
>
>
>i'm having a horrible time updating 2 fields in the same db.  I don't get
>an error but the fields aren't updatedcan anyone send me a snippet for
>the to learn from?
>
>~kurth
>
>
>--
>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] header problems

2001-01-26 Thread Kurth Bemis

when i put this
header('location: $url');

i get this

http://domain.com/$url

what the hell am i doing wrong?


-- 
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 with $REMOTE_ADDR

2001-02-23 Thread Kurth Bemis

At 09:54 AM 2/23/2001, Rosen wrote:

is the machine that your browsing on the same machine that you have your 
serving software on?

~kurth


>Hi,
>I have problem with using of "$REMOTE_ADDR" variable.
>The variable always return me "127.0.0.1" ( localhost ),
>
>How can I get the IP of the remote host ?
>
>Thanks,
>Rosen Marinov
>
>
>
>
>
>--
>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] Best browser

2001-02-27 Thread Kurth Bemis

At 10:39 AM 2/27/2001, Jason Jacobs wrote:

he's probably referring to the SSL code that the browser uses.  In that 
aspect - it doesn't matter.  i'd personally choose netscape because of 
their good track record and conformity to standards.  M$ does things their 
way or the hiway.  Both browsers use the RSA libs from rsa security, so as 
far as algo compatibility thier both the same.  i think that i'm going in 
circles.but to get to my point - as far as ssl is concerned thier both 
the same.  personally if your worried about sniffing then use netscape with 
the 128 enc pack. what about PPTP? have you looked at that for a solution.?

~kurth

>It's been my experience that Netscape doesn't support mistakes as well as IE
>(example...forgetting a close td tag or close table, stuff like that), so
>usually if I build a page, I use Netscape to check it and it almost always
>works the same in IE.  As far as php and ssl goes, isn't that all server
>stuff?  I'm kinda new at the server end, so this is a good question for me
>2.
>
>Is it going to be an intranet page with the company only using one browser?
>If not, it should really probably be made to work in both browsers equally
>well.
>
>my 2 cents.
>Jason
>
>- Original Message -
>From: Ide, Jim <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, February 27, 2001 10:32 AM
>Subject: [PHP] Best browser
>
>
> >
> > I am developing a PHP application for a client that allows
> > users at remote locations to access and update a database.
> > I would like to standardize on one www browser so that the
> > help desk people only have to be knowledgeable about one
> > browser.  The users all have MS Win 95, 98, or NT.  The
> > quality (ie. the 'bug-free-ness") of the browser's SSL code
> > is very important.  What browser should I choose?
> >
> > Thanks -
> > Jim
> >
> >
> > --
> > 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] hrm...only hit submit once

2001-02-27 Thread Kurth Bemis

i have a form set that my users can fill out thier information.  at the end 
of the process the results are mailed to an email address. then only 
problem is that reloads the page the mail is send again.  this can be a 
problem...any ideas on how to prevent it??

~kurth


-- 
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 not working?

2001-02-27 Thread Kurth Bemis

i can't get his function to work.  i pass the correct data to it...but no 
results

heres the function

function display_contents($table,$session)
{
$count = 0;
$result = mysql_query( "SELECT * FROM $table WHERE 
session='$session'");
while($row = mysql_fetch_array($result)){
$result_inv = mysql_query( "SELECT * FROM 
retailseafood WHERE 
pid='$row[items]'");
$row_inventory = mysql_fetch_array($result_inv);
$contents[ "items"][$count] = $row_inventory[pid];
$contents[ "price"][$count] = $row_inventory[price];
//$contents[ "quantity"][$count] = $row[quantity];
$contents[ "total"][$count] = ($row_inventory[price] * 
$row[quantity]);
$count ++;
}
$total = $this->cart_total($table,$session);
$contents[ "final"] = $total;
return $contents;
}
// return number of items in cart

and heres what i do to call the function

View Contents Of Cart

what or where am i doing/going wrong?

~kurth


-- 
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 tell if client has cookies turned off?

2001-03-06 Thread Kurth Bemis

At 10:56 AM 3/6/2001, kevin1 wrote:

try to set one...just a blank/empty one.if it fails then cookies are 
off :-)

~kurth

>How can I tell reliably if someone has cookies turned off?
>
>
>
>--
>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 & MYSQL BOOKS

2001-03-19 Thread Kurth Bemis

At 03:46 PM 3/19/2001, YoBro wrote:

i get a lot of my books at bookpool.com.  Their prices are lower than 
amazon.com  check them out. www.bookpool.com

~kurth

>I actually think this is the book I have been waiting for. A bookstore in
>New Zealand told me not until March 2001. It must be pretty good, all the
>Sams books are. The only problem is in NZ it is about $170 as opposed to
>amazons $49.95US ($100NZ). If you know somewhere cheaper than amazon, I am
>all ears.
>
>Cheers
>Chris
>
>""Luke Welling"" <[EMAIL PROTECTED]> wrote in message
>99528g$v58$[EMAIL PROTECTED]">news:99528g$v58$[EMAIL PROTECTED]...
>: ""YoBro"" <[EMAIL PROTECTED]> wrote:
>: > Does anybody know any good books & websites to recommend for PHP & MySql
>: > together. I am looking to advance my knowledge and would really
>appreciate
>: a
>: > helpful tip.
>: >
>: > Really looking for a book that explains all the advanced features of
>PHP4
>: > and MySql as a compliment.
>:
>: I can't give you an unbiased opinion on whether it is good or not, but you
>: might like to look at "PHP and MySQL Web Development"
>: by Luke Welling and Laura Thomson.
>:
>: Here is a link to it on Amazon.
>: http://www.amazon.com/exec/obidos/ASIN/0672317842
>: although you can probably get it cheaper elsewhere.
>:
>: It will be published in 10 days.
>:
>: Cheers,
>:
>: Luke Welling
>:
>:
>:
>: --
>: 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 do i include ASP script into PHP...??!

2001-04-16 Thread Kurth Bemis

At 05:45 PM 4/16/2001, Plutarck wrote:

plus - why would you want to :-)

>Doesn't work.
>
>ASP scripts require an ASP interpreter. If you stick it in a PHP file, PHP
>will try to interpret the ASP code. PHP can't do that.
>
>
>
>--
>Plutarck
>Should be working on something...
>...but forgot what it was.
>
>
>""Joe Truong"" <[EMAIL PROTECTED]> wrote in message
>9bfd8q$gum$[EMAIL PROTECTED]">news:9bfd8q$gum$[EMAIL PROTECTED]...
> > How can i include ASP scripts into PHP files or is it posible?
> > thanxz
> > -Joe
> >
> >
> >
> > --
> > 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] OT - cyber squatting?

2001-04-17 Thread Kurth Bemis

this is totally OT - however I don't where else to ask.

i need information on cyber squatting. as in what laws there are against 
it, etc.i believe that there was a law passed making cyber squatting 
illegal...but i can't find it at the library of congressany help?

~kurth


-- 
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] OT - cyber squatting?

2001-04-17 Thread Kurth Bemis

At 12:21 PM 4/17/2001, Plutarck wrote:

thats is exactly what i'm looking for. :-)

thanks

~kurth

>I assume you mean registering a web address of a company, just to keep them
>from registering it or to try and make them pay you for it?
>
>Check NetworkSolutions "domain name dispute" policies.
>
>InterNIC has a pretty good policy, actually. If someone registers a name
>with is copyrighted, trademarked, or is clearly only valuable because it is
>familiar to a registered trademark of copyright, they are in violation and
>the domain name can be taken away from them and awared to the rightful owner
>via arbitration.
>
>To avoid having a domain name taken away they must prove either that they
>have made a good-faith effort to build a destinctive trademark of brand
>which does not impede upon a pre-existing copyright, and that the name was
>not registered for the sole purpose of keeping someone from rightfully
>registering it.
>
>
>Is that what you meant?
>
>
>--
>Plutarck
>Should be working on something...
>...but forgot what it was.
>
>
>"Kurth Bemis" <[EMAIL PROTECTED]> wrote in message
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > this is totally OT - however I don't where else to ask.
> >
> > i need information on cyber squatting. as in what laws there are against
> > it, etc.i believe that there was a law passed making cyber squatting
> > illegal...but i can't find it at the library of congressany help?
> >
> > ~kurth
> >
> >
> > --
> > 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] Help with a php Registration Form

2001-04-17 Thread Kurth Bemis

At 01:35 PM 4/17/2001, Michael Leone wrote:

whats the problem taht you having?

>I am trying to write a Registration form that send an email to a specific 
>address.
>The source to the page is at http://www.probesnj.org/etownreg.txt
>Its 400 lines long and I probably just spelled something wrong or missed a 
>semi-colon, but I can't find it and I would appreciate it anyone who has 5 
>minutes to spare could take a look at it. Thanks a bunch!
>
>Michael Leone
>
>
>--
>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] Help with a php Registration Form

2001-04-17 Thread Kurth Bemis

At 01:44 PM 4/17/2001, Michael Leone wrote:

double check ALL of your for loops as well as any place that you may have 
used a curly bracket.

~kurth

>Im getting this pesky parse error at line 392 which is the last line of 
>the document.
>At 01:40 PM 4/17/2001 -0400, you wrote:
>>At 01:35 PM 4/17/2001, Michael Leone wrote:
>>
>>whats the problem taht you having?
>>
>>>I am trying to write a Registration form that send an email to a 
>>>specific address.
>>>The source to the page is at http://www.probesnj.org/etownreg.txt
>>>Its 400 lines long and I probably just spelled something wrong or missed 
>>>a semi-colon, but I can't find it and I would appreciate it anyone who 
>>>has 5 minutes to spare could take a look at it. Thanks a bunch!
>>>
>>>Michael Leone
>>>
>>>
>>>--
>>>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] freetype

2001-04-17 Thread Kurth Bemis

i'm attempting to comiple in freetype2 into php4.0.4pl1.  this is my 
configure line

trinity:~/php-4.0.4pl1# ./configure --with-mysql=/usr/local/mysql/ 
--with-apache=../apache_1.3.19/ --enable-freetype-4bit-antialias-hack 
--with-ttf=/usr/local/lib/ --with-gd

and this is what configure spits back at me..

checking whether to add fribidi support... no
checking whether to enable FTP support... no
checking whether to enable truetype string function in gd... no
checking for libjpeg (needed by gd-1.8+)... no
configure: warning: If configure fails try --with-jpeg-dir=
checking for libXpm (needed by gd-1.8+)... no
configure: warning: If configure fails try --with-xpm-dir=
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... (cached) yes
checking for gdImagePaletteCopy in -lgd... (cached) yes
checking for gdImageColorClosestHWB in -lgd... (cached) yes
checking for compress in -lz... (cached) yes
checking for png_info_init in -lpng... (cached) yes
checking for gdImageColorResolve in -lgd... (cached) yes
checking for gdImageCreateFromPng in -lgd... (cached) yes
checking for gdImageCreateFromGif in -lgd... (cached) no
checking for gdImageWBMP in -lgd... (cached) yes
checking for gdImageCreateFromJpeg in -lgd... (cached) no
checking for gdImageCreateFromXpm in -lgd... (cached) yes
checking whether to include FreeType 1.x support... yes
checking for T1lib support... no
checking whether to include GNU gettext support... no


yes gd and freetype2 are installedboth in /usr/local/lib

~kurth


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

2001-04-17 Thread Kurth Bemis

does anyone have any tutorials on installing gd with freetype 2 support?

~kurth


-- 
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] TTF + GD

2001-04-17 Thread Kurth Bemis

I have compiled and installed freetype 2.0.1 and gd 1.8.1..the php 
configure script finds the libs okhowever gd still isn't compiled with 
true type font supportsomeone MUST have a solution for what i'm dealing 
with herelook :

checking whether to enable FTP support... yes
checking whether to enable truetype string function in gd... no
checking for libjpeg (needed by gd-1.8+)... yes
checking for jpeg_read_header in -ljpeg... yes
checking for libXpm (needed by gd-1.8+)... no
configure: warning: If configure fails try --with-xpm-dir=
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... (cached) yes
checking for gdImagePaletteCopy in -lgd... (cached) yes
checking for gdImageColorClosestHWB in -lgd... (cached) yes
checking for compress in -lz... (cached) yes
checking for png_info_init in -lpng... (cached) yes
checking for gdImageColorResolve in -lgd... (cached) yes
checking for gdImageCreateFromPng in -lgd... (cached) yes
checking for gdImageCreateFromGif in -lgd... (cached) no
checking for gdImageWBMP in -lgd... (cached) yes
checking for gdImageCreateFromJpeg in -lgd... (cached) no
checking for gdImageCreateFromXpm in -lgd... (cached) yes
checking whether to include FreeType 1.x support... no
checking for T1lib support... no


-- 
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/M3U Questions!!!

2001-04-17 Thread Kurth Bemis

At 04:43 PM 4/17/2001, Chris Cocuzzo wrote:

as far as I know the EXTINF is just data that win amp puts in play 
lists.  its just the number of frames i believe then teh song title.  this 
allows winamps play list editor to read the data for the files in the play 
list without opening them all...on a large (450) or so that can take a long 
time

hope this helps..

~kurth

>Hey,
>
>First I'll ask my OT question. I've been thinking lately of implementing a
>system on my band's website where people can log in, and maintain a playlist
>of all the mp3's I have on the site. Obviously when they want to play it, or
>a single file, they can hit play and the m3u file will automatically
>download to whatever mp3 player their using. If you used winamp, you
>probably know the idea I'm getting at. Anyways...I'm confused on one part.
>
>this is what the m3u file looks like:
>#EXTM3U
>#EXTINF:183,Greyboy Allstars - Jack Rabbit
>\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Jack Rabbit.mp3
>#EXTINF:96,Greyboy Allstars - Let the music take your mind
>\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Let the music take your
>mind.mp3
>#EXTINF:184,Greyboy Allstars - Soul Dream
>\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Soul Dream.mp3
>#EXTINF:105,Greyboy Allstars - Fried grease
>\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Fried grease.mp3
>#EXTINF:119,Greyboy Allstars Who's Gonna Be The Junkie
>\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars Who's Gonna Be The Junkie.mp3
>#EXTINF:117,Greyboy Allstars - Gravee
>\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Gravee.mp3
>
>I understand all of this except for those numbers after the #EXTINF. Does
>anyone know what they mean?
>
>my php question is, what functions might I use to do something like this.
>I've been checking out some code, and I've seen things like people using
>buffers and http functions to get the whole thing working. Any ideas?
>
>--Chris
>
>
>--
>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/M3U Questions!!!

2001-04-17 Thread Kurth Bemis

At 05:12 PM 4/17/2001, Chris Cocuzzo wrote:

theres a formula for figuring out how many frames based on file size and 
timehowever if your making a playlist with 20 or so entries the 
EXTINF's aren't really nessary

~kurth

>Ok that makes sense definitely. I guess I wonder. How would I code something
>so I could find out the number of frames in a particular mp3 so I could
>generate the m3u file? I've seen a lot of this stuff implemented in PERL,
>however I'm not familiar with PERL that much, so it wouldn't matter.
>PHP-wise, any ideas on how to find that number of frames?
>
>--chris
>
>
>-Original Message-
>From: Kurth Bemis [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 17, 2001 4:54 PM
>To: [EMAIL PROTECTED]; PHP General List (E-mail)
>Subject: Re: [PHP] PHP/M3U Questions!!!
>
>
>At 04:43 PM 4/17/2001, Chris Cocuzzo wrote:
>
>as far as I know the EXTINF is just data that win amp puts in play
>lists.  its just the number of frames i believe then teh song title.  this
>allows winamps play list editor to read the data for the files in the play
>list without opening them all...on a large (450) or so that can take a long
>time
>
>hope this helps..
>
>~kurth
>
> >Hey,
> >
> >First I'll ask my OT question. I've been thinking lately of implementing a
> >system on my band's website where people can log in, and maintain a
>playlist
> >of all the mp3's I have on the site. Obviously when they want to play it,
>or
> >a single file, they can hit play and the m3u file will automatically
> >download to whatever mp3 player their using. If you used winamp, you
> >probably know the idea I'm getting at. Anyways...I'm confused on one part.
> >
> >this is what the m3u file looks like:
> >#EXTM3U
> >#EXTINF:183,Greyboy Allstars - Jack Rabbit
> >\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Jack Rabbit.mp3
> >#EXTINF:96,Greyboy Allstars - Let the music take your mind
> >\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Let the music take your
> >mind.mp3
> >#EXTINF:184,Greyboy Allstars - Soul Dream
> >\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Soul Dream.mp3
> >#EXTINF:105,Greyboy Allstars - Fried grease
> >\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Fried grease.mp3
> >#EXTINF:119,Greyboy Allstars Who's Gonna Be The Junkie
> >\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars Who's Gonna Be The Junkie.mp3
> >#EXTINF:117,Greyboy Allstars - Gravee
> >\\Cocuzzo2\cocuzzo dr d\nap\Greyboy Allstars - Gravee.mp3
> >
> >I understand all of this except for those numbers after the #EXTINF. Does
> >anyone know what they mean?
> >
> >my php question is, what functions might I use to do something like this.
> >I've been checking out some code, and I've seen things like people using
> >buffers and http functions to get the whole thing working. Any ideas?
> >
> >--Chris
> >
> >
> >--
> >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] Best non-tackified grip enhancer for golfers>

2001-04-18 Thread Kurth Bemis

whoever the mail admin is should start using rblsmtpd :-)

~kurth


-- 
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] gd php freetype problem solved

2001-04-19 Thread Kurth Bemis

This is just a post to get in the archives.  So if someone searches the 
archives for this they'll hopefully hit this one and their problems will be 
solved.  I've battled this for  two days..and have finally solved the 
problem.  I figure that the should help someone who had problems similar to 
mine.

when you configure php with gd keep in mind that you need to have libgd.a 
in /usr/lib.  libgd.so won't do it!

watch:

./configure --with-mysql=/usr/local/mysql 
--with-apache=/usr/src/apache_1.3.19 --enable-ftp 
--with-jpeg-dir=/usr/src/jpeg-6b --with-png-dir=/usr/src/libpng-1.0.9 
--with-freetype-dir=/usr/src/freetype-2.0.1/ --with-gd=/usr/src/gd-2.0.1 
--with-imap=/usr/src/imap-4.5  --enable-gd-native-ttf' --enable-calendar'

you have to remember to do a make libgd.a in /usr/src/gd-2.0.1 (or where 
ever you untarrred gd)

.a libs are for being statically linked with progs.  .so libs are stand 
alone, dynamic libs.

then everything works ok

you learn something new every day :-)

If anybody has questions i urge to ask me for a copy of the bash script 
that i used to compile php with apache.  Mail me at [EMAIL PROTECTED]

~kurth
Kurth Bemis
Owner: Ozone Computer
Owner/Senior Administrator: USAExpress.net LLC
HomePage: http://kurth.hardcrypto.com

Man kann niemanden zu seinem Glück zwingen


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

2001-04-23 Thread Kurth Bemis

At 01:12 PM 4/23/2001, Toby Miller wrote:

personally i deny all access to my .inc files. with this Apache config...

works really good :-)

in httpd.conf

# The following prevents .inc file from being read by web clients


 Order allow,deny
 Deny from all



~kurth

>Jordan,
>
>Not true. If you make your PHP includes look like this:
>
>include("$DOCUMENT_ROOT/includes/header.inc");
>
>Then you can make your image calls with an absolute URL like this:
>
>
>
>Also, it's not a good idea to use the .inc extension unless you've
>associated it with PHP. The reason is if I type the URL directly to
>/includes/header.inc I will get the source code for that file in text
>format. However, if you named it header.inc.php it will still follow an
>intelligent naming convention, but will still get interpreted if someone
>tries to access it directly. This will most likely result in an error or
>will just display a blank page depending on what your header file does.
>Either way it doesn't open your source code up to anonymous users. This is
>why Martin is suggesting you to store your include files outside of the root
>web directory so people can't directly access your source code. So either do
>what I've suggested or do what Martin suggested, but it is definitely worth
>the effort to do one of the two.
>
>--Toby
>
>
>- Original Message -
>From: "Jordan Elver" <[EMAIL PROTECTED]>
>To: "Ben Cairns" <[EMAIL PROTECTED]>
>Cc: "PHP General Mailing List" <[EMAIL PROTECTED]>
>Sent: Monday, April 23, 2001 11:28 AM
>Subject: Re: [PHP] Site Structure
>
>
> > Hi,
> > Thanks for the reply. I can do that but then the images will not be in the
> > correct location?
> >
> > Jordan
> >
> > On Monday 23 April 2001 15:58, you wrote:
> > > give the include() function a complete path:
> > >
> > > include '/apache/htdocs/include/yourfile.inc.php';
> > >
> > >
> > > -- Ben Cairns - Head Of Technical Operations
> > > intasept.COM
> > > Tel: 01332 365333
> > > Fax: 01332 346010
> > > E-Mail: [EMAIL PROTECTED]
> > > Web: http://www.intasept.com
> > >
> > > "MAKING sense of
> > > the INFORMATION
> > > TECHNOLOGY age
> > > @ WORK.."
> >
> > --
> > 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] Query Analyzer For MySQL with PHP?

2001-04-23 Thread Kurth Bemis

At 02:56 PM 4/23/2001, Brandon Orther wrote:

teh guys a phpwizzard.net wrote phpmyadmin...its a wonderful db admin 
tool...and it has a feature like what your describing.check it 
out...http://www.phpwizzards.net

~kurth
>Hello,
> I recently took an ANSI SQL class to better familiarize my self 
> with SQL in
>general.  In the class we used MSSQL SERVER 7 and to do queries we used the
>Query Analyzer.  Does anyone know of a PHP script that works like the Query
>Analyzer so I can test Queries in a Browser?  Like A Text Area where I can
>put the query and a simple form that sends it to MySQL.
>
>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] Filesystem security

2001-04-26 Thread Kurth Bemis

At 03:36 PM 4/26/2001, ..s.c.o.t.t.. [gts] wrote:

or better yet.as in #feed-the-goats on efnet :-)

christ - this is scary...people getting involved in things that they have 
no clue about.

"i have built a rocket, but once i take off i can't figure how to land it 
without breaking a few bones.  can anybody help me?"
"does anybody have any plutonium for sale so  i can build a bomb?  BTW 
what's the atomic number of Hydrogen?"

let me guess - your probably running redhat.  the distro of the owned :-) 
Please get a clue and read a few man pages...or read the LDP or 
something..just pull your head outta .. :-)

~kurth

>my advice would be to disconnect the box from
>the internet until you understand how to properly
>secure it.
>
>please read the documentation and manuals
>before your box gets raped and pillaged
>
>
> > -Original Message-
> > From: Maxim Maletsky [mailto:[EMAIL PROTECTED]]
> > Subject: RE: [PHP] Filesystem security
> >
> >
> > Read the php.ini file and the manuals on php.net.
> >
> > There are some directives which can limit the parser to operate on files
> > under a certain level.
> >
> > You can also disallow functions if you care. As well as what directives can
> > be overwritten by .htaccess files.
> >
> > No idea where have I read all that, but I am sure there is.
> >
> >
> > -Original Message-
> > From: Anton G. Popov [mailto:[EMAIL PROTECTED]]
> > Subject: [PHP] Filesystem security
> >
> > Hi
> >
> > I have to set up a site for free web hosting incl. php
> > I installed apache and php4.0.4pl1 and now the php scripts can browse the
> > entire filesystem of the machine. Does anyone know how to fix that?
> >
> > 10x a lot
> >
> > Antt
>
>
>--
>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] Update statement?

2001-04-30 Thread Kurth Bemis

hey i'm working on a shopping cart..but have hit a snag whit this statement..

function modify_quantity($table, $session, $itemid, $quantity)
{
$sql = "UPDATE $table SET quantity='$quantity' WHERE 
session='$session' 
AND itemid='$itemid'";
mysql_query("$sql");
}

if there is a value in the db field "quantity" then after the statement is 
executed it is set to "0"

here is my calling code.

if ($action == "uq" || $action == "Update" ){
modify_quantity($table,$session,$itemid,$quanity);
}

and the requested url.

http://www.harborfresh.com/retail/cart.php?itemid=21591&quantity=5&action=Update

any ideas?

~kurth


-- 
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] Update statement?:SOLVED

2001-04-30 Thread Kurth Bemis

At 01:03 PM 4/30/2001, Steve Werby wrote:

I hate the letter "i" :-)

it was missing when i passed quantity to the function

~kurth

>"Kurth Bemis" <[EMAIL PROTECTED]> wrote:
> > function modify_quantity($table, $session, $itemid, $quantity)
> > {
> > $sql = "UPDATE $table SET quantity='$quantity' WHERE session='$session'
> > AND itemid='$itemid'";
> > mysql_query("$sql");
>
>Add 'echo $sql;' here (no quotes) and look at the output.  If the RHS of
>quantity= is zero, then $quantity passed to modify_quantity is zero and
>that's the problem.
>
> > if there is a value in the db field "quantity" then after the statement is
> > executed it is set to "0"
>
>I think that $quantity is the problem.
>
>--
>Steve Werby
>President, Befriend Internet Services LLC
>http://www.befriend.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] nslookup function ?

2001-05-04 Thread Kurth Bemis

At 04:11 PM 5/4/2001, Matthew Luchak wrote:

goto zend.com then to the code exchange...then search for kurth bemis...i 
wrote a fucntion that does just that.

~kurth


>I'm working on a email address verification script and need to do a DNS
>lookup given the IP number of a remote host.
>ie:  is [EMAIL PROTECTED] a viable address?
>
>get IP gethostbyname(here.net);
>nslookup IP to get mail server address
>pfsockopen blah...blah..blah...
>
>sois there a nifty yet undocumented nslookup() function out
>there?
>
>
>Matthew Luchak
>Webmaster
>Kaydara Inc.
>[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] Installing the GD Library

2001-05-09 Thread Kurth Bemis

At 12:47 PM 5/9/2001, Alexander Wagner wrote:

christ - search the list archives.

I wrote a email just for the purpose of being archived so that newbies 
would read it and get a clue.

btw- theres nothing ground breaking in compiling gd into php.  try looking 
in the manual under installation :-)

~kurth

>Joseph Bannon wrote:
> > What all do I need to do to install the GD Library and make it work
> > with PHP?
>
>On what kind of platform?
>
>regards
>Wagner
>
>--
>"Some guy hit my fender, and I told him, 'Be fruitful and multiply,'
>but not in those words."
>  - Woody Allen
>
>--
>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] Generate code bars

2001-05-16 Thread Kurth Bemis

Code bars?  like Barcodes?  I do it with gd and free type with a barcode
font. Works like a charm.  Currently i'm looking at using it on an online
ticking system for conventions.

~kurth

On Wed, 16 May 2001, Sandra Ruivo Grilo wrote:

>
> I have a problem: how can I generate code bars in php ?
>
> Thanks in advance,
> Sandra.
>
> --
> 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] Encrypt Password for Session

2001-05-17 Thread Kurth Bemis


look in the manual for "md5"

~kurth

On Thu, 17 May 2001, Troy Moreland wrote:

> All,
>
> I am currently using sessions to store a user's ID, password and current
> login status.  All works fine.  The only issue is that the session file on
> the server is storing the password in plain text.  How do I encrypt that
> password and how to I decrypt it for comparing?
>
> Thanks in advance!!
>
> Troy Moreland
>
>
>
> --
> 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] Problem with talnet

2001-05-18 Thread Kurth Bemis

At 09:31 AM 5/18/2001, khuram latif wrote:

http://www.openssh.org

you want SSH (Secure Shell) why anyone uses telnet anymore is beyond me.

~kurth

>Hi Dears,
>Please tell me the alternate software of Telnet, because i've problem
>with talnet.
>
>Regards,
>khuram
>
>
>--
>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] Expense

2001-05-19 Thread Kurth Bemis


Clayton - I'm working on a similar time tracking tool myself...then it
exports the data in CSV format.  I'm looking at having it complete next
week.  I'll notify you when it done if your intrested.

~kurth

On Sat, 19 May 2001, Clayton Dukes wrote:

> I did actually look there first. Nothing listed
>
> Thanks anyways :-)
>
>
> Clayton Dukes
> CCNA, CCDA, CCDP, CCNP
> Download Free Essays, Term Papers and Cisco Training from http://www.gdd.net
>
>
> - Original Message -
> From: "Navid Yar" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, May 19, 2001 3:35 PM
> Subject: [PHP] Expense
>
>
> > Clayton, you might want to try hotscripts.com. They have a load of scripts
> > you can choose from, and it's all categorized as well. Good luck
> >
> > Navid Yar
> >   -Original Message-
> >   From: Clayton Dukes [mailto:[EMAIL PROTECTED]]
> >   Sent: Saturday, May 19, 2001 2:22 PM
> >   To: [EMAIL PROTECTED]
> >   Subject: [PHP] Expense
> >
> >
> >   Does anyone know where I can find some type of Expense Report/Tracking
> > system written in PHP?
> >
> >   I'm tired of tracking all my stuff in Excel and sending it in so I
> thought
> > I'd take a crack at making an online tracking system for multiple
> employees
> > that could possibly export to Excel if needed.
> >
> >   Thanks for any help :-)
> >
> >
> >   Clayton Dukes
> >   CCNA, CCDA, CCDP, CCNP
> >   Download Free Essays, Term Papers and Cisco Training from
> > http://www.gdd.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] Tab ordereing

2001-05-22 Thread Kurth Bemis

i believe that the attrib is taborder="3"  bewarethat its not 4.0 standard 
tho.if i find a good resource then i'll send ti along to the list

> The order is the order they are written in the html code.
> 
> I'm not aware of any way to make it otherwise...
> 
> 
> Plutarck
> 
> "Tarrant Costelloe" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> What's the syntax for defining the tab order on a input box?
>>
>>
>> --
>> 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]


-- 
This is my test sig


-- 
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] PLEASE SIGN-ME OFF !

2002-01-16 Thread Kurth Bemis

At 08:17 AM 1/16/2002, treiger wrote:

maybe if you wern't totally retarded you read the footer of this email and 
EVERY other email that passed through this list.

~kurth

>PLEASE SIGN-ME OFF !
>
>I've sent already all emails requested to sign-me off this list, but I keep
>receiving emails
>
>
>Sergio Treiger
>
>- Original Message -
>From: "Stefan Rusterholz" <[EMAIL PROTECTED]>
>To: "Dani" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
>Sent: Wednesday, January 16, 2002 11:09 AM
>Subject: Re: [PHP] CONTINUE - variable problem - help!
>
>
> > whoops, typo:
> > echo (isset($row["somename_$var"]) && $row["somename_$var"] !== "") ?
> > $row["somename_$var"] : "Sorry, but \$row[\"somename_$var\"] is not set.";
> >
> > above code should be correct :) (notice: it's only 1 line - email could
> > display it on multiple lines).
> >
> > and here a smaller explanation of the ternary operator (?:):
> > echo (condition) ? "condition is true" : "condition is false";
> > if conditions evaluates to true then PHP interprets it like
> > echo "condition is true";
> > else
> > echo "condition is false";
> >
> > best regards
> > Stefan Rusterholz
> >
> >
> >
> > --
> > 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] 2d array help

2002-01-21 Thread Kurth Bemis


Yes I do...
for an online billing system...

Kurth Bemis
Senior Network Admin/Owner: USAExpress.net
Owner: Ozone Computer

http://kurth.hardcrypto.com
PGP Key Avail.
-
Uh!.Uh!.Uh!."I'm done with this."...Out the window

On Mon, 21 Jan 2002, Jim Lucas [php] wrote:

> $result = mysql_query( "SELECT pkgid FROM plans");
> while($row = mysql_fetch_assoc($result))
> {
> $package = mysql_fetch_assoc(mysql_query( "SELECT * FROM plans WHERE
> pkgid='$row[pkgid]'"));
> }
> obviously this will have
>
> $package = array("key" => "value", ...);
>
> are you wanting to have the above be referanced by the pkgid ?
>
> Jim Lucas
> bend.com
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 21, 2002 2:51 PM
> Subject: [PHP] 2d array help
>
>
> > arg- trying to get the data that I pull outta my db into a 2d assoc
> array...
> >
> > any help?
> >
> > ~kurth
> >
> > $result = mysql_query( "SELECT pkgid FROM plans");
> > while($row = mysql_fetch_assoc($result)){
> > $resultpkg = mysql_query( "SELECT * FROM plans WHERE
> > pkgid='$row[pkgid]'");
> > $package = mysql_fetch_assoc($resultpkg);
> > }
> >
> > print_r($plan);
> >
> >
> > --
> > 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] Variables Limit

2002-01-26 Thread Kurth Bemis

Unless your getting the values through a POST or a GET...both of these
have limitesi forget what it is...maybe 1024 bytes?  you'd jave to
read the http rfc

~kurth

On Sat, 2002-01-26 at 14:51, Nick Wilson wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> 
> * and then Philip J. Newman blurted
> > I have to exchage over 304 different names, codes, and dates ...
> 
> 305? :-)
> Doesn't sound like it would be a problem.
> - -- 
> 
> Nick Wilson
> 
> Tel:  +45 3325 0688
> Fax:  +45 3325 0677
> Web:  www.explodingnet.com
> 
> 
> 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.6 (GNU/Linux)
> 
> iD8DBQE8UwiwHpvrrTa6L5oRAkQrAJ492AZqZdf03jBAWSgw+AF+um3PFwCglfGg
> kRF7wnfQD7eICNfD+siLqLw=
> =Y3QF
> -END PGP SIGNATURE-
> 
> -- 
> 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] test

2001-10-19 Thread Kurth Bemis

system test


-- 
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] Good php-tool for administer users on mysql?

2001-12-07 Thread Kurth Bemis

At 09:56 AM 12/7/2001, Stefan Rusterholz wrote:

phpmyadmin  - its great!

get it at phpwizard.net

~kurth

>Does anyone know a webbrowser/php based tool which allows to administer 
>user privileges in mysql easily?
>
>Thanks in advance
>Stefan Rusterholz, [EMAIL PROTECTED]
>--
>interaktion gmbh
>Stefan Rusterholz
>Zürichbergstrasse 17
>8032 Zürich
>--
>T. +41 1 253 19 55
>F. +41 1 253 19 56
>W3 www.interaktion.ch
>--


--
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] get data from file

2001-12-10 Thread Kurth Bemis

I need to get data from a web page generated by mrtg in my page

i have come up with the following code

", $string);
$string2 = explode("", $string1[1]);

$stat = eregi("",$string2[0]);

echo $stat;
//while (list ($key, $val) = each ($string3)) {
 //echo "$key => $val";
//}

?>

however - I get a "1" when look on the php site - under manual...

any ideas?

~kurth


-- 
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] The "peacock" logo... and others...

2001-12-13 Thread Kurth Bemis

At 02:30 PM 12/13/2001, Rasmus Lerdorf wrote:

my asp buddy saw this message as said "Cuckoo, huh?  Maybe thats because 
you have to be crazy to use it."

sigh - when will those pesky Microsoft junkies ever learn :-)

~kurth

>The O'Reilly animal for PHP is a cuckoo bird.
>
>On Thu, 13 Dec 2001, Philip Hallstrom wrote:
>
> > Not to throw a wrench into the plans and it's not clear that it really
> > matters, but O'Reilly uses a peacock for an XML book.
> >
> > http://www.oreilly.com/catalog/xmlnut/
> >
> > and a pelican for this book.
> >
> > http://www.oreilly.com/catalog/webclient/
> >
> >
> > I suspect that most animals are probably being used by oreilly...  whether
> > that matters I'll leave up to someone else :)
> >
> > -philip
> >
> >
> >
>
>
>--
>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] Pre-Written Script ?

2001-03-21 Thread Kurth Bemis

At 09:08 PM 3/21/2001, Jack Sasportas wrote:

ah - true laziness.this is what gave birth to wysiwyg editors like 
frontpage :-)  do your self a favor and get off your ass and write code 
like everybody else.  I bet that you use frontpage too. Christ!  if your 
going to develop then you can't be lazy.  that's it i'm finished!

~kurth

>PhpMyAdmin is to manage MySQL, I want to take an existing table lets say
>phone_book and then have a script generate the add/edit/modify scripts so I
>don't have to code it, and look at how it is coded...
>
>Any Ideas ?
>
>Thanks!
>
>Keith Vance wrote:
>
> > That's sounds like a good task for you to take on, you will learn a lot
> > about writing PHP code. I don't really know what you are talking about,
> > but you can look at phpMyAdmin or something.
> >
> > K E I T H  V A N C E
> > Software Engineer
> > n-Link Corporation
> >
> > On Wed, 21 Mar 2001, Jack Sasportas wrote:
> >
> > > Has anyone found a good prewritten (gpl) script that helps you to create
> > > the php code to add/edit/modify based on selecting a table that you want
> > > to put data into ?
> > >
> > > I want to use this both to get some data in the computer as well as to
> > > learn other coding techniques.
> > >
> > > Thanks !
> > >
> > > ___
> > > Jack Sasportas
> > >
> > >
> > >
> > > --
> > > 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]
>
>--
>___
>Jack Sasportas
>Innovative Internet Solutions
>Phone 305.665.2500
>Fax 305.665.2551
>www.innovativeinternet.com
>www.web56.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] Pre-Written Script ?

2001-03-21 Thread Kurth Bemis

At 01:12 AM 3/22/2001, Jason Lotito wrote:

wysiwyg is generally a bad thing.  using tools such as allaire homesite i 
can code a full site such as jrehomes.com in about 70 hours - start to 
finish.  it took twice as long with dreamweaver 3 due to the wonderful ppl 
at MS going against the grain (dreamweaver says that they make code for any 
browser, heh - far from it) - nuff said.

functions and classes aren't laziness - it called planning ahead.  its nice 
to reference one script and pass it one set of arguments and have it spit 
back what you want.  Planning ahead is saving time - not being lazy.  being 
lazy is wondering if someone's coded a script that will generate sql 
queries because your too lazy to learn SQL.  at the least you need to know 
about 3 SQL commands to have a simple database driven site.

arg - i love "new age developers"  always looking for the short way 
out.  Do yourself a favor and take the time ONCE and you'll get something 
out of it that you'll use for ever. :-)

BTW - did you know what i was saying with grammar?  you obviously did.  so 
why waste time on caps and commas etc.?

anyway - thats my two cents -

if you wish to discuss this further then you can send replies to me and 
i'll forward them to /dev/null.

~kurth


> > Did you read what I wrote ?
> > First I do code, and I have coded projects with as many as 60,000
> > lines (clipper).
> >
> > In this case I run an ISP, work about 85 hours a week ( if that's
> > lazy then I the
> > laziest ). I have read most of the wrox PHP book (600 pages+), as well as
> > havinging coded a complete UAS system, with many features.
> > I hired a sub who didn't code modular, organized or for that
> > matter logical, so I
> > basically re-wrote 85% of the code for the system, BUT not having
> > the experience
> > in PHP I want to be able to 1 benefit from not having to code to
> > do some quick and
> > dirty stuff for testing, but also compare how what we have done
> > is written to the
> > results from this code.  I  consider many things in how I design
> > and impliment
> > programs that todays programmers don't, like why dump an sql
> > result into an array
> > because it is easy, when I know that if there are too many
> > records returned to the
> > array it could lock up a web server, or how efficient modularity
> > makes your coding
> > along with planning and organized field names, stuctures etc.
> > The perfect example is the contractor we hired and his lack of
> > experience, we had
> > a user database that would be querried for user type,  standard, master,
> > administrator etc, well this guy made 5 modules 1 for each type
> > of user, and in
> > that ALL THAT DUPLICATE CODEstupid.   I rewrote the entire
> > module in a simple,
> > cleaner and more efficient function which accepts the parameter
> > of what client
> > type you want.  Now that doesn't make me a PHP guru, it's just
> > the right and more
> > efficient way to do things, but there are secrets, and more
> > efficient ways to do
> > things in all languages, and I simply want to see others to see
> > how I can benefit
> > and learn.
> >
> > Before you flame at least read the entire message and make sure
> > of what the person
> > is saying, not just hey give me some code man..
> >
> > Kurth Bemis wrote:
> >
> > > At 09:08 PM 3/21/2001, Jack Sasportas wrote:
> > >
> > > ah - true laziness.this is what gave birth to wysiwyg editors like
> > > frontpage :-)  do your self a favor and get off your ass and write code
> > > like everybody else.  I bet that you use frontpage too. Christ!  if your
> > > going to develop then you can't be lazy.  that's it i'm finished!
> > >
> > > ~kurth
>
>1) I use Dreamweaver 4.0.  I coded HTML in a text editor for 2 1/2 years.
>So I use DW now because its 10x faster, more efficient to design web pages
>in.
>
>I then pull the code into a HTML Editor, and tighten up the code.  Make it
>perfect.
>
>Don't assume WYSIWYG means bad.  That only makes yourself look even worse.
>
>2) Obviously you are not a programmer.  If you were, you would know that
>programmers are in their very nature lazy.  That is why they create
>functions, and classes, and use the same code for different scripts.
>
>Before you go flamming someone, think.
>
>One more thing... I find it very hard to code standing up.  So, can I sit on
>my ass and code?
>
>Jason
>
>P.S.  Grammar never hurt.
>
>
>--
>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] regexp on us tele number

2001-03-22 Thread Kurth Bemis

i'm still getting the hang of regexps, however i have on small problem - I 
can't seem to make one to work on a US telephone number.  does anyone have 
something similar that i could work from?

~kurth


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

2001-03-23 Thread Kurth Bemis

has anyone seen ANY information on chrooting apache?  i'm interested in 
file system security...keeping users from reading other users files, etc

~kurth


-- 
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] script filename?

2001-03-25 Thread Kurth Bemis

i was pretty sure that there was a function to return JUST the script 
filename..  Unlike $php_self and $script_name i need something that till 
ruturn JUST the scriptname.  ie /test/test/blah.php returns blah.php.

any ideas? or am i going to have to reverse the string find the first "/" 
drop the rest of the string and return the file name. :-)

~kurth


-- 
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] script filename?

2001-03-25 Thread Kurth Bemis

At 03:53 PM 3/25/2001, Philip Olson wrote:

thank you - that was the function that i was looking for!

~kurth

>Hi Kurth,
>
>Check out basename() and use it against a predefined variable such as
>SCRIPT_NAME.  Example :
>
>///apples/foo.php?fruit=apple
>
>   print basename($SCRIPT_NAME); // foo.php
>
>Be sure to check out :
>
>   http://www.php.net/manual/en/language.variables.predefined.php
>   http://www.php.net/manual/en/function.basename.php
>
>Also check phpinfo() to view how your server deals with such things.
>
>
>Regards,
>
>Philip Olson
>http://www.cornado.com/
>
>On Sun, 25 Mar 2001, Kurth Bemis wrote:
>
> > i was pretty sure that there was a function to return JUST the script
> > filename..  Unlike $php_self and $script_name i need something that till
> > ruturn JUST the scriptname.  ie /test/test/blah.php returns blah.php.
> >
> > any ideas? or am i going to have to reverse the string find the first "/"
> > drop the rest of the string and return the file name. :-)
> >
> > ~kurth
> >
> >
> > --
> > 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] version????

2001-03-29 Thread Kurth Bemis

At 03:03 PM 3/29/2001, Scott Fletcher wrote:

pl refers to patch level.  thus 4.0.4.pl1 is newer and more current then 4.0.4

:-)

~kurth

>Hi!
>
> Can anyone tell me what the difference with those PHP version?  I see
>the version, "PHP 4.0.4pl1" with a "pl1" and some other version, "PHP 4.0.4"
>without a "pl1".  Does either of these version had to do with php.ini file?
>
>Thanks,
>  Scott
>
>
>
>--
>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] help - parsing text file

2001-04-04 Thread Kurth Bemis

arg - i' at wits end.  i need to parse a text file into a mysql insert 
statement.  the statement isn't the problem its parsing the text 
file.  heres a sample of the file

West Chesterfield
(603) 256-8278 V.90
(603) 307-2100 V.90 & K56flex
(603) 307-2200 ISDN / DOV
Hinsdale336
West Chesterfield256, 307, 614
Westmoreland399
Brattleboro, VT(802) 251, 254, 257, 258, 451
Jacksonville, VT(802) 368, 659
Newfane, VT(802) 221, 365
Putney, VT(802) 387, 536
Williamsville, VT(802) 348
Wilmington, VT(802) 464

i need to get the town the number is located (west chesterfield in this 
case) the 2 numbers (V.90 and ISDN - there may be more but i only need one 
of each),town(state), and the number.  I'm still struggling with rexexp 
expressions...and just can't seem to hack this one around.  I'm not opposed 
to perl.:-)  can ANYONE offer any help?

~kurth


-- 
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] help - parsing text file

2001-04-04 Thread Kurth Bemis

arg - i' at wits end.  i need to parse a text file into a mysql insert 
statement.  the statement isn't the problem its parsing the text 
file.  heres a sample of the file

West Chesterfield
(603) 256-8278 V.90
(603) 307-2100 V.90 & K56flex
(603) 307-2200 ISDN / DOV
Hinsdale336
West Chesterfield256, 307, 614
Westmoreland399
Brattleboro, VT(802) 251, 254, 257, 258, 451
Jacksonville, VT(802) 368, 659
Newfane, VT(802) 221, 365
Putney, VT(802) 387, 536
Williamsville, VT(802) 348
Wilmington, VT(802) 464

i need to get the town the number is located (west chesterfield in this 
case) the 2 numbers (V.90 and ISDN - there may be more but i only need one 
of each),town(state), and the number.  I'm still struggling with rexexp 
expressions...and just can't seem to hack this one around.  I'm not opposed 
to perl.:-)  can ANYONE offer any help?

~kurth 


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

2001-04-05 Thread Kurth Bemis

i'm concerned about the speed at which httpd (with php4.0.1pl1 compiles in 
as a static mod) can "chew" through a 350 element 2d array.  Can anyone 
offer any information?

~kurth


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

2001-04-06 Thread Kurth Bemis


i'm trying to make all my include files into functions for 
manageability.  I have one function that i'd like to get to work.heres 
teh code..



i had it in a function and had the function return $db.but didn't 
work.any ideas?

~kurth


-- 
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] running as a script

2001-04-07 Thread Kurth Bemis

At 05:32 PM 4/7/2001, Joseph Bannon wrote:

you must compile php as a CGI executable. :-)  see the man

~kurth

>How do you get PHP to run at a script, like at a telnet prompt?
>
>J
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>--
>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] HELP...Installation of PHP on Debian Linux!

2001-04-09 Thread Kurth Bemis

At 12:48 PM 4/9/2001, Frank K wrote:

RTFM!

read the fscking manual...it explains everything in the "installation" section

~kurth


>I am having trouble installing PHP4 on my linux machine. I downloaded to 
>source
>and i did a ./configure then a make then a make install. That all went good.
>Now i am trying to find the libphp4.so file. I did a couple search 
>commands but
>it could not find it. Can anyone help me with finding this file...like 
>where it
>was installed on your machine. I uncompressed it in my home directory
>/home/username
>
>Thanks,
>-Frank
>
>--
>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] Parse error after end of file

2001-04-09 Thread Kurth Bemis

At 03:59 PM 4/9/2001, DRN wrote:
you need to make sure that ALL your curly brackets are closed and that all 
lines that require semi-colons have them

~kurth

>Hi, I am trying to include a header to my document, I my problem is I
>keep getting a parse error on the line after the header ends. I cannot
>see what is causing this, can someone see what I have done wrong, the
>code is below.
>
>Cheers for your help, Donald
>
>< '>
>   ($no_menu_link==Home) { echo "Home | "; } else { echo "Home | "; } if 
>($no_menu_link==Catalogue) { echo "Catalogue | "; } else { echo "Catalogue 
>| "; } if ($no_menu_link==Information) { echo "Information | "; } else { 
>echo "Information | "; } if ($no_menu_link==Search) { echo "Search | "; } 
>else { echo "Search | "; } if ($no_menu_link==Contact) { echo "Contact | 
>"; } else { echo "Contact"; } ?>
>ps. the no_menu_link variable is defined on the page calling the include 
>so that the page does not have a link to itself. -- 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] .htpasswd encryption

2001-04-09 Thread Kurth Bemis

At 04:39 PM 4/9/2001, Brandon Orther wrote:

i believe that the scheme is md5

~kurth

>Hello,
>
>I am trying to make a script that creates .htpasswd files.  Does anyone know
>what encryption is used?
>
>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]




[PHP] L?

2001-04-09 Thread Kurth Bemis

what does the roman numeral L mean?

can someone point me to a page that has all of the roman numerals and their 
English equivlents?

i forgot?

~kurth


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

2001-04-10 Thread Kurth Bemis

can the moderator please boot this person from the list?

~kurth


>Delivered-To: [EMAIL PROTECTED]
>
>Date: Tue, 10 Apr 2001  09:56:07 +0300
>From:
>To: <[EMAIL PROTECTED]>
>Message-Id: <0104100956074836@parkntsrv>
>
>This is a description of the listmanager commands recognized by the
>XtraMail SMTP/POP3 service.
>
>
>
>JOIN or SUBSCRIBE
>-
>The join or subscribe commands are used by users, where want to join the 
>list.
>This commands are only accepted if allowed. Otherwise, the owner gets a 
>messages
>about the user request.
>
>Usage:
>join listname, [mail address], [full name]
>or
>subscribe listname, [mail address], [full name]
>
>The values inside the braces are optional. If no mail address is given, the
>known values will be used.
>
>
>
>LEAVE or UNSUBSCRIBE
>
>Users can leave the list automatically using the leave or unsubscribe command.
>
>Usage:
>leave listname, [mail address]
>or
>unsubscribe listname, [mail address]
>
>The values inside the braces are optional. If no mail address is given, the
>known values will be used.
>
>
>LISTS
>-
>Use this command to get a list of all local public mailing lists that are
>served by this server.
>
>Usage:  lists
>
>This command has no arguments
>
>
>
>WHICH
>-
>This command gives you listing of all mailing lists to which you have 
>subscribed.
>
>Usage:   which [mail address]
>
>The values inside the braces are optional. If no mail address is given, the
>known values will be used.
>
>
>
>RECIPIENTS or REVIEW
>
>Get a listing of all members of the specified mailing list.
>
>Usage:
>recipients 
>or
>review 
>
>
>
>HELP
>
>Use this command to get a description of all listmanager commands (This file).
>
>Usage:   help
>
>This command has no arguments.


-- 
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] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-10 Thread Kurth Bemis

At 06:15 PM 4/10/2001, Jason Lotito wrote:

no no - its an OC3+ web server.must be an overseas brand..or 
something..i've never heard of it.maybe its an SGI or something 
they have wacky names for their stuff  :-)

no bandwidth sucking sites?  on an OC3...we're talking gigabits per sec 
here.

no pron?  damn!  that puts me out!

what about security?  are they on top of the latest versions and 
patches.i mean after all...it is REDHACK..

spammers are funny people :-)

~kurth



> > Subject: RE: [PHP] __ $8/mo php hosting on 24/7, OC3+ web server
>
>I wonder if they charge extra for HTML hosting?  =)
>
>But seriously, WoW!  My own dedicated OC3 line!  Man, for only
>$8/month..that rocks!
>
> > > I am offering php hosting with features at a price no one else has, as
> > > far as I know.
>
>Nope, your right, some places even offer less!
>
>
>--
>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] __ $8/mo php hosting on 24/7, OC3+ web server ___

2001-04-10 Thread Kurth Bemis

At 05:55 PM 4/10/2001, Jeffrey Greer wrote:
>On 10 Apr 2001 12:08:01 -0700, [EMAIL PROTECTED] (Kurth Bemis)
>wrote:
>
> >At 06:15 PM 4/10/2001, Jason Lotito wrote:
> >
> >no no - its an OC3+ web server.must be an overseas brand..or
> >something..i've never heard of it.maybe its an SGI or something
> >they have wacky names for their stuff  :-)
> >
>
>It is at least OC3.  I forgot what comes next after OC3.

OC12 - whose your upstream provider?


> >no bandwidth sucking sites?  on an OC3...we're talking gigabits per sec
> >here.
> >
>
>You would max out the 100Mb/s network card first.

not a fiber gigabit nic card..their had for about 150 USD.plus 
99.9% of all web trafic is burst...not continues transferand if your 
maxing out a 100Mb connection then you aren't running a p3..your running a 
supersparc dual 400 or something :-) can i get one of those for $8.00 a month?


> >no pron?  damn!  that puts me out!
> >
>
>I am a co-administrator.  I don't have a problem with porn sites, but
>my partner would object.  But if you're really interested and you pay
>us lots of money we can take care of you.

well...you can pay my sister no money and she'll take care of you :-) J/K 
(she's a bit slutty around the edges)


> >what about security?  are they on top of the latest versions and
> >patches.i mean after all...it is REDHACK..
> >
>
>I'm no security expert, but I can apply the most important patches.
>Yesterday I added mod_ssl to apache.

thats not security - thats a requirement.  Patched cron 
latley?  sendmailyou know about 5 hours have gone by since we started 
this thread - i bet there's a security update available. :-)


> >spammers are funny people :-)
> >
> >~kurth
> >
>
>I'm not your average spammer.  I am a computer scientist dedicated to
>the struggle against the fascist MS hegemony and all other fascist
>corporations who try to control computer technology.  Support my
>business and you'll be doing the world a favor. ;^)

right on brutha!

>--
>Jeff Greer
>- B.S. computer science - Univ. MO - Rolla
>- I do web hosting and development.  Details
>   at http://www.singlesconnection.org/services/
>
>--
>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: FW: [PHP] $8 PHP hosting from Jeffrey Greer

2001-04-12 Thread Kurth Bemis

Thats what i was thinking...we have flamed him enough...and i hope that he
gets the message that we don't need to know about 8 dollar hosting...:-)

~kurth

On Thu, 12 Apr 2001, Greig, Euan wrote:

> Date: Thu, 12 Apr 2001 09:39:31 +0100
> From: "Greig, Euan" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: FW: [PHP] $8 PHP hosting from Jeffrey Greer
>
>
> Isn't it time to give this poor guy a rest?!?
>
> -Original Message-
> From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
> Sent: 11 April 2001 15:21
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] $8 PHP hosting from Jeffrey Greer
>
>
> Jeffrey Greer wrote:
>
> > Is 1/2 per
> > year too much down time?
>
> 
> Half a year downtime?  Yes, I would have a BIG problem with that.
> 
>
> AMK4
>
> --
> W |
>   |  I haven't lost my mind; it's backed up on tape somewhere.
>   |
>   ~
>   Ashley M. Kirchner    .   303.442.6410 x130
>   SysAdmin / Websmith   . 800.441.3873 x130
>   Photo Craft Laboratories, Inc. .eFax 248.671.0909
>   http://www.pcraft.com  . 3550 Arapahoe Ave #6
>   .. .  .  . .   Boulder, CO 80303, USA
>
>
>
>
> **
> Any opinions expressed in this email are those of the individual and
> not necessarily the Company. This email and any files transmitted with
> it, including replies and forwarded copies (which may contain alterations)
> subsequently transmitted from the Company, are confidential and solely for
> the use of the intended recipient. If you are not the intended recipient
> or the person responsible for delivering to the intended recipient, be
> advised that you have received this email in error and that any use is
> strictly prohibited.
>
> **
>
> --
> 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] resource ID?

2001-06-21 Thread Kurth Bemis

i get this:

Resource id #2

when i run this code.whats resource id 2 mean?  i just want to know if 
the query was ok or not

$result = mysql_query("SELECT authcode FROM users WHERE email='$email'",$db);
echo $result;

~kurth


-- 
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] resource ID?

2001-06-21 Thread Kurth Bemis

i get this:

Resource id #2

when i run this code.whats resource id 2 mean?  i just want to know if 
the query was ok or not

$result = mysql_query("SELECT authcode FROM users WHERE email='$email'",$db);
echo $result;

~kurth 


-- 
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] Please Help......

2001-06-30 Thread Kurth Bemis

I think that maybe when somebody subs to the list they get a 
info-email.  mostly saying "THIS IS PHP ONLY.  Not a clueless linux newbie 
list.  that's why they have LUGS."  Do any of you agree with me?  I think 
that its neededbasically saying - look at the manual first..then ask on 
the list.or your post will be ignored.

what about a php-experts mailing list.  a list for people that have php 
running know php but just need collaboration from their peers?  If the list 
maintainer is unwilling to set such a list up, I can set one up on one of 
USAExpress.net Servers

~kurth


-- 
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] gd + 4.0.6

2001-07-18 Thread Kurth Bemis

compiling with apache 1.3.20  i get this

./modules/php4 -lmodphp4  -lc-client  -ldl -lmysqlclient -lz -lgd 
-lfreetype -lpng -lz -ljpeg -lz -lcrypt -lresolv -lm -ldl 
-lnsl  -lresolv   -lm -lcrypt
modules/php4/libphp4.a(gd.o): In function `php_imagettftext_common':
/usr/src/php-4.0.6/ext/gd/gd.c:2668: undefined reference to `gdImageStringTTF'
collect2: ld returned 1 exit status
make[3]: *** [target_static] Error 1
make[3]: Leaving directory `/usr/src/apache_1.3.20/src'
make[2]: *** [build-std] Error 2
make[2]: Leaving directory `/usr/src/apache_1.3.20'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/src/apache_1.3.20'
make: *** [install-all] Error 2

i had GD working with 4.0.5 fine..however now i am having problems 
upgrading.

my php configure line is a follows.

./configure --with-mysql=/usr/local/mysql 
--with-apache=/usr/src/apache_1.3.20 --enable-ftp 
--with-jpeg-dir=/usr/src/jpeg-6b --with-png-dir=/usr/src/libpng-1.0.9 
--with-freetype-dir=/usr/src/freetype-2.0.1 --with-gd=/usr/src/gd1.3 
--enable-native-gd-ttf --enable-calander --with-imap=/usr/src/imap-4.5

any ideas?


-- 
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] argh!!!!!! php406+gd

2001-07-19 Thread Kurth Bemis

i'm still battling with gd and php and freetype.  This was a non issue 
before i upgraded to 4.0.6

look.

Warning: libgd was not built with TrueType font support in 
/virt/jrehomes/www/tvhc/test/image.php on line 4

Warning: libgd was not built with TrueType font support in 
/virt/jrehomes/www/tvhc/test/image.php on line 15

phpinfo says diff.

GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled 
FreeType Linkage with freetype GIF Support enabled PNG Support enabled WBMP 
Support enabled

heres my configure line

./configure --with-apache=../apache_1.3.20 --with-mysql=/usr/local/mysql 
--enable-ftp --with-jpeg-dir=/usr/src/jpeg-6b 
--with-png-dir=/usr/src/libpng-1.0.9 --with-gd=/usr/src/gd-1.8.3 
--enable-calander --with-imap=/usr/src/imap-4.5 
--with-zlib-dir=/usr/src/zlib-1.1.3 
--with-freetype-dir=/usr/src/freetype-2.0.4 --enable-sockets 
--enable-gd-imgstrttf

any ideas?

~kurth


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

2001-07-23 Thread Kurth Bemis

i've been looking for a template site that i used and never bookmarked.

I'll tell you what i remember about the site and hopefully someone will 
know what site i'm talking about.  I've spend the last 5 hours looking for 
this siteso this is my final stab in the dark.

The site had 4 categories of templates.  one was business templates and the 
other was user templates.

most of the designs were linkware.

and most of the templates were in plain html.

the site had a lot of templates...150+?

does anybody remember a free template site like that?  I'm pulling my hair 
out because ti was a good template site...not one of those cheezy one 
design 50 different color template sites.

~kurth


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

2001-07-23 Thread Kurth Bemis

At 11:29 AM 7/23/2001, Jack Sasportas wrote:

I last visited this site about 2 months ago...too long for any history :-(

>Your web browser should have a history option, and you can sift through the
>list of domains you surfed that approximate time frame ago...Also you can
>search in some applications like  netscape the history file, and look for key
>things like templates...
>
>Good Luck
>
>
>
>Kurth Bemis wrote:
>
> > i've been looking for a template site that i used and never bookmarked.
> >
> > I'll tell you what i remember about the site and hopefully someone will
> > know what site i'm talking about.  I've spend the last 5 hours looking for
> > this siteso this is my final stab in the dark.
> >
> > The site had 4 categories of templates.  one was business templates and the
> > other was user templates.
> >
> > most of the designs were linkware.
> >
> > and most of the templates were in plain html.
> >
> > the site had a lot of templates...150+?
> >
> > does anybody remember a free template site like that?  I'm pulling my hair
> > out because ti was a good template site...not one of those cheezy one
> > design 50 different color template sites.
> >
> > ~kurth
> >
> > --
> > 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]
>
>--
>___
>Jack Sasportas
>Innovative Internet Solutions
>Phone 305.665.2500
>Fax 305.665.2551
>www.innovativeinternet.com
>www.web56.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] Zip Code Locator?

2001-07-24 Thread Kurth Bemis

At 04:42 PM 7/24/2001, Benjamin Bleything wrote:

i'm pretty sure that the extra numbers are coord of that town.  you know 
the long and lat.

~kurth


>Hey, let me know if you figure out what the extra numbers are for... I might
>have a use for this at some point.
>
>Ben
>
> >From: "Matthew Loff" <[EMAIL PROTECTED]>
> >To: "'Ben Bleything'" <[EMAIL PROTECTED]>, "'Vincent P. Cocciolone'"
><[EMAIL PROTECTED]>
> >Cc: <[EMAIL PROTECTED]>
> >Subject: RE: [PHP] Zip Code Locator?
> >Date: Tue, 24 Jul 2001 16:40:01 -0400
> >MIME-Version: 1.0
> >Content-Transfer-Encoding: 7bit
> >X-Priority: 3 (Normal)
> >X-MSMail-Priority: Normal
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.
> >Importance: Normal
> >
> >
> >Ben--
> >
> >Thanks for pointing that out... I've been looking for info like that for
> >a long time!
> >
> >Much appreciated.
> >
> >--Matt
> >
> >
> >-Original Message-
> >From: Ben Bleything [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, July 24, 2001 1:23 PM
> >To: Vincent P. Cocciolone
> >Cc: [EMAIL PROTECTED]
> >Subject: Re: [PHP] Zip Code Locator?
> >
> >
> >You could write your own. . .
> >
> >Just kidding... well, technically you could... but... that's not the
> >point.
> >
> >http://sourceforge.net/projects/zipcodedb has a "Raw ZIP code dump"...
> >It has a little more data than just zip, city, state... I don't know
> >what it means, but maybe you would...
> >
> >Sorry, it's the best I could do =>
> >
> >Ben
> >
> >On Mon, 23 Jul 2001, Vincent P. Cocciolone wrote:
> >
> >> Hi,
> >>
> >> Does anyone know where can I find documentation or example scripts for
> >
> >> a zip code locator. I'm looking for something that will list other zip
> >
> >> codes within a number of miles radius of the zip specified.
> >>
> >> Thanks!
> >>
> >> Vince
> >>
> >>
> >> --
> >> 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] Re: which php shopping cart is this?

2001-07-30 Thread Kurth Bemis

At 12:29 PM 7/30/2001, simradusaadmin wrote:

its called the exchange project

it hink that its at www.theexchangeproject.org

~kurth

>[EMAIL PROTECTED] wrote:
>
> > Greetings!
> >
> > Which php-based shopping cart is being used at this site?
> > http://shop.t-shirtoutlet.com/catalog/
> >
>
>Did you try their contact form? They would be the best source for the
>answer.
>
> >
> > Thanks!
> >
> > Max Pyziur BRAMA - Gateway Ukraine
> > [EMAIL PROTECTED]  http://www.brama.com/
>
>--
>Chip Wiegand
>Computer Services
>Simrad, Inc
>http://www.simradusa.com
>http://www.simrad.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] IP Address

2001-08-07 Thread Kurth Bemis

At 09:29 AM 8/7/2001, Joseph Bannon wrote:



This is the problem with todays "web programmers"  and with PHP.

One - With the explosion in the ease of HTML and related technologies 
EVERYBODY is a designer/programmerlets face itsome have it some 
don't.  If you think that blinking text is great...or if you think that 
table borders are a great then you need to stop attempting to be a designer 
and get a real job.

Two - Damn you Rasmus PHP is a great lang for anything web 
relatedwith a nice low learning curve.  Thats the problem..PHP is s 
eays to use.  So every moron and his brother now programs in PHP and floods 
the list with questions like "How do i get the users IP?"

READ THE FREAKING MANUAL

most of us didin fact i keep a printed copy of the manual next to my 
desk...to avoid asking questions like the above.



~kurth

>Just because you're having a bad day doesn't mean I should. Can you just
>tell me what it is? I don't have those posts.
>
>J


-- 
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] form validataion?

2001-08-08 Thread Kurth Bemis

i want to do form validation server side...not client side..

i'm wondering what programers use to validate form data.if 
loopsarrays? what?

~kurth 


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

2001-08-08 Thread Kurth Bemis

i need to find out if a string (user imputed) conatins numbers.  I want 
only a-zA-Z to be in a field.  (their name for exampleand city)...i 
have the following however my regexps are VERY weak as i am a beginner.

function validatetext($text){
if  (is_string($text)== 1){
return "good";
}else{
return "bad";
}
}

~kurth


-- 
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] "location bar"

2001-08-14 Thread Kurth Bemis

At 11:02 AM 8/14/2001, Kevin L wrote:

I had a similar problem.jason murray gave me some ideas ;-)

just stick this in a function as I did and you'll be sailing.its easy 
to update, and Extremely flexible.

look at my code..

Location : http://www.usaexpress.net";>Home /  'Company',
 'services' => 'Services',
 'support' => 'Support',
 'mac' => 'Mac',
 'winnt' => 'Windows NT',
 'win9x' => 'Windows 9X',
 'unix' => 'Linux And Unix',
 'customers' => 'Customers',
 'noc' => 'NOC',
 'help' => 'USAexpress.net Help'
 );

 $linkdes = $dirs[$patharray[$dirsi]];

 $link = $link . "/$patharray[$dirsi]";

 if ($patharray[$dirsi] == $scriptname){
 $linkdes = $title;
 $slash = "";
 $linkhtml = "$linkdes$slash";
 if ($patharray[$dirsi] == "index.php"){
 $link = "";
 $linkdes = "";
 $slash = "";
 $linkhtml = "";
 }
 }else{
 $slash = " / ";
 $linkhtml = "$linkdes$slash";
 }
echo $linkhtml;
 }

?>


you can see it in action at www.usaexpress.net.  look at the "location" 
below our logo.

~kurth

>The navigation system you are refering to is called breadcrumb navigation.
>You can find implementations of this all over the place.  Try hotscripts.com
>or google.com.
>
>Kevin
>
>-Original Message-
>From: Wolfgang Schneider [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 14, 2001 12:35 AM
>To: php-general
>Subject: [PHP] "location bar"
>
>
>Hi everyone,
>
>I am somewhat new at the use of php and would appreciate if someone
>could help me with a question re "location bar"
>
>How can a location bar such as the sample below be generated in php to
>be displayed in web pages ...
>
> Location : home:/category:sub_1:/page title
>
>Is there a specific setup needed in terms of the directory structure on
>the server? Or will this only function with database type website?
>
>Thanks in advance for any input and helpful ideas  ...
>God bless you with His grace and peace
>Wolfgang
>
>Looking for Biblical information? COME AND SEE!
>-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
>-- BibelCenter: http://www.bibelcenter.de
>-- Bookstore: http://www.worthy.net/BibelCenter/
>
>
>
>
>--
>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] `pwd` - what does this mean?

2001-08-15 Thread Kurth Bemis

At 02:37 AM 8/15/2001, Scott Mebberson wrote:

man pwd

learn linux/unix.

~kurth

>Hi Guys,
>
>I actually know what it means. Well, I think it means the current directory?
>Anyway... what exactly is it and where can I find some more information
>about it? I couldn't find much on php.net - also, is there any other
>ones(whatever it is) like this?
>
>Thanks.
>
>Scott.
>
>
>
>--
>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] "location bar"

2001-08-16 Thread Kurth Bemis

At 06:14 PM 8/15/2001, Wolfgang Schneider wrote:

oops -  i forgot - I use functions similar tp the ones used on 
php.net.  when i call the function i pass $title to it

define $title and it should work. :-)

~kurth

>On Tue, 14 Aug 2001 11:39:55 -0400, Kurth Bemis wrote:
>
> >just stick this in a function as I did and you'll be sailing.its easy
> >to update, and Extremely flexible.
> >
> >look at my code.. (rest snipped)
>
>
>Hi Kurth, and others
>
>I adjusted your code for the purpose of my site (replacing he values in
>the array and the homepage address, etc) ... but when I plugged it into
>a page for testing; i got the following results:
>
>Location : Home /
>Warning: Undefined variable: link in visitheadnav-1.inc on line 70
>Besucher /
>Warning: Undefined index: support.php3 in visitheadnav-1.inc on line 68
>Warning: Undefined variable: title in visitheadnav-1.inc on line 73
>
>The code is part of an include file named "visitheadnav-1.inc" ... and
>apparently there is some "link" there in the code which is "an
>undefined variable" ... but I have no idea what this error message is
>about  :-(The results "Home/" and "Besucher/" are actually correct
>... it's just the "undefined link" problem I need to get figured out
>... Here's the code I inserted into my visitheadnav-1.inc:
>
>Location : http://www.bibelcenter.de.";>Home
>/
>$patharray = explode ("/",$SCRIPT_NAME);
>$scriptname = basename($SCRIPT_NAME);
>   for ($dirsi = 1; $dirsi < count($patharray); $dirsi++)
>{
>  $dirs = array(
>   'visitor' => 'Besucher',
>   'info' => 'Information',
>   'bibel' => 'Bibelarbeit',
>   'bibliothek' => 'Bibliothek',
>   'gebet' => 'Gebetsraum',
>   'links' => 'Internet Links',
>   'kids' => 'Kinderecke',
>   'shop' => 'Bookshop'
>   );
>
>  $linkdes = $dirs[$patharray[$dirsi]];
>  $link = $link . "/$patharray[$dirsi]";
>  if ($patharray[$dirsi] == $scriptname){
>  $linkdes = $title;
>  $slash = "";
>  $linkhtml = "href=\"$link\">$linkdes$slash";
>  if ($patharray[$dirsi] ==
>"index.php"){
>  $link = "";
>  $linkdes = "";
>  $slash = "";
>  $linkhtml = "";
>  }
>  }else{
>  $slash = " / ";
>  $linkhtml = "href=\"$link\">$linkdes$slash";
>  }
>echo $linkhtml;
>  }
>?>
>
>Any ideas, what may be wrong and causing these error messages?
>
>
>God bless you with His grace and peace
>Wolfgang
>
>Looking for Biblical information? COME AND SEE!
>-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
>-- BibelCenter: http://www.bibelcenter.de
>-- Bookstore: http://www.worthy.net/BibelCenter/


-- 
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] Fwd: BadBlue v1.02 beta for Windows 98, ME and 2000 .php Source Code Disclosure Vulnerability

2001-08-22 Thread Kurth Bemis

Thought this may be of interest to somebody.

~kurth


>Delivered-To: [EMAIL PROTECTED]
>Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
>List-Id: 
>List-Post: 
>List-Help: 
>List-Unsubscribe: 
>List-Subscribe: 
>Delivered-To: mailing list [EMAIL PROTECTED]
>Delivered-To: moderator for [EMAIL PROTECTED]
>From: "acz [iSecureLabs]" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
>Cc: <[EMAIL PROTECTED]>
>Subject: BadBlue v1.02 beta for Windows 98, ME and 2000  .php Source Code 
>Disclosure Vulnerability
>Date: Wed, 22 Aug 2001 11:11:28 +0200
>X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
>Importance: Normal
>
>-- [ iSecureLabs BadBlue v1.02 beta for Windows 98, ME and 2000
>Advisory ] --
>
>BadBlue v1.02 beta for Windows 98, ME and 2000 .php Source Code Disclosure
>Vulnerability
>Problem discovered: 22/08/2001
>
>-- [ Overview ] --
>
>BadBlue http://badblue.com/ is a tiny, free download that lets you share
>files, search other
>PCs and even run powerful web applications.
>Badblue support .php extension.
>It is possible to retrieve full .php source code.
>
>-- [ Description ] --
>
>Badblue contains an input validation vulnerability which may lead to
>download the full source code of .php pages.
>This is due to a lack of checks for NULL bytes.
>
>Exemple:
>http://myBadBlue.com/test.php%00
>
>Note: It is possible too to download .dll file used by BadBlue.
>
>Exmeple:
>http://myBadBlue.com/ext.dll%00
>
>-- [ Tested Version ] --
>
>BadBlue v1.02 beta for Windows 98, ME and 2000
>
>-- [ Discovered by ] --
>
>Cabezon Aurelien | [EMAIL PROTECTED]
>http://www.iSecureLabs.com | French Security portal
>http://www.isecurelabs.com/advisory/badblue.html


-- 
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] phpMyAdmin install error

2001-08-22 Thread Kurth Bemis

At 11:58 AM 8/22/2001, Jay Paulson wrote:

the socket has to be made by the mysql deamon.  Read the mysql docs on 
mysql.org search for mysql.sock.  mysql will not work if that files is 
deletedif you run redhat or other distros make sure that /tmp and 
/var/tmp aren't cleaned at each reboot or you'll have a bitch of a time 
because you'll have to create a new socket each time.

~kurth

>I had the EXACT same problem... what you need to do is find where the
>'mysql.sock' file is on your computer (sometimes it's at /var/lib/mysql.sock
>or some place like that).. then what you need to do is create the mysql.sock
>file in the /tmp directory (for some reason it wouldn't let me copy over the
>file to the /tmp directory once i found it).. then you can create a symbolic
>link using the ln command.. and if you need help with the ln (i believe
>that's it if not let me know) you can just type "man ln" in the command
>prompt if you are running on a linux box
>
>hope that helps..
>jay
>
>- Original Message -
>From: "Tom Beidler" <[EMAIL PROTECTED]>
>To: "php list" <[EMAIL PROTECTED]>
>Sent: Wednesday, August 22, 2001 10:39 AM
>Subject: [PHP] phpMyAdmin install error
>
>
> > I'm getting the following error with phpMyAdmin;
> >
> > Warning: MySQL Connection Failed: Can't connect to local MySQL server
> > through socket '/tmp/mysql.sock' (2) in
> > /home/web/isp.com/public_html/dloc/admin/lib.inc.php on line 308
> > Error
> >
> > Any ideas where to start looking. All I've set in the config.inc.php is
> > userid, password and database name. Works on every other ISP I've used but
> > this one is barking.
> >
> >
> > --
> > 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] Fwd: BadBlue v1.02 beta for Windows 98, ME and 2000 .php Source Code Disclosure Vulnerability

2001-08-22 Thread Kurth Bemis

At 12:10 PM 8/22/2001, Tom Malone wrote:

read the advisory - everything is explained.

~kurth

>This is not an issue if you're site is using Apache, correct?
>
>Tom Malone
>Web Designer
>http://www.tom-malone.com
>
>-Original Message-
>From: Kurth Bemis [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 22, 2001 11:13 AM
>To: [EMAIL PROTECTED]
>Subject: [PHP] Fwd: BadBlue v1.02 beta for Windows 98, ME and 2000 .php
>Source Code Disclosure Vulnerability
>
>
>Thought this may be of interest to somebody.
>
>~kurth
>
>
> >Delivered-To: [EMAIL PROTECTED]
> >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> >List-Id: 
> >List-Post: <mailto:[EMAIL PROTECTED]>
> >List-Help: <mailto:[EMAIL PROTECTED]>
> >List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
> >List-Subscribe: <mailto:[EMAIL PROTECTED]>
> >Delivered-To: mailing list [EMAIL PROTECTED]
> >Delivered-To: moderator for [EMAIL PROTECTED]
> >From: "acz [iSecureLabs]" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> >Cc: <[EMAIL PROTECTED]>
> >Subject: BadBlue v1.02 beta for Windows 98, ME and 2000  .php Source Code
> >Disclosure Vulnerability
> >Date: Wed, 22 Aug 2001 11:11:28 +0200
> >X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
> >Importance: Normal
> >
> >-- [ iSecureLabs BadBlue v1.02 beta for Windows 98, ME and 2000
> >Advisory ] --
> >
> >BadBlue v1.02 beta for Windows 98, ME and 2000 .php Source Code Disclosure
> >Vulnerability
> >Problem discovered: 22/08/2001
> >
> >-- [ Overview ] --
> >
> >BadBlue http://badblue.com/ is a tiny, free download that lets you share
> >files, search other
> >PCs and even run powerful web applications.
> >Badblue support .php extension.
> >It is possible to retrieve full .php source code.
> >
> >-- [ Description ] --
> >
> >Badblue contains an input validation vulnerability which may lead to
> >download the full source code of .php pages.
> >This is due to a lack of checks for NULL bytes.
> >
> >Exemple:
> >http://myBadBlue.com/test.php%00
> >
> >Note: It is possible too to download .dll file used by BadBlue.
> >
> >Exmeple:
> >http://myBadBlue.com/ext.dll%00
> >
> >-- [ Tested Version ] --
> >
> >BadBlue v1.02 beta for Windows 98, ME and 2000
> >
> >-- [ Discovered by ] --
> >
> >Cabezon Aurelien | [EMAIL PROTECTED]
> >http://www.iSecureLabs.com | French Security portal
> >http://www.isecurelabs.com/advisory/badblue.html
>
>
>--
>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] functions and quotes

2001-08-22 Thread Kurth Bemis

i'm working on a site that is going to require some fancy image switching 
based on URL called...thats part isn't a problem...the problem comes in the 
way that i'm passing the HTML from the function.

My main concern here is speed with the second being workload on the server.

right now the function looks like this.

function tab($section){

$hmenav = "";

$comnav = "";

$curnav = "";

$llsnav = "";

$navspc = "";

if ($section == "root"){
$hmenav = "";
}elseif ($section == "company"){
$comnav = "";
}
print "$navspc$hmenav$comnav$curnav$llsnav";
}

section is passed to the function and the function returns the correct 
tab.  IS there a better and faster way?

~kurth


-- 
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] header()

2001-08-27 Thread Kurth Bemis

At 04:09 PM 8/27/2001, Alex Sofronie wrote:

read the http 1.1 RFC

>Hi all!
>
>Anybody knows where i can find a complete list with headers? A list with
>what i can send with the header() function? And what thy mean?
>Thanks
>
>Alex Sofronie
>[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] equivelant of ASP's #include file?

2001-09-13 Thread Kurth Bemis

At 10:21 AM 9/13/2001, LRW wrote:

I believe that that is server side includes...NOT asp..i could be wrong tho

the PHP equiv is include('')

read the manual -

~kurth

>Hi all. PHP newbie here.
>There's a code that one can use in ASP that will print to the browser the
>contents of an ascii file:
>
>
>
>Can anyone tell me what the PHP equivelant might be?
>
>Thanks!
>Liam
>
>
>
>--
>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] equivelant of ASP's #include file?

2001-09-13 Thread Kurth Bemis

At 10:29 AM 9/13/2001, LRW wrote:

the PHP manual at PHP.net!!

the only "real" manual

~kurth

>Yeah, it was just brought to my attention what I thought was an ASP
>code...is not. =/
>
>As for the "manual," would you be able to recommend any good books for
>beginning PHP?
>
>Thanks!
>Very embarassed,
>Liam
>
>
>Kurth Bemis wrote in message
><[EMAIL PROTECTED]>...
> >At 10:21 AM 9/13/2001, LRW wrote:
> >
> >I believe that that is server side includes...NOT asp..i could be wrong tho
> >
> >the PHP equiv is include('')
> >
> >read the manual -
> >
> >~kurth
> >
> >>Hi all. PHP newbie here.
> >>There's a code that one can use in ASP that will print to the browser the
> >>contents of an ascii file:
> >>
> >>
> >>
> >>Can anyone tell me what the PHP equivelant might be?
> >>
> >>Thanks!
> >>Liam
> >>
> >>
> >>
> >>--
> >>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] Book

2001-09-13 Thread Kurth Bemis

I just got the book entitled "PHP and MySQL web development" by Luke 
Wellington and Luara Thomson.

I wondering how others liked the book...I haven't gotten a chance to look 
at it yet..and I'm wondering if i should :-)

~kurth


-- 
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] hrm..loop trouble

2001-09-19 Thread Kurth Bemis

i'm trying to get a chunk of code to look 5 times then print 
something..then look 5 time more

I really want to loop 5 times (making 5 cells) then print then 
loop 5 more times for 5 cells...until the count is reachedlike if i 
have 22 things i want to have 4 rows of five and one row of two...get what 
i'm trying to do?

heres the code that i have so far

";
while ($myrow = mysql_fetch_array($result)) {
print "Model $myrow[modelnum]";
} //close cell loop
$tempcnt++;
print "";
} //close second while loop
$arraycnt++;
} //close first while loop
?>

look at http://www.strawhillchairs.com/cat/index.php

to see what i'm trying to do


-- 
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_pconnect()

2001-09-19 Thread Kurth Bemis

its barley decent :-)

~kurth

>We have gone to some trouble to provide decent documentation for PHP.
>
>http://www.php.net/manual/en/features.persistent-connections.php
>
>-Rasmus
>
>On Thu, 13 Sep 2001, Christian Dechery wrote:
>
> > what is the real advantage or use of mysql_pconnect() ??
> >
> > can I do transactions between pages or something? Cuz other than that, I
> > don't see the point of having a persistent connection... performance maybe?
> >
> > _
> > . Christian Dechery
> > . . Gaita-L Owner / Web Developer
> > . . http://www.webstyle.com.br
> > . . http://www.tanamesa.com.br
> >
> >
> >
>
>
>--
>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] 2 decimal places

2001-09-19 Thread Kurth Bemis

i'm looking for a php function to add 2 decimal place sto a number.  if the 
number already have one decimal place then one more zero should be added to 
make it two decimal placesanyone know of a quick way to do this?

~kurth


-- 
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] 2 decimal places

2001-09-19 Thread Kurth Bemis

At 10:24 PM 9/19/2001, Jack Dempsey wrote:

Thank You!

>look into printf and number_format
>
>-Original Message-
>From: Kurth Bemis [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, September 19, 2001 10:23 PM
>To: [EMAIL PROTECTED]
>Subject: [PHP] 2 decimal places
>
>
>i'm looking for a php function to add 2 decimal place sto a number.  if the
>number already have one decimal place then one more zero should be added to
>make it two decimal placesanyone know of a quick way to do this?
>
>~kurth
>
>
>--
>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] random record?

2001-09-20 Thread Kurth Bemis

i'm looking to select a random record from a sql table.  I remember seeing 
code for it on the list but fail to find it now.  any help?

~kurth


-- 
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 record?

2001-09-20 Thread Kurth Bemis

At 10:35 AM 9/20/2001, David Otton wrote:

thank you!  I love having access to all this knowledge :-)

~kurth

>On Thu, 20 Sep 2001 10:35:59 -0400, you wrote:
>
> >i'm looking to select a random record from a sql table.  I remember seeing
> >code for it on the list but fail to find it now.  any help?
>
>SELECT columns FROM table ORDER BY RAND() LIMIT 1
>
>djo
>
>
>--
>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] htaccess

2001-02-05 Thread Kurth Bemis

there was a really good .htaccess tutorial posted to the list a while 
back...anyone remember the address?

~kurth


-- 
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] The meaning of myurl.myurl2.com

2001-02-06 Thread Kurth Bemis

At 02:08 PM 2/6/2001, Todd Cary wrote:

nop.. its another server beneath the aristesoftware.com TLD.  for instance 
www.aristesoftware.com refers to the machine named "www" on the domain 
aristesoftware.com.  I'd advise that you read about the structure of the 
Internet and how everything on the internet works.

~kurth

>What is the meaning of a URL that has two periods in it?  For example
>
>http://www.myloc.aristesoftware.com
>
>Where does that take the sufer relative to the root of
>aristesoftware.com?
>
>Todd
>
>--
>Todd Cary
>Ariste Software
>[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] Piping/parsing Apache logs though PHP?

2001-02-13 Thread Kurth Bemis

At 04:17 PM 2/13/2001, Michael McGlothlin wrote:

can i ask why you're doing this - it seems like a waste of resources to me.

~kurth

>I'd like to pipe and parse my Apache logs through PHP into a MySQL db. Is 
>there a way to do this automaticlly for each entry and would that cause a 
>major performance loss to the web server? If not does anyone know the best 
>way to parse the server log? I'd like to do somerthing like move the 
>server log to a temp file, Restart Apache so the logs will keep being 
>written, and parse the log and save it's values in a database but this has 
>the obvious problem of what happens to PHP when Apache is restarted in the 
>manner the Apache logs specify. Any suggestions? Thanks.
>
>
>--
>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]




  1   2   >