PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 23rd, 2003, 08:55 AM
.mini.moke .mini.moke is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 .mini.moke User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy My WSP has php 4.1.2 on linux, but hello world scripts don't work!

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:
<?php print ("I'll eat my hat"); ?>


and

PHP Code:
<?php echo "<p>Hello World</p>"?>


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

Reply With Quote
  #2  
Old August 25th, 2003, 09:11 PM
digitalamit digitalamit is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: New Delhi, India
Posts: 18 digitalamit User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to digitalamit Send a message via AIM to digitalamit Send a message via Yahoo to digitalamit
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!

Reply With Quote
  #3  
Old August 26th, 2003, 07:25 AM
.mini.moke .mini.moke is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 .mini.moke User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > My WSP has php 4.1.2 on linux, but hello world scripts don't work!


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap