[PHP-WIN] RE: Rows of data all the same

2002-10-10 Thread Uttam
i was also having trouble with odbc/access, may be my function can work for you too: try this code: "; $numfields=odbc_num_fields($result); for ($i=1;$i<=$numfields;$i++) { echo "".odbc_field_name($result,$i).""; } echo ""; while (odbc_fetch

RE: [PHP-WIN] works on one server and not another

2002-10-10 Thread Uttam
is the register_globals setting in php.ini is same in both the machines? i think u need to use $_POST[name] instead of $name... regds, -Original Message- From: Tim Blackwell [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002 18:46 To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] wo

RE: [PHP-WIN] Creating files with PHP - need help

2002-10-10 Thread Uttam
long file or folder names like "Program files" have equivalent short names. It is most probably "c:\progra~1" for "C:\Program Files". To see the short name, right click on the folder or file and in the properties, check the MS-DOS name. so your path can be like "C:/progra~1/apache~1/htdocs/abc.t

php-windows Digest 11 Oct 2002 06:33:53 -0000 Issue 1382

2002-10-10 Thread php-windows-digest-help
php-windows Digest 11 Oct 2002 06:33:53 - Issue 1382 Topics (messages 16325 through 16330): fwrite is adding blank lines 16325 by: benjamin delman slow form / server problem 16326 by: Omar Campos 16327 by: Jim Hunter Re: passing variables part 2 16328 by: C

[PHP-WIN] RE: works on one server and not another

2002-10-10 Thread Uttam
1. is mysql server on both the machines (localhost)? 2.mysql gives access permission based on username@machinenameORipaddress, are your sure the user name you are giving has insert permission on the table specified? 2. hope in both the machine php is configured to understand '' as php code delimit

[PHP-WIN] Security and File System Access

2002-10-10 Thread David P Lenk
I am planning to implement PHP under Deefield Website Pro 3.1 (not visnetic 3.5x). We have read through some of the documentation of the PHP.NET site and found that PHP allows direct filesystem access based on the rights of your webserver. We feel that it would be a good ideal to disalow the use

Re: [PHP-WIN] passing variables part 2

2002-10-10 Thread Cam Dunstan
db - a small word of caution on using the ampersand to send variables within the URL - it works just like Dash said it would but don`t try and send huge lumps of data this way - there are limits (possibly a couple of hundred bytes or so) to the length of the URL allowed. Limits you wouldn`t have

Re: [PHP-WIN] slow form / server problem

2002-10-10 Thread Jim Hunter
My first suggestion is to shut down the server then start it back up to see if the problem goes away. If it did, then some piece of software you are running has a memory leak or is consuming memory without releasing it back to the OS and it is choking your throughput (I get this from time to time)

[PHP-WIN] slow form / server problem

2002-10-10 Thread Omar Campos
Hi. I run php in win2k server, IIS and MS SQL Server 2k. I've created some data bases and tables. On the beginning, sending a php form (through the intranet) was quick. Now, it spends 32 seconds (sometimes less) to send a form. I've tried on a empty data base but it's still slow. I don´t have a cl

[PHP-WIN] fwrite is adding blank lines

2002-10-10 Thread benjamin delman
attached is a script i wrote to open a file, display it's contents in a textarea, then submit to a different case where the file is re-written. what i notice is that when there is a blank line, after re-writing that blank line gets doubled. so there are now two blank lines where there was one. wh

php-windows Digest 10 Oct 2002 16:27:26 -0000 Issue 1381

2002-10-10 Thread php-windows-digest-help
php-windows Digest 10 Oct 2002 16:27:26 - Issue 1381 Topics (messages 16306 through 16324): Re: Information not always saved in MySQL when too slow 16306 by: Paul van der Vlis Re: Creating files with PHP - need help 16307 by: Aidal Re: works on one server and not another

Re: [PHP-WIN] passing variables part 2

2002-10-10 Thread db
ah, thanks! "Dash McElroy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Use an ampersand (&) like follows: > > echo "Press to continue"; > > -Dash > > Faith, n: > That quality which enables us to believe what we know to be > untrue. > > On Wed, 9 Oct 2002, d

Re: [PHP-WIN] uploading multiple files with $HTTP_POST_FILES

2002-10-10 Thread Nino V
Sorry, I mistyped the code! echo(" Send this file: and this other: "); Bye, Nino = http://www.vessella.it (italiano, esperanto, kiswahili, english) http://www.changamano.org (Iniziative di solidarietĂ  per la Tanzania) Corso di lingua swahili: http://corsoswah

[PHP-WIN] uploading multiple files with $HTTP_POST_FILES

2002-10-10 Thread Nino V
Hi, how can I upload multiple files? What's wrong with these lines? echo(" Send this file: and this other: "); They seem not working! Thanks, Nino = http://www.vessella.it (italiano, esperanto, kiswahili, english) http://www.changamano.org (Iniziative di so

[PHP-WIN] PESR Installation on windows...

2002-10-10 Thread John Asendorf
Has anyone ever successfully installed pear on a windows machine? If so, could you give me a hand? I've been racking my head for a dayand a half now and the docs are fairly useless when it comes to to windows install... -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP-WIN] Need help with Echo

2002-10-10 Thread Rich Gray
Bonjour Keith Use mysql_fetch_array($result) not mysql_fetch_row($result) - this will return an associative as well as a standard array. Ciao Rich -Original Message- From: Keith Calvert [mailto:[EMAIL PROTECTED]] Sent: 07 July 2002 07:56 To: [EMAIL PROTECTED] Subject: [PHP-WIN] Need hel

RE: [PHP-WIN] uploading filez with $HTTP_POST_FILES ?????

2002-10-10 Thread toby z
ya mikey its workin now thnx . heres me code pal . in load.php echo(" Send this file: "); in up.php if (copy($_FILES['userfile']['tmp_name'], "E:\\final project\\zroot\\" . $unique_id.".pdf")) { echo(" file successfully uploaded ");

Re: [PHP-WIN] works on one server and not another

2002-10-10 Thread Tim Blackwell
below is the html form and php file that inserts the info into the database. for some reason it's not passing the data from the form to the php script and i'm getting undefined variables. it ends up just inserting a blank record into the database. these are the errors i get? Notice: Undefined

RE: [PHP-WIN] multiple include_paths

2002-10-10 Thread Asendorf, John
I figured it out, I think... it seems you can't have multiple include paths on different drives. Does that sound right? Would anyone consider that a bug or should that be the way it is? Thanks, John - John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.

Re: [PHP-WIN] Re: Rows of data all the same

2002-10-10 Thread Douglas F. Keim
$Query = "SELECT * from $TableName"; $Results = odbc_do($Link, $Query); while (odbc_fetch_row($Results)) { echo odbc_result_all($Results); } "B.A.T. Svensson" <[EMAIL PROTECTED]> wrote in message 000b01c27056$815a91d0$[EMAIL PROTECTED]">news:000b01c27056$815a91d0$[EMAIL PROTECTED]... > How di

RE: [PHP-WIN] Re: Rows of data all the same

2002-10-10 Thread Svensson, B.A.T. (HKG)
How did you do loop? Did you do something like this: $result = mssql_query($query); while (@line = mssql_fetch_row($result)) { print "$line[0], @line[1], @line[3]\n"; } > -Original Message- > From: Douglas F. Keim [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 10, 2002 1:1

RE: [PHP-WIN] uploading filez with $HTTP_POST_FILES ?????

2002-10-10 Thread Mikey
Also - do you have track_vars set to on? Please let me know how you get on, as I am about to try using this myself in a bit. regards, Mikey "If you give someone a program, you will frustrate them for a day. If you teach them how to program, you will frustrate them for a lifetime." > -Origi

[PHP-WIN] Re: Rows of data all the same

2002-10-10 Thread Douglas F. Keim
This is an update on this problem. Direct SQL commands are working just fine with the query, but as soon as I use the php commands it get these results. I have tried stepping through the rows with various odbc commands with similar results. Now I am suspecting that the $Results are only getting

RE: [PHP-WIN] Need help with Echo

2002-10-10 Thread Davy Obdam
Hi Kieth, I would use this : $result = mysql_query("select * from proprietaires") or die( mysql_error() ); while ($row = mysql_fetch_row($result)) { echo ".$row['Id']."; echo "\n"; echo $row[2]; echo "\n"; } I hope this works, Best regards, Davy Obdam, mailto:[EMAIL PROTECTED] You wrote

RE: [PHP-WIN] uploading filez with $HTTP_POST_FILES ?????

2002-10-10 Thread Mikey
Try using the $_FILES array... regards, Mikey <-- Insert stream of consciousness here > -Original Message- > From: toby z [mailto:[EMAIL PROTECTED]] > Sent: 10 October 2002 11:15 > To: php hlp list > Subject: [PHP-WIN] uploading filez with $HTTP_POST_FILES ? > > > ok now i know i

[PHP-WIN] Need help with Echo

2002-10-10 Thread Keith Calvert
Hi I've just started with Php and MySql I have installed the PhpTriad all in one package on my windows XP and all seems to be going well. I have the following problem, here is the code $result = mysql_query("select * from proprietaires") or die( mysql_error() ); while ($row = mysql_fetch_row($r

[PHP-WIN] uploading filez with $HTTP_POST_FILES ?????

2002-10-10 Thread toby z
ok now i know i ve actually lost it all i cant upload files now this file waz workin fine till i turned register globalz off n now im gettin this error Warning: Unable to open 'Array' for reading: No such file or directory in e:\final project\zroot\s i r\up.php on line 52 Either you did not up

Re: [PHP-WIN] works on one server and not another

2002-10-10 Thread toby z
hay tim y doesnt it work ? vat error do u get its really strange coz i ve XP at my home n win2k pro at my workplace and all the code i bring from home vorks on my vrkplace machine do do lemme no bout any errors i MIGHT b able to help goodluck toby --- Tim Blackwell <[EMAIL PROTECTE

Re: [PHP-WIN] Creating files with PHP - need help

2002-10-10 Thread Aidal
If I use full path I get in trouble with spaces in the path like "c:\program files\Apache ...", in this case the path would be "c:\program" due to the space in the path. Of cause I could make a new dir on C like "c:\articles" to work around this, but if I could get the files into a sub folder of h

[PHP-WIN] Re: Information not always saved in MySQL when too slow

2002-10-10 Thread Paul van der Vlis
Paul Van Der Vlis wrote: > Hello, > > I have problems with some pages which work fine under Linux (with > different program versions). The problem is, that when I am too slow (5 > minutes?), the information from a PHP page is not always saved in the > MySQL database. Does somebody know more ab