Author Archives: Admin

Fatal error: Call to undefined function curl_init() Windows

If you are having the error Call to undefined function curl_init() in Windows, then you have to simply modify a line in apache’s php.ini file.

Goto your xaampfolder,

find out php.ini in bin folder

and open it in a text editor.

Find the text

extension=php_curl.dll

and remove the semi-colon at the start.

Now that line would look like:

extension=php_curl.dll

(without semi-colon on start)

Save the file, and restart your Apache Server. And the problem is solved.

structure of stored procedures

Defining procedures or functions is a two-step process:

Define the name of the procedure or function, and set its parameters.
Define the body of the procedure or function between BEGIN and END statements.

Here’s the basic syntax:

CREATE PROCEDURE procedure_name ([procedure_parameter[,…]])
routine_body

The procedure_parameter is a list of parameters and their directions, composed using the following arguments:

IN: Passes a value into a procedure. The procedure can modify the value, but the modification is not visible to the caller when the procedure returns.
OUT: Passes a value from the procedure back to the caller. The parameter’s initial value in the procedure is NULL; the procedure usually changes that value, and the final value is visible to the caller when the procedure returns.
INOUT: The caller initializes an INOUT parameter, but the procedure can modify the value, and the final value is visible to the caller when the procedure returns.

validating subdomains in plesk pa packages

while creating pacakage,in eclipse settings tab add regex field,in regexfield add the following code.

^[0-9a-zA-Z][0-9a-zA-Z-]{1,61}[0-9a-zA-Z]$

tag:validating subdomain in APS package,Validation in APS package.

15)how to identify a package is plesk or PA related

if htdocs folder is there means that package is plesk related package.
but package with htdocs folder will work in PA also

Build automaticaly link in eclipse

if we select buildautomaticaly link in eclipse package will build while saving(Ctrl+s).but in this case old package will overwrite

so better method as,remove selection in build automaticaly and change the release number and click on build project link it will create

package with new relase this will be usefull if you have to check older packages.

tag:building a package in APS eclipse,build in APS

12)in plesk pacakage prioriy of file execution.

in plesk package creation if you add License in provision tab,then the license script will execute first if there is no verification script

what is Global settings in plesk and PA

in package creation we will give global settings variable.

in PA global settings entry will come while creating resource types.

in plesk packages it will show in settings tab

global setting values will be available in all scripts like license and configure and verification scripts

format is like ,

$username=trim(getenv(‘SETTINGS_user_name’));