Hi Guys!

There are very few steps to achieve that target

You should know the folder name and file name from where you want to copy your file

Lets take a example i want to copy my file test.docx from test folder to upload folder

<?php

$source = ‘test/test.docx’;

$destination = ‘upload/test.docx’ ;

// copy start here

if(@copy($source, $destination)){

echo “File copied successfully”;

}

Thats it.

Have fun

I have found today very interesting problem while working on mod_rewrite.

The whole thing is working fine on my local system, but once i have uploaded my website to Godaddy server, Suddenly all went wrong

i found “No input file specified”.

I googling to find solution, but not fruit full for me.

then i contact to my server guy.

a very little thing but very precious .

RewriteEngine On

Options +FollowSymLinks
Options -MultiViews 

and every thing working fine for Go Daddy Server.

Hi Guys,

Some time back i have faced a very interesting Problem,
I have installed PHP 5.3 version, This cause problem in my Oscommerce website,

I found “ereg is deprecated” solution :

Here How you can fix it,

To migrate ereg():

ereg('\.([^\.]*$)', $this->file_src_name, $extension);

becomes

preg_match('/\.([^\.]*$)/', $this->file_src_name, $extension);

Notice that I wrapped the pattern (\.([^\.]*$)) around / /, which are RegExp delimiters. If you find yourself escaping / too much (for an URL for example), you might want to use the # delimiter instead.

To migrate ereg_replace():

$this->file_dst_name_body = ereg_replace('[^A-Za-z0-9_]', '',
 $this->file_dst_name_body);

becomes

$this->file_dst_name_body = preg_replace('/[^A-Za-z0-9_]/', '',
 $this->file_dst_name_body);

Again, I just added delimiters to the pattern.

If you are using eregi functions (which are the case-insensitive version of ereg), you’ll notice there’re no equivalent pregi functions. This is because this functionality is handled by RegExp modifiers.

Basically, to make the pattern match characters in a case-insensitive way, append i after the delimiter:

eregi('\.([^\.]*$)', $this->file_src_name, $extension);

becomes

preg_match('/\.([^\.]*$)/i', $this->file_src_name, $extension);



Hope this will help you.

Enjoy :)