PHP is a widely-used general-purpose scripting language that is especially suited for Web development. The current version is 5.3.3, released on July 22, 2010.

learn more… | top users | synonyms

3
votes
3answers
4k views

How to log php error in a separate file?

I just did an upgrade of my server to Fedora 17 and merged some configuration files containing .rpmnew into the existing ones. I have been successfully logging my php errors in a separate log file by ...
0
votes
3answers
102 views

Let user '_www' execute binary in /usr/local/bin

Total *nix n00b, so I apologize in advance. I installed ffmpeg through homebrew, now I want to call it from a PHP script with shell_exec(), e.g. ffmpeg -v. But nothing is happening. From Terminal it ...
0
votes
3answers
79 views

Setting up a local webserver using CentOS on VM

im new here, and basically new at setting up a webserver... now im already googling, and searching here in stackexchange on how to setup a webserver, they tend to direct me to a working server.. i ...
0
votes
3answers
3k views

How to Configure Adobe Dreamweaver CS6 with PHP and ASP .NET?

I have Wamp Server on my PC and also Visual Studio and I want to Configure Adobe Dreamweaver CS6 with ASP .NET and PHP so that I Can design Dynamic website....
4
votes
2answers
3k views

How do I upgrade PHP on CentOS and Kloxo?

I need to upgrade PHP so that I can upgrade joomla on my dedicated server. I have: kloxo 6.1.6 php-5.2.17-1 Linux CentOS-55-64-minimal 2.6.18-194.32.1.el5 x86_64 x86_64 x86_64 GNU/Linux I searched ...
3
votes
2answers
718 views

Can't access wiki site through any other computers on my LAN

I am trying to set up an internal wiki site for my company. Product info, specs that sort of thing. I have downloaded and installed WAMP Server 2.2 (Apache 2.2.22 MySQL 5.5.24 PHP 5.3.13) as well as ...
1
vote
2answers
29 views

PHP server permissisons for files and directories granted, but still not allowed

I have php code on Codeanywhere where I'm simply trying to create a file on the server but yet gets the following error : "Warning: fopen(file.txt): failed to open stream: Permission denied in ...
1
vote
2answers
226 views

Apache is allowing PHP files to download when routed through mod_rewrite

I'm setting up a new server, which seems to almost be working. I've done my homework, but I seem to be stuck. PHP works. When I try to access the following URLs, which serve the same page correctly ...
1
vote
2answers
1k views

PHP warnings after Mavericks upgrade

After upgrading my Mac to Mavericks I've had a few small issues with machine, most of which I've resolved, however when I try to run PHP scripts at the command line I'm not getting these warnings... ...
1
vote
2answers
332 views

How to add a linux environment variable for different language (PHP or RUBY)

I would like to add a linux environment variable for my differents applications written in PHP and Ruby. Its goal is to differntiate between 'production' and 'development' linux environment. How to ...
1
vote
2answers
2k views

WAMP not executing PHP

My WAMP server is not executing PHP. I have already tried the following things: restarted just Apache restarted all WAMP services restarted the WAMP application restarted my whole system renamed the ...
1
vote
2answers
369 views

Netstat doesn't work on FreeBSD by php function exec()

In my php-app I need list of all ip connected on 80 port. i've chose this way: <?php $ips = exec("netstat -an |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c", $info); ...
1
vote
2answers
3k views

CURL Error version OPENSSL_1.0.1 'not found …'

I have the last few days, a concern with CURL. I get this error: curl: / lib/i386-linux-gnu/libssl.so.1.0.0: version `OPENSSL_1.0.1 'not found (required by / usr/lib/i386-linux-gnu / libcurl.so.4) ...
1
vote
2answers
664 views

Upload Picture File Paths to Database Without Creating Multiple Records and Giving The Files Random Names

I want to be able upload pictures to a folder and their filepaths to a MySQL database without creating multiple records. For example instead of: id PicturePath size 1 ...
1
vote
2answers
472 views

Why localhost is too slow while I am downloading and it works perfect when there's no internet at all

My project don't need anything from the internet, no JQuery, no twitter, no nothing! and it works perfectly when there's no internet connection at all, and of course when there's an internet ...
1
vote
2answers
907 views

Can't write to /var/www/ directory with PHP, permissions are 777

I can't understand where the problem is. Apache is running with my standard user that actually can write those files. What should I do?
0
votes
2answers
9 views

How to convert tiff to pdf use ghost script

How can I convert TIF to PDF with using Ghostscript? I tried use below code but it not working Snippet $input_file_tif='test.pdf'; $input_file_orig_name='1234.tiff'; $gs_command = "gs -q -dNOPAUSE ...
0
votes
2answers
21 views

Can I add a second php.ini file that supercedes the first?

I've made changes to my php.ini file, so I don't update the php.ini file whenever I update the PHP package. I'd like to "fork" off my changes to a different file, so I can update the actual php.ini ...
0
votes
2answers
192 views

Mounted HDD not having enough permissions from Apache/PHP

Piwigo gallery, on apache and php. The root system is a RAID 128GB. /var/www/html is on the root file system. Mounted the 320GB hdd to /var/www/html/320 using defaults, it's an ext4 fs. Put a ...
0
votes
2answers
431 views

.htaccess add multiple xdebug.remote_host

I am using NetBeans to remote debug a PHP application. Currently I have an entry in the .htaccess file on the remote directory to allow access to a single IP. I frequently switch between wired and ...
0
votes
2answers
224 views

Edit virtual host file using php

I have a php application and somethings related to the application need changes to vhost.conf file. Presently i'm making the changes manually. But i would like to automate it using a php script. Is ...
0
votes
2answers
2k views

Convert PDF to JPG without Imagemagick

Is there a way to convert a common UTF-8 encoded PDF to a JPG without using ImageMagick or Ghostscript? The reason I'm asking is, that I have to replace or "simply" double layer a small part (date) ...
0
votes
2answers
57 views

How can i look up where Constants are defined using Aptana

I am currently working on a shopping cart using an open source PHP framework. it is quite large. i recently installed a plugin that included over 160 separate files!, there is now some kind of logic ...
0
votes
2answers
193 views

PHP Installation on RHEL

Am trying to install and configure PHP 5.2.17 - 32 bit on RHEL6.2 but am getting error while configuring as below : checking libxml2 install dir... no checking for xml2-config path... ...
0
votes
2answers
1k views

How to install Doctrine in Linux (Ubuntu) through Terminal

Can any one explain the step by step procedure of installing Doctrine in Linux through terminal?
0
votes
2answers
2k views

PHP mail() function not working in Mac OS X

I know this question has been asked many times and people use to give many solutions. I have followed almost all the possibilities which I come across after investigating on it. but nothing worked ...
0
votes
2answers
190 views

OSX installing php 5.4

I downloaded Macports and run a command I get online, which would install php 5.4. It took a while, but seemed to work successfully. I then copied the php.ini.development and renamed it php.ini like ...
0
votes
2answers
890 views

Scanning directories in my Network via PHP

I want to read all directories of a specified directory via PHP. (unfortunately Im not good enough in VB/C/Java to make a more efficient workaround) With this code, I could read all files from /tmp/ ...
0
votes
2answers
485 views

Panic - Coda. Code navigator doesn't recognize PHP

So, its simply began to be too lazy to parse my php code and it doesn't show anything. Only comments. No functions, no classes. How can i fix it? Syntax-mode is correct: PHP-HTML.
0
votes
1answer
436 views

PHP / Postgre Problem on Mac

Hey there, I'm on a project that uses drupal and postgresql, and i was developing using console and ssh, but i had some troubles and i want to make it local. So i enabled mac's Apache and PHP, and ...
0
votes
1answer
202 views

How to upgrade php from old version to new version

How to upgrade php from old version to new version. Say from php 5.3.3 to php 5.3.5?
0
votes
1answer
556 views

Change the mysql.sock that the system PHP uses

In the past I had installed MySQL as part of XAMPP in /Applications/XAMPP/ and the PHP that the system used (e.g. from command line) used /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock to connect ...
0
votes
1answer
2k views

Installing Zend on CentOS is having dependency issues

I'm trying to install PHP's Zend Server on my CentOS VPS but it's having dependency issues that I can't seem to resolve. zend-server-php-5.2-4.0-73.noarch from Zend_noarch has depsolving problems ...
-1
votes
1answer
199 views

How to Syncing Offline MySQL db to online MySQL db

I am developing a inventory management web application using php and mysql. This application will runs on server hosting and localhost. while any one server disconnect the internet at the time data ...
-1
votes
1answer
77 views

OSX Mavericks - Upgraded PHP not loading

I was wondering if someone could help me. Im running mavericks OSX ... When i type php -v i get the following: PHP 5.4.24 I needed to upgrade the PHP version, so i followed an online guide and ...
-1
votes
1answer
234 views

Azure's Ubuntu 12.0.4 fails to install PHP5

Similar to this article from Azure themselves: http://www.windowsazure.com/en-us/manage/linux/common-tasks/install-lamp-stack/ I am trying to install PHP5 on Ubuntu 12.0.4 virtual machine. However, ...