[PHP] fopen()

2002-09-19 Thread Donahue Ben
I have a php script that tries to write files in a particular directory. When the script writes files the ownership is apache. The problem I have is the particular directory that the script is trying to create files in, it cannot, because it does not own that directory and it is not part of the

Re: [PHP] Encrypting/Decrypting Data

2002-09-19 Thread Evan Nemerson
If memory serves, $td is returned by mcrypt_module_open() http://www.php.net/mcrypt-module-open On Thursday 19 September 2002 00:54, [-^-!-%- wrote: Hello. How do you decrypt a data that's encrypted with crypt($data). Now, the php documents says crypt() is a one-way crypting function,

Re: [PHP] fopen()

2002-09-19 Thread Brad Bonkoski
I would say that is the best way, or if you have other information there, write to abother directory that is owned by apache -Brad Donahue Ben wrote: I have a php script that tries to write files in a particular directory. When the script writes files the ownership is apache. The problem

[PHP] java in php4 on debian testing distribution?

2002-09-19 Thread Monique Y. Herman
I'd like to play with using java classes from within php, as is described in http://www.php.net/manual/en/ref.java.php ... I'm using the apache and php4 packages from the debian testing distribution. All of the documentation I've found on the web about installing the java extension seems to be

[PHP] MUST READ: ALL MySQL Newbies!

2002-09-19 Thread Shane
If you are a MySQL newbie you need to read this! I just screwed up big time and lost about 1 hour of data in a time sensitive application by using TINYINT as my ID field. TINYINT will only allow up to 255 records in a MySQL DB. Please, if you don't know the EXACT differences between all the

[PHP] custom user login

2002-09-19 Thread Daniel Negron/KBE
Hi all, I used a script posted in here awhile ago from http://www.devshed.com/Server_Side/PHP/UserAuth/page1.html basic tutorial on how to make php session logins. How can I customize this script so that it is specific to each user. can I add $f_user.php from the header, or will that output

Re: [PHP] adding unix account via system command

2002-09-19 Thread tim tom
Dear Marek, Where do find that? I am no C programmer. -- tim --- Marek Kilimajer [EMAIL PROTECTED] wrote: It's a shell script, and your shell drops root privileges. Use a shell that doesn't or use a C-wraper. tim tom wrote: Dear Pete, Yes, apache runs as nobody. But I have setuid

Re: [PHP] Good OO PHP resources? Open Source APIs?

2002-09-19 Thread Michael Sims
On Thu, 19 Sep 2002 00:50:56 -0400, you wrote: By doing so I want more and more of my PHP to be purely OO. I'm fairly aware of how to write my own classes for data but are their any frameworks out there to do the foundation stuff already? Have you looked at PEAR? It comes with the PHP

[PHP] Re: fopen()

2002-09-19 Thread Jason Morehouse
Yup! On Thu, 19 Sep 2002 16:43:48 -0700, Donahue Ben wrote: I have a php script that tries to write files in a particular directory. When the script writes files the ownership is apache. The problem I have is the particular directory that the script is trying to create files in, it

[PHP] MySQL errors in newer PHP 4.2.3

2002-09-19 Thread Steven Roussey
Since updating to 4.2.3, we have been getting intermittent errors of Commands out of sync. Anyone else see this? Sincerely, Steven Roussey http://Network54.com/?pp=e php,sql,query -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] session cookies

2002-09-19 Thread Jeff Bluemel
Jeff Bluemel wrote: I want to force it to use a cookie that points to a transparent SID on my system. Can you elaborate on this? I have no idea what you mean. for some reason when I was reading the documentation on sessions on php.net I thought it stated that it was possible to have a

[PHP] Access MySQL

2002-09-19 Thread Liam MacKenzie
Yeah, I know this doesn't have much to do with PHP... does anyone know of a tool that automatically converts an access database to MySQL readable data? Thanks a heap! Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Access MySQL

2002-09-19 Thread Peter Houchin
yeah there is tis called Access-to-MySQL (http://www.convert-in.com/acc2sql.htm ) ...here's some specs on it Features All MS Access data types and attributes are supported Works with all versions of Unix and Windows MySQL servers Stores MS Access database into a dump file (see

[PHP] syntax question - eregi()

2002-09-19 Thread Anthony Ritter
I'm having difficulty understanding what the array does or refers to in the eregi() function using php. Listing below are returned strings with [0] [1] [2] .. ? $fp =fopen(C:\\TextFiles\\Test.htm,r); $content = fread($fp,10); eregi(b(.*)hr

RE: [PHP] Stripping specific tags

2002-09-19 Thread John Holmes
That's what I thought the answer would be. I guess I will have to see if I can create a function to add to the next release of PHP to do this, as there certainly seems to be quite a demand for it, according to the archives anyway. I hope not. That would be a worthless function to have. Did

Re: [PHP] Stripping specific tags

2002-09-19 Thread Justin French
on 20/09/02 1:14 PM, John Holmes ([EMAIL PROTECTED]) wrote: I hope not. That would be a worthless function to have. Did you read my post? The basic idea is validation is to allow what you _know_ is good, and kill the rest. You don't kill a couple things you know are bad, then assume the rest

[PHP] Re: syntax question - eregi()

2002-09-19 Thread Philip Hallstrom
If memory serves, $match will contain an array whose 0th element is the entire string and whose 1st element contains whatever is matched in the first (), 2nd element matches the second () and so on. Check the manpage for more... and when testing things like this out try adding the following for

[PHP] Script Modificaton question

2002-09-19 Thread Tom Ray
I have a chat script that I downloaded and according to the license I can modify it as much as I want, and I'm a little stuck on a simple modification I want to make. When you type in a message it stores in in a file called text.php and then the chat page does an include call for the text.php

RE: [PHP] Script Modificaton question

2002-09-19 Thread John Holmes
I have a chat script that I downloaded and according to the license I can modify it as much as I want, and I'm a little stuck on a simple modification I want to make. When you type in a message it stores in in a file called text.php and then the chat page does an include call for the

Re: [PHP] Script Modificaton question

2002-09-19 Thread Tom Ray
Ahah! That's what I was thinking, thatnks for helping me clear that up! John Holmes wrote: I have a chat script that I downloaded and according to the license I can modify it as much as I want, and I'm a little stuck on a simple modification I want to make. When you type in a message it stores

Re: [PHP] Need some help please.

2002-09-19 Thread Simon Angell
With my limited knowledge (i.e none, lol) i was wondering if you are able to give me the code you use to do it. i will then play around with it t get Canberra, is that ok? doesn't matter if not. -- Cheers - Simon Angell Canberra ACT

[PHP] Re: custom user login

2002-09-19 Thread Ivo
You could use $_SESSION['myvar'] to register your session instead of session_register()/session_unregister()/session_is_registered() functions. Then you could use it as a normal variable. Do not use glodal $_SESSION declaration in your code. You could find more info at

[PHP] Re: Apache not parsing without .php on url?

2002-09-19 Thread Ivo
It seems to me that the answer is in your own posting AddType application/x-httpd-php .php .php the only type that will be served by php if you add AddType application/x-httpd-php .txt then txt will be also served regards Ivo Stefan [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: MySQL errors in newer PHP 4.2.3

2002-09-19 Thread Zak Greant
Hello Jocelyn and Steven, Could either or both of you submit a bug report at http://bugs.php.net/? If you follow the instructions there, it will greatly help us in tracking down the issue! Cheers! Zak Greant PHP QA Team -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] RE: MySQL errors in newer PHP 4.2.3

2002-09-19 Thread Steven Roussey
Hmm, do you use pconnect or connect? I noticed someone changed our PHP script to use persistent connections (likely why the server is running slower). I am wondering if a cancelled connection is being reused or if it just is a more general bug in the mysql client code in PHP Sincerely,

[PHP] Re: MySQL errors in newer PHP 4.2.3

2002-09-19 Thread Jocelyn Fournier
I've always used pconnect. - Original Message - From: Steven Roussey [EMAIL PROTECTED] To: 'Jocelyn Fournier' [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: 'Mysql' [EMAIL PROTECTED] Sent: Friday, September 20, 2002 2:38 AM Subject: RE: MySQL errors in newer PHP 4.2.3 Hmm, do you use

<    1   2