Tagged Questions

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

2
votes
2answers
1k views

How to set PHP syntax for a file without <?php tag?

When I set syntax to PHP in Sublime, all thing is good in my PHP code: But when I remove <?php tag from my code, the syntax highlighter doesn't work anymore: How can I tell sublime to do ...
0
votes
1answer
57 views

Updating PHP dlls on Windows automatically

Is there any way to automatically check if there is any update for installed php extenstions in Windows (similar to what you do for pear classes)?
1
vote
0answers
58 views

Insert google analytics tracker into application-automated static HTML page

Does anyone know a method to insert the Google Analytics tracking JavaScript object into an external application-driven HTML generator which automatically exports results to a web server via FTP? A ...
0
votes
0answers
38 views

Is there a different command for php 5.4?

I have a webserver (on bluehost) that says to run php 5.4 but when I try to run php --version then I get 5.2.17 printed. Is there some special parameter or different command to get version 5.4? OR ...
-1
votes
0answers
141 views

Yahoo Weather Version not supported issue [closed]

I have used the yahoo weather php script which woked great.After few minutes it stopped working and showing below error .I couldn't understand why it suddenly stopped working Warning: ...
1
vote
1answer
1k 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 ...
2
votes
2answers
316 views

Imagick Convert Append 2 pdf pages

I am using the following code to make a single pdf file with multiple pages in one jpg file I am using Imagick library and PHP tcpdf convert -append path1.pdf path2.jpg Now what i need to do is to ...
2
votes
1answer
327 views

What is more transparent, curl or wget in this web crawler project?

I have files on a Windows 7, xampp server (using altered port, 181). I am triggering the script from another computer (linux) using curl http://xxx.xxx.xxx:181/phpproject.php This PHP project is a ...
0
votes
1answer
2k views

How to install particular version (not latest) of software via YUM?

I recently installed CentOS 6.3 on a VPS. The version on PHP that comes with CentOS is 5.3.3, which is not the final, stable PHP 5.3 version. The final version was 5.3.26. Using the default yum ...
0
votes
1answer
51 views

Need to iterate through a list of files and append text at the first line of the files in th list on a Linux CentOS system

I need to be able to append the text <?php to the beginning of php files in a list. Thank you in advanced for the help.
-1
votes
0answers
193 views

Installing PECL extension on IIS server [closed]

I wanted to install a specific PECL PHP extension (php-pecl-solr)(http://www.php.net/manual/en/book.solr.php). I managed to install it on my UNIX environment. But, I wanted to install it on an IIS ...
-1
votes
1answer
363 views

library for html to rtf conversion [closed]

I am much needed the linux library for converting html document to rtf. As currently, I have used CMS kind of functionality where html is stored in database. I need to convert it in rtf. If any ...
0
votes
1answer
919 views

why nginx can NOT remove the X-Powered-By header of PHP?

I use the proxy_hide_header X-Powered-By directive, but it doesn't work. I had to use the expose_php option in php.ini. Is there anything different between the proxy_hide_header and the expose_php ...
0
votes
2answers
41 views

Why am I beign able to rename my files in Mac Os 10.8.2 even when I don't have permissions

Im setting 444 permissions on a file, but still, Im able to rename files. I tried it through php with the rename() function and in terminal with the mv command. I list my file and it appears as ...
0
votes
0answers
466 views

How to allow apache to execute R binary from PHP exec() without disabling SELinux?

I have R installed in /opt/R of webserver. I need to execute script.r (In R BATCH mode) that is on directory /var/www/html/ using PHP function exec(). SELinux is enabled in the webserver. I suppose ...
0
votes
0answers
246 views

nginx + php5-fpm download files error

I have a wordpress blog running on a nginx/php5-fpm combo and it works great. Hardware is a Debian Squeeze with 256mb of ram. Lately (since 3 days ago) file downloading became nearly impossible, as ...
1
vote
0answers
241 views

How to delete an older version of libmcrypt

I am running through the instructions here to get mcrypt installed: http://michaelgracie.com/2012/09/26/plugging-mcrypt-into-php-on-mac-os-x-mountain-lion-10-8/ Everything seems to work fine, until I ...
2
votes
3answers
1k views

PHP: Is it possible to allow login to multiple account of same site from same browser simultaneously? [closed]

I was thinking if it was possible to allow login to multiple account of the same site from same browser simultaneously . Can this be done in php, What would be the logic involved in that case ? I ...
3
votes
1answer
600 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 ...
0
votes
1answer
642 views

How to recompile the PHP with --with-pgsql

I have installed the postgresql, php and apache to Amazon Linux AMI. Now I want to use the phpPgAdmin, it prompts "Your PHP installation does not support PostgreSQL. You need to recompile PHP using ...
0
votes
1answer
1k views

Can't connect to SMTP server using PHP Mailer but can with Gmail?

I am getting the following error from PHP Mailer when running a script in my local PC: SMTP -> ERROR: Failed to connect to server: A connection attempt failed because the connected party did not ...
0
votes
1answer
290 views

Why showing pear and phpunit is not installed in xampp on ubuntu?

I have installed xampp 1.8 on my ubuntu 12.04. In /opt/lampp/lib/php/PEAR I can see there are two directory named PEAR and PHPUnit. But when I run pear -V or phpunit from terminal it gives the below ...
0
votes
0answers
414 views

installed WAMP addons, now wamp won't start

I was running Apache 2.2.21 (x64) and php 5.3.10 (x64) but I need to run the x32 versions so I can get ioncube to run. The support forums on the wamp website I can install any of the addons and it'll ...
3
votes
1answer
250 views

How can two identically named files exist in the same place on linux

. I'm not a novice in linux I created a bunch of files with php using file_put_contents() I can't view the created files via browser I can view the files from the ftp but can't ...
-2
votes
1answer
35 views

Populate images, script not working properly [closed]

I have this piece of code im working with and it does work except one small issue. When populating the images, there is always one image that doesn't show up on the webserver. e.g. if I upload 7 ...
0
votes
2answers
1k 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
1answer
255 views

Lighttpd, PHP errors generate error 500

If I have an error in the PHP code, Lighttpd gives a 500 error and a line like this mod_fastcgi.c.2676) FastCGI-stderr: PHP Parse error:... appears in the log. The php.ini (/etc/php5/cgi/php.ini) ...
1
vote
1answer
151 views

404 when trying to use PHPFarm with Apache2

I followed this tutorial: http://www.metod.si/multiple-php-versions-with-apache-2-fastcgi-phpfarm-on-ubuntu/ All is similar, then I put php file (info.php) to /var/www, but when trying to access ...
0
votes
1answer
555 views

Map `php` at the command line to point to `/usr/bin/php`?

For some reason using php at the command line references /usr/local/bin/php instead of /usr/bin/php. How can I make $ php script.php the equivalent of running $ /usr/bin/php script.php? Current ...
0
votes
1answer
4k views

Curl Returns “Connection Refused” when trying to access localhost

I am running Xampp (Apache, Mysql and PHP) on my Windows Vista computer. I have curl installed on my machine. When I try to curl my localhost in the command prompt, I get the following: curl -v -i ...
1
vote
1answer
809 views

How to configure SAPRFC with PHP

I am trying to configuring SAPRFC with PHP but it's fail, I tried from many ways and also referred too many links using google search but not found solution on the same, So if anyone have configured ...
0
votes
0answers
436 views

Install Php-pear to /usr/share Raspbian (debian)

I am running Raspbian on my Pi and have installed PHP-pear, I have some software that requires PHP-pear but is normally installed on a Fedora based machine so pear is normally found at /usr/share/pear ...
1
vote
1answer
825 views

Setting up VirtualHost for MAMP server?

Problem I need to setup some VirtualHost records for a MAMP server I have installed on my Mac. In short, rather than using http://localhost:8888/dkbtherapy/index.html I want to use ...
1
vote
1answer
460 views

Email through php and mail command not sending

I have two servers as to which one is hosting my company's email. The other one hosts a website where i have php scripts that sends mail to my mail server. When ever i send an email i get ...
0
votes
1answer
194 views

Using awk or cut command to get CPU percentage

I am trying to execute a Linux command through a PHP script to get the CPU percentage for each core: … with cut: $output = null; passthru("mpstat -P ALL | grep 0 | tr -s ' ' | cut -d ' ' -f 4", ...
2
votes
1answer
857 views

Apache downloads php files instead of running their source

I have just recently upgraded PHP 5.3 to 5.4 on my Debian Squeeze server. Now, instead of executing PHP files, Apache just downloads them, which is really bad. When I try to follow these steps, I get ...
0
votes
1answer
582 views

Installing libevent via PECL fails on Ubuntu 12.04

I have Ubuntu 12.04 built with Moodle Stack installed. I'm trying to install this: $ sudo pecl install libevent I get this error: Failed to download pecl/libevent within preferred state "stable", ...
0
votes
2answers
959 views

Recommended way of installing PHP 5.4

PHP 5.4 is stable for quite some time now. However, when I type apt-get install php5 PHP 5.3 gets installed. Question: Why? And what is the preferred way of installing PHP 5.4? Should I choose a ...
1
vote
1answer
1k views

Setting up Apache + PHP web server in Virtualbox on Win 7

Running Apache and PHP on Windows with XAMPP or WAMP sucks, because installing new PHP extensions on Windows is very hard. Most binary releases for Windows don't work :( So I was thinking to run ...
1
vote
2answers
723 views

Is it possible to create a subfolder inside a symlink folder but not be added into the parent folder?

Is a very tricky question, sorry about that Base on this Folder A file1 file2 Folder B ( symlink of Folder A (softlink) ) file1 file2 that i want to do is create a folder or file inside my ...
0
votes
1answer
93 views

How do I enable PHP on Mountain Lion and view a PHP file?

I followed this guide to enable PHP on Mountain Lion, but now I have no idea where to access the page. I tried localhost/~myusername/info.php where info.php if my file, but nothing loads.
2
votes
1answer
331 views

TextMate 2 “Go To Symbol” not working for PHP

I’m running TextMate 2.0-alpha.9419 and experiencing this issue: the editor doesn’t see my method definitions within a class, and won’t let me jump to them via “Go To Symbol”. The only method that TM ...
0
votes
1answer
1k views

PHP file won't open in browser, only download

I can't get .php files to run on my server. For example, I created a test file entitled "test.php" with the following content (only): <?php phpinfo() ; ?> When I try to open this or other ...
1
vote
0answers
230 views

MongoDB PHP driver installation issue in Red Hat Linux

My server OS is Red Hat Linux. I installed MongoDB 2.2.3 successfully on my server, following this tutorial. I also tried following these instructions for installing the PHP driver for MongoDB, but ...
1
vote
0answers
256 views

Trouble installing php-devel on CentOS

Working with a PHP install and trying to install APC on a server to help with speed issues with an application we're developing. We are having trouble getting phpize installed. phpize is not on the ...
0
votes
2answers
63 views

PHP4 for ARM fedora

I am looking for an ARM RPM of PHP 4, specificity to install on Fedora 17, however I cant seem to find one anywhere. I assume this is most likely down to ARM not being supported by Fedora in the age ...
0
votes
1answer
571 views

SSMTP and PHP sending mail through different domainds(sub-domains)

I'm trying to set up SSMTP on my Raspberry PI(Raspbian Wheezy(Debian ARM port)) Model B, Right now I can send mail through the console just fine, actually getting the mail aswel. The problem is when ...
0
votes
3answers
4k views

PHP Startup: Unable to load dynamic library 'C:"\php\php_mysql.dll' - The specified module could not be loaded

I'm trying to upgrade php 5.4.14 from php 5.4.3 in wamp server 2.2e. I have downloaded php-5.4.14-Win32-VC9-x86 (thread safe). Extracted it under C:\wamp\bin\php. Copied wampserver.conf from ...
0
votes
1answer
739 views

MAMP PRO won't execute PHP files?

For some reason, PHP files display as plain text in the browser when I browse locally via MAMP PRO. I looked through the PHP settings and there doesn't seem to be anything there that would affect ...
1
vote
1answer
98 views

Company Cloud Where I Can Assign Files To A User

I'm looking for a script/solution for my company. Basically a place to store our contracts/invoices for our clients online (so it will be hosted on our web servers), giving our clients access to our ...