RE: [PHP] Delete an upload

2006-07-17 Thread mike bellerby

You unlink it.

Mike



 Message Received: Jul 17 2006, 04:26 PM
 From: Benjamin Adams [EMAIL PROTECTED]
 To: php php php-general@lists.php.net
 Cc: 
 Subject: [PHP] Delete an upload
 
 I created a form where users can upload.
 I'm working on the section where admins can delete entries.
 When I have a user delete an entery, I have it taking out of MySQL 
 (working fine)
 But how do I delete the file that was uploaded?
 Thanks for any help
 
 
 Ben
 
 -- 
 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] How do I make a HTML tree for a set of nodes?

2006-06-04 Thread Mike Bellerby

You could do it by dynamically generating an image.

Mike


Niels wrote:


On Sunday 04 June 2006 15:30, tedd wrote:

[snip]

 


You can dynamically generate a table and place text (and/or color) the
cells that are nodes -- that would be my approach. You would need to know
the width and depth of the tree and then just fill in the cells that are
nodes.

hth's

tedd
   



Yes, well... It's a tad more complicated I think. Yes, I can make a table,
finding the dimensions shouldn't be a big problem. Placing the nodes in the
right cells isn't as easy, and making the connections is downright
difficult.

A problem with using a table is that cells can't be individually sized.
However DIVs or TDs is a minor problem. The major problem is to walk
through the tree properly (recursively probably), and remember the
connections. And then rendering them...


Thank you for your answer,
Niels

 





RE: [PHP] Text between two tags

2005-11-10 Thread mike bellerby

try explode using td align=right class=yfnc_tabledata1 then on array 
index[1] explode /td 
your answer will then be in index[0]

Hope this helps

Mike



 Message Received: Nov 10 2005, 03:01 PM
 From: Normmy2k [EMAIL PROTECTED]
 To: php-general@lists.php.net
 Cc: 
 Subject: [PHP] Text between two tags
 
 Hello
 I'm trying to extract some text between two tags:
 
 Example
 I have this string :
 $text='td/td
 td align=right class=yfnc_tabledata3/td
 td/td
 td align=right class=yfnc_tabledata2/td
 td/td
 td align=right class=yfnc_tabledata11234/td
 td/td td/td td/td td align=right class=yfnc_tabledata5/td 
';
 
 And I want to retrieve the number 1234 between td align=right
 class=yfnc_tabledata1 and /td
 Any idea??
 
 Normmy.
 
 --
 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] array simple question

2005-09-13 Thread Mike Bellerby
If you want to print the keys for all the arrays in the main array then 
use allkeys.




matt VanDeWalle wrote:


hello,
I have a simple question, not really a problem this time.
I know that the function print_r() will print an array but if that 
array has sub-arrays it prints everything and if you don't use more 
command or a pipe of some kind that could be useless in some cases, 
but I am just wondering, for an array that has several arrays in it, 
is there a way to print the array names that are contained in the 
main array but not the contents of each?

thanks
matt



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



[PHP] GD library

2005-07-09 Thread Mike Bellerby

Where is the best place to get php_gd2.php

Thanks

Mike

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



[PHP] GD library

2005-07-09 Thread Mike Bellerby

Where is the best place to get php_gd2.dll

Thanks

Mike

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



Re: [PHP] using require

2005-05-28 Thread Mike Bellerby
If your php is using a permanant connection then it will be the same 
connection otherwise it will be a new connection as the connection will 
be droped at the end of the thread. As I understand it anyway!!


Hope this helps!

Mike


Cima wrote:


hi all,


i have my web site working something like this: in every php script i have require(auth.php). this auth.php has my connection to my postgresql server and database along with some other stuff i need for the user to be authenticated to my web site. when i log on, this auth.php connects to the dbserver and checks if my username and password are stored and then i go to a home page. my connection is stored in $dbh. 
what happens when i start moving through all these web pages (php scripts), each requires auth.php, with respect to the connection? is a new connection established for every web page i go into that uses my $dbh for querying purposes or is it the same connection i originally made when i first logged into the web site?



any info will be highly appreciated!!


thanx.
 



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