[PHP] RE: [PHP-DB] Dynamic Website Question!

2003-11-30 Thread Bronislav Klucka
> I want to have a PHP website that feeds information > off a mysql database. But generally changes occour > and instead of asking users to refresh the page to get > the updates is there a way to provide the updates > without them needing to refresh the page? > > E.G. For like shooping Carts, Chat

[PHP] RE: [PHP-DB] Dynamic Website Question!

2003-11-30 Thread JeRRy
Hi, I am not familiar with DHTML and how it can be used to talk to PHP to update a certain part of a page. That is all I need, is one section of the page, not the entire page, to be refreshed. The part is just text from a database. However on the page I want backgrounds, images etc but I don't

[PHP] RE: [PHP-DB] Dynamic Website Question!

2003-11-30 Thread Bronislav Klucka
index.php first.php second.php function PSBrowser(){ this.ns4 = (window.document.layers); this.ie4 = (window.document.all && !window.document.getElementById); this.ie5 = (window

Re: [PHP] Suggestions for optimization?

2003-11-30 Thread Eugene Lee
On Sat, Nov 29, 2003 at 09:32:19AM -0800, Galen wrote: : : I'm working on some database search ranking code. It currently : represents 95-98% of the time spent when doing fuzzy seaches. I have : tried my best to optimize my code - algorithmic shortcuts, eliminating : session variables, unsettin

[PHP] RE: [PHP-DB] Dynamic Website Question!

2003-11-30 Thread Bronislav Klucka
> > Okay I see how that works. However I have a heap of > mysql queries to do and only want the output from the > database to show. > > > ele.innerHTML=""; > > So is the section I need to change? > > Now I have 2 options, I can include the code in that > file but it appears it don't like space

[PHP] Export data

2003-11-30 Thread Rosen
Hi, Is it possible to export some data to MSOffice format ( .doc and .xls ) , OOffice ( .sxw and sxc ) or .rtf format with PHP Thanks in advance ! Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP or PEAR MEETING on FOSDEM 2004 (belgium) ?

2003-11-30 Thread Christophe Gesché
http://www.fosdem.org/ 21 and 22 feb 2004 in Brussel ( Belgium - a little country in north of France, with good beer and chocolate. don't forget this argument :-) ) - -- Announcement -- - The __Free and Open source Software Developers' European Meeting__ is a 2 days event, organized by volunt

[PHP] Undefined offset on Windows not on Apache?

2003-11-30 Thread Chris Williams
I've created a script to parse through a data file which contains coma separated fields of data. The script works on Apache, however when I run it on under Windows (running PHP as a CGI) the script produces an Undefined offset notice. What is strange about this notice is that the line of code which

[PHP] Undefined offset on Windows not on Apache?

2003-11-30 Thread Chris Williams
I've created a script to parse through a data file which contains coma separated fields of data. The script works on Apache, however when I run it on under Windows (running PHP as a CGI) the script produces an Undefined offset notice. What is strange about this notice is that the line of code which

[PHP] Radius question

2003-11-30 Thread Robin Kopetzky
Has anyone seen or know of a PHP implementation of a RADIUS server?? Please reply off list - [EMAIL PROTECTED] Robin 'Sparky' Kopetzky Black Mesa Computers/Internet Service Grants, NM 87020 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Undefined offset on Windows not on Apache?

2003-11-30 Thread John W. Holmes
Chris Williams wrote: The first and last lines contain carriage returns. The second or middle line contains sample data. The script that reads and parses the data is: $countLines = fopen("data.txt", "r"); while (!feof($countLines)) { $newLine = fgets($countLines, 1024); echo "line leng

[PHP] Accessing .bat file from PHP

2003-11-30 Thread Reidar Solberg
I want to start a .bat file on my local pc from my webpage - to download some .txt files. I run PHP in my webpage - how can I make contact with the .bat file? Anyone tried this? Reidar Solberg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Accessing .bat file from PHP

2003-11-30 Thread Nathan Taylor
I believe... that the .bat file MUST be on the server for PHP to execute it. Nathan - Original Message - From: Reidar Solberg To: [EMAIL PROTECTED] Sent: Sunday, November 30, 2003 1:10 PM Subject: [PHP] Accessing .bat file from PHP I want to start a .bat file on my local p

RE: [PHP] Accessing .bat file from PHP

2003-11-30 Thread Jeroen Serpieters
exec()? http://php.net/exec Jeroen -- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end. (Henry Spencer) Politics.be op imode! http://i.politics.be/ -Original Message- From: Reidar Solberg [mailto:[EMAIL PROTECTED] Sent: Sunday, November 30, 2003 7:

[PHP] How to see the table structure

2003-11-30 Thread narayanan
Title: Blank Can any body tell how to view the structure of a table from php.  I was thinking around for the past two days.  I am using postgresql database.     thanks in advance  

Re: [PHP] Undefined offset on Windows not on Apache?

2003-11-30 Thread Chris Williams
I don't believe the disputed line of script is being executed because just before that line I include the following print statement, echo "array size: " . count($zip_forward) . " ID: $location_id"; which does not get executed when my conditional fails. Right you are on the error reporting, I incl

php-general Digest 30 Nov 2003 18:30:47 -0000 Issue 2446

2003-11-30 Thread php-general-digest-help
php-general Digest 30 Nov 2003 18:30:47 - Issue 2446 Topics (messages 171389 through 171405): Re: require_once() or die(); = fatal error 171389 by: Rasmus Lerdorf Re: [PHP-DB] Dynamic Website Question! 171390 by: Bronislav Klucka 171391 by: JeRRy 171392 by: B

[PHP] Stumped

2003-11-30 Thread Brian V Bonini
Warning: Invalid argument supplied for foreach() in /usr/local/www/vhosts/pa.eastcoastbicycles.com/htdocs/mainfile.php on line 42 Warning: Invalid argument supplied for foreach() in /usr/local/www/vhosts/pa.eastcoastbicycles.com/htdocs/mainfile.php on line 57 42: foreach ($_GET as $secvalue) { 57

[PHP] Variables - showing onpage

2003-11-30 Thread Biph
I have a question, and maybe I'm an idiot (alright not maybe). I can't get the damned variables to stop showing their variable names on the screen, like a variable $stock_quote appears in the HTML as $stock_quote, what the hell am I doing wrong? I'm using Win2K to test a site on my own computer usi

Re: [PHP] Stumped

2003-11-30 Thread Jason Wong
Please use a DESCRIPTIVE subject! On Monday 01 December 2003 02:51, Brian V Bonini wrote: > Warning: Invalid argument supplied for foreach() in > /usr/local/www/vhosts/pa.eastcoastbicycles.com/htdocs/mainfile.php on > line 42 > > Warning: Invalid argument supplied for foreach() in > /usr/local/www

Re: [PHP] Variables - showing onpage

2003-11-30 Thread Jason Wong
On Sunday 30 November 2003 15:54, Biph wrote: > I have a question, and maybe I'm an idiot (alright not maybe). I can't get > the damned variables to stop showing their variable names on the screen, > like a variable $stock_quote appears in the HTML as $stock_quote, what the > hell am I doing wrong?

RE: [PHP] Variables - showing onpage

2003-11-30 Thread Jeroen Serpieters
You have to put it between double quotes. Jeroen -- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end. (Henry Spencer) Politics.be op imode! http://i.politics.be/ -Original Message- From: Biph [mailto:[EMAIL PROTECTED] Sent: Sunday, November 30, 2003

[PHP] How to view the structure of a table

2003-11-30 Thread narayanan
Title: Blank Can any tell me how to view the structure of a table from php.  I am using postgresql database.   thanks in advance narayanan   [EMAIL PROTECTED]  

Re: [PHP] Variables - showing onpage

2003-11-30 Thread John Nichel
Biph wrote: I have a question, and maybe I'm an idiot (alright not maybe). I can't get the damned variables to stop showing their variable names on the screen, like a variable $stock_quote appears in the HTML as $stock_quote, what the hell am I doing wrong? I'm using Win2K to test a site on my own

Re: [PHP] How to view the structure of a table

2003-11-30 Thread Chris Garaffa
On Nov 30, 2003, at 2:07 PM, narayanan wrote: Can any tell me how to view the structure of a table from php.  I am using postgresql database. A Google search for postgresql describe table revealed this as the first result: http://forums.devshed.com/t38544/s.html Quote: "To get fields from a ta

[PHP] getting an variable value from an array entry

2003-11-30 Thread Ian Truelsen
I am trying to do the following: I have a text file to read in that contains something like "The temperature is $temp" This gets read into an array so that I can parse it out word by word (the only way I could think to do this, any other ideas are welcome). I do a test to see whether the first le

[PHP] Script help about array dimension

2003-11-30 Thread orlandopozo
I have this array definition: $array['ojpp'][1][][] = 'ferrer'; $array['test'][0] = 'ojpp'; $array['test'][1] = 'ferrer'; How could I do a script that give me this output: Array ( [0] => Array ( [0] => ojpp [1] => 1 [2] => 0 [3] => 0

RE: [PHP] getting an variable value from an array entry

2003-11-30 Thread Bronislav Klucka
The temperature is $$temp Brona > -Original Message- > From: Ian Truelsen [mailto:[EMAIL PROTECTED] > Sent: Sunday, November 30, 2003 9:27 PM > To: php > Subject: [PHP] getting an variable value from an array entry > > > I am trying to do the following: > > I have a text file to read i

RE: [PHP] BUG: fatal error uses html in cgi version (WAS: require_once() or die(); = fatal error)

2003-11-30 Thread Daevid Vincent
Hmm.. It's not turning it off for me. Hence the reason I tried to handle it gracefully myself. ;-) I get exactly what you see there below for the fatal error. This is from an RPM package for RH8. perhaps it is fixed in a version since 4.2.2? > -Original Message- > From: Rasmus Lerdorf [m

[PHP] Script help about array dimension

2003-11-30 Thread orlandopozo
I have this array definition: $array['ojpp'][1][][] = 'ferrer'; $array['test'][0] = 'ojpp'; $array['test'][1] = 'ferrer'; How could I do a script that give me this output: Array ( [0] => Array ( [0] => ojpp [1] => 1 [2] => 0 [3] => 0

Re: [PHP] getting an variable value from an array entry

2003-11-30 Thread Ian Truelsen
On Sun, 30 Nov 2003 21:44:50 +0100 "Bronislav Klucka" <[EMAIL PROTECTED]> wrote: > The temperature is $$temp > Unfortunately, that is not working for me. I have tried changing it in the text file, but that just outputs $$temp instead of the value of $temp. What I have is the array words, for whic

Re: [PHP] getting an variable value from an array entry

2003-11-30 Thread zhuravlev alexander
On Sun, Nov 30, 2003 at 01:04:08PM -0800, Ian Truelsen wrote: > On Sun, 30 Nov 2003 21:44:50 +0100 > "Bronislav Klucka" <[EMAIL PROTECTED]> wrote: > > > The temperature is $$temp > > > Unfortunately, that is not working for me. I have tried changing it in > the text file, but that just outputs $$

Re: [PHP] getting an variable value from an array entry

2003-11-30 Thread Ian Truelsen
On Mon, 1 Dec 2003 00:16:07 +0300 zhuravlev alexander <[EMAIL PROTECTED]> wrote: > Use eval. http://www.php.net/eval > > % cat temp.txt > Temperature $temp degree. > % cat temp.php > > $temp = '5'; > > $filename = "./temp.txt"; > $handle = fopen ($filename, "r"); >

[PHP] config/compile problems

2003-11-30 Thread Brian V Bonini
'./configure' '--with-apxs=/usr/local/www/bin/apxs' '--with-config-file-path=/usr/local/www/etc' '--enable-versioning' '--with-system-regex' '--disable-debug' '--enable-track-vars' '--with-gd=/usr/local' '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--wi

[PHP] Stumped

2003-11-30 Thread Brian V Bonini
Warning: Invalid argument supplied for foreach() in /usr/local/www/vhosts/pa.eastcoastbicycles.com/htdocs/mainfile.php on line 42 Warning: Invalid argument supplied for foreach() in /usr/local/www/vhosts/pa.eastcoastbicycles.com/htdocs/mainfile.php on line 57 42: foreach ($_GET as $secvalue) { 57

Re: [PHP] Stumped

2003-11-30 Thread Robert Cummings
On Sun, 2003-11-30 at 18:45, Brian V Bonini wrote: > Warning: Invalid argument supplied for foreach() in > /usr/local/www/vhosts/pa.eastcoastbicycles.com/htdocs/mainfile.php on > line 42 > > Warning: Invalid argument supplied for foreach() in > /usr/local/www/vhosts/pa.eastcoastbicycles.com/htdocs

Re: [PHP] Stumped

2003-11-30 Thread Brian V Bonini
On Sun, 2003-11-30 at 19:21, Robert Cummings wrote: > On Sun, 2003-11-30 at 18:45, Brian V Bonini wrote: > > Warning: Invalid argument supplied for foreach() in > > /usr/local/www/vhosts/pa.eastcoastbicycles.com/htdocs/mainfile.php on > > line 42 > > > > Warning: Invalid argument supplied for fore

Re: [PHP] move_uploaded_file, umask, and permissions

2003-11-30 Thread David T-G
Hi, all -- ...and then David T-G said... % ... % I have set my umask to 117 (and I change it when making a directory) and % I use move_uploaded_file to handle submitted files. ... % Must I really run chmod() on every move_uploaded_file() I process? Isn't % there a better way? Wow, it's not ofte

Re: [PHP] How to see the table structure

2003-11-30 Thread Eugene Lee
On Sun, Nov 30, 2003 at 11:53:41PM +0530, narayanan wrote: : : BlankCan any body tell how to view the structure of a table from php. : I was thinking around for the past two days. I am using postgresql : database. >From the command line psql monitor, do a "\d ". -- PHP General Mailing List (ht

Re: [PHP] getting an variable value from an array entry

2003-11-30 Thread Curt Zirzow
* Thus wrote zhuravlev alexander ([EMAIL PROTECTED]): > > % cat temp.txt > Temperature $temp degree. > % cat temp.php > > $temp = '5'; > > $filename = "./temp.txt"; > $handle = fopen ($filename, "r"); > $code = fread ($handle, filesize ($filename)); > fclose ($

[PHP] RE: [PHP-DB] Dynamic Website Question!

2003-11-30 Thread JeRRy
Hi, Okay let me explain what I want to do. Now I have a variety of queries to do to the database and echo's to echo out and how to output on the PHP page. But I am not sure how to get my code (below) sucessfully to work in the example in the previous email. (found lower) Could someone point me

Re: [PHP] Script help about array dimension

2003-11-30 Thread Curt Zirzow
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): > $array['ojpp'][1][][] = 'ferrer'; > $array['test'][0] = 'ojpp'; > $array['test'][1] = 'ferrer'; > > How could I do a script that give me this output: > > Array > ( > [0] => Array > ( > [0] => ojpp > [1] => 1

Re: [PHP] config/compile problems

2003-11-30 Thread Curt Zirzow
* Thus wrote Brian V Bonini ([EMAIL PROTECTED]): > './configure' '--with-apxs=/usr/local/www/bin/apxs' > '--with-config-file-path=/usr/local/www/etc' '--enable-versioning' > '--with-system-regex' '--disable-debug' '--enable-track-vars' > '--with-gd=/usr/local' '--with-freetype-dir=/usr/local' > '--

Re: [PHP] RE: [PHP-DB] Dynamic Website Question!

2003-11-30 Thread JeRRy
I am using frames. As mentioned in the email(s)... If you read it it shows 3 different php files. One is the index to display 1 frame and hide the second frame. The displaying frame has the outputed information and a section defined to be refreshed by the hidden frame. The hidden frame consists

Re: [PHP] move_uploaded_file, umask, and permissions

2003-11-30 Thread Curt Zirzow
* Thus wrote David T-G ([EMAIL PROTECTED]): > Hi, all -- > > I have set my umask to 117 (and I change it when making a directory) and > I use move_uploaded_file to handle submitted files. > > The temporary file is mode 600 when it lands in /var/tmp but somehow gets > changed to 666 during the mov

Re: [PHP] Script help about array dimension

2003-11-30 Thread Robert Cummings
On Mon, 2003-12-01 at 00:33, Curt Zirzow wrote: > * Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]): > > $array['ojpp'][1][][] = 'ferrer'; > > $array['test'][0] = 'ojpp'; > > $array['test'][1] = 'ferrer'; > > > > How could I do a script that give me this output: > > > > Array > > ( > > [0] =

[PHP] test

2003-11-30 Thread Xiao Fang
pls disregard. thx, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php