我正在尝试使用laravel作为PHP框架,我已经将laravel zip解压缩到~/opt/xampp/htdocs/laravel但是当我去localhost/laravel或者localhost/laravel我收到403错误消息时说:
访问被禁止!
您无权访问请求的对象.它受读保护或服务器无法读取.
我在某处读到了我需要编辑storagelaravel里面的文件夹所以它可以读写,所以我chmod -R 766 laravel/storage仍然没有运气,我从Ubuntu 12.04这样做有没有人遇到过这个?
编辑
我有chmod -R 0+w laravel/storage,现在当我去localhost/laravel我得到一些文件的索引,但当我去localhost/laravel/public/仍然得到403错误,而不是预期的结果
编辑2
我已经设置chmod -R 765 laravel/public,现在当我得到localhost/laravel/public我得到这个消息这让我相信我越来越近了:
警告:require(/opt/lampp/htdocs/learning-laravel/laravel/laravel.php):无法打开流:第34行/opt/lampp/htdocs/learning-laravel/public/index.php中的权限被拒绝
致命错误:require():在/ opt/lampp /中打开所需的'/opt/lampp/htdocs/learning-laravel/laravel/laravel.php'(include_path ='.:/ opt/lampp/lib/php')失败第34行的htdocs/learning-laravel/public/index.php
我有一个大约2000行文本的文本文件,如下所示:
1 1名称1 LastN1 58 c 1600 1310.40 6 1 0.22 2164.80 1
2 1名称2 LastN2 22 d 1700 1523.37 4 1 0.13 897.26 1
3 1名称3 LastN3 34 c 1600 1195.84 2 1 0.26 836.16 1
.
.
2000 3 NameX LastNX 46 d 6000 6000.00 1 0 0.00 0.00 1
我想要做的是从文本文件中读取所有这些值并将它们存储到以下数组:
int id [2100];
char nombre [2100][30];
char apellido [2100][30];
int edad [2100];
int puesto [2100]; char categoria [2100];
int sueldoI [2100];
float sueldoA [2100];
int antiguedad [2100]; …Run Code Online (Sandbox Code Playgroud) 我试图显示如下内容:
欢迎John Doe
在我的Liferay基于速度的模板中,用于WebContentLiferay 6.2 GA1 CE
到目前为止,我的代码如下:
#set ($userLS = $portal.getClass().forName('com.liferay.portal.service.UserLocalServiceUtil'))
#set ($userId = $getterUtil.getLong($request.get("theme-display").get("user-id")))
#set ($user = $userLS.getUserById($userId))
<div class="user-welcome">
#if($user.isMale())
<span class="welcome-msg">Bienvenido</span><br>
#else
<span class="welcome-msg">Bienvenida</span><br>
#end
<span class="username">$user.getFullName() $user.getLastName()</span>
</div>
Run Code Online (Sandbox Code Playgroud)
我遇到的错误是:
$user.isMale() 总是返回falsespan.username的输出中是代码本身.它不打印该值.提前致谢
以下Javascript在我的Visual Studio中的aspx.cs中,我已经添加了一个新的脚本,但我不确定我的脚本是否正常工作..所以可以请一些人告诉我如何调试以下代码....
sb.AppendFormat("function chkQuoteBinderValidUntilDateOverridden_OnClick()", this.chkQuoteBinderValidUntilDateOverridden.ClientID);
sb.AppendLine("{");
sb.AppendLine(" var chkQuoteBinderValidUntilDateOverridden = document.getElementById('" + chkQuoteBinderValidUntilDateOverridden.ClientID + "');");
sb.AppendLine(" var wdcQuoteBinderValidUntilDate = document.getElementById('" + wdcQuoteBinderValidUntilDate.ClientID + "');");
sb.AppendLine(" var wdcQuoteBinderValidUntilDate_input = document.getElementById('" + wdcQuoteBinderValidUntilDate.ClientID + "_input');");
sb.AppendLine(" var wdcQuoteBinderValidUntilDate_container = document.getElementById('" + wdcQuoteBinderValidUntilDate.ClientID + "_container');");
sb.AppendLine(" var wdcQuoteBinderValidUntilDate_img = document.getElementById('" + wdcQuoteBinderValidUntilDate.ClientID + "_img');");
sb.AppendLine(" var wdcQBValidUntilDate = igdrp_getComboById('" + this.wdcQuoteBinderValidUntilDate.ClientID + "');");
sb.AppendLine(" var hiddenWDCQBValidUntilDate = document.getElementById('" + this.HiddenWDCQuoteBinderValidUntilDate.ClientID + "');");
sb.AppendLine(" var hiddenQBValidUntilDate = new Date(hiddenWDCQBValidUntilDate.value);");
sb.AppendLine(" if(chkQuoteBinderValidUntilDateOverridden.checked == true) {"); …Run Code Online (Sandbox Code Playgroud)