小编Sri*_*rki的帖子

包php5没有安装候选(Ubuntu 16.04)

当我尝试使用以下代码在Ubuntu 16.04中安装php5时:

sudo apt-get install php5 php5-mcrypt
Run Code Online (Sandbox Code Playgroud)

我收到以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5' has no installation candidate
Run Code Online (Sandbox Code Playgroud)

我尝试过重新安装,但它没有帮助.

我将15.10 Ubuntu更新为16.04后遇到了所有这个错误

php ubuntu apt dpkg ubuntu-16.04

83
推荐指数
3
解决办法
27万
查看次数

在Laravel 5中仅获取文件名

当我有一个像这样的变量时:

$ storagePath =('/ xampp / htdocs / systeembeheer / public / download');

$files = File::allFiles($storagePath);

return View::make('documentatie.overzicht') ->with('files', $files); 
Run Code Online (Sandbox Code Playgroud)

在我看来,文件显示为:

/xampp/htdocs/systeembeheer/public/download/test.txt但是我只想看test.txt。

filenames path laravel

5
推荐指数
1
解决办法
5442
查看次数

在Laravel 5中使用Variable重定向url

如何以下列格式重定向URL:

我的代码:

return Redirect::to('home/viewcustomer/$cusid')
    ->with('status','success')
    ->with('message','success');
Run Code Online (Sandbox Code Playgroud)

示例:

home/viewcustomer/8

php laravel laravel-5 laravel-5.2

1
推荐指数
1
解决办法
1083
查看次数

标签 统计

laravel ×2

php ×2

apt ×1

dpkg ×1

filenames ×1

laravel-5 ×1

laravel-5.2 ×1

path ×1

ubuntu ×1

ubuntu-16.04 ×1