Re: [PHP] One class, many methods: PHP4.x: Q's

2007-05-11 Thread Micky Hulse
Hi Eric! Thanks for your reply. :) Eric Butera wrote: If at all possible you're going to want to use PHP5 if you're doing ...snip... of those "problems" have been alleviated. Gosh! I wish I could use PHP5... Unfortunately the hosting company I am using has not upgraded. I can not wait to star

[PHP] Unsuscribe !!!!!

2007-05-11 Thread yeoh sock yee
Please unsuscribe me from receving all the PHP email! Thanks Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. http://sims.yahoo.com/ -- PHP G

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

2007-05-11 Thread heavyccasey
I don't see you giving a solution. On 5/11/07, Robert Cummings <[EMAIL PROTECTED]> wrote: 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 wo

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

[PHP] Passing an array as a hidden variable

2007-05-11 Thread Todd Cary
When I use the following syntax, the 2 dimensional array loses it's contents. Can an array be passed this way? $attend_ary_save .'>'; ?> Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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] What is the best way to protect the PHP page that returns the AJAX data? [solved]

2007-05-11 Thread heavyccasey
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. On 5/11/07, clive <[EMAIL PROTECTED]> wrote: Robert Cummings wrote: > A Guru would have spent 60 seconds testing to see if the ses

Re: [PHP] Articles system OT

2007-05-11 Thread Daniel Brown
That's the first time I've ever heard that one! I can say, though, I'll get some use out of it. Brilliant that really made my evening. On 5/11/07, tedd <[EMAIL PROTECTED]> wrote: At 1:48 PM -0700 5/8/07, Micky Hulse wrote: > >How much content should go on each site page? Like Goldi

Re: [PHP] Articles system OT

2007-05-11 Thread tedd
At 1:48 PM -0700 5/8/07, Micky Hulse wrote: How much content should go on each site page? Like Goldilocks and the three bears, the answer is not too much, and not too little: just the right amount of content. As an English Professor once told me about writing a good essay, he said: "It's li

Re: [PHP] Ajax Developer

2007-05-11 Thread tedd
At 2:00 PM -0400 5/9/07, Daniel Brown wrote: Is it just me, or does it seem like everyone things AJAX is some sort of PHP extension or "new way of programming in PHP"? The name alone more or less says otherwise AJAX is supposed to be Asynchronous JavaScript And XML, right? Or am I

RE: [PHP] Ajax Developer

2007-05-11 Thread tedd
At 1:58 PM -0400 5/9/07, Efrain Sarmiento wrote: Can someone clarify that for me...I got that directly off job description from Lehman. Thanks Then ask Lehman what a PhotoShop IDE is. And, while you're at it, ask if you can have a sky-hook. tedd -- --- http://sperling.com http://ancien

Re: [PHP] Processing a table of input fields

2007-05-11 Thread Todd Cary
Jim Lucas wrote: Richard Davey wrote: Todd Cary wrote: I create a table of input fields so the user (secretary at a Rotary meeting) can check mark if the person attended and how much they paid for lunch. Each input field name has the user ID as part of it. What is the best way to process t

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

2007-05-11 Thread Chris
There was a specific reason that the require to the file defining the function came after the call to the function. But alas, it doesn't matter what the reason is now. Thanks for the explanation. Chris On May 11, 2007, at 7:53 PM, Robert Cummings wrote: Files are included/required at

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] Help with CURL please

2007-05-11 Thread Greg Donald
On 5/11/07, ray <[EMAIL PROTECTED]> 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. I'm trying to access this URL (public search form) using CURL and grab the HTML contents http://enterprise

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] Function Declared in Included File Not Being Found

2007-05-11 Thread jekillen
On May 11, 2007, at 1:43 PM, Chris wrote: Hello, According to the PHP manual on functions (http://www.php.net/manual/en/language.functions.php): "In PHP 3, functions must be defined before they are referenced. No such requirement exists since PHP 4. Except when a function is conditionally

[PHP] Help with CURL please

2007-05-11 Thread ray
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. I'm trying to access this URL (public search form) using CURL and grab the HTML contents http://enterprisedirectory.ucr.edu/phone/tel_search.show

[PHP] Help with CURL please!

2007-05-11 Thread ray
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. I'm trying to access this URL (public search form) using CURL and grab the HTML contents http://enterprisedirectory.ucr.edu/phone/tel_search.show

Re: [PHP] Processing a table of input fields

2007-05-11 Thread Todd Cary
Jim Lucas wrote: Richard Davey wrote: Todd Cary wrote: I create a table of input fields so the user (secretary at a Rotary meeting) can check mark if the person attended and how much they paid for lunch. Each input field name has the user ID as part of it. What is the best way to process t

Re: [PHP] cloning $this php5

2007-05-11 Thread Jim Lucas
blackwater dev wrote: I have a method within an class that should make a copy of itself, do some stuff on the copy and return it. The object contains data members that are references to other objects. I basically want a brand new copy of the object. The problem is, certain methods I call on th

[PHP] Function Declared in Included File Not Being Found

2007-05-11 Thread Chris
Hello, According to the PHP manual on functions (http://www.php.net/manual/ en/language.functions.php): "In PHP 3, functions must be defined before they are referenced. No such requirement exists since PHP 4. Except when a function is conditionally defined..." If that is true then why do

Re: [PHP] Re: self:: vs this

2007-05-11 Thread Arpad Ray
M.Sokolewicz wrote: Basically what you can remember here is: :: calls a property or method in a STATIC context (ie. without access to the object's (if any) actual properties) -> calls a propert or method in a DYNAMIC context (ie. WITH access to that specific object's collection of methods and p

[PHP] Re: cloning $this php5

2007-05-11 Thread blackwater dev
Actually, the error seems to be coming with inner objects call some of their methods. For example the object as a datamember that is a reference to another object. When I clone it, I can't seem to call methods on the data member object. Thanks! On 5/11/07, blackwater dev <[EMAIL PROTECTED]> wr

[PHP] cloning $this php5

2007-05-11 Thread blackwater dev
I have a method within an class that should make a copy of itself, do some stuff on the copy and return it. The object contains data members that are references to other objects. I basically want a brand new copy of the object. The problem is, certain methods I call on the object throw this err

Re: [PHP] Processing a table of input fields

2007-05-11 Thread Jim Lucas
Richard Davey wrote: Todd Cary wrote: I create a table of input fields so the user (secretary at a Rotary meeting) can check mark if the person attended and how much they paid for lunch. Each input field name has the user ID as part of it. What is the best way to process the table when the

Re: [PHP] Processing a table of input fields

2007-05-11 Thread Richard Davey
Todd Cary wrote: I create a table of input fields so the user (secretary at a Rotary meeting) can check mark if the person attended and how much they paid for lunch. Each input field name has the user ID as part of it. What is the best way to process the table when the submit button is press

[PHP] Processing a table of input fields

2007-05-11 Thread Todd Cary
I create a table of input fields so the user (secretary at a Rotary meeting) can check mark if the person attended and how much they paid for lunch. Each input field name has the user ID as part of it. What is the best way to process the table when the submit button is pressed? There are abo

Re: [PHP] Re: self:: vs this

2007-05-11 Thread Eric Butera
On 5/11/07, M.Sokolewicz <[EMAIL PROTECTED]> wrote: statically: Class Foo { static $a = 1; static function Bar() { self::a++; } } echo Foo:a; >> 1 Foo::Bar(); // will probably throw a warning, not sure of that though echo Foo:a; >> 1 (no change) I'm not sure I understand

[PHP] Re: self:: vs this

2007-05-11 Thread M.Sokolewicz
Mariano Guadagnini wrote: Hy people, I have an existential doubt regarding php classes. I have been a php programmer for quite a long time, but never could figure out the clear difference between using this-> or self:: when calling member functions, wether they are private or public. I used th

[PHP] Re: PHP screen generator?

2007-05-11 Thread Man-wai Chang
you have a screen design image file and you want html and css created from that? if yes, then I don't think you'll find an automated software doing that... it's just too complicated - for example how can a software Doesn't have to use an image as a starting point, but something like this in dBa

Re: [PHP] Re: PHP screen generator?

2007-05-11 Thread Zoltán Németh
2007. 05. 11, péntek keltezéssel 22.47-kor Man-wai Chang ezt írta: > Zoltán Németh wrote: > > what screen? you mean the client's screen? I think that's basically > > nonsense since php is server side. > > > > if I misunderstood what you want then please explain it more clearly > > I don't know wh

[PHP] Re: PHP screen generator?

2007-05-11 Thread Man-wai Chang
Zoltán Németh wrote: what screen? you mean the client's screen? I think that's basically nonsense since php is server side. if I misunderstood what you want then please explain it more clearly I don't know whether there is a php project that generates codes from screen designer. :) -- .~.

Re: [PHP] self:: vs this

2007-05-11 Thread Edward Vermillion
On May 11, 2007, at 9:10 AM, Mariano Guadagnini wrote: Hy people, I have an existential doubt regarding php classes. I have been a php programmer for quite a long time, but never could figure out the clear difference between using this-> or self:: when calling member functions, wether the

Re: [PHP] self:: vs this

2007-05-11 Thread Eric Butera
On 5/11/07, Mariano Guadagnini <[EMAIL PROTECTED]> wrote: Hy people, I have an existential doubt regarding php classes. I have been a php programmer for quite a long time, but never could figure out the clear difference between using this-> or self:: when calling member functions, wether they are

Re: [PHP] self:: vs this

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 10:15 -0400, Robert Cummings wrote: > On Fri, 2007-05-11 at 11:10 -0300, Mariano Guadagnini wrote: > > Hy people, > > I have an existential doubt regarding php classes. I have been a php > > programmer for quite a long time, but never could figure out the clear > > differenc

Re: [PHP] self:: vs this

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 11:10 -0300, Mariano Guadagnini wrote: > Hy people, > I have an existential doubt regarding php classes. I have been a php > programmer for quite a long time, but never could figure out the clear > difference between using this-> or self:: when calling member functions, > w

[PHP] self:: vs this

2007-05-11 Thread Mariano Guadagnini
Hy people, I have an existential doubt regarding php classes. I have been a php programmer for quite a long time, but never could figure out the clear difference between using this-> or self:: when calling member functions, wether they are private or public. I used them indistinctly and seemed

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

2007-05-11 Thread Eric Butera
On 5/10/07, Daevid Vincent <[EMAIL PROTECTED]> wrote: I'm a PHP guru Then this question shouldn't have been asked. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] One class, many methods: PHP4.x: Q's

2007-05-11 Thread Eric Butera
On 5/10/07, Micky Hulse <[EMAIL PROTECTED]> wrote: Micky Hulse wrote: > Ah, well Chapter 6, page 144-145 have helped clear-up a little bit of my > confusion: Sorry, forgot to mention what book I was refering to: O'Reilly Programming PHP By Rasmus Lerdorf & Kevin Tatroe

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

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 10:33 -0300, Rangel Reale wrote: > That was only an example, the question is, how do I protect possibly > sensitive data sent by AJAX, so one user can't access other user's data? > > Is the anwser just "don't do this with AJAX"? No, do what you would normally do. Filter acc

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

2007-05-11 Thread Rangel Reale
That was only an example, the question is, how do I protect possibly sensitive data sent by AJAX, so one user can't access other user's data? Is the anwser just "don't do this with AJAX"? - Original Message - From: "Robert Cummings" <[EMAIL PROTECTED]> To: "Rangel Reale" <[EMAIL PROTE

Re: [PHP] import dbf files

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 09:23 -0400, Bosky, Dave wrote: > My goal is to be able to import dbf files into MySQL on a nightly basis. > > Can I enable dbase support by uncomment the dbase extension entry in the > php.ini file or is there more to it? Check the output generated by the phpinfo() functio

[PHP] import dbf files

2007-05-11 Thread Bosky, Dave
My goal is to be able to import dbf files into MySQL on a nightly basis. Can I enable dbase support by uncomment the dbase extension entry in the php.ini file or is there more to it? Are there any working examples available that read and import dbf files? Thanks, Dave **

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

2007-05-11 Thread Robert Cummings
On Fri, 2007-05-11 at 09:01 -0300, Rangel Reale wrote: > I would also like to know how people are dealing with this, how to you make > sure people don't steal your data, sometimes it can be something simple like > state names, but sometimes it can be your entire user/email database, who > knows?

[PHP] Re: php + db2

2007-05-11 Thread johan.boye
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I saw this problem on the http mail archive, I hope it will help : Howto install Oracle and/or IBM db2 support for PHP 4 ou 5 or both on the cleanest way 1.1. Installation Oracle module for PHP 4 & 5 1.1.1. Down

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

2007-05-11 Thread Rangel Reale
I would also like to know how people are dealing with this, how to you make sure people don't steal your data, sometimes it can be something simple like state names, but sometimes it can be your entire user/email database, who knows? And OF COURSE he is not passing a query on the url, a dumb u

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 moro

Re: [PHP] PHP screen generator?

2007-05-11 Thread Zoltán Németh
what screen? you mean the client's screen? I think that's basically nonsense since php is server side. if I misunderstood what you want then please explain it more clearly greets Zoltán Németh 2007. 05. 11, péntek keltezéssel 19.21-kor Man-wai Chang ezt írta: > I meant I could drop some controls

[PHP] PHP screen generator?

2007-05-11 Thread Man-wai Chang
I meant I could drop some controls into a form freely and the tool would automatically generate the HTML+CSS to produce the screen. -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Ubuntu 6.10) L

[PHP] Re: Need a new shared host with php

2007-05-11 Thread Joker7
In news: [EMAIL PROTECTED] - "Joker7" wrote : >> In news: [EMAIL PROTECTED] - Al wrote : I'm looking for a shared host with an up-to-date php5, and one who at least tries to keep it relatively current. Needs are modest. Just need good ftp access, cgi-bin, shell, etc. >>>

[PHP] Re: Need a new shared host with php

2007-05-11 Thread Joker7
In news: [EMAIL PROTECTED] - Al wrote : >> I'm looking for a shared host with an up-to-date php5, and one who >> at least tries to keep it relatively current. >> >> Needs are modest. Just need good ftp access, cgi-bin, shell, etc. >> >> Any suggestions. I'm looking at Host Monster, anyone have ex

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

2007-05-11 Thread Crayon Shin Chan
On Friday 11 May 2007 03:08, Dave Goodchild wrote: > Another small and unrelated point - you don't need to use double quotes > inside the array brackets - you're not processing them at all. You seemed to have left out: "use single quotes instead". -- Crayon -- PHP General Mailing List (http:/

Re: [PHP] Need a new shared host with php

2007-05-11 Thread Richard Davey
Larry Garfield wrote: They're about to roll-out PHP 5.2.2 across all of their servers too. And if their 'usual' accounts are too expensive, they've just launched this: Where did you hear that? I'm a Pair customer of many many years myself, and I've been considering jumping ship because of th

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

2007-05-11 Thread clive
Robert Cummings wrote: A Guru would have spent 60 seconds testing to see if the session_start() scenario worked BEFORE posting to the list :B /me was thinking the same -- Regards, Clive. Real Time Travel Connections {No electrons were harmed in the creation, transmission or reading of thi