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

2007-05-11 Thread clive
Edward Kay wrote: Check out http://www.webhostingtalk.com for both discussions and searching on any possible hosts before signing up. If you can stretch your budget a bit more, go for a VPS. Shared hosting is a real pain when other users write poor code that hog the server. I use ServInt

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

2007-05-11 Thread Crayon Shin Chan
On Friday 11 May 2007 12:45, Robert Cummings wrote: On Thu, 2007-05-10 at 21:23 -0700, Daevid Vincent wrote: Thanks for the suggestion and concern. Fear not, I'm a PHP Guru as mentioned. A Guru would have spent 60 seconds testing to see if the session_start() scenario worked BEFORE posting

Re: [PHP] PHP MySQL

2007-05-11 Thread Miguel J. Jiménez
Jason Pruim escribió: Hi Everyone, I know this isn't strictly a PHP question, and I apologize in advance for that. I'm trying to setup a website for some of my customers that would allow them to update a database on their schedule, making it easier for us to have the most up to date info,

RE: [PHP] PhP and Java login trouble (can someone help a brother out whom is truely trying to understand?)

2007-05-11 Thread Brad Sumrall
I have these to independently working scripts. 1 is php, the other is javascript. For obvious reason, to separate logins are not appropriate. It has been recommended to make a separate function, not sure how to do this Common sense says, carry the variable from php to javascripting. I am

RE: [PHP] finding next and prev record in mysql

2007-05-11 Thread Richard Kurth
-Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 10:09 PM To: Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] finding next and prev record in mysql Richard Kurth wrote: How would I find the next id and the prev id in sql statement

RE: [PHP] finding next and prev record in mysql

2007-05-11 Thread Richard Kurth
-Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Thursday, May 10, 2007 10:09 PM To: Richard Kurth Cc: php-general@lists.php.net Subject: Re: [PHP] finding next and prev record in mysql Richard Kurth wrote: How would I find the next id and the prev id in sql statement

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

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

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

[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)

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] 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. Any suggestions. I'm

[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 experience

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

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

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

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?

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() function.

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, wether

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 difference

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

[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

[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] 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 http://snipurl.com/1k4ug --

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 PROTECTED]

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

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

[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 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 access

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 whether

[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

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 what

[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

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

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

[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

[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]

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

[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

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

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

[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] 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

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,

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

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 process

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

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

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

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

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

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 on

[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? ? echo 'input type=hidden name=attend_ary_save value=' . $attend_ary_save .''; ? Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

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? ? echo 'input type=hidden name=attend_ary_save value=' . $attend_ary_save .''; ? No! RTFM!

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 wouldn't