Re: [PHP] Creating mail account on Linux server

2002-05-07 Thread Miguel Cruz
On Tue, 7 May 2002, Rosen wrote: > How can I create a mail account on Linux server with PHP ? Not sure what you mean by a "mail account", but if you mean a regular system account, I'd suggest that you look into various setups (vpopmail, Cyrus IMAP, etc.) that will let you create private mailboxes

[PHP] Re: parsing HTML text

2002-05-07 Thread Austin Marshall
Lee Doolan wrote: > > I have written form screen which has as one of it's elements a > box in which a user can input some text --like a simple > bio-- which will appear on another screen. I'd like to edit check > this text. It would be a good idea to make sure that it has, among other > things,

[PHP] parsing HTML text

2002-05-07 Thread Lee Doolan
I have written form screen which has as one of it's elements a box in which a user can input some text --like a simple bio-- which will appear on another screen. I'd like to edit check this text. It would be a good idea to make sure that it has, among other things, no elements, say, or to mak

RE: [PHP] Self Destruct code

2002-05-07 Thread Tim Thorburn
I'm sure we've all had our problems with the client who just doesn't feel like paying. In my particular market, summer resorts and vacation spots are pretty much the main source of web work. Now alot of these businesses are very good in paying, normally I receive payment within a week of sen

[PHP] Multiple File Download

2002-05-07 Thread Steven Walker
Hi, Does anyone know a way to download multiple files with a php script? I have 26 software products that can be purchased individually and I want to make the download process easier. I have looked into dynamically creating zip files, but it is problematic for Mac users (which account for a l

[PHP] Re: newbie needs help with array-checking

2002-05-07 Thread Austin Marshall
Moritz Helten wrote: > Hello, > > I have a problem with checking an array if it is empty: > > if ($artikel[$i] != ""){ > ... > } > > That code does not work! > > May somebody help me? > > thanx, > Moritz > > take a look at the manual... there is a empty() function that checks for this ver

[PHP] Crosstabs & PHP [long]

2002-05-07 Thread Jay Blanchard
I have the following code in page to query a 12,000,000 record DB for a crosstab; //query for RecordID list $qrid = "SELECT DISTINCT RecordID "; $qrid .= "FROM tblCrosstab "; $qrid .= "ORDER BY RecordID "; $dbrid = mysql_query($qrid, $dbconnect) the second query is created on the fly, because I

[PHP] newbie needs help with array-checking

2002-05-07 Thread Moritz Helten
Hello, I have a problem with checking an array if it is empty: if ($artikel[$i] != ""){ ... } That code does not work! May somebody help me? thanx, Moritz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File upload problem

2002-05-07 Thread Jason Soza
For what it's worth, I ran into this the other day, except I'm not using the MAX_FILE_SIZE tag in the form. I have a variable set in the action script that is set to the max size in KB, I take the user's filesize, divide it by 1024 to get it to KB, then run an 'if' statement to decide whether

[PHP] Re: Self Destruct code

2002-05-07 Thread Hugh Bothwell
Keep some vital part of the code separate, ie on your own host... such as the ability to add new users, or the calendar-file for next month, or whatever. Their system works fine, and as soon as they pay they get the last module and are on their own, but if they fail to pay you can pull the plug.

Re: [PHP] File upload problem

2002-05-07 Thread Jason Wong
On Tuesday 07 May 2002 19:09, David Freeman wrote: > > -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

[PHP] var-vars question

2002-05-07 Thread heinisch
Hi folks, Linux, PHP3 I have the following problem: I have an object, which creates a form, wherein there are selects, which names accord to values in the database. But I didn´t get it to have a variable var, I´m sure it´s just a small thing, but I cannot see it Any suggestions ? TIA Oliver ec

Re: [PHP] Unsetting PHP_AUTH_USER

2002-05-07 Thread Rasmus Lerdorf
You don't unset the variable. The variable comes from your browser sending an Authenticate http request header, so as long as the browser sends this header, the variable is going to get created. The way to unset it is then to stop the browser from sending this Authenticate header. Currently the

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

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 the

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. > > http:/

[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: J Andy wrote: > Hi there, > > I am wondering if it is possible that this function tends to be more often >

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

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:0

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

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

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] 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 * Techno-Mage

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 requi

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 to

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 lim

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

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

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

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

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 W

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 se

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

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

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

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

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

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 recomm

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 tim

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 h

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 Inte

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

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

[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

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

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! > >H

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

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

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 Un

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

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 blun

[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: open(/tmp\sess_6bdc839067df0a2b94

[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() functi

[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("fieldtex

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. That should get you started. -- Dan Hardiker [[EMAIL PROTECTED]] ADAM Soft

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() functi

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 t

[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 = $month[r

[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

[PHP] Re: Access denied errors

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

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

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

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

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

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 customer

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

[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 'C

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!

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 th

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 a

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 wo

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] 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] 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] 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: >> > $output = ""; // Clear output >> $url = "http://whatever.com/file.html";; // whatever you wanna

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 allowe

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: > 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. > There seem to be many guys having the same problem, I did se

Re: [PHP] problem with fread

2002-05-07 Thread Henning Sprang
>$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 b

RE: [PHP] multipart/form-data

2002-05-07 Thread Michael Ransburg
Hi! It looks like that: 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 deja, but I did not find a solution. Look here for example: htt

[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(); session_register("g_sessi

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

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: http://whatever.com/file.html

[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: http://ww

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=en&threadm=B8B6599D.A88%25mnc%40stoic.net &rnum=25&prev=/groups%3Fq%3Dphp%2Bmultipart/form-data%

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

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

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

[PHP] multipart/form-data

2002-05-07 Thread Michael Ransburg
Hi! Everytime I add enctype="multipart/form-data" to my 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: Con

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

[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 /u

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

[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

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: 'icon@

[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

  1   2   >