php Codginator (IF THIS CODE IS RIGHT THEN WHY IS IT NOT WORKING ON ONLINE SITE )(HOSTELHOSTLE.COM) PLZ TELL ME

IT WORKS FLUENTLY ON LOCALHOST BUTON SERVER YOU CAN CHECK IT
PLZ TELL ME I M GETTING FRUSTETED
error.php
MY_upload.php
Ricky anuAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Marco GasiFreelancerCommented:
Firstly, I'd suggesto you to carefully check every config file needed: often, moving from localhost to online server we forget to change a path or something else which prevent the app to work :-)
Second, I would like you tell us why you say it doesn't work? Doesn't it upload files? Gives it some error message? What is the message? What you expect to happen and what actually happens?
Ricky anuAuthor Commented:
actually code works fully on localhost
it do every thing which i need but

when i upload it on server hsotelhostle.com
 there is'nt entry in db & not going any pic in upload file

But all cloums of database (except imges colum are filled)
Ricky anuAuthor Commented:
i check it again
& i upload it again

but it doesn't working
& don;t giving any error

plz guide me
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Ahmed MerghaniSoftware EngineerCommented:
I think this problem related to the "upload" directory. It is either permission or path. I suggest you to change "upload" directory permission to 777 (just to test) and try again. If the problem still exist, add this code after the line:
$this->load->library('upload',$config);

Open in new window

This is the code:
if (read_file('upload'))
echo "existed";
else
echo "not existed";

Open in new window

Ricky anuAuthor Commented:
I DO AS YOU SAY
[
if (read_file('upload'))
echo "existed";
else
echo "not existed";
]
BUT THERE IS NOT ANY ERROR OR CHANGE
PLZ TELL ME SIR WHAT IS IT GOING ON

BECAUSE
I CAN NOT GUESS THAT WHAT PROBLEM IS IT
AND WHAT I M FACING
Ahmed MerghaniSoftware EngineerCommented:
What was the output?? "existed" or "not existed" ??
And did you set the permissions for the "upload" directory??
Ricky anuAuthor Commented:
no sir there is not any output
i do it like this

[ public function registration()
      {
        $this->load->view('registration');
               
        $this->load->library('javascript');
       
 
             
       if($this->input->post('submit'))
       {
          $this->load->helper('date');

          $config['allowed_types']='gif|jpg|png';
          $config['upload_path']='upload/';
          $this->load->library('upload',$config);
          if (read_file('upload'))
echo "zasfczfaszfsdfsaafdsfgdsfsdfsdfsdfdsgfdsgfazdfsafsdfdsf//existed";
else
echo "dsfafazfssssssssssssssssssafsaffffffffffffffffffffffffffff//not existed";
         
          $str = "img";
          for($i=1; $i<= 7; $i++){...............................

]


not working till now what i do?
Ricky anuAuthor Commented:
plz sir guide me

what i can do

this is became a big headache for me
Ricky anuAuthor Commented:
plz sir guide me

what i can do

this is became a big headache for me
Question Mark?Commented:
HI Ricky As i saw your file

& link also

it is mysterious but true
that it is not your problem it is server problem
because if it is your problem then index file also not runs.

NOTICE:-Problem is may of be SERVER PERMISSIONS So
                chek you permissions or contact you hosting provider.

GOOD LUCK

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ricky anuAuthor Commented:
I M IMPRESSED YOU ARE ACCURATE.IMPRESSIVE
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.