Tagged Questions
1
vote
2answers
20 views
I need to enable users of my site to upload images - can i do it without setting the folder permissions to 777
So, basically the question is in the title and a little more detailed scenario:
I have a site's backend written in PHP (on linux server - centos 6) and I actually have only 2 users who have the ...
0
votes
2answers
28 views
PHP Reports failed when copy() but the file is actually copied
I have the problem that when I try to copy some files from php I get the response that it failed, but the file is actually copied. This is a problem since I log an error message and exit the script ...
0
votes
0answers
34 views
Upload files to the folder outside root folder in Linux server?
In my project, I have to upload some video files to a folder which lies outside the root folder. I am using simple php function move_uploaded_file to upload the file. I have tried with the code below.
...
0
votes
1answer
18 views
How can I replace empty space from shell_exec return?
I'm using php function shell_exec with the ls command:
shell_exec('ls');
The return is:
index.php index.php~ ajaxF.php ajaxF.php~ ajaxL.php ajaxL.php~ ajax.php
I noticed a space between every ...
0
votes
1answer
17 views
How to solve “Class 'Twig_Loader_Filesystem' not found” error when using Twig
I work with friends on a web project and we use Git to collaborate. They work with Windows and me with Linux.
My problem is that I'm unable to run the website on my web server (while my friends can ...
1
vote
0answers
29 views
is_readable returns false on PDF when it shouldn't
I try to convert (ImageMagick) several PDFs into PNGs. Most of them work fine, however, there are several that give me "no such file exception". Now, I've checked the permissions, and the paths and ...
0
votes
0answers
26 views
using wget shell exec with args
i have a weird problem in my script,
i'm trying to use wget to download file... after the first GET var it's just igonre the rest.
my code:
$data = shell_exec("wget ...
0
votes
0answers
17 views
mobwrite issue - daemon wont start
I installed http://code.google.com/p/google-mobwrite/wiki/Daemon MobWrite, but when I try to run it the daemon wouldn't start and it returns the following: (any suggestions?)
...
0
votes
2answers
22 views
PHP file permissions for Development machine
I've just upgraded my development machine and have moved over a website I was working on. However, the permissions don't seem to have moved over properly. The dev machine is a Linux machine which ...
0
votes
2answers
28 views
Trying to execute a C program from PHP and output to a web browser
I have a C program which has been compiled to an executable. I can run this program from my console. I am trying to get the output from this program through my web browser so I am using the exec ...
1
vote
1answer
96 views
LAMP stacks for production use? Using PHP 5.4.2, Apache 2.4.2, MySQL 5.5.x
Ok I thought I'd try installing the latest and greatest LAMP stack on my test server in preparation for using it in production. I decided to go with Ubuntu server 12.04, Apache (2.4.2), MySQL 5.5.24 ...
1
vote
2answers
55 views
php apache permissions - best practices
I have a codeigniter application which creates folders using php. The owner of any folders created via php is 'apache', however if I want to upload a folder via ftp the owner is my ftp username.
I ...
-2
votes
0answers
39 views
how to connect to Oracle database server through PHP
i want to use oracle in my php code , there are some refrences but they didn't work fine could you help me to find easy and true way to install Oracle in eclipse PHP
0
votes
4answers
52 views
Replacing $_GET to make it work from command line
Currently I have this small script that makes it possible to check if a domain name is free. It works from the browser, when you type check.php?domain=xxxx.com and you see if it is free or not.
...
0
votes
1answer
49 views
(solved) PHP does not always find XML file
Solved: error in code, not server
I looked around for similar questions but found none identical, so here goes:
I have this webpage on a linux/apache server, the PHP script opens a XML-file upon ...