我如何设置重定向? [英] How do i set a redirect?

查看:84
本文介绍了我如何设置重定向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好 -


我需要在php中设置路径,以便在处理完这些命令后我想要加载页面。



我尝试过重定向,但只有在本地时才有效。也许我做错了。


这里我当前的重定向

Hello -

I need to set the path in php for where i want the page to be loaded after these commands are processed.


I''ve tried redirect but it works only if its locally. maybe i''m doing it wrong.

here my current redirect

展开 | 选择 | 换行 | 行号

推荐答案

我认为你应该用信息创建一个字符串。不是100%肯定,因为我从未尝试过你的方式,但是类似的东西:
I think you should make a string with the information. Not 100% sure, because I have never tried it your way, but something like:
展开 | 选择 | Wrap | 行号


谢谢我的意思我现在正在工作。


没有我一直在使用ob_start

代码...........

ob_flush
thanks that what i''m working on now.

no i''ve been using ob_start
code...........
ob_flush


你的意思是它只在本地工作?是在本地服务器上还是链接指向本地?


您提供的代码应该有效。做一个 var_dump()来查看变量的含义。
What do you mean it only works locally? Is that on a local server or the link is pointing local?

The code you provided should work. Do a var_dump() to see what your variables hold.


这篇关于我如何设置重定向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆