Skip to content

Tag: php

How to validate dimensions and format of an image URL in PHP?

My system does not host images on my server, I am using the one APIfrom imgurso it is only valid that the imput field where I insert the image URL is not empty: But I need to validate that path of that image, which has minimum dimensions 400x400may be more but it cannot be less, image formats allowed png, jpe…

Moodle Events API

I’m trying to develop a plugin for Moodle, using Events API that will send out emails when new blog post is created. I created my plugin with the following structure: blog_observer/ ├── classes │ └──…

Edit The Src Of a Image

HTML Code Whta I Need: I just want to remove (-300×203) from the src. Is this possible using js or PHP or any other language I want to implement this code in WordPress? Answer Put this script on page