Slight Problem with PHP

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


Joined: 24 Mar 2004
Posts: 2

PostPosted: Wed Mar 24, 2004 1:28 am    Post subject: Slight Problem with PHP Reply with quote

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 View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Wed Mar 24, 2004 2:59 am    Post subject: Reply with quote

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 View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
eznetlinks
-


Joined: 27 Sep 2003
Posts: 144

PostPosted: Wed Mar 24, 2004 4:18 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Mar 24, 2004 5:06 pm    Post subject: Re: Slight Problem with PHP Reply with quote

Brutal_Truth,

This is a PHP configuration problem related to the new variables naming convention.
Read http://www.aprelium.com/forum/viewtopic.php?t=274 , http://www.aprelium.com/forum/viewtopic.php?t=3753 , and http://www.aprelium.com/forum/viewtopic.php?t=896 for more information.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
eznetlinks
-


Joined: 27 Sep 2003
Posts: 144

PostPosted: Wed Mar 24, 2004 8:39 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
Brutal_Truth
-


Joined: 24 Mar 2004
Posts: 2

PostPosted: Wed Mar 24, 2004 10:11 pm    Post subject: Reply with quote

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 View user's profile Send private message
eznetlinks
-


Joined: 27 Sep 2003
Posts: 144

PostPosted: Wed Mar 31, 2004 4:01 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Wed Mar 31, 2004 4:40 am    Post subject: Reply with quote

What's wrong with giving the full URL?
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
netkinetics
-


Joined: 31 Mar 2004
Posts: 2

PostPosted: Wed Mar 31, 2004 12:54 pm    Post subject: Reply with quote

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 View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Mar 31, 2004 3:11 pm    Post subject: Reply with quote

eznetlinks,

The way include works depends on your PHP settings. We recommend reading the documentation of the include command http://www.php.net/manual/en/function.include.php .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
eznetlinks
-


Joined: 27 Sep 2003
Posts: 144

PostPosted: Wed Mar 31, 2004 6:14 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
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