473,320 Members | 1,920 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Wake Up !

Don't you think by now, being the 5+ version they would have fixed the
Header() to have a target, like " _top " and so on...

~ Somebody's Not Thinking ~

Oct 1 '05 #1
13 1488
Maverick said the following on 01/10/2005 10:33:
Don't you think by now, being the 5+ version they would have fixed the
Header() to have a target, like " _top " and so on...

~ Somebody's Not Thinking ~


You?

What are you talking about??

--
Oli
Oct 1 '05 #2
On 1 Oct 2005 02:33:52 -0700, "Maverick" <sa*******@yahoo.com> wrote:
Don't you think by now, being the 5+ version they would have fixed the
Header() to have a target, like " _top " and so on...


You are apparently confusing PHP with the HTTP standard. There is no good
reason for HTTP to change the Location header to include HTML attributes such
as target.

HTTP is at version 1.1, not 5, and is unlikely to get any higher since it does
the job it's supposed to do quite well. http://www.w3.org/Protocols/
--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Oct 1 '05 #3
You guys are clueless; as to what I'm talking about, why answer...

php has a redirect function called header("location:
http:/so&so.com/");

it's not intended to replace html links like <a href: bla bla >
that is only a link function in html that requires you to click
something,

I'm talking php, a page that can redirect you to another page, but
can't select a target in case you want to use frames or iframes or
popup window, get it ?

and don't say "you can do it with javascript", because javascript seems
to not work well with tabs, that I think are very cool, and save
memory...

hope you understand now,
Thanks

Oct 3 '05 #4

Maverick wrote:
You guys are clueless; as to what I'm talking about, why answer...

php has a redirect function called header("location:
http:/so&so.com/");

it's not intended to replace html links like <a href: bla bla >
that is only a link function in html that requires you to click
something,

I'm talking php, a page that can redirect you to another page, but
can't select a target in case you want to use frames or iframes or
popup window, get it ?

and don't say "you can do it with javascript", because javascript seems
to not work well with tabs, that I think are very cool, and save
memory...

hope you understand now,
Thanks


the header function works using the HTTP standard to send a header to
the browser through the server. That's why it's called header. If an
HTTP server doesn't support it there's nothing PHP can do about it.

javascript is client side, and works in a totally different way.

Hope you understand now.
i doubt it though.

Oct 3 '05 #5
Target like _top, _self, _parent can not be implemented on
the server side (where PHP runs). They can not be implemented
in any language that runs on server side.

Target like _top, _self, _parent refer to layout of windows on
clients (yours) desktop. Server does not know anything about that.

DG
Oct 3 '05 #6
Maverick wrote:
You guys are clueless; as to what I'm talking about, why answer...

php has a redirect function called header("location:
http:/so&so.com/");


I repeat: *You* are not thinking.

"Location: ..." is not a function of PHP, but part of the HTTP
specification.

"_top", "_parent", etc. is HTML, i.e. is nothing to do with HTTP, and
certainly not PHP.

So, there will never be a function in PHP to do this, because it's
impossible.
P.S. I'd watch your attitude if you expect any help from a NG in
future.

--
Oli

Oct 3 '05 #7
On 3 Oct 2005 03:21:55 -0700, "Maverick" <sa*******@yahoo.com> wrote:
php has a redirect function called header("location:
http:/so&so.com/");


You are apparently still confusing PHP with the HTTP standard.
--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Oct 3 '05 #8
ok, it's obvious I must not be explaining this right,
I don't know how else to explain this, but I have no interest in
upsetting anyone, only to fix problems with PHP...
In programming I find nothing " Impossible ", just a lack of vision
that's easily fixed...

I appreciate all your comments guys...good&bad...

Thanks,
Mav

Oct 4 '05 #9
You are explaining this right, and you are being answered right. Thing
is, it is *not* a problem with PHP, as you've already been said. PHP is
server side, and the fact that you open an html page in a _parent, _top
or _blank window is client side. It simply has nothing to do, and
possibly it cannot be done. But even if it could, it would be PHP
getting out of its turf.

Oct 4 '05 #10
Hey I think you are going to invent new application which can handle
both client and server side component...!!!

I'm not trying to upsetting you..but sometime be practical..

If still you want to combine north pol and south pol to the center of
earth
best of luck..........

Oct 4 '05 #11

Maverick wrote:
ok, it's obvious I must not be explaining this right,
I don't know how else to explain this, but I have no interest in
upsetting anyone, only to fix problems with PHP...
In programming I find nothing " Impossible ", just a lack of vision
that's easily fixed...

YOU WANT THE TRUTH!!?? YOU CAN'T HANDLE THE TRUTH!!!
:)

Oct 4 '05 #12
On 3 Oct 2005 23:30:31 -0700, "Maverick" <sa*******@yahoo.com> wrote:
ok, it's obvious I must not be explaining this right,
You are totally explaining it right. You want to be able to redirect
to a specific frame. I had exactly the same issue with an application
I am working on. Apparently really old versions of Netscape supported
this particular thing (via a header) but no modern browser supports
it.

The syntax, in PHP, is:
header('Window-target: sometarget');
header('Location: http://somelocation');

Just don't expect it to work on anything other than old versions of
Netscape.

The problem is not PHP, it's with browsers and the HTTP spec. The
feature you are looking for doesn't exist in the browser or in the
spec.

The solution (which I culled from an ASP forum) is to simply fire out
some javascript. It doesn't have too many problems with tabs as it
will look to the current tab first before looking to other tabs.
In programming I find nothing " Impossible ", just a lack of vision
that's easily fixed...


Nothing is impossible -- but you do you have to find the right
location for your solution. You would need to add the feature to the
web browsers before PHP would be able to use it. ;)

Oct 4 '05 #13
Maverick (sa*******@yahoo.com) wrote:
: ok, it's obvious I must not be explaining this right,

Not explaining well is usually a symptom of not understanding well.
--

This programmer available for rent.
Oct 4 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: The New Celibacy | last post by:
I go to bed at night, leaving XP running, and my Internet connection is dropped when I wake up. I go to bed at night, leaving Suse Linux running. I wake up in the morning, and it's still...
17
by: Benny Raymond | last post by:
I have a thread that sleeps for 5 minutes once it's finished running a method and then it repeats itself if it's supposed to (bool = true). Prior to 2.0 I was able to resume the thread after...
1
by: Moosdau | last post by:
Hi everyone: I have only found system.windows.forms.application.setsuspendstate method could make system into standby or hibernate state, but I don't know how to reboot the system. And I want...
1
by: Oscar | last post by:
Hi, Is there a way to to "wake" a win xp machine from screen power save using c#? I got a computer that turns off the screen after a while and i'm programming an app that reads smart cards and...
1
by: Johannes Kiehl | last post by:
guys, I need one more hint on this. I feel I am not tackling this in a php'ish way. I've been asking before, in this NG, how to monitor a (semaphore-like) file for timestamp changes, other...
3
by: ercastro | last post by:
I am a new user of Visual Basic. I am currently using VB 2005. I am running a time-consuming task on the built-in BackgroundWorker() control of VB. I am using nested loops and sometimes I need...
2
by: nondos | last post by:
Hi I have solution with two projects, one of them is a user control I created public shared sub in the user control which mean to wake up the control and start doing somthing, but when i try to...
0
by: =?Utf-8?B?QnJhbmR5?= | last post by:
When I select standby by computer goes to sleep. When I try to wake it up with the mouse or keyboard it will not work. The drives and monitor are functioning though. I can even open the DVD/CD...
4
by: prometka | last post by:
Hi, I'm new here and I need a small advice Do you know how to wake up computer from hibernation or sleeping mode(in windows) by programming under C#? Let me explain my problem. I created a...
3
by: =?Utf-8?B?R2lsYmVydCBUb3JkZXVy?= | last post by:
Context : Windows Server 2003, IIS 6, VB 2008 My asp.net application A stores data in an SQL 2000 database. My application B (on the same server but under a different userid - not ASPNET) reads...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.