Enter your email to subscribe for latest posts.

May 19, 2008

Reset Password in OsCommerce

If you have access to phpMyAdmin, go to the database of OsCommerce, open administrators table and replace the password value by clicking the small pencil icon, which stands for edit.

'1060bdf4e47bc8b4ab3fb0cfea9ef70b:77'

This hash equals to the word 'admin'
so your password will be reset to 'admin'

Thanks

April 27, 2008

Maximum Number of Tables in MySQL

I want to know how many tables a mysql database can hold ?
When using MyISAM table, the limit will be determined by your operating system, ie. the number of files you can have in one directory.

Using InnoDB tables removes that limitation by allowing multiple tables within a single datafile (tablespace).

The maximum tablespace size is 4 billion database pages. By default, a 'page' is 16K, but it is possible to recompile with 64K pages. This will allow a single tablespace size of ... 'BIG'.

A table will obviously take up at least one database page, meaning you can theoretically have a maximum of 4 billion tables per tablespace.

April 15, 2008

Can Women use a weapon to protect herself

Question: Does a woman have to defend herself if someone wants to rape her, and is she allowed to use a weapon for that purpose?

Answer:
Praise be to Allaah.

A woman who is being forced to commit zinaa [unlawful sexual activity] is obliged to defend herself and should not give in even if she kills the one who wants to do that to her. This self-defence is waajib (obligatory), and she is not at fault if she kills the one who wants to force her into zinaa. Imaam Ahmad and Ibn Hibbaan reported that the Prophet (peace and blessings of Allaah be upon him) said: “Whoever is killed defending his property is a shaheed (martyr), whoever is killed defending himself is a shaheed, whoever is killed defending his religion is a shaheed, and whoever is killed defending his family is a shaheed.” In the commentary on this hadeeth it says: “whoever is killed defending his family is a shaheed” refers to the one who defends the honour of his wife and female relatives.

What are the limitation for a boy & girl during Engagement

Question:
i searched through all the relevent sections but i could not find the answer for my question.so i am asking it here. i was engaged to my present wife. and during the engagement period (before Nikah) we used to meet and touch and kiss and fondle with each other.. etc . but we never committed an intercourse. and later on we married. now i came accross the ayat of sura Noor for which some scholars say that a couple who had committed Zinna with each other, then they can not marry each other. another related question is that in some parts of pakistan people use to renew their marraige contract (Nikah) without any sharee requirement. Is it permissible to renew ones Nikah if the earlier nikah is still valid.

Answer:

Kissing your Children according to Islam

Question:
Is it true that a father should not kiss his daughter on the mouth and that a mother should not kiss her son on the lips?

Answer:
Praise be to Allaah.

This is true. A man should not kiss his mother or daughter on the mouth. Similarly, a brother should not kiss his sister on the mouth, or his paternal aunt or his maternal aunt, or any of his mahrams. Kissing on the mouth is only for husband and wife. And Allaah knows best.

How to create a toolbar for your portal - Like google and Yahoo tool bar

Its very easy to create a custom toolbar for you website or blog. Just follow the link below, create an account for free, customize your toolbar and give your users a new reason to visit your Website or Blog!!! :-D
http://www.conduit.com/Publishers/WebsiteSyndication.aspx

April 8, 2008

How to Check OsCommerce Version

he question of what version a shop is has been getting asked a lot lately. This is meant to give a quick way to check it.

- First look in includes/application_top.php and find this line
// define the project version
Under that will be a line that starts with define('PROJECT_VERSION'. These are the main choices:

March 29, 2008

ImageReady dont save as GIF

go to the (on a Mac, not sure about a pc) Window menu and choose Optimize.

In the Optimize pane make sure the format is set to gif.

Then make sure you choose "Save Otimized As" from the file window and that you have chosen what you would like from the Format pop up window.

Hope this helps...

March 22, 2008

Print Folder Contents in Text File

Open a command prompt. Change directory with the cd command to get into the directory you want to read. Then type this command.

dir /a >c:\dirlist.txt

The "dir" command will read the current directory.
the "/a" tells "dir" to read all files in the folder, even hidden or system files.

Then the ">" (greater-than sign) tells "dir" to redirect its output to the filename following.

"dirlist.txt" is the name of the file that will receive the directory listing.

March 15, 2008

Warning: I am able to write to the configuration file

Q: What should i do to set the right user permission ???

Warning: I am able to write to the configuration file: c:/phpdev/www/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

A: you need to chmod the configure.php file to 644

If you're using Windows as your test server and you get this error... just do the following:
CODE
Right click on 'includes/configure.php'

March 8, 2008

What is Favicon and How to Create it

Some time back, I had an email from a visitor asking me how I managed to have thefreecountry.com's icon displayed next to my URL in his browser's location bar. In fact, had he checked carefully, he would also have noticed that the icon is also used in his "Favorites" menu.
Internet Explorer ("IE") 5.0 and above has a facility where, if someone bookmarks your website (ie puts it in their "Favorites" menu), it associates a particular icon with your website in the bookmark. It tries to obtain that icon by first requesting for "favicon.ico" from the directory of your web page. If it cannot find such a file, it will try to obtain it from the root directory of your website, failing which, it will simply use a default icon for the bookmark.

March 3, 2008

Credit Transfer Service From SAWA

The Credit Transfer Service will permit SAWA customers to recharge their accounts by simply transferring credit from any other SAWA customer line via SMS .
The transfer mobile to mobile service will make life easier for SAWA customers; it will allow people to "borrow" credit from friends when they are not capable of recharging through the physical scratched cards.
SAWA customers with enough credit will be authorized to transfer credit value only to SAWA customers.



Joomla: PHP register_globals setting

Quote from article of: VR Junkyard Posted under Joomla

This is tutorial for joomla problem, cause usually when you just installed joomla, some of you may get this notice:
PHP register_globals setting is `ON` instead of `OFF`

What to do? this is an easy step by step to fix that problem:

- make .htaccess file in your Joomla site’s root and add this lines:

February 28, 2008

Random Number Generator

To generate 10 unique, non-doubling random numbers this works:
Set Variable: "i" = 1
Loop While (i <> 11)
Set Variable: "rnd" = Random (10)
Set Variable: "x" = 1
Loop While (x <> (Length(Temp)+1))
If ((Substring (Temp, x, 1))  eq rnd)
Set Variable: "rnd" = ""
End If
Set Variable: "x" = x+1
End Loop
If (rnd ne "")
Set Variable: "Temp" = Temp & rnd
Set Variable: "i" = i + 1
End If
End Loop

LinkWithin

Related Posts Plugin for WordPress, Blogger...