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

how to access mysql table from wamp database using this php code? [migrated]

how to access tables from database by using php in wamp server.i have done the following code but its not working for some reason.is there anything to put in 'action=""'.it is not giving any error but ...
0
votes
0answers
7 views

cURL works but PHP cURL fails to internet [migrated]

Trying to diagnose an issue using PHP to cURL to an Internet location on a RedHat Linux server. cURL is installed and working, and: <?php var_dump(curl_version()); ?> shows all the correct ...
0
votes
1answer
30 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 ...
0
votes
0answers
9 views

What to use for an event listing site? [on hold]

I have a site which lets users buy & sell tickets, but it's built on wordpress & buddypress. So it's very heavy and messy. I would like to re-do the whole site on something lighter, cleaner ...
0
votes
0answers
16 views

I need a image sharing PHP script [on hold]

So I'm back after a month backpacking. I've met many people and we all want to share our pictures. I've a cheap PHP webspace and I was looking for a php solution that will let upload multiple images ...
3
votes
2answers
76 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
0answers
6 views

Need some help with modal for login/register [migrated]

I am new to web development and in the process of creating my first website. I am trying to make a login link in the header which opens a modal for login/register but the link isn't working. I think ...
0
votes
0answers
17 views

Can anyone suggest me .htaccess code to convert my website from html to php? [closed]

If any one can help me in suggesting the code for .htaccess to my website conversion from html to php, I'll be thankful :-)
0
votes
1answer
32 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
37 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
68 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 ...
0
votes
0answers
3 views

Concatenate a string with the output of a php function as a parameter of anouther function [migrated]

When I call a function mainfunc() I want to put an explicit value near to the output of a function as a parameter of mainfunc(). I want to do someting like mainfunc('foo'.LaTeX());. But, when I do ...
0
votes
0answers
7 views

how to print a page from web browser without print window using javascript or php [migrated]

I am developing an POS application for my own shop in web. Now for that in billing section have features like select the products and print bill, this process is only two steps. However when I click ...
0
votes
0answers
13 views

Why would returnurl not redirect user to subsite? [migrated]

I have a login system that I would like to introduce to my subsites on my web server but users are not getting redirected back to their correct place after login. Right now the SSO sends the user ...
0
votes
1answer
31 views

Function in class PHP [closed]

I am new to classes in PHP. I have a function in a class and I am wondering how I can call the function in the class. This is the class: <?php class dms { public function makedms() { ...
1
vote
2answers
22 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
18 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
22 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
32 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 ...
1
vote
1answer
41 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
59 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
29 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
39 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
33 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
40 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
35 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
32 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
39 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
22 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
33 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
30 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
32 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
18 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
83 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
52 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
37 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
109 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
93 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
72 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
18 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
49 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
71 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
80 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
101 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
53 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 ...