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
vote
2answers
93 views

Monitor a website and change it to show an error message when the web server is offline

I own a domain. Let's name it example.com. I have my own server. For this example, its IP is 1.1.1.1. I use Amazon Route 53 and have configured my DNS. Each time a visitor visits example.com, she ...
1
vote
0answers
24 views

What are some hosting providers that are PHP 7 Ready? [duplicate]

I am creating a list of all providers that are supporting PHP from ages and currently migrated to PHP 7. So the simple question is, how many of the hosting providers we have onboard that are providing ...
1
vote
2answers
1k views

Does it make sense to throw a 404 error with PHP?

Problem Description Hi, The current setting of my .htaccess file does not allow any kind of 404 (as far as I know). I mean, it captures every kind of url like mysite.com/asfasfasf then sends it to ...
3
votes
2answers
840 views

Looking for full web based booking system

I've searched around here but could not find any booking system that would suit my need. I hope maybe you can help me out. I've already seen question #11379. Solutions provided there are not helping ...
13
votes
4answers
1k views

Can someone explain the true landscape of Rails vs PHP deployment, particularly within the context of Reseller-based web hosting (e.g., Hostgator)?

Currently, I have a reseller account with the company HostGator. I design websites, which up until now have occasionally been wrapped in Wordpress CMSs and the like (PHP applications). I then sell ...
3
votes
1answer
178 views

Cloudlinux + CageFS + PHP Selector - how to update default php.ini for each PHP version or for each domain account?

My server runs Cloudlinux 5.11 with CageFS and PHP Selector. Default PHP version is 5.3. I have one account using PHP 5.3, one account using PHP 5.5, and one account using PHP 5.6. I'm trying to ...
1
vote
1answer
40 views

How to make an apDiv show up in same spot on all browsers

I'm pretty new to the whole webmaster stuff and am just trying to format a slideshow on my homepage to be in a certain area with an apDiv, but as soon as I use another browser it's in a different ...
1
vote
3answers
152 views

Activation email from website could not be sent to Outlook.com accounts

On my website, I send an automated email using libmail.php for new sign-ups. Users put in their email address and they are sent an email to activate their account. This usually works for Gmail. ...
4
votes
3answers
165 views

How to detect if file with a .png extension contains code or an image?

I was in a trouble last few days since my web host was hacked for POST on PHP files. I've been dealing with files with .png extension that have PHP code inside. I can't even try to edit one-by-one to ...
3
votes
1answer
331 views

with PHP: How to restrict access from one Addon domain to another?

With 000webhost (not with cPanel), whenever I add a new domain to my account, an entirely separate public_html is created and a separate FTP login. But with cPanel, all "addon domains" are created ...
1
vote
1answer
89 views

?cid= and ?pid= pages need to be fixed

We have recently changed the platform and design of our website. Now I am having difficulty with url structure. Main product URL shows something like, /categories.php?cid=9 And internal product URL ...
6
votes
3answers
2k views

Do I really need to remove special characters in a URL?

I have an FTP account shared with friends where we upload underground music albums and then we use the links to share the downloads in a music forum. The problem is that the album names are in french ...
1
vote
1answer
30 views

Is it possible to use a common menu across two websites by importing it from the first to the second?

We pay a service to host both our website and our blog. The blog is on the WordPress platform. Both sites are designed to look similar (as best we could) since they are our company websites. The web ...
5
votes
5answers
4k views

Disallow robots.txt from being accessed in a browser but still accessible by spiders?

We make use of the robots.txt file to prevent Google (and other search spiders) from crawling certain pages/directories in our domain. Some of these directories/files are secret, meaning they aren't ...
1
vote
1answer
81 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 ...
1
vote
1answer
65 views

Security issues with PHP with cPanel and shared hosting

if this is not the correct forum for this question please tell me! When one has an account on a shared server host running cPanel, the account runs in a jailed environment where access to files is ...
-1
votes
1answer
42 views

How can I verify the result of a reCAPTCHA in PHP

I am currently working on a website, and I've had some problems with spammers on my comment system. So, I am implementing a reCAPTCHA (maybe some scanners later). I have registered my site with Google,...
6
votes
4answers
1k views

How do you get Drupal to go to a page other than the User Profile on login?

ISSUE: I've tried a few things to get Drupal to STOP going to the User Prolfile page on login. I even installed the LoginToboggan module, which has nice features, just doesn't stop Drupal from sending ...
0
votes
1answer
77 views

SEO strategy for dynamic images ( PHP + GD )

I have several images which are generated by using PHP + GD. They consist of a background image, and colored lines drawn on top of the images. As the possible combinations depend on the behaviour of ...
0
votes
2answers
963 views

How can I create a review site which is similar to craigslist? [closed]

I want to create a site where you can review different things in the town. Example could be a Restaurant, a park, a doctor, a school. The user creates review and uploads pic if he has. I want to ...
3
votes
1answer
687 views

debian phpmyadmin - Call to undefined function __()

I recently upgraded my debian installation from wheezy to jessie. Now I get only blank pages when accessing phpmyadmin. The apache log says: Fatal error: Call to undefined function __() in /usr/...
0
votes
0answers
11 views

Does processing content dynamically using Javascript or PHP have an effect on SEO? [duplicate]

Does it effect my Google organic search ranking whether my html content is dynamic or static? Let's say that I'm using Javascript to display html code dynamically based on some user behavior, or ...
0
votes
0answers
14 views

adsense making ip report all wrong with resubmittion page and generating random ips

I have a google ad on my website, but I just found out today, that it's resubmitting the page with a random IP, that changes from time to time, mostly when submitting a form. It happens too, but ...
3
votes
2answers
209 views

How to submit shortened URLs to Google so that they are included in the index

I am working on a project to create a URL shortener. I have successfully gotten it to create short URLs, but I would like to submit them to Google. When I submit a short URL via Google Webmaster ...
3
votes
1answer
217 views

Is there any way to prevent the Google toolbar from breaking Friendly 404s

This might be considered a continuation of this question. If I output HTML after my 404 header, It displays properly in IE and FF unless the user has Google bar instaled. If I try header('HTTP/1.x ...
4
votes
1answer
91 views

Should query string parameter values in a URI have single quotes around them?

I'm passing variables through the URI string, like this: example.com?a=first&b=second Everything works as intended, but when I pass the source code through the W3 validator, it's flagging them ...
2
votes
1answer
60 views

Problem with htaccess rewrite condition

I needed to redirect example.com/var1/var2/var3/... to example.com/index.php?myvars=var1/var2/var3/... This is the code I wrote myself: RewriteEngine On RewriteCond %{REQUEST_URI} !=/index.php ...
0
votes
0answers
81 views

Mysterious wrong encoding in Chrome/Safari

I'm trying to set up a website using grav (a php CMS) and are seeing some strange things. After setting it up, the webpage in Chrome and Safari is just looks like wrongly encoded mess. However, using ...
2
votes
1answer
108 views

WHMCS Bulk Pricing Updater

Their is a Bulk Pricing Updater addon in WHMCS which works well to update hosting accounts pricing but I am unable to update the domain pricing through that every time it gives this message ...
1
vote
1answer
29 views

PHP - URL variables that look like pages `/POSTID/`

I'm new to websites with databases and was wondering how to make a url look like https://domain.tld/H34d2b rather than https://domain.tld/?p=H34d2b I had an idea of forwarding the page to a 404 PHP ...
1
vote
1answer
21 views

How to properly make a custom 404 page in apache2

My .htaccess ErrorDocument 404 http://www.mywebsite.com/error_404.php My error_404.php header <?php header("HTTP/1.1 404 Not Found");?> Redirection works well but it seems like this ...
2
votes
2answers
167 views

Is it possible to mod_rewrite BASED on the existence of a file/directory and uniqueID?

My site currently forces all non-www. pages to use www. Ultimately, I am able to handle all unique subdomains and parse correctly but I am trying to achieve the following (ideally with mod_rewrite): ...
2
votes
3answers
300 views

Mod Rewrite question

Is there a way to rewrite http://localhost/embed/player.swf?file=http://www.youtube.com/watch?v=7yKDhm4_-90 to something smaller? or is there a way to change this into http://localhost/embed/...
2
votes
2answers
112 views

file need to go through a php page using .htaccess

I'm looking for a way to convert this type of URL: http://www.example.com/dl/F5EGD6 Into http://www.example.com/dl/files/my_file.zip using a PHP page to request the URL from the DB with F5EGD6. I ...
1
vote
1answer
56 views

PHP webpages in sub-directory cannot be accessed

I've got a university club website at thing.uni.ac.uk/meow/foobar which also has the domain foobar.co.uk. I don't have access to the config. I set up this website using HTML/CSS/JS alone and it's been ...
1
vote
0answers
34 views

mod_php5 as a static apache module in a cpanel environment

One source claims that apache would perform about 5% slower when using modules that are dynamically loaded (shared). Because of this, I want to be able to make PHP on the server run faster by ...
1
vote
0answers
192 views

Installing WP in Bitnami with php 7

I wanted to test possible incompatibilities of my WordPress site with php 7. So I downloaded the php 7 wamp installer and installed it without problems. Then I downloaded the WordPress module But ...
1
vote
0answers
43 views

How to debug a file called by 3rd party

I have a script that is being called by a 3rd party script, but it doesn't work. I can see in the logs that the file is in fact being called, just nothing happends. How do you debug a file called by ...
0
votes
0answers
20 views

Google Analytics events do not work

When I run the following (with actual IDs instead of X symbols) script from command line, the event does not appear in Google Analytics (as I see with "Real-Time / Events"). Why does it not work? <...
3
votes
3answers
312 views

Using PHP inside .html files not working as expected

Apache2, Linux, php5 I have added this line to my .htaccess file AddType application/x-httpd-php5 .htm .html running apace2ctl -m, shows this module loaded A php5_module (shared) I have a ...
2
votes
2answers
1k views

Fix PHP Timezone warning

After installing a php application my site loads the app with a warning overlayed on the page Warning: strftime() [function.strftime]: It is not safe to rely on the system's timezone settings. ...
-1
votes
1answer
23 views

Image Hosting for Web Service [duplicate]

I'm working on a website that would have a mass of uploaded images, each with a max of 2mb but adding up, in total, to much more than my VPS hosting (which has a max of 100gb used up by a lot of other ...
0
votes
2answers
35 views

Redirect at exact moment in time

My company is going to do a press release next month. At that exact moment in time, we need a new domain to go to this site at the time of the press release at 3 PM. Since the domain name already ...
11
votes
4answers
26k views

How to check all installed in Magento extensions?

Where can I check all the installed Magento extensions in the admin panel?
1
vote
1answer
51 views

Use .htaccess to convert user ID's to usernames? [closed]

I want to use .htaccess to convert the urls that link to profile pages from an ID number to a name. For example, on Facebook, if you were to go to: https://facebook.com/profile.php?id=4 It would ...
2
votes
2answers
70 views

How to analyse website performance

I've tried searching a lot and basically here is the problem. I have a website but I'm unable to pin point the reasons of why the performance of the website is so slow. We have shifted to a high end ...
-1
votes
2answers
155 views

How to set execute-only permission for a php script in a .htaccess file?

I'm really a newbie in web-technologies, so this question may be silly. I have a php script that accesses a database, therefore it stores a database password (tell me a better way to store this ...
1
vote
1answer
65 views

Page speed - Loading comments on an article/blog post

So I'm currently building a template page to use for articles that we will be purchasing from a content writer (so basically we are content marketing). I'm finishing up the layout on the comment ...
4
votes
2answers
886 views

How do I redirect an English language URL to an Arabic language URL?

I have a link that's currently formatted like this: http://example.com/news/view/1.html I want to it redirect it to: http://example.com/خبر/عنوان-الخبر where خبر is equal to news and عنوان-...
0
votes
0answers
20 views

Repeated site content in multiple php pages [duplicate]

I have 3 pages: a.php <p id="block1">text1</p> b.php <p id="block1">text2</p> c.php <? include('a.php'); include('b.php'); ?> So, we have access to ...