ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Welcome to LinuxQuestions.org, a friendly and active Linux Community.

You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

where xxx is a another script in the same folder.for some reason,the browser does nothing when its suppose to redirect to the script.I'm using FireFox,is there any known bugs with FireFox and header function?I read somewhere to use ' ' instead of " ",but still it did nothing.This is really irritating me a bit,so any help will be appreciated.thanks

If you've output anything at all (even just the <html> tag), you can't call header(). Even if you think you haven't, one thing to check is that your script doesn't start with a blank line. Also, if you've got any includes, make sure they don't have any blank lines before or after the <? and ?> tags. That's caught me out before.

Finally, if you're not getting anything at all on the browser, have a look at your PHP config, and see whether it's supressing error messages. If you turn your error messages on, you might find it tells you something meaningful instead of just showing a blank page.

o ok,i didn't know that.but i need to output some stuff,so i guess i'll have to use something <meta http-equiv="refresh" content="0; url=xxx.php>?I used to have this in my code but then some strange stuff happened,the browser kept refreshing as if it was in some endless loop,but anyway i'll try to use the <meta.. and get that working.thanks

thanks the javascript method worked,but i'd rather use meta tags.i've read somewhere that meta tags should also be used between the <head></head> tags,but i put the meta tags inside the <body> part and it seems to work.should this be fine?,to use the meta inside <body>?.my html skills not really very good,so sorry for all the questions.

Meta tags are not supposed to be put insde of the body part. They belong to the head... Alhough it might worked for you from the body it's not gonna work in all the browsers and most likely will produce some errors. The proper way to do it is to use JS. I don't know why you don't want to use JS. Do you need a timeout? If so, then use setInterval function.