我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何显示在php文件中定义的变量,只使用URL?

I would like to know if it's possible to call a .php page and at the same time to display the value of a variable which is in this same page.

Example:

<?php
$cf['files']['file1']="test";?>

How can I make the value "test" to be displayed ? (without changing anything in the code of the page, no echo etc.) Is it possible at least ?

Thank you

You cannot. It would be a huge security problem if you could display the contents of a variable of a foreign PHP-generated page.

近期文章

  • 如何使用php或cakephp上传一个包含多个工作表的Excel
  • MySQL错误连接到mysql失败
  • 脚本不起作用
  • 使用hasColumns laravel更改数据库表
  • PHP电子邮件无法正常工作 - 未收到电子邮件[重复]
  • phpmyadmin net ::关于AJAX操作的ERR_CONNECTION_RESET
  • 从db减少/增加顺序删除文章php [关闭]
  • 从数据库查询信息时如何修复表格的断行
  • escpos-php上的打印机连接错误
  • 如何在php中选择mysql中的特定句子?
  • 如何将CakePHP 2模型关联更改为与bindModel和自定义查找程序的深层链接?
  • PHP登录脚本不与数据库链接
  • Datepicker - 按日期激活星期
  • SQL语句返回500错误
  • 1单击然后禁用 - PHP
  • 使用Google API的航班距离
  • 使用php childnodes将xml转换为mysql
  • 图片上传脚本 - 如何调整大小
  • PHP PDO数组,只产生一行
  • 在HTML中,如何检索存储在jQuery的Ajax中读取的php变量中的数据?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华