[PHP] require_once('') relative path problem

2004-04-22 Thread Sheeraz fazal
Hi,
I have problem in undertanding the require_once/require/include/include_once
functionality. Php files in my project are located in different folders.
Some folders have common files for other files. And file layout is like this

/*
File: a.php
*/
require_once('../test/db.php');
...


/*
File: db.php
*/
require_once('../globals/global.php');
...


when i include a.php in another file i get error for global.php file that
path could not be found. And if i correct the path in db.php then someother
file which is using db.php will get error. So, can someone elaborate that
how relative path works in require_once. what is the starting directory for
require_once function which is using relative path.

Or

Is there any way that i can included some constant which include the
absolute path from which all relative paths can be determined?

Comments welcome.

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



[PHP] Can i get all content for list box in $_POST

2004-03-23 Thread Sheeraz fazal
Hi All,

I have a list box in a page (html select tag with multiple selection
option). Items are added dynamically in list box, using javascript. Can i
get all elements of listbox in my php code.

If i do $_POST['select_tag_name']. I get a variable not an array. Thus
getting only one item.

Comments?

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



Re: [PHP] Can i get all content for list box in $_POST

2004-03-23 Thread Sheeraz fazal
Thanks.
As same select element is used in PHP and JavaScript. Naming a tag ending
in sqare brackets [] is JavaScript error. Till now either PHP will not
produce desired results or JavaScript will give me error :(

Pablo Gosse [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Sheeraz fazal wrote:
 Hi All,

 I have a list box in a page (html select tag with multiple
 selection option). Items are added dynamically in list box, using
 javascript. Can i get all elements of listbox in my php code.

 If i do $_POST['select_tag_name']. I get a variable not an array.
 Thus getting only one item.

 Comments?

http://www.php.net/manual/en/faq.html.php#faq.html.select-multiple

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



Re: [PHP] Can i get all content for list box in $_POST

2004-03-23 Thread Sheeraz fazal
My Mistake. I over looked :(

Pablo Gosse [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Sheeraz fazal wrote:
 Hi All,

 I have a list box in a page (html select tag with multiple
 selection option). Items are added dynamically in list box, using
 javascript. Can i get all elements of listbox in my php code.

 If i do $_POST['select_tag_name']. I get a variable not an array.
 Thus getting only one item.

 Comments?

http://www.php.net/manual/en/faq.html.php#faq.html.select-multiple

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



[PHP] Coding Style Guide Neded

2004-03-20 Thread Sheeraz Fazal
Hi all,

I am looking for Coding Style Guide for PHP?

Thanks

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



[PHP] PHP Certification

2004-03-15 Thread Sheeraz fazal
HI,

I need information about the php certification, from www.expertrating.com .
Does this site has good market reputation?
Does www.php.net has some plans to introduce certification path?

Comments welcome.

Thanks,
Sheri,

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