Skip to content

Tag: php

crawl and copy another sites content

I want to crawl and copy another site content (just text) and find specific content download links between specific tags . how can I do this? i am using Cpanel and Php Answer I am not sure about your question, but I think you want to do scrapping. Using PHP, you can use cURL for instance. That will load an

Splitting of array into multiple arrays

I have an array of dynamic length L1. I need to split this array into L2 number of arrays each having LEN[i] numbers from the original array. I have tried a lot of ways but nothing seems to be working. Any help would be greatly appreciated. Answer If you need such a variable array length of chunks then you ca…

Laravel 5 command – Mandatory options

I am trying to write a laravel command but I can’t have the options to be mandatory. I do understand that the concept of option is being “optional” but I’d like to have a command in which it is clear which input you are inserting and in no particular order. i.e. I would like to achieve…

XAMPP send mail not working PHP

here are the details [php.ini] [sendmail.ini] i have checked smtp settings properly, but its still not working please suggest. Answer You have to configure SMTP on your server You can use the googles free SMTP server Pretty easy to setup too. You can try below as well. You can send mail from localhost with se…