[PHP] Converting mySQL to PostgreSQL

2001-05-07 Thread Jason
Hi, I am in need a transfering an existing mySQL database to PostgreSQL. I have seen info on the converter. Before I get started I wanted to see info anyone has any insight or tips on converting these DBs (ie- is it problematic, inconsistent, etc). Thanks! John -- PHP General Mailing List (h

Re: [PHP] how to get RAW POST DATA!

2001-05-07 Thread ondi
What You mean? I cant read STDIN in cgi-bin module by my self? its worse that I thought : "Yasuo Ohgaki" wrote in message <9d0gam$rdu$[EMAIL PROTECTED]>... >This is not possible with current PHP. >If you search recent php-dev list archive, you will find some more info. > >""ondi"" <[EMAIL P

[PHP] English ISP

2001-05-07 Thread tcuhost
A good friend of mine just moved to England. Devon to be exact. He's having quite a time finding a reliable internet provider. Anybody know of any reliable providers in that area? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: [PHP] updating flash file with php

2001-05-07 Thread Luke Welling
py wrote: > any of you has a tutorial/info on how to update a flash file (swf) with a php script ? > (data coming from a text file and a database) I have not seen a tutorial, but there are two simple working examples in Rasmus' Intro to PHP presentation here: http://conf.php.net/pres/index.php?p=s

[PHP] Re: [PHP-DEV] Dynamic Update of DNS ??

2001-05-07 Thread Stig Venaas
On Mon, May 07, 2001 at 06:54:53PM +0200, Vincen Pujol wrote: > Hi, > Sorry for the crossposting but I don't know where to find a > solution for this. I need to be able to update dynamically entries in a DNS > (Bind 9). My DNS supports dynamic updates but how to do dyna

Re: [PHP] Refreshing multiple frames?

2001-05-07 Thread Luke Welling
"Brandon Orther" wrote: > I am using php with frames for a menu bar. In one frame I have a menu. > When the link is clicked on the menu I would like two frames to be updated. > Is there a way to do this? As others have said, this is a JavaScript task not a PHP task. I am pretty sure there is a

Re: [PHP] PostgreSQL vs. Interbase

2001-05-07 Thread Luke Welling
"Altunergil, Oktay"wrote: > The link that goes to interbase's web site in freshmeat.com redirects to > http://www.borland.com/interbase/ > which does not list the product as free or open source? > > Is there another version? > > oktay My understanding is that the current open source version is a

[PHP] Whether through PHP/MySQL can I talk to Flash Generator's Flash ?

2001-05-07 Thread Manisha
Hi all, I am trying using PHP with Flash Generator. The designer has given me a Flash file created using Macromedia's Flash Generator 2. The platform is BSDi / Lang - PHP / Database - MySQL. I want to change the content INSIDE the Flash file dynamically (not the flash itself). From books I

Re: [PHP] Pregunta

2001-05-07 Thread Michael Hall
Hombre, necesitamos un poco mas de informacion para ayudarte. Cuales versiones de PHP y IIS, por ejemplo, y cual version de Windows? Como lo instalaste? Como modulo o como CGI? La pagina de prueba, tiene todos los "tags" que necesita? (es decir, . Tiene el archivo la extension ".php"? Como has

RE: [PHP] if else and or ?

2001-05-07 Thread Maxim Maletsky
there are two ways to simplify your code: 1. database. Keep the usernames in another table. Check against it to verify that the passwords are correct and then go ahead pulling the data out. 2. read on about eval(). php.net/eval eval converts your string into php code. So your if else statements c

Re: [PHP] PHP vs Coldfusion and ADO vd API

2001-05-07 Thread Michael Kimsal
On Mon, 7 May 2001, Jeff wrote: > I have two questions: > > 1) I've seen a lot of benching by pc magazine and they're saying how > great cold fusion is and how bad php is. However, they don't use Zend > in any of their tests. Does anyone know of benchmarks against popular > systems that incl

[PHP] Call to a member function on a non-object

2001-05-07 Thread Ender
Okay I get the: Call to a member function on a non-object error when trying to execute this script: It happens in this area: $db=mysql_connect(localhost,'***','***') or die("Unable to connect to database"); $edlist = new EditList("serverId", "hlstats_Servers", "server"); $edlist->columns[]

[PHP] if else and or ?

2001-05-07 Thread Andras Kende
Hello, I started to do a php page with mysql connection.. My problem is: I do query from a mysql, I try to setup usernames + passwords to protect the database They would need to use specific user+password+cities to be able to connect. Bad passwd would just print an access denied messsage.. ht

[PHP] getimagesize

2001-05-07 Thread todd kennedy
i'm having some odd problems with getimagesize. sometimes it works, sometimes it doesn't. this is the code i'm calling it with: $p_size = getimagesize($photos[$start]); where $photos[$start] has the value im000301.jpg. the php file and the image file are located in the same directory. this do

[PHP] PHP vs Coldfusion and ADO vd API

2001-05-07 Thread Jeff
I have two questions: 1) I've seen a lot of benching by pc magazine and they're saying how great cold fusion is and how bad php is. However, they don't use Zend in any of their tests. Does anyone know of benchmarks against popular systems that include php + Zend? 2) What is the performance gai

Re: [PHP] Problem with PHP 4.0.5

2001-05-07 Thread Philip Olson
1. What file extension are you using for your test file? 2. Is this extension found around httpd.conf in a form similar to : AddType application/x-httpd-php .php .php3 .html .phtml .parsemephp When you stated "All works ok except ..." what works ok? Regards, Philip On Mon, 7 May 2001, Alva

Re: [PHP] Refreshing multiple frames?

2001-05-07 Thread Data Driven Design
Link to another frameset page if you choose not to use javascript. But IMO there's no such thing as a proper use of frames. Frames should never be used for anything. Data Driven Design P.O. Box 1084 Holly Hill, Florida 32125-1084 http://www.datadrivendesign.com http://www.rossidesigns.net -

[PHP] Problem with PHP 4.0.5

2001-05-07 Thread Alvaro Collado
Mr . John Vanderbeck None of both codes works, all this test were do. The Netscape ingnore all the tags with \n"; ?> Some systems are configured to not allow the shorthand "http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues

[PHP] session_start ()

2001-05-07 Thread shawn
When using session_start () over alot of pages, do i need to reregister the origional session? example: page1:session_start(); session_register('data'); page2:session_start(); page3:session_start(); session_register('data'); new to sessions, (no really), so thanks for the

[PHP] arrays and strings... a little confusing.

2001-05-07 Thread Christian Dechery
Whats is the difference between [] and {} ? define(NL,"\n"); $str="How do you do?"; echo $str[3].NL; echo $str{3}.NL; $array = array("how","do","you","do?"); echo $array[2].NL; echo $array{2}.NL; this outputs d d you you so there's no diff

RE: [PHP] Problem with PHP 4.0.5

2001-05-07 Thread John Vanderbeck
Try, \n"; ?> Some systems are configured to not allow the shorthand "http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues > -Original Message- > From: Alvaro Collado [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 07, 2001 8:36 PM > T

[PHP] Problem with PHP 4.0.5

2001-05-07 Thread Alvaro Collado
I have installed PHP4.0.5 in a Red Hat Linux 6.0 with Apache. When I run the test no problem, all is OK, but when I run a html index file in Netscape ( LocalHost ) whith a single code like this nothing was display, nothing. When I change the code for an know error for example Netscape prin

Re: [PHP] Refreshing multiple frames?

2001-05-07 Thread Zak Greant
You are going to need Javascript to do this. --zak - Original Message - From: "Brandon Orther" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 5:19 PM Subject: [PHP] Refreshing multiple frames? > Hello, > > I am using php with frames for a menu

[PHP] Refreshing multiple frames?

2001-05-07 Thread Brandon Orther
Hello, I am using php with frames for a menu bar. In one frame I have a menu. When the link is clicked on the menu I would like two frames to be updated. Is there a way to do this? Brandon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

[PHP] logical expression 'simplifier'

2001-05-07 Thread Gyozo Papp
Hello, girls and boys, my question sounds a bit strange, but it 's very important for me to simplify my database queries. So, is there any known and implementable algorithm that simplifies an arbitrary logical expression such as: (either in PHP-style and in mathematical forms separated by comma

[PHP] PEAR Versions

2001-05-07 Thread Michael Stearne
I have a version of PEAR installed now with 4.0.3pl1. I need some of the newer versions of the functions that have been added since then. I need mysql's afftedRows for instance. I see in the 4.0.5 of PEAR that was given with 4.0.5 that some function have "since 4.0.5" in PEAR.php in par

RE: [PHP] PHPmyadmin - problem remains

2001-05-07 Thread Theo Richel
Yes the database exists Indeed there are no tables There IS an option to run SQL Queries BUT There is no Browse button here. (there is a browse button when one HAS a table - but this one is for browsing the table - and in the insert file option there is a way to browse to the file on the local di

RE: [PHP] PHPmyadmin

2001-05-07 Thread Jack Dempsey
http://www.phpwizard.net/projects/phpMyAdmin/ -Original Message- From: John Vanderbeck [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 5:21 PM To: Ryan W. Zajicek; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] PHPmyadmin I'm curious, Where can I get a copy of PHPmyadmin

RE: [PHP] PHPmyadmin

2001-05-07 Thread John Vanderbeck
I'm curious, Where can I get a copy of PHPmyadmin? Up till now, I have done all my database work strictly through php code and sql statements, which as you can imagine is cumbersome. Sounds like this might be easier? I'm starting up another project right now, and will have to be creating a bunc

RE: [PHP] PHPmyadmin

2001-05-07 Thread Ryan W. Zajicek
Theo, Make sure the database exists, then click on the database name on the left hand side of the screen. Now on the right hand side of the screen it should say something like no tables exist and below that you'll see some form fields. Look for the one that says "Run SQL query/queries on databa

[PHP] PHPmyadmin

2001-05-07 Thread Theo Richel
Can anyone please tell me how to load a structure and datadumpfile (*.sql) into an empty database by means of PHPMyadmin? (I know there is a separate forum for this, but either this is a stupid question or there is no one there who knows an answer, it stays silent). I know how to do it through

[PHP] updating flash file with php

2001-05-07 Thread py
Hello, any of you has a tutorial/info on how to update a flash file (swf) with a php script ? (data coming from a text file and a database) py

RE: [PHP] Variable Variable

2001-05-07 Thread Altunergil, Oktay
http://www.php.net/manual/en/language.variables.variable.php -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 4:53 PM To: PHP User Group Subject: [PHP] Variable Variable Hello, I can't find Variable Variable in the php manual. If someone ha

[PHP] Variable Variable

2001-05-07 Thread Brandon Orther
Hello, I can't find Variable Variable in the php manual. If someone has a link to the section in the PHP manual about this please send me a link. Thank you, Brandon Orther -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

[PHP] still getting multiple definitions of symbol _DayNameLong

2001-05-07 Thread Jeff Orrok
Thanks to Andrew and Cameron for assisting with my mosxs build of php and apache. But I am still stuck with the following: dyld: /usr/sbin/httpd multiple definitions of symbol _DayNameLong /usr/sbin/httpd definition of _DayNameLong /System/Library/Apache/Modules/libphp4.so definition of _DayName

RE: [PHP] Multiple select box and form submitting

2001-05-07 Thread Johnson, Kirk
Use empty brackets in the name attribute, e.g., . PHP will then create an array indexed by numbers. PHP will automatically assign indices in assignments if you omit the index: "; echo $array[1].""; ?> Kirk > -Original Message- > From: ..s.c.o.t.t.. [gts] [mailto:[EMAIL PROTECTED]] > Su

Re: [PHP] ANN: Visual PHP Studio 1.0 Field Test 1

2001-05-07 Thread Michael Stearne
Yeah, I hope it's a MacOS app also. Michael Meir kriheli wrote: >On Tuesday 08 May 2001 00:39, elias wrote: > >Is it a windows app (I hope it isn't)? > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: [PHP] Variable question

2001-05-07 Thread ..s.c.o.t.t.. [gts]
this also works, since you mentioned that you're trying to get away from evalling an "echo" statement. $bob = "Roy"; $s = 'Hey there $bob'; $s = '$somevar = "'. $s .'";'; eval ($s); print $somevar; prints: "Hey there Roy"; personally, i think that using regexps to implement an entire symbol pa

[PHP] Need help with Database and variables

2001-05-07 Thread Ryan W. Zajicek
Hello, I was wondering if I do a database query like "SELECT count(*) FROM table_name AS song_count" if there is a way I can assign song_count to a variable that is accessable anywhere on the page and not just in a "WHILE" statement? Thanks is advance Ryan mailto:[EMAIL PROTECTED] -- PHP Gen

RE: [PHP] Variable question (eval is cool)

2001-05-07 Thread ..s.c.o.t.t.. [gts]
$bob = "Roy"; $s = 'Hey there $bob'; $s = 'print "'. $s .'";'; eval ($s); prints: "Hey there Roy"; perhaps that's what you're looking for? > -Original Message- > From: John Vanderbeck [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 07, 2001 4:21 PM > To: King, Justin; [EMAIL PROTECTED]

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
I'm trying to get around having to do that, I don't know regular expressions so it makes it difficult :( -Justin -Original Message- From: "John Vanderbeck" <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 1:21 PM To: King, Justin; [EMAIL PROTECTED] Subject: RE: [PHP] Variable question Ho

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
I understand that, but that's what I'm trying to get around doing. -Justin -Original Message- From: CC Zona <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 1:24 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Variable question In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("King, Jus

Re: [PHP] Variable Variable with array

2001-05-07 Thread Gyozo Papp
are you thinking of what this snippet does: $menu = 'menu2'; $i = 2; echo ${$menu}[$i]; - Original Message - From: "Brandon Orther" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: 2001. május 7. 22:16 Subject: [PHP] Variable Variable with array > Hello, > > I am tr

[PHP] Multiple select box and form submitting

2001-05-07 Thread ..s.c.o.t.t.. [gts]
i apologize in advance if the answer to my question is glaringly obvious. i've got a multiple select on a form and want to find out *all* selected values. the form looks like so: First Second Third when the form submits, $form['category'] is not an array of selected values, but rather a sing

Re: [PHP] Variable question

2001-05-07 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("King, Justin") wrote: > A simple eval($mysqldata) isn't going to do it though since the string > is "Your username is $userdata["username"]"; it'll just spit a parse > error. I've already tried that The code being eval'd has to be a valid PH

RE: [PHP] Variable question

2001-05-07 Thread John Vanderbeck
How about manually parsing the string out to give you chunks, that can then be eval'd easy. - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - GameDesign, the industry source for game design and development issues > -Original Message- > From: King, Justin [mailto:

[PHP] Mcrypt + urlencode : how to pass encrypted values

2001-05-07 Thread Robert Mena
Hi I am developing an application which will encrypt (using mcrypt library) some data. Everyting is ok except the fact that I can no longer have links (GET) passing the values. For ex. I used to have a href="script.php?plaintext=foobar" now I need to pass that foobar value encrypted. a href="

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
A simple eval($mysqldata) isn't going to do it though since the string is "Your username is $userdata["username"]"; it'll just spit a parse error. I've already tried that -Justin -Original Message- From: "Jack Dempsey" <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 1:13 PM To: King, Ju

[PHP] Variable Variable with array

2001-05-07 Thread Brandon Orther
Hello, I am trying to use variable variable. with arrays. this may be hard to understand so here is an example: $menu1[0] = "1"; $menu1[1] = "2"; $menu1[2] = "3"; $menu2[0] = "1"; $menu2[1] = "2"; $menu2[2] = "3"; $menu3[0] = "1"; $menu3[1] = "2"; $menu3[2] = "3"; does anyone know t

RE: [PHP] Variable question

2001-05-07 Thread Jack Dempsey
ok, look into eval() -Original Message- From: King, Justin [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 4:07 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Variable question Here let me flesh this out a bit more Consider the query "SELECT datafield FROM myTable WHERE id=1"; This

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
Here let me flesh this out a bit more Consider the query "SELECT datafield FROM myTable WHERE id=1"; This would return "My username is $userdata["username"]"; I want to then output what the database returns, and have php evaluate my variables. -Justin -- PHP General Mailing List (http://www

RE: [PHP] Variable question

2001-05-07 Thread John Vanderbeck
I'm not sure what you mean... [code] $query = "SELECT username FROM Users WHERE userid=1"; $result = mysql_query($query, $link); $user_data = mysql_fetch_assoc($result); echo "my user name is ".$user_data["username"]; [/code] Is that _not_ what you mean? - John Vanderbeck - Admin, GameDesign (h

Re: [PHP] Converting a binary integer to a number

2001-05-07 Thread Siegfried Kettlitz
Thanx, I think that will save some time. > Use unpack(): > > // Grab as many signed 32-bit integers as possible > $array = unpack ('l*', $data); > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [PHP] Book Question - PHP and MySQL Web Development

2001-05-07 Thread Luke Welling
Egon Wrote: > On Tue, May 08, 2001 at 01:24:02AM +1000, Luke Welling wrote: > > > I was wondering if anybody out there who has a copy of my book has found any > > errors. > > > > If you have noticed any errors in "PHP and MySQL Web Development" by Luke > > Welling and Laura Thomson, and have a sec

RE: [PHP] Variable question

2001-05-07 Thread King, Justin
I think you're misunderstanding my question. I'm pulling $user_data["username"] from a databse so the string my user name is $user_data["username"]" is exactly as the database hands it to me. I know how to simply concat information. -Justin -Original Message- From: "Jack Dempsey" <[EMA

Re: [PHP] Variable question

2001-05-07 Thread Gyozo Papp
Try this one : $user_data['username'] = 'Alphonse'; $str = "my user name is {$user_data['username']}"; Papp Gyozo - [EMAIL PROTECTED] - Original Message - From: "King, Justin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 2001. május 7. 21:48 Subject: [PHP] Variable question Ho

[PHP] Bound comboboxes on form

2001-05-07 Thread Dezider Góra
I want to create two bound comboboxes for selecting cell operators within a range of available countries. I want it behave like this: Combo 1 will consist of list of available contries -> user selects a country and the second combo will requery the database and show the list od of all available oo

RE: [PHP] Variable question

2001-05-07 Thread Jack Dempsey
you can do it a couple ways... echo "my user name is " . $user_data["username"]; or echo "my username is ${user_data["username"]}"; -Original Message- From: King, Justin [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 3:49 PM To: [EMAIL PROTECTED] Subject: [PHP] Variable question

[PHP] Variable question

2001-05-07 Thread King, Justin
How can I evaluate a variable in a string? For example if I have a string defined as "my user name is $user_data["username"]", how do I echo that string and have php evaluate $user_data["username"]. Thanks in advance.. -Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Gyozo Papp
> Thanks for the additional code, now I see what you are after. Sorry, I don't > know the answer, other than using curly braces will fix the problem for > empty(). Also, a User Contributed Note at > http://www.php.net/manual/en/functions.php#functions.user-defined has this > to say: > > > there

Re: [PHP] Converting a binary integer to a number

2001-05-07 Thread Zak Greant
Use unpack(): // Grab as many signed 32-bit integers as possible $array = unpack ('l*', $data); --zak - Original Message - From: "Siegfried Kettlitz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 12:36 PM Subject: [PHP] Converting a binary integer to a number

[PHP] OpenSSL compile option

2001-05-07 Thread phpman
Anyone familiar with the new OpenSSL support to work as far as opening and communicating via a SSL socket? I saw info regarding it at http://www.php.net/manual/en/ref.openssl.php however cannot get the functions to work. i'm just clueless about how to get it functional. -dave -- PHP Genera

[PHP] Converting a binary integer to a number

2001-05-07 Thread Siegfried Kettlitz
I have binary data (ie: 0x7b c8 15 0c ) and want to convert it into a 32Bit integer (here: 123456789012). Currently I use this (intel-little-endian): $integer = hexdec( bin2hex( strrev( readpos( $fd,$position,4 ) ) ) ); readpos reads 4 bytes from a file Is there a better, faster or easier way t

RE: [PHP] PostgreSQL vs. Interbase

2001-05-07 Thread Altunergil, Oktay
The link that goes to interbase's web site in freshmeat.com redirects to http://www.borland.com/interbase/ which does not list the product as free or open source? Is there another version? oktay -Original Message- From: Luke Welling [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001

Re: [PHP] PostgreSQL vs. Interbase

2001-05-07 Thread Luke Welling
Arnold Gamboa wrote: > I'm currently in serious research on what database to use for a B2B site > which is expected to hold millions of records. I have in so far considered > two open source databases - Interbase and PostgreSQL. With this in mind, I'm > sending this email to both the PostgreSQL an

Re: [PHP] HTTP_RAW_POST_DATA

2001-05-07 Thread Zak Greant
Actually, I am afraid that they won't. To achieve this, break the if/else block up so that both code blocks are called. --zak - Original Message - From: "Dmitri Zasypkin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 7:15 AM Subject: Re: [PHP] HTTP_RAW_POST_DATA

Re: [PHP] help with fgets

2001-05-07 Thread Christian Reiniger
On Monday 07 May 2001 19:37, tk wrote: > when i echo $buffer to the screen it prints out hte content of hte file > line by line > if i echo $photos[i] to the screen it just prints out random numbers > and not the content i'd expect > > (the code i'm using to do this is: > > $i = 0; > while(!feof

[PHP] Apache PHP and temporary files

2001-05-07 Thread Sarto Beaudoin
We are using apache with php on winndows 2000. When we use the dynamic image functions, we get the following message: "imagepng: unable to open temporary file" This problem goes away if we give our users the wright to use the directory "c:\". But we would prefer not to give them access to this di

Re: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Christian Reiniger
On Monday 07 May 2001 20:11, Johnson, Kirk wrote: > problem for empty(). Also, a User Contributed Note at > http://www.php.net/manual/en/functions.php#functions.user-defined has > this to say: > > > there are tons of good uses for this sort of functionality. But it > should be noted that this wi

Re: [PHP] Large Memory Problem

2001-05-07 Thread Christian Reiniger
On Monday 07 May 2001 16:17, Natasha wrote: > Lemme rephrase the question here : > > How can I use the socket functions to grab large > amounts of data ? which may not be in the memory > limit, and doing this without changing the php.ini > > how would you solve that ? (1) Best way: Use wget (as o

RE: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Altunergil, Oktay
Though I didn't know about 'variable functions' when answered, this is exactly what I said.. Interesting :) >>$foo is a string not a PHP function which makes 'empty' a string and not a >>function/command. >> >>Am I missing something? >> >>oktay -Original Message- From: Philip Olson [mail

RE: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Philip Olson
Solved. empty, isset and unset are not functions, they are language contructs, which results in the error. This makes sense, a workaround is creating functions like isEmpty (or something similar) and using them. I'll be submitting a future request soon ;) Thanks everyone, especially OpenSrc i

Re: [PHP] FILE () STRIPS BLANKS FROM THE ARRAY - HOW CAN I STOP IT

2001-05-07 Thread Christian Reiniger
On Monday 07 May 2001 02:41, Jay Lepore wrote: > I have an ASCII fixed width text file I'm trying to convert to an array > of fields. But I need to keep the spaces in tact so I know exactly > where one field ends and another begins. > > Do you know of any way to modify the default behavior of fil

RE: [PHP] Multiple Result sets

2001-05-07 Thread Altunergil, Oktay
If it's anything like MySQL it should return unique result handlers (identifiers).. You can reference them using the result handler if there's such an option.. oktay -Original Message- From: James Crowley [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 1:44 PM To: [EMAIL PROTECTED

Re: [PHP] URL redirection

2001-05-07 Thread Christian Reiniger
On Monday 07 May 2001 20:04, elias wrote: > > location = "hello-world.htm"; > > > can be used even if header is already sent! But only works if (a) the browser supports Javascript, (b) supports this JS construct and (c) has Javascript enabled. -- Christian Reiniger LGDC Webmaster (http://sun

RE: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Johnson, Kirk
Thanks for the additional code, now I see what you are after. Sorry, I don't know the answer, other than using curly braces will fix the problem for empty(). Also, a User Contributed Note at http://www.php.net/manual/en/functions.php#functions.user-defined has this to say: there are tons of good

Re: [PHP] help with fgets

2001-05-07 Thread Gyozo Papp
try, $photos[] = $buffer; // without $i in brackets, this means append to the end of the array in the loop, maybe this helps. - Original Message - From: "tk" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 2001. május 7. 19:37 Subject: [PHP] help with fgets > hi. > > i'm try

RE: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Philip Olson
I wish it were that easy. Also, I'm looking for words on WHY this behavior exists. http://www.php.net/manual/en/functions.variable-functions.php '; // works $foo = 'is_string'; $var = 'abcdef'; if ($foo($var)) print '$var is a string'; // works $foo = 'strlen'; $var =

[PHP] Recursive SQL Queries: Web Directory Categories

2001-05-07 Thread James Crowley
Hi, I have a web directory which allows sub-categories to an unlimited level. This is done with a categories table, and assigning a parentid to each... For example ID ParentIDName 10 Products 21 Sub-Category of Products (Level 1) 31 Another

[PHP] Multiple Result sets

2001-05-07 Thread James Crowley
Hi, I've written a recursive stored procedure in MS SQL, which returns a number of result sets (ie 3 different recordsets rather than the usual 1). How can I access the other result sets in php? Regards, - James Editor, VB Web == Web - http://www.vbweb.co.uk Email - [E

Re: [PHP] files created with mkdir and open(file,"w+) are owned by nobody

2001-05-07 Thread tk
the owner of the files i believe will be hte user running the webserver since the webdserver itself is making the files. apache by defauly runs as nobody:nobody if you want to change this i think php has a chown funciton or you can run your webserver as a different user name/group Ryan Hilton

[PHP] help with fgets

2001-05-07 Thread tk
hi. i'm trying to read in a text file line by line into an array. i've got the following code: $i = 0; while(!feof ($fp)){ $buffer = trim(fgets($fp, 4096)); $photos[i] = $buffer; $i++; } fclose($fp); when i echo $buffer to the screen it prints out hte content of hte file line by line

Re: [PHP] passing variables + if case

2001-05-07 Thread Jason Stechschulte
On Fri, May 04, 2001 at 05:08:30PM -0700, Andras Kende wrote: > > Is this is a correct format ??? If you would tell us what you are trying to accomplish and why you think it doesn't work, we might actually be able to help you. -- Jason Stechschulte [EMAIL PROTECTED] -- Of course, I reserve the

Re: [PHP] Extracting Array value as variable

2001-05-07 Thread Jason Stechschulte
On Fri, May 04, 2001 at 08:08:11PM -0400, John McConnell wrote: > I have an array $veg that is set so $veg[0]="broccoi" & $veg[1]="tomatotes". > I have also assigned values to the variables $broccoli=1 and $tomatoes=2. > I want to print the values for those variables ($broccoli and $tomatoes) by >

RE: [PHP] Sorting Multidimensional Arrays

2001-05-07 Thread Jack Dempsey
check http://www.php.net/manual/en/function.asort.php there's a routine someone wrote in the contributed section... -jack -Original Message- From: Rick Dietz [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 1:21 PM To: [EMAIL PROTECTED] Subject: [PHP] Sorting Multidimensional Arrays

[PHP] Sorting Multidimensional Arrays

2001-05-07 Thread Rick Dietz
I'm having trouble finding a function to sort a multidimensional array by the value of a given key in the contained arrays. Perhaps i'm missing something, perhaps PHP is missing something. Take the array below. All I'm looking to do is reorder $my_array based on the value of the "name" key for

[PHP] PHP crypt() function stalls page on Raq2 with PHP4.03pl1

2001-05-07 Thread Crocket
Hi yall, Before php4.03pl01 , PHP 3.07 (from the available rpm's at cobalt's ftp site) was installed on our cobalt raq2. Scripts that were using the crypt() function never gave me any problems until I had php4.03pl01 installed by a cobalt distributor. When I run this simple code : ## Code Enc

RE: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Johnson, Kirk
Change the parens around $var to curly braces: if ($foo{$var}) print 'worked.'; Kirk > -Original Message- > From: Philip Olson [mailto:[EMAIL PROTECTED]] > Subject: [PHP] variable functions: empty/isset/unset invalid? > > This does not work as expected (as I expect it at least) and giv

Re: [PHP] Multi Dimensional Arrays?

2001-05-07 Thread tcuhost
I would have to say you would need a nested for loop to count your array. $j = 0 ; $k = 0 ; for ( ; $j != '' ) ; $j++ ) { //top of the col. echo "$main_menu[$j][$k]"; for ( $k = 1; $k != '' ; $k++ ) { // then everything

[PHP] filepro()

2001-05-07 Thread Kent C
I need to port a large amount of data from a filepro database, into a MySQL database, and believe the built-in filepro() functions of PHP would make it easy. I have scoured the net, and am unable to find the filepro add-on module for PHP. Can anyone help? All of the PHP documentation says i

RE: [PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Altunergil, Oktay
$foo is a string not a PHP function which makes 'empty' a string and not a function/command. Am I missing something? oktay -Original Message- From: Philip Olson [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 1:04 PM To: [EMAIL PROTECTED] Subject: [PHP] variable functions: empty/i

[PHP] variable functions: empty/isset/unset invalid?

2001-05-07 Thread Philip Olson
This does not work as expected (as I expect it at least) and gives the following error. This seems to result with use of empty(), isset(), and unset(), perhaps others : Call to undefined function: empty() When using : $foo = 'empty'; if ($foo($var)) print 'worked.'; Of course the follow

[PHP] Twin Cities PHP Users Group meeting

2001-05-07 Thread Tim McGuire
The next meeting of the Twin Cities PHP users group is coming: Wednesday, May 9 7:00 PM Downtown St. Paul Check www.tcphp.org for directions and minutes from previous meetings -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

Re: [PHP] ANN: Visual PHP Studio 1.0 Field Test 1

2001-05-07 Thread Meir kriheli
On Tuesday 08 May 2001 00:39, elias wrote: Is it a windows app (I hope it isn't)? -- Meir Kriheli There's someone in my head, but it's not me - Pink Floyd > Hello. > > Good work! > > Hope it beats DreamWeaver4+EditPlus2 > > -elias. > > "José León Serna" <[EMAIL PROTECTED]> wrote in message

[PHP] Dynamic Update of DNS ??

2001-05-07 Thread Vincen Pujol
Hi, Sorry for the crossposting but I don't know where to find a solution for this. I need to be able to update dynamically entries in a DNS (Bind 9). My DNS supports dynamic updates but how to do dynamic updates in my DNS server from a PHP Script ?? Th

[PHP] Zend.com CVS

2001-05-07 Thread Michael Stearne
Is the Zend CVS down? The connection is really slow, I have been trying to get the source for an hour. Is the problem on my end or Zend? Thanks, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

[PHP] GD Library

2001-05-07 Thread José Luis Malagón V.
Hi, I need generate graphics with php. I know GD Library help me but I don´t know how do I install it. Can somebpdy help me ? Thanks in advance for your help, Jose Luis.

[PHP] files created with mkdir and open(file,"w+) are owned by nobody

2001-05-07 Thread Ryan Hilton
I'm creating directories and files inside of a php program and they are owned by nobody. How can I assign an owner to them and who should the owner be? Where is documentation for these types of questions? Here is the code snipet: create a directory - I would also like to create it with 775 pr

[PHP] Updating an installation of PEAR

2001-05-07 Thread Michael Stearne
I have a pretty current version of PEAR installed on a server, but would like to upgrade to the most recent CVS. I have pulled the CVS version. How can I "install" this new version of PEAR into the place I have my current version without recompiling PHP again. Are all the configuration for insta

RE: [PHP] session_register() - Netscape workaround?

2001-05-07 Thread Johnson, Kirk
-Original Message- > From: Jennifer [mailto:[EMAIL PROTECTED]] > Subject: Re: [PHP] session_register() - Netscape workaround? > I thought of a workaraound for Netscape and would like some > feedback on how to do it and whether it is a good idea. > > I manually edited the session file an

  1   2   >