Problem: Compiling PHP on local PC

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
Jay

Re: Problem: Compiling PHP on local PC

Post by Jay » Wed Aug 14, 2002 1:26 pm

Try

Code: Select all

<?php
Print "<HTML><BODY>";
Print "UserName: ".$_POST['signUserName']."<BR>";
Print "Password: ".$_POST['signPassword']."<BR>";
Print "</BODY></HTML>";
?>

Read up on Super Global Arrays to find out what you're missing!

The script will send mail if you set up your mail server address correctly. And you can use cookies on your local PC, but they'll only be effective on your local PC!

User avatar
WiZARD
Moderator
Moderator
Posts: 1256
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: Problem: Compiling PHP on local PC

Post by WiZARD » Wed Aug 14, 2002 11:07 pm

In a future try use like this:

Code: Select all

<HTML><BODY>
UserName: <? echo ($signUserName) ?><BR>
Password: <?echo ($signPassword) ?><BR>
</BODY></HTML>


this code faster....

DoppyNL

Re: Problem: Compiling PHP on local PC

Post by DoppyNL » Wed Aug 14, 2002 11:48 pm

WiZARD wrote:In a future try use like this:

Code: Select all

<HTML><BODY>
UserName: <? echo ($signUserName) ?><BR>
Password: <?echo ($signPassword) ?><BR>
</BODY></HTML>

this code faster....


Code: Select all

<HTML><BODY>
UserName: <?php=$signUserName?><BR>
Password: <?php=$signPassword?><BR>
</BODY></HTML>


My best guess is that this would be even faster following you're reasoning.

allthough my experience is that there is almost no noticeable speed-difference. I tend to look at readability of the code, if the code would become VERY unreadable for the programmer, then something has to be done about it. It's not only the speed of the script running that counts, also the speed in wich the programmer can modify the script in the future.

Greetz Daan

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest