Server Side
This forum is dedicated to Server-Side development including: PHP, Node.js, Ruby, Go, Databases etc.
6,474 topics in this forum
-
Hi all i want to change my site's name server but i am totally unable to that please help me.. please read current name server is net4india want to change to: my own hosting name server hosted by hostgator my problem: when i am changing name server in my current net4india hosting i am facing a problem again and again. when i changes neme server in my current hosting it disappears after a while. i want to know why it is happening with me, and how can i change the name server of my net4india hosting.. please help me please..
-
- 2 replies
- 1.9k views
-
-
So i have a FORM in .php and after you input in the form and press print the modal will pop up with the information in the form but mine does not work. The modal works if i delete the php code on it, but i replace it again with the php code the modal doest work. please help im new here, form.php
- 4 replies
- 2.2k views
-
I have a class with two propperties containing data returned from two different select statements. Basicly I have a query that returns a single article and another that returns all article titles from the same table. I guess it must be possible to combine the two queries into a single query but I cant figure out how. Here's the relevant code: $con = returnConString(); $queryString=$con->prepare('SELECT article, title FROM articles WHERE page = :pid ORDER BY article;'); $queryString2=$con->prepare('SELECT content, title FROM articles WHERE article = :artcl AND page = :pid LIMIT 1;'); $queryString->bindParam(':pid', $pageId, PDO::PARAM_STR); $queryString2-&…
-
- 3 replies
- 1.7k views
-
-
Hi, Hope all would be all right. Just want to know is there any way to get the visual interface of a database?
-
- 4 replies
- 2.1k views
-
-
Hi, I was wondering when it is necessary to have a cookie message on your site? If I was to have a simple PHP form like this http://code.tutsplus.com/tutorials/build-a-neat-html5-powered-contact-form--net-20426 then should I have a cookie policy message? Cheers Ry
- 8 replies
- 2.7k views
-
Ok, So I have a page which displays one big result and the 2 smaller results below like this: <-----------> <---> <---> <-----------> <---> <---> So I have a script which brings the 3 rows out from the database then basically loops them down the page. My issue is, I need to create a on mouse hover div for the the script. I was going to simply have 2 div's, a normal div and a onmouse hover div. So Div B replaces Div A on hover with Javascript onmouseout="SwapDivs('diva_id','divb_id') But im struggling with this because of it interfering with my php (you would hover over and the current div background wou…
-
- 4 replies
- 1.4k views
-
-
Hi, I am new to this forum. And I would like to ask a few questions, and I hope you can give me some guidance. I have decided recently to make a website with my friend. We have knowledge in HTML/CSS/Photoshop/illustrator and flash. But our website would have to contain a large database. Like we would like to add registration options and something where our users could post things get messages etc. Now I don't know anything about that. Could you explain me what to use how to and maybe link some good tutorials Thank You in advace Greetings from Croatia
-
- 1 reply
- 1.4k views
-
-
Hi everyone, I have been planning an idea for a large project for quite a while now and I'd like to have go at starting it soon. The only thing that's stopping me is I'm not confident in my current ability to create a secure enough member login feature, (which would be integral to the site's functionality). I'm a fairly experienced programmer and have created similar login systems in the past, but only for hobby sites. My concern is that if I am creating (what I hope to be) a fairly high publicity site for clients I will need to do the login/ session stuff really well and securely, so as to prevent misuse and hijacking on the site (a prospect that scares me quite …
- 5 replies
- 2.1k views
-
Hello. I have recently installed PHPBB on my server and everything was going well until I noticed that the titles on the forum posts are not adding spaces but replacing spaces with %20 so for example. I am getting "Garry%27%20Mod" when I typed in "Garry's Mod". I do not understand why this is happening and would appreciate any help of anyone. The forum is located at http://beechwood-gaming.ddns.net From looking around, this seems to happen to every file on my server if that information helps. Thanks in advance.
-
- 3 replies
- 1.5k views
-
-
I want to copy a website for that i find PHP from view page source of that website Can this PHP work in website Please help me
- 4 replies
- 1.5k views
-
I got a script that convert convert my php string (combination of customized image & text) to image, zip it & popup for download with the scripts $format=$_REQUEST['format']; $viewArr = $_SESSION['productArr']; //the images in array $outputarr = $_SESSION['outputArr']; $pngoutarr = $_SESSION['pngOutputArr']; $downloadable = 1; if($format=='png'){ require_once 'png_output.php'; $downPath = genpng($pngoutarr,$downloadable); $srting = "&&&&"; echo $downPath.$srting.$downloadable; } the png_output.php is below <?php //0046a if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_…
-
- 2 replies
- 1.6k views
-
-
I have this bit of code that displays the times of available bookings. What I want to know is how can I reduce space and put in a dropdown select box? <?php while ($this->day_dt_start <= $this->dt_last_slot) :?> <?php $slot_end = date_create($this->day_dt_start->format(DATE_ATOM),new DateTimezone(PBBOOKING_TIMEZONE));?> <?php $slot_end->modify('+ '.$this->config->time_increment.' minutes');?> <tr> <th><?php echo Jhtml::_('date',$this->day_dt_start->format(DATE_ATOM),JText::_('COM_PBBOOKING_SUCCESS_TIME_FORMAT'));?></th> <?php foreach ($this->cals as $cal) :?> <td class="p…
-
- 0 replies
- 1.4k views
-
-
Hello friends, I am knowledgeable in PHP but not in JSON. But I have a JSON script that I want some of the data in it to be dynamic from mysql database. I have products page where all products are listed, on clicking any product it opens product detail page where this JSON script coordinates. Below is d JSON file My problems are how to make the below parts dynamic from mysql database (probably using PHP) Thanks
-
- 3 replies
- 1.7k views
-
-
Hi We are looking into new hosting, however I am very used to c/panel which has the great ability to install tons of softwares automatically. The new host company my company has been looking at supports Windows and Plesk Control Panel, which from a demo only seems to allow you to instal Wordpress. Am I missing something or is c/panel just tons better? And is this a question of Linux and Windows? Would really appreciate the advice guys. Thanks Ash --
-
- 5 replies
- 1.8k views
-
-
Hi everyone, On my website you can purchase a trip after choosing the departure date (among the available departure dates), knowing that each departure date has a specific price attached to it. In the merise diagram (when drawing the database on a piece of paper), how should I represent the [departure date / price] couples? I'm asking because unlike the other trip attributes/fields, this one is not really a field but rather a couple of 2 different fields. So should I represent it as a separate table with just these 2 fields in it?
-
- 0 replies
- 1.5k views
-
-
Hi all, I have created a file upload script but it keeps failing for some reason? HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form action="script.php" method="post" enctype="multipart/form-data"> <input type="file" name="file_array" /> <input type="submit" value="Upload" /> </form> </body> </html> PHP <?php if(isset($_FI…
-
- 1 reply
- 2.5k views
-
-
Hey people, I'm just having some trouble with this multichoice that I have been working on. I'm using XAMP at the moment before I put my website onto my webserver (heart internet). When I run the quiz I'm getting the following error message Fatal error: Call to a member function fetch_assoc() on a non-object in C:\xampp I know it has got something to do with the sql query but I just dont know what is going on! I want to bang my head against a brick wall. Here is the code <?php //Connect with mysql $db = new mysqli("127.0.0.1", "root", "", "quiz"); //Perform the query to choose random questions $query = $db->query("SELECT * FROM `table` O…
-
- 4 replies
- 3.2k views
-
-
Hello Friends, Am working on a greeting card project (like www.funkypigeon.com) where after customizing a card, you can submit it to DB and a thumbnail of what you created will be generated. At submitting the card, I generate d customization in txt like below.But how do i generate a thumnail from this text div. HELP PLS <!--TEXT DIVS--> <table class="draggable cardinputs ui-draggable" id="f1" contenttype="text" style="z-index: 4; position: absolute; top: 30px; left: 100px; padding: 3px; height: 20px; width: 150px; text-align: center; vertical-align: middle; border: 2px solid rgb(221, 221, 221);"><tbody><tr><td style="font-family: "PassionOne-…
-
- 5 replies
- 2.2k views
-
-
Hello, Earlier this year i purchased the app themes vantage script as can be seen at http://demos.appthemes.com/vantage/ I employed the services of a web designer who customized it for me. Unfortunately recently i started to have issues with the script and the previous designer has left me with an earlier customized copy of the script. The script can be viewed at directory.dineplus.co.uk Issues i am having are – When you click on some of the profiles there are ad hoc numbers showing (wtf!) also on the search results list. When you click on the small icon of the home page on any page , the home page loads but . You do not see the map. As i have rebranded m…
-
- 0 replies
- 1.7k views
-
-
Hey guys, Wordpress has the ability to recognize a custom page and make it available to select it and use when you are logged in in the pages section of the admin ui. To make it work you add this: <?php /* * Template Name: My Custom Page * Description: A Page Template with a darker design. */ // Code to display Page goes here... My question is how does wordpress scan and find these files and then show them in a drop down menu on the pages tab of the admin? Is it done with regular expressions? Many thanks for any help!
- 1 reply
- 1.6k views
-
Hi, I have the below script to upload files. I want to only allow specific file type such as jpg png and pdf can anyone help me add this to my code thanks <?php if(isset($_FILES['ImageUpload'])) { $imageName = $_FILES['ImageUpload']['name']; $imageName = mt_rand(100000,999999).$imageName; $imageTemp = $_FILES['ImageUpload']['tmp_name']; $imageType = $_FILES['ImageUpload']['type']; $file_size = $_FILES['ImageUpload']['size']; $imageName = preg_replace("#[^a-z0-9.]#i", "", $imageName); if (($file_size > 125000)){ echo "File too large. File must be less than 2 megabytes. $file_size"; die; } if (!$image…
-
- 0 replies
- 1.9k views
-
-
Hi Gang, Probably really simple but here's what's driving me round in circles. What I want is to display a number to 2 decimal places with the option of floating one 0 if required. So here's what I got, none of which do exactly what I need. // Number stored is 1.25 $number = 1.25; echo (float)$number; // makes 1.25 ideal! echo number_format($number, 1, '.', ''); // makes 1.2 - not good. // Number stored is 2.50 $number = 2.50; echo (float)$number; // makes 2.5 Ideal! echo number_format($number, 1, '.', ''); // makes 2.5 ideal! // Number stored is 1.00 $number = 1.00; echo (float)$number; // makes 1 - not good echo number_format($number, 1, '.', ''); // makes 1.…
- 4 replies
- 4.1k views
-
I need to add a location feature to my website, where customers can add: Where they are located Areas they cover (such as counties) What's the best way to go about this?
-
- 1 reply
- 1.4k views
-
-
So i've posted this question elsewhere but haven't found any suitable answers yet. I'm trying to create a website found here - r3gamers.com (you can head there to test this problem if you want). I've created a login page which works (as far as i can tell, properly) using cookies. <?php if ($_SERVER['REQUEST_METHOD'] == 'POST'){ require_once ('LoginFunctions.inc.php'); require_once ('Connection.php'); list ($check, $data) = check_login($dbc, $_POST['Username'], $_POST['Password']); if ($check) { setcookie('Username', $data['Username'], time()+60*60*24*90, '/', '', 0, 0); header('Location: index.php'); } else { $errors …
-
- 2 replies
- 3.5k views
-
-
Hi all, I have a total of 4 widget areas that go across my home page, but I want another row below of 4 widget areas using the same styles as row 1. How can I do this? My code is: front-page.php <?php get_header(); ?> <section class="content"> <?php get_template_part('inc/page-title'); ?> <?php get_template_part('inc/featured'); ?> <div class="pad group"> <?php // home widgets $total = 4; if ( ot_get_option( 'home-widgets' ) != '' ) { $total = ot_get_option( 'home-widgets' ); if( $total == 1) $class = 'one-full'; if( $total == 2) $class = 'one-half'; if( $total == 3) $class = 'one-third'; …
-
- 1 reply
- 1.9k views
-
-
Hi guys. I'm Rich and only just joined this forum. I hope that you can help me please as I'm ready to rip my hair out! At the moment I'm re-creating the website that I designed for my dissertation while I was at uni. This is also going to be my portfolio to show employers my skills and knowledge which will help me to get a graduate PHP web developer job. Over the past few weeks I have had a number of job offers but they cannot offer me an interview untill I have my website up and running and on a web domain. The webs site is a learning aid for people like myself who have the learning disability called dyscalculia. There are revision pages that are now complete. I have…
-
- 15 replies
- 2.7k views
-
-
I run a low volume mailing list and website and am currently redesigning my site. The old site contains a simple search function which searches through the list archives (a filter is used to remove/munge all email addresses), but with the updated site I would like the search function to include the website itself as well. Preferring not to use Google's solution, which options do I have for setting it up locally on the server?
-
- 6 replies
- 1.8k views
-
-
Hi my names Alex, I am planning on making the most important website in Human history. It will be a Website where people can discuss and change law. Well i need a website, where users can make Profiles and upload videos very easyly, Just as Youtube, maybe even easyier The Profiles should be able to exchange messages . The website shouldbe able to stream videos as fast as possible ! (may be i can use youtube and embed the videos ? how can this be done? ) no matter where the video files are stored. users need to be able to rate the videos and i show the most important first ,secound, third ..... well thats the rough draw can anybody please …
-
- 3 replies
- 1.5k views
-
-
Hi There, Is anyone able to write some code short? What I need is something like a traffic light system. I'm looking for something where you type in the word red, yellow or green. Then the colour image will appear. But to activate it will be a password. Once that is changed it will go to another page where anyone can see. See image to get the idea. Hope someone would be able to make something like this and wont take too long to do. Please write comments explaining what each part does. For me to understand how it works.
- 15 replies
- 2.3k views
-
Hi All, I am doing some work on my clients website: www.mason-uk.co.uk They have their own font that they use, and I think it (or the code to do with it) adds a strange extension onto the file names in the browser, this changes each time that page loads: (it might not be this) Example: http://www.masonuk.co.uk/application.asp?pid=4#.VD_oufldXnE (the #.VD_oufldXnE is the added on bit - this is the bit that changes each time the page is loaded) Now I have been using Addthis share buttons on the website for over a year, and they get used several times a week. So I know they should be listing in the dozens or even hundreds for the main pages. But they mostly list…
-
- 7 replies
- 2.1k views
-
-
Hi Guys, We are just finishing up a Prestashop website when our client has asked how they will be managing stock control other than using Prestashop's normal system. They have now signed up to use Epos Now HQ, anyone have any ideas how/if this can be integrated? Or what is the purpose of it? We have never spoken about this integration however the company have sold it to our client and has told them we will know what to do with it.
-
- 4 replies
- 5.1k views
-
-
Hi all, Been a while since I have done PHP but I have made a simple form that allows you to edit a download but when it pre-fills the form with the data from the database it displays it with the text like "cant,t" which is how it's stored but how do you go about outputting it as "can't" Thanks for any help and sorry if this is a silly problem etc
- 2 replies
- 1.5k views
-
Hello everyone, I'm not sure if this question is in the right place but fingers crossed! I would like to set up a website with a database and a way of populating it by using very simple, visually compelling, drag and drop technology and wondered what the best approach would be. I am a complete newbie but have been busily learning HTML, CSS, some javascript etc... Just to give a flavour of how I would like this to work, imagine 4 category areas or boxes on the screen that stand for employee abilities 1) knows no javascript 2) has started to learn javascript 3) is moderately proficient at javascript 4) is an expert at javascript. Now imagine anot…
-
- 1 reply
- 1.4k views
-
-
Hi there, I'm making an online shopping website for a friend. What do you suggest I should use for it?
-
- 2 replies
- 1.4k views
-
-
Hi all Firstly apologies if this is in the wrong section. Happy to be directed to the best place. Im Looking for some assistance. Pretty new to site designing so hoping someone can give me some advice. Here's an outline of how a part of the site im designing needs to work: - First page: There will be 2 drop down menus (e.g. 'Please select a country' and 'Please select another country'). The user selects, say, UK and France, then clicks a submit button. - Results page: This page then displays a list of cities within the country the user selected in the first page (e.g. UK: London, Manchester, Edinburgh.... France: Paris, Bordeaux, Dijon....) I…
-
- 2 replies
- 1.7k views
-
-
Hello friends, I have many articles in my database. Whenever anybody opens any blog to read, i want to display blogs relating to the opened blog, in topic, at the bottom of the opened blog. The methoed i used before was that, i broke the topic into keywords the use the keywords to search the database and display the similar ones but in most cases the ones displayed are not really relevant. Pls help.
-
- 1 reply
- 1.4k views
-
-
Hello, do you think there is anything I am missing with my .htaccess file. Thanks, <IfModule mod_expires.c> # Enable expirations ExpiresActive On # Default directive ExpiresDefault "access plus 1 month" # My favicon ExpiresByType image/x-icon "access plus 1 year" # Images ExpiresByType image/gif "access plus 1 month" ExpiresByType image/png "access plus 1 month" ExpiresByType image/jpg "access plus 1 month" ExpiresByType image/jpeg "access plus 1 month" # CSS ExpiresByType text/css "access 1 month" # Javascript ExpiresByType application/javascript "access plus 1 year" </IfModule> # Redirect non-www urls to www RewriteEngine on RewriteCond %{HTTP_HOST} !…
-
- 3 replies
- 2.1k views
-
-
Hi guys, I have this script to echo out files in a directory for fancybox, I'm getting a strange result here on this page (rest of the site is not done using php; it has been tediously coded). <?php // settings $base = "../images/alb"; $thumbs = "thumbs"; $files = scandir($base); unset($files[0], $files[1]); unset($files[array_search('.DS_Store', $files)]); unset($files[array_search('thumbs', $files)]); $chunk = array_chunk($files, 10000); foreach($chunk as $i => $filearray) { foreach ($filearray as $file) { echo " <a class=\"fancybox\" rel=\"group\" href=\"$base/$file\"><img src=\"$base/$thumbs/$file\" alt=\"\"/>…
- 4 replies
- 1.6k views
-
I had built this spam class for my blogging software but it can easily be modified by you to work on any site so I'm just going to post it as is. So far this class as prevented 248 spam comments from getting through on my blog software so it is pretty effective and can be added onto. /** * XSpam is a custom spam library we built to help prevent comment spam on our blog software * this class may however be modified for use with other websites as well that does not use SimpleBlog * @package SimpleBlog v1.2 * @subpackage XSpam */ if(!defined('IN_BLOG')) { exit; } class XSpam{ public $arg_spam_filter = FALSE;//Aggressive spam filter public $disallow_links = TRUE;//Mar…
-
- 5 replies
- 1.9k views
-
-
Hello, Pls is anything wrong with my script below? when ever I upload & crop a PNG image, it comes with black background, what do I do or which crop, resize & upload script is better? <?php // Adam Khoury PHP Image Function Library 1.0 // -------------- RESIZE FUNCTION ------------- // Function for resizing any jpg, gif, or png image files function ak_img_resize($target, $newcopy, $w, $h, $ext) { list($w_orig, $h_orig) = getimagesize($target); $scale_ratio = $w_orig / $h_orig; if (($w / $h) > $scale_ratio) { $w = $h * $scale_ratio; } else { $h = $w / $scale_ratio; } $img = ""; $ext = strtolower($ext); if ($ext == "gif"){ $img = imagecreatefromgif($target…
-
- 8 replies
- 5.3k views
-
-
Hello, I am thinking to develop a web application in php and install it locally in my customers machiens after installing appache in their pcs. but my question is, how can i save the copyright? the customers may send copies of it to each other and also other developers may modify my code. I need a way or suggestion to make my code uneditable or something like this.. any suggestions or ideas?? Thanks..
-
- 4 replies
- 1.8k views
-
-
EDIT: I KNOW THE TITLE HAS A SPELLING ERROR. SORRY. Hi guys, I have an idea in my ahead about a website I would like to create. Just want to quickly say that I have experience with PHP, HTM and CSS, at the basic/intermediate level but I am MORE than willing to increase my knowledge of these languages. For my university project I made a website that collects information from different websites and puts them on mine, using the languages i just said above. So anyway, the Idea is, I play a game called of League of Legends, its a very popular online MOBA game. The game is heavily revolved around a 5v5 game mode, its just 5 individual players, you pick a charact…
-
- 2 replies
- 2.1k views
-
-
Hi all, Ive never done an API before and Im very excited to learn I have knowledge of PHP and MYSQL. Basically a friends website needs a Direct debit system. He has a company who will handle all his direct debit payments. London and Zurich. They have emailed a documentation called "customer web services documentation" along with the fields the database needs to have. So this document includes things like this: GetScheduledActivePayments Web Service Obtains a list of active scheduled payments for a group. There is an optional choice to show future payments (using a Boolean 1 / true or 0 / false). The AccountRef parameter is also o…
-
- 1 reply
- 2.3k views
-
-
Hi there, (Sorry shouldn't of put 'Transfer' in the title!) I have a client, who has their domain registered with Namesco, with their hosting pointing towards another company called 'Toolkit' They now want their domain to point to 1and1 hosting.... However, they also use an external company that manages their e-mail server. I have been advised by 1and1 to make changes to the DNS Records, by using CNAME, which I have a dropdown option for, BUT I'm a little concerned I might enter the informaiton into the wrong box and disturb their emails (They need their emails to be woking at all times!!) Attached is a screen shot of the fields I need to replace, ple…
-
- 1 reply
- 1.4k views
-
-
I have VPS (with Ubuntu Server). Files and DBs are not very large (~10-20 GB totally) but I need to make periodic backups of all user data. I'm looking for simple solutions that allows to backup all this stuff to Amazon S3, and meet some conditions: Easy to configure, because I'm newbie in server administration Backup all files (entirely /home directory) Backup MySQL DB Incremental weekly backups Could you give advice for my case or recommend good tools for such backups?
-
- 5 replies
- 1.9k views
-
-
Hi guys, I've just changed a domain name's name server settings on GoDaddy to point to my site on 1&1 servers - click here. I've done this many times without a problem. However, today the site I changed just goes to a blank page. Any ideas why that is happening? Everything seems to be in order as far as I can tell. On 1&1 the domain is active with the following: Domain name: getmoneyadvice.co.uk IP Address (A Record): 212.227.202.70 IPv6 Address (AAAA Record): 2001:08d8:1001:057a:8d52:a65d:1f80:380b Name server 1: ns-uk.1and1-dns.co.uk Name server 2: ns-uk.1and1-dns.biz Name server 3: ns-uk.1and1-dns.com Name server 4: ns-uk.1and1-dns.org Mail server 1…
-
- 8 replies
- 2.2k views
-
-
I always received a bit of spam from email harvesters who were a bit ahead of their time. However now they all seem to have found a remedy for the below: <script language="JavaScript"> var username = "[your_username]"; var hostname = "[your_mail_account_domain]"; var linktext = username + "@" + hostname ; We seem to be getting a crazy amount of spam emails now - 50 an hour or so. I used to use hex encoding but that was prior to the above. Can anyone recommend a good way to encode an email address. Nobobdy should be using a captcha when trying to retain customers enquiries from the website.
- 4 replies
- 2k views
-
I'm trying to use PHP to send mail to my email but everytime i get a message sayingfvbf Can someone good with PHP add me on skype: CroakyWoaky thanks
-
- 5 replies
- 1.8k views
-
-
I'd like to create an online configurator, where users can choose the hardware parts that want to build his computer. At each change, the user can see what price will be the computer. Is there any code that can download from the internet, or has to be programmed manually. Here you can see an example of what I intend to do. http://www.assismatica.pt/configurador/barebone-clevo-w370ss-2gb-gtx-860-_54173.aspx Best regards
-
- 0 replies
- 1.6k views
-
-
As the title might suggest, I'm not so hot with PHP, and have decided to try use a PHP contact form on my brother in laws site, I can confirm this to be true. As it stands, the Form is posting, but only one variable seems to be sent correctly from the form to the PHP mailing code, so all I see in the test emails are: Name: Email Address: Phone Number: Subject: The subject is working... Message: The code was taken from a basic enough example on a website. Here is the form table: http://pastebin.com/FN5z1RAm And here is the 'send-email.php' http://pastebin.com/qkpip4Z5 As I said.. the 'subject' field is the only one that works, so I…
- 4 replies
- 1.9k views