Jump to content

yahoo hosting problems


uknowho008

Recommended Posts

i set up a simple script to upload images to the server and put the file names into the mysql database for use on the site. and everything seems to work perfect. all files upload to the server and inputed to the database. but when you try to view the picture yahoo denies access to it. whats up with that? and how can i get around it without using ftp and manually putting everything in or using there stupid file manager and manually putting everything in? >:(

Link to comment
Share on other sites

codes simple and it works just fine. all the files make it to the server and database just fine.

 

this is the error i get when i go to the picture url: http://screwballindustries.com/screwball/slide_images/slide_002.jpg

but when im on the webpage it just gives you the red x box thing. http://screwballindustries.com/screwball/slide_images/

its in a javascript slidshow script by the way. but that all works just fine.

 

 

 

 

The website declined to show this webpage

HTTP 403 

  Most likely causes:

This website requires you to log in.

 

  What you can try:

    Go back to the previous page.

 

    More information

 

This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage.

 

For more information about HTTP errors, see Help.

 

 

 

 

heres the code anyways

 

foreach ($_FILES["image"]["error"] as $key => $error) {

  if ($error == UPLOAD_ERR_OK) {

  $tmp_name = $_FILES["image"]["tmp_name"][$key];

  $name = $_FILES["image"]["name"][$key];

  move_uploaded_file($tmp_name, "slide_images/$name");

 

  $insert_sql = "

    INSERT INTO SlideImages(URL)

    VALUES ('$name')

  ";

  mysql_query($insert_sql) or die("Bad query");

  }

}

Link to comment
Share on other sites

permissions issue, you have to set proper permissions on that directory

 

If you can use an ftp client, that will be pretty easy. If not, then I would try the php method of chmod

chmod("/screwball/slide_images/filename.jpg", 0644); 

 

You may need to chmod each file that you upload this way.

 

Hope this helps

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.