Delphi Project Not work under Xammp

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Delphi Project Not work under Xammp

Postby omyalim » 18. February 2009 10:10

Hello everone..
i m a new user this forum.. Very interesting ...

i have problem . i m using Delphi for php 2.0. when i write a code under Delphi for php its working no problem. But i use a internet explorer open my file its not work .

this message appear---

Warning: require_once(vcl/vcl.inc.php) [function.require-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\unit3.php on line 3

Fatal error: require_once() [function.require]: Failed opening required 'vcl/vcl.inc.php' (include_path='.;D:\xampp\php\pear\') in D:\xampp\htdocs\unit3.php on line 3

How can i solve this problem..

Thnks..
omyalim
 
Posts: 5
Joined: 18. February 2009 09:39

Re: Delphi Project Not work under Xammp

Postby Wiedmann » 18. February 2009 10:32

Warning: require_once(vcl/vcl.inc.php) [function.require-once]: failed to open stream: No such file or directory in D:\xampp\htdocs\unit3.php on line 3

You have a file "vcl.inc.php"?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Delphi Project Not work under Xammp

Postby omyalim » 18. February 2009 10:41

Yes, its under "C:\Program Files\CodeGear\Delphi for PHP\2.0\vcl" directory..
omyalim
 
Posts: 5
Joined: 18. February 2009 09:39

Re: Delphi Project Not work under Xammp

Postby Wiedmann » 18. February 2009 10:56

Code: Select all
Failed opening required 'vcl/vcl.inc.php' (include_path='.;D:\xampp\php\pear\')

Yes, its under "C:\Program Files\CodeGear\Delphi for PHP\2.0\vcl" directory..

PHP basics... ;-)

You include this file with a relative path ('vcl/vcl.inc.php'), but this relative path does not exists relative to any of your include paths:
- include the file with an absolute path.
- or better: add the framework directory to the include_path.
(- or copy the vcl dir to the script dir)

I would open "php.ini" and change the include_path to:
Code: Select all
include_path = ".;D:\xampp\php\pear\;C:\Program Files\CodeGear\Delphi for PHP\2.0\"
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Delphi Project Not work under Xammp

Postby omyalim » 18. February 2009 11:02

how can change apachi config (path).
so there are too many files under this VCL directory.
omyalim
 
Posts: 5
Joined: 18. February 2009 09:39

Re: Delphi Project Not work under Xammp

Postby Wiedmann » 18. February 2009 11:05

how can change apachi config (path).

Just read...
Wiedmann wrote:I would open "php.ini" and change the include_path to:
Code: Select all
include_path = ".;D:\xampp\php\pear\;C:\Program Files\CodeGear\Delphi for PHP\2.0\"
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Delphi Project Not work under Xammp

Postby omyalim » 18. February 2009 11:10

i ll try this..
Thanks for ur help.
omyalim
 
Posts: 5
Joined: 18. February 2009 09:39

Re: Delphi Project Not work under Xammp

Postby omyalim » 18. February 2009 11:16

new error mess.

Warning: require_once(Structures/DataGrid/Column.php) [function.require-once]: failed to open stream: No such file or directory in C:\Program Files\CodeGear\Delphi for PHP\2.0\vcl\PEAR\Structures\DataGrid.php on line 49

Fatal error: require_once() [function.require]: Failed opening required 'Structures/DataGrid/Column.php' (include_path='.;D:\xampp\php\pear\;C:\Program Files\CodeGear\Delphi for PHP\2.0\') in C:\Program Files\CodeGear\Delphi for PHP\2.0\vcl\PEAR\Structures\DataGrid.php on line 49
omyalim
 
Posts: 5
Joined: 18. February 2009 09:39

Re: Delphi Project Not work under Xammp

Postby Wiedmann » 18. February 2009 12:24

new error mess.

I think you should ask the Delphi support how to use this software with an existing webserver and PHP installation. Or how to use/configure it correctly.

Warning: require_once(Structures/DataGrid/Column.php) [function.require-once]: failed to open stream: No such file or directory in C:\Program Files\CodeGear\Delphi for PHP\2.0\vcl\PEAR\Structures\DataGrid.php on line 49

I guess you need an additional directory "C:\Program Files\CodeGear\Delphi for PHP\2.0\vcl\PEAR\" in your include_path.
(This softwrae have it's own PEAR, but does not adjust the include_path itself in a correct way...)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 46 guests