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 7898785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T08:31:44+00:00 2026-06-03T08:31:44+00:00

I am uploading an image to amazon S3 using php through webservice but it

  • 0

I am uploading an image to amazon S3 using php through webservice but it shows the following error:

failed to open stream: No such file or directory in and
Failed opening required ‘Zend/Service/Amazon/Abstract.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/jltcnyc1/public_html/mydb/S3.php

require_once 'S3.php';
$s3 = new Zend_Service_Amazon_S3(secret_id,key);
$s3->createBucket("photos");
$file=basename($_FILES['file']['name']);
$s3->putObject("photos/", "file");
echo $s3->getObject("photos");

The file details are inserted into my db ok, but not to my S3.

  • 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-06-03T08:31:45+00:00Added an answer on June 3, 2026 at 8:31 am

    You have a path error and your ‘Zend/Service/Amazon/Abstract.php’ file is not being located.

    In your S3.php file, you need to include the appropriate path location for ‘Zend/Service/Amazon/Abstract.php’ from your server root.

    If Abstract.php is in your server root that code looks like this:

    require_once 'Abstract.php';
    

    Alternatively, if your S3.php is not in your server root, you can fix your require_once in your code above like this:

    require_once 'path_to_zend/S3.php';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How should I handle image uploading using PHP? How should I handle the chmod
I'm using this php code for an image upload. But I keep getting an
I am getting the following error when trying to upload an image using paperclip
I'm using django-storages with amazon S3, and uploading image files with: models.ImageField(upload_to=img=%Y-%m-%d, max_length=256, blank=True,
I'm uploading an image in Amazon s3 but when I try to view the
How can I check for height and width before uploading image, using PHP. Must
I am using asp.net fileupload control for uploading image but here i want to
I am uploading image to server using base64 its working fine if image is
I have an image uploading script in which i use the following setup to
Here I have the problem with uploading image in PHP. The problem is that

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.