PHP Magic Book – Free PHP Scripts, Tutorials and Downloads, PHP AtoZ Reloaded, free php tutorials, free php downloads, php scripts, PHP tips

Archive for October, 2008

Windows Time Zones List

Following is the Time Zone list extracted from the Windows.

(more…)

Tags: ,
Posted in: Date & Time, Miscellaneous
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Force File download Using PHP – Do Not Display Open In Browser onclick

In your HTML directly link to the file which is to be downloaded.
i.e.

<a href="........./files/somefile.pdf">Download Pdf</a>.

You will get a pop-up box asking whether you want to save the file or open it normally.
Now you want to download it so open .htaccess file and write there some lines according yo your requirement mentioning extension of files which you want to download directly.

Place the following code into your .htaccess file.

(more…)

Tags: ,
Posted in: htaccess
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Smarty For Smart Developers

SMARTY – What & Why

SMARTY is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation. This is best described in a situation where the application programmer and the template designer play different roles, or in most cases are not the same person.

(more…)

Tags: ,
Posted in: CMS, Content Management, Softwares
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

Date Object For Future or Past – Easy Monthwise or Datewise Records Selection Using PHP

If you have to create a date object of future or past, you can do it by using the second parameter of PHP date function. This is extremely useful when doing BETWEEN comparison in MySQL. You can build the date and bind it to query.

(more…)

Tags: , , ,
Posted in: Date & Time, Select, Tricks, Useful Scripts, php mySQL
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

How to Setup VHOSTS on Xamp

Following are the steps you need to take to create a new vhost in the XAMP.
Step 1 & 2 is once only and is needed if you have a fresh installation of XAMP.

1- Enable/Uncomment The following line in your /xamp/apache/conf/httpd.ini file
LoadModule vhost_alias_module modules/mod_vhost_alias.so

2- Open your /xampe/apache/conf/extra/httpd-vhosts file and uncomment following line
NameVirtualHost *:80

3- Now if you have to map a vhost for any of your new project. Add the following block of lines in the same httpd-vhosts file at the end. Remember to change these blocks to meet your DOMAIN name and DIRECTORY structure.

(more…)

Tags: , ,
Posted in: Softwares
Post's RSS » RSS 2.0
Post's Comments RSS » RSS 2.0
Respond: Post A Comment

    


  Subscribe Via RSS
  Subscribe Via Email