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

0
votes
1answer
11 views

Google Maps API and bandwidth consumption

I have a site that uses 2 Google Maps APIs. https://maps.googleapis.com/maps/api/js and https://maps.googleapis.com/maps/api/geocode/json This "mapper" site communicates with 2 Google Maps APIs, ...
1
vote
1answer
13 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
0answers
11 views

Not able to run php files on apache server using NetBeans IDE

I want to create a php project using NetBeans IDE. I have set a LAMP server on my ubuntu 14.04. So I had to configure the IDE to copy files automatically to the apache server.I followed this - ...
0
votes
1answer
23 views

Shared hosting: how do they estimate server CPU usage? [on hold]

I'm using several shared hosting services and wondered many times: how do they calculate those "CPU seconds"? For example one of those limiting me with 300,000 seconds/month, 10,000 seconds/24h and ...
-1
votes
0answers
27 views

How to enable PHP in Yosemite 10.10.3 [duplicate]

I want to setup apache server and php in MAC OS X 10.10.3. This is included in Yosemite, but we require to enable it. Any one knows how to enable PHP and configure the deployable sites ? I have ...
0
votes
0answers
9 views

Write permissions to xampp on windows 7

I have installed xampp on windows 7 in C:/ directory. I am trying to run a PHP installation file (timetrex installation) I am getting the following error: ...
0
votes
0answers
4 views

nginx configuration - Allow local access (different rules for local requests?)

I'm working on a debian 7 nginx server. Because the server is online available, I restricted the access with following lines in the site-configuration ( server {} ): auth_basic "Restricted"; ...
1
vote
1answer
20 views

why does my local hosts file enable me to see remote server php files?

I have a hosting package with some company. They give me a temporary URL at which I can access the site and see HTML files. But when I try to access PHP files it gave me an error (500 Internal Server ...
0
votes
0answers
25 views

exception to domain forwarding

I have forwarded a domain from a hosting site to our own http server. I would now like to host some pages directly on host server to take advantage of some of the services they have; for example - a ...
-1
votes
0answers
39 views

Site hacked! Malware on site being accessed by some IPs [migrated]

I found this php malware file on my server. And when I went to 'apache status' in WHM. I saw some entries where some IPs where trying to access them. Is there a way I can tell how the malware file ...
0
votes
1answer
29 views

MYSQL UTF8 characters encoding issue [on hold]

I have a contact form for a Turkish website and when users enter Turkish characters such as "ş" "ç" or "ğ" I am getting whole bunch of symbols in my DB registry (PHP My Admin) My current config is ...
1
vote
3answers
33 views

Is python server side or client side? [closed]

I am debating on using python or work with JavaScript & PHP. Basically what I am trying to do is run an algorithm against some data pulled from my database. ( the algorithm can be very demanding ...
1
vote
1answer
14 views

Limit PHP permissions

I want to set it up so that PHP scripts can only read/write files contained in a certain directory and nowhere else on the hard drive (preferably, per virtual host). I figured I could do this by ...
0
votes
0answers
21 views

Installed PHP extensions to wrong PHP version

I just bought a VPS and it came with PHP5.3.3 and that wasn't good for our website, so I successfully (so it seemed, anyway) installed PHP5.6.7 and successfully registered it with Plesk. For the ...
0
votes
0answers
21 views

XAMPP Apache error AH01599: Cannot get media type from 'x-httpd-php53'

I'm trying to setup Xampp on a Mac (OSX 10.10.2), its setup and normal PHP runs, however when I try and run a Wordpress site the PHP code doesn't execute, it just prints out in the browser and I keep ...
3
votes
3answers
443 views

Which is the best and simplest Windows Subversion client I can install to get the Google Client Library for PHP?

My operating system is Windows 7. The google-api-php-client is made available on GitHub, and can be downloaded with Subversion. The documentation provides the exact command line command to download ...
0
votes
0answers
48 views

Nginx + PHP projects outside of root

I'm trying to setup project directories outside of my server root in Nginx 1.0.15 (I can't get any newer versions due to environment). I want my directory structure to look like this: /var/www |-- ...
0
votes
0answers
14 views

Once again Trovebox (OpenPhoto) setup hangs/fails at final step 3

Trovebox setup doesn't proceed beyond step 2. Gives a blank page 3 Having the same issue as this post but advice there is not resolving my issue Trovebox (OpenPhoto) setup hangs/fails at final step ...
1
vote
0answers
30 views

File exists but returns “The system cannot find file specified” when using UNC path [migrated]

I'm using PHP to check if a file exists and then get it's size. The code worked great before but now that we're using a UNC path I can check that the path exists with file(exists($filename)) but ...
0
votes
0answers
9 views

How to install package with locale dependencies?

I've built my own PHP5.5 on my RedHat6.6 two month ago in order to support Sybase database connections. Today I want to enable memcached support. I tried yum install php55-php-pecl-memcache.x86_64 ...
0
votes
0answers
10 views

Buffer problems Adafruit Thermal Printer connected to Raspberry Pi B+ [migrated]

My Raspberry Pi B+ is hosting a PHP website and that is connected to a thermal printer through serial interface (RS232 Adafruit thermal printer). So I used the library PHPSerial to write to my ...
0
votes
2answers
59 views

FTP is corrupting files since a few days

Since a few days, every ftp upload I run corrupts files over a certain size, mostly after 400 - 500 lines of code, the file breaks, starts all over from the beginning, and then after a few lines ...
0
votes
0answers
25 views

How to send COOKIE, PHPSESSID from my own webserver to php5-cgi script to execute PHP pages

I am developing a Webserver in C. I know how to pass environment variables to ph5-cgi, eg: putenv("QUERY_STRING="); putenv("REQUEST_METHOD=GET"); putenv("REDIRECT_STATUS=true"); ...
2
votes
0answers
10 views

Customise HTML-Kit Tools syntax highlighting

I'm using HTML-Kit tools to edit a PHP site. The syntax highlighting's really helpful, but it would be good if I could edit it, specifically so that my custom functions would be highlighted (as ...
1
vote
1answer
62 views

PHP 5.6.6 loading but not interpreting in Apache2.4 64 bit Windows

I have installed Apache 2.4.12 (Win64) VC11 from Apache Lounge. Typing httpd -M tells me that php5_module is loaded and shared. I have PHP 5.6.6 win32 VC11 Thread Safe installed. The Apache server ...
0
votes
1answer
48 views

PHP PECL Sphinx module won't install

I'm trying to install the PHP Sphinx client (PHP 5.6) on my Debian 7 server using PECL. I get the misleading error "wrong libsphinxclient version or lib not found" when trying to build, even though ...
0
votes
0answers
13 views

ISPConfig3: No PHP MySQL function available

This message is given when I configure ISPC3 with php -q install.php The ISPC3 output: ISPConfig3: No PHP MySQL function available. Please ensure the module is loaded. I've tried to install the ...
0
votes
0answers
20 views

php.ini changes not reflected to website

i am unable to edit the php.ini changes. i changed in the etc/php.ini and also in home/domain/etc/php5/php.ini But the changes are not be reflected when i see on the php files. i am using phpinfo() ...
0
votes
0answers
30 views

Turning off send mail as nobody on WHM, existing PHP scripts with mail()

I've turned off sendmail as nobody on WHM, to try to deal with some load issues on my server. However, this means that many existing PHP scripts under other accounts that have mail() in them do not ...
0
votes
0answers
12 views

How to set ownership/permission of PHP site that accessible by the user AND the apache user

I'm having problems with my PHP projects within /var/www set on permission www-data:www-data. My user can't write to these directories. I've added myself to www-data group and have added chmod -R ...
0
votes
1answer
78 views

Login script with PHP and MySQL doesn't work, users from database doesnt appear - probably rookie mistake

I am new at php and MySQL, and I might have a stupid mistake here, but I just cant find it.... The script returns that I have entered wrong password or username, but I am completely sure that both are ...
0
votes
0answers
23 views

ffmpeg start recording at certain time

I'm searching a ffmpeg option that let me start recording streaming source at a certain time: I start my php script with crontab, inside my php I run ffmpeg for X minutes. Ffmpeg takes some seconds to ...
0
votes
0answers
8 views

Phing - Alternative to fetching files using scp's fetch attribute using filesets

I have a Phing task like this: <scp host="myserver" fetch="true" todir="backup"> <fileset dir="upload" > <include name="**" /> </fileset> </scp> ...which ...
0
votes
1answer
120 views

unable to open phpmyadmin Error during session start; please check your PHP …etc

I have installed xampp on ubuntu. I can access on firefox localhost/xampp. However when I go to phpmyadmin on the left it comes up with "phpMyAdmin - Error" Then underneath that it has this: "Error ...
1
vote
0answers
76 views

bash- command does not work with php shell_exec

I want to execute following command on my Ubuntu server using php: android create project --target 8 --name $fname --path ./$fname --activity MainActivity --package $fpack 2>&1 The above ...
0
votes
1answer
10 views

How to make titles bold based on date in WordPress?

I am having a WordPress site with static front page and it displays featured and recent posts....I am not using any widgets to achieve this, just using a custom home page template. My requirement is ...
1
vote
0answers
115 views

I destroyed my Mac's PHP setup: SSL certification fails

Long story short, I deleted the PHP symlink on my Mac, and replaced it with a symlink from XAMPP. Now it seems that there's a problem with my SSL configuration or what seems to me, a lack thereof. ...
0
votes
1answer
385 views

Errors with a phpMyAdmin install on CentOS 7

Well, I was trying to install phpMyAdmin on CentOS 7 (64bit) and this happens. Here is a Pastebin of the output from yum install phpmyadmin because can’t get code thing to work. [root@ftb ~]# yum ...
0
votes
2answers
212 views

How to yum update PHP to version 5.4 on Amazon Linux?

I need PHP 5.4 installed in an Amazon Linux instance. Presently we have: root@ip-10-138-1-229 webapps]$ php -version PHP 5.3.29 (cli) (built: Aug 20 2014 16:41:34) Is there a yum package for this? ...
0
votes
1answer
120 views

Remove everything related to PHP on Debian Server

I tried to compile PHP5.4 by myself with ZTS support which worked fine, but it seems that whenever I install extension with apt-get like apt-get install php5-mysql, it does not get installed into the ...
0
votes
1answer
105 views

Can MySQL handle a string 2 million characters long in BLOB

A search using the title returned 1 question on Stack Overflow, which was not related, and with the MySQL docs 65535 characters was mentioned as a max; but is that ... normal characters or would it be ...
1
vote
0answers
15 views

PHP syntax in Sublime Text very slow

My Sublime Text 3's PHP syntax highlighting causes the editor to become extremely slow. And it's proportional to the amount of code in the current file. It's only with PHP. As soon as I switch to ...
0
votes
0answers
6 views

Php Pear Remote-Install “Error: remote-install expects either option ”remoteconfig“ be set, or remote_config configuration variable be used”

I am setting up PHP and Pear Remote install on my local server. As per the instructions here: http://pear.php.net/manual/en/installation.shared.php I have 'setup' the remote configuration using ...
0
votes
0answers
9 views

How to identify the database and took backup from another server?

Please guide me in this situation. I have two domains domain1 and domain2, both domain are registered from the different provider but hosted on the same server (server1). My question is that if I ...
0
votes
0answers
6 views

Syntax highlighting of variable interpolation in BBEdit

I'm writing PHP in BBEdit. How can I highlight variables inside strings differently from the rest of the string? For example, in "hello, $name", the $name part should have a different highlight ...
1
vote
0answers
26 views

How to switch off “you can use new shorter array creation syntax” hint in NetBeans IDE 8.0.2?

I use NetBeans IDE 8.0.2 on Linux Mint. I searched through the options few times, but I can never find the option to switch this hint off in there. I know well about the new syntax in PHP, but I ...
1
vote
0answers
26 views

PHP - MSSQL configurations cause slow performance [closed]

I have a problem in my project using PHP and MSSQL. I have the following configurations: 64 GB Ram 16 CPU Intel Xeon SQL Server 16 GB Ram 4 CPU Intel Xeon Web Server And I have the following code: ...
0
votes
0answers
30 views

Can Netflix OSS system be used for applications built in php and/or python?

I came across NetflixOSS open source project http://netflix.github.io/#repo I was wondering if it would work out of box with php and python applications. How can a person tell what types programming ...
-1
votes
1answer
147 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
vote
1answer
222 views

failed to open stream too many open files - php 1024 maximum limit - Redhat - why isn't new limit working?

I've got this message while debugging a problem in a PHP program. I've already edited the /etc/security/limits.conf and added * hard nofile 500000 * soft nofile ...