Cant run those dern scripts!

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Acraine
-


Joined: 27 Jun 2002
Posts: 5
Location: San Diego

PostPosted: Sun Jun 30, 2002 10:21 pm    Post subject: Cant run those dern scripts! Reply with quote

Ok. The install works fine, and when I use the phpinfo() function, its works, but when I use a simple script like the following:

-----------------------Index.html------------------------------------
<html>
<head>
</head>
<body>
Enter your name:
<form action="action.php>
<input type="text" name="name">
<input type="submit" value"submit">
</form>
</body>
</html>

-------------------------------action.php------------------------------
<html>
<head>
</head>
<body>
<?php
echo"Hello $username";
?>
</body>
</html>

-----------------------------Output---------------------------
Hello

Thats all it will output. It correctly outputs "Hello Daniel" on my friends server, but I cant get it to work right on Abyss! help! What's going on?!

Daniel
Back to top View user's profile Send private message Send e-mail
Acraine
-


Joined: 27 Jun 2002
Posts: 5
Location: San Diego

PostPosted: Sun Jun 30, 2002 10:26 pm    Post subject: AGGG! Reply with quote

Now when I open the site, it says:

php.exe - Entry point not found

(X) The procedure entry point zend_strip could not be located in the dynamic link library php4ts.dll.

AGG!
Back to top View user's profile Send private message Send e-mail
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon Jul 01, 2002 2:32 pm    Post subject: Re: AGGG! Reply with quote

Acraine wrote:
Now when I open the site, it says:

php.exe - Entry point not found

(X) The procedure entry point zend_strip could not be located in the dynamic link library php4ts.dll.

AGG!

Please reinstall PHP. This is not an issue related to Abyss Web Server.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
borgx
Guest





PostPosted: Fri Sep 13, 2002 8:28 am    Post subject: Re: Cant run those dern scripts! Reply with quote

Acraine wrote:
Ok. The install works fine, and when I use the phpinfo() function, its works, but when I use a simple script like the following:

-----------------------Index.html------------------------------------
<html>
<head>
</head>
<body>
Enter your name:
<form action="action.php>
<input type="text" name="name">
<input type="submit" value"submit">
</form>
</body>
</html>

-------------------------------action.php------------------------------
<html>
<head>
</head>
<body>
<?php
echo"Hello $username";
?>
</body>
</html>

-----------------------------Output---------------------------
Hello

Thats all it will output. It correctly outputs "Hello Daniel" on my friends server, but I cant get it to work right on Abyss! help! What's going on?!

Daniel


Well really this is a scripting error. This has notheing to do with Abyss. but if you like (if you still need it) here you go:

-----------------------Index.html------------------------------------
<html>
<head>
</head>
<body>
Enter your name:
<form action="action.php>
<input type="text" name="username">
<input type="submit" value"submit">
</form>
</body>
</html>

-------------------------------action.php------------------------------
<html>
<head>
</head>
<body>
<?php
echo"Hello $username";
?>
</body>
</html>

-----------------------------Output---------------------------
Hello 'input from text box called username'


but if you have not enabled global vars then change action.php to:

<html>
<head>
</head>
<body>
<?php
global $username;
echo"Hello $username";
?>
</body>
</html>

-------------
and it should work.

-borgx
Back to top
gengar56
-


Joined: 02 Aug 2002
Posts: 15

PostPosted: Sat Sep 14, 2002 6:01 pm    Post subject: Reply with quote

Right. This is NOT a problem Abyss Web Server, it is a problem with your PHP code. In PHP 4.2.0 they made the following change:
"ATTENTION!! register_globals defaults to 'off' now !!!"

The username variable is sent from a form and is NOT automatically put in $username with the default installation of PHP. You should use:

echo "Hello $_POST["username"];

If you want to make PHP like it was in older versions, open php.ini (by default in C:\Windows\) and change register_globals to On (under Data Handling).

They have the following comments in there:
; You should do your best to write your scripts so that they do not require
; register_globals to be on; Using form variables as globals can easily lead
; to possible security problems, if the code is not very well thought of.
register_globals=On
_________________
New user of Abyss Web Server
Back to top View user's profile Send private message Send e-mail AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group