| | |
redirecting in php
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
0
#22 25 Days Ago
•
•
•
•
guys, today i tried to install the same wamp in other PC. and surprisingly, it works there!! guess the wrong thing is my PC now, or maybe the setting of the apache or php. do you have any ideas?
Also, even if you have the server online you might have not started the services properly. Check all that just to make sure. Other than that, your code works fine (if you have also followed guidelines by the previous posters as well).
I take your reality and substitute my own
violarisgeorge.com
violarisgeorge.com
•
•
Join Date: Jul 2009
Posts: 45
Reputation:
Solved Threads: 2
0
#23 25 Days Ago
guys, i know this sounds strange. but that header finally works after i added php in <?php
haha, i don't know that the word "php" will affect that much.
anyway, thx so much guys. in return, i would like to help you if you have some problem with cpp, i love programming in cpp
once again, thanks so much all.
haha, i don't know that the word "php" will affect that much.
anyway, thx so much guys. in return, i would like to help you if you have some problem with cpp, i love programming in cpp

once again, thanks so much all.
-1
#24 25 Days Ago
•
•
•
•
Try this
php Syntax (Toggle Plain Text)
<?php header("Location:yahoo.com"); ?>
it can be possible that short tags are off in php.ini. So Try once the above code.!!
"...the woods would be a very silent place if no birds sang except for the best"
All opinions count - unless you're a serial downvoter.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
All opinions count - unless you're a serial downvoter.
F'enw i yw Mr. Blaidd. Byddwch yn ofalus - dwi'n cnoi.
•
•
Join Date: Oct 2009
Posts: 12
Reputation:
Solved Threads: 1
0
#26 25 Days Ago
php Syntax (Toggle Plain Text)
<? session_destroy(); header("Location: http://www.yahoo.com"); exit; ?>
That should work
•
•
Join Date: Jun 2009
Posts: 105
Reputation:
Solved Threads: 2
0
#30 25 Days Ago
great finally u got the output..!!!
In WAMP. 'short_open_tag' is off by default..!!
but you can ON it by going in php.ini and search for word 'short_open_tag'. make it ON.. and restart the wamp server..!!
then you can use short tags..!! means u can use <? ?> instead of <?php ?>
Best of Luck
In WAMP. 'short_open_tag' is off by default..!!
but you can ON it by going in php.ini and search for word 'short_open_tag'. make it ON.. and restart the wamp server..!!
then you can use short tags..!! means u can use <? ?> instead of <?php ?>
Best of Luck
Last edited by sam023; 25 Days Ago at 1:04 am.
![]() |
Other Threads in the PHP Forum
- Previous Thread: session in php
- Next Thread: Multiple file upload through an array
| Thread Tools | Search this Thread |
.htaccess alerts apache api archive array autocomplete beginner binary broken cakephp checkbox class cms code convert cron curl database dataentry date display duplicates dynamic echo email emptydisplayvalue error execute explodefunction file files firstoptioninphpdroplist folder form forms function functions google hack href htaccess html htmlspecialchars image include insert ip javasciptvalidation javascript joomla keywords limit link login mail matching menu methods mlm multiple mysql network object oop paypal pdf php problem query radio random recursion recursive redirect remote script search securephp server sessions shot sms source space sql subscription syntax system table tutorial tutorials update upload url validator variable video web youtube






