# Hosting PHP scripts Help

**URL:** <https://forum.kirupa.com/t/hosting-php-scripts-help/128519>\
**Category:** Uncategorized\
**Created:** [November 13, 2004, 8:34am UTC](https://forum.kirupa.com/t/hosting-php-scripts-help/128519 "2004-11-13T08:34:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjory](https://avatars.discourse-cdn.com/v4/letter/b/5e9695/32.png) [@bjory](https://forum.kirupa.com/u/bjory)\
**Post date:** [November 13, 2004, 8:34am UTC](https://forum.kirupa.com/t/hosting-php-scripts-help/128519/1 "2004-11-13T08:34:26Z")

</div>

I done up a few PHP scripts for the connection of my Flash program to a database located on another server.

What I do is i uploaded the php scripts into the my web hosting server. I created a folder called Class and another folder called Form.

As I did the same on my local pc which I have php server setup and install. I tried to run one of the php script in Form folder and it returns me the results from the database.

But when I try to run the php script from the web hosting server’s Form folder, I get error:

\*\*Warning: main(…/class/clsExerciseEducation.php): failed to open stream: No such file or directory in /home/nrevic/public\_html/Form/getexercise.php on line 2

Fatal error: main(): Failed opening required ‘…/class/clsExerciseEducation.php’ (include\_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/nrevic/public\_html/Form/getexercise.php on line 2\*\*

Basically I just put the 2 folders in the public\_html folder of the web hosting server and i run the address as [COLOR=Blue][http://mywebhost/Form/getexercise.php?MuscleID=1Gender=M[/COLOR]](http://mywebhost/Form/getexercise.php?MuscleID=1Gender=M%5B/COLOR%5D)

It gives me the error on top.

Heres the 2 files. clsExerciseEducation.php which resides on Class folder and getexercise.php resides on Form folder.

clsExeciseEducation.php

\<?php  
require\_once(“clsDatabase.php”);  
class ExerciseEducation  
{  
// the codes  
}  
?\>

getExercise.php

\<?php  
require\_once("…/class/clsExerciseEducation.php");  
require\_once("…/class/clsMuscleGroup.php");

$theEx = new ExerciseEducation;

//the rest of the codes  
?\>

Please help!
