Jump to content
Killersites Community

All Activity

This stream auto-updates     

  1. Yesterday
  2. Last week
  3. Here's How to Download All the Data Apple Collects About You https://thehackernews.com/2018/05/download-apple-account-data.html
  4. AlexanderApostolov

    Using Git with MAMP, XAMPP etc.

    Stefan, do you have a video for setting up the computer for professional jobs later on, or one that you can recommend?
  5. Thanks Chuck. After reading this I tried the site in a different browser and it works. I guess I hibernated my desktop too many times in the last days.
  6. administrator

    Using Git with MAMP, XAMPP etc.

    Yep. Use whatever you are most comfortable with. You don't have to use MAMP, we just demod with it, to keep it simple. One thing at a time. But if you know Git .. use it.
  7. muriloescher

    Why does my href tag not work?

    I just deleted everything and started from scratch and it worked. Thanks!
  8. muriloescher

    Why does my href tag not work?

    Yes, they are all in the same folder, which is on my desktop. And I renamed the files, it was weird indeed. qualifications.html index.html hobbies.html contact.html
  9. Andrea

    Why does my href tag not work?

    Do you have all these files in the same folder? I'm not sure why the links here in your post show up as html.html - that's one too many
  10. AlexanderApostolov

    Using Git with MAMP, XAMPP etc.

    I'm new to PHPland, but not to Git. I use version control all the time with my NodeJS/React apps, but I'm thrown off a bit with having to use a dedicated folder inside MAMP to run my PHP site during the CRUD Basics with MySQLi & PHP course. The way I'm used to doing things is I have a large GitHub folder with all my projects inside of it, and I would just `cd` into the project folder with my terminal and run a localhost server with a script. Is MAMP just a GUI tool for noobs who avoid the terminal? What are the best practices here? Do I `git init` inside the MAMP/htdocs directory or better yet, inside MAMP/htdocs/projectFolder ? Or do I change MAMP's default location for htdocs with each new project? Thanks, Alex
  11. muriloescher

    Why does my href tag not work?

    Hey, I am in the beginning of the IWD course (Chapter 4 - Lesson 3). I tried to follow Stef´s example, and create a simple website of my own. However, my links do not work. Why? My html code pages are attached. This is driving me crazy. I changed their folder, and created one on my desktop, but it still does not work. contact.html.html hobbies.html.html index.html.html qualifications.html.html
  12. administrator

    How Can I Hide The Download URL? 

    Hmm .... there are a few ways. The easiest is to have a long URL. Another more secure solution is to use php to stream the pdf via file object functions built into php. But that I think would be overkill. Just have a long url and change it every so often. So the url could be: yoursites.com/squeezer/product/random/thepdf.pdf
  13. administrator

    SHOPIFY or PAY DEVELOPER..

    Always better to start a new business on the cheap, to see if the business model works. With turnkey solutions like shopify, there are always compromises, but it is probably still worth working around these limitations before building from scratch.
  14. jisharaletta

    Website designing Indore

    Web designing encompasses many different skills and disciplines in the production and maintenance of websites and include different areas of Web design like web graphic design, interface design, authoring, including standardised code and proprietary software, user experience design, and search engine optimization. [Link removed - LSW]
  15. thevoyager

    SHOPIFY or PAY DEVELOPER..

    Hi thanks for the reply. To my knowledge it does not include hosting no. I keep reading, 'invest as little as possible in your new business until you know you are going to make money'. To be fair I have already generated 2 jobs (it's a service based offer) without a site, but know the siteneeds to be crucial element in securing new business. What made me jump is when he said this: "if there is a genuine issue with work I have done I will fix it. If the issue is with the theme design this is not my responsibility to fix within to proposed 2 days. As discussed I will make the header white with black text, but if there are other areas of the theme that you are not happy with this will not be my responsibility to re-design/re-build as part of the agreed 2 days, we can work on other areas but it will need to be charged separately to the 2 days. Please check and test the proposed them before choosing it as the theme to use, your site will look like the proposed theme. If you are not happy with this theme we need to choose another one. I just want to be clear about this one, because I have not costed to create a custom theme for you. Please play around with the proposed theme and make sure you are happy with it. I imagine it like buying an Ikea table... You buy the ikea table from, well, Ikea, then you also buy a nice table cloth and 'dress it up' a little. This is basically what is going on here? A lot of industries have been democrotised with technology now providing consumers with all the power they need, photography, film making, graphic design and yes web design. Like I said I am not a jack the plumber, I know a little, just the idea of someone dressing my table for £500 seems a little steep in this day and age, especially when I know it's a case of putting a table cloth over a pre existing table. OK so there are some finer coding elements that will need to be addressed, btu surly if he is using Shopify that is all taken care of? The big issue was installing PRICE BREAKS, my service based website encourages buyers to buy more with a drop in price when say you buy over 100 products, and so on, this is the bit that worried m, gettig it right, and adding options that would change the price, in drop down menues, like 'how many colours *more than 4 colours would be an extra 0.04p on each product etc). How does this sound so far?
  16. grigione

    Merge PHP files and Password Protect

    Hello it's possible merge all files: new.php,delete.php,edit.php,etc etc into one: view.php and protect access to it with password? Thanks [Edited into it's own topic - LSW]
  17. LSW

    SHOPIFY or PAY DEVELOPER..

    If it is Drag n' Drop, do it yourself. I certainly would not pay someone calling themselves a web developer for that. Those sites exists to allow you to do it yourself without a professional involved. Those of us who actually went to school to learn web design and what goes into it sort of cringe at the idea. You have no idea about the code background either, is it accessible for those with disabilities? Autistic, poor vision/blind, dyslexic? Will it be secure or leave you open to legal action under the new EU GDPR regulations? Off the top, to me it sounds like a lot of money for something you can do and who is to say this person even knows what they are really doing? Do they know CSS and HTML5 enough to modify it? Fix it when it gets broken? I feel someone who does not know how to code a site by hand has no business using drag n' drop. If you can do it by hand and do it that way to speed it up and you trust the software to do almost a good a job as you would by hand... then it is forgivable. Does that price include hosting? That makes a difference as well.
  18. Hi.. Looking to get a website built soon, found a developer I am happy with, but he is using Shopify to build it on.. I know a little about how it all works, I am no clueless plumber or mechanic who needs a website building.. To my knowledge he is basically just getting a theme and placing it over an alreadyt built framework, drag n drop, the apparently hardest part is incorporating a price break structure, so the more you buy the more the price comes down, but he has even shown me the drag n drop tool that does this. For a fully functioning website that is ready to go he saif £500. A lot of moeny, maybe not for some websites but yes to me a lot. A part of me just wants to pay it and get it moving, but it seems like a lot of money for what may just be a days work, he has said 2 days but I am unsure with what he has proposed would take 2 days? I know that I need to prove I have a business model before spending so much on a site. And maybe I am better off hashing together a site and then when I know I have an income to then splash the cash. It is a business to business website, though possibly be used to sell on a retail level. Any ideas on this be great to hear. Thanks.
  19. Hello, I would like to explain an easy way As a social media marketer and having worked on every possible social media platform, I would say, if you are ONLY relying on advertising on Facebook, it's not the right way to go. And I maintain this for any social media platform. When it comes to social media, you need to support your ad initiatives with interesting content. Just imagine the amount of pages that users on Facebook like on a daily basis. For your page content to stand out, you need to take into account the time at which you post and then look at how interesting your content is for your target set. The new Facebook Insights rolled out last week should help you answer the above questions. As far as getting likes from age groups you are not targeting is concerned, make sure that if you are running sponsored stories, you have your targeting criterion well in place. Make sure you do age wise targeting there as well otherwise you will end up showing ads to all people who are friends of people who like your page. This may be one of the reasons why you are seeing likes from a different age set. Hope this will helps to you! Regards, Techtiq Solutions,
  20. Earlier
  21. administrator

    Python 3 Course: Treasure Hunt Game

    Not a version problem. The error is telling you: you are sending a function as the argument when it is expecting a string or number.
  22. Php Buddies, Look at these 2 updates. They both succeed in fetching the php manual page but fail to fetch the yahoo homepage. Why is that ? The 2nd script is like the 1st one except a small change. Look at the commented-out parts in script 2 to see the difference. The added code comes after the commented-out code part. SCRIPT 1 <?php //HALF WORKING include('simple_html_dom.php'); $url = 'http://php.net/manual-lookup.php?pattern=str_get_html&scope=quickref'; // WORKS ON URL //$url = 'https://yahoo.com'; // FAILS ON URL $curl = curl_init($url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); $response_string = curl_exec($curl); $html = str_get_html($response_string); //to fetch all hyperlinks from a webpage $links = array(); foreach($html->find('a') as $a) { $links[] = $a->href; } print_r($links); echo "<br />"; ?> SCRIPT 2 <?php //HALF WORKING include('simple_html_dom.php'); $url = 'http://php.net/manual-lookup.php?pattern=str_get_html&scope=quickref'; // WORKS ON URL //$url = 'https://yahoo.com'; // FAILS ON URL $curl = curl_init($url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); $response_string = curl_exec($curl); $html = str_get_html($response_string); /* //to fetch all hyperlinks from a webpage $links = array(); foreach($html->find('a') as $a) { $links[] = $a->href; } print_r($links); echo "<br />"; */ // Hide HTML warnings libxml_use_internal_errors(true); $dom = new DOMDocument; if($dom->loadHTML($html, LIBXML_NOWARNING)){ // echo Links and their anchor text echo '<pre>'; echo "Link\tAnchor\n"; foreach($dom->getElementsByTagName('a') as $link) { $href = $link->getAttribute('href'); $anchor = $link->nodeValue; echo $href,"\t",$anchor,"\n"; } echo '</pre>'; }else{ echo "Failed to load html."; } ?> Don't forget my previous post! Cheers!
  23. I did a search on the php manual for str_get_html to be sure what the function does. But, I am shown no results. And so, I ask: Just what does it do ?
  24. I am told: "file_get_html is a special function from simple_html_dom library. If you open source code for simple_html_dom you will see that file_get_html() does a lot of things that your curl replacement does not. That's why you get your error." Anyway, folks, I really don't wanna be using this limited capacity file_get_html() and so let's replace it with cURL. I tried my best in giving a shot at cURL here. What-about you ? Care to show how to fix this thingY ?
  25. UPDATE: I have been given this sample code just now ... Possible solution with str_get_html: $url = 'https://www.yahoo.com'; $curl = curl_init($url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); $response_string = curl_exec($curl); $html = str_get_html($response_string); //to fetch all hyperlinks from a webpage $links = array(); foreach($html->find('a') as $a) { $links[] = $a->href; } print_r($links); echo "<br />"; Gonna experiment with it. Just sharing it here for other future newbies!
  26. I just replaced: //$html = file_get_html('http://nimishprabhu.com'); with: $url = 'https://www.yahoo.com'; $curl = curl_init($url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); $html = curl_exec($curl); That is all! That should not result in that error! :eek:
  27. Php Buddies, What I am trying to do is learn to build a simple web crawler. So at first, I will feed it a url to start with. It will then fetch that page and extract all the links into a single array. Then it will fetch each of those links pages and extract all their links into a single array likewise. It will do this until it reaches it's max link deep level. Here is how I coded it: <?php include('simple_html_dom.php'); $current_link_crawling_level = 0; $link_crawling_level_max = 2 if($current_link_crawling_level == $link_crawling_level_max) { exit(); } else { $url = 'https://www.yahoo.com'; $curl = curl_init($url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); $html = curl_exec($curl); $current_link_crawling_level++; //to fetch all hyperlinks from the webpage $links = array(); foreach($html->find('a') as $a) { $links[] = $a->href; echo "Value: $value<br />\n"; print_r($links); $url = '$value'; $curl = curl_init($value); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); $html = curl_exec($curl); //to fetch all hyperlinks from the webpage $links = array(); foreach($html->find('a') as $a) { $links[] = $a->href; echo "Value: $value<br />\n"; print_r($links); $current_link_crawling_level++; } echo "Value: $value<br />\n"; print_r($links); } ?> I have a feeling I got confused and messed it up in the foreach loops. Nestled too much. Is that the case ? Hint where I went wrong. Unable to test the script as I have to first sort out this error: Fatal error: Uncaught Error: Call to a member function find() on string in C:\xampp\h After that, I will be able to test it. Anyway, just looking at the script, you think I got it right or what ? Thanks
  28. Hello, I've been going through the videos 40 to 44 and writing all the code for the Treasure Hunt Game. I keep getting an error message: TypeError: int() argument must be a string, a bytes-like object or a number, not 'function' random_cave = random.randint(1,2) if random_cave == int(chose_cave): print("---->you found treasure!") else: print("---->you were eaten by a monster") Any ideas? Is this just a version problem? Using 3.6.5 Regards, Julien
  1. Load more activity
×