|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
So I'm new to php, but I have been writing successful perl scripts. Having heard of the simplicity of php I decided to authenticate my sites users using php. I have access to php 4.1.2 with my WSP. So i decided to give the simple 'hello world' script a try.
PHP Code:
and PHP Code:
this is emdedded in my html and saved as .php and upped to URL (tried it in the root folder too) I .assume 644 chmod will do, but I have tried 755 and each time I get this error:- Warning: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0 Yes incuding a path to php seems logical to me, but where and how? I'm struggling to find an answer as most tutorials are assuming your running your own server and just say bung it in your root folder and it'll work. I have noticed people talking about configuring php.ini on their server, Sounds unlikely that i'll be able to do this with my WSP Cheers mini.moke |
|
#2
|
|||
|
|||
|
Ok, a biy clarification would be needed, but lets start from afresh.
Create small file say phpinfo.php under the /phptest/ with just the following content Code:
<?php
phpinfo();
?>
and run using your browser. If you see a lots of information regarding PHP then you PHP is working fine, there is problem with you script. HTH! |
|
#3
|
|||
|
|||
|
Thanks Digitalamit,
However I'm still getting exactly the same error. 'Warning: Failed opening '' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0' I'm going to try and get in touch with my space provider and see what they have to say (although they may not respond). Do I have to include the path? the php specs from my provider are here... http://php.easyspace.com/ Thanks again .mini.moke |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > My WSP has php 4.1.2 on linux, but hello world scripts don't work! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|