RE: [PHP] problem with require_once
| From: | Sanjeev N | Date: | Wed, 15 Aug 2007 09:49:36 +0000 |
| Subject: | RE: [PHP] problem with require_once | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-260840@lists.php.net to get a copy of this message | ||
Hi,
The problem is simple...
Either the file myclass.php path is wrong (may be your calling file is in
some folder and myclass.php is in another folder) or if path is correct and
file may have some syntax errors or some function may not exist..
Please check the path if wrong and check the file for syntax and content if
path is correct
Warm Regards,
Sanjeev
http://www.sanchanworld.com/
http://webdirectory.sanchanworld.com - Submit
your website URL
http://webhosting.sanchanworld.com - Choose your
best web hosting plan
-----Original Message-----
From: Vanessa Vega [mailto:vanessa@activediscovery.net]
Sent: Wednesday, August 15, 2007 11:30 AM
To: php-general@lists.php.net
Subject: [PHP] problem with require_once
Good day to all...
I would like to ask for some help..
I have a form created in javascript codes. The page is a pop up window.
I am passing the values of the form using the method "post". The PHP file
that handles the form displays the values from that and had the following
code in the beginning:
<?php
require_once('myclass.php');
//this class contains all functions for me to connect on the database
----------------rest of the code for displaying and saving values to an
existing databse----------------------
?>
when i clicked the submit button, nothing happens and the page wouldl just
refresh...
but when i removed the require_once code of my PHP, the values from the form
is displayed but of course, will not be saved since the class isnt
there.....
can anyone help me....
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php