Home > Download >  Library download

  • Add text watermark to existing pictures php code class, This class library only supports text watermark for the time being, the location is the lower right corner, and the color is random. Calling method: 1. Introduce the class library at the top of the file that needs to be watermarked: include_once 'imageClass.php'; 2. Declare a new class: $tpl=new image_fu; 3. Provide parameters for the image watermark: $tpl->img(picture path, watermark text, font path, font size, font angle); For example: $tpl->img('abc.jpg','This is watermark text','ziti.ttf',30,0)

    Picture library16042017-04-07
  • Introducing a php application curl extension to capture the web page class. The information obtained is returned in the form of a file stream instead of being output directly. Regular mode capture, capture the title, capture the article content, get capture data, and finally conduct a test.

    curl class library90572017-04-07
  • Introducing a email sending php class, Using the mail() function to send emails requires a mail server that can send emails without SMTP authentication. But today's SMTP mail servers basically require authentication, so if you want to use it to send emails, you can only set up a local SMTP server that does not require authentication.

    Mail class library48222017-04-07
  • Introducing a suitable for various database link classes, Returns an array generated based on the rows obtained from the result set, Return the object generated based on the obtained rows, Get the number of record rows affected by the previous MySQL operation, Get the real IP address of the client. ##

    Database operation class17112017-04-07
  • Introduce a php export excel class, set the encoding, title bar, content bar, page encoding, Excel file encoding , Generate and automatically download Excel, title bar array, content array.

    Other libraries20562017-04-07
  • Mainly introduces the Cookies operation class implemented by PHP and its usage examples, including common operations such as saving, reading, updating and clearing cookies, which is of great practical value when cookie operations are required. The functions are as follows: 1. Save, read, update, and clear cookie data. 2. Prefix can be set. 3. Forced timeout control. 4.Cookies data can be strings, arrays, objects, etc.

    Other libraries13642017-04-06
  • Mainly introduces the introduction of type constraints in PHP. Type constraints can be implemented in PHP class methods and functions, but parameters can only specify four types: class, array, interface, and callable. Parameters can default to NULL, but PHP cannot Constraint scalar types or other types, friends in need can refer to it.

    Security class library43252017-04-01
  • Mainly introduces examples of php implementing the httpclient class. Friends who need it can refer to it. buffer gets the returned string, referer sets HTTP_REFERER URL, response is the header information of the server response, request is the header information sent to the server. ##

    Other libraries16562017-04-01
  • The PHP class provided is used to complete image scaling and watermark adding. When the watermark image exceeds the target image size, the watermark image can automatically adapt to the target image and shrink. When the watermark image exceeds the target image size, the watermark image can automatically adapt to the target. The picture has been reduced, friends in need can refer to it.

    Picture library16072017-04-01
  • A php article calling class code, is convenient for calling the article list and content, column number 0, which can be a column number, or Multiple columns. The sorting field is sorted by the id field by default. Only calls 0 with pictures, 1 means only calls with pictures In the figure, only calls 0 with video, and 1 means only calls video.

    Other libraries17382017-04-01
  • Mainly introduces the usage of various interceptors in the PHP class, and analyzes the usage of common interceptors __get and __set in PHP with examples, __get( $property ) Called when accessing undefined properties __set( $property , $value ) assigns a value when calling an undefined property

    Security class library50652017-04-01
  • A simple php session class, using session. Approximate usage example : log in page: $session = session::getObject(); $session->set_ture(); // if $row['password'] == next page : log out : $session = session::getObject(); $session->end_session(); Return by get_status() whether the current user is logged in effectively

    Other libraries11662017-04-01