Click to See Complete Forum and Search --> : Php.ini


David Bethel
12-16-2002, 05:44 PM
Greetings,


Win98SE
Jana Server 2.2.4
PHP 4.2.3 ( renistalled twice )

I've had to reinstall my server and php on a system that was working perfectly with php 4.2.1

I know it's me and that $#@%)*# php.ini file that has gotten messed up. I've used up what little patience I have today editing this thing......

php installed in c:\php ( I've used both the .zip and .exe installer )

My .htm and .php files are located in c:\web
Jana enables the php service @ c:\php

in my php.ini

doc_root=C:\PHP\
user_dir=C:\WEB\
extension_dir=C:\PHP\extensions\

Doe this need quotation marks?
Is it case sensative?
Do you use forward slashes?

The address bar looks like this:

http://www.davidbethel.com/page.php?username=test

I get http 500 error - Page Cannot be displayed

I've used AnalogX PHPConfig and it worked on my older setup

contents of page.php

<html>
<script type="text/javascript">
setTimeout("window.location.href='http://www.davidbethel.com/<?echo $username;?>/';",100);
</script>
<body>
You are being redirected to the current folder.
</body>
</html>


Any help will be greatly appriciated.

TIA -David

dalecosp
12-17-2002, 03:55 PM
Here's what I get instead of a 500:

<html>

<script type="text/javascript">
setTimeout("window.location.href='http://www.davidbethel.com/
Notice: Undefined variable: username in C:\WEB\page.php on line 4
'/";,100);
</script>


<body>
You are being redirected to the current folder.
</body>

</html>


HTH,

David Bethel
12-18-2002, 11:12 AM
Okay,

i've gotten php to working again, but it is not allowing the java text script to work.

I'll post a new thread in the coding section about a new redirect php. Thanks -David