Skip to content
Advertisement

Tag: web

type ‘_InternalLinkedHashMap’ is not a subtype of type ‘FutureOr<List>’

I have a Problem with my json.decode. I want to get some data from my website but when my website says {“Number”:5} i only get this error (type ‘_InternalLinkedHashMap<String, dynamic>’ is not a subtype of type ‘FutureOr<List>’). However if my website says string{“Number”:5} i get the correct output and this error FormatException: Unexpected character (at character 1). Here is my

upload image by refreshing page of web site

i write php code that upload image from client to host and site and my problem is if i refresh the page ,the last file going to upload again and its going dupplicate and if refresh again this problem …

Cookie is not recognised in PHP

I get Notice: Undefined index: i during the first reload of page with cookies if( (isset($_COOKIE[“i”])) && !empty($_COOKIE[“i”]) ){ setcookie(“i”,$_COOKIE[“i”]+1); } else{ …

How to make a delete request with Laravel

I am not using resource controller. The route: The controller function: The call: The program returns a MethodNotAllowedHttpException. Thank you. Answer You may try this (Notice the hidden _method input): Check Form Method Spoofing. Update: In the latest versions of Laravel, it’s possible to use blade directives for csrf and method in the form, for example:

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

Website Scraping from DoMDocument using php

I have a php code that could extract the categories and display them. However, I still can’t extract the numbers that goes along with it too(without the bracket). Need to be separated between the categories and number(not extract together). Maybe do another for loop using Regex, etc… This is the code: Is there any way I could do that? Thanks!

Advertisement