Re: [PHP] Function Declared in Included File Not Being Found

2007-05-11 Thread Robert Cummings
Files are included/required at run-time. As such, the function has not been declared when you make reference to it since the require occurs later. Move the require to the top. As a test, feel free to explicitly define the function at the bottom without using a require. Cheers, Rob. On Fri, 2007-

Re: [PHP] Help with CURL please!

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 14:13 -0700, ray wrote: > I'm having a problem getting Curl to work properly...and I know its > because of this unique situation, so I'm hoping a CURL expert can help > me out. That's not very unique. More unique is when you have to rip out JavaScript cookie stuff and proce

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 19:59 -0700, [EMAIL PROTECTED] wrote: > Set ajaxObject.setRequestHeader("User-Agent","SecretName"); in > Javascript and check for it in PHP. Not fool-proof, but the average > person wouldn't be able to get in. Bleh, do it right. Don't settle for half-assed solutions that rely

Re: [PHP] Passing an array as a hidden variable

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 21:53 -0700, Todd Cary wrote: > When I use the following syntax, the 2 dimensional array loses > it's contents. Can an array be passed this way? > > $attend_ary_save .'>'; ?> No! RTFM! http://www.php.net/manual/en/language.types.type-juggling.php Cheers, Rob. -- .--

Re: [PHP] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-12 Thread Robert Cummings
On Fri, 2007-05-11 at 22:12 -0700, [EMAIL PROTECTED] wrote: > I don't see you giving a solution. The solution is the same as for any session in which you want to protect data. It hardly needs covering yet again. Read the archives. Cheers, Rob. > > On 5/11/07, Robert Cummings <

Re: [PHP] Question

2007-05-12 Thread Robert Cummings
On Sat, 2007-05-12 at 23:03 -0500, Richard Lynch wrote: > On Sat, May 12, 2007 7:19 pm, Dusan Novakovic wrote: > > Hi! > > I need a script which will run pop-up menu with the "Save As" button > > when I click on a link (e.g. Click ) so that I > > could save that file on my computer. In the example

Re: [PHP] Question

2007-05-12 Thread Robert Cummings
On Sun, 2007-05-13 at 00:24 -0400, Robert Cummings wrote: > On Sat, 2007-05-12 at 23:03 -0500, Richard Lynch wrote: > > On Sat, May 12, 2007 7:19 pm, Dusan Novakovic wrote: > > > Hi! > > > I need a script which will run pop-up menu with the "Save As" butt

Re: [PHP] Question

2007-05-13 Thread Robert Cummings
On Sun, 2007-05-13 at 00:33 -0500, Richard Lynch wrote: > > Here's your cookie: > http://l-i-e.com/cookie.php > :-) Bah, I was hoping for something a bit more tasty :/ ;) > PS > Does the one where I juke the URL to just be iwant.xyz work right at > least?... Yep. Cheers, Rob. -- .

Re: [PHP] GET variable unexpectedly assigned to session variable

2007-05-13 Thread Robert Cummings
On Sun, 2007-05-13 at 02:05 -0500, Richard Lynch wrote: > On Thu, May 10, 2007 2:00 pm, Robert Cummings wrote: > > BTW, what's the point of abbreviating short words like "user" to "usr" > > and "type" to "typ"? > > Mayb his '

Re: [PHP] Bounty, NOW!

2007-05-14 Thread Robert Cummings
Maybe you know what you're doing, more than likely you don't. Posting logins and passwords to your server on a public mailing list is usually tantamount to idiocy. Cheers, Rob. On Tue, 2007-05-15 at 01:20 -0400, Brad Sumrall wrote: > My good friend dropped the ball! > > Here is the gig, and les

Re: [PHP] Bounty, NOW!

2007-05-15 Thread Robert Cummings
On Tue, 2007-05-15 at 09:37 -0300, Martin Marques wrote: > Brad Sumrall wrote: > > I got 5 IP breaking Federal Regulations. > > Hehehehe > > Do you think you are not being logged? > > Yeah, and I bet those IP are from Kathmandu. :-D Did he even post the value of the bounty? I mean we're mostl

Re: [PHP] Question

2007-05-15 Thread Robert Cummings
On Tue, 2007-05-15 at 16:57 +0100, Alister Bulman wrote: > On 13/05/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Sat, 2007-05-12 at 23:03 -0500, Richard Lynch wrote: > > > > You may find this entertaining, and even useful: > > > http://richardlynch.bl

RE: [PHP] PHP 5.2 array() == null

2007-05-15 Thread Robert Cummings
On Tue, 2007-05-15 at 17:27 +0100, Edward Kay wrote: > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: 15 May 2007 16:48 > > To: php-general@lists.php.net > > Subject: [PHP] PHP 5.2 array() == null > > > > > > Hi people > > > > i was just curios to ask w

Re: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Robert Cummings
On Thu, 2007-05-17 at 16:26 +0100, Richard Davey wrote: > Hi all, > > I'm very happy to announce that I've just released my comprehensive > guide to installing, configuring and running Apache 2, PHP 4.4.7 and > PHP 5.2.2 on Windows XP. The guide is broken down into small > manageable sections and

Re: Re[4]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Robert Cummings
On Thu, 2007-05-17 at 17:19 +0100, Richard Davey wrote: > Hi Greg, > > Thursday, May 17, 2007, 5:01:18 PM, you wrote: > > >> There's always one ;) > > > No, there's more than one. > > Sure, but you're in the minority*, so what do I care? :) > > * I just took the Zend PHP IDE research poll, and

Re: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Robert Cummings
On Thu, 2007-05-17 at 12:46 -0400, Jon Anderson wrote: > Richard Davey wrote: > > Sure, but you're in the minority*, so what do I care? :) > > > > * I just took the Zend PHP IDE research poll, and at the end it gives > > you the chance to view the stats of everyone else who took the poll. > > Inter

Re: Re[6]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Robert Cummings
On Thu, 2007-05-17 at 13:13 -0400, Jason Pruim wrote: > On May 17, 2007, at 1:00 PM, Richard Davey wrote: > > > Hi Greg, > > > > Thursday, May 17, 2007, 5:49:45 PM, you wrote: > > > >>> Sure, but you're in the minority*, so what do I care? :) > > > >> I'm not asking you to care. Windoze still suc

Re: Re[6]: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Robert Cummings
On Fri, 2007-05-18 at 01:44 +0800, Crayon Shin Chan wrote: > On Friday 18 May 2007 01:00, Richard Davey wrote: > > > Viruses? God, that old bullshit ladened chestnut*. At least come up > > with some kind of valid OS argument, please. If you'd gone for > > 'competent use of the CPU', or 'effective

Re: [PHP] A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

2007-05-17 Thread Robert Cummings
On Thu, 2007-05-17 at 20:18 +0100, Stut wrote: > Richard Davey wrote: > > I'm very happy to announce that I've just released my comprehensive > > guide to installing, configuring and running Apache 2, PHP 4.4.7 and > > PHP 5.2.2 on Windows XP. The guide is broken down into small > > manageable sect

[PHP] Tipos about which CMS use

2007-05-17 Thread robert mena
Hi there, I'd like to replace my 'intranet' site with a CMS system to speed up the edit process. Some of my requirements are : - written in PHP :) - mysql based - documented/'well structured' - to allow development of customizations - ability to define which pages or sections are public and wh

Re: [PHP] Re: Confused about how exactly to output image using imagepng function

2007-05-17 Thread Robert Cummings
On Thu, 2007-05-17 at 20:55 -0400, itoctopus wrote: > Why are you creating your own captcha? Why not? Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :---

Re: [PHP] RE: Bounty

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 17:08 +0200, Tijnema ! wrote: > On 5/16/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > [snip] > > Where are the list administrators to ban this guy?? > > [/snip] > > > > This is an un-moderated list, so that makes us the police of our own > > list. > > > Yes, it might be a

Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: [PHP] People's misbehavior on the list

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 12:22 -0700, PHP Developer wrote: > some people don't remove the "Re:" prefix when answering to the questions It > opens a new topic on the list and that's not appropriate . > Thank ya Sounds like you should use a different client... or stop whining. I noticed your email cl

Re: [PHP] People's misbehavior on the list

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 14:35 -0500, Greg Donald wrote: > On 5/18/07, PHP Developer <[EMAIL PROTECTED]> wrote: > > some people don't remove the "Re:" prefix when answering to the questions > > It opens a > > new topic on the list and that's not appropriate . > > Thank ya > > Some people do not corr

Re: [PHP] People's misbehavior on the list

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 14:43 -0500, Greg Donald wrote: > On 5/18/07, Roger B.A. Klorese <[EMAIL PROTECTED]> wrote: > > Whoever said Gmail was a good mail client?! > > I give up, who? Tijnema! Cheers, Rob. -- .. | InterJinn Application F

Re: [PHP] People's misbehavior on the list

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 22:08 +0200, Tijnema ! wrote: > On 5/18/07, Danial Rahmanzadeh <[EMAIL PROTECTED]> wrote: > > plus 2853 mb FREE storage > > > 2853.822438 now, to be exact :) > > O wait, since I copied the amount of MB, it has changed already, it is > 2853.822762 now :) Anyone know if gmai

Re: [PHP] People's misbehavior on the list

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 15:16 -0500, Edward Vermillion wrote: > On May 18, 2007, at 2:55 PM, Robert Cummings wrote: > > > On Fri, 2007-05-18 at 14:35 -0500, Greg Donald wrote: > >> On 5/18/07, PHP Developer <[EMAIL PROTECTED]> wrote: > >>> some people don'

Re: [PHP] People's misbehavior on the list

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 16:23 -0400, Jason Pruim wrote: > On May 18, 2007, at 4:15 PM, Robert Cummings wrote: > > > On Fri, 2007-05-18 at 22:08 +0200, Tijnema ! wrote: > >> On 5/18/07, Danial Rahmanzadeh <[EMAIL PROTECTED]> wrote: > >>> plus 2853 mb FREE st

Re: [PHP] Include files....

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 16:20 -0400, Jason Pruim wrote: > On May 18, 2007, at 4:12 PM, Tijnema ! wrote: > > >> > >> > >> Thanks in advance for helping me through my obvious friday afternoon > >> brain fart... > >> > >> > > I guess you forget that defaults.php is a php file and needs to start > > wit

Re: [PHP] Include files....

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 22:31 +0200, Tijnema ! wrote: > On 5/18/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-18 at 16:20 -0400, Jason Pruim wrote: > > > On May 18, 2007, at 4:12 PM, Tijnema ! wrote: > > > > > > >> > > >

Re: [PHP] People's misbehavior on the list

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 16:35 -0400, Daniel Brown wrote: > On 5/18/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2007-05-18 at 22:08 +0200, Tijnema ! wrote: > > On 5/18/07, Danial Rahmanzadeh <[EMAIL PROTECTED]> wrote: > &g

Re: [PHP] People's misbehavior on the list

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 22:27 +0200, Tijnema ! wrote: > On 5/18/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-18 at 22:08 +0200, Tijnema ! wrote: > > > On 5/18/07, Danial Rahmanzadeh <[EMAIL PROTECTED]> wrote: > > > > plus 2853 mb FREE

Re: [PHP] People's misbehavior on the list

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 16:47 -0400, Daniel Brown wrote: > On 5/18/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Fri, 2007-05-18 at 22:27 +0200, Tijnema ! wrote: > > > On 5/18/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On

RE: [PHP] People's misbehavior on the list

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 16:42 -0500, Jay Blanchard wrote: > [snip] > ...some really funny and other not so funny stuff > [/snip] > > It Must Be Friday [tm] We're implementing a new system to help lighten up the list. It's called "Casual Post Fridays" (tm), where posts can be loosely, or quite p

Re: [PHP] Security Question, re directory permissions

2007-05-18 Thread Robert Cummings
On Fri, 2007-05-18 at 20:16 -0400, Al wrote: > How can anyone, other than the staff, get into my site? Far as I know, other > users can't get out of their own domain > space and into mine. Bugs in your code, bugs in third-party code, bugs in PHP itself, sometimes they can be abused to take adva

Re: [PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread Robert Cummings
On Sun, 2007-05-20 at 20:35 -0500, Greg Donald wrote: > On 5/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I am in the process of adding a part to my website which would include > > pictures, pdf files, txt files, and excel files. The files sizes > > could be anywhere on average of 100k

Re: [PHP] Uploading Files Should I use MySQL or Server for storage?

2007-05-20 Thread Robert Cummings
On Sun, 2007-05-20 at 23:11 -0500, Larry Garfield wrote: > A well-optimized and load balanced database-based setup will beat a badly > configured file system setup, sure. But will it beat a well-optimized and > load balanced file system setup? I would be very surprised. > > Really, it comes do

Re: [PHP] Re: Uploading Files Should I use MySQL or Server for storage?

2007-05-22 Thread Robert Cummings
On Tue, 2007-05-22 at 11:00 +0200, clive wrote: > itoctopus wrote: > > I have tried both, and I tell you that I really felt that the filesystem is > > a more convenient way of doing it. > > > I have to agree, filesystems were after all designed to store files. I > reckon reading a file from disk

Re: [PHP] ftp root dir?

2007-05-22 Thread Robert Cummings
On Tue, 2007-05-22 at 11:19 -0400, Al wrote: > I know that; but, I writing a script, that can be used on different servers, > which creates a directory and I want to > make certain it is created on the DOC ROOT. I don't want the user to have to > test the ftp connection with a ftp utility > pr

Re: [PHP] convert numerical day of week

2007-05-22 Thread Robert Cummings
On Tue, 2007-05-22 at 12:46 -0400, Bosky, Dave wrote: > How can I convert the numerical day of week to the string version? > > Example, if the day of the week is 1 I would like to print out 'Sunday'. I saw a bunch of bad examples given to you that completely ignore any available locale informatio

Re: [PHP] convert numerical day of week

2007-05-22 Thread Robert Cummings
On Tue, 2007-05-22 at 12:58 -0500, Greg Donald wrote: > On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > I saw a bunch of bad examples given to you that completely ignore any > > available locale information... so here's a better version: > > I see

Re: [PHP] convert numerical day of week

2007-05-22 Thread Robert Cummings
On Tue, 2007-05-22 at 14:32 -0400, Daniel Brown wrote: > On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2007-05-22 at 12:58 -0500, Greg Donald wrote: > > > On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > >

Re: [PHP] convert numerical day of week

2007-05-22 Thread Robert Cummings
On Tue, 2007-05-22 at 13:47 -0500, Greg Donald wrote: > On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Nothing said it was important, but why implement a half-assed solution > > when you can implement a superior solution in as much time? > > Your solution

Re: [PHP] convert numerical day of week

2007-05-22 Thread Robert Cummings
On Tue, 2007-05-22 at 15:00 -0400, Daniel Brown wrote: > > :: yawns :: > > After all the bickering, I wouldn't be surprised if the OP never > asks a question here again. Who's bickering? When did a simple discussion become bickering? Maybe you should take a nap... you're obviously tired.

Re: [PHP] convert numerical day of week

2007-05-22 Thread Robert Cummings
On Tue, 2007-05-22 at 17:13 -0500, Greg Donald wrote: > > My solution stands as the best one, for memory usage and speed. > Please benchmark it so you will learn from this experience. Yours is the least maintainable. I have nothing to learn from you that I didn't learn in kindergarten. Cheers, R

Re: [PHP] convert numerical day of week

2007-05-22 Thread Robert Cummings
On Tue, 2007-05-22 at 17:54 -0500, Greg Donald wrote: > On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Yours is the least maintainable. > > Hehe.. with 4 times as many lines of code and 160% more bytes of code > overall? > > > cat locale.php|grep

Re: [PHP] convert numerical day of week

2007-05-22 Thread Robert Cummings
On Tue, 2007-05-22 at 19:17 -0500, Greg Donald wrote: > On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > They didn't teach PHP where I attended kindergarten. Is that a Canadian > > > thing? > > > > Exactly, and I'm not about to learn

Re: [PHP] convert numerical day of week

2007-05-22 Thread Robert Cummings
On Tue, 2007-05-22 at 21:13 -0400, [EMAIL PROTECTED] wrote: > Mom! Dad! Stop fighting! In case anyone is wondering... I'm the Dad!! >:) Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :---

Re: [PHP] convert numerical day of week

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 10:31 +0300, Robin Vickery wrote: > On 22/05/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-05-22 at 13:47 -0500, Greg Donald wrote: > > > On 5/22/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > Nothing said

Re: [PHP] convert numerical day of week

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 09:23 -0500, Greg Donald wrote: > On 5/23/07, Robin Vickery <[EMAIL PROTECTED]> wrote: > > they're all bloated: > > > > print jddayofweek($day_number, 1); > > Must go --enable-calendar now :) Awww, I didn't notice it's a compile flag... hmmm, not so portable that way. Somet

Re: [PHP] Form Validation Issues

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 07:41 -0500, kvigor wrote: > > if($field == "conState" || $field == "schState" || $field == "strState") > //if these 3 fields are entered >{ >if($value != 'Alabama' || $value!= 'AL' || $value != 'Alaska' || $value!= > 'AK' || $value != 'Arizona' || $value!= 'AZ'

Re: [PHP] Form Validation Issues

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 10:17 -0500, kvigor wrote: > Thanks Dan, > > Work like a dream. I solute you. Don't look now Dan... but you're dissolving!!! *hehe* Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com

Re: [PHP] Form Validation Issues

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 10:10 -0500, Greg Donald wrote: > On 5/23/07, kvigor <[EMAIL PROTECTED]> wrote: > > [-- SNIPPITY SNIP SNIP --] > > != 'Texas' || $value!= 'TX' || $value != 'Utah' || $value!= 'UT' || $value > > != 'Vermont' || $value!= 'VT' || $value != 'Virginia' || $value!= 'VA' || > > $valu

Re: [PHP] Form Validation Issues

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 10:55 -0500, Greg Donald wrote: > On 5/23/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > You should really look into learning in_array() for stuff like this. > > > > Wouldn't that slow things down and increase the memory footprint? ;

Re: [PHP] Re: Form Validation Issues

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 11:16 -0500, Jared Farrish wrote: > > Abraham Maslow: "If the only tool you have is a hammer, you tend to see > every problem as a nail." $$ Robert Cummings: "if every problem can be described as a nail, then all you need is

[PHP] Swinging Hammers (was Re: Form Validation Issues)

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 11:51 -0500, Greg Donald wrote: > On 5/23/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Robert Cummings: > > > > "if every problem can be described as a nail, then all you > > need is a hammer." > > Don&#x

Re: [PHP] Help with php server and sockets

2007-05-23 Thread Robert Cummings
On Wed, 2007-05-23 at 16:24 -0700, Adz07 wrote: > i want to set up a php server that can communicate with a client (CLI PHP > Script). I can setup the server socket fine. What i need to know is whether > it is possible for the client to call a function in the servers php code and > the server retur

Re: [PHP] php hosting-mediatemple/dreamhost

2007-05-24 Thread Robert Cummings
On Thu, 2007-05-24 at 09:04 -0400, blackwater dev wrote: > Forgive me if this is a bit off topic but I currenly have several sites > hosted with dreamhost, it's cheap and well prone to be slow. Does anyone > have experience with mediatemple? I would just be running php/mysql sites. One of my cus

Re: [PHP] Form Validation Issues

2007-05-24 Thread Robert Cummings
On Thu, 2007-05-24 at 17:58 -0500, Richard Lynch wrote: > > On Wed, May 23, 2007 10:48 am, Robert Cummings wrote: > > On Wed, 2007-05-23 at 10:10 -0500, Greg Donald wrote: > >> On 5/23/07, kvigor <[EMAIL PROTECTED]> wrote: > >> > [-- SNIPPITY SNIP SNI

Re: [PHP] convert numerical day of week

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 09:10 -0400, tedd wrote: > What a hoot! > > When I saw the the number of post to this thread, I figured someone > got their shorts in a knot. > > Only a bunch of geeks could get into this much discussion of what day > of the week it is. Aren't we a sad lot? Only if we tak

Re: [PHP] Include???

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 09:42 -0400, tedd wrote: > At 3:28 PM +0100 5/23/07, Richard Davey wrote: > > > > > >if ($_POST['status_code'] == 'C') > > ^^ > > > >Read-up on the if/else structure and comparison operators. You'd never > >use a single equals sign in this example. >

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 16:17 +0200, Tijnema wrote: > On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote: > > Why are your include files in your web root in the first place? Move them > > elsewhere on your filesystem and then it's not even possible to access them > > via the web. > > > > Edward > > > O

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 16:00 +0200, Tijnema wrote: > On 5/25/07, tedd <[EMAIL PROTECTED]> wrote: > > At 1:55 PM -0700 5/23/07, Kevin Murphy wrote: > > >.inc files have a disadvantage in that if you view the file: > > > > > >http://www.yoursite.com/file.inc > > > > > >you can see the php code. I pref

Re: [PHP] convert numerical day of week

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 17:26 +0200, Jochem Maas wrote: > Robert Cummings wrote: > > On Fri, 2007-05-25 at 09:10 -0400, tedd wrote: > >> What a hoot! > >> > >> When I saw the the number of post to this thread, I figured someone > >> got their shorts in

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: > On 5/25/07, Edward Kay <[EMAIL PROTECTED]> wrote: > > > > > -Original Message- > > > From: Tijnema [mailto:[EMAIL PROTECTED] > > > > > > > > > > It's just the way you write script, my included files contain only > > > > > functions & varia

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote: > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: > > > I like to keep it simple, just like this: > > > / > > > /data > > >

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 18:20 +0200, Tijnema wrote: > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote: > > > On 5/25/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Fri, 2007-05-25 at 17

Re: [PHP] Re: Tipos about which CMS use

2007-05-29 Thread robert mena
<[EMAIL PROTECTED]> wrote: I've said it before and I'll say it again: Wordpress. Joomla/Mambo are also a good choice. -- itoctopus - http://www.itoctopus.com ""robert mena"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi there, > >

Re: [PHP] OOB problem, super stumped.

2007-05-29 Thread Robert Cummings
On Tue, 2007-05-29 at 22:36 -0400, Brian Seymour wrote: > I am super stumped. This works fine separately but when I put everything > together it breaks. I has an authenticate class and a sql class. However I > always get the same error. The following line: > $this->conx=$this->connection($host,$u

RE: [PHP] OOB problem, super stumped. (resolved)

2007-05-29 Thread Robert Cummings
On Tue, 2007-05-29 at 23:07 -0400, Brian Seymour wrote: > Strangely enough the only thing that was wrong was: > > $this->result=mysql_query($query, $this->conx); > > I removed $this->conx so it looked like > > $this->result=mysql_query($query); NO NO NO... don't do that. If you remove the link

Re: [PHP] php via cmdline including unwanted headers

2007-05-30 Thread Robert Cummings
On Wed, 2007-05-30 at 09:38 +0100, Stut wrote: > Sebe wrote: > > > > i tried using -q > > still shows the headers.. this problem started when i switched to php cgi. > > Well that's your mistake. The CGI binary is meant for use as a web page > generator. You need php-cli. While php-cli is an impr

Re: [PHP] RE: Return or not to return, that is the question

2007-05-30 Thread Robert Cummings
On Wed, 2007-05-30 at 17:24 +0100, Richard Davey wrote: > Hi Jared, > > Wednesday, May 30, 2007, 4:10:45 PM, you wrote: > > [snip] > > I think putting "return;" at the end of every function is probably a healthy > > practice, but is it best practice? If it's poorly written and/or poorly > > facto

Re: [PHP] Attempting to search a MySQL database from PHP not working

2007-05-31 Thread Robert Cummings
On Thu, 2007-05-31 at 15:25 -0400, Jason Pruim wrote: > Hi Everyone, I am attempting to setup a search field on a database > application I'm dinking around with and running into problems that > I'm hoping someone might be able to shed some light on. > > Here is the code I am using to display t

Re: [PHP] How do YOU initialize the form variables?

2007-05-31 Thread Robert Cummings
On Thu, 2007-05-31 at 10:57 -0700, [EMAIL PROTECTED] wrote: > Hello, > If I have an HTML form with input, example: > > username > lastname > mobile > .. and so on ... > > Example simple initialization: > // POST > $username = $_POST['username']; > $lastname = $_POST['lastname']; > $mobile

Re: [PHP] Orphan functions?

2007-06-01 Thread Robert Cummings
On Fri, 2007-06-01 at 14:15 -0400, Al wrote: > Does anyone have a utility or technique to find orphan functions? > > I keep my functions together in an include file and occasionally create > orphans > when I change the main code stream so that they are no longer used. > > It would be nice to b

Re: [PHP] Orphan functions?

2007-06-01 Thread Robert Cummings
On Fri, 2007-06-01 at 14:40 -0400, Al wrote: > I appreciate the response and looked at the tokenizer doc; but, I'm missing > your > point. Are you implying I should write a Tokenizer Function to do the job? Nope, tokenizer function already exists. I'm suggesting it wouldn't be too hard to write

Re: [PHP] Single Sign On

2007-06-03 Thread Robert Cummings
On Mon, 2007-06-04 at 08:06 +0530, Sudheer Satyanarayana wrote: > Hi, > > We have three web sites > a) example1.com > b) example2.com > c) my.example2.com > > > Our sites include exclusive pages for registered users. All user account > management tasks are handled by my.example2.com including r

Re: [PHP] Is the GD module standard?

2007-06-03 Thread Robert Cummings
On Mon, 2007-06-04 at 12:47 +0900, Dave M G wrote: > PHP General, > > I have been using the imagepng() function in my local testing > environment for a while now to make CAPTCHA images. > > In my testing environment, I hadn't done any customization to my PHP set > up. I went with the default se

Re: [PHP] Re: undefined GD function

2007-06-04 Thread Robert Cummings
On Mon, 2007-06-04 at 10:16 -0300, zerof wrote: > C.R.Vegelin escreveu: > > Hi All, > > > > I am testing some GD functions, but I'm getting "undefined function" errors. > > I checked php.ini and changed > > ;extension=php_gd2.dll > > to > > extension=php_gd2.dll That doesn't mean you actually hav

Re: [PHP] Making thumbs same size

2007-06-04 Thread Robert Cummings
On Mon, 2007-06-04 at 09:50 -0400, tedd wrote: > > Don't scale, resample. See here: > > http://www.webbytedd.com/b/thumb/index.php Hi Tedd, In your script you have: ini_set( 'register_globals', '0' ); The line is pointless, it can't be reached until after such globals have been registered.

Re: [PHP] Double checking - I should turn off "magic quotes"

2007-06-04 Thread Robert Cummings
On Mon, 2007-06-04 at 23:02 +0900, Dave M G wrote: > PHP General, > > I've read on the manual that it's "preferred to code with magic quotes > off and to instead escape the data at runtime, as needed": Indeed this is preferable. > Recently, while configuring my PHP so as to install the GD libra

Re: [PHP] Double checking - I should turn off "magic quotes"

2007-06-04 Thread Robert Cummings
On Mon, 2007-06-04 at 23:25 +0900, Dave M G wrote: > Robert , > > Thank you for your quick reply. > > If it's okay, I'd just like to clarify the points you raise. > > >> I just want to double check here what to do. Should I disable magic > >> quo

Re: [PHP] Making thumbs same size

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 09:17 -0400, tedd wrote: > At 9:56 AM -0400 6/4/07, Robert Cummings wrote: > > I didn't do that. No one saw me do it and can't prove it. Besides, I > changed the code. :-) > > My explanation, legacy remnants. I can relate. I've worked on

Re: [PHP] Making thumbs same size

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 10:17 -0400, tedd wrote: > At 3:33 PM +0200 6/5/07, Zoltán Németh wrote: > >2007. 06. 5, kedd keltezéssel 09.17-kor tedd ezt írta: > >> At 9:56 AM -0400 6/4/07, Robert Cummings wrote: > >> >On Mon, 2007-06-04 at 09:50 -0400, tedd wrote:

Re: [PHP] Making thumbs same size

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 16:29 +0200, Zoltán Németh wrote: > > I agree with the above idea. Errors should be logged (and possibly sent > in notification mail to the developer or something like that), not > displayed to the outside world, as they can expose sensitive information > about your setup. It

Re: [PHP] Making thumbs same size

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 10:59 -0400, tedd wrote: > > http://www.webbytedd.com/b/thumb/index.php I think you're cheating BTW... no matter what I put in for $_GET['s'], I always get your doggy, and I don't see your script testing for *cough* inappropriate access attempts ;) Cheers, Rob. -- .

Re: [PHP] Display Errors (was thumbs)

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 11:07 -0400, tedd wrote: > At 10:48 AM -0400 6/5/07, Robert Cummings wrote: > >On Tue, 2007-06-05 at 16:29 +0200, Zoltán Németh wrote: > >> > >> I agree with the above idea. Errors should be logged (and possibly sent > >> in notificatio

Re: [PHP] returning the index number

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 16:39 +0100, blueboy wrote: > I have an array of files to be uploaded > > > > > 2. > > > > 3. > > > > I can get the name > $i = 0; > foreach ($_FILES['userfile']['name'] as $value) { > > echo $value $i++; > } > > but I want the index position, any idea

Re: [PHP] returning the index number

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 11:43 -0400, Robert Cummings wrote: > On Tue, 2007-06-05 at 16:39 +0100, blueboy wrote: > > I have an array of files to be uploaded > > > > > > > > > > 2. > > > > > > > > 3. > > > > >

Re: [PHP] returning the index number part2

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 17:16 +0100, blueboy wrote: > if I have an array of 3 images > > > > 1. > > > > 2. > > > > 3. > > > > > How do I access the filename? Like this? > > echo $fileName1 = $_FILES['userfile']['name'][0]; > echo $fileName2 = $_FILES['userfile']['name'][1]; > echo

Re: [PHP] returning the index number part2

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 09:33 -0700, Jim Lucas wrote: > Robert Cummings wrote: > > On Tue, 2007-06-05 at 17:16 +0100, blueboy wrote: > >> if I have an array of 3 images > >> > >> > >> > >> 1. > >> > >> > >> &

Re: [PHP] Strings

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 19:57 +0200, Jochem Maas wrote: > do you notice the totally weird string delimiters in your original post? > using either single quotes or double quotes (if you want variables named > inside > the string to be interpolated). read up on php strings here: > > http://php.

Re: [PHP] Strings

2007-06-05 Thread Robert Cummings
On Tue, 2007-06-05 at 11:04 -0700, Richard S. Crawford wrote: > On Tuesday 05 June 2007 10:50:15 Steve Marquez wrote: > > It seems that if I add a string, rather than just the variable, then does > > not work. I am getting an unexpected T_IS_EQUAL error. > > Your string delimiters are very strange

Re: [PHP] checking the aspect ratio of an images

2007-06-06 Thread Robert Cummings
On Wed, 2007-06-06 at 12:01 +0100, Richard Davey wrote: > Hi, > > Wednesday, June 6, 2007, 11:41:19 AM, you wrote: > > > I want to force users to insert landscape rather portrait images. I don't > > want to be too pedantic about it but they do need to have an approximate 4x3 > > aspect ratio. >

Re: [PHP] Parse domain from URL

2007-06-06 Thread Robert Cummings
On Wed, 2007-06-06 at 11:43 -0400, Brad Fuller wrote: > Hey guys, > > I'm faced with an interesting problem, and wondering if there's an easy > solution. > > I need to strip out a domain name from a URL, and ignore subdomains (like > www) > > I can use parse_url to get the hostname. And my first

Re: [PHP] More include issues

2007-06-06 Thread Robert Cummings
On Wed, 2007-06-06 at 13:42 -0400, Dan Shirah wrote: > Okay, I'm stumped!!! > > I have all of my database connection info in a file: connection.php > This info is stored in a folder: Connections > Example of connection.php: > $connection = mssql_pconnect('SERVER','user','password') or die ('serve

Re: [PHP] Re: More include issues

2007-06-06 Thread Robert Cummings
On Wed, 2007-06-06 at 17:21 -0500, Jared Farrish wrote: > > > > I try not to bother the list and figure things out by myself as much as I > > can, but it's hard when I was "volunteered" to become the guinea pig to > > convert some of our apps from ColdFusion to PHP...especially when nobody I > > wo

Re: [PHP] Re: More include issues

2007-06-06 Thread Robert Cummings
On Wed, 2007-06-06 at 20:26 -0500, Jared Farrish wrote: > On 6/6/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Wed, 2007-06-06 at 17:21 -0500, Jared Farrish wrote: > > > I feel ya brotha! I think Stut might be having a bad day... > > > > Ba

Re: [PHP] Re: php-cli vs python

2007-06-07 Thread Robert Cummings
On Thu, 2007-06-07 at 10:46 -0400, Daniel Brown wrote: > On 6/7/07, Man-wai Chang <[EMAIL PROTECTED]> wrote: > > > Otherwise you have to start again from scratch in python code (creating > > > more places for bugs to hide and making the whole thing more complicated). > > > While they can access the

Re: [PHP] file_get_contents

2007-06-07 Thread Robert Cummings
On Thu, 2007-06-07 at 15:39 -0400, Chris Boget wrote: > Does file_get_contents() not work with absolute paths? I'm able to > successfully write data to a file that I create dynamically but when I go > back to actually read the contents of the file, nothing seems to work. Not > file_get_content

<    28   29   30   31   32   33   34   35   36   37   >