Re: [PHP] Re: PUT vs. POST (was: php File upload)
At 8:20 PM +0200 8/9/08, Per Jessen wrote: tedd wrote: > You see, anything that javascript can discover can be passed to php. The limits are those limits imposed on javascript. Ah, so you mean that _javascript_ can access something on the client - very true, but javascript!=PHP. Of course PHP can do all sorts if you combine it with javascript, black magic, or what have you, but PHP alone is a server side scripting language, nothing more nor less. While js != php, they can communicate and that's what I was saying. There's nothing that js can discover that can't be passed to php and back again -- js and php can communicate and play together. Here's an example: http://webbytedd.com/b/timed-php/ Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
SV: [PHP] Send a cookie with a file_get_contents( ) request?
> Anders Norrbring wrote: > > > I have a web site where I use cookies to store logins, and also > > session cookies for users logged in. > > Is there a way for me to use file_get_contents() to pull content > which > > are "behind" the login? > > In other words, I want to use my own log-in cookie and somehow send > it > > with the file_get_contents request to get the content. > > Can I somehow do this? Or are there other ways? > > I think you can do that by using a stream context. > > http://php.net/manual/en/function.stream-context-create.php > > > /Per Jessen, Zürich Thanks Per, I think so too, I glanced it, but unfortunately I have no idea whatsoever about *how* to do it... So, if anyone have suggestions, or concrete examples, please do share! Anders. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Send a cookie with a file_get_contents( ) request?
Anders Norrbring wrote: > I have a web site where I use cookies to store logins, and also > session cookies for users logged in. > Is there a way for me to use file_get_contents() to pull content which > are "behind" the login? > In other words, I want to use my own log-in cookie and somehow send it > with the file_get_contents request to get the content. > Can I somehow do this? Or are there other ways? I think you can do that by using a stream context. http://php.net/manual/en/function.stream-context-create.php /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Send a cookie with a file_get_contents( ) request?
I have a web site where I use cookies to store logins, and also session cookies for users logged in. Is there a way for me to use file_get_contents() to pull content which are "behind" the login? In other words, I want to use my own log-in cookie and somehow send it with the file_get_contents request to get the content. Can I somehow do this? Or are there other ways? Anders. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PUT vs. POST (was: php File upload)
On Aug 9, 2008, at 7:50 AM, "Richard Heyes" <[EMAIL PROTECTED]> wrote: Given that PHP doesn't run on the client, there is no way for anything written in PHP to access anything on the client. Wouldn't it be fun though if it could? :-) -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Years ago someone made an activex component to run php on the client. Apparently it went nowhere. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PUT vs. POST (was: php File upload)
tedd wrote: > At 3:50 PM +0100 8/9/08, Richard Heyes wrote: >> > Given that PHP doesn't run on the client, there is no way for >> > anything >>> written in PHP to access anything on the client. >> >>Wouldn't it be fun though if it could? :-) >> >>-- >>Richard Heyes > > In a round about way it can, but it's limited. > No, it cannot. > You see, anything that javascript can discover can be passed to php. > The limits are those limits imposed on javascript. Ah, so you mean that _javascript_ can access something on the client - very true, but javascript!=PHP. Of course PHP can do all sorts if you combine it with javascript, black magic, or what have you, but PHP alone is a server side scripting language, nothing more nor less. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PUT vs. POST (was: php File upload)
Except if paired with javadcript. Luke Slater Lead Developer NuVoo On 9 Aug 2008, at 15:09, Per Jessen <[EMAIL PROTECTED]> wrote: Boyd, Todd M. wrote: I had to use Java for the simple fact that PHP by itself cannot access the local file system in a way that allows for the partial loading of files. Given that PHP doesn't run on the client, there is no way for anything written in PHP to access anything on the client. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PUT vs. POST (was: php File upload)
At 3:50 PM +0100 8/9/08, Richard Heyes wrote: > Given that PHP doesn't run on the client, there is no way for anything written in PHP to access anything on the client. Wouldn't it be fun though if it could? :-) -- Richard Heyes In a round about way it can, but it's limited. You see, anything that javascript can discover can be passed to php. The limits are those limits imposed on javascript. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] ProgramPHP domain offer
Hi Guys, I've cut back on my php programming work, and don't need my domain anymore. Can't think of a better place to pass it on to somebody deserving. As such here it is: ProgramPHP,com - if you fancy it give me a shout / offer via email - please don't reply here as I don't think this is a thread that should be bumped up! Many Regards All -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: PUT vs. POST (was: php File upload)
> Given that PHP doesn't run on the client, there is no way for anything > written in PHP to access anything on the client. Wouldn't it be fun though if it could? :-) -- Richard Heyes http://www.phpguru.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: PUT vs. POST (was: php File upload)
Boyd, Todd M. wrote: > I had to use Java for the simple fact that PHP by itself cannot access > the local file system in a way that allows for the partial loading of > files. Given that PHP doesn't run on the client, there is no way for anything written in PHP to access anything on the client. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Using Ajax to populate a drop-down list
on 08/08/2008 12:58 AM Don said the following: Hi, I have a form with two lists. One is populated with many options while the second is populated with only a single item. When the first drop-down list is changed, I call a PHP script sing AJAX to populate the second list. I also need to perform another task when the second list is changed but it seems not to work. I think this is because even though my AJAX script populates the second drop-down list using pure PHP code, the second drop-down isn't aware of it. I've tries adding JavaScript code in the AJAX route to add options to the list but it's not working. Does anyone have an example of how to do this? Don: Here's another example. http://webbytedd.com/cc/dynamic-option/ Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Using Ajax to populate a drop-down list
on 08/08/2008 12:58 AM Don said the following: Hi, I have a form with two lists. One is populated with many options while the second is populated with only a single item. When the first drop-down list is changed, I call a PHP script sing AJAX to populate the second list. I also need to perform another task when the second list is changed but it seems not to work. I think this is because even though my AJAX script populates the second drop-down list using pure PHP code, the second drop-down isn't aware of it. I've tries adding JavaScript code in the AJAX route to add options to the list but it's not working. Does anyone have an example of how to do this? Don: As I understand your problem, there's no need to let the server-side know anything until after the user has selected their choice from the drop-downs. You can do everything client-side via javascript and not use AJAX at all. Here's an example of populating drop-downs using just javascript: http://www.webbytedd.com/b/dyn-select/ It's a simple matter to put in a submit button and pass the user's selections on to a waiting php script. I think using Ajax here is over complicating your problem. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php