Tagged Questions

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

0
votes
0answers
8 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 ...
1
vote
0answers
15 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 ...
0
votes
0answers
6 views

Associative Arrays [migrated]

I'm needing to rearrange Array 1 by the order of how the [id] (oper-%%%%%%%%%%) appears within Array 2, and I'm not quite sure as to how to approach this. Array 1 Array ( [0] => Array ( [id] ...
0
votes
0answers
7 views

Display values from one associative array whose key exists as the value in another array [migrated]

I have two arrays, one is "OperID" the other is "OperSums". The OperID array contains ID numbers, and the OperSums array contains IDs attached to a total which looks like this: Array 1 (OperID) {[0] ...
0
votes
0answers
12 views

How to deploy a PHP app (e.g. Wordpress) to an open source PaaS without using CLI? [on hold]

I have a fresh Ubuntu 14.04 web server and I want to get rid of the LAMP stack and deploy my PHP/MySQL app (e.g. Wordpress) to a recently trendy PaaS on a private cloud, so that it could scale in the ...
-1
votes
0answers
6 views

Privacy friendly adnetwork [closed]

I'm looking for a solution where i can host ad images etc myself server side. So basically the advertiser only gets to track users that clicked the ad, and are unable to track users just visiting my ...
0
votes
0answers
18 views

htaccess specify php location

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
15 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
51 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 ...
0
votes
0answers
6 views

Is it possible that Nginx blocks itself from requesting another URL on the same instance? [migrated]

I have a setup that worked in Apache and now it is failing in Nginx with php-fpm: I have one PHP-script that is offering a service, you call the URL and get some data I have a second PHP-script that ...
1
vote
1answer
9 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
42 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 ...
0
votes
1answer
20 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
39 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
23 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
17 views

Clean URLs won't work in Drupal 7 on IIS

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
21 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
52 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).
1
vote
0answers
51 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
54 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 ...
0
votes
0answers
14 views

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
52 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
43 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
88 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
49 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
50 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
82 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
26 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
20 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
26 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 ...
0
votes
1answer
70 views

Fatal PHP Data Objects (PDO) Error - But PDO is enabled?

I recently switched website hosts, however with the new hosts, we are encountering some PDO problems. Everything indicates that PDO is enabled on my server, however, when I test it through php, with a ...
1
vote
1answer
49 views

The word “logo” is appearing in all my SERP, but it's not in my page titles

When I search for my website in Google, the word "logo" is being displayed in all the results, but I didn't specify the word "logo" in the titles of my HTML pages. See the following screenshot: ...
0
votes
0answers
140 views

Saving a Google API-generated dynamic map to a static image

I have a series of coordinates data which I plot onto an API-generated heatmap visualization using Google Maps API. The data changes daily, and I'd like to capture the heatmap and save it as a PNG or ...
0
votes
2answers
81 views

Is using URL parameters bad for SEO? [duplicate]

I recently noticed that my web page have problems with Google and good search results. Many of the existing SEO tools suggests that my website uses bad URLs for SEO. I'm using a single PHP file that ...
2
votes
1answer
36 views

Problem with htaccess rewrite condition

I needed to redirect site.com/var1/var2/var3/... to site.com/index.php?myvars=var1/var2/var3/... This is the code I wrote myself: RewriteEngine On RewriteCond %{REQUEST_URI} !=/index.php ...
1
vote
2answers
99 views

Redirect to an affiliate using PHP or JavaScript redirect?

I was asked to introduce a unified self hosted URL-Shortener/Forwarder/Tracking Service for an website that earns money from affiliates. One example I found was one of the bigger german sites for ...
0
votes
1answer
42 views

Using an external mail sending provider for my websites?

Let's say I have made 20-30 websites, that send emails such as contact form responses, welcome emails, forgotten password reminders, and similar transactional emails. What is the benefit of using a ...
2
votes
1answer
45 views

Codeigniter not working after moving direcories

I just starting trying to learn CodeIgniter. From the user guide it suggests to move the application and system folder for security reasons. I now have this structure: ./public/index.php ./app/ ...
1
vote
2answers
42 views

should I learn html/css before php even for using database? [closed]

I saw lots of question about this topic and all of them were talking if someone want to use php for "building web pages", should learn html first or not. and most of them said yes, because most of ...
2
votes
0answers
23 views

Store a formula in a table and use the formula in a javascript/PHP function [closed]

I have a MySql database where part of it handles instrument's depth of water. Each instrument has its own formula of calculation how depth the water when the operator collect the reading I stored the ...
2
votes
1answer
51 views

wordpress woocommerce php variable usage %1$s

I am using wordpress with woocommerce and I am trying to manipulate a copy of myaccount.php The default code uses some variables of some sort that I am not familiar with nor have I been able to find ...
1
vote
1answer
34 views

SEO-meta description crawling issue [duplicate]

i have following code where i m including my title and description for the page But google crawled only title not the meta description from the code. Where as meta description was read from the ...
1
vote
1answer
39 views

How to edit thousands of html pages at once? [closed]

I need to edit thousands of pages for a website with dynamic content added manually by the owner throughout 3 years, it has thousands of pages and I'm sure there is a better way to edit them without ...
1
vote
1answer
28 views

How to set site specific Error Log files in PHP under IIS

On Apache, vhosts can be configured with their own error log file, like so: ErrorLog "my-site-log-dir/error_log.log" How would this be done when hosting PHP under IIS?
2
votes
1answer
193 views

Laravel Detailed Error Page Lost

I want to see all problems when a file can't loaded e.g. I used to do it but now I can't. The only thing I get when a problem occurs is Whoops, looks like something went wrong. How can I change ...
1
vote
1answer
64 views

SEO impact when using php include

I always make a footer and a header and include them in my php pages but I am not sure the impact of doing this for SEO. The header has only a main banner and the navigation menu, all the metatags ...
1
vote
1answer
45 views

Where to place php libraries/extensions?

I am new to a lot of server configurations and options. I want to add extra php libraries/extensions to my server. Where do I add them? (I am on a CENTOS 6.5 VPS) For example, I want to add the ...
0
votes
0answers
5 views

What Webserver Do I Need For A Social App [duplicate]

I am making a social application that its base work is like twitter. When user opens app,it fetches data(texts and images) from server and listitems will be filled and users can be followed and etc. ...