php-windows Digest 21 Dec 2006 21:56:33 -0000 Issue 3094
Topics (messages 27325 through 27327):
Re: windows path problem: failed to open stream: No such file or directory
27325 by: John Harris
27326 by: Armando
Enabling Sybase on PHP5 in WIndows
27327 by: Ben
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
On 16 Dec 2006 at 21:53, Nii Amon Dsane wrote:
> require_once "../folder2/SomeClass.php";
>
> I get this error:
>
> *Warning*: main(../folder2/SomeClass.php): failed to open stream: No such
> file or directory in *C:\Program
> Files\xampp-php\xampp\htdocs\inside\classes\folder1\ThisClass.php* on line *
> 3*
Any chance you need back-slash to traverse in Windows?
John
--- End Message ---
--- Begin Message ---
It sounds like a traversal issue. Have you tried specifying an absolute
path like this:
require_once "C:\\Program
Files\\xampp-php\\xampp\\htdocs\\inside\\classes\\folder1\\ThisClass.php";
To see if it works? The double slashes are not in error.. I have some
sites under Apache on Windows that pull files from or write files to non
web-accessible directories and I have to specify double forward slashes
in the absolute path order to make them work. Cheers.
Armando
[EMAIL PROTECTED] wrote:
Can you locate the included file via absolute path? I.E. "/folder2/someclass.php"
Tryst
-----Original Message-----
From: [EMAIL PROTECTED]
To: [email protected]
Sent: Sat, 16 Dec 2006 9.53PM
Subject: [PHP-WIN] windows path problem: failed to open stream: No such file
or directory
Hi list
I have a problem that I simply cannot understand and that is literaly
driving me mad!
I am using xampp on a windows XP professional with SP2. I have a site
structure similar to this in htdocs:
+ site_name
+ classes
+ folder1
+ folder2
+ ... other folders
- .htaccess
- .. other files
Now the classes folder contains classes that I have defined. I include this
directive in one of the classes [say ThisClass.php] in a folder [say
folder1] to require a class in another folder [I have included the top level
classes folder in the .htaccess file for the site]:
require_once "../folder2/SomeClass.php";
I get this error:
*Warning*: main(../folder2/SomeClass.php): failed to open stream: No such
file or directory in *C:\Program
Files\xampp-php\xampp\htdocs\inside\classes\folder1\ThisClass.php* on line *
3*
*Fatal error*: main(): Failed opening required 'SomeClass.php'
(include_path='.;C:/Program
Files/xampp-php/xampp/htdocs/inside/classes/;../') in *C:\Program
Files\xampp-php\xampp\htdocs\inside\classes\folder1\ ThisClass.php* on line
*3*
**
However other classes inside the folder are found without any problems. It's
when I have to traverse the folder structure to find the required files in
other folder that I have these problems. I have trolled the net endlessly
and all the mentions to this problem are related to software packages [such
as cms and others]. These problems are quite easily solved by reinstalling
th application but as is obvious i cannot simply do that. I need some help
with this. Can you please help me out here?
Thanks
--- End Message ---
--- Begin Message ---
Hello all,
I've recently installed Sybase ASE15 Express on a Linux installation on
VMWare.
Now, I'd like to connect through PHP to the Sybase database server. So,
after searching a bit I read that I needed to install the Sybase Open
Client. Installed that, it connected fine through Sybase Central, but
PHP still refused to load the php_sybase_ct.dll. It's in the folder all
my other extentsions are in.
Yet when I start Apache I get an error that PHP couldn't load
php_sybase_ct.dll.
Any idea on how to enable this? I'd try ODBC, but that's just messy in
my opinion when you should be able to use the Sybase library.
Thanks,
Ben
--- End Message ---