[PHP] Is there such an array like $array[][]?

2001-04-17 Thread Scott Fletcher
Hi! I am wondering if there is such a php array that can take care of the x and y axis data. I figure that using this array type, $axis[$x][$y] would do the trick. Would it work? If not, then education me on what would work! Thanks! Scott -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Is there such an array like $array[][]?

2001-04-17 Thread Jack Dempsey
yes, that's a multi-dimensional array, which is fine in php (and everything else i can think of =P)... -jack Scott Fletcher wrote: > > Hi! I am wondering if there is such a php array that can take care of the x > and y axis data. I figure that using this array type, $axis[$x][$y] would > do t

Re: [PHP] Is there such an array like $array[][]?

2001-04-17 Thread Plutarck
PHP can be a tad screwy with how it handles multi-dimensional arrays, but yes PHP handles them. No real speed problems with them either. But you may just want to use an associative array like: $loc = array("y" => $y, "x" => $x); Then just use $loc["y"] and $loc["x"]. Just another option, but f

Re: [PHP] Site Sessions: Online/Offline - help?

2001-04-17 Thread Plutarck
Simplest way to do it IMHO. When a user logs in (starts their session) register their username into the session (that session is "bound" to them now). On every page when a user does anything, update your database with the current time as a "last_activity" entry for that user. When showing who i

[PHP] Help with a php Registration Form

2001-04-17 Thread Michael Leone
I am trying to write a Registration form that send an email to a specific address. The source to the page is at http://www.probesnj.org/etownreg.txt Its 400 lines long and I probably just spelled something wrong or missed a semi-colon, but I can't find it and I would appreciate it anyone who has

Re: [PHP] Help with a php Registration Form

2001-04-17 Thread Kurth Bemis
At 01:35 PM 4/17/2001, Michael Leone wrote: whats the problem taht you having? >I am trying to write a Registration form that send an email to a specific >address. >The source to the page is at http://www.probesnj.org/etownreg.txt >Its 400 lines long and I probably just spelled something wrong

[PHP-CVS] cvs: php4 / configure.in

2001-04-17 Thread Wez Furlong
wez Tue Apr 17 10:01:33 2001 EDT Modified files: /php4 configure.in Log: Added --enable-php-streams option for experimental file abstraction Index: php4/configure.in diff -u php4/configure.in:1.233 php4/configure.in:1.234 --- php4/configure.in:1.23

Re: [PHP] Dynamic Pages and Google ???

2001-04-17 Thread Philip Olson
Check out this article : Building Dynamic Pages With Search Engines in Mind : http://phpbuilder.com/columns/tim2526.php3 Also, mod_rewrite related "stuff" has been discussed : http://marc.theaimsgroup.com/?l=php-general&s=mod_rewr

Re: [PHP] Help with a php Registration Form

2001-04-17 Thread Kurth Bemis
At 01:44 PM 4/17/2001, Michael Leone wrote: double check ALL of your for loops as well as any place that you may have used a curly bracket. ~kurth >Im getting this pesky parse error at line 392 which is the last line of >the document. >At 01:40 PM 4/17/2001 -0400, you wrote: >>At 01:35 PM 4/1

[PHP] Finding Duplicate Numbers?

2001-04-17 Thread Devin Atencio
I have a SQL Table that has over 1,000 records and I was wanting to write a script that would find duplicate phone numbers and then list the duplicate phone numbers. I have been trying to think on how to do this but I can't think of a way. Can someone please help me on some code I could write to

Re: [PHP] php like cgi

2001-04-17 Thread Ulysses Almeida
On Tue, 17 Apr 2001, Christian Reiniger wrote: > Are you 100% sure that it's /bin/php ? That's a pretty unusual location > for PHP to be installed in. /usr/bin/php or /usr/local/bin/php are the > common ones Yeah, my php interpreter is on /usr/bin/php, i just made a symlink on /bin..., but it

[PHP-CVS] cvs: php4 /main Makefile.in php.h php_streams.h streams.c

2001-04-17 Thread Wez Furlong
wez Tue Apr 17 10:03:18 2001 EDT Added files: /php4/main php_streams.h streams.c Modified files: /php4/main Makefile.in php.h Log: Added files for PHP streams Index: php4/main/Makefile.in diff -u php4/main/Makefile.in:1.13 php

[PHP-CVS] cvs: php4 /ext/standard basic_functions.c file.c file.h fsock.c fsock.h info.c

2001-04-17 Thread Wez Furlong
wez Tue Apr 17 10:06:07 2001 EDT Modified files: /php4/ext/standard basic_functions.c file.c file.h fsock.c fsock.h info.c Log: Changes for streams. Added temporary fopenstream function to PHP so that the streams can be tested.

Re: [PHP-CVS] cvs: php4 /ext/standard file.c

2001-04-17 Thread Andi Gutmans
This should go into 4.0.5 if it's in that branch because it's quite a bug. Andi At 07:03 PM 4/15/2001 +, Alexander Feldman wrote: >sasha Sun Apr 15 12:03:13 2001 EDT > > Modified files: > /php4/ext/standard file.c > Log: > Fixed typo. > > >Index: php4/ext/standard/file.c

[PHP-CVS] cvs: php4 /ext/standard basic_functions.c file.c

2001-04-17 Thread Wez Furlong
wez Tue Apr 17 10:08:04 2001 EDT Modified files: /php4/ext/standard basic_functions.c file.c Log: Discovered warn_not_available and used it. Index: php4/ext/standard/basic_functions.c diff -u php4/ext/standard/basic_functions.c:1.324 php4/ext/standard/

[PHP-CVS] cvs: php4 /ext/fbsql php_fbsql.c php_fbsql.h

2001-04-17 Thread Frank M. Kromann
fmk Tue Apr 17 10:39:43 2001 EDT Modified files: /php4/ext/fbsql php_fbsql.h php_fbsql.c Log: Adding fbsql_fetch_assoc() functon Index: php4/ext/fbsql/php_fbsql.h diff -u php4/ext/fbsql/php_fbsql.h:1.2 php4/ext/fbsql/php_fbsql.h:1.3 --- php4/ext/fbsql/p

Re: [PHP] Finding Duplicate Numbers?

2001-04-17 Thread Colin Putney
On Tuesday, April 17, 2001, at 11:00 AM, Devin Atencio wrote: > I have a SQL Table that has over 1,000 records and I was wanting > to write a script that would find duplicate phone numbers and > then list the duplicate phone numbers. I have been trying to > think on how to do this but I can't t

Re: [PHP] Finding Duplicate Numbers?

2001-04-17 Thread Plutarck
Hm...it's not fast, but it should work. Do a select statement to take out just the phone numbers, then do something like: while ($row = mysql_fetch_row($result)) { $array[] = $row[0]; } $amount = array_count_values($array); $imax = sizeof($amount); for ($i = 0; $i < $imax; $i++) { if (

php-general Digest 17 Apr 2001 18:43:15 -0000 Issue 633

2001-04-17 Thread php-general-digest-help
php-general Digest 17 Apr 2001 18:43:15 - Issue 633 Topics (messages 48903 through 49020): Re: baffled :<:< 48903 by: Seung-woo Nam 48904 by: Mark Maggelet 48906 by: Chris Fry 48907 by: Romulo Roberto Pereira 48909 by: Romulo Roberto Pereira 4

[PHP] SOMEONE SHOOT ME!!!

2001-04-17 Thread Rick Kukiela
Ok, I cant comprehend why php/apache is so freakin impossible to compile with IMAP support?!? what is going on? Ok, I am running OpenBSD 2.7, I downloaded the c-client stuff and complied it and put the includes in the appropriate places, then i followed the php installation instructions so i go

[PHP] `AM_PROG_LIBTOOL' not found in library

2001-04-17 Thread Pablo Sabatino
Hello!! I am using php4-cvs on Linux Suse 6.4. I issued the command ./buildconf and got a message: pablo@pablito:~/php4 > ./buildconf buildconf: checking installation... buildconf: autoconf version 2.13 (ok) buildconf: automake version 1.4 (ok) buildconf: libtool version 1.3.5 (o

Re: [PHP] Is there such an array like $array[][]?

2001-04-17 Thread CC Zona
In article <9bhrri$sn9$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Plutarck") wrote: > Just another option, but feel free to use multi-dimensional arrays. Just be > aware that PHP supports only two dimensions (so $array[][][] will not work), > and if you try and get fancy with sort() and count() you

[PHP] freetype

2001-04-17 Thread Kurth Bemis
i'm attempting to comiple in freetype2 into php4.0.4pl1. this is my configure line trinity:~/php-4.0.4pl1# ./configure --with-mysql=/usr/local/mysql/ --with-apache=../apache_1.3.19/ --enable-freetype-4bit-antialias-hack --with-ttf=/usr/local/lib/ --with-gd and this is what configure spits ba

Re: [PHP] Dynamic Pages and Google ???

2001-04-17 Thread CC Zona
In article <9bho4e$r7p$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Plutarck") wrote: > Also be extremely careful about the use of and browser sniffing. > So many sites do something classically stupid so that when someone sees > their site in a search engine, the description is "Your browser does no

RE: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-17 Thread Don Read
On 16-Apr-01 Alexander Skwar wrote: > Hello! > > In a mysql_connect() it is possible to specify a path to the socket which > should be used for communicating with MySQL. > > Now, when I connect thru a socket, is the datatransfer between PHP and MySQL > faster than when I connect via a (loop-)ne

Re: [PHP] Finding Duplicate Numbers?

2001-04-17 Thread Mark Maggelet
On Tue, 17 Apr 2001 11:30:07 -0700, Colin Putney ([EMAIL PROTECTED]) wrote: >On Tuesday, April 17, 2001, at 11:00 AM, Devin Atencio wrote: > >> I have a SQL Table that has over 1,000 records and I was wanting >> to write a script that would find duplicate phone numbers and >> then list the duplic

[PHP] temp file help

2001-04-17 Thread Randy Johnson
The following code downloads information on the fly and saves it as a file on the user's hard drive. It works great in Netscape downloads data properly but in Internet explorer it doesn't work. Here is the error I get any ideas? IE was not able to open this site the site is either unavailable o

Re: [PHP] Dynamic Pages and Google ???

2001-04-17 Thread Mark Maggelet
Google doesn't choke at all on dynamic pages. pages get ranked by keywords appearing on the page and even more importantly, the link text of links on other pages pointing to the page that's being indexed. in other words, if a lot of sites link to your page like so: google choke then a search for

Re: [PHP] temp file help

2001-04-17 Thread Joe Stump
This is a wonderful IE "feature" - it just tries to open everything regardless of the browser type. I'd be interested in any working workarounds for this. I've even sent my own type headers ... all to no avail. --Joe On Mon, Apr 16, 2001 at 03:30:30PM -0700, Randy Johnson wrote: > The following

Re: [PHP] Finding Duplicate Numbers?

2001-04-17 Thread Colin Putney
On Tuesday, April 17, 2001, at 12:19 PM, Mark Maggelet wrote: > That works for mysql. He probably just wants to kill the duplicates, > so there's an easier way: add a unique index to the phone_number > field. > > alter ignore table $table add unique (phone_number); Yep, that will prevent dupli

Re: [PHP] SOMEONE SHOOT ME!!!

2001-04-17 Thread Martín Marqués
On Mar 17 Abr 2001 21:51, Rick Kukiela wrote: > Ok, > > I cant comprehend why php/apache is so freakin impossible to compile with > IMAP support?!? what is going on? > > Ok, I am running OpenBSD 2.7, I downloaded the c-client stuff and complied > it and put the includes in the appropriate places,

Re: [PHP] Site Sessions: Online/Offline - help?

2001-04-17 Thread Richard
Greetings. Thanks for your help! That about people not using logout buttons is really true! But what can one expect? However, how can I create a unique session ID? I don't use Databases, at least not MYSQL. - Richard ""Plutarck"" <[EMAIL PROTECTED]> wrote in message 9bhsa8$vq8$[EMAIL PROTECTED]

Re: [PHP] Finding Duplicate Numbers?

2001-04-17 Thread Mark Maggelet
On Tue, 17 Apr 2001 12:34:27 -0700, Colin Putney ([EMAIL PROTECTED]) wrote: >On Tuesday, April 17, 2001, at 12:19 PM, Mark Maggelet wrote: > >> That works for mysql. He probably just wants to kill the >>duplicates, >> so there's an easier way: add a unique index to the phone_number >> field. >> >

[PHP] Program to edit HTML file via the web??

2001-04-17 Thread Blake S.
Does anyone have or have some code available that allows a user to edit an HTML web page file over the Internet. I know it would be simple to build a textarea form and read the file into this and edit as necessary them update the file. But I am looking for something with some controls on it, like

Re: [PHP] temp file help

2001-04-17 Thread Phil Driscoll
Instead of: header("Content-disposition: filename=backup.csv"); try header('Content-Disposition: attachment; filename=backup.csv'); Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org -- PHP General Mailing List (http://www.php.net/

[PHP] Sending Email via PHP on Win2K

2001-04-17 Thread Boaz Yahav
Hi Has anyone done this? Does PHP interact with the SMTP service on the machine? Does anyone have a script that does this? thanks Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -- PHP General Mailing List (http://www.php.net/) To u

[PHP] ttf?

2001-04-17 Thread Kurth Bemis
does anyone have any tutorials on installing gd with freetype 2 support? ~kurth -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Finding Duplicate Numbers?

2001-04-17 Thread Colin Putney
On Tuesday, April 17, 2001, at 12:41 PM, Mark Maggelet wrote: > That would be true if I left out the 'ignore'. The way it is here it > will automatically toss the duplicates. Whoops, missed that. I stand corrected. Colin - Colin

[PHP] multidimensional arrays

2001-04-17 Thread Michael Kimsal
Plutarck wrote: > PHP can be a tad screwy with how it handles multi-dimensional arrays, but > yes PHP handles them. No real speed problems with them either. > > But you may just want to use an associative array like: > > $loc = array("y" => $y, "x" => $x); > > Then just use $loc["y"] and $loc["

Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14

2001-04-17 Thread Chris Anderson
I am using the latest version of Apache and PHP. Sorry I couldn't be of more help. - Original Message - From: "CC Zona" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 3:01 AM Subject: Re: [PHP] fwrite not writing (simpler example), PHP 4.0.4pl1, Apache/1.3.14 >

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-17 Thread Alexander Skwar
So sprach Don Read am Tue, Apr 17, 2001 at 02:14:41PM -0500: > Yes, from my memory of the mysql list; AF_INET is 7% slower then AF_UNIX in > data thru-put. Plus you have to add in the connection build & tear-down time. That's exactly what I'd expect. Hmm, so I take it, I should also ask on the

[PHP] Why is this happening

2001-04-17 Thread Boget, Chris
I've got the following code: --- while( list( $timeStamp, $elementArray ) = each( $this->ErrorMessages )) { $tmpArray = $elementArray; if( $tmpArray[errorNumber] & $typesToDisplay ) { // line to comment out while( list( $elementKey, $elementValu

[PHP] SQL - Select rand() ?

2001-04-17 Thread James, Yz
Hi Guys, If I wanted to retrieve just one field randomly from a MySQL table, would I just use something like: "SELECT RAND(id) FROM table LIMIT 0,1" ? I suppose the best thing for me to do would be to try it, but I am fast losing the will to stay awake ;) Thanks, as always, James. --

[PHP] TTF + GD

2001-04-17 Thread Kurth Bemis
I have compiled and installed freetype 2.0.1 and gd 1.8.1..the php configure script finds the libs okhowever gd still isn't compiled with true type font supportsomeone MUST have a solution for what i'm dealing with herelook : checking whether to enable FTP support... yes checki

[PHP] PHP/M3U Questions!!!

2001-04-17 Thread Chris Cocuzzo
Hey, First I'll ask my OT question. I've been thinking lately of implementing a system on my band's website where people can log in, and maintain a playlist of all the mp3's I have on the site. Obviously when they want to play it, or a single file, they can hit play and the m3u file will automati

RE: [PHP] Why is this happening

2001-04-17 Thread Boget, Chris
Ok, I found out what the problem was. I'm still curious why the problem is occuring. > if( $tmpArray[errorNumber] & $typesToDisplay ) { // line to comment out I almost always access associative arrays like the above - almost never without the quotes. IE $there = 5; echo "$this[that]\n"; ech

Re: [PHP] PHP/M3U Questions!!!

2001-04-17 Thread Kurth Bemis
At 04:43 PM 4/17/2001, Chris Cocuzzo wrote: as far as I know the EXTINF is just data that win amp puts in play lists. its just the number of frames i believe then teh song title. this allows winamps play list editor to read the data for the files in the play list without opening them all...o

[PHP] SSL SSL SSL SSL -- READ THIS!!!!!!

2001-04-17 Thread phpman
How do I establish an SSL socket connection with PHP? I have PHP compiled in an Apache Mod_SSL server. Do I need to compile PHP with some sort of open_ssl option? I have --enable-sockets in the command line. Please help!!! -dave -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] Dynamic built web pages administration

2001-04-17 Thread Godd
This is not hard just long. I am working on just that now. I am building a site that allows my users to edit their site via the web and not requiring them to know HTML. What I am doing is using a template page and I am asking them for specific data for the various sections of the page, I then hav

RE: [PHP] temp file help

2001-04-17 Thread Randy Johnson
Nope This doesn't work either. I am going to find header documentation and see if I can find a work around -Original Message- From: Phil Driscoll [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 12:48 PM To: Randy Johnson; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PH

RE: [PHP] Why is this happening

2001-04-17 Thread Mark Maggelet
On Tue, 17 Apr 2001 15:55:38 -0500, Boget, Chris ([EMAIL PROTECTED]) wrote: >Ok, I found out what the problem was. I'm still curious >why the problem is occuring. > >> if( $tmpArray[errorNumber] & $typesToDisplay ) { // line to >>comment out you're using the bitwise & when you want the logical

Re: [PHP] SOMEONE SHOOT ME!!!

2001-04-17 Thread Godd
Be very careful what you ask for -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] SSL SSL SSL SSL -- READ THIS!!!!!!

2001-04-17 Thread Martín Marqués
On Mar 17 Abr 2001 23:55, phpman wrote: > How do I establish an SSL socket connection with PHP? > I have PHP compiled in an Apache Mod_SSL server. Do I need to compile PHP > with > some sort of open_ssl option? I have --enable-sockets in the command line. > Please help!!! No, No, No! Saludos

RE: [PHP] Why is this happening

2001-04-17 Thread Boget, Chris
> >Ok, I found out what the problem was. I'm still curious > >why the problem is occuring. > >> if( $tmpArray[errorNumber] & $typesToDisplay ) { > you're using the bitwise & when you want the logical && No, I actually wanted to use the bitwise &. I wanted to see if the "errorNumber" was in $t

[PHP] Screen Resolutions

2001-04-17 Thread Stuart Rees
Could anyone tell me if there is a easy way of detecting screen resolutions in php, Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTE

RE: [PHP] Screen Resolutions

2001-04-17 Thread Michael Geier
PHP is server side, so it has no mthodology for detecting client side information. Try javascript. -Original Message- From: Stuart Rees [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 4:05 PM To: [EMAIL PROTECTED] Subject: [PHP] Screen Resolutions Could anyone tell me if there

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-17 Thread Alexander Skwar
So sprach Christian Reiniger am Tue, Apr 17, 2001 at 02:01:48PM +0200: > run "ab" (comes with apache) on two scripts, one using method A > repeatedly, the other using method B repeatedly Thanks, will do. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (engl

Re: [PHP] Screen Resolutions

2001-04-17 Thread Martín Marqués
On Mié 18 Abr 2001 00:15, Michael Geier wrote: > PHP is server side, so it has no mthodology for detecting client side > information. This is half true. It is server side, but remember that the browser sends information about the client. Of course, not the resolution! ;-) > Try javascript. Thi

RE: [PHP] PHP/M3U Questions!!!

2001-04-17 Thread Chris Cocuzzo
Ok that makes sense definitely. I guess I wonder. How would I code something so I could find out the number of frames in a particular mp3 so I could generate the m3u file? I've seen a lot of this stuff implemented in PERL, however I'm not familiar with PERL that much, so it wouldn't matter. PHP-wi

Re: [PHP] Sending Email via PHP on Win2K

2001-04-17 Thread Chris Anderson
Check out the mail() function in the php manual. There is literally tons of info on this function. - Original Message - From: "Boaz Yahav" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 4:54 PM Subject: [PHP] Sending Email via PHP on Win2K > Hi > > Has anyone d

RE: [PHP] PHP/M3U Questions!!!

2001-04-17 Thread Kurth Bemis
At 05:12 PM 4/17/2001, Chris Cocuzzo wrote: theres a formula for figuring out how many frames based on file size and timehowever if your making a playlist with 20 or so entries the EXTINF's aren't really nessary ~kurth >Ok that makes sense definitely. I guess I wonder. How would I code so

RE: [PHP] Why is this happening

2001-04-17 Thread Mark Maggelet
On Tue, 17 Apr 2001 16:06:47 -0500, Boget, Chris ([EMAIL PROTECTED]) wrote: >> >Ok, I found out what the problem was. I'm still curious >> >why the problem is occuring. >> >> if( $tmpArray[errorNumber] & $typesToDisplay ) { >> you're using the bitwise & when you want the logical && > >No, I actua

Re: [PHP] Running php as a CGI

2001-04-17 Thread Steve Werby
"Boget, Chris" <[EMAIL PROTECTED]> wrote: > We compiled PHP to be used as a CGI and it's > working great. However, whenever we run a > php script, the following message gets outputted > at the start of the output: > > "X-Powered-By: PHP/4.0.3pl1 > Content-type: text/html" > > Is there any way w

Re: [PHP] Why is this happening

2001-04-17 Thread Justin Farnsworth
Some time ago, if I remember correctly, this question was asked. Rasmus replied that the interpreter, due to its mechanization, would interpret "raw" strings as strings in associative arrays but that THIS BEHAVIOUR WAS NOT GUARANTEED IN THE FUTURE. It had something to do with the symbol table me

Re: [PHP] Dynamic Pages and Google ???

2001-04-17 Thread Steve Werby
"Jon Shoberg" <[EMAIL PROTECTED]> wrote: > So I was having a conversation with a manager/educator in the IT Industry :) > > In a discussion concerning search engines he stated how he dislikes dynamic > web pages (PHP/ASP/JSP/CFM) because search engine spiders 'choke' on dynamic > content or gives

[PHP] Compiling Truetype fonts

2001-04-17 Thread barce
Hello, I am having problems compiling truetype font support into php4. Would someone please share any info that might help solve this? setup: php version 4.0.6-dev apache 1.3.14 configuration: ./configure --with-ttf=/usr/local --enable-gd-native-ttf --with-gd=/usr/local/src/gd-1.8.3 --with-jpeg

RE: [PHP] PHP/M3U Questions!!!

2001-04-17 Thread Chris Cocuzzo
nevermind! I'm all set I believe. I took a look at an m3u file in notepad that had stream files(as in I told it to play a URL). Apparently the number after the #EXTINF is always -1 for a streamed file. So thanks for all the help. --Chris -Original Message- From: Kurth Bemis [mailto:[EM

Re: [PHP] Site Sessions: Online/Offline - help?

2001-04-17 Thread Plutarck
The best way I know of is to use mt_rand. Check the manual for examples, but this is usually a good way to seed it: mt_srand ((double) microtime() * 100); If you look at the size of a normal session ID, it's pretty easy to make a unique sessid. There are 32 chars in a typical sessid. The c

[PHP] Stored Procedured

2001-04-17 Thread Juan Andres
Hi i send one question how i can execute two or more stored procedured? example $first_procedure = odbc_exec($conn,"execute sp_list $quantity"); $second_procedure = odbc_exec($conn,"execute sp_list_names $last_name"); how i use values of $second_procedure _

Re: [PHP] Is there such an array like $array[][]?

2001-04-17 Thread Plutarck
Woh, I had no idea PHP supported more than 2 dimensions...lol, was that a recent addition? I could _sware_ I originally read it on either zend.com or in the manual that 2 dimensional arrays are all that are supported...then again, this is why I don't gamble :) Live and learn, lol. Guess I shoul

[PHP] Tip for cookies

2001-04-17 Thread Pat Hanna
I found out today after suffering from minor headaches and hair loss that if you have functions defined in and outside file name 'foo.php', and in those functions you use cookies, you must pass those cookies to the function called. I tried using a value from a cookie in a function and it never cou

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-17 Thread Alexander Skwar
So sprach Don Read am Tue, Apr 17, 2001 at 05:13:14PM -0500: > define('DBHOST', 'localhost'); > // define('DBHOST', 'myhost.domain.com'); > > define('QRY', 'select * from foo'); > > $db=mysql_connect(DBHOST, DBUSER, DBPASS); > if ( $db ) > testquery(QRY); > > > ?> > > s

[PHP-CVS] cvs: php4(PHP_4_0_5) /ext/standard file.c

2001-04-17 Thread Alexander Feldman
sasha Tue Apr 17 14:54:30 2001 EDT Modified files: (Branch: PHP_4_0_5) /php4/ext/standard file.c Log: Merged the patch of the buffering patch as it fixes a pretty major bug. Index: php4/ext/standard/file.c diff -u php4/ext/standard/file.c:1.148.2.1 php4/ex

Re: [PHP] Stored Procedured

2001-04-17 Thread phpman
i'm not sure what you're asking. maybe this? $result = odbc_exec($conn, "execute" . odbc_exec($conn,"execute sp_list $quantity") . $last_name); // I don't know much about odbc api, but that's how you execute a func in a func "Juan Andres" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]"

Re: [PHP] SQL - Select rand() ?

2001-04-17 Thread Steve Lawson
Sup, In the newer versions of mySQL, you can get random results like SELECT id FROM table ORDER BY rand() LIMIT 0,1 SL. - Original Message - From: "James, Yz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 17, 2001 2:55 PM Subject: [PHP] SQL - Select rand() ? >

RE: [PHP] Tip for cookies

2001-04-17 Thread Don Read
On 17-Apr-01 Pat Hanna wrote: > I found out today after suffering from minor headaches and hair loss that if > you have functions defined in and outside file name 'foo.php', and in those > functions you use cookies, you must pass those cookies to the function > called. I tried using a value from

Re: [PHP] Screen Resolutions

2001-04-17 Thread phpman
or something like that "Martín Marqués" <[EMAIL PROTECTED]> wrote in message 01041718172501.16385@bugs">news:01041718172501.16385@bugs... > On Mié 18 Abr 2001 00:15, Michael Geier wrote: > > PHP is server side, so it has no mthodol

[PHP-CVS] cvs: php4 /ext/ircg ircg.c

2001-04-17 Thread Sascha Schumann
sas Tue Apr 17 15:44:54 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: Allocate memory for js escaped strings using the C library's malloc. Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.58 php4/ext/ircg/ircg.c:1.59 --- php4/ext/irc

Re: [PHP] Speed of MySQL connections - Socket vs. Non-Socket

2001-04-17 Thread Alexander Skwar
So sprach Don Read am Tue, Apr 17, 2001 at 06:06:53PM -0500: > I have with 3.0.18 installed (to match customers), 'localhost' will use the > /tmp/mysql.sock. This may have changed under 4.x. Oh, yes, you are right! Thanks a lot - would have thought that I'd need to say 'localhost:/tmp/mysql.sock

Re: [PHP] array_push but with key, value pairs

2001-04-17 Thread Joseph Blythe
Dean Hall wrote > Instead of 'array_push', do this: > > $input[$key] = $val; > Hey thanks dean that did the trick, I was trying: $array[] = $key . "=>" . $val which of course doesn't work hehe. Regards Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

Re: [PHP] True Appreciation

2001-04-17 Thread Phillip Bow
Uh oh. Thats gonna go to my head. -- phill ""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message 9bf94i$90r$[EMAIL PROTECTED]">news:9bf94i$90r$[EMAIL PROTECTED]... > Many THANKS! > > I find this newsgroup to be one of the *best* I've come across! Responses > are quick, usually detailed and al

Re: [PHP] SOMEONE SHOOT ME!!!

2001-04-17 Thread Phillip Bow
Godd has spoken :) Sorry couldn't resist. -- phill ""Godd"" <[EMAIL PROTECTED]> wrote in message 9biala$c59$[EMAIL PROTECTED]">news:9biala$c59$[EMAIL PROTECTED]... > Be very careful what you ask for > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTE

Re: [PHP] PHP4.0.4pl1+PdfLib3.03+SCO

2001-04-17 Thread Chris Fry
Guys, I've admitted defeat and set up a Redhat 6.0 box which runs the web site and talks to the SCO server as a database server. I'm doing this for a large client who wants a "Business Card Generator" on his site and PDF seems to be the best way to go as the printer wants a PDF file with the info

Re: [PHP] Tip for cookies

2001-04-17 Thread Beth J.
To prevent further hair loss, realize that this is true for ALL variables declared outside the function, including form variables and session variables. Either pass them as parameters or use the 'global' declaration in the function, as Don did. Don Read wrote: > On 17-Apr-01 Pat Hanna wrote: > >

Re: [PHP] 'Embedding' a PDF file

2001-04-17 Thread Chris Fry
Had the same issues - frames is definitely the way to go. One problem, Acrobat uses the available window space to display the pdf file. I am displaying a small, business card size, pdf and acrobat is displaying at 175% because it can. Does anyone know of a parameter that can be set to force displ

[PHP] MySQL data

2001-04-17 Thread Augusto Cesar Castoldi
This question has not much with PHP, but I work with PHP... Can I get the data from a table in MySQL and copy/transfer all data to other database to a table with the same name? regards, Augusto Cesar Castoldi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PR

[PHP] Re: [phplib] Sessions in windows

2001-04-17 Thread Matt Friedman
This is an issue to do with IE cacheing the page too aggressively. Add this to local.inc in your extended session class. Someone contributed this to the list sometime ago, I'm sorry I don't have their name to give them credit so I'll just say Thanks! and pass it along myself. BTW this is great

Re: [PHP] HTML and slashes.

2001-04-17 Thread Dddogbruce \(@home.com\)
Thanks! :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] RE: [PUP] temp file help

2001-04-17 Thread Randy Johnson
ok this doesn't work either I get the same cache error. anybody have any other suggestions? Randy -Original Message- From: Phil Driscoll [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 12:48 PM To: Randy Johnson; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] temp f

[PHP] CGI PHP Scripts: Error "Premature end of script headers"

2001-04-17 Thread Alexander Skwar
Hello. I'm trying to write a CGI PHP script which should do nothing, but print one line. PHP is in /usr/bin/php. The script I've made is: #!/usr/bin/php When I run this script (called »ez«) form the commandline, I get the expected output, ie.: [alex@www cgi-bin]$ ./ez X-Powered-By: PHP/4.0

Re: [PHP] MySQL data

2001-04-17 Thread Seung-woo Nam
Hi: The easiest way to do it is using mysqldump. mysqldump creates a file that contains SQL statements to reconstruct a database, which you can easily execute on the other database. It will create tables with same names and all the records will be copied, too. Seung-woo Nam Augusto Cesar Castold

[PHP] Form Processing problem....

2001-04-17 Thread Jack Lauman
I am calling the following php script from an HTML form with In Internet Exploder 5.0 it processes the form, sends the message and commits to the database, but does not return to the referring page. In Netscape 4.77 it displays an error message the document contained no data even though it proc

Re: [PHP] PHP/OCI8 design for persistent connection tuning

2001-04-17 Thread Kent Sandvik
> My first instinct is to run a second apache process on a separate port or on another IP, that would be tuned for flatfiles. It'd mean that I'd have to code all my scripts to tell it to look for www.somewhere.com:88/banner.gif, which is fine since this is a new architecture. Yes, if you have i

RE: [PHP] Form Processing problem....

2001-04-17 Thread Jack Dempsey
I can't be sure without seeing everything, but you've most likely done everything correct except for the post-processing HTML output...in other words, if you're sending info to a php script, you have to output some HTML at the end of the processing that gives the correct HTML layout and says for i

RE: [PHP] MySQL data

2001-04-17 Thread Grant Walters
> Can I get the data from a table in MySQL and copy/transfer all data to > other database to a table with the same name? > Assuming that both databases are on the same server and that you have created the empty table in the second database: mysql > INSERT INTO DATABASE2.TABLENAME SELECT * FRO

[PHP] HTTP_POST_VARS not and array when used in a function?

2001-04-17 Thread Joseph Blythe
Hey, Why doesn't HTTP_POST_VARS work inside functions? ---somefile.php - forms action --- function foo() { reset($HTTP_POST_VARS); while( list($key, $val) = each($HTTP_POST_VARS) ) { if ( $key != "Submit" xor $key != "x" xor $key != "y" ) { $inpu

Re: [PHP] HTTP_POST_VARS not and array when used in a function?

2001-04-17 Thread Rasmus Lerdorf
> I thought the above would work but it returns the following error(s): > > ... value passed to reset is not an array or object ... > ... value passed to each is not an array or object ... > > It seems that HTTP_POST_VARS does not like being called from inside > functions, as the above will work

Re: [PHP] HTTP_POST_VARS not and array when used in a function?

2001-04-17 Thread Joseph Blythe
Rasmus Lerdorf wrote: > It is a normal global variable. Like all other global variables you need > to declare the fact that you want the global variable inside a function. > Simply put: global $HTTP_POST_VARS; at the top of your function and it > will work just fine. > > Read the section on var

Re: [PHP] multidimensional arrays

2001-04-17 Thread Joe Stump
> $a[1][2][3][4][5] = "6"; > echo $a[1][2][3][4][5]; > > $b[][][][]= "7"; > echo $b[0][0][0][0]; > > I get '6' and '7'. Am I doing something wrong? This seems like PHP supports > arrays with > dimensions greater than 2. You just need to look at PHP's structure. It makes total sense when you t

Re: [PHP] Compiling Truetype fonts

2001-04-17 Thread Tom Rogers
HI I have been corrected b4 but I compiled gd with truetype support and it works fine. I think you have to edit the gd Makefile. Then delete the php config.cache and re run configure Tom At 11:47 PM 17/04/01 +0200, barce wrote: >Hello, > >I am having problems compiling truetype font support into

<    1   2   3   >