[PHP] setting the document root path in linux

2007-09-19 Thread tbt

Hi

I'm a newbie to php and I'm using 

require_once($_SERVER['DOCUMENT_ROOT']."/includes/class.announcement.php"); 

to import pages in php. This works fine on a windows environment. However
when I move this application to a linux environment the files dont get
imported properly. This is because in a windows environment 
$_SERVER['DOCUMENT_ROOT'] returns c:/xampp/htdocs etc.
but in a linux environment returns /home/servers etc.

How can this be rectified so that the path is properly picked up in a linux
environment
-- 
View this message in context: 
http://www.nabble.com/setting-the-document-root-path-in-linux-tf4479174.html#a12771923
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] error messages

2007-10-04 Thread tbt

Hi

I'm a newbie to php and i would like to know a way of viewing runtime errors
on the browser. Currently when an error occurs nothing is displayed on the
browser. Is there any way of viewing all error messages on the browser
itself.

Thanks
-- 
View this message in context: 
http://www.nabble.com/error-messages-tf4573258.html#a13053817
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] error messages

2007-10-05 Thread tbt

I added the following lines to the top of my script but still no error
messages show up on the browser. 
When a php error occurs the entire page is still shown blank.


Larry Garfield wrote:
> 
> On Friday 05 October 2007, Paul Scott wrote:
>> On Thu, 2007-10-04 at 22:38 -0700, tbt wrote:
>> > I'm a newbie to php and i would like to know a way of viewing runtime
>> > errors on the browser. Currently when an error occurs nothing is
>> > displayed on the browser. Is there any way of viewing all error
>> messages
>> > on the browser itself.
>>
>> You can up the error_reporting level in your php.ini, or you can simply
>> put the following line at the top of your script:
>>
>> ini_set("error_reporting", "E_ALL");
>>
>> or for an even stricter setting:
>>
>> ini_set("error_reporting", "E_STRICT");
>>
>> --Paul
> 
> You will also need to set:
> 
> ini_set('display_errors', 'On');
> 
> Some web hosts set it Off by default for security reasons, but you
> probably 
> want it on for development and testing.
> 
> -- 
> Larry GarfieldAIM: LOLG42
> [EMAIL PROTECTED] ICQ: 6817012
> 
> "If nature has made any one thing less susceptible than all others of 
> exclusive property, it is the action of the thinking power called an idea, 
> which an individual may exclusively possess as long as he keeps it to 
> himself; but the moment it is divulged, it forces itself into the
> possession 
> of every one, and the receiver cannot dispossess himself of it."  --
> Thomas 
> Jefferson
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/error-messages-tf4573258.html#a13054779
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] error messages

2007-10-05 Thread tbt

yes it is



pscott wrote:
> 
> 
> On Fri, 2007-10-05 at 00:32 -0700, tbt wrote:
>> I added the following lines to the top of my script but still no error
>> messages show up on the browser. 
>> When a php error occurs the entire page is still shown blank.
>> 
> 
> Is your script *supposed* to output something?
> 
> --Paul
> 
> 
> All Email originating from UWC is covered by disclaimer
> http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
View this message in context: 
http://www.nabble.com/error-messages-tf4573258.html#a13056353
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] error messages

2007-10-07 Thread tbt

Yes i was looking for view parse errors on my browser but now I guess will
have to use an IDE Like zend :)



tedd wrote:
> 
> At 10:27 PM +0200 10/5/07, Zoltán Németh wrote:
>>2007. 10. 5, péntek keltezéssel 12.57-kor tedd ezt írta:
>>
>>  > I long for the time where my editor said "Offending syntax on line
>> 236".
>>
>>my editor still says "parse error" and shows me the line number... ;)
>>
>>greets
>>Zoltán Németh
> 
> Consider yourself lucky, or me unfortunate.  :-)
> 
> All my development is spent online -- the browser god is not forgiving.
> 
> One of these days I'll get the Zend IDE to work.
> 
> Cheers,
> 
> tedd
> 
> --
> ---
> http://sperling.com  http://ancientstones.com  http://earthstones.com
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/error-messages-tf4573258.html#a13090113
Sent from the PHP - General mailing list archive at Nabble.com.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] re[PHP] gister_globals

2008-01-15 Thread tbt

Hi,

I'm a newbie to php and i would like to set register_globals to 'on' from my
php script itself(eg:- index.php). Is there any way of doing this.

Thanks
-- 
View this message in context: 
http://www.nabble.com/register_globals-tp14868899p14868899.html
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: re[PHP] gister_globals

2008-01-15 Thread tbt

Hi

I have two php files as follows

session_register.php // sets the value of $refString


and

session_data.php // retrieves the value of $refString


This code works fine when register_globals is set to 'on'. But the hosting
site has set it to 'off' and I have no way of adding a .htaccess file. Is
there anyway to modify my php files so that it works correctly when
register_globals is set to 'off'. I only need the value of the variable
$refString accessible from all the php files.

Thanks



tbt wrote:
> 
> Hi,
> 
> I'm a newbie to php and i would like to set register_globals to 'on' from
> my php script itself(eg:- index.php). Is there any way of doing this.
> 
> Thanks
> 

-- 
View this message in context: 
http://www.nabble.com/register_globals-tp14868899p14871630.html
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php