Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

40,026 questions

51,982 answers

573 users

How to rename file in PHP

1 Answer

0 votes
if ( rename('d:\\data.bin', 'd:\\data_new_name.bin') === false)
    echo "rename failed";
else
    echo "rename success";
    
/*
run:

rename success 

*/

 



answered Aug 25, 2015 by avibootz
edited Aug 26, 2015 by avibootz

Related questions

1 answer 182 views
182 views asked Aug 25, 2015 by avibootz
1 answer 107 views
107 views asked Aug 22, 2023 by avibootz
1 answer 159 views
159 views asked Jul 12, 2020 by avibootz
1 answer 213 views
213 views asked Mar 10, 2020 by avibootz
1 answer 229 views
1 answer 198 views
198 views asked Jun 9, 2018 by avibootz
1 answer 206 views
206 views asked Aug 26, 2015 by avibootz
...