PHP is a widely-used, general-purpose scripting language that is especially suited for web development.
1
vote
1answer
282 views
Execute file in its native directory with shell script
I'm executing a php file from the php-cli with a shell script. One of the php files creates a file named available_data during the course of its execution. The problem is that the php file needs to ...
0
votes
3answers
2k views
send mail using external mail server
I'd like to send mails using a PHP script that has been deployed on a CentOS machine. Problem is there is no mail server configured. There is, however, another linux machine that has a mail server ...
2
votes
1answer
632 views
Debian lenny 5 install php-dev
I'm trying to install apt-get install php5-dev
but when I run the command
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be ...
1
vote
3answers
353 views
Why does Crontab give me an error with my PHP script when running it from the terminal does not?
I'm having some problems with running the Crontab with PHP files.
I have this same php scripts running in the Crontab for more than 6 months but some days ago mysteriously they stopped to execute the ...
0
votes
2answers
2k views
Getting PHP to work with apache to run .php files through browser
I have VPS running Debian 5.0 (I think) and I would like to get it to run PHP files. I was told it needed to be configured with Apache. I tried entering the command apt-get install apache2 php5 ...
1
vote
2answers
985 views
Fixing debian installer
I have a VPS with Debian GNU/Linux on it. I'm trying to install a PHP file manager so that people could access it and download stuff into a directory.
I don't have anything in my /bin about PHP so ...
0
votes
1answer
181 views
PHP imageline function doesn't work. What and how should I download?
PHP function imageline on localhost works, but on VPS cloud hosting doesn't. I guess I have download something, but I don't know what. Could you give me a hand?
P.S. PHP GD is already downloaded.
0
votes
1answer
512 views
“Too many arguments to function” error while installing php5-pdo_mysql from ports in FreeBSD
I'm having a trouble while installing php5-pdo_mysql in my FreeBSD environment.
Everytime I trys to do /usr/ports/databases/php5-pdo_mysql make install
the console gives me this error:
...
3
votes
2answers
580 views
PHP interface to manage linux user accounts
I have a linux web & samba server. I need to give administrators access to manage minor accounts & groups. Is there a secure php web interface that can do this? I don't want to give them shell ...
2
votes
3answers
1k views
installing ffmpeg-php on centos
With the help of this guide, I am trying to install ffmpeg using these commands:
# cd ffmpeg-php/branches/ffmpeg-php/ffmpeg-php-0.6.1/
# replace 'PIX_FMT_RGBA32' 'PIX_FMT_RGB32' -- *
# phpize
# ...
7
votes
2answers
263 views
Strip // Comments From Files
What's the best way to strip all code comments in a given directory? I'd like to strip out all // ... EOL comments, and /* blah \*/ (or /** ... \*/) comments as well.
This is a PHP project, and I'd ...
1
vote
4answers
5k views
How to upgrade PHP to 5.3 on Debian 5.0 (Lenny)?
I currently have PHP 5.0 installed on my Debian VPS and was wondering how I would be able to upgrade it to PHP 5.3 and keep all of my installed modules running.
0
votes
2answers
348 views
How to set up file permissions/ownership for FTP/Apache/PHP on CentOS
I have basic understanding of chmod and CentOS file permissions. 777 stands for 111111111 and rwx for each root, group, user, etc. What I can't get my head around is setting up Apache, FTP and PHP to ...