[PHP] Array of classes

2001-10-30 Thread Andrzej Roszkowski
Hi! I have to create array of classes. When I do it this way: f add($sth) $this->array[] = $sth; it doesn't work :( when i'm trying to get class from there it says that this is not an object. How to do it rigth way?

[PHP] using PHPMyAdmin with SQL

2001-10-30 Thread Peter
Hi, I have installed PHPMyAdmin-2.2.0 on my webserver in a directory of one my virtual hosts. My machine is running Apache 1.3.12 and BIND DNS server. I have MySQL installed already and I have already tested successfully using the text commands. My Apache configuration has virtual host direct

Re: [PHP] Trouble with php generated images

2001-10-30 Thread Jason G.
Give ImagePNG a try... -Jason Garber At 10:22 PM 10/29/2001 -0800, costa wrote: >The text printed on this image looks sloppy and grainy. (This image is being >generated on a linux server RH 7.1, Apache 1.3.19, with GD 1.8) I remember >seeing something about adjusting the quality of the image, bu

Re: [PHP] Total Newbie in over head

2001-10-30 Thread Peter
I am not sure if this helps , but I followed the instructions on the following URL for setting up PHP and SQL. It used an older version of Apache (Apache 1.3.12) and I think the author used something like RedHat 6. Well, anyways, I followed it and it was okay. Try taking a look at the following

Re: [PHP] Problems inserting single quote into Oracle database

2001-10-30 Thread Thies C. Arntzen
On Tue, Oct 30, 2001 at 09:54:19PM -0800, Hugh Danaher wrote: > I don't know if this will work for Oracle but try putting a backslash before > the single quote mark (e.g. it\'s) the ' should then taken as another > character by php. > Hope this works for you. single quotes are escaped using a

RE: [PHP] Re: I rest my case

2001-10-30 Thread Joseph Blythe
Um! could they be commented out still? # AddType application/x-httpd-php .php4 .php3 .phtml .php # AddType application/x-httpd-php-source .phps Make sure you remove the hash signs whatever they called :) AddType application/x-httpd-php .php4 .php3 .phtml .php AddType application/x-httpd-p

Re: [PHP] question about variables...

2001-10-30 Thread sc
the first one that you gave me works fine... thanks for that.. -sc "Hugh Danaher" <[EMAIL PROTECTED]> wrote in message 000d01c161cf$eb160d20$9106f4d8@win95">news:000d01c161cf$eb160d20$9106f4d8@win95... > > SC > What you want should look something like this: ${"seat".$p} > where $p can be increm

Re: [PHP] Problems inserting single quote into Oracle database

2001-10-30 Thread Hugh Danaher
I don't know if this will work for Oracle but try putting a backslash before the single quote mark (e.g. it\'s) the ' should then taken as another character by php. Hope this works for you. Hugh - Original Message - From: Kevin Dewsnup <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tues

Re: [PHP] question about variables...

2001-10-30 Thread Hugh Danaher
SC What you want should look something like this: ${"seat".$p} where $p can be incremented in a loop. However, I was advised to use an array which would look something like this: $seat[$p] where $p can also be incremented in a loop. Hope this helps. hugh - Original Message - From: sc <

[PHP] question about variables...

2001-10-30 Thread sc
Hey all; If i have a variable say, $seat and i want to go through variables with a number, ie. $seat1 , $seat2 etc. how would i go about it? i have one setup where $p increments (so then you have $seat$p) but i cant get it to work properly (tried all sorts of combinations with ' and " and . etc.)

Re: [PHP] Re: I rest my case

2001-10-30 Thread David Robley
On Wed, 31 Oct 2001 15:44, J W W L (Warwick) Berg wrote: > OK, there goes any pretense of intelligence that I may have been able > to muster ;-) > > The AddType tag was found inside another as follows: > > > > Is there some way I can check if this module is present, otherwise what > you're saying

Re: [PHP] Re: I rest my case

2001-10-30 Thread Warwick
OK, there goes any pretense of intelligence that I may have been able to muster ;-) The AddType tag was found inside another as follows: Is there some way I can check if this module is present, otherwise what you're saying is that the AddType isn't being executed if the is false, yes? Wha

Re: [PHP] Re: I rest my case

2001-10-30 Thread Jason Brooke
John, Jason didn't literally mean for you to search for the exact string '' - he was telling you to look through the various types of tags found in your httpd.conf file, such as , etc etc > There is no element in the httpd.conf. Is that where I should be > looking? > Warwick > > > Jason Murra

Re: [PHP] Re: I rest my case

2001-10-30 Thread David Robley
On Wed, 31 Oct 2001 15:15, Jason Murray wrote: > > Hey thanks guys for the help, but it's still not happening. > > Apache had already the AddType lines mentioned by y'all. > > It's possible the AddType lines are inside a container that > will ensure they're not executed. Backtrack to the > elemen

RE: [PHP] Re: I rest my case

2001-10-30 Thread Warwick
There is no element in the httpd.conf. Is that where I should be looking? Warwick Jason Murray wrote: >> Hey thanks guys for the help, but it's still not happening. >> Apache had already the AddType lines mentioned by y'all. > > It's possible the AddType lines are inside a container that > w

RE: [PHP] Total Newbie in over head

2001-10-30 Thread Jack Dempsey
Hi Warwick, Did you look at the install notes that come with PHP? It explains there how you have to configure Apache to recognize php files and give them to the php interpreter...checkout the README or INSTALL files that come with PHP... jack -Original Message- From: J W W L (Warwick) B

RE: [PHP] Re: I rest my case

2001-10-30 Thread Jason Murray
> Hey thanks guys for the help, but it's still not happening. > Apache had already the AddType lines mentioned by y'all. It's possible the AddType lines are inside a container that will ensure they're not executed. Backtrack to the element that the AddType lines are in, and see what it does.

[PHP] Re: I rest my case

2001-10-30 Thread Warwick
Hey thanks guys for the help, but it's still not happening. Apache had already the AddType lines mentioned by y'all. Any other ideas? Thanks Warwick J W W L Berg wrote: > Hi all > > Sorry about what is probably a total dickhead about to enter your midst, > but I've never installed php or

Re: [PHP] I rest my case

2001-10-30 Thread David Robley
On Wed, 31 Oct 2001 14:52, J W W L (Warwick) Berg wrote: > Hi all > > Sorry about what is probably a total dickhead about to enter your > midst, but I've never installed php or seen it much at all before but > am trying to do it now. > > Using RH 7.1 and Apache 1.3.19 > > Want to install php4 and

Re: [PHP] I rest my case

2001-10-30 Thread Tyler Longren
Hello Warwick, You're correct in assuming that Apache isn't set up right. It needs to be set to parse the .php files. Here's how to do this: Locate httpd.conf (/usr/local/apache/conf/httpd.conf for my compile). And uncomment/add these lines: AddType application/x-httpd-php .php .php3 AddType a

[PHP] Re: I rest my case

2001-10-30 Thread Mike Frazer
PHP is a server-parsed language. You need to add the right directives to your httpd.conf file in the global config section. They should be something *like* the following: AddType application/x-httpd-php .php4 .php3 .phtml .php AddType application/x-httpd-php-source .phps You may also need

Re: [PHP] Re: php & mysql prob...

2001-10-30 Thread Mike Frazer
So I'm NOT stupid...just dumb! :) After two years of PHP/MySQL programming you'd think I would have been more sure about that... Mike "David Robley" <[EMAIL PROTECTED]> wrote in message 01103114530808.28397@www">news:01103114530808.28397@www... > On Wed, 31 Oct 2001 15:40, Mike Frazer wrote:

Re: [PHP] Re: php & mysql prob...

2001-10-30 Thread David Robley
On Wed, 31 Oct 2001 15:40, Mike Frazer wrote: > I may be a little backward here but wasn't mysql_db_*() deprecated? > > Keep in mind it was a long day at work and I'm tired. I could be on > fire right now and probably just want to open a window to cool off. :) > > Mike Since 4.06, according to t

[PHP] I rest my case

2001-10-30 Thread Warwick
Hi all Sorry about what is probably a total dickhead about to enter your midst, but I've never installed php or seen it much at all before but am trying to do it now. Using RH 7.1 and Apache 1.3.19 Want to install php4 and mysql combo and totally ignorant. Installed php rpm. Restarted apach

[PHP] Total Newbie in over head

2001-10-30 Thread Warwick
Hi all Sorry about what is probably a total dickhead about to enter your midst, but I've never installed php or seen it much at all before but am trying to do it now. Using RH 7.1 and Apache 1.3.19 Want to install php4 and mysql combo and totally ignorant. Installed php rpm. Restarted apach

[PHP] Re: php & mysql prob...

2001-10-30 Thread Mike Frazer
I may be a little backward here but wasn't mysql_db_*() deprecated? Keep in mind it was a long day at work and I'm tired. I could be on fire right now and probably just want to open a window to cool off. :) Mike "Sc" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTE

[PHP] Re: sharing data stored in mysql with another site

2001-10-30 Thread Mike Frazer
If the other site is on the same server, you can use the same method to log in (same username and password). If it's on a separate computer you need to either create a new user or change the existing user to have remote access. To create a user with remote access: GRANT [privileges] ON [database

Re: [PHP] sharing data stored in mysql with another site

2001-10-30 Thread David Robley
On Wed, 31 Oct 2001 14:34, Matthew Delmarter wrote: > I have developed a site using PHP and MySQL. > > My question: > How do I share the data stored in the database with another site? > > Regards, > > Matthew If you mean to let another site access your mysql data directly, you'll need to set up

[PHP] sharing data stored in mysql with another site

2001-10-30 Thread Matthew Delmarter
I have developed a site using PHP and MySQL. My question: How do I share the data stored in the database with another site? Regards, Matthew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

Re: [PHP] Zipping a folder on a win2000 server with php4.06

2001-10-30 Thread Matt Friedman
There is a command line version of winzip. I don't know much about it, but a friend of mine was just saying the other day that he had used it to zip some files at the server in an ASP environment. In php you could call the winzip exectutable using exec. In asp you'd use some shell object or some

Re: [PHP] Session handling with cookies??

2001-10-30 Thread Jason G.
Set the expire date to be 0. then the browser will delete them after the browser window is closed. -Jason Garber IonZoft.com At 02:39 PM 10/29/2001 +0100, Andy wrote: >Hello, > >I have developed a member login system with cookies. Now I have the prob, >that the session stayes existend when the

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread turtle
"Kurt Lieber" > > You would use a while loop if/when you have multiple records to retrive. > From your original code example, it seemed as though you would only have one > record. (though, for safety's sake, you should code a LIMIT into your sql > statement) > Yes I only need one image location

Re: [PHP] show png in the browser

2001-10-30 Thread Luz Lopez
Hi, I use Internet Explorer 5.003 Windows 2000 Profesional Regards, >From: "Jim Lucas" <[EMAIL PROTECTED]> >To: "Luz Lopez" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> >Subject: Re: [PHP] show png in the browser >Date: Tue, 30 Oct 2001 18:00:09 -0800 > >what type of browser are you using to view

Re: [PHP] php & mysql prob...

2001-10-30 Thread Jim Lucas
are you pass the two functions you return link from mysql_connect() or mysql_pconnect() ?? jim - Original Message - From: "sc" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 30, 2001 6:15 PM Subject: Re: [PHP] php & mysql prob... > mysql_error returns nothing, mysql

[PHP] date problem

2001-10-30 Thread Steve Tsai
For reference: OS: OpenBSD 2.9 Web Server: Apache1.3.19 PHP Version: 4.0.6 My problem is that date() and all the other time functions return GMT instead of localtime. system("date") returns the correct localtime. Those functions used to return localtime since GMT. The problem seems to have s

Re: [PHP] php & mysql prob...

2001-10-30 Thread sc
mysql_error returns nothing, mysql_errno returns 0 "Jim Lucas" <[EMAIL PROTECTED]> wrote in message 03ad01c161b0$026caee0$[EMAIL PROTECTED]">news:03ad01c161b0$026caee0$[EMAIL PROTECTED]... > mysql_error() and mysql_errno() return the value. > > $error = mysql_error($dblink); > $errno = mysql_err

Re: [PHP] php & mysql prob...

2001-10-30 Thread Jim Lucas
mysql_error() and mysql_errno() return the value. $error = mysql_error($dblink); $errno = mysql_errno($dblink); or echo mysql_error($dblink); echo mysql_errno($dblink); jim - Original Message - From: "sc" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 30, 2001 6:01

Re: [PHP] show png in the browser

2001-10-30 Thread Jim Lucas
what type of browser are you using to view this image? jim - Original Message - From: "Luz Lopez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 31, 2001 1:56 AM Subject: Re: [PHP] show png in the browser > Hi David, of course, I send of header: header("Content-typ

Re: [PHP] php & mysql prob...

2001-10-30 Thread sc
ok i thought it would be working, but on testing it more it still isn't going for me i took off the ' ' from the table name and its still coming up with an error on line 17 with the same error message... the mysql_error() isn't echoing anything that has gone wrong.. (did before).. Any ideas?

Re: [PHP] show png in the browser

2001-10-30 Thread Luz Lopez
Hi David, of course, I send of header: header("Content-type: image/png"); But the send me to save the file Thanks, Regards, >From: David Robley <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: "Luz Lopez" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] >Subject: Re: [PHP] show png in the browser

Re: [PHP] php & mysql prob...

2001-10-30 Thread David Robley
On Wed, 31 Oct 2001 11:47, Jason Brooke wrote: > Or the single quotes around the table name in the sql string > > > Your query is probably broken - do some error checking after your > > database call with mysql_error() and see what the problem is. > > > > Guess; the table name. That's what I mean

Re: [PHP] php & mysql prob...

2001-10-30 Thread sc
Yeah sorry about that, didn't mean to send out 3... Ok i got it working... thanks for all the replys... -sc "David Robley" <[EMAIL PROTECTED]> wrote in message 01103111392904.28397@www">news:01103111392904.28397@www... > On Wed, 31 Oct 2001 11:25, sc wrote: > > Hi; > > > > i keep getting an er

Re: [PHP] php & mysql prob...

2001-10-30 Thread Jason Brooke
Or the single quotes around the table name in the sql string > Your query is probably broken - do some error checking after your > database call with mysql_error() and see what the problem is. > > Guess; the table name. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-

Re: [PHP] php & mysql prob...

2001-10-30 Thread David Robley
On Wed, 31 Oct 2001 11:25, sc wrote: > Hi; > > i keep getting an error of: Warning: Supplied argument is not a valid > MySQL result resource in /datascripts/insertdata.php on line 17... > > Line 17 is: $row = mysql_fetch_assoc($test); > > and here is the rest of it (not all of it though): > > for

[PHP] php & mysql prob...

2001-10-30 Thread sc
Hi; i keep getting an error of: Warning: Supplied argument is not a valid MySQL result resource in /datascripts/insertdata.php on line 17... Line 17 is: $row = mysql_fetch_assoc($test); and here is the rest of it (not all of it though): for ($p = 1; $p <= 24; $p++) { $test = mysql_db_query("me

[PHP] mysql & php prob...

2001-10-30 Thread sc
Hi; i keep getting an error of: Warning: Supplied argument is not a valid MySQL result resource in /datascripts/insertdata.php on line 17... Line 17 is: $row = mysql_fetch_assoc($test); and here is the rest of it (not all of it though): for ($p = 1; $p <= 24; $p++) { $test = mysql_db_query("me

Re: [PHP] show png in the browser

2001-10-30 Thread David Robley
On Wed, 31 Oct 2001 11:08, Luz Lopez wrote: > Hi All > > I configured the php with thelibrary GD, zlib, jpeg and libpng, I hae a > program that generate a image, I can to save this png image but in my > borwser I can't to see this image, the browser send me to save to my > hard disk this image. >

Re: [PHP] Problems inserting single quote into Oracle database

2001-10-30 Thread David Robley
On Wed, 31 Oct 2001 11:01, Kevin Dewsnup wrote: > I am having problems with inserting single quote's > into an oracle 8.1.7 database through a form. > > When inserting 'its' it works fine. > > When inserting 'it's' I get this error: > "OCIParse: ORA-01756: quoted string not properly > terminated i

[PHP] mysql prob w/ php

2001-10-30 Thread sc
Hi; i keep getting an error of: Warning: Supplied argument is not a valid MySQL result resource in /datascripts/insertdata.php on line 17... Line 17 is: $row = mysql_fetch_assoc($test); and here is the rest of it (not all of it though): for ($p = 1; $p <= 24; $p++) { $test = mysql_db_query("me

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread Kurt Lieber
On Tuesday 30 October 2001 02:53 pm, you wrote: > It is starting to make sense. I see the correlation between the manual > example and the code you show. Surprisingly (and equally confusing) the > book I have also uses a while loop with mysql_fetch_array to display a > list. You would use a whi

Re: [PHP] show png in the browser

2001-10-30 Thread Tyler Longren
It might just be your browser. I've viewed png's in IE before and it tried to make me download them instead of displaying them. Tyler - Original Message - From: "Luz Lopez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 31, 2001 12:38 AM Subject: [PHP] show png in

[PHP] show png in the browser

2001-10-30 Thread Luz Lopez
Hi All I configured the php with thelibrary GD, zlib, jpeg and libpng, I hae a program that generate a image, I can to save this png image but in my borwser I can't to see this image, the browser send me to save to my hard disk this image. I need to show this image in the browser, How can I d

[PHP] Problems inserting single quote into Oracle database

2001-10-30 Thread Kevin Dewsnup
I am having problems with inserting single quote's into an oracle 8.1.7 database through a form. When inserting 'its' it works fine. When inserting 'it's' I get this error: "OCIParse: ORA-01756: quoted string not properly terminated in blah..." So then I try 'it''s' (which works in SQL*Plus) I

Re: [PHP] table troubles

2001-10-30 Thread David Robley
On Tue, 30 Oct 2001 19:13, Morten Winkler Jørgensen wrote: > NV> Hi ! > > NV> I'm making a web site which allows user to add his own news, or > other data to the page NV> via the form. The user inputs the data into > the and the data is placed into a NV> table. The problem is > that all the text

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread turtle
. It is starting to make sense. I see the correlation between the manual example and the code you show. Surprisingly (and equally confusing) the book I have also uses a while loop with mysql_fetch_array to display a list. The &getimg variable comes in from the javasript function on the other pa

RE: [PHP] Searchengine friendly URLs

2001-10-30 Thread Joseph Blythe
Not sure if you have seen this, it has been around for a while: http://www.phpbuilder.com/columns/tim2526.php3 Regards, Joseph -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: Saturday, 27 October 2001 3:44 AM To: [EMAIL PROTECTED] Subject: [PHP] Searchengine friendly

Re: [PHP] Searchengine friendly URLs

2001-10-30 Thread Chris Hayes
I heard google does follow links with the ?var=value part, others don't. So some people now work with page.html/var/value/var2/value2 don't ask me how it works though -- C.Hayes Droevendaal 35 6708 PB Wageningen the

[PHP] Re: Mail Handling Question

2001-10-30 Thread Mike Frazer
Create a template file with the letter text in it and something like %%variable%% where the variable text would go. After you've done that, set up your preview page like: If you set the HIDDEN tags to individual variables as opposed to $contents, remember that you still need to do

[PHP] Re: does array sorted like you show in example?

2001-10-30 Thread Galkov Vladimir
Good day! my fingersrun faster my head ;-) ofcourse... MUST be (not in one string...) function array_element_delete_function($a, $ind) { $a[$ind] = $a[0]; unset($a[0]); sort($a); // return $a; // } - Galkov Vladimir [EMAIL PROTECTED] ICQ 8487396 -- PHP

Re: [PHP] Mail Handling Question

2001-10-30 Thread Kurt Lieber
On Tuesday 30 October 2001 01:56 pm, Reggie White wrote: > Now here's where I'm stuck. When the user is finished previewing the html > letter, I want two things to happen: When the user submits, I want the page > itself (with the variable in it) to be emailed to a specified recipient. I > also wan

[PHP] Mail Handling Question

2001-10-30 Thread Reggie White
Hi. I'm new to PHP, and forgive me if I sound ridiculous but I have to ask. I'll be as clear as possible. I'm trying to do mail handling in php. I know already about the mail( ) function, but what it does isn't exactly what I need. I have an html form that posts the contents of it's field to a p

Re: [PHP] virtual

2001-10-30 Thread Nikola Karoviæ
no wait, try require or but not using apsolute path like require(../../cgi-bin/folder/program.pl); for eg. - volim popit, volim zagalamit - Original Message - From: Gary <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: 30. listopad 2001 16:30 Subject: Re: [PHP] vi

[PHP] does array sorted like you show in example?

2001-10-30 Thread Galkov Vladimir
Good day! ;-) does array sorted like you show in example? then the shortest way will be: $a = array_element_delete_function($a, 2); ... function array_element_delete_function($a, $ind) { $a[$ind] = $a[0]; unset($a[0]); return sort($a); } ofcourse if count($a) not criticaly large.

[PHP] Re: Tree View

2001-10-30 Thread Philip Hallstrom
Check www.zend.com in the code gallery... On Tue, 30 Oct 2001, Ing. Gustavo Edelstein wrote: > Hi, > Has anybody a snippet or something to build a treeview with data from a > MySQL table ? > Thanks, > > Ing. Gustavo A. Edelstein > Tech. Mgr. > Equiplus Argentina S.A. > __

[PHP] Tree View

2001-10-30 Thread Ing. Gustavo Edelstein
Hi, Has anybody a snippet or something to build a treeview with data from a MySQL table ? Thanks, Ing. Gustavo A. Edelstein Tech. Mgr. Equiplus Argentina S.A. __ Visit us On Line at www.equiplus.com Email addresses: Operations: [EMAIL PROTECTED] Consulting: [EM

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread Kurt Lieber
On Tuesday 30 October 2001 11:58 am, turtle wrote: > No reading that section of the manual did me no good. I do not understand > other than I cannot store the results as a variable. yes, you can. > Is there any of what I have done that is usable? yes, there is. see below. It's probably not

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread turtle
. No reading that section of the manual did me no good. I do not understand other than I cannot store the results as a variable. Is there any of what I have done that is usable? A recommendation for a book that covers this would be helpful... the manual on this area is way to abbreviated for s

Re: [PHP] Quick array question

2001-10-30 Thread David Yee
Well for that example I'm using 0 as the index for the first element of the array, so deleting element #2 results in 3 being deleted. BTW to correct myself in the second example I gave I want: $a = (1,2,4,5) instead of (1,2,3,4). > $a = array(1,2,3,4,5) > > unset($a[2]); > > $a now = (1, 2, NUL

Re: [PHP] Quick array question

2001-10-30 Thread David Yee
Got it- thanks Philip. David - Original Message - From: "Philip Olson" <[EMAIL PROTECTED]> To: "David Yee" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, October 30, 2001 11:27 AM Subject: Re: [PHP] Quick array question > Check out this post: > > http://marc.theaimsgroup.

Re: [PHP] Quick array question

2001-10-30 Thread David Yee
That doesn't seem to do what I want. That would only unset the value for the element, but the element is still there. E.g. $a = array(1,2,3,4,5) unset($a[2]); $a now = (1, 2, NULL, 4, 5), but I want (1, 2, 3, 4). David - Original Message - From: "Matt Williams" <[EMAIL PROTECTED]> T

RE: [PHP] Quick array question

2001-10-30 Thread Matt Williams
Just found this in the manual notes http://www.php.net/manual/en/ref.array.php To delete an element from an array in an easy way, use unset($array["element"]);... Funny those... manuals M: > -Original Message- > From: David Yee [mailto:[EMAIL PROTECTED]] > Sent: 30 October 2001 19:03

Re: [PHP] need coments...

2001-10-30 Thread Kurt Lieber
Well, my first comment would be to not send attachments to mailing lists. --kurt On Tuesday 30 October 2001 11:40 am, Galkov Vladimir wrote: > Good day! > > I try to wrote Web-interface for DNS. Only simple test version now. I'd > like to listen your comets to make real good and useful thing.

[PHP] Quick array question

2001-10-30 Thread David Yee
Hi. Is there an array function that deletes an array element (that's not at the beginning or the end of the array) and return the resultant array? E.g. this is what I want to do: $a = array(1, 2, 3, 4, 5); $b = array_element_delete_function($a, 2); $b now has 4 elements with the following v

[PHP] need coments...

2001-10-30 Thread Galkov Vladimir
Good day! I try to wrote Web-interface for DNS. Only simple test version now. I'd like to listen your comets to make real good and useful thing. mail me you coments please Galkov Vladimir ICQ 84873967 begin 666 dns.zip M4$L#!!0``@`(`+)V7BN5U&O5OP(```4%```';6%N+G1X=(U4RV[;,!"\ M"] _[*F)`9

Re: [PHP] PHP+MySQL=Help(?)

2001-10-30 Thread Kurt Lieber
On Tuesday 30 October 2001 10:13 am, turtle wrote: > $link = mysql_connect('localhost')or die ("Could not connect"); > mysql_select_db('img760')or die ("Could not select database"); > $query = "select ('imglocation','height','width') from img where > imgname=$getimg"; > $imglocation = 'imglocati

[PHP] PHP+MySQL=Help(?)

2001-10-30 Thread turtle
I am trying to pass a variable to a popup window, to do a search in a database, and display an image based on the results... Here is what I have messed up so far (this is the 1st time I have used php/mysql no userID/Pswd on local host) The script that passes the variable (variable does pass

RE: [PHP] Installing ODBC

2001-10-30 Thread Andrew Hill
Hi, You should compile --with-iodbc pointing to the odbcsdk directory, not just the libiodbc file. The SDK is available at www.iodbc.org. You will also need your LD_LIBRARY_PATH varible set to include the directory where libiodbc is. Best regards, Andrew Hill Director of Technology Evangelism O

[PHP] Installing ODBC

2001-10-30 Thread webmaster uva
Hello, I have problems compiling libiodbc-3.0.5 I have tried to compile being root and being a normal user and I get the same error. I execute $ ./configure --prefix=/usr/local --exec-prefix=/usr/local --with-iodbc-inidir=/etc --build=i686 and it works properly (I

Re: [PHP] Re: header("Location:);

2001-10-30 Thread Steve Cayford
On Tuesday, October 30, 2001, at 11:41 AM, Henrik Hansen wrote: > [EMAIL PROTECTED] (Alberto) wrote: > >> Ok, it works fine for me, i can redirection, but I don't want the >> browser to >> load another page, I want to IF A THEN RUN A.PHP, IF B THEN RUN >> B.PHP, I >> know i can use include('a

[PHP] Re: header("Location:);

2001-10-30 Thread Henrik Hansen
[EMAIL PROTECTED] (Alberto) wrote: > Ok, it works fine for me, i can redirection, but I don't want the browser to > load another page, I want to IF A THEN RUN A.PHP, IF B THEN RUN B.PHP, I > know i can use include('a.php') or require('a.php') but I'm sure theres a > way to say php parser to r

[PHP] Bug ? Script download problem if user abort download

2001-10-30 Thread Gianluca Morello
I have a download script on IIS 5 and Php 4.0.6 as cgi: $filename=PDF_PATH.$codfile.".pdf"; $fp=fopen($filename,"rb"); if ($fp) { header("Content-type: application/octet-stream\n" ); header("Content-transfer-encoding: binary\n"); header("Content-length: " . filesize($filename) . "

[PHP] PHP to MySQL and Date field

2001-10-30 Thread Jason
Here is my problem once again... =P I am wondering if I should change the date table to something other than date... maybe something like date_1? Would doing that resolve my issue, because of the fact that the date variable in php is function? Thanks in advance... Jason /* Form to supply variable

RE: [PHP] Re: Weird caching problem with PHP4/Apache

2001-10-30 Thread René Fournier
Thanks for the help, but I'm afraid it hasn't solved the caching problem, at least not with respect to the PHP random function... It's not as if the entire page get's cached, since there is an SQL query that selects a random row from a table--and that is random. But the PHP part of it--that is,

[PHP] header("Location:);

2001-10-30 Thread Alberto
Ok, it works fine for me, i can redirection, but I don't want the browser to load another page, I want to IF A THEN RUN A.PHP, IF B THEN RUN B.PHP, I know i can use include('a.php') or require('a.php') but I'm sure theres a way to say php parser to run one or another script without "changing URL"

Re: [PHP] Problem getting imagemagick to work with php...

2001-10-30 Thread Mark
On Tue, 30 Oct 2001 16:05:42 -, Brian Aitken wrote: >Hiya > >I need to be able to automatically change the format and size of an >image >when a user uploads it and using imagemagick's tools seems like the >way to >go about it. > >Unfortunately the server I'm using is Windows based and it doesn

[PHP] Re: DB wrapper

2001-10-30 Thread Manuel Lemos
Hello, Alberto wrote: > > Any1 knows about a good class for DB abstraction? I need some scripts to > work with mysql/pgsql. If you are looking for a database abstraction package that lets you write applications that are absolutely database independent, ie, you don't need to handle database diff

[PHP] Re: Weird caching problem with PHP4/Apache

2001-10-30 Thread Julio Nobrega Trabalhando
These lines will do what you asked, but I am unsure if they will resolve your problem (since I don't know Fatcow and how they configured the server). Anyway, here it is: header ('Expires: Mon, 26 Jul 1997 05:00:00 GMT');// Date in the past header ('Last-Modified: ' . gmdate('D, d M Y H:i:s

Re: [PHP] Re: Zipping a folder on a win2000 server with php4.06

2001-10-30 Thread Julio Nobrega Trabalhando
Well, (things are going pretty good, aren't they ;-)) Oh, old Dos memories coming Got it, pkzip was the name: http://www.google.com/search?sourceid=navclient&q=pkzip -- Julio Nobrega A hora está chegando: http://toca.sourceforge.net "Stefan Rusterholz" <[EMAIL PROTECTED]> wrote

[PHP] Problem getting imagemagick to work with php...

2001-10-30 Thread Brian Aitken
Hiya I need to be able to automatically change the format and size of an image when a user uploads it and using imagemagick's tools seems like the way to go about it. Unfortunately the server I'm using is Windows based and it doesn't have imagemagick installed. I downloaded the Windows imagemag

RE: [PHP] PHP General Archive

2001-10-30 Thread Matt Williams
http://www.progressive-comp.com/Lists/?l=php3-general&r=1&w=2 M: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Weird caching problem with PHP4/Apache

2001-10-30 Thread René Fournier
Having successfully uploaded my PHP4+MySQL site finally to Fatcow (and the MySQL stuff IS there--thanks for the help), I'm now left with making it actually work online. One curious problem: For every page in the site ("*.php4"), I include three parts, a header.inc (common to all), a body.inc (un

[PHP] PHP General Archive

2001-10-30 Thread John S. Huggins
Hello folks. I am yet another person having difficulty with 4.0.6 and GD graphic support. It has been a while since I have been on this list so I want to search the archives of this group. Where are the archives? I remember some archive last year with a black background. Thanks. ***

RE: [PHP] Re: Zipping a folder on a win2000 server with php4.06

2001-10-30 Thread Matt Williams
> Well, I would do that but I don't know such an application. > Please, can you suggest me one? > pkzip of course :) M: -- 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 administr

RE: [PHP] Win98 + Apache + PHP4

2001-10-30 Thread Matt Williams
> Thanks for the replies, I think it has more to do with configuration > settings than anything else as all the scripts work fine on remote Linux > server, it is just on my win98 set-up the problem occurs.. > > I am looking in the php.ini, file the only reference to a tmp directory I > c

Re: [PHP] Re: Zipping a folder on a win2000 server with php4.06

2001-10-30 Thread Stefan Rusterholz
Well, I would do that but I don't know such an application. Please, can you suggest me one? Stefan Rusterholz, [EMAIL PROTECTED] - Original Message - From: "Julio Nobrega" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 30, 2001 4:40 PM Subject: [PHP] Re: Zipping a fol

Re: [PHP] editor for working with php

2001-10-30 Thread Henrik Hudson
No, use VIM :) There are PHP highlight rules available for it, look on the VIM site (www.vim.org) On Tuesday 30 October 2001 08:43, EDUMEXICO wrote: > Use Emacs, I think this is the best IDE. > > On Thu, Oct 25, 2001 at 11:10:36PM -0500, Ray Todd Stevens wrote: > > I ahve been using go-live (

Re: [PHP] Win98 + Apache + PHP4

2001-10-30 Thread p.whiter
Thanks for the replies, I think it has more to do with configuration settings than anything else as all the scripts work fine on remote Linux server, it is just on my win98 set-up the problem occurs.. I am looking in the php.ini, file the only reference to a tmp directory I can see is for

Re: [PHP] editor for working with php

2001-10-30 Thread EDUMEXICO
Use Emacs, I think this is the best IDE. On Thu, Oct 25, 2001 at 11:10:36PM -0500, Ray Todd Stevens wrote: > I ahve been using go-live (4.0) to edit pages containing php scripts. > this is not really working well. Is there a better way or a better editor > to use for this? > -

[PHP] Re: Zipping a folder on a win2000 server with php4.06

2001-10-30 Thread Julio Nobrega
Well, you could use exec(); or system(); to call a command line zipping application to compress the directory. -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca "Stefan Rusterholz" <[EMAIL PROTECTED]> wrote in message 003701c1614b$2ab8cc40$3c01a8c0@quasimodo">news

Re: [PHP] \n's

2001-10-30 Thread Mike Frazer
Remember, those functions have return values. Gotta assign the return to a variable! $variable = [replacement_function]($args ... ); They don't change the value of the variable in the argument list, they take that value and put a new value in a new memory space. Unfortunately, they don't throw

  1   2   >