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

1
vote
1answer
63 views

desktop shortcut does not work

I have created batch file that start apache and mysql server,copy try.exe on desktop and run project in browser.that works fine.but onclick desktop shorcut error occured.error is windows can not find ...
2
votes
0answers
297 views

PHP : curl is and Not working in ubuntu10.04 and Nginx

I am running Nginx server on ubuntu 10.04 I am using the php version 5.3.2 .I installed php5-curl using apt-get install php5-curl. Unfortunately the curl package is not displaying in phpinfo() . ...
1
vote
0answers
80 views

For developing multiple LAMP stacks; some mini-PC's or some USB boot images? [closed]

This would include best performance and require some storage of course ++ my other requirements... I want to create a few LAMP Stacks for web-development, so we can for example have debuging on and ...
-4
votes
1answer
478 views

Sending mail via Zend_Mail_Transport_Smtp gives 5.7.1 error [closed]

I am using zend framework and i write the following code for sending a mail from another sever.Bu t dont know why it throws the following exception. 5.7.1 This email has been blocked. The email ...
0
votes
1answer
1k views

How do I downgrade php from 5.4 to 5.3 in CentOS?

I have a webserver running CentOS 6. Yesterday, I installed php-gd with yum install php-gd because I couldn't see graphics on my website. However, when I see my php version, it changed from 5.3 to ...
1
vote
1answer
828 views

Adding regions in Notepad for PHP

I have seen how to use a user defined language, but I would like to know if it is possible to add a #region for code folding into Notepad's ++ PHP. I tried using #region x and #end region - it works, ...
1
vote
2answers
2k 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
1answer
34 views

Need secure solution to get the size of a directory with PHP

I have a vmail directory manage by postfix with the permissions set like this: user: vmail group: vmail permission 700 I need to get the size of that directory with PHP. To do this, I'm using ...
2
votes
1answer
333 views

Going crazy with php5apache2_4.dll not found

I have a computer with Win XP SP3 and I was going to install a WAMP system on it. I already had a pwerfectly working WAMP (Uniform Server, it is a portable wamp that works on usb stick) on another ...
0
votes
0answers
266 views

How to set NetBeans 7.2 as my default PHP files IDE on ubuntu 12.10?

I'm using Ubuntu 12.10 64 bit I have installes XAMPP And Netbeans 7.2 IDE. The problem is I can't open any PHP file using Netbeans IDE and when i click "open with" I cant find netbeans within the ...
0
votes
1answer
684 views

Search & Replace Using Grep and Sed Command

I want to remove the weird / special characters from the bunch of text files. Here i used the following command to remove the weird characters but it gives me the error. Command : 1) grep -lri -e ...
1
vote
2answers
714 views

Is there a browser based interface for running command line on your host?

I know I can manually run it through PHP's exec() command but I was hoping if there was a ready to download and deploy PHP-based system that could act as a bridge and terminal and you can run commands ...
1
vote
1answer
1k views

Installing PHP 5.4 on CentOS 6

I want to update my CentOS 6 PHP version from 5.3 to 5.4 so I tried this guide: http://www.webtatic.com/packages/php54/ But after running yum install php54w I get this: Setting up Install Process No ...
0
votes
0answers
77 views

How to display assets on localhost

I'm trying to run a site on a MAMP stack, but when I load a page the assets aren't showing up. I inspected the Net tab in Firebug, and my stylesheet tags are pointing to the right CSS files, but the ...
0
votes
1answer
263 views

WampServer's alternative php version not working

I recently updated my Window's wamp version to the latest (64bits & PHP 5.4). It works fine. But then i tried to install the PHP 5.3.1 extension. When i try to use it, Wamp stops on orange and ...
2
votes
1answer
183 views

php sessions - is it possible to trigger a server script executed by a DIFFERENT user than www-data?

i am running a php+mysql site on a lamp ubuntu cloud server (amazon ec2). i use php sessions. the apache php user is called www-data. for every session (SID), i need to create a temporary folder ...
0
votes
1answer
291 views

Mac PHP compilation: Unrecognized options

I'm trying to compile PHP with a MSSQL extension. I get this error: WARNING: unrecognized options: --with-php-config when I try to run ./configure --with-php-config=/usr/local/php5//bin/php-config ...
0
votes
1answer
388 views

My server is not receiving any php uploaded files

I have a local LAN server running on a Raspberry Pi (apache2) with PHP installed. I know that PHP is working, because I wrote a test file, echo "Hello, World!" and it worked. But, whenever I upload a ...
4
votes
1answer
167 views

Convention on directory of file outside /var/www

By /var/www I am generically referring to the document root for Apache. Often times you want to work with files, but don't want them inside the doc root (PHP examples come to mind). The general ...
4
votes
1answer
416 views

Linux server broken packages

So, I'm trying to install the PHP5 cURL package on a Ubuntu Lucid 10.04.3 server. My concern is that there are broken packages on this server and if I install this package with the broken packages ...
0
votes
0answers
297 views

Excel csv encoding default

Ok here's the deal I exported a csv in UTF-16 format via PHP and open it in excel...All the encoding works perfectly. My question is, suppose I edit this csv and then just hit save in excel and ...
0
votes
1answer
47 views

How to convert charset of a file

I have a file (php file) which is has a charset that I need to convert to us-ascii. How can Ido this on Linux?
1
vote
0answers
308 views

Installed new version of php but server still uses older version

I just upgraded to PHP 5.4.11 from 5.3.15 following this link. After upgrading I ran php -v but it shows me following output. Zafars-MacBook-Pro:php-5.4.11 zafar$ php -v PHP 5.3.15 with Suhosin-Patch ...
1
vote
0answers
87 views

Localhost slow on desktop, not on laptop

I am using XAMPP Lite on my desktop and laptop, which uses Apache for the web-server and also supports PHP. My locally hosted image gallery PHP program has its page elements (100s of thumbnails) ...
0
votes
3answers
422 views

Turning on “E_ALL” (errors) in php.ini

I've turned on errors in php.ini by removing the ; in front of the comment on line 240 of php.ini (I'm using PHP 5.4.4). I'm using MAMP for my local server to set up a local environment, and I ...
1
vote
2answers
419 views

am using ubuntu 12.10. unable to use PHP_PERL extension. Unable to install the extension as well

I need to run a Perl script because I need a module that Perl has that PHP does not. This is my code for testing purposes in PHP <?php echo ("Hello World"); $perl = new Perl(); ...
0
votes
1answer
632 views

How to install PHP 5.3.18 on Amazon EC2?

I am googling for a while but with no luck. I am looking for quickest way of installing PHP in 5.3.x version on Amazon EC2. Could someone give me any advice?
3
votes
1answer
83 views

Installed mysql from source on linux and then how to get it work with php?

I installed apache and php from source and got them working together a month ago. Because I'm learning both of them this term. Now I need mysql to do more works. And I installed mysql from source just ...
0
votes
1answer
435 views

web server very slow, bombarded with php-cgi processes?

I have a Parallel Plesk 11.0.0 with CentOS 6.3. Lately, I've noticed that my web server runs VERY slow (not the norm), CPU average at 80% no matter what kind of traffic, and my top is filled with ...
0
votes
1answer
404 views

Slow PHP over ubuntu server | VirtualMachine

I have an Ubuntu-server 12.04LT-64x installed on VMware Player (I found VMWare works better than Virtualbox after few installations over vb). My host computer is an Intel i3 with 6GB-RAM and ...
0
votes
1answer
342 views

How do I debug an Apache web server failing to load on windows?

On my dev environment I upgraded php with an msi, and my apache wouldn't load anymore. Where can I find information about the reason it failed? I have the error logs for each virtual server, but no ...
2
votes
1answer
1k views

Nice commands in a .sh script for cron jobs

I have this php script that I need to run on shared webhosting. I have created a cron job that executes an sh script. The command for the cron was: /bin/sh /home/user/script.sh So I'm assuming it is ...
0
votes
1answer
70 views

How can I run Bitnami OSQA with other web service (wordpress, joomla)?

I installed OSQA Bitnami on my VPS. And I also point 3 domains to this VPS. Now I want each domain point to different web service (I have another PHP website I want to host here). How can I run php ...
-2
votes
1answer
414 views

How to increase page loading speed in PHP? [closed]

I am developping a website for watching movies online using php and I want to know how to increase page load time for pages. Because my pages contain a lot of content I do not know how I can get more ...
0
votes
1answer
214 views

Can't Start Apache on on Snow Leopard. “libphp5.so requires version 13.0.0 or later, but libjpeg.8.dylib provides version 9.0.0”

To cut a long story short, I was trying to compile and get ImageMagick working on my Mac running Snow Leopard. One thing led to another and now I am stuck with the following error message when I try ...
0
votes
2answers
202 views

How do I run php scripts on a host's server via command line?

I have a hosting provider with mediawiki installed, I am trying to install an extension and I have to navigate to a directory on their server and run an install.php script. How do i do this? I have ...
1
vote
0answers
523 views

EnterpriseDB ApachePHP - PHP not working

I realize there are a million 'php not working threads' on superuser, but none of them cover my situation, and none of the answers have solved my problem. I installed apache/php on windows 8 as part ...
1
vote
0answers
76 views

Libpdf_php complaining about non thread safe binaries

I installed libpdf_php on MAMP v2.0 and after restarting Apache I get following error: [11-Jan-2013 11:48:21 UTC] PHP Warning: PHP Startup: pdf: Unable to initialize module Module compiled with ...
-2
votes
1answer
45 views

Looking for a program like php formater [closed]

I got a php project which I have to develop but problem is last developer didn't care about readability of his work. So I ended up having hundreds of php files which are impossible to read. Look at ...
1
vote
1answer
486 views

Giving write permission to a directory linux

I have a strange problem. I gave a directory ci with chmod 777 ci permission. The ls -l command shows drwxrwxrwx. 5 root root 4096 Jan 1 18:08 ci But when I tried to create a file innetbeans, it ...
0
votes
1answer
521 views

Plesk SSH chown root:root admin by mistake

I have a Plesk server running the domain geekwiz.com. I was trying to run cronjobs using the scheduler on plesk however I was receiving emails of the cronjobs saying: permission denied. I SSH into ...
1
vote
2answers
362 views

Interpreting PHP offline?

I'm trying to learn PHP, and it's getting annoying having to upload a file to the server every 30 seconds. Is there a way to get a browser (I use Chrome on Mac 10.6.7) to interpret a PHP file (browser ...
-1
votes
1answer
90 views

Is it possible to save a folder with SFTP? [closed]

I've uploaded a folder with extension .zip via a web interface and I want to save via SFTP so that a perl script can retrieve the folder, unzip it, and execute some instructions. I've found these two ...
1
vote
1answer
477 views

PHP: mkdir(): Permission denied

I've php script that should create two new folders in "albums" and "pl". in "albums" apache can create a new folder but not in "pl", even though they have the same permissions. I can't understand what ...
0
votes
2answers
696 views

Linux (Ubuntu) Run program in background

I am trying to run a PHP script in background on my Linux server over SSH (Putty) but I'm not getting this to work. The command I want to run in background is: php buildscript/build_css.php as ...
1
vote
1answer
16k views

How do I disable ALL error messages via php.ini?

Despite the following settings below, I often see the path to the file producing the error. How do I turn off ALL errors no matter what? error_reporting = E_ALL display_errors = off log_errors = off ...
1
vote
1answer
144 views

How do I setup a website on Ubuntu Server 12.04 with PHP, MySQL, and webmail?

I have a computer in my room running Ubuntu Server 12.04 and I would like to know how to run a website off of it. I already have installed PHP and MySQL but I don't know how to install webmail or how ...
0
votes
1answer
88 views

php -S not working (development server on LMDE with Firefox)

PHP 5.4 comes with a built-in development webserver: http://php.net/manual/en/features.commandline.webserver.php When I try to start the server like documented everything looks fine: php -S ...
1
vote
1answer
211 views

Why cannot I upgrade phpunit_selenium package in PEAR?

Currently I have PEAR v1.9.4 installed. If I perform pear list -a I see: PHPUnit_Selenium 1.2.8 stable in the middle of the response. While the latest version is 1.2.11. I've already updated ...
3
votes
2answers
68 views

What are the .php~ files?

I am working on one PHP project, and I am having some files for that. Some of the files have anextension as file_name.php~ What does it mean and how do those files get created?