Hey,

If you wanna traversing in PHP and then want to storeing in mysql then
you can use like this for an eg.

If you have a file like -
/home/httpd/html/modules/Your_Account/index.php

Try this - $module_name = basename(dirname(__FILE__));


__FILE__ would give something
Like:"/home/httpd/html/modules/Your_Account/index.php"

dirname(__FILE__) gives "/home/httpd/html/modules/Your_Account"

basename(dirname(__FILE__)) gives "Your_Account".

If you want only file name you can use like basename(__FILE__)

Then you can store in your MySQL.

____________
10x,
Ankur Dave


-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Brian E Boothe
Sent: Monday, October 16, 2006 7:50 PM
To: [email protected]
Subject: [php_mysql] mysql help

HI all ;

   I wanna know how to recursively traverse a directory Structure then
add
the Full path and just the Filename in an MySQL database



   _____ 

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf
Of gmacie
Sent: Friday, October 13, 2006 3:02 PM
To: [email protected]
Subject: [php_mysql] mysql error



You should use the newer mysql connector for php 5. It is mysqli
instead of mysql. I is for improved. It is better to get it from the
mysql site not the php site. You can find it here. Then add a line to
your php.ini and check you phpinfo.

HYPERLINK
"http://dev.mysql.com/downloads/connector/php/"http://dev.mysql.-com/dow
nloa
ds/-connector/-php/

Gordon




--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date:
10/14/2006



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.408 / Virus Database: 268.13.4/476 - Release Date:
10/14/2006



[Non-text portions of this message have been removed]



The php_mysql group is dedicated to learn more about the PHP/MySQL web
database possibilities through group learning. 
Yahoo! Groups Links






The information contained in, or attached to, this e-mail, contains 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and is subject to legal privilege. If you 
have received this e-mail in error you should notify the sender immediately by 
reply e-mail, delete the message from your system and notify your system 
manager. Please do not copy it for any purpose, or disclose its contents to any 
other person. The views or opinions presented in this e-mail are solely those 
of the author and do not necessarily represent those of the company. The 
recipient should check this e-mail and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.

www.aztecsoft.com


The php_mysql group is dedicated to learn more about the PHP/MySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php_mysql/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to