Click 'Connect with Facebook' to join NetworkedBlogs. NetworkedBlogs is a community of bloggers and blog lovers. Join the fun, add your blog, and connect with others who read and write about subjects you like.
| Blog Name: |
PHP QA |
| Url: |
http://phpqa.blogspot.com |
| Language: |
English |
| Topics: |
php, mysql, javascript |
| Description: |
the PHP, MySql, Javascript helper. Contains helpful functions, urls, methods to handle them |
| Popularity: |
10 Followers |
How to set up .htpasswd in a site ?
How to set up .htpasswd in a site ?
Step 1 : create file .htpasswd and put out side our root folder but inside www for safety.
Step 2 : open the file .htpasswd and add like username:password -> then save and close. So now file contains
username:password
Step 3 : Add the following in .htaccess file
AuthName "Restricted Area"
AuthType Basic
AuthUserFile D:/wamp/www/.htpasswd # full path to .htpasswd file
AuthGroupFile /dev/null
require valid-user
----------
Now open you site http://mysite.c
Running a perl script from PHP
Running a perl script from PHPI have tried to run a perl script from my php file. The perl script was running in command line and worked well.But when I tried to execute the same form my php script, it was not working . I have tried the same with the other possibilities system, passthru, shell_exec, exec, etc. I have used the following commands. shell_exec("perl filename.pl arg1"); shell_exec("user/bin/perl filename.pl arg1");I have tried out with both paths of perl script and perl compiler and even tried with out path of compiler. But no luck :(..result was the same Do you face the
Running a perl script from PHP
Running a perl script from PHPI have tried to run a perl script from my php file. The perl script was running in command line and worked well.But when I tried to execute the same form my php script, it was not working . I have tried the same with the other possibilities system, passthru, shell_exec, exec, etc. I have used the following commands. shell_exec("perl filename.pl arg1"); shell_exec("user/bin/perl filename.pl arg1");I have tried out with both paths of perl script and perl compiler and even tried with out path of compiler. But no luck :(..result was the same Do you face the
How to create a plugin in elgg.
I would like to share some basics about plugin development in elgg . In elgg all the plugins will be in mod directory. You can drop your plugin in this directory.First you need a name for your plugin.The names of the plugins in an installation must be unique. you need a ‘start.php’ file for each plugin which to describe the common functions for a plugin.This file can be considered as the core controller of all plugins .The start.php must have an init function which initializes the plugin . You have to register this function to elgg system and have to make sure the initialisation function is called on initialisation.
How to create a plugin in elgg.
I would like to share some basics about plugin development in elgg . In elgg all the plugins will be in mod directory. You can drop your plugin in this directory.First you need a name for your plugin.The names of the plugins in an installation must be unique. you need a ‘start.php’ file for each plugin which to describe the common functions for a plugin.This file can be considered as the core controller of all plugins .The start.php must have an init function which initializes the plugin . You have to register this function to elgg system and have to make sure the initialisation function is called on initialisation.
Not enough data.
Calculated for blogs with 20+ followers.
Questions? contact: networkedblogs@ninua.com
Copyright (C) 2008, Ninua, Inc.