Member Avatar

I want to order a website for my online shop, but I have a question: who is better to hire, a freelancer or a company? I can't make the site I want alone because I don't have much experience in creating sites. I think hiring companies is expensive. I don't even know if it makes sense to overpay. I don't need a fancy website. Simple, but beautiful site which will be information about my business. So what do you recommend?

Member Avatar
2
48
Member Avatar

I have a download section in my index.php that I'd like to add a download counter to but have no idea how to accomplish this. The existing code works perfectly but I'd like to know how many times the file is downloaded. Would prefer not to use a database. <!-- DOWNLOAD --> <div id="download" class="stylized"> <div "myform"> <div class="container"> <div class="row"> <div class="download"> <br /><br> <h1><center>FoxClone Download Page</center></h1> <?php $files = glob('download/*.iso'); $file = $files[count($files) -1]; $info = pathinfo($file); $filename = basename($file); $filename = ltrim($filename,'/'); $md5file = md5_file($file); ?> <div class="container"> <div class="divL"> <h3>Get the "<?php echo "{$filename}";?>" file (approx. …

Member Avatar
1
23
Member Avatar

What is the difference between setting a cookie domain to `www.site.com` vs `.www.site.com` when I want to limit a cookie to the www subdomain?

Member Avatar
0
25
Member Avatar

My contact form starts with: <form id="form1" method="POST" action="mail.php"> I'd like to replace the last line in my contact form: <button type="submit" value="Send" style="margin-top:15px; margin-left: 500px; text-align: center;">Send Email</button> with one that contains <img src="images/button_send-email.png" alt="Email"> but have no idea what it should look like. I tried <a href="mail.php"><img src="images/button_read-the-file.png" alt=""></a> but the button doesn't even show. Please teach me how this should be done. Thanks in advance, Larry

Member Avatar
0
20
Member Avatar

The validation section of my contact.php page is sending the user back to my index.php instead of staying on the contacts.php page so the user can correct the reported error. How can I fix this? My contact.php code follows: <?php if(isset($_POST['submit'])) { $name = $_POST['name']; $visitor_email = $_POST['email']; $message = $_POST['message']; $type = $_POST['type']; //Validate first if(empty($name)||empty($visitor_email)||empty($type)||empty($message)) { echo "All fields are mandatory!"; /* exit; */ } if(IsInjected($visitor_email)) { echo "Bad email value!"; /* exit; */ } $subject = $_POST['type']; $subject2 = "Copy of email sent to foxclone.com"; $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $formcontent="From: $name\r\nEmail: $email\r\nMessage: …

Member Avatar
0
30
Member Avatar

My code executes as follow - 1) a Search page is loaded where session was already started, var-dump() shows the correct session info like username etc. 2) User enters a search value in a 3rd party script search box that forms part of my search page, I have no control over this script. 3) User presses the enter button, my javascript listens for the press event - key13. 4) The search criteria is then passed to a PHP page that adds values to the current session, which is then returned to the search page. 5)This is where the problem arises, …

Member Avatar
0
29
Member Avatar

hi all iam working as software developer i wish to create my blog website using asp.net and C# so any one have idea so please help me in this Please thak you in advance

Member Avatar
0
35
Member Avatar

I want to make this table with HTML and CSS but somehow the image cant appear in the browser... Can you help me? https://prnt.sc/rmo2xl .box-border { display: inline-block; border: 1px solid; height: 80px; width: 100%; } .image-position { display: inline-block; } <div class="box-border"> <div class="image-position"> <img src="igniteLogoImage.png" alt="asdasd" width="42" height="42"> </div> <span>Gurcino Team</span> <span>Pool Builders</span> <span>Pricing Options</span> </div>

Member Avatar
0
17
Member Avatar

I'm creating a webpage where the user will be able to download an .iso file. The version of the iso will change. For example: xxxx.1.iso will become xxxx.2.iso when the iso is updated. How do I code the download button so that I don't need to re-code the button when the version changes. If I were to create a download subdirectory, and the .iso file was kept there do you think this would work if the only file in the download subdirectory is the .iso file. <?php $files = array_slice(scandir('/download/'), 2); ?> <div class="navbar-custom"> <a class="btn-solid-lg page-scroll" href="/Download/" download=$files>Download the …

Member Avatar
1
159
Member Avatar

I'm creating this page (http://www.50allstars.com/2018/05/test-menu.html) and would like to be able to directly link to a particular tab if need be. I've found a site (https://css-tricks.com/better-linkable-tabs/) that says a way for this to be done, but I'm not sure how to implement it or if there's a more simple & elegant solution out there. (https://css-tricks.com/examples/OrganicTabsReplaceState/?tab=jquerytuts2) Any help would be greatly appreciated. Thanks!

Member Avatar
0
39
Member Avatar

var value = 10/2; I want to take length of the variable value. How to take it?

Member Avatar
0
29
Member Avatar

How important is Unit Testing taken by employers, is it something that every developer should have as one of their skills, do some jobs require it more than others or is a simple test like handing out a piece of software to be used by friends family etc sufficient enough.

Member Avatar
0
26
Member Avatar

Does anyone know of a good SVG editor that allows you to easily edit the document in text as well as visually. I have been using Inkscape, but the XML viewer/editor component is less then ideal, plus it adds alot of crud to the resulting XML. I attempted SVG Editor for VS Code, but that was quite slow and also didn't easly allow editing of objects that are inside of groups.

Member Avatar
0
14
Member Avatar

hi good day guys, i'm having a trouble with fetching the data i have a list of folder outside like in the picture below ![p1.png](/attachments/large/4/c49da0c2676b0f2d0f5d9acb7afc68bd.png) when i click the first folder the picture below shows the output it has duplicates ![p2.png](/attachments/large/4/9e1c201e5a2edfed6e83663b41116db6.png) i want to know what's the problem with my code why it duplicates the folders. can someone help me out. please... thank you in advance here's my code ![c2.png](/attachments/large/4/5bdfa3d4496764c67c4a61192d59de0d.png) ![c1.png](/attachments/large/4/6d5667c4f98cdcdd9487afb945c6278d.png)

1
21
Member Avatar

Hello i want to upload an audio file(.mp3). The file is uploaded on the folder, the value is inserted on the db (MySql) so far so good. But when i try to play the file on the uploads folder is says its corrupted or extension is wrong.the value is not base64 is the original name of the file html <form [formGroup]="form" (ngSubmit)="onSubmit()"> <input type="file" name="avatar" (change)="onFileSelect($event)" /> <button type="submit">Upload</button> </form> ts onSubmit() { const formData = new FormData(); formData.append('avatar', this.form.get('avatar').value); this.group_id = 0; this.media.tags = this.hashes; this.media.audio = formData; this.media.browser = true; this.userData.uploadAudio(this.media, this.group_id ).subscribe( (res) => { this.uploadResponse = …

0
10
Member Avatar

I've been working on a project using Morris JS and since there was no solution out there for the Y axis scaling that I could find I wanted to posted where I got. Note you will need [morris JS](https://morrisjs.github.io/morris.js/) & [Moment JS](https://momentjs.com/) to run it. You just need a div with the id "home_chart_0" and it should run. It rounds the max value up, compares it to the min value rounded down and divides it by 10 and spreads over 10 lines. The properties "yLabelFormat" & "numLines" in Morris JS are not documented but exist. Let me know if you …

0
6
Member Avatar

in javascript I got two dates. How to find the difference between two dates. var first = document.getElemetById("first_date").value; var last = document.getElemetById("last_date").value; the date format is mm/dd/yyyy(07/19/2015); how to find?

Member Avatar
0
35
Member Avatar

I'm trying to use CSS as so: <link rel="stylesheet" media="screen and (max-width: 991.98px)" href="/files/mobile_css/daniweb.css" type="text/css"> <link rel="stylesheet" media="screen and (min-width: 992px)" href="/files/css/daniweb.css" type="text/css"> I want to load one CSS file for our mobile layout and a different one for our desktop layout. The problem is the web browser always downloads both files, which completely eliminates the performance advantages of having a more lightweight mobile CSS. What I'm thinking of doing is using a `<link rel>` to download all of the CSS that's common between mobile and desktop. Then, conditionally, via javascript, injecting CSS via @import (I guess?) to load the …

Member Avatar
3
168
Member Avatar

I have always known that urlencode() encodes spaces as plus signs and rawurlencode encodes spaces as %20. However, I always struggled to know when to use which. I just finally learned today that you should use rawurlencode() if encoding URI paths and urlencode() if encoding query strings. Who woulda thunk it would be that simple?! :-P

1
14
Member Avatar

Our CSS and JS files are not being re-downloaded by web browsers when we update them. The response headers look like this: cache-control: max-age=7776000 content-encoding: gzip content-type: text/css; charset=UTF-8 date: Sat, 01 Feb 2020 02:41:59 GMT etag: W/"5e34c19d-68a08" expires: Fri, 01 May 2020 02:41:59 GMT last-modified: Sat, 01 Feb 2020 00:09:01 GMT server: nginx/1.16.1 status: 200 vary: Accept-Encoding We want web browsers to cache them for 3 months, but we want them to expire the cache prematurely if the files have been modified. Shouldn't the ETag modify itself when the files are updated, and therefore when the Etag is different …

0
20
Member Avatar

A client would like me to implement spreadsheet-style form traversal using the arrow keys on a keyboard, i.e. left arrow would submit the entry for that field and then move left by one field on the form. The form is managed by my PHP code. Does anyone have a [U]browser-independent[/U] method of doing this please? All input fields in the form are single line text fields.

Member Avatar
0
25
Member Avatar

Can anyone suggest me which one is a better platform for e commerce website development?

Member Avatar
6
256
Member Avatar

Hey i am student and quite inexperienced in coding. Therefore i hope somebody can help me how I can create a Multibar chart. in the appendix I have attached a picture how it should looks like. I tried it for 2 weeks now and I still have no idea. It would be very nice if somebody have an idea how it could work. Thank you in advance

Member Avatar
1
20
Member Avatar

Google PageSpeed Insights indicates a score of 90+. However, the same pages still fall into the slow speed category in Google Search Console Chrome UX report. It says FCP is longer than 3 seconds (3.1s average). What is some low hanging fruit I can do to help real world performance? We serve static content via a cookieless subdomain but using a third-party CDN is cost-prohibitive.

Member Avatar
0
49
Member Avatar

How to return value of longtide and latitude from json using angular 7? my url as following : http://192.168.7.xxx:9200/location/_doc/27737 json returned from url above is : {"_index":"location","_type":"_doc","_id":"27737","_version":1,"_seq_no":5577,"_primary_term":1,"found":true,"_source":{"Locid":27737,"GPS1":"25.0173, 121.462","GPS2":"25°01'02.2\"N 121°27'44.8\"E","CompanyID":1005070,"ads":"142 Sec. 1, HsIn Nan Rd cung Ko Dšst, New Taipei City, Taiwan","Crid":75,"con":"Taiwan","Ctid":5894,"Cn":"Zhonghe District","pushdate":"2019-12-26T03:38:20.883"}} I need to return two values from GPS1 : longtiude : 25.0173 latitude : 121.462 Based on LocationId parameter :27737 So that I need to create service take location id parameters and return two values of GPS1 Longtude And latitude then set values returned of longtude and latitude on ngOinInit Event How to create service then call it …

Member Avatar
1
50
Member Avatar

How can I perform both ajax and form post sametime? currently the code only sends one that is called first and dont call the second one

Member Avatar
0
53
Member Avatar

I'd like for my page (https://fiftyallstars.com/tour.html) to load, and for the TOUR to start automatically. Right now visitors must click a button with id "starttour" Here's what I've added so far, but it doesn't do the trick: <script> $(function () { window.onload = $('#starttour').click(); }); </script> <a class="start-tour" href="#" id="starttour"><span class="two skinny" style="margin:10px 5px; width:290px; font-weight:bold; letter-spacing:4px;"><i class="fa fa-photo animated faa-pulse faa-slow"></i> Take a Detailed Tour</span></a> Thanks for any help whatsoever.

Member Avatar
0
45
Member Avatar

I am trying to add Jquery validation to the comments page in WordPress. Everything works except it won't post the fields. May someone help? FUNCTIONS PAGE function comment_validation_init() { if(is_single() && comments_open() ) { ?> <script type="text/javascript"> jQuery(document).ready(function() { jQuery('#commentform').bootstrapValidator({ message: 'This value is not valid', feedbackIcons: { valid: 'glyphicon glyphicon-ok', invalid: 'glyphicon glyphicon-remove', validating: 'glyphicon glyphicon-refresh' }, fields: { author: { validators: { notEmpty: { message: 'Please Enter Your Name' } } }, email: { validators: { notEmpty: { message: 'Please Enter Your Email' }, emailAddress: { message: 'This Is Not A Valid Email Address' } } }, comment: …

Member Avatar
0
42
Member Avatar

Hi, I have been trying to code an timetable which allows timeslots to be booked. What I am finding difficult is the schedule settings. So three things, "schedule settings", "find common slots" and "make booking". The "find common slots" and "make booking" seems to almost work. But "schedule settings" is more difficult. The idea: The timetable is a typical one with days of the week on the top and hours of the day on the left side. Ofcourse bookings should be possible by choosing month and year also. There are three paricipants. Two of these have a schedule. The third …

Member Avatar
-1
54
Member Avatar

So I'm faced with a CSS mystery. Developing a project, came across an unexpected result, and can't explain it, nor have I been able to come up with a workaround. First I define 8 custom properties properties on a custom selector <b->. Then I conditionally (based on classes defined on the <html> element) override 3 of those propertiess with calc() formulas. Then, I use those properties to define some more properties, again using calc(). Finally, I use the result of the most complex calculation as the width of the <b-> element and a nested <iframe> element. But the calculation only …

Member Avatar
1
40

The End.