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
7 views

E-Commerce Component List [on hold]

I am going to be building public facing "get a quote" form on a website which encompasses website design and e-commerce development. We will use the form internally as well to build quotes for call-in ...
0
votes
0answers
12 views

How to start mainteance scripts made by MediaWiki on 000webhost [on hold]

i need to start update.php scrypt using MediaWiki on 000webhost, and noone has shell access, so i dont know how. How to do it? I need easyest solution, like another PHP file, or something else?
-1
votes
0answers
12 views

Need PHP Script required for Group Cash Management [on hold]

Pls anyone help me get a suitable php script based on below requirements, Manage Personal deposit on a common fund show person wise profile like total deposit, personal profit share Show common fund ...
0
votes
0answers
11 views

Convert from htacces url rewrite to php routing [on hold]

i'm administrating a php/mysql based website with a complex (at least for me...) site structure: each subcategory of the main menu corresponds to a folder on the shared hosting. The posts on the site ...
-1
votes
1answer
29 views

simple database edit webpage recommendations [on hold]

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
16 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
22 views

Fatal 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 ...
-2
votes
0answers
16 views

Making STL viewer to render a STL file automatically [closed]

I wrote a STL viewer which will be loaded in browser and we should upload a STL file manually by clicking a button and inputting a STL file. But I don't want that to happen. I want STL viewer to ...
0
votes
0answers
4 views

Accessing files outside root directory [migrated]

I've installed magento and cakephp in my development server. I built a STL viewer by using cake php and gave path like this to upload files to STL viewer: $mystlpath = ...
0
votes
0answers
3 views

Passing array in add_option() in WordPress custom theme [migrated]

I have to create a option page in my custom theme wordpress. here is is a sample of code <?php function bguru_register_settings(){ $default_options=array( ...
0
votes
0answers
16 views

Building a Website using user informating to send emails. Should I use a CMS or PHP? (Beginner) [closed]

I am developing a site for a client and want to make a membership site that sends emails to customers about different vendors. I will store and pull vendor data (i.e flavors, menu items) in MySQL ...
0
votes
0answers
21 views

Include code works on one page but not another [closed]

I am not sure if i can ask this here or not but sure someone will tell me, I am a bit of a noob when it comes to website building and php etc so please have patients with me I am learnig as I go. I ...
1
vote
1answer
40 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
18 views

Error while migrating a Joomla website from version 1.5 to 2.5 [migrated]

I have tried to migrate a website in Joomla from version 1.5 to 2.5 using jUpgrade but I received an "undefined migrating" error: Fatal error: Uncaught exception 'Exception' with message 'Unknown ...
0
votes
0answers
34 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
0answers
14 views

CodeIgniter and Postgresql: inserting intger

I've this codeigniter statement: // CREATE public function AddContact($nome, $number) { $data = array( 'nome' => $nome, 'number' => $number); ); ...
0
votes
2answers
28 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
27 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
29 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
31 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 ...
0
votes
0answers
4 views

How do I load a page from mysql database when clicked on link in a menu [migrated]

This is the code from index.php <?php include("header.php"); $page = isset($_GET['page']) ? trim(strtolower($_GET['page'])) : "home"; $allowedPages = array( 'home' => ...
2
votes
1answer
30 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
36 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
21 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 ...
1
vote
1answer
30 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
28 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
29 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
16 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
56 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
44 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
35 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. ...
2
votes
1answer
94 views

Why is CakePHP generating unrequested 301 redirects?

Seemingly at random, when I attempt to go to a webpage (such as /want), another webpage (such as /get) on the same subdomain is loaded in response. This has been happening for many months on a set of ...
1
vote
2answers
74 views

How to set the Content-Type for SVG files parsed by PHP

I currently use the following Apache httpd conf: <FilesMatch "\.svg$"> SetHandler application/x-httpd-php </FilesMatch> AddType image/svg+xml .svg What I'm trying to achieve: ...
1
vote
0answers
40 views

What are the pros/cons of using a CMS for my website tutorials vs. static files inside folders? [closed]

I'm building a website that will have tutorials on products from one manufacturer. The tutorial will be a step-by-step guide with screenshots. The content won't be updated once the tutorial is posted. ...
1
vote
1answer
52 views

How should I upload videos to Amazon S3?

I have a project which is basically a website like YouTube. I am hosting my videos with Amazon S3. I am confused as to whether I should upload videos (200mb+) by a PHP script or by browser-based ...
0
votes
3answers
29 views

Stop other sites on server from being able to access other sites on server

I am on a friends server and I have found a potential security flaw where I can access other sites files on the server. He says he is on a shared hosting and I am not sure yet if the other sites are ...
0
votes
1answer
35 views

What method should I use for copying data from one table to another one?

I'm wondering what method I should use for copying data from one table to another one. I'm letting users post data through a form which uses table1 to save data. Now for displaying results I use data ...
1
vote
0answers
17 views

How to add Field data in between <td> in PHP EMAILER? [closed]

I have a created a PHP form which is working fine without adding any html table on that. While I am applying Table to make the emailer better look, I am receiving email without form Field Data. How to ...
1
vote
0answers
40 views

How to find out what is causing “Entry Process” limit?

We're using an OpenCart 1.5.5.1 custom theme for our site. Well it hasn't been smooth sailing for us and we are facing problem after problem. So far the gist of it is we're currently on a business ...
1
vote
1answer
54 views

http header rel=“canonical” through htaccess for dynamic content

I have a large number of URLS where I need to specify rel="canonical", The URL structure is like: example.c.o.m/abcd?q=ccccc&location=ffff&x=pp&y=qq I need to strip the last two ...
0
votes
2answers
64 views

Do PHP-FPM (and other PHP handlers) need execute permissions on the PHP files they're serving?

I read in a post at Server Fault that PHP-FPM needs execute permissions. However, the answer in When creating a website, what permissions and directory structure? only grants read and write ...
1
vote
1answer
84 views

How to execute PHP from TinyWeb

How do I set up my system to get TinyWeb to execute PHP scripts? Mongoose asked me to specify the location of php-cgi.exe, but I'm not sure how to do this for TinyWeb.
1
vote
1answer
50 views

301 redirect + RewriteRule not working together?

I am using a 301 redirect to redirect a page to another page in the same website, which uses RewriteRule to hide the PHP variables in a friendly URL. My redirection code in .htaccess: Redirect 301 ...
1
vote
0answers
29 views

Advantages and Disadvantages of C CGI over PHP? [closed]

I've developed a lot of websites with PHP but sometime after learning C programming I found out that it's possible to do the same thing using C CGI. But I still don't know if it will be worth ...
1
vote
2answers
46 views

Capturing client request headers (complete) along with IP address information? [closed]

I want to write client request to a file with two things/information headers ip address The code I'm testing on free hosting service.Code is <? $headers= apache_request_headers(); foreach ...
7
votes
1answer
106 views

Redirect users based on username (LDAP)

We have an apache 2.2 install with this config on an Ubuntu 12.04: cat /etc/apache2/sites-enabled/000-default <VirtualHost *:443> ServerAdmin webmaster@localhost DocumentRoot /var/www ...
-1
votes
1answer
64 views

Block IP Address using php [closed]

For my website i use this php code to block ip addresses. <?php $deny = array("111.111.111", "222.222.222", "333.333.333"); if (in_array ($_SERVER['REMOTE_ADDR'], $deny)) { header("location: ...
1
vote
2answers
62 views

Site migration questions— PHP, link structure & SEO

I'm working on a massive site overhaul and the main structural change will be a move from static HTML to PHP. I work for an art gallery, and having the artist names in URLs is critical. We already ...
1
vote
0answers
20 views

line monitoring of phonograms (songs) of radio [closed]

I need to create a monitoring system of phonograms (songs) of radio and television online through streaming so on, but my team and know the way to develop this monitoring system, I know there ...