Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Server Side

This forum is dedicated to Server-Side development including: PHP, Node.js, Ruby, Go, Databases etc.

  1. Hello all, I'm new to Laravel and I've just finished my first project using this MVC. I copied the files over to my live server and saved my files inside these folders so that they where in the exact same position as they where on my testing server: <mysite.com> <app> <bootstrap> <cgi-bin> <etc....> <public_html> I'm using Laravel 5.5. The only folder I changed was the 'public' to 'public_html' and I stored all of the files inside the folder, for example, index.php, robots.txt and web.config. I moved my .htaccess to the root folder, <mysite.com> …

    • 3 replies
    • 1.1k views
  2. Started by webdeveloper93,

    Here is a micro MVC framework i've been working on you can give it a try if you choose or add onto the framework. Here is the github project... https://github.com/webdeveloper73/AlohaPHPFramework

  3. Hi, I've got a PHP array menu of all folders of a directory which is ordered using the "Arraysortdate" value in each page folder's Json file instead of the folder names. I've basically got everything sorted now, just this one last thing that I realise I like to have. A previous/next page button on each page that takes the current page, matches it with the value in the all folders array, and links to the next/previous page in that array which is sorted like previously mentioned using the "Arraysortdate". My json files are structuted as follows: { "Arraysortdate": "2018-07-16-1", "Month": ["July 2018"], "Category": [ "testcat1", "testcat2" …

  4. Started by gigman7,

    I've created a responsive menu that works great on a "resized" computer browser. Doesn't work on my phone. What gives? aspecialspot.com

  5. Started by gigman7,

    I've created a div over another div. The top div has a margin-bottom: 0px; The bottom div has a margin-top: 0px; Why is there about 15 px between them?

  6. hi guys title may well be misleading and also apologies if this is actually a front-end query but i assumed it probably wasnt. anyway, my company provides many vehicle services such as window tints and vinyl wraps etc...and i basically want something almost exactly like the following: https://www.window-tint.co.uk/window-tint-simulator i figured i needed something like http://www.carqueryapi.com - but am not sure if i just need access to the free API or if i need to purchase a database. its been a few year since ive done any real web dev of note so just looking for some help with this. cheers.

  7. Hi, A bit stumped really. I'm trying get get a live test for given urls, mainly the url you're currently on. I've the following which works, but never on the page you're viewing, it just hangs so I'm missing something for sure; <?php function pageReport($var) { $ch = curl_init($var); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_HEADER, 1); curl_exec($ch); $arry = curl_getinfo($ch); curl_close($ch); return $arry; } $wdf = pageReport('https://www.webdesignerforum.co.uk/forum/95-server-side/'); print_r($wdf); // Works $other_page = pageReport('https://www.mydomain.co.uk/other-page.php'); print…

    • 2 replies
    • 1.2k views
  8. Started by Demonolith,

    Hi all, I have a PHP contact form that I am using on a site - is adding a required checkbox to the form with the following line or similar enough to make it [the form] GDPR compliant? I prefer not to use a plugin.

  9. I need to put a link in the footer and create a new privacy page for this website (www.mala.co.uk). The footer is in php and is pasted into the code of each page. What I have done is created a test server and I have copied all of the files via ftp to this new location so I can make the changes. What I have found is that the website does not display correctly and none of the CSS or PHP is showing. Even though all I have done is copy all the files from one place to another. I did not create the website and I am wondering if the previous developer has done something to stop it being amended or copied. I am somewhat a novice but though I would be able to make the si…

  10. Started by GaryNewport,

    I am returning to PHP coding after a long break, and things have changed a little. I worked on prepared statements with SQL but have come across some code I would not mind some clarity on, if that is okay. $sql = "SELECT username, password FROM tbl_users WHERE username = ?"; if($stmt = mysqli_prepare($link, $sql)){ mysqli_stmt_bind_param($stmt, "s", $param_username); $param_username = $username; My first question is the second line: if($stmt = mysqli_prepare($link, $sql)){ This is an assignment in an IF statement; something that I do not feel is right. I'd rather assign and then test, but what would I need to replace…

  11. Started by JordanC,

    Hi. I am planning out a project which involves using the Etsy API. They authenticate using OAuth 1.0 For starters, I am working on getting my head round how to connect with the API by using Postman. Always worth understanding how it works before diving in and writing code. Does anyone have experience with API work using OAuth 1.0? I am starting off just seeing who might have some time to help me out with understanding it, seeing what I am doing wrong in Postman to try authenticate and retrieve some results. Whilst I am happy to go via the forum, if there is a Slack Channel anyone uses or maybe could just contact via Skype that would be great, just for …

    • 1 reply
    • 1.3k views
  12. Started by DonkeyWorx,

    I'm trying to implement an anti-bot timer on my contact form as suggested by @BrowserBugs here But I'd also like to include the time in the email so I can check what I'm doing and because it would be useful. If I simply put the posted value 'sent' into a variable and include that in the email I get the complete php code from the form input not the date-time. And if I use strtotime on 'sent' first I don't get anything in the resulting variable. What am I missing? TIA Paul

  13. (Edit: 5 hours sleep in 48 hours is never good..) Simply put, can we 301 redirect to a different domain name and keep exactly the same root folder and all other folders? Or do we need to move files around? (The old and the new domain are on the same host.)

  14. Started by jennifervaldez,

    Hi guys, I want to ask that how to create multiple websites on WordPress? Please guide me. thanks! Jennifervaldez

    • 1 reply
    • 1.3k views
  15. Hi guys I have a problem and also lack the understanding to put this rewrite rule in place. I only need to remove these characters from any URL on our website ?rid= from this: https://rpmdigital.co.uk/coffee/?rid=A611F4 to this: https://rpmdigital.co.uk/coffee/A611F4 The first section is created by wordpress https://rpmdigital.co.uk/coffee/ and last part is created by an Xmpie system ?rid=A611F4 the 6 digit number is dynamic and specific to making the webpage personalised to them. I have been told by Xmpie support that this can be done in the wordpress .hatches We use apache and Wordpress. The code I have in my .htaccess file on…

  16. Started by James Winfield,

    I keep seeing it mentioned. What is it and why is it useful? Is it something a beginner front end developer should be learning?

  17. I have created the websocket chat example which is on socket.io, and i have been successful with it. i can run it on the local machine by pointing the browser to localhost:3000 after running the .js file from node. I now want to run this on a real server. I have transferred the relevant files using filezilla onto the server, and i am using Putty to run the .js file. When i type in node index.js into the putty program to run the .js file; it says listening on *:3000. I do not know where to point my browser to for this application to work...I have tried many different URL's such as the computers IP address followed by :3000 etc without any luck Does anyo…

    • 1 reply
    • 1.8k views
  18. I was wondering if it was worth the upgrade. The CMS I'm using is Wordpress. Anyone here have first hand experience?

  19. Hi guys I've created a website which i would like to "wrap" in a members-only environment. I don't want to re-invest the wheel, but looking for a register page, login page, password reset, and all the links/instructions to hook it up to the remote server the website is currently on. Does anyone have any pointers for this type of thing? I've tried googling, but struggling tbh!

  20. I recently noticed that my Contact form is not working. It always says that the captcha code doesn't match. Any ideas please? I assume it shouldn't have stopped working by itself? Maybe you can see something obvious, please? Thanks for any advice. Here's the php: <?php $your_email ='grant@grantbarker.com';// <<=== update to your email address session_start(); $errors = ''; $name = ''; $visitor_email = ''; $user_message = ''; if(isset($_POST['submit'])) { $name = $_POST['name']; $visitor_email = $_POST['email']; $user_message = $_POST['message']; //$visitor_link = $_POST['link']; ///------------Do Validations------------- if(empty($name)…

  21. Hello all, I'm having a problem with my CodeIgniter project. I updated my site to http using codeigniter, (not by changing the .htaccess file). The HTTPS is fine, the little green padlock is showing next to my URL, however, some of my graphics are not showing as well and my ckeditor is no longer working. Everything was fine before the change to HTTPS. I've tried absolute and relative paths to my files, but some of them don't work, while others, that use the same path are working. Does anyone know what is causing this? Do I need to change a few lines of code in my .htaccess file? Or do I need to get a new SSL certificate? (I got my last SSL certifiacte a …

    • 3 replies
    • 1.9k views
  22. I am a newly graduate developer and I really like to work on PHP. I have a good concept of core PHP and OOP in PHP. I was going to learn the framework now but the thing which make me hesitate about it is that I have seen many developers around the world are opposing PHP and saying that it is a bad language. So my question is should I learn PHP and if yes which framework should I learn first.

  23. Started by Dredd2000,

    Hello all, I've recently updated to HTTPS and I've found that my Ajax functions are not working. At first I got a CORS error message but I've managed to pick up a couple of lines of code from web forums that have had the same problem and the error message has changed to a 403 error message, (meaning that the file is forbidden), which is interesting as since upgrading to HTTPS my site sometimes can't find, or is not accessing some of my images and/or files. Therefore it might be my .htaccess file, (I used to have a basic .htaccess file when the site was HTTP but I've had to google .htaccess with HTTPS). Here's my .htaccess file: Options +FollowSym…

  24. Started by fisicx,

    A while back someone posted a script that checked how quickly a form was submitted. I thought I'd saved it in a safe place but obviously didn't as I can't find it. Anyone remember who it was and where they posted the code?

  25. Hello all, I've upgraded my site to https using this snippet of code in my config.php file, (CodeIgniter 2.2). $root=(isset($_SERVER['HTTPS']) ? "https://" :"http://".$_SERVER['HTTP_HOST']); $root.= str_replace(basename($_SERVER['SCRIPT_NAME']),'',$_SERVER['SCRIPT_NAME']); $config['base_url'] = $root; The code works fine, however, I had to delete all of my base_url() and site_url() functions and change them to a simple backslash. It's a large site so it took my a while to do. Does anyone know if there's a way to change your site to https without having an effect on your sit_url and base_url functions? Thanks in advance.

  26. Hi All, I've managed to edit a form to fill in and submit to my email with php, but when ever i submit the form all I get is an email with the header name for each field but no information that was submitted. I've searched everywhere for some advice and tried aboout 30 different variations for a php script and I either get the same outcome or no email at all. Can anyone give some advice on what I need to do to get the information submitted and not just the form name? I've attached my html and php pages too. <!DOCTYPE html> <html> <style> * { box-sizing: border-box; } body { background-color: #f1f1f1; } #regForm { background-color: #ffffff;…

    • 2 replies
    • 1.7k views
  27. Started by DaveWr,

    Hi I'm building a small SaaS web app that I plan on selling to a handful of local small businesses in the future. I've decided to use the following setup: - Master DB with user and tenant table. - Each tenant has their own copy of the app DB. - Each tenant provides a 'domain' name, which is used to identify multiple users of the same business. The logon process is: 1. User enters their 'domain' name, username and password to request logon. 2. Logon class makes SELECT query for domain and user in master DB, then returns hashed password if match found. 3. Password verified using popular third party auth library. 4. Domain is used to look up tenant …

  28. Hi Gang, I'm working on a pet project and yet again I find myself at the mercy of time, more importantly the most logical way to present a drop down list and store the users time zone. I did some digging here, and figured this was a good approach, but I now find myself with an extensive list of 423 options. What i have decided so far is stacking by Region then City, so ... <option value="Europe/Jersey">Europe, Jersey (GMT +01:00)</option> <option value="Europe/Kaliningrad">Europe, Kaliningrad (GMT +02:00)</option> <option value="Europe/Kiev">Europe, Kiev (GMT +03:00)</option> <option value="Europe/Kirov">Europe, Kirov (G…

  29. Started by techkid,

    Hi there, I am writing a website for a friend. The goal is to allow people to write and submit poetry to help with depression and anxiety, provide messages of hope and things like that. I have created most of the website, but one section has got me stumped. What I want to implement is an approval process, where submitted poetry is segregated until reviewed and approved, given the proliferation of online trolls around such things. What I want to achieve is to have a form where a piece is reviewed with radio button selections for "approve" or "delete", and this is where I have stalled. This is what I have created: review.php <!DOCTYPE html> <html&…

    • 9 replies
    • 2.8k views
  30. hello i am needing help fixing an script error i am trying to upload an script i am getting the error Fatal error: Call to undefined function apache_get_modules() in /home4/meadows2378/public_html/install.php on line 238 . I have tried several suggestion i saw online to no prevail and i need help. here is the script Do you guys have any suggestions on how to fix this my webhost is hostgator thanks in advance

    • 4 replies
    • 2.5k views
  31. Started by fnets,

    I'm using PHPMailer from https://github.com/PHPMailer/PHPMailer to create on online form and have a question ... How to safely store a password inside PHP code?

  32. Started by fnets,

    I'm submitting a form where a user can add an image file... <form method="post" action=".\sendContact.php" enctype="multipart/form-data"> <input type="TEXT" name="email"> <input type="file" name="file"> <input type="submit" value="Submit"> to a php ... echo 'file test '; echo $_POST['email']; echo ' '; echo $_FILES['file']['tmp_name']; echo ' '; if ($_FILES['file']['error'] == 0) { echo 'file ok'; } echo ' '; and get file test 3@3.com C:\Windows\Temp\php99DD.tmp file ok but if I include if(getimagesize($_FILES['file']['tmp_name'])){ echo 'image ok'; } I get 500- Internal server error php.ini file_…

    • 10 replies
    • 2k views
  33. Started by fnets,

    I'm unable to submit questions to the Godaddy forum and no one is answering the phone "to exceed my expectation" ... any help appreciated. trying to send an email with image file attachment ...my html form <form method="post" action=".\sendContact.php" enctype="multipart/form-data"> <input type="TEXT" name="email"> <input type="file" name="file"> <input type="submit" value="Submit"> in sendContact.php I have echo $_POST['email']; echo $_FILES['file']; which echo's the email address text ok but for file I just get "Array" (presumably empty)? I have uploaded php.ini from https://gist.github.com/TheSunMan/4008090 with uplo…

    • 1 reply
    • 1.8k views
  34. Started by dnashbridge,

    Hi everyone, I have been asked to look at the sylius.org eCommerce framework which has been created using PHP, Symfony and TWIG. I have intermediate experience/knowledge using PHP and was wondering what the best way would be to start learning Symfony and TWIG so I can then have familiarity with Sylius when I feel confident to install and play around with it? Thank you.

    • 1 reply
    • 1.5k views
  35. Started by benji88,

    <!doctype html> <html> <head> <meta charset="UTF-8"> <title>Exam Database - Create Exam</title> <link href="mainstyle.css" rel="stylesheet" type="text/css"> </head> <body> <?php include "title.php"; include "sql-connect.php"; ?> <div id="content"> <?php $pageWasRefreshed = isset($_SERVER['HTTP_CACHE_CONTROL']) && $_SERVER['HTTP_CACHE_CONTROL'] === 'max-age=0'; //checks the page lifetime //set the session var to empty if($pageWasRefreshed) { $_SESSION = []; //manually destroy session data session_destroy(); //destroy session data } //test if session vars are set and convert to local var …

    • 0 replies
    • 1.5k views
  36. I have a super simple form processor on my site but it keeps returning a 500 error. http://hayesint.co.nz/index.php/contact My form: <?php if(isset($_POST['submit'])) { // CHANGE THE TWO LINES BELOW $email_to = "rob@finelinecreative.co.nz"; $email_subject = "Website Form"; } // validation expected data exists if(!isset($_POST['name']) || !isset($_POST['email']) || !isset($_POST['phone']) || !isset($_POST['message'])) { died('We are sorry, but there appears to be a problem with the form you submitted.'); } $name = $_POST['name']; // required $email = $_POST['email'];…

    • 3 replies
    • 2.7k views
  37. I am installing Ruby/Ruby on rails following this guide: http://railsapps.github.io/installrubyonrails-mac.html I have got to this part: Install RVMUse RVM, the Ruby Version Manager, to install Ruby and manage your Rails versions. If your Mac user name contains a space character, you must change you account name to remove the space. The RVM website explains how to install RVM. Here’s the simplest way: $ \curl -L https://get.rvm.io | bash -s stable But when I run this line I get this error: BASH 3.2.25 required (you have 4.4.12(1)-release I have been googling for hours trying to find a fix but I can't seem to find one, every article is about u…

    • 5 replies
    • 2.1k views
  38. Hi everyone, After having success with my first T-SQL function, I've made it so that I can url-decode data when pulling it from the database without having to it manually - great! However, I'm not having the same sort of luck with trying to base64-decode the data via a T-SQL Function. I've tried various functions found on google, however they're all kicking up errors when I try to import it using phpMyAdmin Code is below: CREATE FUNCTION FromBase64 (@data varchar(max)) RETURNS varchar(8000) AS BEGIN DECLARE @Output varchar(8000), @Bits varbinary(3) — declare vars. DECLARE @XmlData xml — construct an xml var. SET @XmlData = CAST(‘<data>’ + @data + ‘…

    • 0 replies
    • 1.5k views
  39. Started by dap,

    Friend registered a domain name with webhotelli.fi a while ago and now we want to use it with the new hosting @ louhi.net he took out last week. I have the username and password for both control panels and i had a quick look with one of our devs at work and he said if i put the ip address of the hosting in the zone records it should work... only i'm confused and stuck how to do this i can get to the zone editor in control panel for the domain name (webhotelli) but no the hosting (louhi.net) not sure how i get this done or what i need any help appreciated

    • 2 replies
    • 1.6k views
  40. Started by dp8,

    Hi Everyone ! I have started learn web development (wordpress). i can setup a theme on localhost but i want to test it on a server. i am unable to buy domain and server at this time. is there any free hosting service available ? Thanks

  41. Started by webdeveloper93,

    So out of curiosity what are your thoughts on PHP 7? Personally i find it a big upgrade from previous versions some of the newer features i like is... Short hand version for writing arrays(PHP 5.4) Well this is not to much shorter but it does look neater instead of writing arrays like this... $colors = array("color1","color2","color3"); you can write arrays like this... $colors = ["color1","color2","color3"]; As noted below shorthand arrays actually came out in PHP 5.4 . My Mistake Type Hints You can now apply data type hints to parameters of functions/class methods function hello(string $msg){ return $msg; } echo hello("Hello World"); you ca…

  42. Started by Charly,

    Hello, I am working on a Wordpress website that is using custom taxonomies. I have found the following code to list taxonomies: <?php // Get terms for post $terms = get_the_terms( $post->ID , 'status' ); // Loop over each item since it's an array if ( $terms != null ){ foreach( $terms as $term ) { // Print the name method from $term which is an OBJECT print $term->slug ; print $term->name; // Get rid of the other data stored in the object, since it's not needed unset($term); } } ?> How my question is, how can I add html to this loop? I have tried multiple times but it either errors out, or it doesn't print the taxonomies.…

    • 1 reply
    • 1.7k views
  43. Hello all, I'm currently working on a project using php 5.5.12 and SOAP and I've found an interesting discrepency. If you use the following code below the framework will throw an exception stating that it cannot find the file, (even though it is there: use Zend\Soap\AutoDiscover; However, when you change the line to the code below: require 'Zend\Soap\AutoDiscover.php'; The file is found and everything works fine. I was wondering is there a line in the php.ini file or anyother file in wamp that allows you to use the 'use Zend\Soap\AutoDiscover;' method over the 'require' method? Thanks in advance

    • 0 replies
    • 1.9k views
  44. Hi Folks, I am using the PHP Contact Script below for one of our contact forms, however, we are getting alot of spam emails. What can i add into this code to prevent spam? <?php $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['offer']; $formcontent="From: $name \n Email: $email \n Offer: $message"; $recipient = "dan@definitelydomains.com"; $subject = "CookeryClubs Inquiry"; $mailheader = "From: $email \r\n"; mail($recipient, $subject, $formcontent, $mailheader) or die("Error!"); echo "Thank You!"; ?> Any help would be appreciated. Dan

    • 1 reply
    • 1.5k views
  45. Started by danbingham,

    Hi Folks, I have just created a new contact.php form for use on one of our domain landers - see here: http://bucketboats-com.stackstaging.com/ The form captures the data, and successfully sends this to the destination email, however, I can't seem to fix the 'error' message that appears once you click the 'send message' button? Do i need to make a slight alteration to the script below? <?php /* Set e-mail recipient */ $myemail = "dan@definitelydomains.com"; /* Check all form inputs using check_input function */ $yourname = check_input($_POST['name'], "Enter your name"); $email = check_input($_POST['email']); $comments = check_input($_POST['offer'], "O…

    • 0 replies
    • 1.7k views
  46. I want to make a site where it will show one image to users at first. After clicking a button, it will display another image exactly on that same spot of previous image. The image displayed next cannot be the same with before so I dont think I can use 'random' function to call that next image. So, I plan somehow I want to make that site to show image with incrementing ID, like at first the site call the image I named Pic-1, then call image named Pic-2, Pic-3 and so on. I'm told that I can do that with PHP, but I'm still unclear about what to do. Thanks for any response btw.

    • 0 replies
    • 1.8k views
  47. Started by TimW,

    I am nursing an idea for a little extra income. It is to do with supplying ready-made sites for simple 'web presence' purposes. So if you are a plumber or you have a barbers shop you can get from me at fairly low cost a complete template site with a back end control panel and you just go through it filling in the boxes for Business Name and 'about me' text and uploading a couple of photos. The problem I am anticipating is with deployment. I don't sell domains although I can provide hosting. If my plumbers go to 123 and buy a domain and hosting they aren't going to get far with my zip file and some instructions to get hold of an ftp program and configure it and set th…

  48. Hi, I've got everything about this form working except if the message is not sent the user isn't diverted to the "message not sent" page. Everything works fine if the user completes the form properly - the message is sent and received and the user is diverted to the "message sent" confirmation page. So I'm doing something wrong with the else part of the message verification. Can anyone see what I'm doing wrong please? <?php if(isset($_POST['submit'])): if(isset($_POST['g-recaptcha-response']) && !empty($_POST['g-recaptcha-response'])): //your site secret key $secret = 'Secret key goes here'; //get verify response data $verifyR…

    • 6 replies
    • 1.9k views
  49. Hi, I'm trying to set up a Google Recaptcha on a form I've already set up. It works fine in every other way, I just can't get the Recaptcha to verify server side. Following Googles guidelines (at https://www.google.com/recaptcha/admin#list) I've got the first part set up no problem. But the server side part is undocumented in Google's guidelines it seems. I'm not sure what to do with the form submission php file at all and there's not much help from Google. So can someone please advise what I need to add to the php file please. I've put the html and php for the form below to show where I'm at. As I said above, I've got the Recaptcha working on the HTML side. I…

    • 3 replies
    • 2.9k views
  50. Started by jerseydudek,

    Hi, I've got the Google Recaptcha working server side using the following code - this verifies the Captcha has been ticked sending the user to a "not Sent" page or a "message sent confirmation page" But I'm not sure where to add the email address I want the message to go to (and the email from and subject info). Can someone please advise where I should put that pls: Here's what I've got: <?php $email;$comment;$captcha; if(isset($_POST['email'])){ $email=$_POST['email']; }if(isset($_POST['comment'])){ $email=$_POST['comment']; }if(isset($_POST['g-recaptcha-response'])){ $captcha=$_POST['g-re…

    • 4 replies
    • 1.6k views

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.