First php script

Links for php scripts

Moderators: macek, egami, gesf

Nikita
New php-forum User
New php-forum User
Posts: 1
Joined: Sat Jun 11, 2011 5:12 am

First php script

Postby Nikita » Sat Jun 11, 2011 5:37 am

Hi everyone! :) Well, i have a problem to make my first php script. It should be simple but... I work with Wamp server 2.2.17 and php 5.3.5. Anyway, i try to make php sript in ConTEXT (text editor).
I type literally this:
<? php
"hi everyone";
?>

And save this with Save as...
File name: "test.php" (i put " that to be sure that he would not changed my exstension to .txt)
Save as type: All files (and i try with PHP)
I went to Wamp, refresh him and nothing. I type in root location http://localhost:8080/test.php
and nothing happens. Does anyone knows what i doing wrong??? OR What i shoud do more??
Tnx :)

Jordan82
New php-forum User
New php-forum User
Posts: 2
Joined: Sat Jun 11, 2011 2:19 pm

Re: First php script

Postby Jordan82 » Sat Jun 11, 2011 2:24 pm

That is improper syntax. You need to echo an output, not just type it.

Code: Select all

<?php
echo "hi everyone";
?>


Try that.

annyphp
New php-forum User
New php-forum User
Posts: 76
Joined: Sun Nov 28, 2010 6:33 pm
Contact:

Re: First php script

Postby annyphp » Sun Jun 12, 2011 7:20 pm

Hi, Nikita
Glad to recommend a good site where you can search and download some free php scripts.
Hope it will help you!


Return to “PHP Scripts”

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron