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

[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

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

[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

[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

[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

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 the

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

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 mysql

[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] 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 Block element that the AddType lines are in, and see what it

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)

RE: [PHP] Re: I rest my case

2001-10-30 Thread Warwick
There is no BLOCK 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

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 Block element

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 'Block' - he was telling you to look through the various types of ThisIsAnApacheDirective tags found in your httpd.conf file, such as Directory, File etc etc There is no BLOCK element in the httpd.conf. Is that where I

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: IfModule mod_php4.c 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

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: IfModule mod_php4.c Is there some way I can check if this module is present, otherwise what

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

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

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:

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 incremented in

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

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

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

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, but

[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

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

<    1   2