Re: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Jim Lucas
Here is a link to the reworked source ran through highlight_file() so you can see the comments and such. I think I have caught everything that I can think of. Of course, not having the DB structure & data to work with, I had to guess at a few things. Hope I got it right... http://www.cmsws.

Re: [PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
On Wed, 2007-06-13 at 13:21 +0800, Crayon Shin Chan wrote: > Not to mention slower, clumsier and more bandwidth hungry than a mailing > list. It's time you did them a favour and show them that mailing lists > are nothing to be afraid of. Absolutely! I couldn't agree more! It is really very diff

Re: [PHP] PHP list as a blog

2007-06-12 Thread Crayon Shin Chan
On Wednesday 13 June 2007 12:39, Paul Scott wrote: > Our interns and students specifically. They are all dead scared of > joining mailing lists in general, and find that using a web based > prettier interface is much easier and friendlier. Not to mention slower, clumsier and more bandwidth hungr

RE: [PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
On Tue, 2007-06-12 at 16:02 -0500, Richard Lynch wrote: > > OK, downed it. Will figure out a regular expression to strip out the > > email addresses when I have had some coffee in the morning I have added a regex to strip out the mail addresses and replace them with a message saying that they ha

RE: [PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
On Tue, 2007-06-12 at 16:02 -0500, Richard Lynch wrote: > I'm not sure we need yet another archive of the list, though I suppose > having it on a blog with the RSS and whatnot all built-in is kinda > nifty, possibly, for some users somewhere. Our interns and students specifically. They are all de

RE: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 23:12 -0400, Jake McHenry wrote: > I've been reading along, very informative :) I found Osama within 20 seconds > and as someone posted already, looking for his head wouldn't be much of a > task for a computer. > > Has anyone tried cracking/hacking what Microsoft has done wit

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
This is everything with the last lines being. And those are the final recordset commands set in by Dreamweaver. http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Untitled Document market

Re: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Jim Lucas
Take a look again. This can't be ALL your code Your last line is Where is the rest of your file??? Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Jake McHenry
I've been reading along, very informative :) I found Osama within 20 seconds and as someone posted already, looking for his head wouldn't be much of a task for a computer. Has anyone tried cracking/hacking what Microsoft has done with the animal pictures? That seems rather easy for even preschoole

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread tedd
At 12:29 PM -0400 6/12/07, Robert Cummings wrote: On Tue, 2007-06-12 at 18:19 +0200, Tijnema wrote: On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2007-06-12 at 12:01 -0400, Robert Cummings wrote: > > On Tue, 2007-06-12 at 11:56 -0400, Robert Cummings wrote: > > > > > > >

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
-Original Message- From: BSumrall [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 7:30 PM To: 'Dan Shirah' Cc: 'php-general@lists.php.net' Subject: RE: [PHP] Looking for help with forms/variables and an array! I thank you kindly for your pointers. It did really help me with getti

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
-Original Message- From: BSumrall [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 7:52 PM To: '[EMAIL PROTECTED]' Subject: RE: [PHP] Looking for help with forms/variables and an array! Don't be a hater! :o) I know I am a newbie for flat out application programming. I am used to j

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
_ From: BSumrall [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 8:46 PM To: 'Jim Lucas' Cc: 'php-general@lists.php.net' Subject: RE: [PHP] Looking for help with forms/variables and an array! I had done that before, But here it goes again because I have learned a little

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
I had done that before, But here it goes again because I have learned a little bit more -> establish db connect -> drop down box stores result as a variable -> first initial query performed -> query array established -> drop down box 2 is saved as a variable -> variable 2 filters query 1

[PHP] need to collect credit card details

2007-06-12 Thread Ross
I have a paypal account setup and am going to upgrade to the virtual terminal, however the client would like to collect the credit card details as security (he is a hotelier) Is it possible to securely send these details via the internet or should I suggest he just gets them to phone them throu

Re: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Jim Lucas
Are you wanting to setup some sorta pagination, or just get the results from the DB limited by the selected option in the form? oh, where is your second form in this example? In pseudo code, write out what you are attempting to do? -- Jim Lucas "Some men are born to greatness, some achiev

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
Is there much support for it? I didn't seem to find much support on ajax. And I think this is the win all, kill all. PhP seems now and has been granddaddy of Linux file handlers just next to Perl or Python. For those whom do not touch Microsoft for anything other than play movies but survive on b

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
I thank you kindly for your pointers. It did really help me with getting further. Persons like yourself are truly talented to be able and bang out the theory like that on the fly. Only problem is that I am using php to learn code for the first real time. The Microsoft stuff started to throw me off

Re: [PHP] What can cause session_destroy to fail? -- thanks!

2007-06-12 Thread Mattias Thorslund
Richard Lynch wrote: > On Mon, June 11, 2007 8:36 pm, Mattias Thorslund wrote: > >> One of my clients just received a PHP warning that session_destroy() >> failed. Using the default session handler (with tmp files), what are >> the >> most likely things that can cause session_destroy() to return

Re: [PHP] Going from simple to super CAPTCHA OT

2007-06-12 Thread tedd
At 4:33 PM -0500 6/12/07, Richard Lynch wrote: !!!The remainder is NOT directed to any one specific person!!! Perhaps we should consider a moratorium on posts about CAPTCHA, or some kind of limitation here... It's getting old fast... Perhaps only allow actual implementations and actual cracks

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
I, I, sir! I changed it back! :o) Point noted! -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 1:24 PM To: BSumrall Cc: php-general@lists.php.net Subject: RE: [PHP] Looking for help with forms/variables and an array! On Tue, 2007-06-12 at

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
Wow, Thank you! You appear to have gotten me 90% towards my mission final. mysql_select_db($database_ftn, $ftn); @extract($_POST); $query_Recordset1 = "SELECT * FROM lstng_tbl WHERE price_range = '$select1'"; echo $query_Recordset1; $query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Reco

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread tedd
> >http://shorl.com/nomojeryprafri > > Cheers, > Rob. Hmm, LOL Ok, found him ;) He's under the ground ... :P Heheh, nah, not this time... he's in one of the bumper cars :) Cheers, Rob. That would have kept me out. I must have spent ten minutes looking at that thing and I did no

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread tedd
At 6:19 PM +0200 6/12/07, Tijnema wrote: On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-06-12 at 12:01 -0400, Robert Cummings wrote: On Tue, 2007-06-12 at 11:56 -0400, Robert Cummings wrote: > > > (1 * 100) / 100 = .10 = 10% of the time Bad math alert... (

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 3:51 pm, Eric Butera wrote: > Guess that patch to prevent it from being spidered is a bit late. A noindex,nofollow patch for phpinfo() is a Good Idea, imho. Patch it, if it isn't already. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 7:18 am, tedd wrote: > At 4:37 PM -0400 6/11/07, Daniel Brown wrote: >> I'm going to try to knock out a >>proof-of-concept later this week if I can to bring some of it >>together. >> >>-- >>Daniel P. Brown > > > Daniel et al: > > While thinking about proof-of-concepts, think

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 2:06 pm, Daniel Brown wrote: > Okay, here's something I whipped up today: > > http://pilotpig.com/captcha/index.php > > Works pretty well, but keep in mind that it's in the very early > stages. I randomized the position and size to assist in throwing off > Turing

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 16:05 -0500, Richard Lynch wrote: > On Tue, June 12, 2007 7:01 am, tedd wrote: > > I was thinking about this the other day -- computers are fast and > > people are generally slow. So, instead of making the time short, > > examine how fast the answer was obtained. Immediate = c

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 10:49 am, tedd wrote: > Now, how is a bot going to figure that out? The bot doesn't figure any damn thing out. A human figures it out, and programs the bot to do it. If you're just fighting a bot, any captcha will work. If you're fighting an actual human, any captcha can be

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 7:01 am, tedd wrote: > I was thinking about this the other day -- computers are fast and > people are generally slow. So, instead of making the time short, > examine how fast the answer was obtained. Immediate = computer; > delayed = human. > > Even an easy LETTER CAPTCHA take

RE: [PHP] PHP list as a blog

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 3:10 pm, Paul Scott wrote: > > On Tue, 2007-06-12 at 14:56 -0500, Jay Blanchard wrote: >> + 10*12^23, I don't want to be that famous. >> > OK, downed it. Will figure out a regular expression to strip out the > email addresses when I have had some coffee in the morning I'm no

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, June 12, 2007 3:40 pm, Tijnema wrote: > A PFP (Pixel-For-Pixel) Approach would do the job, but I don't think > there exists software yet for it. I would have to get the file format > of the bitmap you're using (PNG I Guess), and then pa

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 3:40 pm, Tijnema wrote: > A PFP (Pixel-For-Pixel) Approach would do the job, but I don't think > there exists software yet for it. I would have to get the file format > of the bitmap you're using (PNG I Guess), and then parse it PFP. Oh, the software exists. http://php.net/im

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, June 12, 2007 9:33 am, Tijnema wrote: > I meant reverse order :P That would be pretty broken. First, you should;ve seen this as a joke that replies to the previous messages. There's no guarantee that browsers will present the input

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 9:33 am, Tijnema wrote: > I meant reverse order :P That would be pretty broken. There's no guarantee that browsers will present the inputs in any order at all, even though they all seem (so far) to follow the convention of presenting them in the order they appear in the form

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Eric Butera
On 6/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, June 12, 2007 2:41 pm, Eric Butera wrote: > Hopefully nobody has phpinfo just sitting out on a production server. A quick Google: http://www.google.com/search?hl=en&q=%22Zend+logo+This+program+makes+use+of+the+Zend+Scripting+Language+E

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 6:41 am, tedd wrote: > If my dot-captcha holds up against Tijnema, we could think of various > ways to combine both. E. Now that I've looked at the source, how do you stop: http://sperling.com', '/examples/dot-captcha/index.php', 'Submit.x=200&Submit.y=50'); ?> Spammer

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 2:41 pm, Eric Butera wrote: > Hopefully nobody has phpinfo just sitting out on a production server. A quick Google: http://www.google.com/search?hl=en&q=%22Zend+logo+This+program+makes+use+of+the+Zend+Scripting+Language+Engine%3A%22&btnG=Google+Search will tell you that you

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, June 12, 2007 6:42 am, Stut wrote: > tedd wrote: >> At 7:38 PM +0200 6/11/07, Tijnema wrote: >>> >>> Well, if you think this is the uncrackable* solution, create it and >>> i'll see if I can crack it ;) >>> >>> Tijnema >>> >>> *

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 6:42 am, Stut wrote: > tedd wrote: >> At 7:38 PM +0200 6/11/07, Tijnema wrote: >>> >>> Well, if you think this is the uncrackable* solution, create it and >>> i'll see if I can crack it ;) >>> >>> Tijnema >>> >>> * I hope you don't mean the same uncrackable as AACS did:

Re: [PHP] What can cause session_destroy to fail?

2007-06-12 Thread Richard Lynch
On Mon, June 11, 2007 8:36 pm, Mattias Thorslund wrote: > One of my clients just received a PHP warning that session_destroy() > failed. Using the default session handler (with tmp files), what are > the > most likely things that can cause session_destroy() to return false? > > Thanks for any sugge

Re: [PHP] weird. iceweasel crash my laptop after i use costum sessions

2007-06-12 Thread Richard Lynch
Show us your source for the session queries and any loops that surround that. Most likely, you have an error in there. Or, even more likely, you have a: header("Location: xxx"); where xxx ends up putting you back on the same page... Then you execute header("Location: xxx") again. This puts you

Re: [PHP] Login page error

2007-06-12 Thread Richard Lynch
On Mon, June 11, 2007 9:28 pm, Humani Power wrote: > Hi! Im trying to make a login page. I have searched for examples that > makes > me check the user name with a database, and the one that suits better > is > this code. > // Perhaps you have a BLANK LINE right here? // Even a BLANK LINE counts a

Re: [PHP] Persistent MySQL Connection

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 12:16 am, PHP Mailing List wrote: > Can I maintain just one mysql connection resource to all my pages per > user session. As far as I knows create connection is more expensive > than > executing queries ? > > Any reference how to make efficient for connection resources ? Plea

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 12:02 pm, BSumrall wrote: > Every single example on the internet is for register_globals = on. Actually, this is not at all true. And, really, fixing the example before you run it to not need register_globals is the way to go. > As far as the brackets, I tried with or witho

RE: [PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
On Tue, 2007-06-12 at 14:56 -0500, Jay Blanchard wrote: > + 10*12^23, I don't want to be that famous. > OK, downed it. Will figure out a regular expression to strip out the email addresses when I have had some coffee in the morning --Paul All Email originating from UWC is covered by disclaimer

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Richard Lynch
AJAX simply creates an HTTP dialog between the browser and a server (probably your server) for an ongoing interactive user experience. There is nothing specific to Microsoft about it, other than that Microsoft actually did first create the XmlHttpRequest object for some other stupid purpose, befor

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-06-12 at 21:46 +0200, Tijnema wrote: > On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-06-12 at 15:06 -0400, Daniel Brown wrote: > > > > > > Okay, here's something I whipped up today: > > > > > > h

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 3:34 am, BSumrall wrote: > I got a little bit further, but still feel like the "monkey with a > light-bulb"! Could be worse. You could be a monkey with an army. [as in 'W'] :-v -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indi

Re: [PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
On Tue, 2007-06-12 at 14:48 -0500, Richard Lynch wrote: > I think you should take it DOWN until you can obfuscate the emails. I am working on it at the moment. It seems that it only shows some people's addresses - presumably those that have the reply to thing set? --Paul All Email originating f

Re: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 3:20 am, BSumrall wrote: > Dreamweaver help me with a good part of this, No comment... > A selection box has 4 options, php queries the Mysql database for > matching > options. > > Then a second options box with another 4 options filters the query > even > more. When the us

RE: [PHP] PHP list as a blog

2007-06-12 Thread Jay Blanchard
[snip] I think you should take it DOWN until you can obfuscate the emails. I don't really need yet another place for my email address to be spam-harvested, thank you very much. :-) :-) :-) PS And you've only got 16 Tidy HTML warnings to get rid of before it's valid HTML, so you might as well do t

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 21:46 +0200, Tijnema wrote: > On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-06-12 at 15:06 -0400, Daniel Brown wrote: > > > > > > Okay, here's something I whipped up today: > > > > > > http://pilotpig.com/captcha/index.php > > > > > > Work

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 6:25 am, tedd wrote: > At 6:22 PM +0200 6/11/07, Tijnema wrote: >>Server builds up a database of pictures, client does the same with >> MD5 >>check, and problem solved...:) >> >>Tijnema > > Tijnema: > > Not exactly, I don't think you could MD5 this: > > http://sperling.com/exa

Re: [PHP] PHP list as a blog

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 1:52 pm, Paul Scott wrote: > I have set up our new Chisimba blog system (GPL, > http://avoir.uwc.ac.za) > to blog all of the posts to this list. > > Please check it out at > http://196.21.45.50/fsiu/chisimba_framework/app/index.php?module=blog&action=allblogs > > and let me kn

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-06-12 at 15:06 -0400, Daniel Brown wrote: > > Okay, here's something I whipped up today: > > http://pilotpig.com/captcha/index.php > > Works pretty well, but keep in mind that it's in the very early > stages. I rando

Re: [PHP] Effect of syntax error in php.ini

2007-06-12 Thread Richard Lynch
Check Apache error logs. PHP probably just quits reading the php.ini and starts up with the default settings. On Tue, June 12, 2007 1:55 pm, Clive Gould wrote: > Hi > > I have come across some very strange behavior with php-4.3.9-3.22.5 > when > using Moodle 1.8+ on a CentOS 4.5 Linux platform. >

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Eric Butera
On 6/12/07, Richard Lynch <[EMAIL PROTECTED]> wrote: The downside of that is that something as simple as: will dump your password out as part of $_ENV or $_SERVER That's probably NOT a good idea in many environments, but an excellent idea in some. Security cannot be evaluated in isolation. An

Re: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread David Giragosian
Tommy, Since SQL Server may loom on my horizon, I've tried connecting to a SQL Server 2000 db on my network. I got it to work _without_ any port after the IP in mssql_connect(). I'm using PHP 5.2.0 from windows XP to a Windows 2000 box running SQL Server. I used SQL Server Authentication to creat

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 7:47 am, Stut wrote: > Dave Goodchild wrote: >> Unless some server config error causes that stuff to be output on >> the page? >> I tend to put such functions in a .inc file and amend the .htaccess >> to >> prevent download. > > Unless some server config error causes it to i

Re: [PHP] Re: efficient log system

2007-06-12 Thread Richard Lynch
Since there are probably a very limited number of actions a user can take, you could probably easily reduce this by numbering each action: define(1, 'logged in'); define(2, 'logged out'); define(3, 'uploaded photo'); Your DB then table might then look like: user_id action_id notes 42 1

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 15:06 -0400, Daniel Brown wrote: > > Okay, here's something I whipped up today: > > http://pilotpig.com/captcha/index.php > > Works pretty well, but keep in mind that it's in the very early > stages. I randomized the position and size to assist in throwing off >

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Daniel Brown
On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-06-12 at 19:34 +0200, Tijnema wrote: > On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-06-12 at 19:23 +0200, Tijnema wrote: > > > On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2007

Re: [PHP] efficient log system

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 6:26 am, Alain Roger wrote: > I would like to create a log system to keep a trace of all users' > actions > (log-in, remove, change or update data, and so on...). > What should i do or to what should i take care to not have problem ? > > I was thinking to create a folder on my

Re: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Dan Shirah
Wouldn't a little javascript solve this problem?? Have your first dropdown menu, then when an option is selected use a javascript Onchange function to refresh (post) the page to itself. This would set the selected option as your "form1" value. Then just write a simple query using that value to

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 8:08 am, Dave Goodchild wrote: > Sure, I usually put these files outside the docroot - unless I am in > some > f**ked-up hosting environment that doesn't let me change the include > path... If one finds oneself in such an environment, or one in which there *IS* no directory o

Re: [PHP] Re: any security problems with this?

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 7:58 am, Eric Butera wrote: > On 6/12/07, Stut <[EMAIL PROTECTED]> wrote: >> Dave Goodchild wrote: >> > Unless some server config error causes that stuff to be output on >> the page? >> > I tend to put such functions in a .inc file and amend the >> .htaccess to >> > prevent do

[PHP] Effect of syntax error in php.ini

2007-06-12 Thread Clive Gould
Hi I have come across some very strange behavior with php-4.3.9-3.22.5 when using Moodle 1.8+ on a CentOS 4.5 Linux platform. If I accidentally corrupt the php.ini file as follows and restart Apache all is well and admin/index.php displays correctly. The corrupt section in php.ini is shown below:

Re: [PHP] any security problems with this?

2007-06-12 Thread Richard Lynch
On Tue, June 12, 2007 7:01 am, Ross wrote: > I have a page of functions that I include in my page head. In this I > have a > function to connect. I can then just call this on each page when i > need it. > Does doing it this way cause any potential security risks? Of course there is risk. Everythi

Re: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Richard Lynch
You may want to try using the Sybase drivers. MS basically bought Sybase and re-named it MS SQL and then broke a lot of stuff :-) One of the things they haven't broken (yet) is the basic Sybase driver functionality to send queries. For sure, ' versus " won't make any difference. You may want to

[PHP] PHP list as a blog

2007-06-12 Thread Paul Scott
I have set up our new Chisimba blog system (GPL, http://avoir.uwc.ac.za) to blog all of the posts to this list. Please check it out at http://196.21.45.50/fsiu/chisimba_framework/app/index.php?module=blog&action=allblogs and let me know what you think! Thanks --Paul All Email originating from

Re: [PHP] php script from bat file

2007-06-12 Thread Richard Lynch
php.exe expects a PHP script as an argument, usually. You can run it interactively with -a or use -i to get phpinfo output and so on, but php.exe with nothing at all will run and not do much of anything. On Tue, June 12, 2007 11:30 am, Bosky, Dave wrote: > What's the syntax I need to use to execu

Re: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Dan Shirah
In my PHP page I have the following: $sql = mssql_connect ("xx.xx.xx.xx:", "xx", "xx"); $conn=mssql_select_db("xx", $sql); Since both servers are within your local network, you should be able to connect as follows: $connection = mssql_connect('SERVERNAME','username','password') or die ('

RE: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Jim Moseby
> -Original Message- > From: Tijnema [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 12, 2007 1:34 PM > To: Robert Cummings > Cc: tedd; Stut; Jim Lucas; php-general@lists.php.net > Subject: Re: [PHP] Going from simple to super CAPTCHA > > > On 6/12/07, Robert Cummings <[EMAIL PROTECTED]

Re: [PHP] php script from bat file

2007-06-12 Thread Tijnema
On 6/12/07, Bosky, Dave <[EMAIL PROTECTED]> wrote: What's the syntax I need to use to execute a PHP script from a batch file? PHP is installed in 'C:\PHP' and the script I want to run is in 'C:\Inetpub\scripts\run.php'. I've created a Windows batch file which executes from the 'C:\PHP' dire

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 19:34 +0200, Tijnema wrote: > On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-06-12 at 19:23 +0200, Tijnema wrote: > > > On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2007-06-12 at 18:19 +0200, Tijnema wrote: > > > > > On 6/12/0

Re: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Jim Lucas
BSumrall wrote: It doesn't like the curly brackets either! Brad if this is within PHP, the '{' and '}' are within double quotes (which they seem to be), These examples should all do the same thing. $query_Recordset1 = "SELECT * FROM lstng_tbl WHERE price_range = '$select1'"; $query_Records

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-06-12 at 19:23 +0200, Tijnema wrote: > On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-06-12 at 18:19 +0200, Tijnema wrote: > > > On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2007

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 19:23 +0200, Tijnema wrote: > On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-06-12 at 18:19 +0200, Tijnema wrote: > > > On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2007-06-12 at 12:01 -0400, Robert Cummings wrote: > > > > > O

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 13:02 -0400, BSumrall wrote: > The purpose for register_globals is for testing and functionality purposes > only. > Every single example on the internet is for register_globals = on. That's no excuse... and you're wrong. > I am very aware of the security risk of it. Ok... a

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-06-12 at 18:19 +0200, Tijnema wrote: > On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-06-12 at 12:01 -0400, Robert Cummings wrote: > > > On Tue, 2007-06-12 at 11:56 -0400, Robert Cummings wrote: > > > > >

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
It doesn't like the curly brackets either! Brad -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 12, 2007 12:39 PM To: BSumrall Cc: php-general@lists.php.net Subject: Re: [PHP] Looking for help with forms/variables and an array! BSumrall wrote: > I am sur

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
The purpose for register_globals is for testing and functionality purposes only. Every single example on the internet is for register_globals = on. I am very aware of the security risk of it. Get it working and then change it back. There is plenty of literature on how to edit existing working code

Re: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Jim Lucas
BSumrall wrote: I am sure I am on the right track. Register globals is turned on! I am getting the following error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[''] LIMIT 0, 1' at line 1 mysql_select_db(

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 12:19 -0400, BSumrall wrote: > I am sure I am on the right track. > Register globals is turned on! > > I am getting the following error: > > You have an error in your SQL syntax; check the manual that corresponds to > your MySQL server version for the right syntax to use nea

RE: [PHP] php script from bat file

2007-06-12 Thread Jay Blanchard
[snip] What's the syntax I need to use to execute a PHP script from a batch file? PHP is installed in 'C:\PHP' and the script I want to run is in 'C:\Inetpub\scripts\run.php'. I've created a Windows batch file which executes from the 'C:\PHP' directory and contains a single line 'php.exe C:\Inetp

[PHP] php script from bat file

2007-06-12 Thread Bosky, Dave
What's the syntax I need to use to execute a PHP script from a batch file? PHP is installed in 'C:\PHP' and the script I want to run is in 'C:\Inetpub\scripts\run.php'. I've created a Windows batch file which executes from the 'C:\PHP' directory and contains a single line 'php.exe C:\Inetpu

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 18:19 +0200, Tijnema wrote: > On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-06-12 at 12:01 -0400, Robert Cummings wrote: > > > On Tue, 2007-06-12 at 11:56 -0400, Robert Cummings wrote: > > > > > > > > > > > > (1 * 100) / 100 = .10 = 10% of

RE: [PHP] Looking for help with forms/variables and an array!

2007-06-12 Thread BSumrall
I am sure I am on the right track. Register globals is turned on! I am getting the following error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[''] LIMIT 0, 1' at line 1 mysql_select_db($database_ftn, $ft

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Tijnema
On 6/12/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-06-12 at 12:01 -0400, Robert Cummings wrote: > On Tue, 2007-06-12 at 11:56 -0400, Robert Cummings wrote: > > > > > > (1 * 100) / 100 = .10 = 10% of the time > > Bad math alert... (1 * 100) / 100 = 10;) > >

Re: [PHP] efficient log system

2007-06-12 Thread Eric Butera
On 6/12/07, Alain Roger <[EMAIL PROTECTED]> wrote: Hi, I would like to create a log system to keep a trace of all users' actions (log-in, remove, change or update data, and so on...). What should i do or to what should i take care to not have problem ? I was thinking to create a folder on my se

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 12:01 -0400, Robert Cummings wrote: > On Tue, 2007-06-12 at 11:56 -0400, Robert Cummings wrote: > > > > > > (1 * 100) / 100 = .10 = 10% of the time > > Bad math alert... (1 * 100) / 100 = 10;) > > Still the same answer though, was just mixing what I

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 11:56 -0400, Robert Cummings wrote: > On Tue, 2007-06-12 at 11:49 -0400, tedd wrote: > > At 2:12 PM +0100 6/12/07, Stut wrote: > > >The submit image is bigger than the circle, and I'm guessing Tedd is > > >checking the coords passed through. > > > > > >-Stut > > > > Yes, tha

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 11:49 -0400, tedd wrote: > At 2:12 PM +0100 6/12/07, Stut wrote: > >The submit image is bigger than the circle, and I'm guessing Tedd is > >checking the coords passed through. > > > >-Stut > > Yes, that's all the technique does for now. It just checks the submit > x and sub

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread tedd
At 2:12 PM +0100 6/12/07, Stut wrote: The submit image is bigger than the circle, and I'm guessing Tedd is checking the coords passed through. -Stut Yes, that's all the technique does for now. It just checks the submit x and submit y and determines if those coordinates lie within the circle

Re: [PHP] Re: efficient log system

2007-06-12 Thread Jim Lucas
Christian Hänsel wrote: Hello Alain, I can just tell you from my experience. I have recently created a, in my eyes, pretty big project, and wanted to track everything, starting from user navigation over search queries to login/out times, article printout times and count, photo views and every

Re: [PHP] What can cause session_destroy to fail?

2007-06-12 Thread Mattias Thorslund
Jim Lucas wrote: > Mattias Thorslund wrote: >> Jim Lucas wrote: >>> Mattias Thorslund wrote: Hi, One of my clients just received a PHP warning that session_destroy() failed. Using the default session handler (with tmp files), what are the most likely things that can ca

Re: [PHP] Going from simple to super CAPTCHA

2007-06-12 Thread Robert Cummings
On Tue, 2007-06-12 at 11:53 -0300, zerof wrote: > This is another intersting example of CAPTCHA, from - Carnegie Mellon > University: > > http://recaptcha.net/ That's a pretty cool idea... doesn't necessarily improve CAPTCHA per se, but it does give it some usefulness beyond preventing spam. Ch

Re: [PHP] What can cause session_destroy to fail?

2007-06-12 Thread Jim Lucas
Mattias Thorslund wrote: Jim Lucas wrote: Mattias Thorslund wrote: Hi, One of my clients just received a PHP warning that session_destroy() failed. Using the default session handler (with tmp files), what are the most likely things that can cause session_destroy() to return false? Thanks for

RE: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread Edward Kay
> All: > > I can't seem to connect to a SQL Server database with PHP. I have read the > php.net documentation and so many other forums on the Internet that my > eyes were literally blood shot. Today I thought I would try this route. > > I have PHP and Apache installed on my local machine. They wor

  1   2   >