Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Closed Thread
Old 07-06-2010, 05:15 AM hello world in php
ddk
ddk's Avatar
Average Talker

Posts: 18
Name: devikumar
Trades: 0
hiii frnsss.....

im new to php...

i installed apache server in localhost........

and i wrote helloworld code in php file.....

and when i tried to run the file....its not working...the browser is blank...

i saved the php file on desktop...i think that is the main problem.....where should i save in order to execute that php file.

please help me!
ddk is offline
View Public Profile
 
 
Register now for full access!
Old 07-06-2010, 05:31 AM Re: hello world in php
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The PHP file has to be in the DocumentRoot folder of the server setup.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 07-06-2010, 07:20 AM Re: hello world in php
Experienced Talker

Posts: 41
Trades: 0
You have to save file in root folder means

Example: [c/d/e/f drive -> wamp -> www -> yourapp.php]
sandeep Kumar is offline
View Public Profile Visit sandeep Kumar's homepage!
 
Old 07-06-2010, 09:00 AM Re: hello world in php
ddk
ddk's Avatar
Average Talker

Posts: 18
Name: devikumar
Trades: 0
thanx for ur replies......

ok i pasted that file in the root directory.....

i got some other problem........

http://localhost/helloworld.php is now working.

but im getting whole code printed on the screen.....wat may be the problem?
ddk is offline
View Public Profile
 
Old 07-06-2010, 11:33 AM Re: hello world in php
Registered User

Posts: 86
Name: John Dacu
Trades: 0
i think you used "<?" (php short tag). Default wamp has this option disabled so, you will enable it from php.ini or use "<?php ?>"
johnny.dacu is offline
View Public Profile
 
Old 07-06-2010, 12:19 PM Re: hello world in php
Extreme Talker

Posts: 185
Trades: 0
Post here the source code of the php file
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
weker is offline
View Public Profile
 
Old 07-07-2010, 10:31 AM Re: hello world in php
ddk
ddk's Avatar
Average Talker

Posts: 18
Name: devikumar
Trades: 0
it has worked....im sorry...actually i havent saved it in hdocs...thats the problem

thanx all for ur replies......
ddk is offline
View Public Profile
 
Closed Thread     « Reply to hello world in php
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.47098 seconds with 12 queries