php怎么调用网页

a.php
<?php
/*不知道你是想跳转还是取回网页内容后显示
$type为TRUE时采用页面跳转方式
$type为FALSE时采用取回内容后显示
*/

$type = TRUE;

if( isset( $_GET['url'] ) ){
$url = 'http://' . $_GET['url'];
if( $type ){
header("Location: $url");
}else{
$page = file_get_contents($url);
echo $page;
}
}else{
echo '未设置URL参数';
}
?>

Ⅱ PHP 网址链接跳转

<php
$url = $_GET['url'];
header("location: $url");
?>

把上面的内容保存成url.php文件,

然后链接的样式

www.yoursite.com/url.php?url=http://.com

Ⅲ 急急!!!请问怎么打开网址后缀名为.php的网页

这是放置在服务器上的,本地可以用任何文本编辑器比如记事本打开,但没什么意义,看不到网页的最终效果。

Ⅳ 怎么打开php网页

打开这个就可以了
http://218.98.159.19/website/publish/attach.php?id=36584

谢谢我把 给我分

Ⅳ php中如何调用一个网址

你在go.php里面写下面的代码
$url=$_GET['s'];
switch($url){
case :
header("location:这里是你地址写上就行") exit();
break;
//……
}
注意运行php,在地址栏上输入http://localhost/ 看看

我的回答还行吧,有不会的更多问题可以去后盾网论坛问题求助专区,可以帮助你很多!

Ⅵ “php网站”是什么意思

首先你要先了解PHP是什么意思:
各大网络都有介绍:(摘了一部分仅供参考)
PHP,一个嵌套的缩写名称,是英文超级文本预处理语言(PHP:Hypertext Preprocessor)的缩写。PHP 是一种 html 内嵌式的语言,PHP与微软的ASP颇有几分相似,都是一种在服务器端执行的嵌入HTML文档的脚本语言,语言的风格有类似于C语言,现在被很多的网站编程人员广泛的运用。
PHP 独特的语法混合了C、Java、Perl 以及 PHP 自创新的语法。它可以比 CGI 或者 Perl 更快速的执行动态网页。
PHP最初是由勒多夫在1995年开始开发的;现在PHP的标准由the PHP Group维护。PHP以PHP License作为许可协议,不过因为这个协议限制了PHP名称的使用,所以和开放源代码许可协议GPL不兼容。
通俗讲PHP是一个脚本语言,PHP,是英文超文本预处理语言Hypertext Preprocessor的递归缩写。PHP 是一种 HTML 内嵌式的语言,是一种在服务器端执行的嵌入HTML文档的脚本语言,语言的风格有类似于C语言,被广泛地运用。可以生成Forms,ComboBoxes,Grid,Menus等的组件,并支持将数据转为XML/JSON格式,现在互联网上绝大多数的语言程序用的都是php。

Ⅶ php官方网址是什么

PHP网站是用PHP语言写的服务端脚本做成的网站。基本上没什么可视化编辑软件,最多也就是能编HTML部份。PHP部份还是直接编辑代码。编辑代码个人觉得 UltraEdit 比较好用。

网络 php 官网

Ⅷ php如何获得调用网页的网址

|

用file()函数
下面的代码是
通过PHP的File函数库来完成上传图像文件并让其显示

//FILE1:
<?php
//fulldirectorypath
$filepath="/home/httpd/html/tut/upload";
//200Kisthemaximum(picture)filesizetobeaccepted
define("MAX_FILE_SIZE",200*1024);
functionprint_error($err){
echo"<h1>$err</h1><hr>";
}
do{
//;ifnot,skiptothe
//"while(false)"sectionof"do"statement
if(isset($picture)){
//
//doesn'texceedmaximumallowablesize
if(getenv("CONTENT_LENGTH")>MAX_FILE_SIZE){
print_error("Filetoolarge:$picture_name");
break;
}
//;"@"prefixtellsfopennottoprint
//messageifthereisanerror,sincefunctionprint_errordoesthat
//ifthereisanerror,breakoutof"do"loopandcontinueat"while(false)"
$fp=@fopen($picture,"r");
if(!$fp){
print_error("Cannotopenfile:$picture_name");
break;
}
//generateuniquenameforsession,useittogenerateuniqueserver
//directoryname,andcreatethedirectory
srand((double)microtime()*1000000);
$id=md5(uniqid(rand()));
$dirname="$filepath/$id";
mkdir($dirname,0700);
//
$filename=$dirname."/picture";
//;"@"prefixtellsfopennotto
//printmessageifthereisanerror,sincefunctionprint_errordoesthat
//ifthereisanerror,breakoutof"do"loopandcontinueat"while(false)"
$out=@fopen($filename,"w");
if(!$out){
print_error("Cannotopenfile:$filename");
break;
}
//
while($buffer=fread($fp,8192)){
fwrite($out,$buffer);
}
//
fclose($fp);
fclose($out);
//;thisfilewillholdthe
//nameofthepicturefile
$filename=$dirname."/name";
//;"@"prefixtellsfopennottoprint
//messageifthereisanerror,sincefunctionprint_errordoesthat
//ifthereisanerror,breakoutof"do"loopandcontinueat"while(false)"
$out=@fopen($filename,"w");
if(!$out){
print_error("Cannotopenfile:$filename");
break;
}
//,andclosetheserver
//namefile
fputs($out,$name);
fclose($out);
//
//server,,andsupply
//theHTMLlink
?>
Pictureadded.Thanks.<br>
<ahref="upload_display.php">Continuetothegallery</a>
<?php
//exittotheserverphotogallery
exit();
}
}while(false);
//yougettohereonlywhen"if(isset($picture))"isfalse,whichmeansthat
//nopicturenamehasbeensubmitted,
//
?>
<!--startuploadform-->
<!DOCTYPEHTMLPUBLIC"-//IETF//DTDHTML//EN">
<html>
<head>
<title>Photogallery-add</title>
</head>
<bodybgcolor="white">
<h1>Photogalleryadd</h1>
<?php
//
//using$PHP_SELFforvalueof"formaction"causesformtorefertoitself
//when"submit"buttonisclicked
?>
<formaction="<?echo$PHP_SELF?>"method=POSTENCTYPE="multipart/form-data">
<?php
//passthePHPconstantMAX_FILE_SIZEtotheHTMLmaximumfilesize
//constantMAX_FILE_SIZE
?>
<INPUTTYPE="hidden"name="MAX_FILE_SIZE"value="<?echoMAX_FILE_SIZE?>">
<?php
//,andstore
//;browsingisenabled
?>
Yournameis:<INPUTNAME="name"><br>
Yourpicture:<INPUTNAME="picture"TYPE="file"><br>
<?php
//displaythe"submit"button
?>
<INPUTTYPE="submit"VALUE="Addpicture"name="send">
</form>
</body>
</html>

//------------------------------------------------------
//FILE2:DISPLAYTHESERVERPHOTOGALLERY
<!DOCTYPEHTMLPUBLIC"-//IETF//DTDHTML//EN">
<html>
<head>
<title>Photogallery</title>
</head>
<body>
<h1>Photogallery</h1>
<?php
//fulldirectorypath
$filepath="/home/httpd/html/tut/upload";
//user'spathinbrowser--sameasfulldirectorypath
$url_path="/tut/upload";
//
$dir=dir($filepath);
//
while($entry=$dir->read()){
//ifentryissystemfile(doesn'thavepicturefiles),gotonextentryin
//"while"loop
if($entry=="."||$entry==".."){
continue;
}
//openservernamefileforreadonly;"@"prefixtellsfopennottoprint
//messageifthereisanerror,sincefunctionprint_errordoesthat
//ifthereisanerror,gotonextentryin"while"loop
$fp=@fopen("$filepath/$entry/name","r");
if(!$fp){
print"Badentry:$entry<br>";
continue;
}
//
$name=fgets($fp,4096);
fclose($fp);
//;inaddition,"alt="causesthefile
//
?>

<imgsrc="<?echo"$url_path/$entry/picture"?>"
alt="<?echo$name?>"><b><?echo$name?></b><br>
<?
}
?>
</body>
</html>

Ⅸ 如何通过PHP地址找到网页

比如你现在看的页面是
www..com/index.php
那么链接地址为 www..com/admin.php?....
如果你现在看的页面是http://www..com/或http://www..com
链接地址为 www..com/admin.php?....
应该是与你当前浏览页面在同一级目录下的一个叫做admin.php的文件
两个$_GET变量action 和 operation 值分别为tools和updatecache