Re: [PHP] Re: problem with this regex to remove img tag...

2008-03-16 Thread Ryan A

 Thanks guys!

This (From Tul/Sokolewicz):
$html = preg_replace('#(<[/]?img.*>)#U', '', $html);

worked perfectly! I'm just learning this stuff so its extremly hard for me... i 
have been messing around with PHP for years but rarely even dipped my toes into 
the REGEX part as I think it would be easier for me to learn greek :)

Now that thats over... can anybody recommend a good starting point to learn 
regex in baby steps?

Cheers!
R




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



[PHP] problem with this regex to remove img tag...

2008-03-16 Thread Ryan A
Hey All,

After searching I found this regex to remove img tags from a post, but running 
it is giving me an error, being a total noob with regex i have no idea what the 
heck is wrong heres the whole script as its tiny:

'. " Paul! ";

$html = 
preg_replace('\s]+))?)+\s*|\s*)/?>',
 '', $html);

echo $html;
?>

Any help appreciated.

TIA,
Ryan

 
--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)




  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



[PHP] Digg like app..

2008-02-27 Thread Ryan A
Hello!

Just a quick question... can anyone recommend a php app like digg _that you 
have used or know of well_?
Does not seem too hard to make but if theres something like that already out 
there, wouldnt mind modifying it to my needs.

TIA

Cheers!
Ryan



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



Re: [PHP] Re: AMP installer

2008-02-25 Thread Ryan A
Hey!

Just a thank you to all who replied to this thread, I will be taking your 
suggestion and installing xampp, will post back if I hit any walls.

Thanks again!

Cheers!
R



  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



[PHP] AMP installer

2008-02-21 Thread Ryan A
Hey!

Need to reinstall Apache PHP and MySql for personal development use on my new 
laptop... I usually used phpdev in the past but now I want php5 
compatability... can anyone recommend any such "all in one installer".

And yes, I know its good experience and so on to do each one manually... but 
dont have the time to pure over help docs for hours or days.

Am on Win Vista premium.

Thanks!
Ryan
 
--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)




  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

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



Re: [PHP] Template system in PHP

2008-02-12 Thread Ryan A
Add my vote too for Smarty 

HTH,
-R



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

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



Re: [PHP] Re: Pirate PHP books online?

2007-08-01 Thread Ryan A

> Can't please everyone all of the time. Maybe you
> didn't get the joke :B
> Certainly it had be ROFLMFAO.

Well..., to each his own :)

Have a nice day!
R

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


   

Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/

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



Re: [PHP] Re: Pirate PHP books online?

2007-08-01 Thread Ryan A

> 
> Some light humour:
> 
> http://www.unm.edu/~humanism/socvsjes.htm
> 
> Cheers,
> Rob.


Hey,


I usually find your humour postings pretty funny but
didnt find that in the least bit funny... :(

Cheers!
R

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


   

Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for 
today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

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



Re: [PHP] Re: Pirate PHP books online?

2007-07-31 Thread Ryan A
Hey!

> > Sorry, couldnt resist, no offense meant ;)
> 
> None taken. My beliefs are my beliefs and yours are
> yours

Yep, and what I said was in jest, and you took it in
jest.End of discussion between us :)

Am just replying to anyone else who's reading this,
please lets not fork this into a god discussion too ;)

Cheers!
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


  

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 

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



Re: [PHP] Re: Pirate PHP books online?

2007-07-31 Thread Ryan A

> >>You have a right to your belief, but that doesn't
> make your belief right.
> >
> >This works both ways.
> 
> Oh yeah, well my dad can beat up your dad.

Well, get both your dads together coz my dad can beat
both of them up.

Reasoning, I'm pretty young compared to most of you
guys so my dad is younger than your dads plus i'll
secretly give him a baseball bat... ;)

Cheers!
R

P.S  no guns allowed in this discussion

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


  

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 

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



Re: [PHP] Re: Pirate PHP books online?

2007-07-31 Thread Ryan A

> > Yes, but that's why it's called faith.
> 
> My point was that it makes no sense to try and prove
> or demonstrate 
> anything using God because the existance of God
> itself cannot be proven 
> or demonstrated.

Stut,
 
There will be a demonstration of god's existance  in a
little while, please look up when you are burning and
I am sipping nector.






Sorry, couldnt resist, no offense meant ;)

Cheers!
R

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


  

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 

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



Re: [PHP] Re: Pirate PHP books online?

2007-07-31 Thread Ryan A

--- Crayon Shin Chan <[EMAIL PROTECTED]>
wrote:

> On Monday 30 July 2007 23:49, tedd wrote:
> 
> > The opposite of BUYING is STEALING
> 
> I think you meant SELLING.
> 

Actually to make things easier just lets add a "NOT"

eg:
The opposite of BUYING is NOT BUYING


Ok, I admit it, am bored and came back to the list
after 3 days and see this thread still going strong...
had to atleast give it a bump ;)

Cheers!
R

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

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



Re: [PHP] Rules of Engagement

2007-07-31 Thread Ryan A

> 
> PS
> I never have figured out why one would want to
> notify a zillion
> strangers that you're on vacation...
> 
> I mean, duh, talk about a security risk...
> 
> "Hey, stranger, I'm on vacation!!!  Nice big house
> of computer geek
> full of stuff sitting unwatched!!!"
> 
> I'm really not sure who thought this was a Good
> Idea...
 

SH! Dont let the cat outa the bag, he has some
good stuff but not a lot of it...so we cant all share.
You also wont belive the crazy stuff he has hanging on
the walls... and the room where i am typing this out
is way too dark... I'll actually be doing him a favour
by taking this comp althogh the cheap sod does not
have a flatscreen... so here goes my gym workout...
the best thing is... whoops, gotto cut this short...
his phones ringing... yippee! He left is mobile back!

Will continue this from my house... 

Cheers!
R

P.S Anyone wanna bid on a Nokia N73? going cheap...
 I dont have the box or the charger but its in pretty
good condition.

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


   

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

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



Re: [PHP] Pirate PHP books online?

2007-07-27 Thread Ryan A
Hey,

> They simply jack up the price for honest folk.
> 
> You're only stealing, yes, Larry, actual money :-),
> from hard-working
> individuals who pay MORE for their legit copy when
> you pirate.
> 
> That is the end effect.
> 
> That is why it really IS theft.

Since this has been done to death in the last few days
about piracy actually being theft, wont say much
except, I for one; disagree.

Cheers!
R

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

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



RE: Re[2]: [PHP] Pirate PHP books online? OT

2007-07-25 Thread Ryan A
Hey,

> I don't use "Tedd" anymore, because that was my
> previous life when I 
> used to have purpose. 

For what its worth, I do think your life has a purpose
and you are living it, I for one would be quite sad if
I didnt see any more postings from you on this list
and would miss you... as would quite a few others on
this list.
Infact everytime i see a shopping cart thread I think
of you ;) and wouldnt hesitate to recommend you for
the job.

I am sure your family and friends would be quite upset
if they heard the above sentance as you (I am sure)
have quite a purpose in their lives.

You told me before life dealt you a bad card, but I
think you have bounced back quite a bit from when it
happened, things may never be exactly the same as
before that card... but I seriously doubt that you
have not impacted others after that happened.

HTH... just my humble opinion.

Cheers!
R

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


   

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

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



Re: Re[2]: [PHP] Pirate PHP books online?

2007-07-25 Thread Ryan A

--- Robert Cummings <[EMAIL PROTECTED]> wrote:

> On Tue, 2007-07-24 at 21:09 -0400, tedd wrote:
> >
> > Sorry, I've been up for 48 hours -- it's a boy, 8
> lb 9 oz -- time to 
> > get some sleep. Maybe tomorrow my son will finally
> decide on a name 
> > -- the ninth grand-kid.  Maybe he'll name him
> Rasmus. God, I hope 
> > not.   :-)

Congrats! I hope the kid has the best of health!

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


   

Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

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



Re: Re[2]: [PHP] Pirate PHP books online?

2007-07-25 Thread Ryan A

--- Dotan Cohen <[EMAIL PROTECTED]> wrote:

> On 24/07/07, Ryan A <[EMAIL PROTECTED]> wrote:
> >
> > > Php Fiction? Rasmus's List? Codin' in the Rain?
> >
> > LOL! That was good! Thanks needed that!
> >
> >
> 
> Of course, one should not forgot Debbie Does
> DocType...
> 

Ok... I get it, I'm a geek for laughing out loud at that..

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


   

Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

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



Re: Re[2]: [PHP] Pirate PHP books online?

2007-07-24 Thread Ryan A

> Php Fiction? Rasmus's List? Codin' in the Rain?

LOL! That was good! Thanks needed that!

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
   
-
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. 

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Ryan A
Hey,


>Instead of clip tags, I recommend that you configure your mail client
>to prepend a greater than sign to quotes. It's rather customary, if
>not standard.

Sorry about that, its driving me crazy too. I have to manually do it if I want 
it  (like above). It used to work before... then suddenly it just does not... 
anybody have any idea which setting I should tinker with in yahoo, please give 
me a shout.

> > by the way, check out the digital copies of harry potter if you're into 
> > that...(i'm not) how many days has it been since the release?

> They were online _before_ you could buy the book.
Ouch, thats gotto hurt. Didnt know that..thanks for the fyi, like I said 
before, HP is not my sort of thing.

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
   
-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 

Re: [PHP] Pirate PHP books online?

2007-07-23 Thread Ryan A
Hey,


The same would happen if I did everything myself. Within days of 
self-publishing a eBook, it would be on a pirate site. At least with a 
publisher, legal copies do get sold, and I do get a return on the time 
invested, even though it's not as much as I would like.

Also depends on how popular your site is...
coz for example if your site is really popular... say 30k uniques a day,  then 
making an ebook would be great as even though it would get pirated (by the way, 
check out the digital copies of harry potter if you're into that...(i'm not) 
how many days has it been since the release?)
And as for not getting as much as you would like... thats just human nature, 
whatever you get wouldnt really be enough unless its some really crazy number.


Unfortunately, an eBook is very easy for a pirate to rip off. The danger with 
piracy is that authors will be discouraged

 from writing, and in the end everyone will be worse off.
 Discouraged...yes, stop writing...no.
Coz looking at history... we still have movies and music dont we?
In both "normal" and disc form.

Lets face it, however much time and effort goes into getting a book from the 
authors first copy to a proper book cant compare (in $$) to what it takes to 
get a movie from script to screen.



> Disagree again, if Adam uploads or not, there is a whole bunch of
 stuff
> out there that he cant hope to download in a lifetime. 

It was never mentioned *when* Adam uploaded his file, it could've been 

when the site first started out and uploads then were lacking.



Time is irrelevant, because unless the site is Adam's site, or he is in 
some way connected to it... he can go to X number of sites and get more files
than he could possibly see in a lifetime.

 


Imagine that you're stealing a software from best buy or just walking 
out with tons of unpaid books from Barnes and noble. Piracy should be 
considered the same thing. If someone can't afford expensive corporate 
software I believe there are a lot of other similar open source
 software 
that can do just as good and useful.


The comparasion of stealing from a shop and taking digitally has been already 
done to death on this very thread so I'm not going to go there... start around 
july 20 in the archives if you're curious.
As to your second point of when someone cant afford the software they should 
just switch to a similar one... from what i gather from my friends, they do it 
for the following reasons:
1. For the thrill, they are getting away with it
2. They are defying and hence hitting back at one of the "big boys"...like 
M$,Ad0be etc
3. They are not making any comprimises...getting exactly what they want.

The question does arise of is it morally right...? but then again is it morally 
right for M$ / Ad0be to sell their software for USD 499 in the U.S and 499 
pounds in the U.K?

Or for a CD to sell for $14.99 in the US and the same CD to sell for 14.99 quid 
in the UK?

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
   
-
Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out. 

Re: [PHP] Pirate PHP books online?

2007-07-22 Thread Ryan A
Hey,


Piracy, unauthorized copying, call it what you will, involves a chain. 

Perhaps if the poor saps who make the unauthorized copies realized just
how they're being exploited, things might change. 


Sorry, but disagree with you here, the "poor saps" know the site owners are 
making money but just dont give a crap... the actual reason they choose to 
upload and share can probably start another thread thats longer than this one...
but IMHO they know how it works and just want to share. They know they cant 
make a 
cent off it coz if the site owners started to pay them... theres a money trail 
that
can be picked up/traced and they get into trouble...
This way they upload if they want to... and downloads are always there..



 
Not exactly, Adam's payback is that he hopes others do the same, so where he 
uploaded one item, he is able to download hundreds and thousands of 
items that others have uploaded. 

Disagree again, if Adam uploads or not, there is a whole bunch of stuff out 
there that he cant hope to download in a lifetime. Even if you are "member" of 
a torrent site, you dont have to upload to download files once you finish 
your download you can continue to share (seed) the file to others (if you need 
to mantain your "up/down ratio"). Not everyone who downloads uploads new files..

Like I said above, the actual motivation for Adam to upload a new file can  
feed a whole new looongg thread...so I wont even go there.

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
   
-
Looking for a deal? Find great prices on flights and hotels with Yahoo! 
FareChase.

Re: [PHP] Pirate PHP books online?

2007-07-22 Thread Ryan A


 However, don't be under any illusion that the pirates are 
good-hearted philanthropists taking from the rich and giving to the 
poor. The best known pirate site sells advertising - a small banner 
reportedly costs $5,000 a month, and a larger one $10,000 a month.


Actually, most pirates ARE taking from the rich and giving to the poor (or the 
ones who make the excuses for not buying or unable to buy as in this 
situatation)... its the site owners who _help_ in the piracy that make money.

Let me give you an example, "Adam" buys your book/cd/ or a video, "rips" it 
into digital format and uploads it onto...say... thepiratebay (since thats 
where you found your book's links)
Adam does not make a cent by doing so, and he is actually the _most_ important 
link in the chain, coz if he does not share... the site offering the .torrent 
links cant offer the book, hence no visitors, hence no advertising..

The torrent sites, in the excuse of bandwidth and maintainence charges either 
ask for "donations" or take up advertising... and in the case of the pirate 
bay, if you take a step back from the whole moral issues, it does make sense as 
they have hundreds of live torrents at any given time (and i am not taking 
about small size ebooks movies, DVDs, games... we are talking gigs per 
file..not mb anymore) even though the actual files are not going directly 
through their servers with over 3-4mil visitors _per day_ and tracking those 
hundreds of torrents and forums... thats gotto take substantial computing power 
and costs (*not that i am taking up for them*)
In a sick sort of way, they are acting like your publisher except they are not 
giving the OP (Adam) a cent for "providing" the material.

How many sites do you know of that have 3-4 mil visitors per day and does not 
ask for a huge pot of $$ for advertising?

Another example:
In India, China, Dubai and a whole host of other countries & cities, people 
download movies (posted by guys like Adam above) and then make illegal copies 
on CDs and DVDs etc and sell them cheap pretty much on the roads... here again 
the people who originally posted the stuff dont get a cent...the ones who make 
the CDs are the ones who make the money.

Just wanted to clear up the misconception that the main people who start 
copying (RIAA/MPAA slang "pirates")  are making money. So the real rogues... or 
pirates... are the siteowners, but when the site itself is named "thepiratebay" 
its not exactly like they dont already know it.

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
   
-
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.

Re: [PHP] Pirate PHP books online?

2007-07-20 Thread Ryan A
Hey,

Sorry your work was stolen but dont hold your breath waiting for that site to 
close down. I have no idea who your publishers are but I _reay_ doubt they 
have more clout than M$, the MPAA, RIAA, SONY, Pixar etc coz they went after 
thepiratebay and looked like fools:

http://thepiratebay.org/legal

I *DONT* wish to sound mean but the fact is, your work is going to continue to 
be stolen and other than complain, theres little you can do about it...so try 
to ignore it and dont let something like this stop you from writing again as i 
am sure there are many people out there that would rather get their copy via 
legal means, enough to support you anyway.

HTH.

Cheers!
R


David Powers <[EMAIL PROTECTED]> wrote: Crayon Shin Chan wrote:
> What makes you think any of the authors are subscribed to this list?

I am subscribed to this list, and I'm disgusted that somebody posted the 
URL to the pirate site. I see that more than 2,000 copies of my "PHP 
Solutions: Dynamic Web Design Made Easy" have been downloaded.

Although eBooks are cheaper than the printed version, the royalties to 
an author are much higher (no printing, storage, or delivery costs). I'm 
not starving, but the loss in revenue is far from trivial, and reduces 
the incentive to continue to write.

I have reported the site to my publisher. Even if it's closed down, my 
work has already been stolen.

David Powers

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




--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
   
-
Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection. 

Re: [PHP] Flash / Ajax / PHP

2007-07-01 Thread Ryan A
> but the image, when updated, is still unstable on IE while still
> _perfectly_ stable on FireFox. 


This might be due to cacheing on IE which anyone who has messed with php 
online for a little time will be familier with. IE is a bitch at times... just 
likes the company that makes the software ;)

Sometimes this gets solved with spitting out some headers telling IE not to 
cache while others have (dirty) solved it by adding a hash or something else 
unique to the page or the image...

for example:
php_script.php?get_img=img_name&random=something_random_here


HTH.

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
   
-
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. 

Re: [PHP] shuffle or mt_rand

2007-06-29 Thread Ryan A
Just did a quick benchmark for 10.000 hands (making a full deck on
your code, 23.5 players):
Microtime difference:
Ryan's code:15.725826978683
Tijnema's code:0.40006709098816

Unique decks out of 1:
Ryan's code:1
Tijnema's code:1

When making a full deck my code is 40 times faster, and a lot less
memory intensive. And as you can see, for both all 1 decks are
unique, so both are random :)

But, also when generating cards for only 4 players, my code is twice
as fast as yours, and both generate still 1 random decks:

Microtime difference:
Ryan's code:0.82403707504272
Tijnema's code:0.40426802635193

Unique decks out of 1:
Ryan's code:1
Tijnema's code:1


>>>
Hey Tijnema,
 
 I really had no doubt about your code being faster and cleaner... (as i 
mentioned in my original post) but can you send me the benchmarking scripts 
that you used so i may test them a bit more?
 
 Thanks!
 Ryan




--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

[PHP] shuffle or mt_rand

2007-06-29 Thread Ryan A
Hey,

Have a quick question about which is better to get real random values, shuffle 
or mt_rand.

I am trying to shuffle a deck of cards and reading another thread I saw that 
after a couple of thousand random generations patterns have been observed using 
rand()... so its better to use mt_rand().

After i wrote a function (copied below) to get real random cards from a 52 
deck, Tijnema from the list kindly sent me a piece of code thats 
simpler/faster/should or would use less processing and does exactly what my 
function does except it uses shuffle()...

Any idea which would be better to constantly generate proper random numbers for 
a long period of time?


= My original code with mt_rand() 

function load_cards($no_of_players)
{
$i=0;
$cards=array();

while($i<1)
{


if(empty($cards[0]))
{
$cards[]=mt_rand(1,52);
}
else
{
$no_of_cards_already_in_array=count($cards);
$cards_to_be_dealt=$no_of_players * 2; 
$cards_to_be_dealt=$cards_to_be_dealt + 5;

if($no_of_cards_already_in_array < $cards_to_be_dealt)
{
$new_generated_card=mt_rand(1,52);

if(!in_array($new_generated_card,$cards))
{
$cards[]=$new_generated_card;
}
}else
{
// end the loop
$i=2;
break; // just in case the above does not break outa the loop.
}

}
}
return $cards;
}


== Contributed code ===
// only generating 5 numbers here
$deck=array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52);
shuffle($deck);


for($i=0; $i<5; $i++)
{
$card = array_pop($deck);
echo $card."";
}

==


Any comments and suggestions are also welcome.

Thanks!
Ryan





--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
   
-
Need a vacation? Get great deals to amazing places on Yahoo! Travel. 

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-29 Thread Ryan A
Hey Nathan,

Cool! Thanks for taking the time to find and fix that error and your 
suggestions below...
Will give you a buzz if I run into a programming stonewall.

Cheers!
R

Nathan Nobbe <[EMAIL PROTECTED]> wrote: Ryan,

if you want to port the java code to php it wouldnt be very difficult since
this code doesnt rely heavily on much besides core language constructs.
really you could just save it as a php file and start making changes where
needed; it wouldnt take too long to port.
as for the compilation issue i took a look at this myself and discovered
some broken logic in the flush method.

 for (int i=0; i=  0 && sorted[i] <= 12) suitA++;
  else if (sorted[i] >= 13 && sorted[i] <= 25) suit

i converted this to

for (int i=0; i < fv.length; i++) {
  if(i >=  0 && sorted[i] <= 12) suitA++;

though im not sure if that is correct (spent about 5 minutes on it) a quick
guess tells me it should be.
The HandRanker class is dependent upon another proprietary class
HandRankwhich is burried in a link (not in blue text) on the page you
provided us.
There are actually links in the statement.
  This HandRanker
class is used to
calculate the rank of a poker hand. It uses the
HandRank  class to
store the rank of the poker hand.
So if you just make 2 files
HandRanker.java
HandRank.java
Place the respective class definitions in those files (put them in the same
directory for simplicity).
Apply the patch i provided above to HandRanker.java (lines 123, 124)
 then issue (at command prompt)
javac HandRanker.java

and you should have the compiled code :)

-nathan



On 6/27/07, Tijnema  wrote:
>
> On 6/27/07, Stephen  wrote:
> > Tijnema  wrote:
> > Well, I find this a very interesting thing ;)
> >
> > I have played quite a lot poker, and I still play it sometimes, and
> > this doesn't seems too hard for me :)
> >
> > My approach would be this:
> > 1) Deal cards, rand(1,13) for the numbers(1-> Ace, 11->Jack,
> > 12->Queen, 13->King), and rand (1,4) for color(1-> spades, 2-> clubs,
> > 3-> diamonds, 4->hearts)
> > 2) Betting, with some buttons and AJAX to update pot etc.
> > 3) Turn
> > 4) Step 2
> > 5) River
> > 6) Step 2
> > 7) Looping through all players and check what their highest
> > combination is, take the 2 best combinations, and see if they are
> > equal.If not, the highest wins of course, but if they are equal, check
> > if number 3 has also same combination, and if so, check number 4, ...
> > Now you have some players with same combination, and you need to sort
> > the guys by highest cards in combination. If one has higher cards than
> > all others, he won. If not, get only those guys that have the same
> > highest cards in the combination, and check those guys for their
> > kicker (only for Pair, Two pair, Three of a Kind, Four of a Kind). If
> > their kicker is equal, or there combination isn't the one I noted,
> > it's a split pot :)
> >
> > Not too hard to program right?
> >
> > Tijnema
> >
> > You need to add logic to ensure that the same card is not dealt twice!
> > An initial routine to shuffle the deck is the approach that I would
> take.
> >
> > Stephen
>
> Yes, I fixed that in a second reply ;)
>
> Tijnema
>
> --
> Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
   
-
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-29 Thread Ryan A
Thanks!

Dont know if it will help but its nice of you to share becausei always feel 
good reading someone elses ways of doing things. Might help if I get bogged 
down somewhere.

Cheers!
R

Guillaume Theoret <[EMAIL PROTECTED]> wrote: This isn't exactly what was asked 
for but when I TA'd the principles
of programming languages course, an assignment I gave was to write a
simple poker game in Haskell. If anyone's interested here's the sample
solution I gave:

http://smokinn.tengun.net/comp348/poker.hs

It's all console based of course. You'll need either ghc or hugs
installed to run it.

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




--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

RE: [PHP] Re: Swear filter ideas

2007-06-29 Thread Ryan A
> > Humans are such a strange bunch :)


> That's why I live with computers and cats -




No fucking cats! Kill all of them...keep only dogs and whales (to protect them)
The only cat I like is a pussy.


Damn... used up a bit of my swear words quota of the day...


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
   
-
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Ryan A


Paul Scott <[EMAIL PROTECTED]> wrote: 
On Wed, 2007-06-27 at 14:17 +0200, Tijnema wrote:
> Not too hard to program right?

As long as you keep on assuming that you are playing with infinite decks
of cards, and not marking cards as dealt as you deal.

--Paul


Hey Paul,

Actually, I have already finished that part...

I am using a standard deck of 52 cards and marking off each card as i deal it 
so theres no chance for example to get Ks Ks Ah Ah etc

I wrote the address before:
webbmatte.se/cards.php

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
The fish are biting.
 Get more visitors on your site using Yahoo! Search Marketing.

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Ryan A
Hey all!

 So you expect PHP ppl to do your job and test a JAVA class to tell u
if it's worth porting it to php?
Nice thoughts...
Andy... why be a moron?
I just wanted someone with java knowledge to have a look at the code and see if 
it ran properly.. something that should take an experienced java person less 
than 5 minutes of their time.

I have been on this list for years, and since i have not seen you very often 
until lately I will assume you have kind of recently joined... my point is, in 
the years that i have been on and off the list I have seen time and again 
people willing to help by sparing few minutes (heck in some instances even a 
few hours trying to help newbies)...  if you dont want to help, dont reply to 
the thread instead of acting like a moron.


Tijnema, thanks for giving it a go...
Sorry it didnt compile,with my limited (and old) rusty knowledge of java 1.1 i 
couldnt make out too much and i dont have any java server to run this on to 
check it.
I pretty much left Java years back once i started using php I used to use 
servlets and JSPs back then.

Actually, I'm only interested in the logic... it does present quite a challenge 
to find out the best hand (and second best etc) from 2 hole cards (into x 
players) and 5 community cards.

I did create a little script to deal the cards (http://webbmatte.se/cards.php 
if you would like to see the code just tell me)
next i would just like to print out which is the strongest etc.

Any ideas or suggestions are most welcome.

Thanks!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
   
-
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. 

[PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Ryan A
Hey all!

Was looking at trying some stuff with php and p oker (texas hold'em).

After searching the net for some clues as to how i can do this, i came accross 
the class on the php classes site (but that codes to bruteforce-ish) so 
continued looking and came accross some valuable suggestions on how to do 
this... just as i was about to start i found a dude who wrote something like 
this in Java... which works pretty good according to him ("tried and well 
tested" to quote him)

Can someone with a java background mind testing his class? and then hopefully 
help me convert his script to php?

The address to his java class:

http://www.greenbridge.net/index.php/p_handranker.php

What do you think?

Comments, suggestions and links are most welcome!

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.

[PHP] Automatic mail forwarding (using cpanel) --------------------------------------------------> (Maybe a bit 0T)

2007-06-16 Thread Ryan A
Hey!
   
  I have a pal who has a pretty interesting domain, he wants to offer emails @ 
his_domain_name.com (example) which gets forwarded to thier normal email 
address.
   
  eg:
  i make an account at x.com with username genphp and give my real email 
address of genphp AT yahoo.com
   
  all email sent to [EMAIL PROTECTED] comes to my real email address.
   
  This is already possible via cpanel but rather than enter each address by 
hand in cpanel... is there anyway to do this via a php script so that as the 
user creates a userid and specifies his real address the forward is created?
   
  Thanks in advance!
   
  Cheers!
  R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
   
-
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. 

Re: [PHP] Re: Search function

2007-05-11 Thread Ryan A
Thanks for your input guys, will go through the links you gave me and get back 
to ya if I run into any problems.

Have a nice weekend!

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
   
-
Get the free Yahoo! toolbar and rest assured with the added security of spyware 
protection. 

[PHP] Search function

2007-05-09 Thread Ryan A
Hey!

.A little background:
We have a site that has already been made.. a couple of hundred pages displayed 
via SMARTY templates, the site's in Swedish.

The navigation and other parts except for the center is taken care of by the 
templates and other scripts... the center main text is taken from the 
database(mySql) based on $page_id...its in a MySql TEXT field and has all the 
html etc that will be displayed in the center of the page.

End of background..

Now they want to add a "search function" to the site... a simpe textbox where a 
user enters a word or sentance and they get 20 results per page... with a "x.xx 
% closest to your query"  can anybody give me basic pointers on where to start?
Any links/software or articles too would be appreciated...

(I can do the pagentation etc... just the search logic...)

Thanks!
R





--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
   
-
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.

Re: [PHP] Array help

2007-03-04 Thread Ryan A
Hey!

Thanks Stut, Tijnema.

I'll test out the ideas you guys contributed to me.. after I finish a working 
copy will ask you guys to give it a look over ;)

@Stut: The list is not in alphabetical order.. and 2, I have no idea of the 
size of the file (for the regex suggestion) but I am guessing it can be quite 
big with just 5k members. I like the FGETs idea you and Tijnema gave me... I 
think I'll go with that.

Am still working on a few other bits and pieces..

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.

Re: [PHP] Array help

2007-03-04 Thread Ryan A
Hey Stut,
Thanks for replying.

Will be making two versions, one with a DB and one to work with the file for 
the old school folks who dont want to convert their file and use "new fangled" 
databases... some people its easier to just not argue or try to convince...
and however stupid someone's opinion is, they are still entitled to it...esp 
when you are thinking of (maybe) selling a future product it does not make much 
sense telling them they are stupid :-))

"If you *need* to stick to using the file, are you looking for a 
particular username or just want to load the whole list?"

I'm looking to match a login (user:pass)... so I would need to load the whole 
list right? or do you have an alternative idea? am totally open to suggestions 
and alternatives at this point... just looking for the easiest way in terms of 
server load and processing..which is why I am trying to avoid a for() or 
while() loop.

Thanks!
Ryan

Stut <[EMAIL PROTECTED]> wrote: Ryan A wrote:
> I have a login/password file with these kind of  values:
> user1:pass1
> user2:pass2
> cat:dog
> love:hate
> 
> I have  opened the file and put it into an array with this code:
> (thanks to richard lynch from this list for idea and code snippets)
> 
> $file =  file_get_contents('a.htpasswd');
> preg_match_all('/(.*):(.*)$/msU', $file,  $htpassd);
> 
> but how do I get it into this format  :
> 
> $users['username'] = 'password'
> 
> without using a loop? I was  thinking something like array_flip or 
> array_splice??
> (The reason I dont want to use a loop (for,while) is there can be thousands 
> of user:pass combos in the files and thousands of logins and attempted logins 
> a day)

My advice would be to swap to using a database. With that number of 
users it's going to give you a huge boost in performance. SQLite would do.

If you *need* to stick to using the file, are you looking for a 
particular username or just want to load the whole list?

-Stut



--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Now that's room service! Choose from over 150,000 hotels 
in 45,000 destinations on Yahoo! Travel to find your fit.

[PHP] Array help

2007-03-04 Thread Ryan A
Hi!

I have a login/password file with these kind of  values:
user1:pass1
user2:pass2
cat:dog
love:hate

I have  opened the file and put it into an array with this code:
(thanks to richard lynch from this list for idea and code snippets)

$file =  file_get_contents('a.htpasswd');
preg_match_all('/(.*):(.*)$/msU', $file,  $htpassd);

but how do I get it into this format  :

$users['username'] = 'password'

without using a loop? I was  thinking something like array_flip or 
array_splice??
(The reason I dont want to use a loop (for,while) is there can be thousands of 
user:pass combos in the files and thousands of logins and attempted logins a 
day)

Suggestions/comments/links too are most welcome.

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Access over 1 million songs - Yahoo! Music Unlimited.

Re: [PHP] Quick question, a little 0T i guess... BASIC_AUTH or forms

2007-03-04 Thread Ryan A
Hi guys,

Thank you for your responses and your input.

"At the end of the day the best way to secure data being transferred from 
client to server is to use SSL."

THAT I know ;) was just wondering from a normal http page... and you answered 
that question perfectly...so thanks again!

Would someone mind sending me that javascript in question, I dont think I will 
be using it but I would like to have a look at it.

Cheers!
R


Stut <[EMAIL PROTECTED]> wrote: I think you meant to send this to the OP not 
me. And please also include 
the list in your replies.

Tijnema ! wrote:
> The best way is using a HTML form, and then adding a javascript ,that 
> runs before submitting, that encrypts the password with md5.

This offers little more security than plain text. Your "encryption" 
mechanism is visible to the "bad guys", so all you've done is added an 
extra no-brainer hurdle for them to get over.

At the end of the day the best way to secure data being transferred from 
client to server is to use SSL.

-Stut

> On 3/4/07, *Stut* > wrote:
> 
> Ryan A wrote:
>  > Quick question, one of our sites already uses BASIC_AUTH to take
> the username and pass from clients, we were thinking of instead
> doing it via a login form (so we can also add a CAPTCHA later...if
> needed)
>  >
>  > what I would like to know is, by using a login form instead of a
> BASIC_AUTH are we comprimising security in any way (for example if
> someone is using a "sniffer") or does BASIC_AUTH have some kind of
> extra inbuilt security that forms dont have that I am not aware of?
> 
> Basic authentication offers no more security than a form - the login
> details are sent as plain text using both methods.
> 
> -Stut
> 
> --
> 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




--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Don't get soaked.  Take a quick peak at the forecast 
 with theYahoo! Search weather shortcut.

[PHP] Quick question, a little 0T i guess... BASIC_AUTH or forms

2007-03-04 Thread Ryan A
Hey all!

Quick question, one of our sites already uses BASIC_AUTH to take the username 
and pass from clients, we were thinking of instead doing it via a login form 
(so we can also add a CAPTCHA later...if needed)

what I would like to know is, by using a login form instead of a BASIC_AUTH are 
we comprimising security in any way (for example if someone is using a 
"sniffer") or does BASIC_AUTH have some kind of extra inbuilt security that 
forms dont have that I am not aware of?


Thanks!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

[PHP] Matching logins to an old htpasswd file

2007-03-03 Thread Ryan A
Hey,
I have a old htpasswd file with a lot of logins in this format:

test:dGRkPurkuWmW2 (test:test)
test1:dGlAW3zdxeAG2 (test1:test1)

now I have a login form what takes a POST "user" and a POST "pw"... but if you 
look at my above first example login.. the username and pass are "test:test" 
but it gets encoded into "test:dGRkPurkuWmW2" so how do I try to match the data 
I get from the POST "pw" field when that will come in as normal text?


Any example code, links (even a RTFM+URL) would be appreciated.

Thanks!
Ryan


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Don't get soaked.  Take a quick peak at the forecast 
 with theYahoo! Search weather shortcut.

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-22 Thread Ryan A
Win2000pro and FF works fine... IE6.0 does not work...

Hope that helps.

Cheers!
R

Chris Ditty <[EMAIL PROTECTED]> wrote: Works fine on FF/XP

Looks nice btw.

(sorry for the dup post Nemeth)

On 2/21/07, Németh Zoltán  wrote:
> works on linux/firefox and xp/ie7
>
> greets
> Zoltán Németh
>
> 2007. 02. 21, szerda keltezéssel 12.12-kor Scott Gunn ezt írta:
> > All,
> >
> > http://www.thebigspider.co.uk/test/menu.html
> >
> > I'm going to write some php code which will build this menu from an XML
> > file.
> >
> > Before I do, I want to know what sort of browser compatibility it has? could
> > you guys test it and let me know if it worked ok and looked like the preview
> > picture?
> >
> > If your on IE7 or Firefox2 and it works please don't email back as I know
> > these work fine.
> >
> > Best Regards
> > Scott.
> >
>
> --
> 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




--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  

Re: [PHP] Re: JS prompt -> php [become 0T]

2007-02-10 Thread Ryan A
Hey Colin,
Thanks for replying.

I guess this has sidelined from php a bit now... so have added a OT in the 
subject line.

Anyway, this is how I get the values from a select or a text box:

var selectBox = document.forms[0].lang;user_input = 
selectBox.options[selectBox.selectedIndex].value;
var textBox   = document.forms[0].sec_name;user_section = textBox.value;

kindly show me how to get the value from a javascript prompt box, 
the force is with me but the JS DOM is from the dark side :D

Cheers!
R

Colin Guthrie <[EMAIL PROTECTED]> wrote: Ryan A wrote:
> Quick question (and hopefully a simple one)
> 
> I have a link on a page, when the client clicks that link it should
> show them a JS prompt and ask for their name (so far I have done
> this)
> 
> When they write their name, I want that data to be sent to my php
> script via AJAX (yes?) so the page does not reload or anything
> (actually, how can i reload the page to reflect the change?)
> 
> I have googled but I see whole ajax classes and what not, I dont know
> if I am using the correct keywords or what...  you would happen to
> have a working piece of code that you could share with me.. would
> you?

You don't need any Ajax here.

All you need is to take the value entered into the js box and use normal
javascript commands to store this value in a cookie. This cookie will be
sent automatically to your PHP script the next time a user requests a
page from your server.

If you want to provide immediate visual feedback, you can use standard
DOM methods to insert the users name into the page where you want.

No need for any fancy Web 2.0 nonsense here. move along, nothing to
see... ;)

Disclaimer: this may not work for your needs but I cannot see why not
from the info given :)

Col.

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




--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Everyone is raving about the all-new Yahoo! Mail beta.

Re: [PHP] JS prompt -> php

2007-02-08 Thread Ryan A
Hey Tedd,
Thanks for replying.

The problem is, I know how to do this via a drop down select box and a text 
box... I want to do this via a javascript prompt, which is where I am getting 
stumped.

Cheers!
R

tedd <[EMAIL PROTECTED]> wrote: At 5:11 AM -0800 2/7/07, Ryan A wrote:
>Hey all!
>
>Quick question (and hopefully a simple one)
>
>I have a link on a page, when the client clicks that link it should 
>show them a JS prompt and ask for their name (so far I have done 
>this)
>
>When they write their name, I want that data to be sent to my php 
>script via AJAX (yes?) so the page does not reload or anything 
>(actually, how can i reload the page to reflect the change?)
>
>I have googled but I see whole ajax classes and what not, I dont 
>know if I am using the correct keywords or what...  you would happen 
>to have a working piece of code that you could share with me.. would 
>you?
>
>Thanks!
>Ryan

Ryan:

Your terminology is clear enough and you're on the right path, but 
it's not simple.

The way it works is that you have a javascript ajax file, which is 
loaded by your main page and creates a request object. When the user 
clicks something, it receives a send request, and handles the 
response, which in turn updates the page via the DOM without a 
refresh. Clear?

Keep looking at ajax.

Cheers,

tedd

-- 
---
http://sperling.com  http://ancientstones.com  http://earthstones.com



--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Sucker-punch spam with award-winning protection.
 Try the free Yahoo! Mail Beta.

[PHP] JS prompt -> php

2007-02-07 Thread Ryan A
Hey all!

Quick question (and hopefully a simple one)

I have a link on a page, when the client clicks that link it should show them a 
JS prompt and ask for their name (so far I have done this)

When they write their name, I want that data to be sent to my php script via 
AJAX (yes?) so the page does not reload or anything (actually, how can i 
reload the page to reflect the change?)

I have googled but I see whole ajax classes and what not, I dont know if I am 
using the correct keywords or what...  you would happen to have a working piece 
of code that you could share with me.. would you?

Thanks!
Ryan


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Expecting? Get great news right away with email Auto-Check.
Try the Yahoo! Mail Beta.

Re: [PHP] Reading from the htpasswd file

2007-02-03 Thread Ryan A
Hey!

(Forgive me for top posting but in this case I think it makes more sense)

Thanks for the tips, you've given me some excellent starting points so will 
start experimenting from there and come back when I start running into problems 
(which I am sure I will as I still dont know RegEx so preg_* statements leave 
me pretty much clueless... I know, I should learn)

If you (or anybody) wants to chip in any additional advise snippets, please go 
ahead.

Cheers!
R

Richard Lynch <[EMAIL PROTECTED]> wrote: On Fri, February 2, 2007 8:17 am, Ryan 
A wrote:
> I have a pal who uses a htpasswd file for access to his site..
>
> rather than using basic_auth he wants to change it to form based
> _without_ a DB (ie user comes to his site and enters the username and
> password into a form, then submits it to the php script, the php
> script reads the htpasswd file and accordingly grants access or denies
> access if the login does not match)
>
> Am not so sure about this but before i can make an arguement against
> this, I should know something myself so my questions to you more
> knowledgeable guys are:
> 1. Is it such a good idea switching?

If he thinks the Basic Auth popup is "icky" then go ahead and get rid
of it.  No biggie.

There's no great advantage to Basic Auth, and, actually, having the
authentication done in PHP can be beneficial if you want to start
doing some custom logging and user profile modeling of logins.

It's certainly possible to get access to that, or to integrate that
after the HTTP Basic Auth has been done, but it can be "cleaner" code
to have it all as one conceptual mess in PHP, instead of a mess in
HTTP Auth Apache and another in PHP.

> 2.Wont the basic_auth pop up anyway even after entering these values
> into the form?

Not unless you send the headers out, either with PHP, or with
.htaccess (or httpd.conf) settings to do HTTP Basic Authentication

> 3. If having a hundreds (or even thousands) of user:pass combinations
> in the htpasswd file wont it make logging in longer and more
> processor intensive to search all of the combinations till you find
> (or not find) the login?

Not really.
$file = file_get_contents('/full/path/to/htpasswd');
preg_match_all('/(.*):(.*)$/msU', $file, $htpassd);
//play games with array_flip or array_slice here to get
//an associative array of $users['username'] = 'password';
//Your login check is then a simple array reference

> Did some small code experiments before coming here asking for
> advise...
> can send you the code I have written if need be...but what i have
> found out is with small amounts of data i see no difference in speed
> of loggin in using the htpasswd file as the "login database"..

Whether reading the file or the DB is faster depends totally and your
hardware and network topology between web server and db server, or
lack thereof.

Nothing anybody else can say on this matter has any real meaning.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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




--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Any questions?  Get answers on any topic at Yahoo! Answers. Try it now.

[PHP] Reading from the htpasswd file

2007-02-02 Thread Ryan A
Hey,

*** Warning: feeling a bit braindead today after working long hours yesterday 
so please excuse if some parts are crappy***

I have a pal who uses a htpasswd file for access to his site..

rather than using basic_auth he wants to change it to form based _without_ a DB 
(ie user comes to his site and enters the username and password into a form, 
then submits it to the php script, the php script reads the htpasswd file and 
accordingly grants access or denies access if the login does not match)

Am not so sure about this but before i can make an arguement against this, I 
should know something myself so my questions to you more knowledgeable guys are:
1. Is it such a good idea switching?
2.Wont the basic_auth pop up anyway even after entering these values into the 
form?
3. If having a hundreds (or even thousands) of user:pass combinations in the 
htpasswd file wont it make logging in longer and more processor intensive 
to search all of the combinations till you find (or not find) the login?


Did some small code experiments before coming here asking for advise...
can send you the code I have written if need be...but what i have found out is 
with small amounts of data i see no difference in speed of loggin in using the 
htpasswd file as the "login database"..

Thanks for any input on the above.

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Sucker-punch spam with award-winning protection.
 Try the free Yahoo! Mail Beta.

[PHP] Rory Browne from this php list (0.T)

2007-01-27 Thread Ryan A
Hello!

As some of you might remember: a little while back I had a project to be done 
in PHP, which I asked if anyone on the list would be interested in completing 
for $800 USD.

Rory Browne from the list got the job and around the 15th of Jan he told me he 
completed the work and was going to send me/setup the software but then I did 
not get any word from him after multiple emails in the days since, am wondering 
if something bad happened to him... (hope not)

Does anyone know Rory Browne's phone number or any other contact details?

Thanks,
Ryan


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

-
Everyone is raving about the all-new Yahoo! Mail beta.

Re: [PHP] OT - Leaving

2007-01-24 Thread Ryan A


FYI, for the noobs, the John and Jason referenced in the email are John
Holmes and Jason Wong.


Yep, two of the "big" guys without who... many would have taken a muchh longer 
path to learning php, including me.

I dont know if theres a "list heroes" list, but if there is... John is def mine.
Although if you put  "John Holmes" into google... you'll see a lot of other 
work he has done on film a long time ago :))

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

Re: [PHP] OT - Leaving

2007-01-24 Thread Ryan A
Who the f*/k are you? and why should we remember you

Hehe just kidding, you may have not posted a lot in the last year but you have 
helped me many times before thatwhich I really appreciate.

Thanks for your help mate, and I hope you have success in whatever you decide 
to do.

Cheers!
R

John Nichel <[EMAIL PROTECTED]> wrote: Howdy ladies and gents:

   For the past 9 or so years, with one email account or another, I have 
been subscribed to the PHP General Mailing List.  Well, life an work 
have succeeded in taking up all of my time, and the only thing I've been 
able to do with this list over the past year or so is select all the 
unread messages in my php folder, and hit the delete key.  If I've 
posted 10 messages over the past year, I'd be surprised (probably why 
you n00bs are saying to yourself, "who the hell is this guy").  I'm just 
popping in now to let y'all know that I'm off to join people like John 
and Jason in the world of, "what ever happened to him".  For those of 
you who give a damn ;)  I can be reached at numerous email addresses, 
including:

john  nichel  net
jnichel  by-tor  com

As well as the other in this email (which have already been harvested by 
a billion spam bots).

Have fun, and I'll see ya on the other side.

-- 
John C. Nichel IV
Programmer/System Admin (ÃœberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

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




--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
8:00? 8:25? 8:40?  Find a flick in no time
 with theYahoo! Search movie showtime shortcut.

Re: [PHP] Storing values in arrays

2007-01-18 Thread Ryan A


Robert Cummings <[EMAIL PROTECTED]> wrote: On Wed, 2007-01-17 at 07:15 -0800, 
Ryan A wrote:
> > Hey!
> > Thanks for replying.
> > 
> > Instead of CRON i was thinking of having a file created and check the
> > creation time everytime someone logged in... if its less than 1 min
> > then don't do anything, if  1 min or more old... write file...
> 
> But then it wouldn't be written to disk every one minute if someone
> didn't log in for 3 minutes ;)
> 
> True, but thats not the most important part... I guess I wrote it wrong, I 
> meant that it should not write to disk before 1 minute...
> anyway... about the "array saving" any ideas?


// untested

if( ($fptr = fopen( '/tmp/mySavedArray.dat', 'wb' )) !== false )
{
fwrite( $fptr, serialize( $myArray ) );
fclose( $fptr );
}

?>

There's also file_put_contents() but I generally go with backward
compatible methods.
Thanks, will give it a go!

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Need a quick answer? Get one in minutes from people who know. Ask your question 
on Yahoo! Answers.

Re: [PHP] Storing values in arrays

2007-01-18 Thread Ryan A


tedd <[EMAIL PROTECTED]> wrote: At 7:15 AM -0800 1/17/07, Ryan A wrote:
>True, but thats not the most important part... I guess I wrote it 
>wrong, I meant that it should not write to disk before 1 minute...
>anyway... about the "array saving" any ideas?
>
>Thanks!
>R

Why?

 Hey Tedd,

Aww, nothing serious... just had a few ideas running in my head that needs 
something like this... and was wondering if it would save on server processing 
time and resources if done like this rather than writing to disk on every 
login...

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.

Re: [PHP] Storing values in arrays

2007-01-17 Thread Ryan A

> Hey!
> Thanks for replying.
> 
> Instead of CRON i was thinking of having a file created and check the
> creation time everytime someone logged in... if its less than 1 min
> then don't do anything, if  1 min or more old... write file...

But then it wouldn't be written to disk every one minute if someone
didn't log in for 3 minutes ;)

True, but thats not the most important part... I guess I wrote it wrong, I 
meant that it should not write to disk before 1 minute...
anyway... about the "array saving" any ideas?

Thanks!
R  


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

Re: [PHP] Storing values in arrays

2007-01-17 Thread Ryan A


Robert Cummings <[EMAIL PROTECTED]> wrote: On Wed, 2007-01-17 at 00:35 -0800, 
Ryan A wrote:
> Hi,
> 
> I think its easier to explain what I want to do.. so here goes:
> I want to store values in arrays for one minute and then write them to file.
> 
> For example, everytime someone logs in I want their username to be in an 
> array
> 1 or 100 or X people may login in 60 seconds...but it should only write all 
> the usernames that logged in to disk every 1 minute.
> 
> Ideas? suggestions? starting points or a link to a specific spot in the 
> manual with a RTFM would be appreciated :)

Might be able to do it with shared memory and a cron job. I'm just not
sure if shared memory works between web module and cli. If not, I guess
you could use wget in the cron job to pull a special page from your
website that does the write.

Cheers,
Rob.
Hey!
Thanks for replying.

Instead of CRON i was thinking of having a file created and check the creation 
time everytime someone logged in... if its less than 1 min then don't do 
anything, if  1 min or more old... write file...


No idea about shared memory, will look that up..

Everybody feel free to chip in any bits of info, theories or advise you may 
have.

Thanks!
Ryan


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.

[PHP] Storing values in arrays

2007-01-17 Thread Ryan A
Hi,

I think its easier to explain what I want to do.. so here goes:
I want to store values in arrays for one minute and then write them to file.

For example, everytime someone logs in I want their username to be in an 
array
1 or 100 or X people may login in 60 seconds...but it should only write all the 
usernames that logged in to disk every 1 minute.

Ideas? suggestions? starting points or a link to a specific spot in the manual 
with a RTFM would be appreciated :)

Thanks in advance,
Ryan


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

Re: [PHP] Anybody have any experience with outsite-in? [Quite a bit 0T]

2007-01-13 Thread Ryan A
Hmmm, I didnt know of this list, thanks... will go through it.

Cheers!
R



Satyam <[EMAIL PROTECTED]> wrote: It is not a new concept, even Wikipedia has a 
long list of them:

http://en.wikipedia.org/wiki/List_of_LiveDistros

Most of those distros have individual articles ... not the one mentioned 
below, though.

Satyam

- Original Message - 
From: "Skip Evans" 
To: "Ryan A" 
Cc: "php php" 

Sent: Thursday, January 11, 2007 10:35 PM
Subject: Re: [PHP] Anybody have any experience with outsite-in? [Quite a bit 
0T]


> Hey all,
>
> When you say it lets you run it off a CD does that mean the CD is totally 
> self contained, as in you can pop it into any machine, sans web server DB, 
> etc, and it runs just peachy?
>
> Skip
>
> Ryan A wrote:
>> Hey all!
>>
>> This is a bit OT as its not really php programming, but it does involve 
>> PHP and MySql etc so The company I work for has decided to use the 
>> software from outsite-in.com,
>> for those of you who dont know (and i'm guessing a lot of you dont, as I 
>> kinda just found out about it myself) their software allows you to run 
>> php+mysql etc on a CD/DVD.
>>
>> Just curious to know if anybody has had any experience with their 
>> software?
>> I have tried their free demo's and it looks pretty good.
>>
>> Note: Others on this list have in the past advised me on how to do this 
>> using different methods, but my company wants to go with this... needless 
>> to say I am in NO way connected to outsite-in.com and i have *nothing* to 
>> gain if you visit their site, buy anything from them, shoot them, kiss 
>> them or whatever. :)
>>
>> Thanks!
>> Ryan
>>
>>
>>
>>
>>
>> --
>> - The faulty interface lies between the chair and the keyboard.
>> - Creativity is great, but plagiarism is faster!
>> - Smile, everyone loves a moron. :-)
>>  -
>> Everyone is raving about the all-new Yahoo! Mail beta.
>
> -- 
> Skip Evans
> Big Sky Penguin, LLC
> 61 W Broadway
> Butte, Montana 59701
> 406-782-2240
> =-=-=-=-=-=-=-=-=-=
> Check out PHPenguin, a lightweight and
> versatile PHP/MySQL development framework.
> http://phpenguin.bigskypenguin.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





--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Access over 1 million songs - Yahoo! Music Unlimited.

Re: [PHP] Anybody have any experience with outsite-in? [Quite a bit 0T]

2007-01-13 Thread Ryan A


Skip Evans <[EMAIL PROTECTED]> wrote: Hey all,

When you say it lets you run it off a CD does that 
mean the CD is totally self contained, as in you 
can pop it into any machine, sans web server DB, 
etc, and it runs just peachy?

Skip

Yep, thats what its supposed to do...


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

[PHP] Anybody have any experience with outsite-in? [Quite a bit 0T]

2007-01-11 Thread Ryan A
Hey all!

This is a bit OT as its not really php programming, but it does involve PHP and 
MySql etc so 

The company I work for has decided to use the software from outsite-in.com,
for those of you who dont know (and i'm guessing a lot of you dont, as I kinda 
just found out about it myself) their software allows you to run php+mysql etc 
on a CD/DVD.

Just curious to know if anybody has had any experience with their software?
I have tried their free demo's and it looks pretty good.

Note: Others on this list have in the past advised me on how to do this using 
different methods, but my company wants to go with this... needless to say I am 
in NO way connected to outsite-in.com and i have *nothing* to gain if you visit 
their site, buy anything from them, shoot them, kiss them or whatever. :)

Thanks!
Ryan





--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Everyone is raving about the all-new Yahoo! Mail beta.

Re: [PHP] Running AMP from CD

2006-11-27 Thread Ryan A
Hey Paul,

Now this is sounding promising!
Can you send me details on how/where I can download your package to give it a 
go?

"Firefox launches on CD start and "

I hope just in this case FF is launched, because we have found that most of our 
to be users are on IE... so this was designed mostly for IE and some of the JS 
scripts look a bit funny in FF..

"if you are releasing the courses as free, I would really like to add it in 
there "
I dont see any problem with that, but I dont know how much use it would be for 
people outside of Sweden as the entire site is mostly Swedish... you can check 
it out here:
http://matematik.sofiadistans.nu/index.htm
(Its still very much under construction)

Cheers!
R
> Sounds good but I dont think its right for this project because we are
> making educational pages that are presently online... but will later
> be distributed for free to students, mostly young ones at that...
> 10-15yrs old so it has to be as simple as possible for example:
> 

Well, you are in luck then. Our system happens to be a fully fledged
e-learning system that does exactly that! :)


> User gets the cd and loads it into their comp
> Then either of these two:
> a) they click on clickme.html or clickme.exe etc
> or

Firefox launches on CD start and the elearning system is there and ready
to go in the context (course) of your choosing.

Check out http://elearn.uwc.ac.za/ as one of our e-learning site, and
http://avoir.uwc.ac.za for project details as well as mailing lists.

On an aside, we also are building a site of downloadable free
courseware, http://freecourseware.uwc.ac.za and if you are releasing the
courses as free, I would really like to add it in there, as well as make
it a demo downloadable course. A lot of our African partners (16
countries) roll out in primary schools, and I think that your stuff
could be really useful to them.

--Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 

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


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.

Re: [PHP] Running AMP from CD

2006-11-27 Thread Ryan A
Hey Rich,

To be honest I thought of using WGET and if I remember correctly it was 
suggested in the original old thread... but once i started reading up on wget, 
the damn thing has so many switches I got lost and gave up hope pretty soon.

Another thing that I am not sure if WGET will handle soo well is... there are 
quite a few javascript popups on each page (basically icons on the side, when 
clicked open a JS popup with the content of the main page in a different 
language

for example:
the main page is in Swedish, when you click the language icon on the side it 
opens a popup with the same content in Arabic or Spanish)

but these popups are calling php scripts with something like this:
get_popup_content.php?content_id=2354

But if you think this is the best solution, I am willing to start reading up on 
WGET again to see if this time I get the hang of it..

Thanks!
Ryan

Richard Lynch <[EMAIL PROTECTED]> wrote: Another option might be to use 
something like wget or htdig to just
rip through the whole site and generate a static site out of it...

I did something like that once for an educational CD, except I just
wrote the generator myself.  I'm not sure wget existed back then, and
I'm pretty sure htdig didn't...

Had to put a bit of stuff into JavaScript for the "quiz" portion, but
it worked fairly well.

On Mon, November 27, 2006 10:51 am, Alberto Ferrer wrote:
> www.apachefriends.org have a "Lamp" on CD project.
>
> 2006/11/27, Ryan A :
>> Hello,
>>
>> A little while back there was a discussion on running Apache,MySql
>> and PHP from a CD... I can't seem to find that thread and i cant
>> seem to find the links i had from that thread, so
>>
>> Can anybody suggest/recommend a way to run our project from CD?
>> Our project is made in PHP 4 with a MySql backend... so far its been
>> running on Apache..
>>
>> I have found some commercial alternatives via google(PortableWebAp
>> ,dwebpro,microweb to name a few) but if I remember correctly the
>> solution in the old thread was a freeware. The commercial solutions
>> offer a lot of bells and whistles and inter platform compatability
>> but all we need is for AMP to run on CD and on Windows 2000 onwards.
>>
>> Any help appreciated, even if its a one line link, thanks in
>> advance!
>> -Ryan
>>
>>
>> --
>> - The faulty interface lies between the chair and the keyboard.
>> - Creativity is great, but plagiarism is faster!
>> - Smile, everyone loves a moron. :-)
>>
>> -
>> Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.
>>
>
>
> --
> bet0x - Barrahome
> http://www.barrahome.com.ar
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

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




--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Everyone is raving about the all-new Yahoo! Mail beta.

Re: [PHP] Running AMP from CD

2006-11-27 Thread Ryan A
You wouldnt happen to have a direct link to that page would you? coz I cant 
find it in their products section...

Thanks!
R

Alberto Ferrer <[EMAIL PROTECTED]> wrote: www.apachefriends.org have a "Lamp" 
on CD project.

2006/11/27, Ryan A :
> Hello,
>
> A little while back there was a discussion on running Apache,MySql and PHP 
> from a CD... I can't seem to find that thread and i cant seem to find the 
> links i had from that thread, so
>
> Can anybody suggest/recommend a way to run our project from CD?
> Our project is made in PHP 4 with a MySql backend... so far its been running 
> on Apache..
>
> I have found some commercial alternatives via google(PortableWebAp 
> ,dwebpro,microweb to name a few) but if I remember correctly the solution in 
> the old thread was a freeware. The commercial solutions offer a lot of bells 
> and whistles and inter platform compatability but all we need is for AMP to 
> run on CD and on Windows 2000 onwards.
>
> Any help appreciated, even if its a one line link, thanks in advance!
> -Ryan
>
>
> --
> - The faulty interface lies between the chair and the keyboard.
> - Creativity is great, but plagiarism is faster!
> - Smile, everyone loves a moron. :-)
>
> -
> Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.
>


-- 
bet0x - Barrahome
http://www.barrahome.com.ar



--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get 
things done faster.

Re: [PHP] Running AMP from CD

2006-11-27 Thread Ryan A
Hi Paul,

Sounds good but I dont think its right for this project because we are making 
educational pages that are presently online... but will later be distributed 
for free to students, mostly young ones at that... 10-15yrs old so it has to be 
as simple as possible for example:

User gets the cd and loads it into their comp
Then either of these two:
a) they click on clickme.html or clickme.exe etc
or
b)the CD autostarts and opens the browser window with the index of the "site"

Thanks!
R

Paul Scott <[EMAIL PROTECTED]> wrote: 
On Mon, 2006-11-27 at 03:39 -0800, Ryan A wrote:
> Any help appreciated, even if its a one line link, thanks in advance!

Our team ships our products as an Ubuntu linux Live CD with all the bits
and pieces pre-installed, which also gives the user an option to install
and set up a live server with a single double click. If you are
interested in taking this route, I could set you up with some links, as
well as our ISO that you could modify and re make...

--Paul

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 

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


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.

[PHP] Running AMP from CD

2006-11-27 Thread Ryan A
Hello,

A little while back there was a discussion on running Apache,MySql and PHP from 
a CD... I can't seem to find that thread and i cant seem to find the links i 
had from that thread, so 

Can anybody suggest/recommend a way to run our project from CD?
Our project is made in PHP 4 with a MySql backend... so far its been running on 
Apache..

I have found some commercial alternatives via google(PortableWebAp 
,dwebpro,microweb to name a few) but if I remember correctly the solution in 
the old thread was a freeware. The commercial solutions offer a lot of bells 
and whistles and inter platform compatability but all we need is for AMP to run 
on CD and on Windows 2000 onwards.

Any help appreciated, even if its a one line link, thanks in advance!
-Ryan


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.

Re: [PHP] Please hack my app

2006-11-22 Thread Ryan A
Hey there,

I dont mean to be a total pri*k about this, but unless you have created 
something that you are willing to share with others and others can use/modify 
for their requirements, and you grant them this privilege...I think the norm is 
you pay someone to do what you are asking.

What you are asking for is pretty unfair, unless I am missing something?

If on the other hand you have identified the part that troubling you, or 
getting unexpected results from a code segment... then post that as a new 
question/thread and from the kindness of someones heart, you might get an 
answer from them. :)

Cheers!
R


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Sponsored Link

$200,000 mortgage for $660/mo - 30/15 yr fixed, reduce debt, home equity -  
Click now for info

Re: [PHP] Tour Guide around Jordan (Middle East) OFFER

2006-11-14 Thread Ryan A


Stut <[EMAIL PROTECTED]> wrote: Ryan A wrote:
> Dont know if its written in php or not but it does prove a point
>
> software is getting more and more user friendly and our pal "Raven Hawk" has 
> shown us even if both your parents are/were related and you were made fun of 
> in school for being slow...and married a moron (and probably have little 
> morons for kids), and live like a moron and spam like a moron you still have 
> enough brains to figure out how to use present day software
>   

I seem to deal with a lot of customers who could provide a lot of 
evidence for the opposition to that assertion!

Oh well, I guess "Raven Hawk" is one of the more gifted morons and I give 
him.., and his kind more credit than deserved.


:)

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Want to start your own business? Learn how on Yahoo! Small Business.

Re: [PHP] Tour Guide around Jordan (Middle East) OFFER

2006-11-14 Thread Ryan A


Google Kreme <[EMAIL PROTECTED]> wrote: On 14 Nov 2006, at 02:17 , Raven.Hawk 
wrote:
> Please note >>> if you dont need it now  you may will need it  
> later so please save it for the future :)
[CHOMP]

>--
>This email is send by "Demo Software"

/me wonders if "Demo Software" is at least written in php...

Dont know if its written in php or not but it does prove a point

software is getting more and more user friendly and our pal "Raven Hawk" has 
shown us even if both your parents are/were related and you were made fun of in 
school for being slow...and married a moron (and probably have little morons 
for kids), and live like a moron and spam like a moron you still have enough 
brains to figure out how to use present day software




--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Want to start your own business? Learn how on Yahoo! Small Business.

[PHP] Freelance php project... clone a website's functionality [0T]

2006-11-06 Thread Ryan A
Hey all,

Most of you have seen me long enough on this list and helped me more times than 
I want to remember to know that this is not a spam email, that said...

A project has dropped into my lap to clone a site's functionality... rather 
than post it on the many freelance job sites as I dont have time to do this 
myself (and not sure about the skill either...even though i know i can come 
here for help if I hit a brick wall in the middle of the project) thought I 
would give it a shot here first.

I'll just skim the details so most of you will know if you're interested in a 
few seconds and can write back to me for details (offlist, we dont want to 
offend anyone :) )

===
Budget: around $800 USD

Skills needed:
===
PHP 4 (NOT 5)

MySql

Smarty (No designing needed, we'll get the designs later and "connect" them)

(This will be running on a Linux server so a little understanding/experience 
here would be a bonus but its not a requirment.)

Understanding the httpd.conf file of apache and (IMPORTANT) URL rewriting via 
directives in that file

Understanding PERL (as theres one client script that has to be in 
PERL...already created)

If you're serious about freelancing for a project please reply, I ask the 
"simply curious" to kindly ignore this post. Thanks in advance!
 
Questions? I'm just an email away :)

Cheers!
Ryan





--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)
 
-
Everyone is raving about the all-new Yahoo! Mail.

Re: [PHP] Testing people

2006-10-07 Thread Ryan A
Thanks!
 Will give it a look-see!

Cheers!

Dotan Cohen <[EMAIL PROTECTED]> wrote: It's not exactly what you describe, but 
you should take a look at:
http://www.bigredspark.com/survey.html

Dotan Cohen
http://what-is-what.com
7



--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

Re: [PHP] Testing people

2006-10-07 Thread Ryan A
Thats why I love this list... people share and help so unselfishly.
Thanks Rich, sure didnt think of the way you wrote the solution till i read 
your code!

Have a fab one!



Richard Lynch <[EMAIL PROTECTED]> wrote:
> I thought of having a hidden text box everytime for each question...
> but that can be quite easily found out... any other suggestions?

Don't send the correct answer to the browser at all.

And don't tie the "ABCD" to the correct answer.

  $question[47] = "Which animal flies around at night and sleeps in
the day?"
  $answer[13] = 'cat';
  $answer[14] = 'dog';
  $answer[15] = 'trout';
  $answer[16] = 'bat';
  $correct[47] = 'bat';
?>

Your HTML could look like this:
A  [input]  cat
B  [input]  dog
C  [input]  trout
D  [input]  bat

To test if the answer is correct:

$q = $_REQUEST['q'];
foreach($q as $index => $a){
  if ($correct[$index] == $a) echo "CORRECT";
  else echo "INCORRECT:  Correct is $correct[$index]";
  echo "
\n";
}

You could also use the index to $answer as the value with:
$correct[47] = 16;
 [input]  bat
if ($correct[$index] == $a){

and all the other code the same.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?




--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

Re: [PHP] Testing people

2006-10-05 Thread Ryan A
Thanks for replying guys.

Paul, Will check out the links you sent me, If its really as good as you say... 
should save me a heck of a time coding it, thanks!


Cheers!
Ryan

Paul Scott <[EMAIL PROTECTED]> wrote: 
On Thu, 2006-10-05 at 03:36 -0700, Ryan A wrote:
> Hey all,
> 
> this is a two part question but I need just one solution:
> 

Done. Go to http://avoir.uwc.ac.za/ and download Kewl.NextGen. Then
install it and use the moduleadmin to install MCQ (multiple Choice
Questions) module. It does everything (and more) that you need.

If you need help, join either (or both) the users list and the
developers list.

--Paul



All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 



--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

-
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small 
Business.

Re: [PHP] Template system

2006-10-05 Thread Ryan A
Actually, I tried Fast Template when trying to decide on a "templating 
solution", ran into some errors from the main class file/s and didnt get any 
help on it... so dumped it.

The forums/lists for SMARTY are really good, very very helpful folks... I 
daresay as helpful and great as this php list.

No regrets in my SMARTY choice.

Cheers!


Jônata Tyska Carvalho <[EMAIL PROTECTED]> wrote: think it is the better class 
of template:

www.thewebmasters.net/php/FastTemplate.phtml





 On 10/5/06, Ryan A <[EMAIL PROTECTED]> wrote: Thats what i use... and no 
complaints so far.

Cheers,
Ryan

Dave Goodchild <[EMAIL PROTECTED]> wrote: Smarty? smarty.php.net 

>
>
>
>
>
>
>
>


--
http://www.web-buddha.co.uk



--
- The faulty interface lies between the chair and the keyboard. 
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

-
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail.
 



-- 
Jônata Tyska Carvalho
-
-- Técnico em Informática pelo Colégio Técnico Industrial (CTI)
-- Graduando em Engenharia de Computação 
Fundação Universidade Federal de Rio Grande (FURG) 


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

-
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail.

Re: [PHP] Template system

2006-10-05 Thread Ryan A
Thats what i use... and no complaints so far.

Cheers,
Ryan

Dave Goodchild <[EMAIL PROTECTED]> wrote: Smarty? smarty.php.net

>
>
>
>
>
>
>
>


-- 
http://www.web-buddha.co.uk



--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

-
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail.

[PHP] Testing people

2006-10-05 Thread Ryan A
Hey all,

this is a two part question but I need just one solution:

1. Can you recommend a good testing software where the choices are multiple 
choice (cross a button or radio button) 

if nothing great out there... will make this myself so, on to point 2:

2. I have noticed if you are displaying 4 (a-d) choices and the answer for 
question 10 (for example) is always on choice B it kind of sticks in the head 
and students dont really read everything they just memorize the location of the 
answer (maybe unconsciously) and click that.. i have an idea of making the 
answers "jump around"

for example:
once the correct answer for question 10 is B, if you reload the page, it would 
be C, reload again and its A (chosen randomly...)

(real) example 2:
What has two legs:
a: an elephant
b: a dog
c: a bird
d: a cat

C is the correct answer of course... but if you reload the page:

 a: a bird
b: an elephant
 c: a dog
d: a cat

now A is the correct answer.

I thought of having a hidden text box everytime for each question... but that 
can be quite easily found out... any other suggestions?


Thanks!
Ryan


 









--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

-
 All-new Yahoo! Mail - Fire up a more powerful email and get things done faster.

Re: [PHP] Wallet based shopping cart

2006-09-28 Thread Ryan A

Hi,

I am looking for a shopping cart/member script that will allow members of a
site to purchase credits and then spend their credits on my site. I have
trawled for hours but can't seem to find one anywhere. :-$
Anyone got any ideas???

Frustrated and wanting to move forward!!

Hey!
 I have not heard of such a script, sounds kind of specialized, guessing you 
would have to make this mate... shouldnt be _very_ hard to do thought.
 


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

-
Get your email and more, right on the  new Yahoo.com 

Re: [PHP] People who bought this also bought (amazon style) functionality...logic problem

2006-09-27 Thread Ryan A
 Warning, this email's a bit long 




> You have a User table and a Product table, then a
> linking table that
> joins users with products that they have bought.



Hey David,Curt,Richard!

Thanks for replying.

Looks like I will really have to brush up on my Sql,
been using "lazy sql" for a long time... you know, the
kind that you use over and over again
(insert,update,delete etc) so the other stuff pretty
much goes in the backroom/celler of your brain




> All
> this is possible in
> one SQL statement, the SQL is left as an exercise to
> the reader.


Cool! There goes my afternoon! :D
 
> As this is an O(n^2) query it won't scale
> particularily well, so you
> should cache the results somewhere, probably in the
> product table.  This
> could be regenerated every week or two as it doesn't
> actually need to be
> very current.

I usually cache my stuff in a local file and serve the
cached file if x minutes are not up... can you give me
an example of cacheing DB side?





Richard;
//**
> I'm trying to work out the logic to do this... and
> quite frankly have hit a brick wall.

Possibly because Amazon's algorithm does not
down-scale well...
**//

That way of looking at it makes me feel better ;)



//**
You want something like this:
...
The point being that you get the 5 things that are
MOST purchased in
other orders with this same product.

The above query may well bring your DB to its knees,
and you may need
to optimize the heck out of it.
**//
Will def look into it, I have seen this functionality
on a lot of "e-com" sites which use shared hosting so
i know its do-able, will try and when I run into
problems will post again.



//**
The problem is that unless you have the volume of
Sales that Amazon
has, there may not be enough people buying enough
stuff for this to
make sense.

It also won't group accessories or anything -- It goes
solely based on
who bought what.

This is possibly great for "e-commerce" but might not
be the ideal.
**//
Volume of sales would be *no where close*, to even
mention the site this will be used on and Amazon in
the same sentance would be a sin, and grounds to be
struck down from above.
I do have another part/block below the product that
suggests accessories.

This is for a site that sells R/C helicopters online,
i have seen two other sites that sell the same
products and from my experience this "customers
who" feature seems to work pretty well to squeeze
in a little more (maybe 1 or two items) into the
order.I think any edge for a startup is a good
thing..no matter how small.


//**
I *much* prefer the CDBaby approach where somebody
listens to the CD
and then recommends artists they think are
complementary. :-)
**//
You dont suggest I have both?
Maybe a customer suggestions for this item 'box'?



Curt;
//**
The one thing I
would do is generate some sort of table on a scheduled
bases that
links ids of the items that were bought into a some
sort of group. and
then just use that table on the page you are showing.
**//
Can you give me a little example of this?


Thanks again guys,
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[PHP] People who bought this also bought (amazon style) functionality...logic problem

2006-09-26 Thread Ryan A
Hey all,

I want to write a "module" for xcart (a commercial
'shopping cart') which would be like what Amazon.com
offers when you go to shop on their site... when you
click on a product to see its details you get a little
box below that recommends more products based on what
others have purchased

eg:
If you click on a toy helicopter it would recommend
extra rotor blades,landing gear etc

eg 2:
If you click on Eminem's latest album it would show
you his other two albums that people bought with this
album 

etc

I'm trying to work out the logic to do this... and
quite frankly have hit a brick wall.

So far:
---
I was thinking when someone (Joe) purchases X with
product id Y I would put that in a seperate table,
then when someone (Jane) else comes looking at item Y
I would display everything that Joe bought...
but then it gets a little complicated, if Jane buys Y
and other stuff that Joe didnt buy... how do I merge
what Joe and Jane bought to display to the next
visitor? (I can only dispaly 5 recommendations at
once)



I would appreciate any tips/advise and code you can
give me, would be fantastic of course if you have
worked with xcart or have already done this.

(shameless plug)
I think this was one of the suggested features of
Dan's open source PHPCart
(http://code.google.com/p/phpcart) unfortunatly I dont
have the OO skill to take part in that project and no
time either as we need a cart immd.
Note:
I dont get anything for recommending the above cart
(or xcart for that matter) but if you are interested
in joining a free os cart project, you might want to
think of looking into the above.

Thanks in advance,
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Just say "hello"

2006-09-15 Thread Ryan A
RTFM




Oops, sorry, that seems to be everyone favourite so
thought i would be the first one to say it... and
welcome to the list :)

Cheers!

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Re: OT - PHP Hosting Service in UK?

2006-09-05 Thread Ryan A
Hey,
I did try need-space.co.uk

they were good for some time, then later sucked really
bad, then insulted me via online support when i asked
for my $$ back after hosting with them for just over a
month... then later apoligised and got good again (and
returned my $$), they say they have changed the rude
support person...
no idea if its true (as i left them) but you might
want to check them out.

I hate it when people link or 'advise' on a site and
fail to mention that they are somehow "connected" to
that site and get a payback in some way...thats just
sly and low..
Reading the above it should be clear that i am in NO
way involved with them :D but just in case; 

I am in NO way involved with that site.

Any questions about my experience with them, mail me
offlist.

HTH and good luck!

Cheers!
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A


--- Richard Lynch <[EMAIL PROTECTED]> wrote:

> And if you do NEED those 250,000 features completed
> in 30 days, you
> have no choice but to suck it up and use the
> least-evil of the carts
> out there.
> 
> Which brings us back (almost) to the original
> question...
> 
> Which pre-packaged PHP shopping cart sucks least?
 
Been trying one after the other, although there are
many contenters that deserve the prize for "which
sucks the most" still have to sift through the muck to
get to "which sucks the least"...and yes, i know,
sorry...not much help.

Cheers!
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A



> > Maybe APC (August php cart :D )
> >   
> 
> How about SPECS - Simple [PHP|Pluggable] E-Commerce
> System.
> 
> I have a few thoughts about this idea and will put
> something together 
> later today.
> 
> -Stut
> 


"What's in a name? That which we call a rose by"

:D

Not really bothered what its called, even if its "crap
crab cart" or "crab crap cart" (real tongue twisters
eh)

Lets get this started and pool ideas / resources and
then worry about the name later... so join in Stut,
i'm sure if we all pool in we can make something
really good.

Cheers,
Ryan

P.S , theres quite a bit of stuff at php classes.org
that I think we can salvage for parts. (Just type in
"cart" in the search field)


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A

> > Maybe APC (August php cart :D )
> 
> Obviously you don't run the APC op-code cache ;)

:) you got me there Rob, dont have a clue about it.
Sorry if I stepped on anyones toes.

Cheers!
Ryan 


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A
Hey,

> > Hey,
> > Signed up there, but how do i join the project? my
> > username is "ryan"
> > 
> 
> OK I have added you as a project admin.

Thanks
 
> > I think you might also want to change the project
> > name... phpcart is just too common to think that
> > someone else is not using for one of their
> products.
> > 
> 
> The project name and the branding are different
> things. We will get a
> designer to pimp it up later ;)
> 
> > Maybe APC (August php cart :D )
> 
> Why not just call it opcode cache and be done with
> it? :)

OCC - not to bad, i like it.

I also have some photoshop talents, so give me a shout
there if needed.

Cheers,
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A



> 
> Please sign up for an account and join the project
> at
> http://gforge2.uwc.ac.za/projects/phpcart/
> 
> I have started a mailing list, which should kick in
> in a few hours...
> 
> --Paul


Hey,
Signed up there, but how do i join the project? my
username is "ryan"

I think you might also want to change the project
name... phpcart is just too common to think that
someone else is not using for one of their products.

Maybe APC (August php cart :D )

Cheers!
Ryan


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A


--- Dan McCullough <[EMAIL PROTECTED]> wrote:

> Another thing to remember is that you dont want to
> get overwhelmed
> with all the work when you are going to build your
> own, a list of
> 250,000 features will never get done, many have
> tried, many have
> failed, so plan what you need to start with and
> build the other
> features later.

Good point, I feel into that ditch myself some time back...

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A




> I believe you can find those out there as well, most
> of what you need
> will be available out there, you will be able to
> find them and then
> take what you need to work it into your cart,
> probably would be a good
> idea to think of all the different pieces and then
> find the different
> examples/tutorials/snippets and then see how they
> fit.

Yep, I always count the jigsaw puzzle pieces before i
start ;)

Cheers!

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A


--- Paul Scott <[EMAIL PROTECTED]> wrote:

> 
> On Tue, 2006-08-22 at 05:36 -0700, Ryan A wrote:
> > It really looks like I will have to write this
> myself
> > :(
> 
> We need to create a proper one, under a decent
> licence as a community
> damnit! Maybe even a generic PEAR object that can be
> customized/extended
> to connect to whatever gateway you need to?
> 
> I can start the project, any volunteers to do some
> code/docs etc?
> 
> --Paul

Hey Paul,

I need this now more than most people so you can count
me in... but first we have to start agreeing on how to
do it and what features it will have etc

I have done a project that connect to and interacts
with the 2checkout gateway so there i can be pretty
helpful and maybe documentation but other than
that i have no idea if my code is really "clean"
Never did any thing with PEAR other than try its
database stuff.

Cheers,
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A
Hey,

> There are many payment processing
> script/classes/examples available
> that you could use.  Just google around for your
> gateway provider,
> like PHP and Authorize.net, etc, or go to their site
> and look for a
> developer, API or something like that to see if they
> have done some
> examples.

Yeah, i guess thats also an idea, will look into it.

Will also need to look into the logic of calculating
shipping, something that I have never done in the
past.

Kind of worked out the logic of "customers who bought
this also bought..." gotto take one step at a time...
which breaks down to a problem coz dont have much time
to take many steps :(

Cheers!
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Shopping cart

2006-08-22 Thread Ryan A
It really looks like I will have to write this myself
:(

I know it will be good for experience but like someone
else has pointed out, I would rather work with someone
elses code for the payment parts knowing that it has
been totally debugged than getting screwed later on
because I missed assigning a value to a variable...

Still searching though, tested OSC,ZenCart,
Xcart,FishCart, now on to phpshop...

Drupal seems good, but kinda large with all the
modules out there... a bit intimidating, will keep
that as a "reserve check"

I think this is the reason why there are so many
"carts " out there people just get pissed seaching for
a simple one which they can use their _own_ page
design, and dont find it... then they write one for
themselves, see it works very well, decide to go
commercial... get requests to add "just one more
thing" and screw it up like all the others..!

Cheers!
Ryan

--- Larry Garfield <[EMAIL PROTECTED]> wrote:

> There may be other canned solutions that are not as
> bad as OSCommerce.  It's 
> the only one I've worked with other than Drupal. 
> I've worked with Drupal 
> extensively, but haven't used its ecommerce modules
> extensively.
> 
> But yes, I highly recommend OSCommerce as an example
> of how not to write a PHP 
> application, of any kind.
> 
> On Monday 21 August 2006 15:18, Gerry D wrote:
> > So if I understand you gentlemen correctly, these
> pre-builds serve as
> > examples how NOT to do it?
> >
> > Gerry
> >
> > On 8/20/06, Larry Garfield
> <[EMAIL PROTECTED]> wrote:
> > > On Sunday 20 August 2006 20:17, Gerry D wrote:
> > > > On 8/19/06, Larry Garfield
> <[EMAIL PROTECTED]> wrote:
> > > > > OSCommerce is crap.  Don't bother.
> > > >
> > > > Why do you say that, Larry? I may want to get
> into an app like that
> > > > because I think one of my clients is ready for
> it. What are the cons,
> > > > and what are my options? What are Drupal's
> limitations?
> > >
> > > I tried using it for a client last summer,
> because it was available free
> > > on the client's web host.  It is extremely
> rigid.  If you want a program
> > > that works the way they want and looks kinda
> like Buy.com with a
> > > table-based layout in 3 columns with certain
> visual effects, it's fine. 
> > > If you want to change or customize anything,
> good luck.  Nearly
> > > everything is hard coded with HTML and
> presentation PHP and business
> > > logic PHP all mixed in together. With a table
> based layout.
> > >
> > > Ugh.
> > >
> > > As for using pre-build vs. rolling your own, the
> main reason I favor
> > > ready-made is the bank hookups.  Anytime
> financial stuff is involved, I'd
> > > rather use something someone else already
> debugged than roll my own.
> 
> -- 
> Larry GarfieldAIM: LOLG42
> [EMAIL PROTECTED] ICQ: 6817012
> 
> "If nature has made any one thing less susceptible
> than all others of 
> exclusive property, it is the action of the thinking
> power called an idea, 
> which an individual may exclusively possess as long
> as he keeps it to 
> himself; but the moment it is divulged, it forces
> itself into the possession 
> of every one, and the receiver cannot dispossess
> himself of it."  -- Thomas 
> Jefferson
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Shopping cart

2006-08-20 Thread Ryan A
Thanks,
Will check it out.

Am also looking at "viart shop", any insight from
someone who has used it would be helpful.

Cheers!
Ryan

--- Larry Garfield <[EMAIL PROTECTED]> wrote:

> OSCommerce is crap.  Don't bother.
> 
> 
> 
> The Drupal CMS has a complete suite of ecommerce
> modules that work with it.  
> I've not worked with it recently, but if you just
> need a straightforward 
> shopping cart it should be fine.
> 
> http://drupal.org/
> http://drupal.org/project/ecommerce
> 
> All GPLed.
> 
> 
> 
> On Saturday 19 August 2006 10:37, Ryan A wrote:
> > Hey,
> > I have been long enough on this list to know this
> > shopping cart question comes up real often and
> > irritates a lot of folks, but sorry, I have
> checked
> > google and hotscripts and it has come down to a
> > recommendation from YOU guys as they are SO
> many
> > options out there with each cart most of which i
> will
> > never need.
> >
> > Feel free to mention commercial products as I have
> > been looking at them too, but if i go in for a
> > commercial solution I will have to cut somewhere
> else
> > as this is for myself and i'm starting
> out...budgets
> > low and am trying to do everything myself, but
> dont
> > have time to make this myself.
> >
> > Will be selling spare parts.
> >
> > I dont want a cart to do a million things, just
> around
> > 10 :)
> >
> > 1. Admin panel where i enter quantity and it keeps
> > track of inventry
> > 2. Should be *fast* (php+mysql solution)
> > 3.Intergrate with paypal+2checkout anything more
> is a
> > bonus
> > 4. Easy to "template"
> > 5. Calculates shipping (not vital, but bonus if it
> > does)
> > 6. Should be able to give discounts based on price
> and
> > accept discount codes.
> > 7. Should offer the "customers who bought this
> also
> > bought" feature
> > 8. Easy to maintain
> >
> > OSC is the first cart that comes to mind, followed
> by
> > Zen, xcart (xcart out of my budget though)
> >
> > Am leaning towards OSC for the price but its got
> an
> > overload of bulk and speed problems...
> >
> > Please recommend, even a link to any site and a
> "go to
> > that f***ing site" (the = of a "RTFM") would be
> > appreciated.
> >
> > Thanks!
> > Ryan
> >
> > --
> > - The faulty interface lies between the chair and
> the keyboard.
> > - Creativity is great, but plagiarism is faster!
> > - Smile, everyone loves a moron. :-)
> >
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> 
> -- 
> Larry GarfieldAIM: LOLG42
> [EMAIL PROTECTED] ICQ: 6817012
> 
> "If nature has made any one thing less susceptible
> than all others of 
> exclusive property, it is the action of the thinking
> power called an idea, 
> which an individual may exclusively possess as long
> as he keeps it to 
> himself; but the moment it is divulged, it forces
> itself into the possession 
> of every one, and the receiver cannot dispossess
> himself of it."  -- Thomas 
> Jefferson
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-19 Thread Ryan A
Hey!

> Robert,
> 
> Isn't it to easy to cheat if you do like this? Just
> view the source and you
> have the answers. But, this is maybe not for
> examination, maybe just for
> learning. If it is examination, AJAX would be
> better, so that they can not
> find out the solution by just looking at the source.


Sorry for not explaining this earlier guys, this is
not for any test, its to teach young kids (ages 10-14)
maths in Swedish, the kids are from other countries
where Swedish is not their own language.

No testing, no keeping "points" or "scores".

Thanks!
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-19 Thread Ryan A


--- tedd <[EMAIL PROTECTED]> wrote:

> >Just need to figure out how to change the cells
> >background color when the hint is shown and change
> it
> >back when the hint is hidden again.
> >
> >Thanks!
> >Ryan
> 
> Use the DOM, Luke.
> 
> Or, use a style switcher, like:
> 
> http://www.sperling.com/examples/styleswitch/
> 
> Using css is a good way to accomplish this.
> 
> tedd

If I'm Luke, who are you?

Yoda? ;D

Thanks for the tip, I have already used the tip that
Rob gave me, so for now am happy and wont touch
anything!

cheers!

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-19 Thread Ryan A
> > Just need to figure out how to change the cells
> > background color when the hint is shown and change
> it
> > back when the hint is hidden again.



 
> Just set the bckground colour of the  that
> contains the hint.
> 
> 


DUH! Of course... am totally duh! this week, 9 hour
working days and 4 company meetings + 2 presentations.

Thanks again,
Ryan 


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[PHP] Shopping cart

2006-08-19 Thread Ryan A
Hey,
I have been long enough on this list to know this
shopping cart question comes up real often and
irritates a lot of folks, but sorry, I have checked
google and hotscripts and it has come down to a
recommendation from YOU guys as they are SO many
options out there with each cart most of which i will
never need.

Feel free to mention commercial products as I have
been looking at them too, but if i go in for a
commercial solution I will have to cut somewhere else
as this is for myself and i'm starting out...budgets
low and am trying to do everything myself, but dont
have time to make this myself.

Will be selling spare parts.

I dont want a cart to do a million things, just around
10 :)

1. Admin panel where i enter quantity and it keeps
track of inventry
2. Should be *fast* (php+mysql solution)
3.Intergrate with paypal+2checkout anything more is a
bonus
4. Easy to "template"
5. Calculates shipping (not vital, but bonus if it
does)
6. Should be able to give discounts based on price and
accept discount codes.
7. Should offer the "customers who bought this also
bought" feature
8. Easy to maintain 

OSC is the first cart that comes to mind, followed by
Zen, xcart (xcart out of my budget though)

Am leaning towards OSC for the price but its got an
overload of bulk and speed problems... 

Please recommend, even a link to any site and a "go to
that f***ing site" (the = of a "RTFM") would be
appreciated.

Thanks!
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-19 Thread Ryan A
Hey Rob,

> As it were though, an Ajax solution is more involved
> and his request
> didn't seem to indicate a need for it so I went with
> KISS :)

The simple solution is exactly what i needed, it may
not have a lot of bells and whistles but thats the
whole point. Easy to add and update. No points/scores
to keep track of so no was AJAX needed.

I didnt mind going in for a commerical solution as
they tend to have a better "GUI output" (for example
look at the dhtml popup softwares... a whole lot of
options ready for you with a single click, things that
would take you hours if not days to do by hand
coding), I am still interested if I can find something
like that otherwise your solution is perfect
alternative. 

Just need to figure out how to change the cells
background color when the hint is shown and change it
back when the hint is hidden again.

Thanks!
Ryan



--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Ryan A
Thanks Rob, 
I think thats exactly what was/is needed. Its real
simple and easy to modify.

> BTW, this is not PHP, 

Never said it was, didnt you notice my off topic (O.T)
in the subject? Theres enough spam on the list and I
didnt want to offend anyone so made sure I put it
there.

Will come back if I face problems, thanks for your
help once again.

Cheers!
Ryan


--- Robert Cummings <[EMAIL PROTECTED]> wrote:

> On Fri, 2006-08-18 at 08:30 -0700, Ryan A wrote:
> > Hello,
> > I am working on a php project that needs a little
> > extra JS/DHTML solution. I am sure some of you
> might
> > have come to use something like this before,
> please
> > recommend a solution (commerial solutions are fine
> /
> > willing to pay)
> > 
> > Basically, I will have a page with around 10
> questions
> > for students and then two buttons for [HINT] and
> > [SOLUTION]
> > 
> > When either of these buttons/text is clicked the
> > resulting text should be displayed in the
> side/bottom
> > cell, the user should also be able to 'close' this
> > resulting explanation.
> > 
> > Note, on each page there will be around 10
> questions,
> > so each of these questions will have a hint &
> solution
> > button/text.
> 
> Will you have two buttons for each question? So that
> you get the
> hint/solution on a question by question basis? The
> solution is quite
> simple:
> 
> 
> 
>  type="text/javascript">
> 
> var hints = new Array();
> hints[1] = 'Hint for question 1';
> hints[2] = 'Hint for question 2';
> hints[3] = 'Hint for question 3';
> hints[4] = 'Hint for question 4';
> //...
> 
> var solutions = new Array();
> solutions[1] = 'Solution for question 1';
> solutions[2] = 'Solution for question 2';
> solutions[3] = 'Solution for question 3';
> solutions[4] = 'Solution for question 4';
> //...
> 
> function showHint( id )
> {
> hideSolution();
> 
> var h = document.getElementById(
> 'questionHint' );
> h.innerHTML = hints[id];
> h.style.display = '';
> }
> 
> function hideHint()
> {
> var h = document.getElementById(
> 'questionHint' );
> h.style.display = 'none';
> }
> 
> function showSolution( id )
> {
> hideHint();
> 
> var s = document.getElementById(
> 'questionSolution' );
> s.innerHTML = solutions[id];
> s.style.display = '';
> }
> 
> function hideSolution()
> {
> var s = document.getElementById(
> 'questionSolution' );
> s.style.display = 'none';
> }
> 
> 
> 
> blah blah blah blah blah blah
> 
> 
> Question 1 ...
>  onclick="showHint( 1 ); return
> false;" />
>  onclick="showSolution( 1 );
> return false;" />
> 
> 
> Question 2 ...
>  onclick="showHint( 2 ); return
> false;" />
>  onclick="showSolution( 2 );
> return false;" />
> 
> 
> Question 3 ...
>  onclick="showHint( 3 ); return
> false;" />
>  onclick="showSolution( 3 );
> return false;" />
> 
> 
> Question 4 ...
>  onclick="showHint( 4 ); return
> false;" />
>  onclick="showSolution( 4 );
> return false;" />
> 
> ...
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> I'll leave it to you as an exercise to adapt it
> properly in PHP using
> variables and loops instead of harded coded content
> :) BTW, this is not
> PHP, but I'm feeling benevolent today ;)
> 
> Cheers,
> Rob.
> -- 
>
..
> | InterJinn Application Framework -
> http://www.interjinn.com |
>
::
> | An application and templating framework for PHP.
> Boasting  |
> | a powerful, scalable system for accessing system
> services  |
> | such as forms, properties, sessions, and caches.
> InterJinn |
> | also provides an extremely flexible architecture
> for   |
> | creating re-usable components quickly and easily. 
> |
>
`'
> 
> 


--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Ryan A
Hey Tedd,

> Would this be something that would select
> questions/hints/and 
> solutions from a larger dB?

No db, this page would be generated via a DB query but
the answers have to already be on the local page and
accessable to the JS, I dont want to complicate
matters using AJAX either

 
> Also, would pop-ups? work -- I know you said you
> wanted data to the 
> side or below, but that requires a refresh of some
> type (ajax). 

Nope, I have little choice in the matter, this has
already been decided to have to show up in cell at the
side or bottom, no popups as this window itself will
be a popup.

> You might also look into "tool-tips" via css -- I
> think that would work.

Thanks, will do

 
> If you need any help, just ask.

Thanks, but thats always the case with you!

Cheers!
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Ryan A
Hey Ray/Tedd,
Thanks for replying guys.


Ray, Checked out the Y! library, not really to my
needs and I really doubt I need a whole library to do
this.

Tedd,
 
> Ryan:
> 
> You said:
> 
> ... willing to pay.
> 
> Music to my ears.
> 

Happy to have helped ;D



> This does not do what you want, but I am sure it can
> be modified to do so.
> 
> http://www.webbytedd.com/c1/
> 

Problem is, it didnt work in FF, I checked in IE and
there was no problem.

What I need is real simple, possible just a DIV
tag as Ray pointed out, but with a little
functionality to close/show the hints and
suggestions.. and should look decent.
The reason I dont mind going in for a commerical
solution is they tend to have some better display
options and the code is totally generated, new
question new code generated, simple as that. When
things go wrong its a b1t*h to debug of course!

Thanks!
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Ryan A
Hello,
I am working on a php project that needs a little
extra JS/DHTML solution. I am sure some of you might
have come to use something like this before, please
recommend a solution (commerial solutions are fine /
willing to pay)

Basically, I will have a page with around 10 questions
for students and then two buttons for [HINT] and
[SOLUTION]

When either of these buttons/text is clicked the
resulting text should be displayed in the side/bottom
cell, the user should also be able to 'close' this
resulting explanation.

Note, on each page there will be around 10 questions,
so each of these questions will have a hint & solution
button/text.

Thanks in advance,
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [PHP] Re: A way to stop spam on this list

2006-08-12 Thread Ryan A
Hey,


> Late answer,
> 
> but I was coming back yesterday from Palestine,
> after the Israelien
> Terror Authority had arrest me for making tonns of
> photos and Videos
> about Israeli military crime... (shooting children
> and pregnant women)


Lets keep religion, conflicts, politics and
crappy/stupid messages (like the one above) out of the
list the 419 Nigerian scam is more interesting
than the above.

I am subscribed for PHP, if I want two different
versions of "todays news" I can go to Al-Jazeera or
one of the western news sites.

-Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



RE: [PHP] database connections

2006-07-24 Thread Ryan A


--- "Kilbride, James P." <[EMAIL PROTECTED]>
wrote:

> While that kind of query structure can be a huge
> issue the biggest
> problem, and performance penalty, occurs if the
> programmer is opening
> and closing actual real connections. A good
> structure would use a
> singleton connection that is opened only the first
> time it is called and
> the rest of the time returns the connection object
> already opened. Or,
> use pooling or similar types of things. You will get
> orders of magnitude
> increase in speed by not reopening the database
> multiple times per page
> especially if you are seeing 15,20 or especially
> hundreds of
> connections. Sometimes though you have no real
> choice but to build a
> system that has to generate multiple queries, so
> don't judge the page
> simply on the number of queries but on the
> completity of the reporting
> and the number of database connections opened(you
> will occasionally need
> more than one if you arn't pulling all the results
> at once, using
> cursors or partial retrievals instead and have to
> have multiple result
> sets open at any given time).
> 
> James Kilbride 

Hey James,
Thanks for replying.

Sorry, I guess i was not clear on that.

Its just one connection, I meant 15-20 queries not
connections.

Thanks!
Ryan

--
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



  1   2   3   4   5   6   7   8   9   10   >