Page 1 of 1

Delphi Project Not work under Xammp

PostPosted: 18. February 2009 10:10
by omyalim
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..

Re: Delphi Project Not work under Xammp

PostPosted: 18. February 2009 10:32
by Wiedmann
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"?

Re: Delphi Project Not work under Xammp

PostPosted: 18. February 2009 10:41
by omyalim
Yes, its under "C:\Program Files\CodeGear\Delphi for PHP\2.0\vcl" directory..

Re: Delphi Project Not work under Xammp

PostPosted: 18. February 2009 10:56
by Wiedmann
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\"

Re: Delphi Project Not work under Xammp

PostPosted: 18. February 2009 11:02
by omyalim
how can change apachi config (path).
so there are too many files under this VCL directory.

Re: Delphi Project Not work under Xammp

PostPosted: 18. February 2009 11:05
by Wiedmann
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\"

Re: Delphi Project Not work under Xammp

PostPosted: 18. February 2009 11:10
by omyalim
i ll try this..
Thanks for ur help.

Re: Delphi Project Not work under Xammp

PostPosted: 18. February 2009 11:16
by omyalim
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

Re: Delphi Project Not work under Xammp

PostPosted: 18. February 2009 12:24
by Wiedmann
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...)