Archived
This forum has been archived. Please start a new discussion on GitHub.
icephp question
hello,
i have a question about icephp.
i am trying to test the icephp Demo "Hello" on my host .My config just like these:
icephp (IcePHP-1.0.1.zip) with VC6.0
php-5.0.0b2-Win32
Apache Version 2.0 (Appserv).
and i add "ice.slice=c:/php/includes/Hello.ice" in php.ini
php -m output:
C:\php>php -m
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
dom
ftp
ice
libxml
mysql
odbc
pcre
session
simplexml
sqlite
standard
tokenizer
wddx
xml
zlib
[Zend Modules]
but when i try the script,i received the Error message:
#! /php
Hello Demo
Fatal error: unable to create Slice types: in C:\Program Files\Apache Group\Apache2\htdocs\hello\hello.php on line 11
the code of line 11 : Ice_loadProfile();
can you tell me what is wrong (please!)
regardes,
Lu
i have a question about icephp.
i am trying to test the icephp Demo "Hello" on my host .My config just like these:
icephp (IcePHP-1.0.1.zip) with VC6.0
php-5.0.0b2-Win32
Apache Version 2.0 (Appserv).
and i add "ice.slice=c:/php/includes/Hello.ice" in php.ini
php -m output:
C:\php>php -m
[PHP Modules]
bcmath
calendar
com_dotnet
ctype
dom
ftp
ice
libxml
mysql
odbc
pcre
session
simplexml
sqlite
standard
tokenizer
wddx
xml
zlib
[Zend Modules]
but when i try the script,i received the Error message:
#! /php
Hello Demo
Fatal error: unable to create Slice types: in C:\Program Files\Apache Group\Apache2\htdocs\hello\hello.php on line 11
the code of line 11 : Ice_loadProfile();
can you tell me what is wrong (please!)
regardes,
Lu
0
Comments
-
Hi,
Was this error message displayed to you in the browser, or was it in the Apache log?
The reason I ask is that I expected a more detailed error message than the one you've shown. If you can find the full message, please post it. Specifically, IcePHP also displays as part of this error message the PHP code it generated from the Slice types, but I don't see that in your error message.
Another step you can take is to run the script manually, just to make sure there are no problems with the script or the Slice file. Create a php.ini file containing the ice.slice setting, and run the script using the command-line PHP interpreter:
php -c php.ini -f hello.php
Take care,
- Mark0 -
The error message was displayed in the browser,and i could not find anyother error message from the apache error log file or the php error log file.
I had tried to run the script using the command-line PHP interpreter:
php -c php.ini -f hello.php
but i received the error message in the command-line PHP interpreter:
No input file spacified
Could you tell me what's wang? thanks
Lu0 -
Originally posted by angela.lu
I had tried to run the script using the command-line PHP interpreter:
php -c php.ini -f hello.php
but i received the error message in the command-line PHP interpreter:
No input file spacified
Could you tell me what's wang? thanks
Lu
- Mark0 -
Should i try it like this?
C:\PHP\CLI\php -c php.ini -f hello
and this time i receiced the error message:Could not open input file:hello.php
lu0 -
Sorry, i had tried it like this:
C:\PHP\CLI>php -c php.ini -f hello
and this time i receiced the error message:Could not open input file:hello.php
lu0 -
Is the hello.php file in your current directory?
- Mark0 -
sorry,the file is not in in my current directory . I run the the hello server and try it again like this
C:\PHP\CLI>php -c \IcePHP-1.0.1\IcePHP-1.0.1\demo\Ice\hello\php.ini -f \IcePHP-1.0.1\IcePHP-1.0.1\demo\Ice\hello\hello.php
This time the command-line PHP interpreter show me the code or hello.php,and IE also show me
Fatal error: unable to create Slice types: in C:\Program Files\Apache Group\Apache2\htdocs\hello\hello.php on line 11
what should I do next step? Thanks
LU0