php-general Digest 12 May 2007 14:48:41 -0000 Issue 4787
Topics (messages 254837 through 254853):
Re: What is the best way to protect the PHP page that returns the AJAX data?
[solved]
254837 by: heavyccasey.gmail.com
254838 by: Robert Cummings
254841 by: heavyccasey.gmail.com
Passing an array as a hidden variable
254839 by: Todd Cary
254840 by: Robert Cummings
254847 by: itoctopus
Unsuscribe !!!!!
254842 by: yeoh sock yee
254844 by: Man-wai Chang
Re: One class, many methods: PHP4.x: Q's
254843 by: Micky Hulse
Re: PHP on the AS400 (now i5)
254845 by: Michelle Konzack
Re: getting $_ENV variables
254846 by: tedd
Re: cloning $this php5
254848 by: itoctopus
Re: self:: vs this
254849 by: itoctopus
Do you use any framework in your applications?
254850 by: cajbecu
254851 by: Dave Goodchild
254852 by: itoctopus
Re: Unsuscribe !!!!! [List Command Reminders]
254853 by: Daniel Brown
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
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 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
this email. However, many were excited and some may well have enjoyed
the experience.}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
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
someone being an "average" person.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
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 be able to get in.
Bleh, do it right. Don't settle for half-assed solutions that rely on
someone being an "average" person.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
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!
http://www.php.net/manual/en/language.types.type-juggling.php
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
hmmm,
anyways, to do that you can just join the array using
$str_attend_save = implode('|', $attend_ary_save);
<? echo '<input type="hidden" name="str_attend_save" value=' .
$str_attend_save .'>'; ?>
On your action page, you do this:
$attend_ary_save = explode('|', $_POST['str_attend_save']);
--
itoctopus - http://www.itoctopus.com
"Todd Cary" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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
--- End Message ---
--- Begin Message ---
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/
--- End Message ---
--- Begin Message ---
yeoh sock yee wrote:
Please unsuscribe me from receving all the PHP email!
Which list?
--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.21.1
^ ^ 17:07:01 up 14 days 2:00 0 users load average: 0.03 0.01 0.00
news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk
--- End Message ---
--- Begin Message ---
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 start learning PHP5 OOP!
Also I would recommend always defining all of the class variables that
...snip...
variables and all of that.
Great! Good to hear. Thanks for the clarification. Very helpful. :)
The get and set method's you wrote are part of the concept of
encapulation. Read this:
http://en.wikipedia.org/wiki/Information_hiding for more information.
Excellent! Thanks for link, very interesting.
Man, I love programming, I just wish I were better at it! Lol.
Anyway, that is why I am on this list... Feedback from the pros is great!
Many thanks Eric and all! I greatly appreciate your help.
Have a good one!
Cheers,
Micky
--
Wishlists: <http://snipurl.com/1gqpj>
Switch: <http://browsehappy.com/>
BCC?: <http://snipurl.com/w6f8>
My: <http://del.icio.us/mhulse>
--- End Message ---
--- Begin Message ---
Hi Mark,
Am 2007-05-10 21:16:18, schrieb Mark Allen:
> Just curious if anybody else is using Zend's PHP port on an
> AS400/iSeries/i5?
>
------------------------- END OF REPLIED MESSAGE -------------------------
With OS400 or Linux?
If Linux, you can run the powerpc architckture
where you definitivly have php 5.2.
I run 117 AS400 (one to sixteen CPU's) but it
was THR hell to get Debian on it.
Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSN LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
signature.pgp
Description: Digital signature
--- End Message ---
--- Begin Message ---
At 11:54 AM +0100 5/10/07, C.R.Vegelin wrote:
All I want is to check the $_ENV['OS'] within PHP scripts.
If all you want to do is to find out what the user's OS is, try this:
$_SERVER('HTTP_USER_AGENT')
Do print_r($_SERVER) to see all it contains.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
I don't think the clone function works on $this.
--
itoctopus - http://www.itoctopus.com
""blackwater dev"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>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
> error:
>
> Call to undefined method stdClass::methodname
>
> I've tried to copy it with just =, =& and clone but they all through
> errors. What am I doing wrong?
>
> Thanks!
>
> function morph(){
>
> $cloned_ob= clone $this;
>
> $cloned_ob->run();
> $cloned_ob->data_member="john";
>
> return $cloned_ob;
>
> }
>
--- End Message ---
--- Begin Message ---
self:: static functions
$this-> non static functions
--
itoctopus - http://www.itoctopus.com
"Mariano Guadagnini" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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
> to sort the same effects, although, when working with statics classes,
> self:: was the only way to access members.
>
> Well, that's all, any can put me some light on the matter?
>
> Thanks,
>
> --
>
> Mariano Guadagnini
> UVCMS S.R.L
> www.uvcms.com
>
>
>
>
--- End Message ---
--- Begin Message ---
Hello,
I was wondering if some of you use any framework in your application.
If you do that, can you post the name of the framework and
advantages/disadvantages of it?
2 weeks ago I started to learn symfony framework
(www.symfony-project.com) wich apears to be a good and reliable
framework.
cajb.
--- End Message ---
--- Begin Message ---
It's a personal thing. I use Code Igniter (codeigniter.com), which is fast,
lightweight, has a great community and excellent documentation, as well as
some very good video tutorials.
It pales in comparison with Ruby On Rails, of course, but that's another
thread on another list...
--- End Message ---
--- Begin Message ---
I'm currently using Ruby on Rails.
As for PHP, all the frameworks I ever worked with were developed in-house.
I've tinkered a bit with CakePHP and it looked very good.
--
itoctopus - http://www.itoctopus.com
"cajbecu" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hello,
>
> I was wondering if some of you use any framework in your application.
> If you do that, can you post the name of the framework and
> advantages/disadvantages of it?
> 2 weeks ago I started to learn symfony framework
> (www.symfony-project.com) wich apears to be a good and reliable
> framework.
>
> cajb.
--- End Message ---
--- Begin Message ---
A reminder on how to unsubscribe, get help, et cetera....
--- Administrative commands for the php-general list ---
I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:
For help and a description of available commands, send a message to:
<[EMAIL PROTECTED]>
To subscribe to the list, send a message to:
<[EMAIL PROTECTED]>
To remove your address from the list, just send a message to
the address in the ``List-Unsubscribe'' header of any list
message. If you haven't changed addresses since subscribing,
you can also send a message to:
<[EMAIL PROTECTED]>
or for the digest to:
<[EMAIL PROTECTED]>
For addition or removal of addresses, I'll send a confirmation
message to that address. When you receive it, simply reply to it
to complete the transaction.
If you need to get in touch with the human owner of this list,
please send a message to:
<[EMAIL PROTECTED]>
Please include a FORWARDED list message with ALL HEADERS intact
to make it easier to help you.
--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107
--- End Message ---