Re: [PHP] Variable variable

2001-04-17 Thread Ulf Wendel
Jacky schrieb: > > > > and when I submit the form to page foo.php4, at that page, I use Variable variable >to call the value of the check box to see if it checked like this > > $quey = "select id from table"; > $result = .. ( assumeing it is done and i got value for $id for all records

[PHP] Variable variable

2001-04-17 Thread Jacky
Hi all I have a form with check box and name of those checkboxes is usuing variable lke this, and when I submit the form to page foo.php4, at that page, I use Variable variable to call the value of the check box to see if it checked like this $quey = "select id from table"; $result = ..

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

2001-04-17 Thread Remigiusz Sokolowski
Dave Thomas wrote: > > Yeah, that's what I'm thinking. I could tune the images server way down for flat >content and massive bandwith. > > The only problem I can see is that webmasters hate having to code that extra info. Hi! You could also think about something like sqlRelay (www.firstworks.

Re: [PHP] need help

2001-04-17 Thread David Robley
On Wed, 18 Apr 2001 16:08, chris herring wrote: > this is really buggin me... i've got this free-for-all that i want to > make, and everything seems logical, but > > echo ""; > echo " value=\"http://\">"; echo " size=\"20\">"; > echo " Link\">"; echo ""; > > > > if (isset($url) && isset($text)

Re: [PHP] need help

2001-04-17 Thread Geir Eivind Mork
On Wednesday 18 April 2001 08:38, chris herring wrote: > this is really buggin me... i've got this free-for-all that i want to > make, and everything seems logical, but I did a quick rewrite here. it adds links as people enters them :) Url: Nam

Re: [PHP] Is it possible to parse a variable by character?

2001-04-17 Thread CC Zona
In article <9bjcj6$dg6$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Yasuo Ohgaki") wrote: > I'm not sure if accessing string as array is going to be depreciated or not. > (Or is it already depreciated???) I made a note of this a while ago when it came up on the list, because initially it sounded to

[PHP] mySQL - select column

2001-04-17 Thread Julian Wood
Hi all, Given that the resultset from a mysql query is a 2-d array (of sorts - I don't know), if I retrieve only a single column, is there an easy way to grab it as a linear array? For example - old way: $uids=array(); $res = mysql_db_query("db", 'select uid from tbl;', $link); while ($row = my

php-general Digest 18 Apr 2001 06:46:13 -0000 Issue 634

2001-04-17 Thread php-general-digest-help
php-general Digest 18 Apr 2001 06:46:13 - Issue 634 Topics (messages 49021 through 49132): SOMEONE SHOOT ME!!! 49021 by: Rick Kukiela 49032 by: Martín Marqués 49054 by: Godd 49084 by: Phillip Bow `AM_PROG_LIBTOOL' not found in library 49022 by: Pablo

Re: [PHP] Files without type???

2001-04-17 Thread David Robley
On Wed, 18 Apr 2001 15:53, Morten Winkler Jørgensen wrote: > Hi php'ers > > Executing the following code on my Redhat 7.2 box, through Apache i > get the most annoying output: > > Code: > > function listDirectory($basedir){ > $diary_directory = opendir($basedir); > while($filename = readdir(

[PHP] suEXEC CGI how-to

2001-04-17 Thread Cameron
The topic says it, i was wondering if anyone had a how-to on suEXEC CGI php. I have used the cgi before but havnt ever had the time to setup the suEXEC. Wondering if there is a guide to save me going crazy. Cameron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

Re: [PHP] Is it possible to parse a variable by character?

2001-04-17 Thread Yasuo Ohgaki
[Cross post to php-lang] Regular expression functions can do the job and already have reply. Answer for the original question: How to access string by character. I'm not sure if accessing string as array is going to be depreciated or not. (Or is it already depreciated???) But you could do $str =

[PHP] need help

2001-04-17 Thread chris herring
this is really buggin me... i've got this free-for-all that i want to make, and everything seems logical, but echo ""; echo ""; echo ""; echo ""; echo ""; if (isset($url) && isset($text)) { $fp = fopen("./file.txt", "w"); fwrite("$fp", "$text", "w"); fclose($fp); } ... that i

[PHP] Files without type???

2001-04-17 Thread Morten Winkler Jørgensen
Hi php'ers Executing the following code on my Redhat 7.2 box, through Apache i get the most annoying output: Code: function listDirectory($basedir){ $diary_directory = opendir($basedir); while($filename = readdir($diary_directory)) { if(strcmp(".", $filename) != 0) { if(strc

Re: [PHP] mySQL Question....

2001-04-17 Thread Don Read
On 18-Apr-01 Jason Caldwell wrote: > Opps. I meant GROUP BY... and it looks like I don't need to include the > COUNT(). > > SELECT email_addr, x GROUP BY email_addr HAVING x = 1; > > Is this the only way to display a listing without duplicates, or is there a > more efficient (faster) way? I do

RE: [PHP] Is it possible to parse a variable by character?

2001-04-17 Thread Maxim Maletsky
$str = eregi_replace("[^[_a-z0-9-]]", '_', $str) would this 2-seconds written-in, non-tested scratch of code do the job? If not then something like this... eregi_replace() is what you are looking for. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins)

Re: [PHP] mySQL Question....

2001-04-17 Thread Jason Caldwell
Opps. I meant GROUP BY... and it looks like I don't need to include the COUNT(). SELECT email_addr, x GROUP BY email_addr HAVING x = 1; Is this the only way to display a listing without duplicates, or is there a more efficient (faster) way? I don't want to DELETE the duplicates, just don't want

RE: [PHP] mySQL Question....

2001-04-17 Thread Opec Kemp \( Ozemail \)
> if i perform a SELECT query (say) like the following: > > SELECT email_addr FROM myTable WHERE x = 1 > > in this query i want to pull-out (or list) all email > addresses where x equals 1, however, suppose i don't want any > duplicate email addresses... would i use ORDER BY and COUNT(*) to get l

[PHP] mySQL Question....

2001-04-17 Thread Jason Caldwell
if i perform a SELECT query (say) like the following: SELECT email_addr FROM myTable WHERE x = 1 in this query i want to pull-out (or list) all email addresses where x equals 1, however, suppose i don't want any duplicate email addresses... would i use ORDER BY and COUNT(*) to get listing of no

Re: [PHP] Importing Data from Text File

2001-04-17 Thread Chris Fry
Chris, What you need to do is read each line of the file into an array: $aryInput = file("/path/filename", "r"); Connect to the Database: $dbh = mysql_connect ("localhost", "user", "password"); if (! $dbh) { print "Error connecting to the Database Engine"; } Select the table: mysql_selec

[PHP] Is it possible to parse a variable by character?

2001-04-17 Thread Sean Coyle
Hey there guys, This may seem like a dumb question, but I have to ask it anyway. I have a form in one of my php based scripts that allows for file uploads. I recently noticed a potential issue if people upload files containing anything else but the standard characters ([_a-z0-9-]+(\.[_a-z0-9

[PHP] Importing Data from Text File

2001-04-17 Thread Chris Aitken
Hi Everyone, Ive been asked to do a task here at my work and its something ive never done before. I was hoping you guys could point me in the right direction so I can research some more and discover how in the hell im gonna do this :) Basically, I have been issued a TAB delimited text file whi

Re: [PHP] Last 10 rows

2001-04-17 Thread Joe Stump
Well - what is considered the last of the list? Is it a number? are they names? Either way you have a field you are ordering by ... SELECT * FROM table ORDER BY lastname DESC LIMIT 10; that'll do the trick. FYI you can sort numbers, dates, and chars - this is from the hip and you might be able

Re: [PHP] HELP!! "print" problem

2001-04-17 Thread Martin Skjöldebrand
[EMAIL PROTECTED] wrote: > You're missing a single quote after the value of MAXLENGTH on the line > that's not working... Maybe that's the problem. > Yes!! Thanks! I thought I was going crazy. Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

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

2001-04-17 Thread Dave Thomas
Yeah, that's what I'm thinking. I could tune the images server way down for flat content and massive bandwith. The only problem I can see is that webmasters hate having to code that extra info. Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECT

Re: [PHP] Last 10 rows

2001-04-17 Thread Rasmus Lerdorf
> How do I get the last 10 rows in a table? select blah from foo order by something desc limit 10 -Rasmus -- 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:

Re: [PHP] Last 10 rows

2001-04-17 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Randy Johnson") wrote: > How do I get the last 10 rows in a table? {select clause} order by {fieldname} desc limit 10 -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

[PHP] Last 10 rows

2001-04-17 Thread Randy Johnson
How do I get the last 10 rows in a table? thanks randy -- 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] HELP!! "print" problem

2001-04-17 Thread [EMAIL PROTECTED]
You're missing a single quote after the value of MAXLENGTH on the line that's not working... Maybe that's the problem. -- [ Swift eNetwork ] Matrix > http://matrix.swifte.net/ -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] HELP!! "print" problem

2001-04-17 Thread Martin Skjöldebrand
I'm blind!! Whats wrong here? $besk has a value at one place but not in another? Jeez M. $besk=$row1[0]; print "beskr $besk"; <-- prints value of $besk print ""; <-- works print " "; <-- DOES NOT PRINT A THING!! print " "; <-- works print " "; <--works

RE: [PHP] Dynamic built web pages administration

2001-04-17 Thread Manisha
Hi, I am also working on a project similar like this. I am creating a News Module which will allow user to create their own pages and post it on web with images chosen. Edit option also will be given to edit the content. I thought of following options. Please note that I am not always sticking

RE: [PHP] How do i include ASP script into PHP...??!

2001-04-17 Thread Dennis Gearon
http://asp2php.naken.cc/ Haven't been there, haven't done that, BUT, I do have the t-shirt! -- - Look lovingly upon the present, for it holds the only things that are forever true. ---

[PHP] mysql error code - how to debug

2001-04-17 Thread pyz
Greetings, This is a mysql question, (but I'm using php with it). Most everything is working correctly; however, when I hit one button I get: Database error: cannot use database xx MySQL Error: 0 () Session halted. What should I be looking for? Is this a user/password problem? Is this

RE: [PHP] MySQL data

2001-04-17 Thread Maxim Maletsky
#3 is the easiest... from command line: # mysqldump -uroot db_from > db.sql # mysql -uroot db_to < db.sql Now, the entire database was copied. This is the easiest way for the whole database. With single table it is quite similar. Also if the table in db_to already exists, then it might mak

Re: [PHP] MySQL data

2001-04-17 Thread Joe Stump
There are a few ways to do this... 1.) Copy the binary files over in the mysql data directory ... have to be root and normally at a shell. 2.) SELECT * FROM table and then while() you have rows INSERT INTO other_table those values 3.) mysqldump can be used via PHP and used by most users

Re: [PHP] select question

2001-04-17 Thread Joe Stump
In MySQL you can do this: $sql = "SHOW TABLES LIKE 'box%'"; $r = mysql_query($sql); // then loop through the tables and populate --Joe On Tue, Apr 17, 2001 at 07:49:11PM -0400, Matt TrollBoy Wiseman wrote: > How would I word a query to see what tables exist in a db that begin with > box > >

Re: [PHP] Tip for cookies

2001-04-17 Thread Joe Stump
Check out "global" it allows you to make things "global" or at the top of your file you could do a define with the cookie value in it an it would be accessbile without passing the value to the function - this saves both time in typeing and is faster since it doesn't have to copy the cookie value 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

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

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

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

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

[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

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]

RE: [PHP] select question

2001-04-17 Thread Don Read
On 17-Apr-01 Matt \"TrollBoy\" Wiseman wrote: > How would I word a query to see what tables exist in a db that begin with > box > > for example include > boxTABLE1 > boxTABLE2 > boxTABLE3 > but exclude > sphereTABLE1 > > I'm basically trying lo populate a list box with the tables beginning with

[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

[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

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

Re: [PHP] select question

2001-04-17 Thread Steve Werby
"Matt "TrollBoy" Wiseman" <[EMAIL PROTECTED]> wrote: > How would I word a query to see what tables exist in a db that begin with > box > > for example include > boxTABLE1 > boxTABLE2 > boxTABLE3 > but exclude > sphereTABLE1 > > I'm basically trying lo populate a list box with the tables beginning

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

[PHP] select question

2001-04-17 Thread Matt \"TrollBoy\" Wiseman
How would I word a query to see what tables exist in a db that begin with box for example include boxTABLE1 boxTABLE2 boxTABLE3 but exclude sphereTABLE1 I'm basically trying lo populate a list box with the tables beginning with box in PHP. Matt "Trollboy" Wiseman www.shoggoth.net/trollboy/troll

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

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] 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] 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]"

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

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

[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

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

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

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

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

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

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

[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

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

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

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 >

  1   2   3   >