Re: [PHP] index.php

2003-02-02 Thread Florin Dumitrescu
Hi, 

Add "index.php" to DirectoryIndex section in your httpd.conf file, if
you're using Apache...

HTH,
Florin.

On Sun, 2 Feb 2003 17:45:33 -0800
Renato Lopes <[EMAIL PROTECTED]> wrote:

> Hi!
> 
> I have called a index.php file in a directory.
> 
> Every time I point my browser to that directory the contents of the 
> directory gets displayed instead of the index.php file.
> 
> Can anyone help?
> 
> Thanks in advance
> 
> Renato
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

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




Re: [PHP] little problem with ' " and stuff

2003-02-10 Thread Florin Dumitrescu
Hi,

On Mon, 10 Feb 2003 09:27:38 +0100
"Michiel van Heusden" <[EMAIL PROTECTED]> wrote:

> hi there,
> 
> i'm having a small problem, wondering if anybody can help
> 
> // a line in my script defining $url
>  $url = $directory . '/main.php?id=' . $id;
> 
> // a line later on in the frameset calling this $url
>  echo '';

I believe the correct format is:
echo ''; 
Note the dots!

HTH,
Florin.

> this gives me a paring error on the last line
> 
> any suggestions??
> 
> thanks
> michiel
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
Florin Dumitrescu
Webmaster
Departamentul Internet
Astral Telecom SA, Sucursala Brasov

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




Re: [PHP] Checking for Null Variables

2003-03-07 Thread Florin Dumitrescu

Check out http://php.net/empty

HTH,
Florin.

On Fri, 7 Mar 2003 12:24:29 -0500
"Christopher J. Crane" <[EMAIL PROTECTED]> wrote:

> How do I check if a variable is blank or not. I am returning data from
> a MySQL database and if a field is empty I would like to do something
> different.
> 
> I tried
> if($field["Name"] == "") { do this }
> else { do this }
> 
> It does not work right. Actually, at one point, it was working in the
> exact opposite manner.
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
Florin Dumitrescu
Webmaster
Departamentul Internet
Astral Telecom SA, Sucursala Brasov

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



Re: [PHP] Screen

2003-03-07 Thread Florin Dumitrescu

This is a client matter, so PHP can't help you.
Look into some JavaScript documentation for 'screen.width' &
'screen.height'. 

HTH,
Florin.

On Fri, 7 Mar 2003 21:32:58 +0100
"Kiswa" <[EMAIL PROTECTED]> wrote:

> Hod do i get the with and hight of the users screen and then put it
> into a variable?
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 


-- 
Florin Dumitrescu
Webmaster
Departamentul Internet
Astral Telecom SA, Sucursala Brasov

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