This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 801. |
Solve : NEED HELP CREATING HTML? |
|
Answer» Off topic but what's GOING on here with the FORUM username puzzle game? The starts with a member named eclipse255. But that member closed their forum account, as indicated by "GUEST" below their username in the original POST and their second post. Then later, they apparently renewed their forum membership using the same username again. And finally, we see a member named Dewayne ron spliff who is apparently the same person as eclipse255. This MAKES a very messy discussion thread. Does this person not understand this? |
|
| 802. |
Solve : I want to copy the same post grid style to my another blog ?? |
|
Answer» I am very confused and ashamed also that my FRIEND asked me to change the POST style in BLOGGER but after an hour i could not this is out of my mind and i don't know what to do so plz any body tell me that how to copy that similar grid style post design in any other blogger BLOG. |
|
| 803. |
Solve : how to convert a script to windows.exe? |
|
Answer» How do you convert a script to a windows.exe file, Is there a software where you can edit the text and see your website, and what you are creating at the same time?Scripts that run on a remote server can not run on your local ,Windows machine. The conceptions are s when your local machine has some kind of server system. This is often done with an emulation or a virtual machine. The FORUM is written in PHP. But the serve translates in into HTML for your browser.yes you can. scripts are just created by scripting languages. Putting aside the issue of whether you are local or at remote and whether its a web site script, there are tools developed to convert scripts to exe that you can run locally on your computer. For example, if you have a PHP script, you can probably try out some of the tools mentioned here. If you are using Python as a scripting language, py2exe , pyinstaller COMES to mind. If you are using Ruby, things like ocra can do it If you are using Perl, you can use PAR::Packager , or one of those commercial ones like pdk perl2exe So, depends on what language you use, you might probably find something along that line.briandams, have you done it? The tone of the first post would indicate the OP has no experience with running scripts either remotely on local. Now if you wish to help him step-by step, please do so. And he did not say which script language. Quote from: Geek-9pm on January 10, 2014, 09:33:02 PM briandams, have you done it?of course. If not, i won't even suggest. DUE to work, i often have to distribute programs to clients who doesn't know programming and in order to reduce the hassle, i just convert scripts i wrote to stand alone executables. Quote from: Geek-9pm on January 10, 2014, 09:33:02 PM The tone of the first post would indicate the OP has no experience with running scripts either remotely on local. Now if you wish to help him step-by step, please do so. And he did not say which script language.you and me and everyone else knows the info he gave is sufficient to really help him. I am just giving a best guess what his scripting language might be. helping him or not, well, we both know that that's not possible right now w.o further info. Quote from: Geek-9pm on January 10, 2014, 09:33:02 PM And he did not say which script language.They mentioned PHP. anthonyb5615: If it is a prepared Template, is it possibly some sort of CMS? Some templates come with back-end features that will allow you to make certain changes without editing any of the source, or by simply revising stylesheets. Have you been able to deploy the Web site/templates anywhere? Or is deploying the website in a usable form what you are trying to do?I m trying to work with template, not sure of the file type? and I have a ready made website I bought that is made from php, with the ready made site I just want to add my add sense and upload it to server. Quote from: anthonyb5615 on January 14, 2014, 10:14:45 AM I m trying to work with template, not sure of the file type? and I have a ready made website I bought that is made from PHP, with the ready made site I just want to add my add sense and upload it to server.Hmm... When I need to put a script or something else on my website, I use an FTP client and have no need to convert it to an EXE file. What I am saying is that if the remote machine is not a windows machine, using EXE written for Windows is not going to work. The remote might be Linux. However, when I find a template in PHP, I test it on my local machine with suitable emulator. Then I have to convert the thing into a ZIP file and upload lit to the server. The program non the service is WordPress, which is largely PHP and requires uploads in ZIP format. However, I believe I have did uploads using FTP. The issues is knowing where they have to go in the remote directory structure. Does this apply to what you do? Quote from: anthonyb5615 on January 14, 2014, 10:14:45 AM I m trying to work with template, not sure of the file type? and I have a ready made website I bought that is made from php, with the ready made site I just want to add my add sense and upload it to server. You are going to have to give a lot more information - Such as what your existing website is, what this exact template (i.e. a link to it) and what you are trying to do. |
|
| 804. |
Solve : Website for business? |
|
Answer» Hey! I need some advice about where to go to get a website as I've recently started my own little business (t-shirt printing) and the next step is to get a website set up for it. I've asked a few people about it and also done a search on google. Looks like there are some good free blog/website sites like WordPress and Blogger but then I was wondering if it was worth paying for a webhosting company like 1&1 for example...can anyone give me some tips or suggestions? Anyone own a website on a good site than you can suggest? Some of my friends have a blog on Blogger but I don't know if it's suitable for a business as they just have like personal blogs on there. For a business site you'd really want to pay for web hosting (free stuff is often unreliable and companies can disappear overnight taking your site with them) and get a domain name (e.g. cp39tshirtprinting.com). You are certainly best to go for a proper web host. Hosting from home can be a fun project but the power cost alone of an old computer will likely end up substantially more than a cheap hosting package. Then you get into the issue of port forwarding/security and the fact that upload speeds on residential connections are fairly slow.AgreedOne thing you could do if you are mostly only going to sell t shirts is to set up an e commerce site? Right now there are a lot of sites offering e commerce solutions for AROUND 10-20 a month and higher and usually comes with hosting. I was looking at one site that had a package that included 100 items a month for around $12.00. Google cheap online e commerce solutions. Just like with anything on the internet there are a lot of e commerce building sites, so do your research and look around. If you have the ABILITY to code word press might be an option that could work you you as well. I think it is best to use Wordpress as CMS. and then you can choose paid or free theme... there are many. and also check woothemes, they have woo commerce. |
|
| 805. |
Solve : Perl-Continue to Next Line? |
|
Answer» Thanks to another FORUM MEMBER I was able to get a script to work that executes a batch script. My problem now is I need the Perl script to continue to the next line of code while the batch script is running. The Perl script wants to stop and wait til the batch script is finished before it goes to the next line. The batch script creates a video file in real time, the next line of code uses "Location:" to direct the user to the location where the video file is LOCATED. Any help in getting the Perl script to continue would be much appreciated. |
|
| 806. |
Solve : help needed! Quotation marks not converting? |
|
Answer» I am new to web design, I am currently using textedit/safari on my mac, some of my QUOTATION makes in textedit don't convert over to my webpage, for example - |
|
| 807. |
Solve : HTML Frames question?? |
|
Answer» Hi, |
|
| 808. |
Solve : A description for this result is not available because of this site's robots.txt? |
|
Answer» I get this message when I find my website on google. I'm promoting a MarketHealth OFFER. I have a domain PURCHASED at GoDaddy and I used ( Forward With Masking), also I have private registration, if that helps any. I am having all kinds of TROUBLE with my robots.txt file blocking google adsense as well as searches. I called Godaddy (my HOSTING provider)... http://wordpress.org/support/topic/how-to-edit-my-robotstxt-file |
|
| 809. |
Solve : True type font with extended DOS charset? |
|
Answer» The title basically SAYS it all. Do you know if there is any font that has all the DOS characters in it? Code page 437 is the character set of the original IBM PC (personal computer), or MS-DOS. It is also known as CP43 Inte Quote rpretation of code points 1–31 and 127http://en.wikipedia.org/wiki/Code_page_437#Interpretation_of_code_points_1.E2.80.9331_and_127 Historically, code 0 and code 127 where null and rub out used in 7 bit teleprinters. |
|
| 810. |
Solve : [Tutorial] My 301 redirect experience? |
|
Answer» 301 redirect is one of must-know feature for every PHP Programmer. Today i will show you my TRICKS to redirect 301. |
|
| 811. |
Solve : VOIP Question? |
|
Answer» Is it possible to build a button application into a web page that when pushed it runs a softphone app. on our SERVER(Java or ActiveX) and allows the person browsing to be added to our support query that is controlled by our VOIP PBX. But it would have to WORK even if the user didn't have any softphone software. |
|
| 812. |
Solve : what is this "NTc1Nw==" ? plz help me :(? |
|
Answer» in a site are some images with names of |
|
| 813. |
Solve : Should I edit the .htaccess on my site.? |
|
Answer» Recently my web site was down. I got another host. But the new host does not let VISITORS to directly view my pictures in the subtler /images but it USED to be so. |
|
| 814. |
Solve : keep and save calender? |
|
Answer» Does anyone know if I can automatically transfer the unticked CONTENTS of my calendar each day into the NEXT. If not poss is there another calendar that I can embed into a web site that will. |
|
| 815. |
Solve : How can i use joomla to build a web sit and how it works?? |
|
Answer» Please help i just meet the basic understanding of joomla 3 ...... how it works can anyone clarify to me everything about joomla please?It depends on your need. At my advise Joomla is half-way between a blog like Wordpress (text, journalistic site ) and Altervista PAGES (more GRAPHIC). You can easily WRITE article-text and organize some Webdesign throug the Html editor with images LINK videos ecc. To go further you have to spend more time like EVERYWHERE else. |
|
| 816. |
Solve : How to set background image in web page? |
|
Answer» hey friends, i am trying set a small image in my web site. But that image is small[size: 280 x 177 px] but i want to set that small image in my background. it will be set at WHOLE bg...can you help me how to set??? waiting.... Use ' is very old fashioned and considered old practice, not to mention the very limited control it gives you over your styling.Yes using CSS is the way to go |
|
| 817. |
Solve : Search Engine Optimization? |
|
Answer» Why after having a web site for five years and over 25000 hits can you not type the address in a search box and bring it up? If you type in the words associated with the web site it is on top in search results? Why after having a web site for five years and over 25000 hits can you not type the address in a search box and bring it up? Because you're meant to to type the address in the address box. Search engines such as Google index page contents, not page addresses. May be it is to small if you type in a search box www.ebay.com or www.amazon.com it will bring those up.Yes, do not try to locate a site by the IPv4 numbers. Use of the domain name is REQUIRED. Only some servers will respond using the four dotted decimals. Quote from: Geek-9pm on February 23, 2014, 02:45:33 PM Yes, do not try to locate a site by the IPv4 numbers. Use of the domain name is required. Only some servers will respond using the four dotted decimals. I think you missed the point, my old chum. He is asking "why can't I type my site's address as a search term into a search engine and have it come in the FIRST 5 results, like I can if I search using words associated with the web site?" (I wonder if his site is about *SPAM*?) You are right. He got me confused. How high you stand in a search engine depends on a lot of things. Advertised sites get top ratings. In some areas. If you are in Miami, and you look for taxi companies, you will get the ones in Miami , not New York. Yeah, maybe he is a spam pusher. If you want to be top dog in a search, go talk to Google and offer them money. Works for me. No, not my blog, butrout family business site GETS close to the top in the city where we do business. The price is less than using the local NEWSPAPER. Quote from: John1397 on February 23, 2014, 09:43:55 AM Why after having a web site for five years and over 25000 hits can you not type the address in a search box and bring it up? If you type in the words associated with the web site it is on top in search results?Do you use Google Webmaster Tool? Setup an Google Webmaster Tool for your website and you can check your website status such as backlinks to your website, search queries to find your website...It's one of the must-use tool for Webmaster, |
|
| 818. |
Solve : Creating HTML5 Slideshows from Picasa - and More? |
|
Answer» Rightly or wrongly, I've been using Picasa for years to store and edit travel photos. |
|
| 819. |
Solve : Having trouble making my bulleted list colored? |
|
Answer» I have looked it up on line and everything is how to make the actual bullets different COLORS. I am wanting my whole list to be one color. The text and all. I have my css file and clueless as to what to add and where to add it. One person said li {text-color: #111111111;} but this doesn't work. I am so confused. Please some kind SOUL I need a bit of help.No IDEA who gave you that code - Pretty sure they just made it up (text-color is not a CSS property and #111111111 is not a valid colour code.) |
|
| 820. |
Solve : Free Stock Images for My Website?? |
|
Answer» Where or how can I GET |
|
| 821. |
Solve : WEB DESIGNING (HTML, CSS, FLASH,)? |
|
Answer» Hi there, Many Web based presentations are actually created by programs that go beyhound just HTML and CSS.They use Javascript and HTML5, not really WYSIWYG tools - All those tools do is write the code anyway so anything they can do can be done manually with greater flexibility. Visual Studio is not made specifically for web design - It's a general IDE for developing Windows applications - They have a web part of it but that is built for building web applications in ASP.NET - It's pretty horrible as a tool for designing wesites, especially without an existing design built elsewhere. Quote from: muk.tha on May 23, 2014, 12:01:48 AM Hi there,I'm also learning PHP and here is my favourite online learning resources. 1. Pratical PHP Code: [Select]http://www.tuxradar.com/practicalphp2. Object Oriented PHP Code: [Select]http://www.killerphp.com/tutorials/object-oriented-php/Hope this helps Quote from: muk.tha on May 23, 2014, 12:01:48 AM Hi there,Just go to w3c.org |
|
| 822. |
Solve : Nameservers? |
|
Answer» Hello Is that likely to be because I have not set the nameservers?Your domain name is on file with a domain registrar. The registrar service is different from the web host service. Even if both are with the DAME company, it is still two different services. Only the registrar can point your domain to name-servers. The name-servers, ion TURN , point to the web host directory where your site is hosted. So you have to log into the registrar and set name-servers. Example: You have bought a domain called High1.ca from a company called host-canada.ca and they set the name-servers to ns1 and ns2.host--canada.ca but you buy web space from a company called web-united.us and the nameservers are ns1 and ns2.web-united.us respectively You have to log into web-united.us.ca and set the domain to point to the new nameservers. It may take 72 hours for the nameservers to propagate. You can not set the nameservers in the control panel of the we host. You set the nameservers in the control panel of the we registrar. To add to the confusion, it is not always clear if you are in a domain control panel or a web space control panel. Sites like 1and1 and go-daddy offer both services. If you like that, fine. If that is the case, ask them for help. After a bad experience, I now keep my registrar and host service separate. A flaky domain company STOLE my domains over a dispute I had with my web service. Hello Sorry to hear of your bad experience. Yes, now that you have explained it, it's coming back to me: it's just been so long since I registered the name that I forgot the name of the company I registered it with and had to go to Whois Lookup, hehehehe. In my case, they are two different companies on two different continents so I can kind of put them in different boxes in my mind. Thanks again for your reply. High1 Glad to help. |
|
| 823. |
Solve : Link to PDF file works and doesn't work!? |
|
Answer» (1) I created a document in Open Office Writer. By the way, I use Windows 7. |
|
| 824. |
Solve : Page acts differently after being uploaded [Basic question]? |
|
Answer» I made a simple quiz with quizbox.com and it gave me the html output. When I run the html file from my COMPUTER, take the quiz and click Grade Me it takes me to a scoring page. But I upload it to my website and when I click Grade Me it brings me to an error page. What can I do to have it work the same on my website as on my computer? The html is the same on both. |
|
| 825. |
Solve : Run a PHP script within Perl? |
|
Answer» Hi, |
|
| 826. |
Solve : JavaScript Problem? |
|
Answer» Can anyone give me the solution of below PROBLEM..... |
|
| 827. |
Solve : HTML code working with survey creation software? |
|||
|
Answer» I am on a mac (OS 10.8.5), working in Firefox, within Verint, a survey creation software.
2. Table after photo: This leaves the photo centered next to the checkmark box, but puts the text on the next line:
3. No table, just inserting aligned photo: This puts everything on one line centered, but if the text goes to 2 lines the second line goes below the image instead of wrapping: K4 Program—Featuring Footsteps for Fours | Melodye Snyder [recovering disk space, attachment deleted by admin]Is verint a what you see is what you get (wysiwyg) editor and is interal css or exteral css? |
||||
| 828. |
Solve : Grid Computing ideas? |
|
Answer» What are your view of the likely success of Grid COMPUTING? What type of demands will this PLACE on CURRENT WAN networks? What type of APPLICATIONS are likely to be deployed through the Grid systems? |
|
| 829. |
Solve : XML and Mobile Development? |
|
Answer» What are the problems with COBRA and OLE/Active X in DISTRIBUTED object ORIENTED processing? Why is J2EE proposed as a REMEDY to FIX these problems? Sorry, we won't help with homework. |
|
| 830. |
Solve : Simplifying repetitive HTML by some form of 'id' templating. Is this possible?? |
|
Answer» Hi everyone, |
|
| 831. |
Solve : shopping cart? |
||||||||||||||
|
Answer» Hi, addcart.php session_start(); if(isset($_SESSION['panier'])){ $panier=$_SESSION['panier']; } else{ $panier=array(); } $index=count($panier); $panier[$index]['name']=$_POST['name']; $panier[$index]['price']=$_POST['price']; $panier[$index]['quantity']=$_POST['quantity']; $_SESSION['panier']=$panier; header("LOCATION:index.php?") ?> panier.php $panier=$_SESSION['panier']; ?>
name: varchar 100 non null price: float 10 non nullThat is still not nearly enough information... We still have no idea how the rest of your system is built, what errors you are getting.etc.the rest script: index.php
|
|||||||||||||||
| 832. |
Solve : Easy web building software?? |
|
Answer» I used MS Frontpage 15 years ago successfully and with ease to do my simple sites. I now want to start doing some simple web sites again, but found MS Expression Web 4 USER-unfriendly for a stupid person like me. There are hundreds of others available like WIX, Simplesite, Joomla, Wordpress, Dreamweaver ….. but I would like to use FP again if possible. That way I can design the site off-line without knowing any codes and file on my hard drive and RETRIEVE whenever I need upgrading or to use it as starting template for more sites. If MS Frontpage is now unobtainable, what is the closest to that - measured in simplicity? I prefer to pay and not get something for free - just sceptical about free stuff :-( |
|
| 833. |
Solve : what is the best technologies to create a crowd funding service?? |
|
Answer» e're going to invest on a crowd funding website in our country. Currently, there's not any native service.
Programming language REALLY comes down to what you know and are comforable with. PHP is fairly easy to get started in but it is also very easy to write very bad PHP code. If you are using PHP I would strongly recommend you use a framework such as Codeigniter or Laravel over starting from nothing. Alternatively languages like Python and Ruby can be used with very good frameworks (Django for Python and Ruby on Rails for Ruby). These frameworks do a lot of stuff for you and perform extremely well although the learning curve is potentially steeper when compared to the likes of PHP.I was on an IRC and people suggested node.js for modern front end experiences, with this working example: http://community.nodebb.org, a forum-creator based on node.js and javascript. we are not programmer. we just want to invest: we will hire/employ geeks to code it for us. we want to know exactly which language, to know which programmer!Node.js is okay but not as widely used as the likes of Python/PHP. In the end the language isn't that important. Be very careful with a lot of those freelancer websites for hiring developers as a lot of the people on there are not good developers at all, they can knock a site out quickly and cheaply but they can be extremely badly built which can cause security issues and high costs down the line. On that subject I would then potentially lean towards looking for freelancers to built it in something such as Python with the Django framework or with Ruby on Rails. My logic behind this is that it is extremely easy to learn PHP but much more difficult to be good at it - The danger here is that you hire a freelancer who knows how to write stuff in PHP but does not understand how to build a good quality application so you can end up with a mess. A framework like the two I just mentioned will FORCE the developer into a very predefined structure which makes it a lot harder to mess up and means that down the line if you were to hire another developer, as long as they know the framework they will be able to understand how it is all laid out. On the other hand, a PHP developer could easily write absolutely everything from scratch in their own custom way which can then become an absolute nightmare for another developer to come in and fix. Quote from: Onrea on August 05, 2014, 03:25:38 AM e're going to invest on a crowd funding website in our country. Currently, there's not any native service.The theme 'crowd funding' is not unique or have issues that have never been solved. It is not rocket science. Do not do it from scratch. Millions of websites a re built on high-level tools, like joomla. http://www.joomla.org/ Same is true of WordPress. Quote from: Geek-9pm on August 05, 2014, 12:29:01 PM The theme 'crowd funding' is not unique or have issues that have never been solved. It is not rocket science. So now you tell the OP to use a premade CMS which is not the most appropriate PLATFORM for their application and introduce a load of confusion... CMSs have modules for lots of things but crowdfunding is an extremely custom application, there is no real benefit to building this on top of an existing CMS other than using a tool for a purpose other than it was intended. A crowdfunding site is not a normal website with pages of information, it is a completely custom web application. Looking around online I can't find a single decent crowdfunding module for CMSs. You would end up with the majority of your site sitting in a module and a FRACTION of the CMS actually being used. I build a lot of sites - The ones that have pages of information with maybe a few interactive elements such as those for small businesses are built using CMSs but a lot of them are completely custom web applications, building this on a CMS is not the right approach. Look at all the other popular crowdfunding sites, they are not built on top of off-the-shelf CMSs. Geek - Look into web development frameworks like Django or Ruby on Rails - They are designed to let you build web applications rapidly and do a lot of stuff for the developer, yet they do not force them to have to develop plugins for some sort of premade CMS. This is how modern web applications are built. |
|
| 834. |
Solve : I need some help with FrontPage? |
|
Answer» My problem involves my web page (MADE with FrontPage 2003). Please look at my web page http://mama1010.servequake.com/reble . My friend (the host) set up the basic page and he copied all my info from my old Tripod web page. I went in with FrontPage and updated the info on the web page. I updated the "About Me" page, the "My Radio Equipment" page and the "My Hobby's" page. Somehow I screwed up the back ground for the navigation buttons for the "My Radio Equipment" and "My Hobby's" pages. My friend (the host) is a very busy man. The server is in the back of his office. He doesn't have a lot of time to get on and fix what I screw up. Also I don't squawk about not been able to reach him for help because the service is free. So I have to look else ware to figure it out on my own. The next 2 Dropbox links are screen captures from FrontPage on my laptop. The 1st is of the file "my radio equipment.HTM" file https://www.dropbox.com/s/c7tq7gs3xi411ae/my%20radio%20list%20in%20fp.jpg . And the 2nd is of "my radio equipment(2).htm" file https://www.dropbox.com/s/pb94cukqmcqj10w/my%20radio%20list%20in%20fp2.jpg . 1st off why is there 2 files with the same name throughout FrontPage (an index and index(2), my radio equipment and my radio equipment(2)) ? I don't understand that the files have the same name but it is ALMOST like a ghost file. Also I don't KNOW how or what I changed in the 2 files "My Radio Equipment" and "My Hobby's" that controls the background for those 2 navigation buttons. The background for the navigation buttons looks fine on FrontPage in my laptop when I run preview. But I have no idea why the background is screwed up after I post it to the server. I can post the code if need be for the "my radio equipment" page. I would very MUCH appreciate any help given. |
|
| 835. |
Solve : Is there a weatherbot that I can use with a middit chat?? |
|
Answer» I use middit to get a starchat and I was wondering where I can find one that works on it. Just make sure I get one that works for my chat. Mibbit is a web-based client for modern web browsers[2] that supports INTERNET Relay Chat (IRC),[3] Yahoo! Messenger,[4] and Twitter.[5][6] It is developed by Jimmy Moore[7] and is designed around the AJAX model[8] with a user interface written in JavaScript.[2]Way over my head... EDIT: Di you already read this? https://nwschat.weather.gov/FAQ.php Quote Q1. What is NWSChat? You will need to explain your question about what you want in a lot more detail. Are you talking about "Mibbit"? If so, mibbit is not a chat protocol, it is IRC chat where Mibbit is simply a web based IRC client. And yes, there are loads of IRC bots available or libraries to create your own.Its a weather bot that I need. That really doesn't clear things up... |
|
| 836. |
Solve : shopping cart calculate the amount? |
|||||||||||||||
|
Answer» HI, I have a shopping cart (first script)below is OK, but when I want to make the calculate(second script) the AMOUNT, it indicate the under last line ( Home[/url]I wish SOMEONE can help me to modifiy it. votre panier EST vide
second script: session_start(); require_once 'panier.php'; $panier = new Panier('produits'); $listproduit = $panier->getPanier(); ?> votre panier est vide
Looks like the Code: [Select]</a> end tags are SHOWING up as , is this also this way in your code in which the a href hyperlink end tags should be Code: [Select]</a> |
||||||||||||||||
| 837. |
Solve : PHP Find Diffrence from 2 Arrays? |
|
Answer» C'Mon MAN - Just learn PHP properly, from a book or online guide - Randomly COBBLING TOGETHER bits of other people's code will not teach you anything and your code will END up a mess. Besides, PHP is a pretty easy language to GET started in compared to a lot of others. |
|
| 838. |
Solve : how can get a variable from another page ?? |
||||
|
Answer» Hi
index.php $qty=0; $totalprice=0; foreach($listproduit as $produit) { $subqty=$produit['quantity']; $subtotal=$produit['quantity']*$produit['price']; $totalprice+=$subtotal; $qty+=$subqty; ?> I want to make output $qty in the page header.php A Transactional Database such as MySQL that takes the data passed to it from a dynamic html form, is one method. On the next page it populates the dynamic HTML with the information that was written from the first page to the database. You would need to have it create a user account or give a user identity to associate the point of sale info to the correct customer connected, this acts as a primary key so that the correct customer gets the correct data at the 2nd page and all ADDITIONAL pages. I'd avoid trying to do this through just a variable as for if you had more than a single customer connected at the same time, the customer who accessed it last would alter the variable data for the other. Sure it would work ok if only 1 person interfaced with it at a time. Additionally passing directly to a variable without testing the data that is passed to it can allow for hackers to send an overflow to it and sometimes assume admin control of a server etc. So a form that takes in information and tests the data before its passed to the server is best to avoid intentional buffer overflows. Such a test would be an IF statement that verifies that the item prices NEVER exceed say $5000.00, quantities never exceed 50,000, etc so that someone couldnt just send a huge number to it and overflow it to either crash it or gain access through an exploit.do you think it is a secure way here: header.php session_start(); // store session data $_SESSION[$qty]=1; ?> index.php session_start(); // read session data $qty=$_SESSION['views'] ; ?>When it comes to php, I am not a data security specialist... Maybe someone else here works with data security and php to answer this better than I can. Generally I set limits so that the value passed has to be between say 0 and 10,000 and this way negative numbers for quantity are disallowed as well as any numbers greater than 10,000 are disallowed. My php experience is mainly with internal applications that are web BASED on ( internal network ) Intranet where the only threats are if you have a rogue employee. As well as playing around with php turn based games etc. Setting up data conditions are important so that only realistic ( allowed ) values are entered as well as string data never exceeds a specific character length limit etc. So all data passed across should be tested. Some OVERHEAD can be taken off of the server by using local client side scripts in javascript that test values before they are passed to the server. Then at the server the values should be tested again ( especially if web based where you are subject to hackers etc) to make sure that the data to be passed to the SYSTEM conforms to allowed data type values and character string lengths. |
|||||
| 839. |
Solve : css floadting effect project? |
|
Answer» Any CSS master here? |
|
| 840. |
Solve : Wanting to make a store website using Google Sites? |
|
Answer» I've already got most of the site layout done. All I NEED to know is how to SET up the site for purchases.Buy a domain name from a site like go-daddy or an other site Why would you use Google sites for ECOMMERCE, it is totally not built for it. You will need to BUILD the site using PROPER ecommerce software like Magneto. |
|
| 841. |
Solve : Interactive leaderboard application? |
||||
|
Answer» HI there, I'm trying to make an interactive leaderboard, so far the code i've written is: <center>Leaderboard</h1> User 1: User 2:
----------------------------- As you can see i'm a fairly novice programmer... and so I need some advice on where to go to next: I basically want to put a number in one of the user boxes, and then it would add to that users total. Also, will the program be able to remember the values i've put in UPON exiting the application? Any advice is great, CheersYou are going to need a web server such as apache with a Perl or PHP module active, and then write code in PHP or Perl to generate dynamic html that gives the input form function, and then pass the values of that to the program. Most will also have a DATABASE such as MySQL that the values write to. This way when the server reboots or you ever have a power outage that causes the server to go down, the info is saved to disk and so you can pick up where you left off. ( * The scripts could be written to pass values to a local file to be stored, but its best to pass the values to a transactional database such as MySQL to avoid data corruption with multiple users connected to the same interface. ) You will need to know more than just HTML to pull this off... I suggest PHP or Perl as a language to use with this which would CREATE dynamic web pages and allow for passing the data to a database such as MySQL which is free. Apache is also free and I have used that before for private web servers and testing server side scripts locally. If you havent already already gotten this.... WAMP is a useful tool that is free that works great for coding and testing your code, but never used WAMP to host your website online as for its a gaping hole with SECURITY settings. http://www.wampserver.com/en/ |
|||||
| 842. |
Solve : Unfinished graphic displays in compiled HTM/HTML file? |
|
Answer» Hi, |
|
| 843. |
Solve : web site image display? |
|
Answer» Hi, |
|
| 844. |
Solve : CSS footer question? |
|
Answer» Hello |
|
| 845. |
Solve : PHP contact form won't work with Yahoo mail? |
|
Answer» I'm setting up a web site contact form for a friend who uses Yahoo email. When I set up the form to send MESSAGES to my own email (not Yahoo) it works just fine. But when I set it up with my friend's Yahoo email address the message doesn't show up in the inbox. We tried another Yahoo account, and it still didn't work. There don't appear to be any spam filters or blocklists affecting it.Did you check the spam box to see if yahoo flagged it as spam? I can see a Mail To Form getting flagged easily as spam!I looked... it warn't there Are you using the OLD HTML ( Mailto ) instruction to e-mail the form data? If you are there then has to be a local mail client set up in the browser such as Outlook Express, Outlook, or another client active that can handle this on the workstation or computer by which the php is executing dynamic html. |
|
| 846. |
Solve : Re: php mysql issues? |
|
Answer» We are going to need a lot more information than that including how the site is built, exactly what goes wrong and any relevant code snippets.I agree with camerongray.
And finally: Code: [Select]<form> <div class="form" action='form.php'>The action attribute should be on the tag, not the Is this website for work, school/college/uni, or just your own interest in putting together a website. Firstly looking at your code you haven't closed your php off with "?>" (don't use the inverted commas please). The site below gives you information on Salted password hashing. This is a function you can add so that data written to your db will be encrypted first before being written to the hard disk drive (hdd). https://crackstation.net/hashing-security.htm#phpsourcecode If this is for a school or college project you're lecturer may NOT require you to do the hashing as they might want to see the data reaching the database. But for commercial use this is better to do for security purposes. Reason being if the db is compromised then it will take a long long time before anyone can crack the HASH code... unless they are a Dalek lol As camerongray has said there is also no validation here and you will have to change your code to use POST instead of GET. To validate your site you can use something like below, although you will have to tailor it to name of your form. Code: [Select]<script type="text/JavaScript"> function validate() { if(document.formOne.Email.value == "" || document.formOne.Password.value == "") { alert("Please fill in the boxes provided and try again "); return false; } else { parent.location="Login.php"; } } </script> Quote from: Base10 on October 25, 2014, 06:47:08 PM To validate your site you can use something like below, although you will have to tailor it to name of your form. While using Javascript is certainly a good idea to validate user input as it will minimize server calls but it's important to note that the user can do whatever they want with the Javascript therefore you cannot rely on it as total input validation. The backend in PHP will still have to validate all the inputs in the same way before it will finally allow the insert to take place.As camerongray has stated, quite rightly too as this is an important part to remember, that the PHP end will have to validate the inputs also before the insert takes place. Don't know why I never mentioned it lol. Thanks for pointing that out camerongray, much appreciated. This code is just an example and depending on the sql database you are using the syntax, again, will have to be tailored to suit... especially because my example is using MySQL. The code below should be on the .php page and not on the .html page. Code: [Select] // to check for the users details. mysql_select_db("the_name_of_your_database", $con); $Usercheck = $_POST['Email']; $Passcheck = $_POST['Password']; $checkUser = mysql_query("SELECT Email FROM yourtable WHERE Email = '$Usercheck'") or die(mysql_error()); $Check2 = mysql_num_rows($checkUser); //If the user isn't in your database this inserts the new user if ($Check2 == 0) mysql_query("INSERT INTO airusers (Email, Password) Values ('$Email','$Password')"); If the registered user is already registered and tries again you will need to code an alert to throw up; this is to tell them that they are using details that are already registered and a link to get them to a password page to reset their password for login. Quote i use xampp Are you going to be using Xampp on a live server that is on the web which could be targeted by hackers etc? Xampp is only really intended for testing of code on a staged sandbox of a server, and not really intended for a live server environment. If this is for school and just as a backbone to demonstrate your code etc its fine as long as offline mode of use, or used in a private network among trusted users etc, but if a system with xampp is placed out onto the DMZ or even a port forward to it from a private server environment, dont be surprised if a hacker gets in there and makes a mess of it all. There is info on the web on how to harden xampp installs for a live server connection, but its best to build it all up as secure as possible with the components that you will be using only ACTIVE etc, and each one manually installed and custom configured for security, vs using xampp with all features possible active to work no matter what someone is going to use xampp for and many points of entry or points of attack for hackers that would find it pretty quickly with probes and the first PLAN of attack would probably be to use the default authentication of xampp tested against it before moving on to other methods of attack. |
|
| 847. |
Solve : Looking to implement a math palette for equation editing on webpage? |
|
Answer» I've been looking to implement a web platform to simplify the process of writing up/storing my textbook homework solutions. |
|
| 848. |
Solve : Tweets on a Web page?? |
|
Answer» Hello |
|
| 849. |
Solve : Turnkey Sites that Support MIDI Files? |
|
Answer» You folks may not believe this but I'm simply trying to find a turnkey site (Tried Wix, Weebly, etc.) that I can sell MIDI files off of. What you won't believe is NONE, NOT ONE of these "conventional" sites support the MIDI format. Apparently, they have never heard of the term. What's even more amazing, and frustrating is the fact that MIDI's are only 1/10 the SIZE of MP3, and other comparable files. Another very unfortunate fact is neither Soundcloud, Spotify, or ITUNES SUPPORTS MIDI either. GEE, I thought SoundCloud was originally created to aide musicians. I mean, I'm thinking that if you have a team of musicians that want to collaborate wouldn't the support of MIDI files be KIND OF A GOOD IDEA? |
|
| 850. |
Solve : Download all files by name prefix? |
|
Answer» A website has like 180 files that have the same file STARTING string. Say 'File001_x_xxxxxxx ... The x PARTS change. I want to download all files that have that File001 as the starting of their NAME. Do you KNOW a way? I asked this in webdesign cause you guys could know some this stuff. |
|