[PHP] Fatal error: Cannot use [] for reading

2002-10-10 Thread Leif K-Brooks
Any idea what that error means? I'm trying to do something like: $array[] = array(a => "a value"); -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP General Mailing List (http://www

RE: [PHP] Working with dates in PHP

2002-10-10 Thread David Freeman
> I am at my wits end at the moment. I am pulling a > datetimestamp out of a database and attempting to > get the year month and day out of it. Do it in your sql query. Check out chapter 6 of the MySQL manual for ways to manipulate dates. Eg. $query = "select DATE_FORMAT(DTStamp, '%e %b

Re: [PHP] Re: site path

2002-10-10 Thread Bogdan Stancescu
If you really need to get picky, then I shall... well, point out the obvious: echo "Go to some folder"; And since we got into this, there are some servers where you don't have control over http config, so you shouldn't want to link to directories at all - you'd want to specify the exact f

Re: [PHP] Re: Fatal error: Cannot use [] for reading

2002-10-10 Thread Bogdan Stancescu
Yup, that works as well. You could try a debugging echo after that line and see if it gets executed. You probably have a problem somewhere else. Bogdan Leif K-Brooks wrote: > $actions[] = array("display" => "Discard"); > > Bogdan Stancescu wrote: > >> That piece of code works. Maybe you could

Re: [PHP] Fatal error: Cannot use [] for reading

2002-10-10 Thread Bogdan Stancescu
It works both with and without quotes around the key. Which is normal - you will be amazed at how forgiving PHP is - try this: Bogdan Leif K-Brooks wrote: > I am using quotes around the key, just a dumb mistake in the example... > > Leif K-Brooks wrote: > >> Any idea what that error means?

Re: [PHP] Re: Fatal error: Cannot use [] for reading

2002-10-10 Thread Leif K-Brooks
$actions[] = array("display" => "Discard"); Bogdan Stancescu wrote: > That piece of code works. Maybe you could be so kind as to post the > exact piece of code which doesn't work? If it's not too much to ask, > of course. > > Bogdan > > Leif K-Brooks wrote: > >> Any idea what that error means?

[PHP] Re: Fatal error: Cannot use [] for reading

2002-10-10 Thread Bogdan Stancescu
That piece of code works. Maybe you could be so kind as to post the exact piece of code which doesn't work? If it's not too much to ask, of course. Bogdan Leif K-Brooks wrote: > Any idea what that error means? I'm trying to do something like: > $array[] = array(a => "a value"); > -- PHP G

Re: [PHP] Fatal error: Cannot use [] for reading

2002-10-10 Thread Leif K-Brooks
I am using quotes around the key, just a dumb mistake in the example... Leif K-Brooks wrote: > Any idea what that error means? I'm trying to do something like: > $array[] = array(a => "a value"); > -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to dec

Re: [PHP] Working with dates in PHP

2002-10-10 Thread Tom Rogers
Hi, Friday, October 11, 2002, 3:53:55 PM, you wrote: JP> I am at my wits end at the moment. I am pulling a datetimestamp out of a JP> database and attempting to get the year month and day out of it. However JP> I am stumped as how to do it. JP> The format is "-MM-DD HH:MM:SS" and its com

Re: [PHP] Re: site path

2002-10-10 Thread @ Edwin
Well, I agree about what you said > IMHO, the second comes more natural to write, is easier to understand at > a glance, is less prone to errors and, well, it's shorter! but remember the topic is about whether the trailing slash would create a problem or not. I think you're aware that there are

Re: [PHP] Re: Capitalizing names ... needs the final touch...

2002-10-10 Thread -<[ Rene Brehmer ]>-
Hi Ulf Rompe, On Tue, 08 Oct 2002 12:10:15 +0200, you wrote about "[PHP] Re: Capitalizing names ... needs the final touch..." something that looked like this: >"-<[ Rene Brehmer ]>-" <[EMAIL PROTECTED]> writes: > >>Firstname Middlename Last-name >> >> But I want the last namepart after the s

[PHP] Working with dates in PHP

2002-10-10 Thread James Purser
I am at my wits end at the moment. I am pulling a datetimestamp out of a database and attempting to get the year month and day out of it. However I am stumped as how to do it. The format is "-MM-DD HH:MM:SS" and its coming out of a mySQL database. Is there anyway I can get the informatio

Re: [PHP] Animation in PHP

2002-10-10 Thread Noodle Snacks
"Daniel Masson" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED] ... > No way man !! > hai , >I want to create an animated line in php from (x,y) to > (x1,y1).will > php support animation.if so how do i go about in doing this.how do i > draw a char so t

Re: [PHP] Re: site path

2002-10-10 Thread Bogdan Stancescu
Ok, then I honestly don't understand why anyone would rather write this echo "Go home"; instead of this echo "Go home"; IMHO, the second comes more natural to write, is easier to understand at a glance, is less prone to errors and, well, it's shorter! Bogdan @ Edwin wrote: > Not exactly. Si

Re: [PHP] Best way to put layout, code on pages?

2002-10-10 Thread Jule Slootbeek
What i usually do, is make a file layout.php with a couple of functions, header() footer() etc. then i include ('layout.php') and call the functions when i need them and i can send things to the header, like the page title etc. include ('layout.php'); header("Home"); blablablab footer(

[PHP] Best way to put layout, code on pages?

2002-10-10 Thread Leif K-Brooks
I've been using php for a while now, and I've made plenty of web sites in that time. But there's been a nagging problem: the best way to put a layout and global code on each page. My first site had two .txt files with header and footer code which were fopen()ed (with absolute paths!) and eva

[PHP] Re: displaying fixed number of records

2002-10-10 Thread DoL
Sorry I am working with flat file records. I have put all the records in an array, but would I be able to keep the values in the array and loop thru it for the subsequent pages (by calling the same page itself)? Thanks. "Dol" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL

[PHP] Re: PDF to PHP (code)

2002-10-10 Thread Ken
Jason, I had trouble with PDFLib too, and I turned to this site for help! I found this much easier to implement and the webmaster will give you lots of help!! http://ros.co.nz/pdf/ This does not use PDFLib. "Jason Morehouse" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL P

Re: [PHP] Re: MySQL back up

2002-10-10 Thread Ken
Okay, I took out all the reason for error, I took the variables out of the code and replaced them with the actual values. I do not execute the gzip function. All I get is an empty file. Also I made sure the back up directory is set to 777. Now phpMySQLAdmin will perform the same function, so ther

RE: [PHP] Calling PHP (cgi) from a perl script and passsing parameters

2002-10-10 Thread Jim Carey
sorry - seems my earlier post was base64 - apologies to all :-( - here it is again yes - am using 4.2.1 output from phpinfo() shows: _SERVER["argv"] Array ( ) _SERVER["argc"] 0 which agrees with the $argc and $argv output. details on the build include: Build Date Jul 18 2002 08:29:02 Confi

RE: [PHP] Calling PHP (cgi) from a perl script and passsing parameters

2002-10-10 Thread Jim Carey
yes - am using 4.2.1 output from phpinfo() shows: _SERVER["argv"] Array ( ) _SERVER["argc"] 0 which agrees with the $argc and $argv output. details on the build include: Build Date Jul 18 2002 08:29:02 Configure Command './configure' '--prefix=/usr/local/php' '--with-con

[PHP] Redhat 8.0 / php-cvs - /usr/lib/httpd/build/instdso.sh: No such file or directory

2002-10-10 Thread Robert Mena
Hi, I've reinstalled my devel machine with RedHat 8.0. After a cvs update of php I've decided to recompile and install since the mod-php (which I did not install) from RedHat is a little outdated :) I've removed the config.cache, make clean and make. The compilation was ok, but while trying to

[PHP] Re: Refresh my Memory

2002-10-10 Thread Omar Campos
Visit http://javascript.internet.com/user-details/resolution-page.html it'll be helpful. "Stephen" <[EMAIL PROTECTED]> escribió en el mensaje 000e01c270a9$08ba5b90$0200a8c0@melchior">news:000e01c270a9$08ba5b90$0200a8c0@melchior... Hello, I forget exactly how to do this so I'm turning to you all

Re: [PHP] Calling PHP (cgi) from a perl script and passsing parameters

2002-10-10 Thread Sascha Cunz
What you're referring is CLI, not CGI Version of PHP. Anyway, i assume, you're using a PHP version 4.2 or higher. Have a look at the $_SERVER['argc'] and $_SERVER['argv']. Sascha Am Donnerstag, 10. Oktober 2002 23:57 schrieb Jim Carey: > Hi, > > have been having problems passing parameters to

RE: [PHP] MS SQL server TEXT column

2002-10-10 Thread John W. Holmes
Make sure you're using POST as your form method and not GET. ---John Holmes... > -Original Message- > From: Vail, Warren [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 10, 2002 5:04 PM > To: php > Subject: [PHP] MS SQL server TEXT column > > Encountered the following problem with

Re: [PHP] Refresh my Memory

2002-10-10 Thread Stephen
I though PHP had an element that got that information from the user... - Original Message - From: "Timothy J Hitchens" <[EMAIL PROTECTED]> Newsgroups: php.general To: "'PHP List'" <[EMAIL PROTECTED]> Sent: Thursday, October 10, 2002 5:06 PM Subject: RE: [PHP] Refresh my Memory > You w

[PHP] Calling PHP (cgi) from a perl script and passsing parameters

2002-10-10 Thread Jim Carey
Hi, have been having problems passing parameters to a PHP script from a Perl script . I call the PHP script using (as an example): $a=`/home/ozbcoz/http/testphp.php fred=testing`; print "$a"; then I have a PHP script showing: #!/usr/local/php/bin/php -q "; print "0=$argv[0]"

Re: [PHP] DB speed

2002-10-10 Thread Dan Ostrowski
Yes persistant connections to pg make a LOT of difference and are recommended.. I have never had overhead problems using them eaither. I am terribly sorry i didn't mention this before. Just make sure you have proper indexes and you should be good to go. regards, dan Uros Gruber wrote: >Hi!

[PHP] Re: [PHP-DEV] PHP 4.3.0pre1 [updated]

2002-10-10 Thread Markus Fischer
Shouldn't this be synchronised with a Win32 binary release? (Apologies if pre1 binaries for Win32 are available, I can't seem to get the inforamtion where they are?) thanks, - Markus On Thu, Oct 10, 2002 at 03:05:22PM -0400, Andrei Zmievski wrote : > Apologies, the cor

RE: [PHP] Refresh my Memory

2002-10-10 Thread Timothy J Hitchens
You will need to use Javascript... NOT PHP.. Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: Friday, 11 October 2002 8:05 AM To: PHP List Subject: [PHP] Refresh my Memory Hello, I forget exactly h

[PHP] Refresh my Memory

2002-10-10 Thread Stephen
Hello, I forget exactly how to do this so I'm turning to you all for some help. How can I make it so that if a user does not have a resolution of atleast 1024x768, it sends them to another page or recomends that they up their screen size before viewing the page? Any help will be great. Thanks!

[PHP] 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

RE: [PHP] MS SQL server TEXT column

2002-10-10 Thread Vail, Warren
Seems to me I tried this, but I could have had another problem, I'll give it another try, thanks, It's really great working with all this help available, double thanks, Warren Vail Tools, Metrics & Quality Processes -Original Message- From: Marco Tabini [mailto:[EMAIL PROTECTED]] Sent:

Re: [PHP] MS SQL server TEXT column

2002-10-10 Thread Marco Tabini
Set TEXTSIZE usually does it for me: Make sure that you select a database first and that the connection is not closed between your Set TEXTSIZE op and the actual query. If you are not specifying a connection in you mssql_query statement, make sure that you haven't opened a different connection

Re: [PHP] Undefined variables?

2002-10-10 Thread Marco Tabini
I think the problem is simply that the other server had a different configuration setting for error reporting, since I can't find $debug_wintrmte configured anywhere. I don't know what this code is for, so it's difficult for me to say how to fix it, since any changes I make may affect the outcome

[PHP] MS SQL server TEXT column

2002-10-10 Thread Vail, Warren
Encountered the following problem with the Microsoft SQL Server interface. I am not sure where the problem exists, but I am looking for a workaround. I inserted a row into a table that contained a text column, and inserted over 5kb string into the text field. On retrieving the row the server ret

RE: Re[2]: [PHP] DB speed

2002-10-10 Thread SHEETS,JASON (HP-Boise,ex1)
Checkout osdb, it's the "Open Source Database Benchmark" it supports Postgres and MySQL and is available at http://osdb.sourceforge.net. To test Postgres and MySQL you will need both installed on the machine you try to compile from, you will need to compile with --with-mysql and --with-postgresql

Re: [PHP] Undefined variables?

2002-10-10 Thread Justoman
Thanks for the feedback, I've never actually posted here, so Kevin, cut me some slack. Here's whats up, The script I'm trying to run is called "Battlestats" It's set up on at: http://www.darkwatchclan.com/battlestats/bfserverinfo.php (That's where I'm trying to get it to work) Now, the exact sa

Fw: [PHP] Undefined variables?

2002-10-10 Thread Kevin Stone
Not to be rude.. but you have got to be kidding. :-\ There's no way for anybody to tell what's going on without seeing the code. One way or another the script isn't being given the information it is expecting. My guess is that the programmer isn't doing any checking within the script. He's ass

Re: [PHP] Undefined variables?

2002-10-10 Thread Marco Tabini
Of course, you should switch to UNIX :-) Seriously, have you looked at the source on those lines? Can you post the source code otherwise so we can take a look and let you know? The error you are receiving usually means that a variable is used without having been initialized. For example: $b = $

Re[2]: [PHP] DB speed

2002-10-10 Thread Uros Gruber
Hi! I make some more test for this. When i enable pconect (persistant) the result amazed me. PGSQL Total time: 0.0070 Execution time: 0.0034 MySQL Total time: 0.0072 Execution time: 0.0027 Now PGSQL is as fast as mysql or maybe a lile slower. So is this normal that non-persistant is so

[PHP] Undefined variables?

2002-10-10 Thread Justoman
I get this with almost all the scripts I run, It's a whole shit load of undefined variables! what are these and please, how can they be fixed? Here's what I'm talkin bout, http://www.darkwatchclan.com/battlestats/bfserverinfo.php -Justoman -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] PHP 4.3.0pre1

2002-10-10 Thread bbonkosk
Is there a changelog for this, so we know what to test? -Brad > Hello, > > PHP 4.3.0pre1 is available for download from http://qa.php.net. PHP > 4.3.0 incorporates a very large number of changes, new features, and > bugfixes, and thus requires extensive testing. This preliminary release > is mea

RE: [PHP] help with mysql query / logic

2002-10-10 Thread Pablo Oliva
Please disregard, I think that I figured it out. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help with mysql query / logic

2002-10-10 Thread Marco Tabini
Can you perhaps post the structure of your tables? That would make it easier to help (at least for me) On Thu, 2002-10-10 at 15:40, Pablo Oliva wrote: > I have 2 tables, one with job ad information, and a second one with the > locations that this ad applies to. > > When a person queries the jo

[PHP] help with mysql query / logic

2002-10-10 Thread Pablo Oliva
I have 2 tables, one with job ad information, and a second one with the locations that this ad applies to. When a person queries the job ad table with their criteria, I would also have to query the location table to see if the location that they chose applies to this ad. I am not sure how to co

[PHP] PHP 4.3.0pre1 [updated]

2002-10-10 Thread Andrei Zmievski
Apologies, the correct URL to download PHP 4.3.0pre1 from is: http://www.php.net/~andrei/php-4.3.0pre1.tar.bz2 -Andrei http://www.gravitonic.com/ * 2 + 2 = 5 for extremely large values of 2. * -- PHP General Mailing List (http://www.php.net/) To un

[PHP] Re: displaying a select number of rows from a sql query

2002-10-10 Thread Keith Posehn
I tried this code, and it still just keeps 'a loopin'... What is wierd is that I have some if the code I tried in my site on other pages, and it functions without a problem...any thoughts? Thanks for the help. -Keith Posehn "Owen Prime" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">n

[PHP] PHP 4.3.0pre1

2002-10-10 Thread Andrei Zmievski
Hello, PHP 4.3.0pre1 is available for download from http://qa.php.net. PHP 4.3.0 incorporates a very large number of changes, new features, and bugfixes, and thus requires extensive testing. This preliminary release is meant to kick-start this testing while the fixes are still being performed. Pl

Re: [PHP] DB speed

2002-10-10 Thread 1LT John W. Holmes
> >From my experience, I found this: > > Selecting 1000 records from 2 tables using a join, 10secs and up. I'd say you have a problem in your database / table configuration, i.e. indexes. There's no way a join between two tables that are properly indexed should take 10 seconds for only 1000 rows.

[PHP] xmlDoValidityCheckingDefaultValue undefined?

2002-10-10 Thread David Busby
List, I was installing PHP 4.2.3 with the latest zlib and latest libxml2 onto my RH73 box. When loading the libphp4.so Apache reports that 'xmlDoValidityCheckingDefaultValue' is undefined, there is no error in the compile of Apache (2.0.43) or PHP. I have tried recompiling Apache with

Re: [PHP] DB speed

2002-10-10 Thread PHP List
>From my experience, I found this: Selecting 1000 records from 2 tables using a join, 10secs and up. Selecting 1000 records for table 1, all records from table 2, then using php to figure out which rows from table 2 belong to table 1 and building my own combined array, less than a second. > W

RE: [PHP] DB speed

2002-10-10 Thread Randum Ian
Would access be a lot slower than these then for a query with multiple tables and other such things? Is there a resource on the net regarding this? -Original Message- From: Dan Ostrowski [mailto:[EMAIL PROTECTED]] Sent: 10 October 2002 18:43 To: tuxen Cc: [EMAIL PROTECTED] Subject: Re: [

Re: [PHP] DB speed

2002-10-10 Thread Dan Ostrowski
For SIMPLE SIMPLE selects and inserts, MySQL will probably remain faster. If you are doing a very simple web set up where you are mostly inserting and spitting out single table information, MySQL will be the way to go. Anything else, I would recommend PostgreSQL. It's got FAR superior featur

Re: [PHP] Re: site path

2002-10-10 Thread @ Edwin
Not exactly. Single quotes are fine. I missed the fact that the single quotes here >> echo("Go home"); will be included in the source--sorry about that. Well, then, to rewrite the code earlier, > echo 'Go home'; this way: echo "Go home"; that would still not give you the "trailing slash"

Re: [PHP] displaying fixed number of records

2002-10-10 Thread Chris Hewitt
This often comes up. If you look in the archives there is reference to code for this. I know there is also some complete code on phpbuilder, phpclasses or another server, sorry I don't remember which but you will find it in the archives. HTH Chris DoL wrote: >Hi > >I would like to fixed the

[PHP] Re: Echo Regular Expression Pattern

2002-10-10 Thread Mike Smith
Nevermind. This works: ereg("Q+[0-9]{6}",$Data[$n],$qarticle); $GetLine = explode("\r", ereg_replace("Q+[0-9]{6}","http://support.microsoft.com/default.aspx?scid=kb;[LN];$qarticle[0]\"; target=\"blank\">$qarticle[0]",$Data[$n])); "Mike Smith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROT

[PHP] Re: Found the problem with the libmcrypt.....

2002-10-10 Thread Scott Fletcher
Found another workaround to the libmcrypt problem. What I did is to get into the source directory that hold all of hte untarred source code. I then use the command, 'cp -r libmcrypt-2.5.3 /usr/local/lib' then I edit the php.ini as shown --clip-- mcrypt.algorithms_dir = /usr/local/lib/lib

[PHP] Echo Regular Expression Pattern

2002-10-10 Thread Mike Smith
I'm trying to return a pattern found in a regular expression. I can find the Expression (Q followed by 6 numbers, yes MS Q articles) using this: $GetLine = explode("\r", ereg_replace("Q+[0-9]{6}","http://support.microsoft.com/default.aspx?scid=kb;[LN];Q+[0-9]{6}\"; target=\"blank\">'Q+[0-9]{6}'",

Re: [PHP] Problems pulling up a certain url with curl

2002-10-10 Thread Marco Tabini
Did you compile curl from scratch? If so, did you enable https? On Thu, 2002-10-10 at 12:13, Brandon Orther wrote: > Hello, > > I am farely familar with the use of curl. I have used it in the past > and it seems to be working going to test pages such as php.ner and so > on. When I try to got

[PHP] Problems pulling up a certain url with curl

2002-10-10 Thread Brandon Orther
Hello, I am farely familar with the use of curl. I have used it in the past and it seems to be working going to test pages such as php.ner and so on. When I try to goto https://members.ev1.net/rsmembers/english/index.asp?pge=ttick it doesn't return any headers or html at all. But if you got t

Re: [PHP] Re: who's in the chat?

2002-10-10 Thread Chris Hewitt
Oliver Witt wrote: >The problem is when they leave. There is no leave button because most of them >wouldn't use it anyway. >Olli > That is a problem with html, not a particular application. You have to time the visitor out. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] Re: site path

2002-10-10 Thread Bogdan Stancescu
I'm not sure exactly what you're trying to point out - does XHTML require double quotes? Bogdan @ Edwin wrote: > Just a thought... > > If you're going to write an XHTML compatible code, you wouldn't really have > this problem --> > >> echo("Go home"); > > > since you'll probably write som

RE: [PHP] Problems with Fileupload

2002-10-10 Thread Daniel Masson
Sascha: I worked on a web based file share system, .. Users had to select the file(s) to share and start uploading to the remote servers, had, timeout problems, size problems, etc. This users are inside an intranet, so i started to use the php ftp functions, so i placed the web based application

Re: [PHP] displaying fixed number of records

2002-10-10 Thread Jason Wong
On Thursday 10 October 2002 23:41, DoL wrote: > Hi > > I would like to fixed the number of records for example 10 to be display on > a web page. That is when there is more than 10 records, I would like to > display a "2" for user to click on to display the second page starting with > record numbe

[PHP] displaying fixed number of records

2002-10-10 Thread DoL
Hi I would like to fixed the number of records for example 10 to be display on a web page. That is when there is more than 10 records, I would like to display a "2" for user to click on to display the second page starting with record number 11, and so on. Appreciate if someone can share their e

Re: [PHP] NewB PHP / mysql Q

2002-10-10 Thread 1LT John W. Holmes
The problem is that array keys are case sensitive. You can use what you've got, but the case has to match what you're selecting in your query. I see you are trying to use $row['UName'] but I don't see you selecting that in your query. ---John Holmes... - Original Message - From: "Timoth

Re: [PHP] Multi-Dimensional Arrays

2002-10-10 Thread Jonathan Duncan
Yeah, you rock, that works great. Not to mention you have a great name. Jonathan Duncan "Jonathan Sharp" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > try doing this for each item: > > $cartArray[] = array('itemnumber' => $itemnumber, 'brand' => $brand, >

[PHP] Re: who's in the chat?

2002-10-10 Thread Oliver Witt
Jason Young schrieb: > Well, when they enter, when its building all of the frames or however > you ahd it set up.. just throw an INSERT in there.. > > Do you know if the chat patrons use the 'leave' button? That could throw > out another SQL statement, or put it wherever you have your unload > fu

Re: [PHP] Re: who's in the chat?

2002-10-10 Thread Oliver Witt
James E Hicks III schrieb: > My chat stores usernames, timestamps in a table on DB. When refresh script runs, > it updates the timestamp on usernames and deletes rows in DB with stale > timestamps (no refresh run). Pulling usernames from this table gives current > chat users. > > James > That's

[PHP] Re: who's in the chat?

2002-10-10 Thread Jason Young
Well, when they enter, when its building all of the frames or however you ahd it set up.. just throw an INSERT in there.. Do you know if the chat patrons use the 'leave' button? That could throw out another SQL statement, or put it wherever you have your unload functions... -J Oliver Witt wr

RE: [PHP] Re: who's in the chat?

2002-10-10 Thread James E Hicks III
My chat stores usernames, timestamps in a table on DB. When refresh script runs, it updates the timestamp on usernames and deletes rows in DB with stale timestamps (no refresh run). Pulling usernames from this table gives current chat users. James -Original Message- From: Oliver Witt [m

[PHP] Re: who's in the chat?

2002-10-10 Thread Oliver Witt
Jason Young schrieb: > Without knowing how your chat works as far as entering the chat, you DO > have to put some sort of name with the person, right? Perhaps you could > just update a temp table with their chat name.. > > Or if you can only get into chat by logging into the site, you could > ju

[PHP] Re: who's in the chat?

2002-10-10 Thread Jason Young
Without knowing how your chat works as far as entering the chat, you DO have to put some sort of name with the person, right? Perhaps you could just update a temp table with their chat name.. Or if you can only get into chat by logging into the site, you could just set a bit with their cookie

[PHP] Re: Problems with Fileupload

2002-10-10 Thread Jason Young
Hmm.. I have a page where I can upload up to 9 files at once -- and it works quite well.. However, these are just standard JPG pictures, and wouldn't get anywhere near 3M -- maybe its the way that PHP scripts time out after 30 seconds?? --Jason Sascha Braun wrote: > Hi freaks, > > my image l

[PHP] Re: who's in the chat?

2002-10-10 Thread Oliver Witt
Jason Young schrieb: > What's the chat built in? Is this web-page-based, telnet-based? > Is this your code (i.e. you have access to the source and can modify it > on-the-fly)? > > Oliver Witt wrote: > > Hi all, > > Here's my problem: > > I created a web site with a chat. People have to log in to

[PHP] Re: who's in the chat?

2002-10-10 Thread Jason Young
What's the chat built in? Is this web-page-based, telnet-based? Is this your code (i.e. you have access to the source and can modify it on-the-fly)? Oliver Witt wrote: > Hi all, > Here's my problem: > I created a web site with a chat. People have to log in to get on the > site, but not to get

[PHP] Problems with Fileupload

2002-10-10 Thread Sascha Braun
Hi freaks, my image library isn't still finished yet, but it's running and with a running system are comming new problems up. I remember that there was a discussion about big file uploads. It seems, that i stepped into the same trap, 'cause my web- server doesn't accept more than two uploads ea

Re: [PHP] Re: site path

2002-10-10 Thread @ Edwin
Just a thought... If you're going to write an XHTML compatible code, you wouldn't really have this problem --> >echo("Go home"); since you'll probably write something like this: echo 'Go home'; Of course, I didn't mean that you can't do that with HTML... Anyway, for the original questi

[PHP] who's in the chat?

2002-10-10 Thread Oliver Witt
Hi all, Here's my problem: I created a web site with a chat. People have to log in to get on the site, but not to get into the chat. I can tell who's on the site but not in the chat. Is there anywhy to tell who's in the chat? Thanks, Olli -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] How to do Date Calculation

2002-10-10 Thread Aaron Gould
This is actually in PEAR. I use this all the time for my date calculations. Just use this code in your script and you'll have access to all the Date_Calc functions... include("Date/Calc.php") $dc = new Date_Calc; $dc->[Date_Calc_Function1]; $dc->[Date_Calc_Function2]; $dc->[Date_

Re: [PHP] How to do Date Calculation

2002-10-10 Thread Greg Macek
You could also check out this class someone wrote called Date_calc. It's a nice frontend to all sorts of date calculations you may run across. It's helping me quite a bit for my projects. http://www.phpinsider.com/php/code/Date_Calc/ On Thu, 2002-10-10 at 06:04, Noodle Snacks wrote: > > "Jason

RE: [PHP] connecting to a txt file - newbie

2002-10-10 Thread Timothy J Hitchens
Try: Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: jennifer [mailto:[EMAIL PROTECTED]] Sent: Friday, 11 October 2002 12:14 AM To: [EMAIL PROTECTED] Subject: [PHP] connecting to a txt file - newbie good morning, im having some issues

[PHP] connecting to a txt file - newbie

2002-10-10 Thread jennifer
good morning, im having some issues with the simple task of pulling from a txt file. my code is: job app db and the txt file contains one line of bogus txt. you can see my results here: http://www.villany2k1.com/text.php. if anyone has any info as to what i am doing wrong, i would

Re: [PHP] DB speed

2002-10-10 Thread Chris Hewitt
Simon Taylor wrote: >Well obviously - cos MySQL rocks!!, but seriously I also did some tests and >got variable results from different db's - even got an odbc connection to >access to run faster than mysql at one stage!! - something tells me there >are other factors contributing.. >-Original M

RE: [PHP] NewB PHP / mysql Q

2002-10-10 Thread Timothy J Hitchens
Try this.. select u.id, u.lname as lastname, u.frname as firstname, ... etc oh and the reason you get an error is that you can't have a dot in a variable etc... Timothy Hitchens (HITCHO) [EMAIL PROTECTED] HITCHO has Spoken! -Original Message- From: inpho [mailto:[EMAIL PROTECTE

[PHP] NewB PHP / mysql Q

2002-10-10 Thread inpho
Hi all, I need a bit of quick help here I've joined 2 tables together with this code here: $result=mysql_query("select u.id, u.cid, u.lname, u.fname, u.vld, c.id, c.cname from tblclient u, tblcompany c where u.vld=1 and u.cid = c.id",$db); then I put it into an array: while ($row=mysql_fet

Re: [PHP] Found the problem with the libmcrypt.....

2002-10-10 Thread Scott Fletcher
Hello Tom! Oh yea, I tried the '--with-mcrypt=../mcrypt-2.6.3' option and the PHP's './configure' stopped accepting the mcrypt stuffs. After compiling and installing it. PHP got messed up and didn't work too well. It took me many times to find the workaround to it but they don't work. So, I h

[PHP] Re: site path

2002-10-10 Thread Bogdan Stancescu
I generally use both - the first for includes and the second for HTML links. Do NOT include the trailing slash. The reason is simple: Go home"); ?> is much simpler to write and follow than Go home"); ?> because you obviously can't write Go home"); ?> Please remember that since the trailing slash

RE: [PHP] DB speed

2002-10-10 Thread tuxen
I think i read something a while ago, about mysql being faster, having less features, but postgres being a little slower but able to handle LARGE databases better than mysql. I could be wrong, so dont take my word for it. At the end of the day they are both good db's. On Thu, 2002-10-10 at 09:02,

RE: [PHP] DB speed

2002-10-10 Thread Simon Taylor
Well obviously - cos MySQL rocks!!, but seriously I also did some tests and got variable results from different db's - even got an odbc connection to access to run faster than mysql at one stage!! - something tells me there are other factors contributing.. Cheers Simon -Original Message-

[PHP] private and public in class objects

2002-10-10 Thread electroteque
hi i was wondering when this was or is going to be implemented into class objects ? i have the syntax for it ie setting a private function _function() and private var $_var, it doesnt seem to be working in PHP 4.2.2 ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

RE: [PHP] Animation in PHP

2002-10-10 Thread Daniel Masson
No way man !! hai , I want to create an animated line in php from (x,y) to (x1,y1).will php support animation.if so how do i go about in doing this.how do i draw a char so that it keeps on changing colors till i close browser. thanks for help Arun

RE: [PHP] Re: MySQL back up

2002-10-10 Thread Daniel Masson
Ken .. You have to replace exec("mysqldump -u\"$sqlusername\" -p\"$sqlpassword\" \"$sqldatabase\" > $backupdir/$nam.sql"); With this exec("mysqldump -u \"$sqlusername\" --password=\"$sqlpassword\" \"$sqldatabase\" > $backupdir/$nam.sql"); Please not the space after -u And i agree owen about

RE: [PHP] Re: MySQL back up

2002-10-10 Thread John W. Holmes
> Okay here is the new code and this is still not working. > > > require("./config.php"); > > $sqlserver = $server1; > $sqlusername = $username1; > $sqlpassword = $password1; > $sqldatabase = $database1; > > //** > $nam_bak=date('D,d-m-Y'); Can you have a filename

[PHP] DB speed

2002-10-10 Thread Uros Gruber
Hi! I'm making some testing over DB.php (PEAR) And i wan't to know if this is normal. I've made some script where I connect do SQL server and execute one simple (1row) query. I use pgsql and mysql. tables and indexes are same for both servers. So test table is identical Whe i execute

Re: [PHP] How to do Date Calculation

2002-10-10 Thread Noodle Snacks
"Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Thursday 10 October 2002 18:37, Jack wrote: > > Dear all > > I'm trying to make a script which will show the month before current month! > > Is there anyway i can do this? > > > > Example : > > > >

Re: [PHP] Re: Object methods - memory usage?

2002-10-10 Thread Chris Hewitt
Bogdan Stancescu wrote: > Anyway, I don't expect this message to gain me a reply to my original > question - just wanted to explain myself for whoever has the curiosity > to find out why I reacted like that. There. There are many reasons why people do not reply. In my case it is sheer ignoran

Re: [PHP] How to do Date Calculation

2002-10-10 Thread Jason Wong
On Thursday 10 October 2002 18:37, Jack wrote: > Dear all > I'm trying to make a script which will show the month before current month! > Is there anyway i can do this? > > Example : > > CurrentPervious > > OctoberSeptember date("F", strtotime("last month")

Re: [PHP] Re: Object methods - memory usage?

2002-10-10 Thread Bogdan Stancescu
Heh, I should probably be mad at your reply - but I'm not, I'm objective enough to realize I could've replied the same way to a whining message like mine below. What I AM mad about is the reply of rest of the people on this list. And that's not because nobody replied to this question alone, b

  1   2   >