[PHP-DB] RE: Upload images with minimun effort from final user

2005-09-28 Thread Matthias Willerich
A.J. Brown: snip A better solution is to rename the image to the unique ID of the news article it's associated with (assuming there is only one image allowed per article). This helps eliminate the chances of overwriting an existing image without bothering the user with error messages. When I do

[PHP-DB] Re: Upload images with minimun effort from final user

2005-09-28 Thread A.J. Brown
Matthias, The md5 approach is just added security, which is something I always use in situations like this. All it really does is mask it, so a user can't see what the ID is (or that it's a sequential number at all) and therefore view images they were not intended to see. For example, if

[PHP-DB] strange ldap bind to a Sun DIrectory Server 5.2

2005-09-28 Thread Nicolas Guilmain
Hello, One of my php script works no more after an upgrade to a 5.2 Directory Server. In fact everthing is ok but the ldap_modify function. This function returns : Warning: ldap_modify(): Modify: Insufficient access My local ldap admin has sent me the log for the transaction :

[PHP-DB] Duplicating return records?

2005-09-28 Thread Lee Herbst
I am having a very strange problem with the function below. It creates a comma delimited list of property owner names and address. It could return several thousand results. The problem I am having is that it displays the correct name and address for the first 650 or so results and then returns

RE: [PHP-DB] Re: Upload images with minimun effort from final user. .

2005-09-28 Thread Norland, Martin
Security through obscurity is a prominent placebo these days. If you don't want users deleting the wrong images, make the class/function/script that deletes them check for permission. Don't have your security dependant on the client. cheers, - Martin Norland, Sys Admin / Database / Web

[PHP-DB] oracle complex type and oci_new_collection

2005-09-28 Thread Hal McFarlane
Is it possible to use a complex collection in PHP as shown below? Oci_new_collection is successful, but the OCI-Collection-getElem(i) returns false for each record returned. If we change from a complex type to a simple type, the data returns as expected.

[PHP-DB] oci_new_collection and complex type

2005-09-28 Thread hal9000jw
Is it possible to use a complex collection in PHP as shown below? Oci_new_collection is successful, but the OCI-Collection-getElem(i) returns false for each record returned. If we change from a complex type to a simple type, the data returns as expected.

RE: [PHP-DB] PHP vs. ASP

2005-09-28 Thread Hutchins, Richard
Google: php vs asp Just south of 4 Million results. Plenty of information there. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 28, 2005 9:56 AM To: php-db@lists.php.net Subject: [PHP-DB] PHP vs. ASP Hi! (1) How does PHP compare to

Re: [PHP-DB] PHP vs. ASP

2005-09-28 Thread Lendy Chen
google php vs asp 2,570,000,000 vs 1,170,000,000 2 vs 1 2005/9/28, Hutchins, Richard [EMAIL PROTECTED]: Google: php vs asp Just south of 4 Million results. Plenty of information there. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: [PHP-DB] PHP vs. ASP

2005-09-28 Thread Bastien Koert
PHP has way way way more functionality and is still being supported and developed by the folks at Zend and the OS community. ASP works nicely with MySQL thru the myODBC connector driver from MySQL. Its not perfect though and has some issues. ASP is also no longer supported or developed by MS

Re: [PHP-DB] oracle complex type and oci_new_collection

2005-09-28 Thread Larry E. Ullman
Seriously, how many times are you going to send this email to the list? I've seen it at least 5 times now in the past day, all the same email under slightly different FROM and subjects. Send an email once. If someone can answer, they will. On Sep 28, 2005, at 10:18 AM, Hal McFarlane wrote:

Re: [PHP-DB] oracle complex type and oci_new_collection

2005-09-28 Thread argoo
Sorry, weird issue with my newsgroup client. It seemed like the post was being dropped. I thought it was a verification issue with the server so I tried sending from different accounts. Larry E. Ullman wrote: Seriously, how many times are you going to send this email to the list? I've seen

[PHP-DB] passing DOMDocument Object to another function

2005-09-28 Thread jonathan
I am accessing information in my database. If the format is set to be html, I echo out the variables just fine. If the format is set to be xml, I create a DOMDocument. The problem is that in processing the result set, it calls several other functions. How do I pass the DOMDocument Object to

[PHP-DB] If (test against a regex)

2005-09-28 Thread Paul Ohashi
Is there a way to test a variable against a regex similar to the way Perl uses the binding operator =~ ? e.g. if ($envLine =~ /^* information:/) Will match: Environment information: Plugin information: Etc information: Thanks in

Re: [PHP-DB] If (test against a regex)

2005-09-28 Thread Micah Stevens
www.php.net/preg_match -Micah On Wednesday 28 September 2005 3:10 pm, Paul Ohashi wrote: Is there a way to test a variable against a regex similar to the way Perl uses the binding operator =~ ? e.g. if ($envLine =~ /^* information:/) Will match: Environment