473,699 Members | 2,470 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1503
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*******@yaho o.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.u k :: 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("locatio n:
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("locatio n:
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("locatio n:
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*******@yaho o.com> wrote:
php has a redirect function called header("locatio n:
http:/so&so.com/");


You are apparently still confusing PHP with the HTTP standard.
--
Andy Hassall :: an**@andyh.co.u k :: 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

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

Similar topics

3
1779
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 connected.
17
5661
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 marking the bool to false which would cause the thread to finish what it was doing and complete, or to wake up for it's sleep state and not loop back into itself anymore. How do we tell a thread to stop sleeping now that Thread.Resume is obsolete?
1
1688
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 to know how to wake up the system after hibernate/standby? For example, if my user input "3" and hibernate, the system should enter hibernate and wake up itself after 3 minutes.
1
2566
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 I want the screen to "power on" as soon as some one inserts a card to the reader. Oscar
1
1964
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 than doing a (sleep + filectime) loop. The comments I received suggested using external tools, such as
3
8623
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 to issue Thread.Sleep() while waiting for a specific keyword from my TextBox display window. How do I wake up the BackgroundWorker() thread and resume my code when I detect the keyword that I have been waiting for? How do I call an Interrupt from...
2
1499
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 call it from the main project i get error message "Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class." What can i do?
0
1417
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 drives. I end having to hold the power button and restart. I've disabled Hibernate thinking that be it. I've enabled keyboard to wake it up in the device manager. -- Brandy
4
10584
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 simple programme which I want to run in the morning in different time. My problem is I don't know how to programme it to wake up computer and run programme . Every evening I want just add to my programme time to wake up. I know that under windows it's...
3
1403
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 these data, does its job (big load, low priority) and updates the database. A does not wait any answer nor acknowledgement from B. Questions : 1) I think B can be a console application, am I right ? 2) How can A wake up B when A has stored data...
0
8705
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9199
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8943
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8899
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7785
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5884
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3075
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2362
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2016
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.