View previous topic :: View next topic |
Author |
Message |
Brutal_Truth -
Joined: 24 Mar 2004 Posts: 2
|
Posted: Wed Mar 24, 2004 1:28 am Post subject: Slight Problem with PHP |
|
|
Well, I'm new here, and I appoligize if this has been asked before. I recently switched to abyss server, from an apache, wanted to see if i liked Abyss better. After I got PHP installed, and set up in the Abyss console. I started adding a few scripts. I ran into a problem right away, for some odd reason, variables cannot be submited from page to page. Like they cannot be defined within the URL, ex; page.php?variable=2 or they cannot be set within a form using a post method. I was wondering what I might do to solve this problem? When i attempt to use a variable which would have been defined in one of those too methods, I get an error, saying that it is not defined. |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Wed Mar 24, 2004 2:59 am Post subject: |
|
|
Well that seems like it is more of a scripting problem than a problem with Abyss. Look for a script at www.hotscripts.com or a similar site that uses the same variable convention you are trying to use, and once you get that script working, use it as a guide for the one you wrote. _________________ Bienvenidos! |
|
Back to top |
 |
 |
eznetlinks -
Joined: 27 Sep 2003 Posts: 144
|
Posted: Wed Mar 24, 2004 4:18 pm Post subject: |
|
|
I had the same problem so i swapped php.ini with php.ini-recommended found in php 5.0 beta and it worked.
Download it here -> http://www.php.net/get/php-5.0.0RC1-Win32.zip/from/a/mirror .
raname the file php.ini and place it in C:\WINDOWS , if you run windows. |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
eznetlinks -
Joined: 27 Sep 2003 Posts: 144
|
Posted: Wed Mar 24, 2004 8:39 pm Post subject: |
|
|
There ya go! :D
Unfortunately i'm just a dumb carpenter and i don' know what switch to flip in php.ini to make it work. Just learned how to turn on a computer jan, 14 2002. By the same token fortunately i'm just a dumb carpenter and i didn't know what Beta meant so i downloaded the php version w/ the biggest number, @ the time 5.0. So i didn,t have to config php.ini. Otherwise I may be facing the same problem you are today. |
|
Back to top |
|
 |
Brutal_Truth -
Joined: 24 Mar 2004 Posts: 2
|
Posted: Wed Mar 24, 2004 10:11 pm Post subject: |
|
|
Thanks for the help guys, I felt dumb after posting this question. I was looking through the php.ini file, and switched global variables on, and it worked... Then i searched the forums for that, and saw that the solutiion was already here. Its been about 6 months since Ive used PHP, I was making a socket script to interact with a P2P server program I've been designing.
But thanks again. |
|
Back to top |
|
 |
eznetlinks -
Joined: 27 Sep 2003 Posts: 144
|
Posted: Wed Mar 31, 2004 4:01 am Post subject: |
|
|
ok. i have reinstalled everything. set register_globals = On. i still get the error. Also i have many pages configured like-
<?php
include 'header.php';
echo '<html>';
include 'footer.php';
?>
php will not include .php or .html files.
it will include .txt files.
it will include all files if i give the full url like http://domain.com/header.php
whats up! :? |
|
Back to top |
|
 |
iNaNimAtE -
Joined: 05 Nov 2003 Posts: 2381 Location: Everywhere you're not.
|
Posted: Wed Mar 31, 2004 4:40 am Post subject: |
|
|
What's wrong with giving the full URL? _________________ Bienvenidos! |
|
Back to top |
 |
 |
netkinetics -
Joined: 31 Mar 2004 Posts: 2
|
Posted: Wed Mar 31, 2004 12:54 pm Post subject: |
|
|
eznetlinks wrote: | ok. i have reinstalled everything. set register_globals = On. i still get the error. Also i have many pages configured like-
<?php
include 'header.php';
echo '<html>';
include 'footer.php';
?>
php will not include .php or .html files.
it will include .txt files.
it will include all files if i give the full url like http://domain.com/header.php
whats up! :? |
try including './header.php' (or ./pathto/header.php) On some SSL setups if you put in the full path (via http) but load securely (via https) IE browsers will bark about secure / nonsecure items.. was that the aversion to the full URL? |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
eznetlinks -
Joined: 27 Sep 2003 Posts: 144
|
Posted: Wed Mar 31, 2004 6:14 pm Post subject: |
|
|
ok doesn,t matter if i have register_globals = On or off works the same as long as i have display_errors = Off . I have include working in most files except my Virtual Host index file. Probably something wrong with that file. Guess i'll have to work that out myself.
netkinetics
Been there, Done That, Got the T-Shirt. but Thanks. All input is GREATLY appreciated. The problem is somehow related to the path. I've tried file/main.php, ./file/main.php, ../file/main.php . Also file/main.php is in a virtual directory. It will include the file if in top level directory.
Thanks All
:D :D :D
Edit: well i guess that makes sense, probably won't work in virtual directory. won't even work with full url. |
|
Back to top |
|
 |
|