Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 992805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:19:27+00:00 2026-05-16T06:19:27+00:00

My application was working fine but I don’t know how suddenly allow_url_fopen set OFF

  • 0

My application was working fine but I don’t know how suddenly allow_url_fopen set OFF in my php.ini , there is php.ini file in my ftp dir but when I execute phpinfo(); it gives all php.ini configuration information.I dont know how to set this ON.can anybody tell me the alternate way to my code-

$image_name=$unq.'.'.$extension;
$newname="album/".$image_name;
$copied = copy($_FILES['image']['tmp_name'], $newname); // here i get error

error: Warning: copy(album/6911139.jpg) [function.copy]: failed to open stream: Permission denied in D:\Hosting\6448289\html\upload.php

URL file-access is disabled in the server configuration in D:\Hosting\6448289\html\upload.php on line 112

please suggest me any alternat method.
and is there any any command that I will execute and allow_url_fopen` will set ON ??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T06:19:28+00:00Added an answer on May 16, 2026 at 6:19 am

    Copying an uploaded file to another location on the web server should never involve an URL. Not sure what’s going wrong here – I can’t see an URL anywhere.

    Anyway, you should use move_uploaded_file() for this, not copy(). Try whether that works better.

    Also try using an absolute path instead of the relative album/.....

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working on a tracking application using GPS. It is all fine, but sometimes because
I have developed an application using Django and everything is working fine but I
I have a JSF/ICEFaces application that was working fine but all of the sudden
I have created a Web Application in asp.net 2.0. which is working fine on
Is the following stored procedure code robust for multi-user application. It is working fine.
I am working on a PHP web application and some times I would like
I'm working on an ASP.Net application and working to add some Ajax to it
I've developed an application at working using MySQL 5, that uses Views to access
In the application I'm working on porting to the web, we currently dynamically access
I have a small application I am working on that at one point needs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.