[PHP] Installing PHP 4.0.5 on win 2000 Professional

2001-05-07 Thread Feroz Tapiya
Hi Everyone, Currently I use MS Frontpage 2000. I wish to use PHP 4.0.5. I have downloaded the installed and lib from the web. I am using Win 2000 Professional and setup IIS on my machine. I have installed everything, but PHP icon or program group never appear. Can we use PHP to develop using

Re: [PHP] URL redirection

2001-05-07 Thread elias
location = "hello-world.htm"; can be used even if header is already sent! -elias www.eassoft.cjb.net "Jamie Saunders" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > Is there a PHP function that will redirect the current page to another url? > > e

RE: [PHP] Databases and HTML forms

2001-05-07 Thread Serge Vleugels
check out phpMyAdmin i use it everywhere Serge -Original Message- From: Manuel Lemos [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 4:22 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Databases and HTML forms Hello Michael, On 20-Apr-01 14:38:48, you wrote: >I'm needing to

Re: [PHP] Installing PHP 4.0.5 on win 2000 Professional

2001-05-07 Thread elias
Dear Feroz, Sure you can develop under Windows os using PHP. I'm currently running PHP+Win98+PWS and it rocks! no problems when putting on a *nix server. -elias www.eassoft.cjb.net If you ever done ASP coding then "Feroz Tapiya" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMA

[PHP] Download files extracted from db using Internet Exploded

2001-05-07 Thread Mattias Segerdahl
Hi, When using Internet Exploded to download files from a website which extracts an file from a mysql db I encounter a weird problem. How I do this is simple, I use an href link that looks something like this, downloadcontent.php?PHPSESSID=33f8022176ba48bb8f4421d59d1792a6&attachment_ai d=3 The

[PHP] Session Problem

2001-05-07 Thread MySQL
I tried to put sessions to work, but i have a problem to start a session in each browser. When i close the browser and start it again the session_id is the same, if i start another browser he have the same session id as the first one and so on. Can someone tell me why? -- PHP General Mailing L

Re: [PHP] "Free" Database Design Program

2001-05-07 Thread Augusto Cesar Castoldi
It's not a free program. It's a product of Computer Associations. http://www.cai.com http://www.ca.com regards. Augusto On Sun, 6 May 2001, Andrzej Swedrzynski wrote: > On Sun, 6 May 2001, Alexander Skwar wrote: > > [dia] > > Compared to ERWin, this is indeed *VERY* limited - but maybe I was

Re: [PHP] Cant add new Header

2001-05-07 Thread elias
you can always redirect via JavaScript: location = "newlocation.htm" -elias http://www.eassoft.cjb.net ""Andy"" <[EMAIL PROTECTED]> wrote in message 9cuqlv$dgt$[EMAIL PROTECTED]">news:9cuqlv$dgt$[EMAIL PROTECTED]... > Hello, > > I am a newi. > > Currently I try to relocate the viewed page

SV: [PHP] Cant add new Header

2001-05-07 Thread Mattias Segerdahl
Make sure you're not sending any output to the browser, not even the body tag, before you send the header(); -Ursprungligt meddelande- Från: elias [mailto:[EMAIL PROTECTED]] Skickat: den 7 maj 2001 22:43 Till: [EMAIL PROTECTED] Ämne: Re: [PHP] Cant add new Header you can always redirect

Re: [PHP] Installing PHP 4.0.5 on win 2000 Professional

2001-05-07 Thread Phil Driscoll
>I have installed everything, but PHP icon or program group never appear. >Can we use PHP to develop using Windows o/s or not. >When I run php.exe in /php/ it just hangs in DOS mode. PHP is something that plugs into the web server - it's not the sort of thing that gets entered in your start menu.

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

2001-05-07 Thread José León Serna
Hello: I'm proud to announce Visual PHP Studio 1.0 Field Test 1, a tool that combines the component technology with the web design, JavaScript and PHP. You can download it for free at http://www.visualphpstudio.f2s.com in the downloads section. Feel free to vote on the survey and post your comm

[PHP] HTTP_RAW_POST_DATA

2001-05-07 Thread Dmitri Zasypkin
Hi, Could anyone help me with altering PHP sources? Or tell me please where may I ask this question? The problem is when PHP handles a POST request of a known Content-type (e.g. x-www-form-urlencoded), it leaves $HTTP_RAW_POST_DATA blank. I need to alter the sources so that PHP would always put

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

2001-05-07 Thread elias
Hello. Good work! Hope it beats DreamWeaver4+EditPlus2 -elias. "José León Serna" <[EMAIL PROTECTED]> wrote in message 002001c0d6e3$35f765a0$469610ac@JLeon">news:002001c0d6e3$35f765a0$469610ac@JLeon... > Hello: >I'm proud to announce Visual PHP Studio 1.0 Field Test 1, a tool that > combine

[PHP] PostgreSQL vs. Interbase

2001-05-07 Thread Arnold Gamboa
Hi there. 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 and Interbase mailin

Re: [PHP] "Free" Database Design Program

2001-05-07 Thread Alexander Skwar
So sprach Augusto Cesar Castoldi am Mon, May 07, 2001 at 07:29:35AM -0300: > It's not a free program. It's a product of Computer Associations. > > http://www.cai.com > http://www.ca.com Oh, it belongs to CA now? Strange though, that there's nothing at LogicWorks anymore. When did CA buy LogicW

Re: [PHP] Image Upload

2001-05-07 Thread Geir Eivind Mork
Kyle Mathews wrote: > I'm looking for some code that will upload images to my server from a form > submission. > I'd also like it to check for a max file size of the images. > Any help would be appreciated. what about reading the manual? there are variables that contain the file size. http://ww

[PHP] HTTP authentication : logout!!!

2001-05-07 Thread Thomas Edison Jr.
i'm using http authentication for my php pages (members area). Once you login correctly, than you can access anypage as the authentication box doesn't pop-up. Now i woul like to create a logout link after clicking on which, whenever you click on a page using auth, the auth box should pop-up agai

Re: [PHP] HTTP_RAW_POST_DATA

2001-05-07 Thread Zak Greant
Dmitri Zasypkin wrote: > Hi, > > Could anyone help me with altering PHP sources? Or tell me please where > may I ask this question? > > The problem is when PHP handles a POST request of a known Content-type > (e.g. x-www-form-urlencoded), it leaves $HTTP_RAW_POST_DATA blank. I > need to alter the

[PHP] Days between two dates

2001-05-07 Thread Rosen
Hi, How can I calculate days between two dates ? Thanks, Rosen Marinov -- 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] HTTP authentication : logout!!!

2001-05-07 Thread elias
Never tried it though...but can you try to empty or unset the $PHP_AUTH_USER/PWD ? -elias http://www.eassoft.cjb.net ""Thomas Edison Jr."" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > i'm using http authentication for my php pages > (members area). Once you

RE: [PHP] Days between two dates

2001-05-07 Thread Boget, Chris
> Hi, > How can I calculate days between two dates ? This should work: $firstDate = mktime( 0, 0, 0, 1, 12, 2001 ); $secondDate = date( "U" ); $daysInBetween = ( $secondDate - $firstDate ) / 86400; Chris

Re: [PHP] setcookie()

2001-05-07 Thread Patrick Wayne Tan
BTW here's my php.ini file. many thanks! - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 10:48 AM Subject: [PHP] setcookie() > Hi all, > > I have just migrated my scripts from redhat linux 6.2 and apache to win nt4 > and IIS 4. > > I've

Re: [PHP] HTTP authentication : logout!!!

2001-05-07 Thread Mauricio Souza Lima
It dont work, what you have to do is that: In the logout.php: -- Logout Sucessful -- And you have to inform the user to clean the password field, click ok, then the pop-up will open again, then user click in cancel. I just know that way to do. If anyone know another w

RE: [PHP] URL redirection

2001-05-07 Thread Matthew Luchak
http://www.somewhere.com/index.php";); exit; ?> Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] > Hi, > > Is there a PHP function that will redirect the current page to another url? -- PHP General Mailing List (http://www.php.net/) T

RE: [PHP] HTTP authentication : logout!!!

2001-05-07 Thread Matt Schroebel
$PHP_AUTH_USER = ""; $PHP_AUTH_PW = ""; Ought to do it. > From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]] > Sent: Monday, May 07, 2001 8:39 AM > To: [EMAIL PROTECTED] > Subject: [PHP] HTTP authentication : logout!!! > Now i woul like to create a logout link after clicking > on which, whene

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

2001-05-07 Thread José León Serna
Hello: I'm proud to announce Visual PHP Studio 1.0 Field Test 1, a tool that combines the component technology with the web design, JavaScript and PHP. You can download it for free at http://www.visualphpstudio.f2s.com in the downloads section. Feel free to vote on the survey and post your comm

Re: [PHP] HTTP_RAW_POST_DATA

2001-05-07 Thread Dmitri Zasypkin
Zak, Thank you for the answer. Are you sure $HTTP_POST_VARS will be still set after that modification in case of a valid x-www-form-urlencoded POST request? I'm afraid they won't.. Such side effect is very undesirable for me. Anyway thanks. Zak Greant wrote: > Dmitri Zasypkin wrote: > > Hi,

[PHP] "Incorrect number of arguments"

2001-05-07 Thread Sverre Johan Tøvik
Hi, Somewhere between versions 4.0.0 and 4.0.4pl1, php started generating warning messages whenever a function call don't supply all defined arguments. A quick google search revealed an answer on some mailing list, basically saying "it's a feature, not a bug". But, seeing as how this "feature

Re: [PHP] Days between two dates

2001-05-07 Thread Rosen
Sorry, it doesn't work !! Rosen Marinov ""Boget, Chris"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > How can I calculate days between two dates ? > > This should work: > > $firstDate = mktime( 0, 0, 0, 1, 12, 2001 ); > $secondDate = date( "U" );

[PHP] Large Memory Problem

2001-05-07 Thread Natasha
I'm not connected to the night very speedily, and I wanted to download a manual, which is generated dynamically each time by the server. the manual is around 12MB, how will I download it ? I've tried fread(), it gives me a exhaustive memory error. I used fgets() in a while loop, and fwrite too,

RE: [PHP] HTTP authentication : logout!!!

2001-05-07 Thread John Vanderbeck
I to have never been happy with the way PHP handles actual secure sessions. GameDesign was written to entirely use session based access. Both the main user site, and the admin backend use it, and it works quite well. - John Vanderbeck - Admin, GameDesign (http://gamedesign.incagold.com/) - Game

RE: [PHP] Days between two dates

2001-05-07 Thread Boget, Chris
> Sorry, > it doesn't work !! Why do you say that? I just tested it and it worked. It returned: "115.31296296296" "115" being the number of days ".31296296296" is the fraction of the day that is the difference of hours between the two times. mktime() and date( "U" ) return a unix timestamp

Re: [PHP] "Incorrect number of arguments"

2001-05-07 Thread Alexander Wagner
Sverre Johan Tøvik wrote: > us), is there any chance we might see an option to turn off this > strict checking? Not the checking, but the reporting. Just change "error_reporting" in your php.ini regards Wagner -- On a Swedish chainsaw: Do not attempt to stop chain with your hands or genitals!

Re: [PHP] Large Memory Problem

2001-05-07 Thread elias
why don't get you get the static .CHM version? it's good and it's 1.2MB ? -elias http://www.eassoft.cjb.net "Natasha" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm not connected to the night very speedily, and I > wanted to download a manual, which is ge

Re: [PHP] Days between two dates

2001-05-07 Thread Rosen
It really Work !!! Sorry, thath was my syntax error! Thanks very much !! Rosen Marinov ""Boget, Chris"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Sorry, > > it doesn't work !! > > Why do you say that? I just tested it and it worked. > It returned: >

Re: [PHP] Re: [PHP] Large Memory Problem

2001-05-07 Thread Natasha
Hi, you probably didn't understand my problem. I'm not on a very speedy connection, however having access to a server, which has PHP enabled, so because the download is generated dynamically Go!Zilla can't really resume to it. That's my problem, so I'm transferring it to my server which supports

Re: [PHP] Re: [PHP] Large Memory Problem

2001-05-07 Thread Tom Carter
Hi This isn't a PHP thing, but most unix/linux distributions have a program called wget in. You can use this to very easily download a file to your server (eg. wget http://www.freebsd.com/man.php) This will download the file to the server, effectively "fixing" it at that so you can download it

Re: [PHP] Large Memory Problem

2001-05-07 Thread Natasha
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 ? = Do You Yahoo!?

Re: [PHP] Re: [PHP] Large Memory Problem

2001-05-07 Thread David VanHorn
At 02:59 PM 5/7/01 +0100, Tom Carter wrote: >Hi > >This isn't a PHP thing, but most unix/linux distributions have a program >called wget in. You can use this to very easily download a file to your >server (eg. wget http://www.freebsd.com/man.php) Wget is VERY powerful. I have a php based site th

[PHP] fopen question

2001-05-07 Thread sean
hi I am running the following on my redhat 7.0 / php4 / apache box and receiving the error below. Warning: fopen("/dev/ttys0","r+") - Input/output error in /var/www/html/test.php on line 2 I would be grateful if you could help. Many thanks, Sean -- PHP General Mailing List (http://www.

[PHP] Sos

2001-05-07 Thread Younes . Khabchaouy
Hi, My name is Younes Khabchaouy , and am working as a junior system administrator . i hade a request to install the php with apache .I did install both with the RPM because we use the Red Hat platform And i did the changes in apache ( httpd.con) Load Modules and Add modules and i c

RE: [PHP] Sos

2001-05-07 Thread Altunergil, Oktay
Remove both rpms + apache Do a source install. Using redhat is no excuse for installing PHP+MySQL+Apache from rpms. You will be glad you did it when you're done. It's much easier to usually. oktay -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07

RE: [PHP] Sos

2001-05-07 Thread Dominick Vansevenant
I heard about abraisoft.com, I used it on Windows to install a new dev machine and it works very good, maybe you can try the redhat linux version? D. -Original Message- From: Altunergil, Oktay [mailto:[EMAIL PROTECTED]] Sent: maandag 7 mei 2001 16:32 To: '[EMAIL PROTECTED]'; [EMAIL PROTE

RE: [PHP] Sos

2001-05-07 Thread Paul O'Neil
That's what I did to get mine working on 7.0 -Original Message- From: Altunergil, Oktay [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 7:32 AM To: '[EMAIL PROTECTED]'; [EMAIL PROTECTED] Subject: RE: [PHP] Sos Remove both rpms + apache Do a source install. Using redhat is no excu

Re: [PHP] converting fields from a fixed length text file into an array

2001-05-07 Thread Gyozo Papp
Well, if you'd like to a little bit more sophisticated file reading, just give a try to my class strStream, here is a lin to its short description http://phpclasses.upperdesign.com/browse.html?file=784 (class reference) http://phpclasses.upperdesign.com/packages/228 (the whole package) Papp Gyo

RE: [PHP] Sos

2001-05-07 Thread B. van Ouwerkerk
>Do a source install. Using redhat is no excuse for installing >PHP+MySQL+Apache from rpms. You will be glad you did it when you're done. >It's much easier to usually. Yep.. But before you remove everything.. you might want to check the location of your .php files.. they should be outside the c

Re: [PHP] fopen question

2001-05-07 Thread Kelvin
Hi sean, try to put a file name not a directory or path. $file = fopen("filename.withextension","r+" Kelvin. <[EMAIL PROTECTED]> wrote in message 9d6apq$eka$[EMAIL PROTECTED]">news:9d6apq$eka$[EMAIL PROTECTED]... > hi > > I am running the following on my redhat 7.0 / php4 / apache box and

[PHP] Announcement: Smarty template engine 1.4.0 available

2001-05-07 Thread Monte Ohrt
There are many changes to this release, including runtime compilation of templates and the support for arbitrary template resources, such as multiple template directories or databases. Be sure to read the RELEASE_NOTES, especially if you are upgrading from a prior release. Monte http://www.phpin

Re: [PHP] ANN: Visual PHP Studio 1.0 Field Test 1 (Problem Fixed)

2001-05-07 Thread José León Serna
Hello: Sorry, but I didn't know that f2s.com deletes all the .exe files from their servers, now I have uploaded a .rar file and it's working. Sorry for any inconvenience. Best Regards Visual PHP Studio, RAD development with PHP http://www.visualphpstudio.f2s.com -- PHP Gener

[PHP] Book Question - PHP and MySQL Web Development

2001-05-07 Thread Luke Welling
Hi all, 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 second, could you drop me an email? I don't think there will be too many, but I would like

Re: [PHP] "Free" Database Design Program

2001-05-07 Thread Rick van Dijk
hello Augusto, Maybe our tool is something for you. Dezign for databases is a database development tool using an entity relationship diagram. It visually supports the lay out of the entities and relations and automatically generates SQL schemas for most leading databases including MySQL. Not free

[PHP] Linux Version of Visual PHP Studio

2001-05-07 Thread José León Serna
Hello: I have received some comments about a Linux Version of Visual PHP Studio, I have used Delphi 5 to create Visual PHP Studio, so I could use Kylix to create a Linux version, but I don't know how much people would be interested, if you are a linux php programmer and you are interested in a

Re: [PHP] fopen question

2001-05-07 Thread sean
even when you are trying to access a COM port? ""Kelvin"" <[EMAIL PROTECTED]> wrote in message 9d6dc8$eug$[EMAIL PROTECTED]">news:9d6dc8$eug$[EMAIL PROTECTED]... > Hi sean, > >try to put a file name not a directory or path. > $file = fopen("filename.withextension","r+" > > Kelvin. > > > <

[PHP] Re: Install problems with PHP and GD

2001-05-07 Thread Daniel BI
If you're running the latest RH, the path should be /usr anyway, issue: find / -name gd.h if the result is /usr/include/gd.h, then the path should be /usr if you have somthing else, I guess you already suppose what the path is.. :) Daniel BI -- PHP General Mailing List (http://www.php.net/

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

2001-05-07 Thread eschmid+sic
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 second, could you drop me a

[PHP] Pregunta

2001-05-07 Thread "Lic. Santa Ortiz Rodriguez"
Estoy apenas en la instalacion, baje el archivo el cual me indica que configura automaticamente el iis, lo corro y trato de hacer la pagina de prueba, "Este es un ejemplo de php", lo copia igual pero al abrir la pagina no se ve nada, aparece en blanco, no se que es lo que me hace falta algo de

[PHP] PEAR db nextId() function

2001-05-07 Thread Zon Hisham Bin Zainal Abidin
can anyone help with PEAR nextId() function. it's in mysql.php but NOT part of DB.php usage? rgds. -- 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 PR

Re: [PHP] ANN: Visual PHP Studio 1.0 Field Test 1 (Problem Fixed)

2001-05-07 Thread Markus Fischer
Isn't using *.zip a bit more common ? Luckily I downloaded the *.exe before. - Markus - Original Message - From: "José León Serna" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 5:08 PM Subject: Re: [PHP] ANN: Visual PHP Studio 1.0 Field Test 1 (Problem Fixed) >

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

2001-05-07 Thread Mark Roedel
> -Original Message- > From: Jay Lepore [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 06, 2001 7:41 PM > To: [EMAIL PROTECTED] > Subject: [PHP] FILE () STRIPS BLANKS FROM THE ARRAY - HOW CAN > I STOP IT > > > I have an ASCII fixed width text file I'm trying to convert > to an array of

[PHP] Multi Dimensional Arrays?

2001-05-07 Thread Brandon Orther
Hello, I am working on a menu script that I wanted to use multi-dimensional arrays for. Here is the conf file I have: //Main Menu Array $main_menu[0] = "Menu 1"; //Represents the name of the menu //Menu 1 Array $main_menu[0][0] = "Test 1"; $main_menu[0][1] = "Test 2"; $main_menu[0][2] = "Test

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

[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

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

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

[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

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

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

[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

[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

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

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

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

[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

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 =

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

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

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

[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

[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

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

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

  1   2   >