[PHP] Quick ereg_replace question

2003-12-02 Thread Grant Rutherford
good references for regular expressions? Thanks, Grant -- Grant Rutherford Iders Incorporated 100-137 Innovation Drive Winnipeg, MB, Canada R3T 6B6 http://www.iders.ca tel: 204-779-5400 ext 36 fax: 204-779-5444 Iders Incorporated: Confidential ===

Re: [PHP] File Upload problem

2003-10-20 Thread Grant Rutherford
I found the problem!!! Buried deep within the manual: LimitRequestBody in /etc/httpd/conf.d/php.conf was set too small. Thanks for your time everyone, Grant -- Grant Rutherford Iders Incorporated 600A Clifton Street Winnipeg, MB R3G 2X6 http://www.iders.ca tel: 204-779-5400 ext 36 fax: 204-779

Re: [PHP] File Upload problem

2003-10-20 Thread Grant Rutherford
rote: Grant, What version of PHP are you running, and at the risk of being redundant, are you doing exactly what the manual says to do reguarding uploads? Try that first, and then lets work from there. Jay -- Grant Rutherford Iders Incorporated 600A Clifton Street Winnipeg, MB R3G 2X6 http://

Re: [PHP] File Upload problem

2003-10-20 Thread Grant Rutherford
about fixing it? Thanks, Grant Grant Rutherford wrote: Hi there, I'm trying to get a file upload to work with PHP. The file I'm attempting to upload is a 742kB pdf file, but this will have to work for files up to 50Mb of all types eventually. The following test pages work fine if the

Re: [PHP] Re: File Upload problem

2003-10-20 Thread Grant Rutherford
No, I'm afraid that the results are nearly instantaneous. If it timed out, there should be a corresponding delay before I got the error message. Thanks, Grant pete M wrote: It might be the script timing out - defaults to 20 seconds check set_time_limit() regards pete -- Grant Ruthe

[PHP] File Upload problem

2003-10-20 Thread Grant Rutherford
max_size = 1M file_uploads = On upload_max_filesize = 1M Any help would be appreciated Thanks, Grant -- Grant Rutherford Iders Incorporated 600A Clifton Street Winnipeg, MB R3G 2X6 http://www.iders.ca tel: 204-779-5400 ext 36 fax: 204-779-5444 ==

Re: [PHP] Rename the current page

2003-10-17 Thread Grant Rutherford
ay to do this besides the Content-Disposition header? Perhaps by sending a location header without actually redirecting? Thanks, Grant CPT John W. Holmes wrote: From: "Grant Rutherford" <[EMAIL PROTECTED]> I have tried many variations of the header command, but no luck so f

Re: [PHP] Rename the current page

2003-10-17 Thread Grant Rutherford
Grant Rutherford wrote: Alternatively, is there some way that I could generate that file, redirect the user to it, and then delete the file again afterwards? I know how to do all of this except delete the file. Is there some way to schedule a command to be run after the script is finished

[PHP] Rename the current page

2003-10-17 Thread Grant Rutherford
ons of the header command, but no luck so far. It seems to work okay on Mozilla browsers but not IE. Can anyone offer any advice, or tell me if this is not going to be possible? Thanks, Grant -- Grant Rutherford Iders Incorporated 600A Clifton Street Winnipeg, MB R3G 2

[PHP] Quick question: PHP user?

2003-10-10 Thread Grant Rutherford
Hi, Just a quick question... What user does php run as on linux? Is it the Apache user? Is there some way to tell? I need to be able to set a directory so that only PHP can access it. Thanks, Grant -- Grant Rutherford Iders Incorporated 600A Clifton Street Winnipeg, MB R3G 2X6 http

Re: [PHP] File Download

2003-10-03 Thread Grant Rutherford
nt Grant Rutherford wrote: Hi there, I would like to send an arbitrary file to a user. This file will be on the server in the PHP directory. I will also want to rename it before it is sent, but keep the old file with the old filename. Any help is appreciated... Thanks, Grant -- Grant Rutherfo

[PHP] File Download

2003-10-03 Thread Grant Rutherford
Hi there, I would like to send an arbitrary file to a user. This file will be on the server in the PHP directory. I will also want to rename it before it is sent, but keep the old file with the old filename. Any help is appreciated... Thanks, Grant -- Grant Rutherford Iders Incorporated 600A

Re: [PHP] Serve a file using PHP

2003-08-29 Thread Grant Rutherford
e on the same network you can even create links such as fttp://othermachine/home/users/grant/parts.txt and it would work just fine. IN this case mozzila will open the ftp connection and fetch the file for you. all the best raditha -- Grant Rutherford Iders Incorporated 600A Clifton Street

Re: [PHP] Serve a file using PHP

2003-08-29 Thread Grant Rutherford
nk to \\computer_name\path\to\file.doc (or whatever the filename is) ? file:/// would try to load it off of their machine, not a network machine. ---John Holmes... -- Grant Rutherford Iders Incorporated 600A Clifton Street Winnipeg, MB R3G 2X6 http://www.iders.ca tel: 204-779-5400 ext 36 fax: 20

Re: [PHP] Serve a file using PHP

2003-08-29 Thread Grant Rutherford
nt' and not 'file://home/grant/' There isn't any other way in which you can use PHP to access files on a hard disk. PHP is a server side scripting language. You could always try signed java applets. -- Grant Rutherford Iders Incorporated 600A Clifton Street Winnipeg, MB R3G 2X6 htt

[PHP] Serve a file using PHP

2003-08-26 Thread Grant Rutherford
ot;, but Mozilla wouldn't follow the link (probably a security thing; it makes sense that links shouldn't open local files). Is there a way that I can give PHP the network path (through $_POST for example), and it would return the file instead of an HTML document? Thanks for any he

Re: [PHP] javascript & php

2003-07-28 Thread Grant Rutherford
$color = " "; $query = mysql_query("select id from color where color = '$color' "); $a = mysql_num_rows($query); Actually, what you want to do is possible, but difficult. If you are willing to tolerate a page refresh, you can use this code to

Re: [PHP] Re: Redirection Question (I spoke to soon)

2003-07-23 Thread Grant Rutherford
You need the "http://"; ie. "http://www.microsoft.com"; Beauford.2005 wrote: Errors are on and I get nothing, it won't even direct if I hard code header("Location: www.microsoft.com"); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirection Question

2003-07-22 Thread Grant Rutherford
Hello there, I had the same problem, and to solve it I put the following code in my "check login" include file: // code to detect no login session_start(); session_register('target'); $_SESSION['target'] = "http://"; . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; header("Lo

Re: [PHP] explode and escape character for string separator

2003-07-18 Thread Grant Rutherford
Chris Shiflett wrote: --- Reuben D. Budiardja wrote: I did strive for that. But whatever character I choose, the problem remains that we can't guarantee that it's going ot be only used as deliminater, since the deliminated string is an input from user. So the problem remains. Well, just to

RE: [PHP] Redirect to a different frame...

2003-07-03 Thread Grant Rutherford
; On Thu, 2003-07-03 at 12:02, Dan Joseph wrote: > > Oh, yeah, that is correct. You'd need to use the tag and put some > > javascript in them to target the frames. I'm not up on the javascript > > enough though, check javascript.internet.com for more information. >

RE: [PHP] Redirect to a different frame...

2003-07-03 Thread Grant Rutherford
mit the data to the same page which will > > load in frame B. > > in your tag, you can put target=framename, example: > > > > Anything submitted from that frame will target the specified frame. No > fancy PHP needed, unless you want to ma

[PHP] Redirect to a different frame...

2003-07-03 Thread Grant Rutherford
, and the other to submit the data to the same page which will load in frame B. I was hoping that I could put some code at the top of the results page which will tell the browser which frame to display it in (dependent on which $_POST variable is set). Is this possible? Thanks, Grant --