Questions tagged [php]

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.

Filter by
Sorted by
Tagged with
5
votes
2answers
102 views

Several domains pointing to one hosting but keeping separate URLs

What I'm trying to do is a bit complicated and not sure if possible. Here it goes: I have one main domain "maindomain.com" which corresponds to an event. Then I have several other domains, let's say "...
4
votes
1answer
5k views

What does “SetEnv PHPRC” do and how is it used?

I have a client with some technical skills who likes to take a look at files and understand how they work. Yesterday, we installed Ninja Firewall in their WordPress and their web host server setup ...
1
vote
0answers
14 views

SEO question in regards to current way of loading my pages [duplicate]

I'm trying to implement SEO-friendly (or at least indexable) way of dynamically displaying categories; first by allowing user to use javascript to dynamically load pages via ajax (.load) and secondly ...
2
votes
1answer
254 views

Azure App Service for Basic Bootstrap Site with PHP

I have an Azure Imagine subscription through my College so I plan to take advantage of it to host a basic Bootstrap resume site of sorts. I was originally considering using Github Pages, but I'd like ...
2
votes
1answer
243 views

What are PHP extensions?

I am new to PHP and I'm currently learning about PHP from the point of view of managing a web server. I believe that PHP extensions are like plugins which enable added functionality to the default PHP ...
2
votes
3answers
397 views

How to move SEO from a separately hosted subdomain into main domain?

I have a main domain: example.com and a subdomain: blog.example.com that I really want combined for SEO benefit, but my blog.example.com uses PHP which is not supported by my website provider on ...
4
votes
1answer
3k views

Set Alias path using .htaccess

I have a path like this http://host.ip/nl/producten-en-diensten/abonnementen-met-gsm which will retrieve the correct content and I also want to receive the same content when I access the below URL ...
2
votes
1answer
31 views

SQL statscurl_id Error using Wordpress [closed]

I get this error at the bottom of my home page. please let me know why this error appeared in my website. I am running my website on wordpress. Here is the error Couldn't connect to database server....
0
votes
1answer
2k views

Firefox “The page isn’t redirecting properly” for a Wiki (all other Pages and UAs are OK) [closed]

We are having trouble with a website for a free and open source project. The website and its three components are as follows. Its running on a CenOS 7 VM hosted by someone else (PaaS). site: www....
3
votes
1answer
42 views

For Google, should you show an error for pages that will exist in the future, or redirect them to an error page?

I have a product view which shows a product if a it exists at a link like: www.example.com/products/product-name If the product does not exist, an error page is displayed instead of the server ...
1
vote
0answers
88 views

Google Analytics PHP API Getting fullReferrer

I want to get fullReferrer using Google Analytics API with PHP. And I tried as follows: return $analytics->data_ga->get('ga:' . $profileId, '7daysAgo', ...
2
votes
1answer
256 views

“wiki is currently unable to handle this request” after installing SimpleMathJax on MediaWiki

I need to show mathematical terms in mediawiki-1.26.2 so I tried to install SimpleMathJax on mediawiki. I followed the described in extension page: I downloaded SimpleMathJax-master.zip then extract, ...
1
vote
0answers
6 views

Google SEO for dynamic multilanguage site [duplicate]

I have created a bilanguage site EN/DE the language text are dynamically loaded from EN.php or DE.php depending on a $language variable. How can I organise my code / pages for better SEO and how can I ...
2
votes
1answer
74 views

Google Business Email Will Not Receive Online Web Form Sent Mail

I use Google to manage my email addresses associated with my domain name. I have written a simple script here to allow people to contact me from my website via the form on the page. It will send to ...
3
votes
1answer
1k views

Email messages sent from AWS EC2 are getting marked as spam

I have setup my website on AWS which is built in yii2 PHP. Now here I am using default PHP mail which I purchased from GoDaddy. And I have pointed the domain name to AWS using my elastic IP using an ...
6
votes
1answer
137 views

Would could Google not index an AJAX news feed after 1 month?

I have a website that in page1.php uses a news API from other website. It has JS calling a PHP method like this: <script id="mdval" src="http://example.com/parvazproject/parvaz.php?c=...
2
votes
0answers
42 views

running multiple website through one site on apache2

I am new to web development but giving it a try to learn and whilst make use of it I have installed sites gogs , pydio and reviewboard on apache2 running on Raspbian. right now I have to start each ...
1
vote
0answers
329 views

htaccess file causes 404 error [closed]

I have added the following htaccess file to a directory I want to password protect: AuthName "Restricted Area" AuthType Basic AuthUserFile /home1/receive2/public_html/ekcepc/memberadmin/.htpasswd ...
3
votes
0answers
45 views

refreshing the local server ip not refreshing the newly enabled site [closed]

I have changed the DocumentRoot from /var/www/pydio/pydio-core-6.2.2 to /var/www/php/cloud and updated the /etc/apache2/sites-available/cloud.conf as below php directory contains cloud directory ...
5
votes
1answer
114 views

What is module/aciton/param1 entry in access logs about?

Noticing the following in my Apache access logs recently and would like to know what it is about and what is the purpose of printing md5? "GET /index.php/module/aciton/param1/$%7b@print_r(md5(1123123)...
2
votes
1answer
92 views

Is it unusual for a hosting company to refuse to update php and mysql?

I am helping another developer on a WordPress site that's for a committee. Which means everything must be decided upon by a bunch of people and not, like, 2. The site is using a WP theme purchased ...
3
votes
2answers
259 views

May I use custom images in a wordpress theme (not mine)?

My blog is powered by Altervista on the ComicPress theme. I may customize my website for I purchased the second level domain (.com). I'm trying to post bigger images by following the tutorial below-...
1
vote
2answers
46 views

How do I increase the upload size in Wordpress?

My blog runs on the comicPress theme powered by Wordpress, on Altervista hosting service. I purchased the second level domain and therefore I aim customizing everything I need to. I normally upload ...
4
votes
1answer
278 views

Why/What is the need for an abuse email account for website domain?

My website has email address for me to contact but few have suggested me to have an abuse@yourdomain.com email address.. Please clarify my doubt if someone can.
2
votes
0answers
45 views

Detect prerender view in PHP? [closed]

How can I detect a prerender page view in PHP? When I use prerender it messes up my page view counter.
3
votes
2answers
72 views

When large dimension images have smaller file size than thumbnails, which version should I display?

I have images that are rendered via color map system. The larger images have a smaller file size then that of the thumb image which is re-sized. Which images should I display for the end user? Would ...
1
vote
0answers
317 views

How to create newsfeed [closed]

I have been working on a project of making a website, and I would like to incorporate a newsfeed (similar to Twitter/fb) where all of my users can see other users updates. I have my login and ...
4
votes
3answers
276 views

Someone trying to attack my Joomla website with many different IP's

I have a serious issue here. Someone is trying Brute force login into my site. I already have plugins to nullify that attack. I give only 3 attempts for login and then it blocks that IP. Problem here ...
2
votes
1answer
224 views

How to tell if an incoming connection is a cellular network or not

I've got a page that will be loading a bunch of fairly high resolution images, as well as a full HD video. Is there a way to detect if someone is using cellular on their phone vs wifi, so I can use a ...
2
votes
1answer
69 views

Sudo mandatory for system() or exec() from PHP 5

In our enterprise we have several workers and collaborators. For the external collaborators, we have specific FTP accounts to restricted folders (test folders), and restricted access to MySQL database ...
2
votes
1answer
26 views

Query value with chevrons sends 302 to /

When a special query value is typed in the URL, apache sends back a 302 redirect to root url (/). We're using CPanel and we owns the server. The apache virtualhost file wasn't touched and is managed ...
0
votes
0answers
784 views

Why cannot I reproduce Confirm form resubmission scenario?

I have the following code, which is just a simple HTML form (POST method). I have tried to get the "Confirm form resubmission" message of the browser, by sending the form, hitting browser's back ...
1
vote
0answers
12 views

Customizing pagation in wordpress [closed]

I want to set something where pagation won't show up on the first page, but instead, say "Start Gallery". Then the 2nd,3rd, etc pages will be as normal. How can I acomplish this?
2
votes
4answers
3k views

Internal Server Error; enable debugging provides no additional information

I'm working with Mediawiki 1.25.1 on CentOS 7.2 running Apache 2.4.3. I'm working with Mediawiki 1.26.4 on CentOS 7.2 running Apache 2.4.6. I am experiencing an Internal Server Error after editing a ...
1
vote
1answer
2k views

Cannot find a file on localhost. 404 Not Found [closed]

danko@danko-VirtualBox ~ $ sudo service apache2 status * apache2 is running danko@danko-VirtualBox ~ $ php --version PHP 5.5.9-1ubuntu4.17 (cli) (built: May 19 2016 19:05:57) Copyright (c) 1997-2014 ...
1
vote
0answers
71 views

Facebook Web app development: Storing user access token in a session variable

If i store facebook user access token in session variable , as there will be huge users (may be 10000 daily) will it cause the hosting server any issue ? EDIT 1: Server specification: 400mb disk ...
1
vote
2answers
62 views

Image generation from spreadsheet data

I work in retail. For promo sales we're given a spreadsheet with data containing the information about the product and its prices. With this data we're supposed to create sale tags. More specifically, ...
5
votes
2answers
660 views

Is it safe to give write permission to _www user account?

I want to use PHP to modify some of my files, but can someone else use this account to modify my files without my acknowledgment?
1
vote
1answer
26 views

Comfortable number of server files in a folder

I'm building a website which holds its images in relevant folder, but I was wondering how to structure the folder paths ( month/year/ or just year/ ) I will be getting the images via php, so the ...
2
votes
2answers
1k views

GoDaddy hosting not working with email

I have a simple template for my website and two versions. One is .co (GoDaddy) and the other is .co.nz(Another Company). I'm using a basic PHP form that sends email successful to Google Gmail, however ...
-1
votes
2answers
1k views

Email delays issues in VPS server on GoDaddy Server

We're working on a web service, and our registration confirmation emails are constantly delayed almost 5-10 mins on GoDaddy's servers. We've tried PHP's mail() function and also the PHPMailer SMTP ...
4
votes
1answer
473 views

Google Analytics not same with my database records

I got a website which will track all the post's visitor view and store each of them in a table with IP address, referrer website and user agent. But I found that in one day I got 100+ rows (pageviews) ...
3
votes
1answer
2k views

Rewrite and hide page ID from URL

I am working with the following on a football website and when a user clicks an event they get the following URL format: /live/1/event-name.html Currently the number in the URL represents the ID ...
4
votes
2answers
109 views

Adsense ads don't appear even if account approved

I have a website that runs on Apache 2 and has code in PHP and JS + HTML. This is the code of my ad unit: I have an approved AdSense account that already was showing (and getting revenue) from AdMob ...
0
votes
1answer
26 views

What are the options to gradually upgrade from shared hosting if the traffic to my site grows? [duplicate]

I have a site with php+mysql on shared hosting and it works well, has good traffic and I want to plan for the future when traffic to my site grows and shared hosting can't handle it. Since the code ...
4
votes
1answer
8k views

“Failed to correctly acquire installer_nodejs_windows.msi file: CRC error” when installing Aptana Studio

When I try to install Aptana Studio I get the message: Failed to correctly acquire installer_nodejs_windows.msi file: CRC error What is this error and how it can be removed?
3
votes
1answer
95 views

Is having multiple index files for various devices bad SEO?

I have two html files, one for mobile and the other file for the other devices. I am detecting mobile devices by using PHP a if ($modile) and this is followed by an include("example.html"> to ...
3
votes
2answers
1k views

Is it possible to entirely disable the ability to set error_reporting?

I'm wondering if at the server level I can disable the ability for scripts to override error_reporting and ini_set('display_errors',1); Edit: I know how to disable errors using .htaccess and on a ...
2
votes
1answer
530 views

SwiftMailer - fsockopen() error 500

I am sending email through php using smtp and using Swift_Mailer Code: error_log("Sending Email\n"); // Get mailer $SM = Yii::app()->swiftMailer; // Get config $mailHost = 'smtp....
0
votes
1answer
2k views

How can I run a background PHP script on a hosting account like godaddy? [closed]

I need to run a PHP script 24x7 on the server I'll be hosting my website on (Probably Godaddy). The PHP script's job is to open a socket and wait for incoming connections. Once a connection is ...

1
3 4
5
6 7
22