PHP is a free server-side, general-purpose scripting language that is especially suited for web development. Originally PHP stood for Personal Home Page, now it stands for PHP: Hypertext Preprocessor.

learn more… | top users | synonyms

-1
votes
0answers
6 views

Hiding and redirecting extensions on my webpage

I want to hide extensions on my webpage using the .htaccess file. I have managed to do it by using this code; RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php ...
0
votes
0answers
1 views

CMS for a Localized (i18n) Webiste [duplicate]

I have a website that is using Php Gettext for localization capabilities and I have got to that part where I need to create a CMS for updating the content. I had initially hoped CUSHYCMS would do the ...
0
votes
0answers
13 views

Php form validation with fwrite() and fopen() [on hold]

I want that php first validate the form and when the form is validated completely it runs fwrite script and when any field is empty, it returns an error and do not run frwite script. Am i doing right ...
0
votes
0answers
2 views

Ussing reCAPTCHA on HTML5 whit contact-form.php [migrated]

I have a website Html5 and try adding the reCaptcha still sending messages without activating the reCaptcha and last night I received over 300 messages a boot. Help me please how to add so that only ...
2
votes
1answer
26 views

cPanel PHP open_basedir warning to root directory - Any solution?

I am currently hosting a simple multi-tenancy service on cPanel shared hosting, where customers who signed up will have a subdomain, directory and a database dynamically assigned to them (via XMLAPI): ...
0
votes
0answers
16 views

PHP redirect not working [closed]

I bought a domain I want to park it pointing to a different site. The problem I am having is the external links going to whatever pages the site had before are breaking my link and not going to the ...
0
votes
0answers
6 views

There is a molokai theme for GeShi? [closed]

I want to give a Molokai aspect to the colour’s code of my site using GeSHi. So a search if it already exist.
1
vote
2answers
39 views

How does mediawiki save the passwords?

I have mediawiki installed in my local machine. I had to use a form outside wiki which asks the user to upload files with the wiki username and password. In order to achieve this I went through the ...
0
votes
0answers
5 views

Hosting solutions for image uploads. [duplicate]

I'm developing an application which will primarily deal in image uploads. Since the RESTful API is written in PHP I've been looking at options similar to fortrabbit.com for hosting the app itself. ...
2
votes
1answer
47 views

Apache Unable to open logs: /Applications/MAMP/Library/${APACHE_LOG_DIR}/error.log

I am trying to run a project built in Ubuntu with PHP on fat-free framework. I am using MAMP on macOS Yosemite 10.10.1. I imported a database successfully through phpmyadmin & following these ...
1
vote
1answer
60 views

Not receiving email sent from PHP mail() after cPanel migration?

I just moved my site example.com from one host to another by cPanel account backup and restore. Name servers are changed a few hours ago. info@example.com is hosted at Google apps with MX records ...
1
vote
0answers
44 views

Trying to include a file from parent domain in subdomain?

I am trying to include a php file from a parent domain in a subdomain. In subdomain.parentdomain.com/test.php i have include ('/var/www/vhosts/parentdomain.com/website/wp-blog-header.php'); My ...
1
vote
1answer
27 views

How can I pass optional URL parameters through my rewrite rule?

I created a CMS that identifies if the GET value of url is defined, and if it is, it returns the html contents of the page from the frontend template on index.php. This ideally is to make a templating ...
2
votes
1answer
28 views

How to get multiple form field values in Google Analytics site search report?

I'm wondering how I can get multiple form field values into Google Site Search. For instance, I have a search form that has a drop down for year, make and model. Once submitted I would like those ...
2
votes
1answer
36 views

Sharing CodeIgniter installation between different servers

Current situation: I've got 2 different servers, each one hosting its own CI installation, and everything is working fine, except a lot of code is duplicated (custom libraries, some views, etc) My ...
1
vote
1answer
32 views

Is it possible to install Piwik and send it fake data to test its features?

I found Piwik as a good open source solution for website analytics. Is it possible to run Piwik and see its features using fake data rather than a live site? Not only the demo version which is ...
0
votes
0answers
8 views

How can I center my image in white space? [migrated]

How can I center my image in white space? I am using HTML, PHP or CSS. I am not sure of the best approach, but that is what I have involved so far. I only saw how to align an image within text on ...
1
vote
0answers
10 views

Alternative to Ebay Open Source [duplicate]

I'm looking for an auctioneering cms which is basically a copy of Ebay, but just more modern and open source. I would love it if it would already have a connector to a Big Data DB like Hadoop. Does ...
1
vote
1answer
53 views

Non existent image files are not being handled by PHP as they should due to ngnix configuration

I am currently building a web application. In order for it to work properly I wrote this rule: location / { if (!-e $request_filename) { expires 168h; add_header Pragma public; ...
1
vote
1answer
30 views

Delay Loading of Webpage Content / Debounce Cache

Background: I am implementing a custom cache handler in PHP. The cache script is triggered on-demand by website traffic. I want to intelligently handle an influx of simultaneous requests. To do this, ...
5
votes
1answer
169 views

How can I protect my PHP source code from a client when installed on a client's server?

I have done a PHP web application and my client request to host it at their server. How can I protect my PHP code so that it will not be viewed, study, or take it for any other usage by my client?
3
votes
2answers
129 views

CloudFlare Not Sending If-Modified-Since Headers

I'm trying to reduce my server load by providing 304 Not Modified responses for content where appropriate. CloudFlare is my middle man, so they should be sending If-Modified-Since headers whenever a ...
1
vote
0answers
29 views

How to optimize a dynamic website [duplicate]

I know there is already an answer on Webmasters to a part of this question (SEO for Dynamic website) , which has been very helpful with How to build a controller that creates an xml sitemap? on SO ...
2
votes
2answers
101 views

Browser will not cancel the request if routed through PHP

I have a site which has a feature that causes Apache to route all requests for files in a particular directory through a PHP script via .htaccess. A problem has come up that I'm not sure how to ...
2
votes
1answer
56 views

Whats the use of mysql.safe_mode in php.ini file?

I've seen some website on security recommend to enable mysql.safe_mode in php.ini # Enable SQL safe mode sql.safe_mode = On When I searched hard to find info on this, I found this: If the SQL ...
1
vote
0answers
31 views

How can you use Apache .htaccess to specify the location of the PHP binary on shared hosting?

I'm using shared hosting, can create .htaccess and php.ini and have access to ssh. I have PHP 5.6 installed to ~/public_html/php56 and can use this path with ssh, cron and exec() but not on the web. ...
0
votes
0answers
16 views

Search Engine Optimize a photography website? [duplicate]

Because most photography websites are mostly photo galleries, I'm at a loss on how to code my new site. You can choose a friendly url, use alt tags for every image, include language set, meta tags, ...
2
votes
1answer
229 views

Modifying the PHP “upload_tmp_dir” variable on a Godaddy Linux hosting?

OK, I have tried to install Joomla and WordPress on one of the hosted domains at my Godaddy's Linux Hosting. For the Joomla installation I was encountering an issue where the installation would not ...
1
vote
1answer
15 views

How do you apply per-directory PHP.INI settings with Zend Server?

I normally like to apply some application-specific PHP.INI settings in the root of each project, but in Zend Server the following methods do NOT appear to work... Using .htaccess with php_flag and ...
1
vote
0answers
75 views

Scheduling tasks with GoDaddy shared hosting using Plesk

How do I schedule a task in GoDaddy using Plesk? How do I set the Path to an executable file in the schedule task? I have the path as G:\PleskVhosts\[domain.tld]\[path]\[file_name] but I'm getting ...
1
vote
1answer
30 views

How to set permissions for DooPHP?

I have downloaded and installed DooPHP according the Installation instructions. However, there is no statement on how to set permissions. Also not in INSTALL.TXT which comes with the product. The ...
0
votes
1answer
49 views

fsockopen() not working

I'm running an Ubuntu 12.04 server with Plesk 12, Apache 2.2.22 and PHP 5.3.10. I want to enable reCaptcha for my phpBB board, but every time I get this error: Could not open socket I've enabled ...
1
vote
1answer
31 views

Scaleable way to host PHP web service? [duplicate]

This is my first time working on a project like this, and i'm not sure where to turn next or how i should go about launching. Currently the site consists of PHP and html files in a "/public_html" ...
1
vote
0answers
19 views

Clean URLs won't work in Drupal 7 on IIS [closed]

I am using Drupal 7 and IIS 8 as my web server. When I click Clean URLs in the configuration, I check it and then click save, then it loads the page without the box checked. However I can type in ...
1
vote
0answers
35 views

Passing Arabic values in parameters results in % spaces

I have built an .htaccess clean URL, this part works perfect in my .htaccess: RewriteCond %{THE_REQUEST} /road.php\s [NC] RewriteRule . نقفورالثانيفوكاس/ [R=301,L] RewriteRule ^نقفورالثانيفوكاس/$ ...
-4
votes
1answer
59 views

How to block all hacking? [closed]

The title explains most of my question. The OS is linux (Lubuntu). The servers are Apache2 (PHP5), MySQL 5.6 and FTP (Samba).
2
votes
1answer
91 views

Unexplained long Time To First Byte

My wordpress blog is getting a grade F for TTFB on webpagetest.org: http://www.webpagetest.org/result/140905_20_PRX/ with a TTFB of over 800ms. I cannot explain it. Indeed, I use a CloudFlare CDN, ...
0
votes
1answer
83 views

Can't change HTTP Vary header from PHP

I have a test server running CentOS, and changing the Vary header there through PHP via: header('Vary: Accept'); works as expected (it's added to the Accept-Encoding value that Apache already adds ...
1
vote
0answers
20 views

Avoid storing a .pem security certificate insecurely on the sever under Azure Management from Wordpress

Microsoft has up to 3 additional slots aside from "production" now for Azure websites. I wanted to write a management page in php for allowing content administrators to swap between staging and ...
0
votes
0answers
21 views

Google Indexing PHP pages with and without backslash [duplicate]

How can we use the .htaccess file to only have our pages indexed by Google without the trailing slash. Right now both pages are being indexed.
0
votes
1answer
61 views

How to handle non-existent subdirectories?

I have a dynamic website with friendly URLs. Example: Instead of /user.php?id=123, I have /user/123 Instead of /index.php?category=fishes, I have /fishes But, how do I handle non-existent ...
0
votes
1answer
49 views

Pagination and duplicate content

I have an archive page that displays the number of articles published. Because there were so many, I ran a pagination script: for 127.0.0.1/archive/2/?p=x&pp=y where p is the page number and pp ...
3
votes
2answers
92 views

Switching to HTTPS - redirect question

Following the recent Google announcements about improved ranking for sites running on https we have a number of clients asking about this. Is it safe to just 301 redirect all pages to their SSL ...
0
votes
1answer
69 views

Problem with ipage server

I want to use PHP inside XML. I create some XML file and everything is OK on my local WAMP server. But online (on ipage server) just problem. I include AddHandler application/x-httpd-php .xml in ...
4
votes
1answer
57 views

Statically mapping a PHP script to another script using an .htaccess file results in 404 errors

After having read a lot of posts on the topic of URL rewriting, I still remain stuck with 404 status errors. My goal: A 'static' rewrite of URLs, as follows (user clicks or enters the one ...
1
vote
1answer
99 views

“PHP” is showing up in Browser + OS list in Google Analytics report

PHP is listed as a browser in Google Analytics. 50 sessions have been created. Obviously Analytics data is collected via Javascript executed in the visitor's browser so what is PHP (a server-side ...
1
vote
2answers
32 views

Using ini_set() to change memory lmit for individual PHP scripts

I have had trouble in the past with memory issues caused by individual scripts on a website using more memory than they should. I have tackled this problem by lowering my PHP memory limit from 512MB ...
1
vote
0answers
23 views

PHP installation missing while opening website [closed]

All was working fine but then suddenly Your PHP installation appears to be missing the MySQL extension which is required by WordPress came when I try to my site. Hosting:Godaddy PHP version:5.4.26 ...
-1
votes
1answer
32 views

simple database edit webpage recommendations [closed]

It's been a long time since I've made something like this, I'm just wondering if I'm not re-inventing the wheel. My client currently has a bunch of data in an excel file and wants this to be on the ...
1
vote
1answer
35 views

Google pre-rendering causing double and triple events [duplicate]

Is it possible to detect google chrome and firefox prerendering on the server side, or in .htaccess, and defer the prerendering for the purpose of monitoring traffic and website events, or do I need ...