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.
0
votes
0answers
11 views
Manual Dynamic Web Development vs CMS? [on hold]
I am currently focused mainly on web design and aesthetics but I want to expand my knowledge of web development, so I can assist a larger variety of customers.
Is manual dynamic development still a ...
0
votes
0answers
11 views
Very simple data entry page [on hold]
I would like to create a simple page for data entry. The page would be password protected and only used by one or two people. I want them to be able to view past data and add a new record. The data is ...
0
votes
0answers
12 views
Which Ecommerce Platform to choose for Marketplace business [on hold]
If you just google "Marketplace Script" you'll find plenty of scripts out their that lets you run your marketplace business website in seconds which makes the decision of choosing the best solution is ...
3
votes
1answer
32 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 ...
0
votes
0answers
5 views
how to make a array global in controller so then it must be accessible via view in codeigniter [closed]
In my controller(EditAd_ctrl.php)
public function show_myad($vehicleid)
{
$data=array();
$data['posts']=$this->EditAd_model->getselectedad($vehicleid);
...
0
votes
0answers
10 views
How to retrieve image name from db and set name in the place where “No file has chosen..” displayed ininput type file [closed]
I have three input type file tags like shown below
<ul><input type="file" name="image1" id="image" accept="image/*" class="col-md-4"></ul>
<ul><input ...
0
votes
0answers
8 views
How can I include a file from a higher parent directory? [migrated]
How can I include a file from a higher parent directory in my index.php file?
Code:
//This is my index page
include_once "./../../../idea/file.html";
The project structure
0
votes
0answers
14 views
How do I make a php database? Do I have to actually download software? [closed]
I've been searching for online php database makers and more but I just cant find anything. Is there anything I can do online or do I have to download something?
0
votes
0answers
17 views
Copying a LAN located, server-side rendered PHP webpage to a WAN located VPS [closed]
Problem: I have three Bitcoin miners, all with APIs for mining stats and device info. All three ASICs are inside my private, firewalled LAN. I have a PHP script consolidating information from these ...
0
votes
0answers
3 views
Can't upload file to Apache 2.2 [migrated]
Apache/2.2.15 (Win32) PHP/5.3.2
I'm trying to upload a file to Apache and my PHP script tells me everything goes well (status code 0), but the file is not in the temp directory. The PHP answer is ...
1
vote
0answers
11 views
configure exim4 on ubuntu with let's encrypt [migrated]
I need to send mail for a website of mine using PHP mail(). I wanted to make sure this mail is sent encrypted. I already have exim4 sending mail via PHP, but want to make sure it's using a ...
1
vote
1answer
27 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 ...
1
vote
1answer
22 views
When moving a load balanced PHP site from Apache to Nginx, how does the code have to be modified?
When moving to Nginx with multiple php-fpm servers from a more "traditional" Varnish + multiple Apache2 / mod_php setup:
Must we expect to rewrite parts of our software? I just discovered that many ...
4
votes
3answers
61 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 ...
1
vote
0answers
9 views
Multiple image upload script for the computer challenged [closed]
Most of my users are 57 or older, the oldest being 94. A large majority of them have very limited computer knowledge. Part of the site requires them to upload multiple images, though very few can ...
1
vote
1answer
33 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
34 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 ...
3
votes
1answer
47 views
Nginx 502 Bad gateway on shared hosting
I have a website on a shared hosting provider. Since the very beginning my visitors have randomly got several types of errors, including 502 Bad Gateway / nginx (blank page with the error text). I ...
1
vote
1answer
40 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 ...
0
votes
1answer
44 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 ...
3
votes
1answer
123 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 ...
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
9 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
119 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
23 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 ...
0
votes
0answers
42 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 ...
1
vote
1answer
28 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
20 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 ...
0
votes
0answers
18 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
98 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
42 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
17 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?
...
-1
votes
1answer
15 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
1answer
34 views
Google not updating title with htaccess expires
It's been 2 weeks I've changed my website title and still Google hasn't changed the title in search engine. I think it's because of if modified since header... my website is generating 201 OK status ...
0
votes
2answers
31 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 ...
3
votes
3answers
97 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 ...
1
vote
1answer
28 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 ...
-1
votes
2answers
89 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 ...
2
votes
2answers
63 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
vote
0answers
32 views
How to manage web developers working simultaneously on the site? [closed]
Currently I am the only tech guy/web developer for my e-commerce startup handling everything from front-end (HTML, CSS, JS) to the backend (PHP, MySql)-coded from scratch, no template/cms or anything. ...
1
vote
1answer
53 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
8 views
how to know if some one found my website in search engine and landed in landing page [closed]
if someone find my website in google/bing/yahoo or any search engine oren how can i know the particular person or IP come from these sources.
1
vote
1answer
52 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 ...
1
vote
1answer
56 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 ...
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 ...
0
votes
1answer
55 views
How to run a PHP script on a shared hosting server from cPanel?
I'm trying to install Tinyboard (http://tinyboard.net/) on a shared hosting, I uploaded all of the files in a single folder, now I should run install.php, but I have no clue where that can be ...
1
vote
1answer
52 views
Mixed Content issue with WordPress, Cloudflare SSL and Genesis Framework
I have a WordPress which is based on the Genesis Framework and uses CloudFlare Flex SSL. The problem occurs in iOS Safari and Firefox mainly, the site gets loaded but without styles and everything ...
0
votes
1answer
65 views
HELP! my login session is returning the users password instead of their username! [closed]
I have my code set up to display the username in the nav bar however its displaying their password?
nav.php
<li>
<a href class="userName"><?php echo ...
1
vote
1answer
87 views
How to set up a rel=canonical in PHP?
I'm trying to add the rel=canonical tag to only one page. In order to add the tag, I need to add it to the part, in the mod_header.php file. This will add the same rel canonical tag to all the pages ...
0
votes
0answers
14 views
Multiple touchscreen setup/display
I hope this is in the correct SE area.
I have been tasked with designing a touchscreen interface for multiple display screens.
I have successfully designed this using html, css & php (a simple ...