[PHP-DB] Writing to files (db related) ish

2002-09-25 Thread Dave Carrera
Hi All I know how to open, read & write to files using Php. But how can you write some content to a particular place in a file, Not the start or end but say the middle some where. Example: Basic html file Write my stuff here!!! This eventually will relate to a db so I hope its not c

[PHP-DB] Sync MySql to MS Sql database

2002-09-25 Thread Matt Brown
Hi, I not sure if this maybe the most appropriate group to post to but it is kind of related. Here goes: I have a client who runs an internal Ms Sql database. They have a website which runs a php/mysql backend for storing data. They want to be able to synchronize the data between the two to kee

[PHP-DB] Stress Test Script?

2002-09-25 Thread Jay
Does anyone have a good php script that will test (i.e. benchmark) my MySQL machine and my Web server? Thanks! -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Breeders database

2002-09-25 Thread Russell Griechen
Here is the kernel ...What other attributes/indexes in the table would I need to generate a 5 generation pedigree...I am still trying to find those queries. # Host: localhost Database : hounds # # # Table structure for table 'hound' # DR

[PHP-DB] Multiple Referral Levels

2002-09-25 Thread Daren Cotter
I'm using MySQL to attempt to track multiple referral levels for a web site. I.e., member 1 refers 2, 2 refers 3, 3 refers 4...member 4 is is on member 1's 3rd referral level. Anyway, I need to be able to compile a list of the # of referrals for a specific member on any given level (up to 12 leve

[PHP-DB] php and javascript

2002-09-25 Thread Smita Manohar
hii all, in my php script, im havin one form, in which having checkboxes. values for which are coming from database, and i want to do some action for checked vales. so i create array of that checkbox. now i want to include one link for "Check All" which helps user to check all boxes in single

RE: [PHP-DB] Multiple Referral Levels

2002-09-25 Thread Ryan Jameson (USA)
For performance sake I'd recommend having a table configured just like your first example minus referer as well as a seperate table that is: (table references) id referer int level Anytime you add a new user you climb the chain until you hit the top of the chain, for each user you pop in an id

[PHP-DB] I need some information!!!

2002-09-25 Thread Rodrigo
Does anyone know any good scripts for authentication in a site or have specials tips to say.i´m using sessions, but do i have to use session before or after the login page??? Rodrigo Equipe Pratic Sistemas Rodrigo Corrêa Fone: (14) 441-1700 [EMAIL PROTECTED]

RE: [PHP-DB] I need some information!!!

2002-09-25 Thread Hutchins, Richard
Rodrigo, Check the PHP-DB archives from yesterday and the day before. Lots of comments about this very subject. Happy hunting. Rich > -Original Message- > From: Rodrigo [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 25, 2002 2:32 PM > To: PHP > Subject: [PHP-DB] I need some in

RE: [PHP-DB] file permissions

2002-09-25 Thread John Holmes
> When I create a dir using mkdir in php how can I set it so the dir created > has full access? I need it as it will store temporary files before they > are emails then removed after being received. That bit is easy, but how > do I actually set the permission of the folder and files within it so

[PHP-DB] Re: unicode with postgresql

2002-09-25 Thread Yasuo Ohgaki
Roslyn Jose wrote: > hello, > > when im creating the postgres database how do i set the character set to utf-8, i >want to work with unicode, could u give me the syntax. thanks alot. > You have things to do. Follow the manual, then you should be able to use UTF-8 http://www.postgresql.org/ido

[PHP-DB] How to read an image file into a string/array/etc ....???

2002-09-25 Thread Chris Payne
Hi there everyone, I use the following to read in a text/php etc . file into a string so I can zip it, works no problem: $filename2 = "/home/domain/domain33/web/zip/whois.php"; $fd = fopen ($filename2, "r"); $filedata = fread ($fd, filesize ($filename2)); fclose ($fd); However, how can I r

[PHP-DB] Re:[PHP-DB] php and javascript

2002-09-25 Thread xde7ori
hy, if you have found the answer plz send me a copy... i'm having the same type of problems... I want to modify or to create a new select option when someone clicks a button. 1. I extract some values from a database 2. i want when someone clicks a button, in the same page, to load other values fro

RE: [PHP-DB] Re: onnecting to MSSQL database from Linux?

2002-09-25 Thread Chris Grigor
I have got a copy of ctllib-linux-elf.tgz as it says on the php website, but I need another file called devlib.tgz. Anyone know where I can get a copy from??? Chris -Original Message- From: Avi Schwartz [mailto:[EMAIL PROTECTED]] Sent: 18 September 2002 02:44 To: [EMAIL PROTECTED] Sub