我想创建一个git存储库,并允许所有用户访问它.我尝试通过以下方式初始化它:
git init --shared=all
Run Code Online (Sandbox Code Playgroud)
但是,当我更改用户并执行操作时git status,我收到以下错误:
fatal: Unable to create '.git/index.lock': Permission denied
Run Code Online (Sandbox Code Playgroud)
这应该发生吗?我访问本地文件系统上的repo而不是SSH.
我想在我的网页上的iframe中显示图片.但是,问题在于我无法将其扩展到100%的大小.
我想做的是以下内容.
目前,这是我的代码:
echo"<iframe name='graph' id='graph' src=$image style='position:absolute; top:0px; left:0px; height:100%;width:100%'></iframe>";
Run Code Online (Sandbox Code Playgroud)
这样做,它使iframe成为我的网页的顶部,仍然没有扩大到100%.如果我删除位置:绝对:
echo"<iframe name='graph' id='graph' src=$image style='top:0px; left:0px; height:100%;width:100%'></iframe>";
Run Code Online (Sandbox Code Playgroud)
我最终将它的宽度扩展到100%,但就高度而言,它只有3个像素高,并且有一个滚动条滚动到底部.
我搜索网络寻找修复,但我没有尝试过任何工作.有人提到改变CSS,但无济于事......
编辑
我面临的另一个问题是图像在Firefox中被缩小.我需要点击iframe中的图片将其展开到完整尺寸.它虽然在Chrome和IE中正确显示.有没有解决这个问题?
我想知道是否可以获取访问页面的URL?例如,如果我有一个文件index.php.几乎可以从任何地方访问它,具体取决于我放置它的位置.例如:
- http://folder1/index.php
- http://nicefolder1/index.php
Run Code Online (Sandbox Code Playgroud)
无论如何我可以找到从哪里访问页面?我想解析那个URL,如果是来自nicefolder1,我想做点什么echo "That was a good location to be executed from":D!只是我很好奇......