php

Download the image from the url-PHP

There is a code that works on other sites, but does not want to work on this one. Does not download the image from this lin ... ts("https://rezka.ag/i/2013/6/2/xfb90a40b1e10lu13v58n.jpg")); Please help me download the image from the link on this site.

task about php OOP

Task from one site, find the sum of the salaries of two objects. $name, $age, $salary are declared private. You need to creat ... t find the amount of salaries, the code outputs 100020000 at the end still adding 0, help find the correct amount of salaries

Create an online store without a CMS

Good evening, comrades. The essence of the problem is as follows - you need to create a website, something like an online sto ... s or sites where this material is quite well chewed. Thank you in advance and apologize for the possibly incorrect question.

How to get a PHP class name

How do I get the name of the class that triggered the action in the parent class? Example: class ParentClass { function a ... $parentClass->action(); // ParentClass $childClass = new ChildClass(); $childClass->action(); // ChildClass

The catch block doesn't work (PHP, the try catch construct)

Of course, I have an elementary question, but I can't understand the principle of the try-catch construction in php. In gene ... cho 'Сработал блок try'; } catch(Exception $e) { echo 'Сработал блок Catch - Сообщение: ' .$e->getMessage(); } ?>

Configuring apache 2.0.64 and PHP 5.2.17

Hello, please help with the setup of Apache 2.0.64 и PHP 5.2.17.Here's how I set it up: htaccess: Options Indexes FollowSymLi ... AddType application/x-httpd-php .php I turn it off - it works.Waiting for an answer, thank you very much.

Mysqli set charset () refuses to work

Hello. I can't figure out why the function refuses to work. $db->set_charset("utf-8"); Returns false for some reason. The ... ding refuses to change. I tried for the sake of experiment to change to some windows-1251 - also does not work. Where to dig?

When the page loads, a blank page is displayed

I have this problem with one site, I go to the site and start clicking on the links-sometimes the page is displayed normally, ... (array($database->connection, 'real_escape_string'), $_COOKIE); $_COOKIE = array_map('htmlspecialchars', $_COOKIE); ?>

Transferring data to a modal window from Bootstrap

Help with the implementation of data transfer to the modal window. There is a template container that dynamically receives da ... contents of the container and the modal window. Help me correctly implement data transfer. P.S. I write in pure JavaScript.

How to install the php-xml module on hosting with access via ips manager?

There is a website on wordpress where to import data using the wpallimport plugin. However, I get the inability to load the e ... do this yourself or contact your system administrator. " How can I install it myself? Hosting with access by ips manager ?

How do I check the mail () PHP function?

How can I check the PHP mail () function without sending an email to a verification Email? To display a message like "Sent" (if the function is working), and "Not sent" if the function is not working.

The mail() function on the server.

I'm trying to add a e-mail address check to the registration. I added it, but I can't check if it works. I don't get any mess ... that you need to enable the mail() function on your server. I don't know how to do it. Help. Installed a local server Apache.

What are abstract PHP classes and interfaces for?

An example from life if you can =) It seems that you can write classes without them Where can they be applied? Here I foun ... n descendants After all, in fact, an ordinary class is no different from an abstract one, then why do you need it (abstract)?

Sending an email with a picture

You need to send a message with an image: Display an illustration in the message and hang an html map on it. Function to s ... link to an image in img? I tried to just substitute the path to the image on the Internet, but Outlook does not display it.

Data exchange between JavaScript and PostgreSQL (WITHOUT node.js)

Please tell me how you can "make friends" with JS and PG? As far as I understand, directly from the browser without using Nod ... tly passes them to JS for their corresponding output on the front?! I will be glad to receive answers and bright thoughts )))

Decode the ISO-8859-1 string to UTF-8

There is a $string that contains inside: Âàëåðèé Ìåëàäçå Îêåàí È Òðè Ðåêè (Feat. Âèà Ãðà) You can't decode it to UTF-8 to ... ng); iconv ('Windows-1251', 'UTF-8', $string); Also tried the utf8_encode () function.. To no avail. I hope for your help.

How do I check the relative or absolute path of php?

There is an array of paths to the images. Some paths are absolute and others are relative. How can I choose only absolute values? With www and http?

Windows-1251 vs UTF-8

I create websites using my own PHP engine developed somewhere in 2007, which has since undergone all sorts of modifications a ... there any advantage at all? And another question, please tell me how to correctly switch to UTF-8, including MySQL database?

Checking an e-mail for existence

How can I determine the existence of an e-mail in php? Of course, you can send requests via this service curl. But I'd like to know how they did it.