RE: [PHP] File upload problem

2002-05-07 Thread David Freeman
-Original Message- I'm curious, I keep seeing people say that that tag is /necessary/, but I've never had to use it in the upload forms that I've built and they work just fine in Opera, NN IE. Good question. To be honest it's been a while since I looked, I built a file

RE: [PHP] file_exists

2002-05-07 Thread Stuart Dallas
On 6 May 2002 at 20:30, Craig Westerman wrote: File is on another server. Is there a way to check if file exists on another server? I wrote the following function a while ago to do this. It works with http URLs and should also work with https and ftp, but I have only tested http. I hope it's

php-general Digest 7 May 2002 06:58:51 -0000 Issue 1330

2002-05-07 Thread php-general-digest-help
php-general Digest 7 May 2002 06:58:51 - Issue 1330 Topics (messages 96302 through 96359): Re: Grabbing ALL $_POST var at once. 96302 by: Rasmus Lerdorf 96303 by: Miguel Cruz 96305 by: 1LT John W. Holmes 96306 by: David J Jackson 96307 by: David J

Re: [PHP] File upload problem

2002-05-07 Thread Miguel Cruz
On Tue, 7 May 2002, Jason Wong wrote: INPUT TYPE=hidden name=MAX_FILE_SIZE value=2048000 You actually _need_ that hidden tag set AFAIK. I'm curious, I keep seeing people say that that tag is /necessary/, but I've never had to use it in the upload forms that I've built and they work just

Re: [PHP] File upload problem

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 15:22, Miguel Cruz wrote: On Tue, 7 May 2002, Jason Wong wrote: INPUT TYPE=hidden name=MAX_FILE_SIZE value=2048000 You actually _need_ that hidden tag set AFAIK. I'm curious, I keep seeing people say that that tag is /necessary/, but I've never had to use it in

[PHP] gd high resolution

2002-05-07 Thread Plamen Slavov
Hi guys, Does anyone have any idea about how can i sav images, using gd functions, with a resolution greater than 72 dpi ? Thanks

Re: [PHP] File upload problem

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 14:14, David Freeman wrote: I guess that anything that causes this sort of thing to happen on the browser is going to help. I know I'd be fairly unimpressed if I sat waiting for a 2MB file to upload only to find that the limit is 1.5MB or some such. At least if a

[PHP] Self Destruct code

2002-05-07 Thread PHPCoder
Hi I have a funny request; I wrote a system for a client and am rather concerned that I am not going to receive payment for the work done. They want me to hand over the code before they are willing to pay, so basically I will be left at their mercy; if they don't pay, they will still have a

Re: [PHP] Self Destruct code

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 16:19, PHPCoder wrote: Hi I have a funny request; I wrote a system for a client and am rather concerned that I am not going to receive payment for the work done. They want me to hand over the code before they are willing to pay, so basically I will be left at their

RE: [PHP] Self Destruct code

2002-05-07 Thread Tommy Claasens - Q Data KZN
Hi, Depends on what type of server they are running, You could add a script in there that takes a query string that will invoke a set of drop table statments, followed by some file delete's But as I have never seen the need to do this, I dont have any code that can help you But I am sure

[PHP] Error messages

2002-05-07 Thread Ferry van Steen
Hey there, I just came across a really busy site due to the murder on Pim Fortuyn in the Netherlands. Anyways, this site gives a really nice error message. I put it below. Is this a PHP function/mode/config option or where these things written by the people who maintain PHP on that site? It

Re: [PHP] Self Destruct code

2002-05-07 Thread Marius Ursache
or.. you can use an airplaine full with gas :)) Tommy Claasens - Q Data KZN a écrit : Hi, Depends on what type of server they are running, You could add a script in there that takes a query string that will invoke a set of drop table statments, followed by some file delete's But as I

RE: [PHP] Self Destruct code

2002-05-07 Thread Craig Vincent
Hi I have a funny request; I wrote a system for a client and am rather concerned that I am not going to receive payment for the work done. They want me to hand over the code before they are willing to pay, so basically I will be left at their mercy; if they don't pay, they will still have a

[PHP] strtotime failure

2002-05-07 Thread Koenig, Jennifer
Hallo, Why would strtotime fail (i.e. return a -1)? I check the type with gettype, which tells me that the argument I'm passing in is a string. I cast it to a string before passing it in, with the same results (returns a -1). The only thing that seems to do anything is to settype it to string

Re: [PHP] Error messages

2002-05-07 Thread Michael Egan
Ferry, I think this is a fairly standard error message suggesting that the password information being passed to the underlying database is incorrect. It would be the settings to connect to the database that need to be altered in this case. Michael Egan Warning: Access denied for user:

[PHP] Timing out session cookies

2002-05-07 Thread Sear, Mick
Hi, How do I set an expiration time on a session cookie? I basically want to log users out automatically after a period of inactivity. Cheers, Mick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Timing out session cookies

2002-05-07 Thread Pedro Pontes
session_set_cookie_params ($expiration_time_in_seconds); Regards, -- Pedro Alberto Pontes Mick Sear [EMAIL PROTECTED] wrote in message 06D1C9FA1087D4119FC900508B95056E011FECF2@eulexch1a">news:06D1C9FA1087D4119FC900508B95056E011FECF2@eulexch1a... Hi, How do I set an expiration time on a

[PHP] Configuration problems

2002-05-07 Thread Pedro Pontes
I have /usr/local/lib/libgd.a, but when I ./configure --with-gd=/usr/local/lib --enable-gd-native-ttf --with-mysql -- with-apache=/usr/local/apache_1.3.24/ --enable-track-vars --with-oci8 --with -zlib-dir=/usr/local/lib I get configure: error: Unable to find libgd.(a|so) anywhere under

[PHP] problem with fread

2002-05-07 Thread Henning Sprang
Hy, i have a question about the fread() function. i want to read data from a webserver url, which i don't know the exact size of, i only know that it varies. i see i have to give the lentgh of a file when reading it, but for remote files i have no way to check the size. And i saw no way to tell

[PHP] multipart/form-data

2002-05-07 Thread Michael Ransburg
Hi! Everytime I add enctype=multipart/form-data to my form tag the $HTTP_POST_VARS is empty. If I remove it, everything works. I need the multipart/form-data because I'm doing a file upload as part of my form. I'm running PHP 4.1.2. Any ideas? Thanks mike ps: Here is my core configuration:

[PHP] Re: strtotime failure

2002-05-07 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hallo, Why would strtotime fail (i.e. return a -1)? I check the type with gettype, which tells me that the argument I'm passing in is a string. I cast it to a string before passing it in, with the same results (returns a -1). The

[PHP] Re: strtotime failure

2002-05-07 Thread George Nicolae
strtotime returns a timestamp of a data type(ex 05/07/2002) strtotime(05/07/2002) you can't recevie a timpstamp from a time of a day. -- Best regards, George Nicolae IT Manager ___ PaginiWeb.com - Professional Web Design www.PaginiWeb.com Jennifer Koenig [EMAIL PROTECTED]

Re: [PHP] Configuration problems

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 17:46, Pedro Pontes wrote: I have /usr/local/lib/libgd.a, but when I ./configure --with-gd=/usr/local/lib --enable-gd-native-ttf --with-mysql -- with-apache=/usr/local/apache_1.3.24/ --enable-track-vars --with-oci8 --with -zlib-dir=/usr/local/lib I get configure:

AW: [PHP] multipart/form-data

2002-05-07 Thread Michael Ransburg
As an add on to my mail, it seems that there are various people on deja who have exactly the same problem. Take this guy for example, same php version, same problem: http://groups.google.com/groups?hl=enthreadm=B8B6599D.A88%25mnc%40stoic.net

[PHP] strtotime failure -- nevermind!! :)

2002-05-07 Thread Koenig, Jennifer
It was staring me right in the face - the data that wasn't working was typed (by Europeans) as 6.30 instead of 6:30. So it was a string whose format was unacceptable as a Unix timestamp format. --Jennifer Koenig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] problem with fread

2002-05-07 Thread Dan Hardiker
i have a question about the fread() function. i want to read data from a webserver url, which i don't know the exact size of, i only know that it varies. You dont actually give the size of the file, you give the size of the block you want to pull. For example: ?php $output = ; // Clear

Re: [PHP] multipart/form-data

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 18:01, Michael Ransburg wrote: Hi! Everytime I add enctype=multipart/form-data to my form tag the $HTTP_POST_VARS is empty. If I remove it, everything works. I need the multipart/form-data because I'm doing a file upload as part of my form. What does your form tag

RE: [PHP] multipart/form-data

2002-05-07 Thread Michael Ransburg
Hi! It looks like that: form method=post action=submit.php enctype=multipart/form-data I tried shifting around the enctype, but it did not help. The http_post_vars is always empty. Only if I remove it, everything works. There seem to be many guys having the same problem, I did search for it at

Re: [PHP] problem with fread

2002-05-07 Thread Henning Sprang
?php $output = ; // Clear output $url = http://whatever.com/file.html;; // whatever you wanna pull from if ($fp = fopen($url, r)) { while ($tmp = fget($fp, 4096)) $output .= $tmp; fclose($fp); } echo The URL's content is: .$output; ? erm, don't wanna be nosy, but

[PHP] Session + IIS

2002-05-07 Thread Maurice
Hi, I'm having some troubles with sessions and PHP 4.1.2 in IIS 5 under WinNT. I'm using the standard session functions from php. $cookie_params = session_get_cookie_params(); session_set_cookie_params($cookie_params[lifetime],dirname($SCRIPT_NAME)); session_start();

Re: [PHP] multipart/form-data

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 18:12, Michael Ransburg wrote: Hi! It looks like that: form method=post action=submit.php enctype=multipart/form-data Looks OK. I tried shifting around the enctype, but it did not help. The http_post_vars is always empty. Only if I remove it, everything works.

RE: [PHP] multipart/form-data

2002-05-07 Thread Michael Ransburg
Thanks for that suggestion, I think I found something. My core configuration says file_uploads no value no value I guess the default value for file_uploads is no, and http://bugs.php.net/bug.php?id=15827 suggests that the behaviour I described results from file_uploads not being

Re: [PHP] problem with fread

2002-05-07 Thread Dan Hardiker
erm, don't wanna be nosy, but you meant fgets() - forgot the s - didn't you? Yes I did (early-morning-itis I guess heh). Thanks for the typo correction ;) Ammended code is as follows: ?php $output = ; // Clear output $url = http://whatever.com/file.html;; // whatever you wanna pull

Re: [PHP] Self Destruct code

2002-05-07 Thread Chris Hewitt
Hi, From a legal viewpoint, I don't think you should modify any data or files on the clients computer. Code which simply times out (i.e. stops working but takes no other action) seems more acceptable. HTH Chris PHPCoder wrote: Hi I have a funny request; I wrote a system for a client and

Re: [PHP] Re: Forum with PHP, without using mySQL..

2002-05-07 Thread The_RadiX
Pfft.. Stealing is what i call that :P Why steal someones.. When you can write your own ? :) Muhahahahahah.. ::: : Julien Bonastre [The-Spectrum.org CEO] : A.K.A. The_RadiX : [EMAIL PROTECTED] : ABN: 64 235 749 494 : QUT Student #: 04475739

Re: [PHP] Who's having a good hosting experience these days? {!?}

2002-05-07 Thread The_RadiX
Hmm Brisbane eh? Heard of Bribie Island?? Up north.. oooh, say 40mins drive 30 mins if your speeding abit :) Yeah.. That's me home :P Yeah love the crap restrictions they give you on broadband here in Aus eh? Lemme guess: Telstra? You shoulda gone with optus.. I love Telstra (dad works

RE: [PHP] Error messages

2002-05-07 Thread David Freeman
really nice error message. I put it below. Is this a PHP function/mode/config option or where these things written by the people who maintain PHP on that site? MySQL Error : Connection Error Error Number: 1045 Access denied for user: 'icon@localhost' [etc] A little of both I would

RE: [PHP] Self Destruct code

2002-05-07 Thread David Freeman
basically I will be left at their mercy; if they don't pay, So, is there any way I can inconspicuously code in some boo-boo's that are time related etc. I'd suggest that you have a legal or business practices issue rather than a technical one. Do you have a signed contract or work

RE: [PHP] File upload problem

2002-05-07 Thread David Freeman
-Original Message- Hmm, after a bit of testing I find that the MAX_FILE_SIZE tag is useless to say the least (probably because no browsers support it?) That's somewhat of a shame I guess but I can hardly claim to be surprised - especially as I've just spent much of my time in the

RE: [PHP] Re: help!!!

2002-05-07 Thread .ben
Hi, I've locked myself out of my flat and left the oven on, could someone write me a PHP script to let me in, thanks. .b -Original Message- From: John Holmes [mailto:[EMAIL PROTECTED]] Sent: 05 May 2002 23:39 To: 'George Nicolae'; [EMAIL PROTECTED] Subject: RE: [PHP] Re: help!!!

[PHP] extensions

2002-05-07 Thread Maris Kalnins
Hi! Configuration - windows XP, PHP4 (not in CGI mode), Apache I am experiencing difficulty to add sybase_ct support into php php is installed in C:/PHP4 in php.ini file: extension_dir = C:/PHP4/extensions extension=php_sybase_ct.dll after restarting Apache it says: Unable to load library

RE: [PHP] Self Destruct code

2002-05-07 Thread Jay Blanchard
[snip] I have a funny request; I wrote a system for a client and am rather concerned that I am not going to receive payment for the work done. They want me to hand over the code before they are willing to pay, so basically I will be left at their mercy; if they don't pay, they will still have a

RE: [PHP] Self Destruct code

2002-05-07 Thread Michael Ransburg
Too easy...the client would just have to check the code for it and he would have the code. Better get a md5'd version of the code from somewhere in the net (from your server for example) and compare it to the md5'd version of the code the client put in. But that way the client could always just

Re: [PHP] Self Destruct code

2002-05-07 Thread Peter Hicks
I back up Chris' comments about the legality of self-destructing code. Sort out contractual issues with lawyers. If you want to 'limit' your system until you get paid, what about deliberately putting a limit on a column in MySQL, e.g. the key column is a TINYINT rather than INT? Let the

RE: [PHP] Self Destruct code

2002-05-07 Thread Jay Blanchard
[snip] Too easy...the client would just have to check the code for it and he would have the code. Better get a md5'd version of the code from somewhere in the net (from your server for example) and compare it to the md5'd version of the code the client put in. But that way the client could

Re: [PHP] Self Destruct code

2002-05-07 Thread The_RadiX
Well I share heavily with whoever the starter of this post was.. see yes.. upfront half payments are indeed much better.. but.. (and I assume here) when you are younger and have a smaller reputation it's harder for clients to understand that.. so you usually end up with this problem of having

RE: [PHP] Re: Forum with PHP, without using mySQL..

2002-05-07 Thread Brian McGarvie
not as if forums are particularly hard/complex neway ;) -Original Message- From: The_RadiX [mailto:[EMAIL PROTECTED]] Sent: 07 May 2002 11:51 To: [EMAIL PROTECTED]; Mizery De Aria Subject: Re: [PHP] Re: Forum with PHP, without using mySQL.. Pfft.. Stealing is what i call that :P Why

[PHP] Re: Session + IIS

2002-05-07 Thread Vincent Oostindie
Hi Maurice, On Tue, 07 May 2002 11:40:20 +0200, Maurice wrote: I've come acros a number of problem reports about PHP and IIS, stateing that session management doesn't work fine for certain PHP versions. Does anyone know what the status of these problems are and which PHP version has stable

[PHP] Uploads adding \r?

2002-05-07 Thread Cole Tuininga
I'm using PHP on a customer's site. One of the things they do is to add a dxf (CAD) file to be associated with parts. The peculiar thing is this: When the file gets uploaded, the EOL gets changed from \n to \r\n. Initially, I thought this was some kind of weird M$ thing (web server is apache

[PHP] Re: Access denied errors

2002-05-07 Thread David J Jackson
Nick --- Try this connect script. Then from inside you php page use ?php include('connect.php'); ? HTH, David --- connect.php -- // database connect script $dbhostname = localhost; $dbuser = picklesql; $dbpasswd = pi56fb; $dbname= pickle; $link = mysql_connect($dbhostname, $dbuser,

[PHP] Registering an Array in a Session

2002-05-07 Thread Alexis Antonakis
Hi, I am trying to register an array in a session, but am having no luck. What I have is a form with set fields on which is processed a certain number of times. Upon submitting the form each time, I run the following: session_register(fieldtext[.$page.]); where fieldtext is the name of a

[PHP] how to generate a date between 1998 and today by random?

2002-05-07 Thread andy
hi there, I am wondering if there is an easy way to generate a random date. It would work by creating arrays of values and then just selecting like: $year = array(2002, 2003, 2004, 2005); $month = array ('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sept','Okt','Nov','Dez'); $date =

RE: [PHP] how to generate a date between 1998 and today by random?

2002-05-07 Thread Niklas Lampén
array_rand() might be the solution for you. Niklas -Original Message- From: andy [mailto:[EMAIL PROTECTED]] Sent: 7. toukokuuta 2002 16:12 To: [EMAIL PROTECTED] Subject: [PHP] how to generate a date between 1998 and today by random? hi there, I am wondering if there is an easy way

RE: [PHP] how to generate a date between 1998 and today by random?

2002-05-07 Thread Michael Ransburg
haven't tried that: use mktime to get unixtimestamps of today and of the date between 1998. create a random number between these timestamps (the random function should be capable of it, or just code yourself a little function). convert the resulting timestamp to a date using the todate()

Re: [PHP] Registering an Array in a Session

2002-05-07 Thread Dan Hardiker
I am trying to register an array in a session, but am having no luck. [..] where fieldtext is the name of a field on the form, and $page is the page number, which increases by one each time the form is submitted. ? php // Register the Session Variable, and increment this page

[PHP] Re: Registering an Array in a Session

2002-05-07 Thread Austin Marshall
Alexis Antonakis wrote: Hi, I am trying to register an array in a session, but am having no luck. What I have is a form with set fields on which is processed a certain number of times. Upon submitting the form each time, I run the following: session_register(fieldtext[.$page.]);

[PHP] Re: how to generate a date between 1998 and today by random?

2002-05-07 Thread Austin Marshall
Try making use of a timestamp via the strtotime. You'll have to do the math, but you can generate a random number with the range being the number of seconds in the date range and then adding the remaining offset. Then convert the timestamp back to a date with everyones favorite date()

[PHP] permissions issue under NT?

2002-05-07 Thread brent
Help. I've managed to hose myself. I had this page working fine until I went in and screwed up my users under NT4. I can't backtrack and figure out what I changed. Can anyone point me in the right direction? Is this a permissions issue? Thanks. Brent Warning:

Re: [PHP] permissions issue under NT?

2002-05-07 Thread Dan Hardiker
Help. I've managed to hose myself. I had this page working fine until I went in and screwed up my users under NT4. I can't backtrack and figure out what I changed. Can anyone point me in the right direction? Is this a permissions issue? Thanks. Ok, sorry if Im gonna sound a little blunt,

[PHP] copy protection

2002-05-07 Thread Udo Giacomozzi
Hi! Has somebody thought of adding some sort of copy protection to a PHP project? I guess it would be difficult to accomplish. Say you have some PHP scripts for mantaining a web site. You don't want the ISP simply copies the scripts for each web site he wishes to use it for but buys a valid

Re: [PHP] permissions issue under NT?

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 21:30, Dan Hardiker wrote: Ok, sorry if Im gonna sound a little blunt, but the following error message looks rather obvious to me. Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown

RE: [PHP] copy protection

2002-05-07 Thread Matt Schroebel
Look at the Zend Encoder. It's not free, but there is a free trial available. http://www.zend.com/store/products/zend-encoder.php -Original Message- From: Udo Giacomozzi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 9:36 AM Subject: [PHP] copy protection Has somebody

[PHP] rand(0,1) does seem to get more often 1

2002-05-07 Thread andy
Hi there, I am wondering if it is possible that this function tends to be more often 1. I do get 8 of 10 times 1. srand((double)microtime()*100); if (rand(0,1) == 1){ code... it looks ok to me. Thanx for any help, Andy -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] copy protection

2002-05-07 Thread Chris
I found this on the web one day, though I've never used it or played around with it. It does make the code a pain to read though if it does anything close to the sample on the page. Plus, its free. http://pobs.mywalhalla.net -Chris At 01:35 PM 5/7/2002 +, Udo Giacomozzi wrote: Hi! Has

Re: [PHP] permissions issue under NT?

2002-05-07 Thread brent
At 02:30 PM 5/7/02 +0100, you wrote: Help. I've managed to hose myself. I had this page working fine until I went in and screwed up my users under NT4. I can't backtrack and figure out what I changed. Can anyone point me in the right direction? Is this a permissions issue? Thanks. Dan

[PHP] Creating mail account on Linux server

2002-05-07 Thread Rosen
Hi, How can I create a mail account on Linux server with PHP ? Can I do it ? Thanks, Rosen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] adding 60 to a date

2002-05-07 Thread Scott St. John
Morning I am working on a password aging system that will force a user to change their password every 60 days. Can anyone recommend the best method for taking the current date and adding 60 days to that number? Should I do a unix timestampe and add or strtotime and add 60 days? Thanks,

Re: [PHP] Creating mail account on Linux server

2002-05-07 Thread Dan Hardiker
And I quote, from the [EMAIL PROTECTED] which you posted to no more than 30 mins ago. Im hoping you dont have the IQ of a fish. How can I create a mail account on Linux server with PHP ? More information is required for that question to be answer (such as what MTA and MDA are you using and a

Re: [PHP] permissions issue under NT?

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 21:58, brent wrote: At 02:30 PM 5/7/02 +0100, you wrote: Help. I've managed to hose myself. I had this page working fine until I went in and screwed up my users under NT4. I can't backtrack and figure out what I changed. Can anyone point me in the right

Re: [PHP] Creating mail account on Linux server

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 22:02, Rosen wrote: Hi, How can I create a mail account on Linux server with PHP ? Depends on what mail server you have and how it is set up. Can I do it ? In theory yes. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems

Re: [PHP] permissions issue under NT?

2002-05-07 Thread Dan Hardiker
Dan - It seemed pretty obvious to me too, but again, the ini file hasn't changed since the whole thing worked. What has changed are the permissions under NT. I've tried changing the /tmp permissions, but the combinations are considerable, and I don't have time to try them all. I was

Re: [PHP] adding 60 to a date

2002-05-07 Thread John S. Huggins
On Tue, 7 May 2002, Scott St. John wrote: -Morning - -I am working on a password aging system that will force a user to change -their password every 60 days. Can anyone recommend the best method for -taking the current date and adding 60 days to that number? Should I do a -unix

Re: [PHP] adding 60 to a date

2002-05-07 Thread Scott St. John
Will the fact that the server is on NT be a problem? On Tue, 7 May 2002, John S. Huggins wrote: On Tue, 7 May 2002, Scott St. John wrote: -Morning - -I am working on a password aging system that will force a user to change -their password every 60 days. Can anyone recommend the

Re: [PHP] adding 60 to a date

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 21:44, Scott St. John wrote: Morning I am working on a password aging system that will force a user to change their password every 60 days. Can anyone recommend the best method for taking the current date and adding 60 days to that number? Should I do a unix

Re: [PHP] permissions issue under NT?

2002-05-07 Thread Stuart Dallas
Jason Wong [EMAIL PROTECTED] wrote: I've tried changing the /tmp permissions, but the combinations are considerable, and I don't have time to try them all. I was hoping someone could point me in the right direction. Set it world readable/writeable? Oooh, nasty. That should be your last

Re: [PHP] adding 60 to a date

2002-05-07 Thread Tyler Longren
No, this won't be a problem. I also suggest using a unix timestamp. It's the easiest way of doing it. tyler - Original Message - From: Scott St. John [EMAIL PROTECTED] To: John S. Huggins [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, May 07, 2002 8:55 AM Subject: Re: [PHP]

RE: [PHP] Creating mail account on Linux server

2002-05-07 Thread Sysadmin
I'm curious about the same thing. RedHat 7.2 with default IMAP. -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 10:06 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Creating mail account on Linux server On Tuesday 07 May 2002 22:02, Rosen wrote:

Re: [PHP] Self Destruct code

2002-05-07 Thread Justin French
I don't believe this is the right way to do things, and really, anything you break can be spotted, fixed, patched and repaired. Sure, it might piss them off for a few days, but it aint a solution. 1. Do you have an agreement with the client in writing? Who owns the copyright of the code? Who

[PHP] problem with fsockopen and lenght of fputs

2002-05-07 Thread Philippe
Hello everyone, I'm trying to send Email with fsockopen. It works fine but when the body of the message is superior to 8k. Then the fputs didn't work. I've read that the fputs had a buffer of 8k and we must use set_file_buffer to remove buffer. But it seems not to work on a fsockopen. Is

Re: [PHP] Creating mail account on Linux server

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 22:23, [EMAIL PROTECTED] wrote: I'm curious about the same thing. RedHat 7.2 with default IMAP. How can I create a mail account on Linux server with PHP ? In general, if people need to ask such a question, then they really are not ready, or do not understand the

RE: [PHP] Creating mail account on Linux server

2002-05-07 Thread Sysadmin
I can create the popuser account, but my problem comes with setting the password. I realize that when you do a useradd command you can specify a -p option for password, but it hasn't worked for me. Is there a better way then calling system commands? -Original Message- From: Jason

Re: [PHP] Creating mail account on Linux server

2002-05-07 Thread Dan Hardiker
I'm curious about the same thing. RedHat 7.2 with default IMAP. How can I create a mail account on Linux server with PHP ? If you check the list, you will see a reply from myself with a list of questions you need to answer for us to begin to help you. In general, if people need to ask such

[PHP] Announcement: Smarty template engine 2.1.1 released

2002-05-07 Thread Monte Ohrt
This is a minor bug fix release. http://www.phpinsider.com/php/code/Smarty/ Version 2.1.1 - - added cycle function (Monte) - fixed bug with resource testing, and include_path (Monte) - fixed a bug with register_outputfilter function (Monte) Monte -- PHP General

RE: [PHP] Creating mail account on Linux server

2002-05-07 Thread Dan Hardiker
I can create the popuser account, but my problem comes with setting the password. I realize that when you do a useradd command you can specify a -p option for password, but it hasn't worked for me. Is there a better way then calling system commands? PLEASE tell me your aware that the

Re: [PHP] Announcement: Smarty template engine 2.1.1 released

2002-05-07 Thread Dan Hardiker
This is a minor bug fix release. Wasnt aware that php-general had incorporated a channel for product plugging and advertisment?! -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Software Systems Engineer First Creative Ltd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Announcement: Smarty template engine 2.1.1 released

2002-05-07 Thread Rasmus Lerdorf
Relax Dan, open source non-commercial PHP-related announcements of interest to a lot of PHP users are welcome here. -Rasmus On Tue, 7 May 2002, Dan Hardiker wrote: This is a minor bug fix release. Wasnt aware that php-general had incorporated a channel for product plugging and

RE: [PHP] Announcement: Smarty template engine 2.1.1 released

2002-05-07 Thread Brian McGarvie
and an advertisment for products that fall into the for users who can't think for themselves bucket of uselessness. even if it is open source... there is other places for it ;) -Original Message- From: Dan Hardiker [mailto:[EMAIL PROTECTED]] Sent: 07 May 2002 15:53 To: [EMAIL PROTECTED]

Re: [PHP] Re: Very Large MySQL Query String

2002-05-07 Thread David Bouw
Dear Javier, Yes, indeed when you encode the file it grows. Normally about 30%.. Thus, the file in my situation of 1 Megabyte grows to 1.3 MegaByte.. But I would expect that this should not give any problems... The columns I am using allows 16 Megabyte.. Does anyone else know what the string

RE: [PHP] Creating mail account on Linux server

2002-05-07 Thread Sysadmin
Ok, so it's a bad idea :-) I'm aware of the security risks I'm dealing with here, but thanks to all those who gave me some ideas to go with. This WILL NOT be on a production machine, it's on my internal network and I'm just playing with it to see what I can do. Have a nice day and thanks

Re: [PHP] Who's having a good hosting experience these days?

2002-05-07 Thread Francisco Reyes
On Sun, 5 May 2002, Marcus James Christian wrote: about $11ish or less a month. Traffic is minimal, and like I say the only tech support calls I've had to make this past year were when the hosting service tweeked and freaked something thus messing it all up. You did not mention your

RE: [PHP] Self Destruct code

2002-05-07 Thread Cal Evans
IANAL! It's against the law in most states to create booby-traps in your code. As others have suggested, don't turn over the code until you've received payment. IMHO, you really should have specified the payment schedule in your contract. =C= * * Cal Evans * Journeyman Programmer *

RE: [PHP] Self Destruct code

2002-05-07 Thread Sysadmin
Or you could set up an automated IMAP Account Creater. That should pretty much take care of things from the way things sound around here:-) -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 07, 2002 11:15 AM To: PHPCoder; php-general Subject: RE:

RE: [PHP] Tailing a log file {!?}

2002-05-07 Thread .ben
IIS produced plain-text log files, this is what i'd like to tail ideally. cheers. .ben -Original Message- From: David Freeman [mailto:[EMAIL PROTECTED]] Sent: 06 May 2002 02:01 To: [EMAIL PROTECTED] Subject: RE: [PHP] Tailing a log file {!?} Is there a tail util for

RE: [PHP] Self Destruct code

2002-05-07 Thread Collins, Robert
Does it have to be a booby-trap or will some little annoyance like a shareware popup that would just aggravate the heck out of them do the trick? Robert W. Collins II Webmaster New Orleans Regional Transit Authority Phone : (504) 248-3826 Email : [EMAIL PROTECTED] -Original

Re: [PHP] Creating mail account on Linux server

2002-05-07 Thread Liam MacKenzie
I don't know, can it be done? http://scripts.operationenigma.net/adduser.php - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 08, 2002 12:06 AM Subject: Re: [PHP] Creating mail account on Linux server On Tuesday 07 May 2002 22:02,

Re: [PHP] File upload problem

2002-05-07 Thread Linn Kubler
I put the max file size tag into my code but that didn't help either. What looks like is happening is that the php file can't be found. I'm using phpscriptcenter's upload.php program and it is all in one script, if you know what I mean. What I'm seeing now is that, depending on the size of the

[PHP] Re: rand(0,1) does seem to get more often 1

2002-05-07 Thread J Smith
Running the code with such a small number of trials will likely cause skewed results one way or the other. I ran this code and consistently got around the 50-50 split you'd expect: ?php $one = 0; $zero = 0; srand((double) microtime() * 100); for ($i = 0; $i 200; $i++) { if

Re: [PHP] copy protection

2002-05-07 Thread Udo Giacomozzi
[EMAIL PROTECTED] (Chris) wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]: I found this on the web one day, though I've never used it or played around with it. It does make the code a pain to read though if it does anything close to the sample on the page. Plus, its free.

RE: [PHP] Re: Making a Client-side HTTPS Request

2002-05-07 Thread .ben
Jonathan Rosenberg wrote: I would like to be able to make a client side HTTPS request from one of my pages. From searching around, I see that I can do everything I want using the CURL library. But the ISP I am using does not have the CURL library installed. I'll ask them if they'll

[PHP] Unsetting PHP_AUTH_USER

2002-05-07 Thread Mark Virtue
I'm having a devil of a time trying to unset the built-in global $PHP_AUTH_USER. My aim is to have a logout button. Obviously the first thing to try is unset($PHP_AUTH_USER). No good - when I refresh the page it's back. Then I tried unset($_SERVER['PHP_AUTH_USER']) - same deal. I also

  1   2   >