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

2003-07-28 Thread Grant Rutherford
$color = script!-- document.write(screen.colorDepth) //-- /script; $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

[PHP] Serve a file using PHP

2003-08-26 Thread Grant Rutherford
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 help, Grant -- Grant Rutherford Iders

Re: [PHP] Serve a file using PHP

2003-08-29 Thread Grant Rutherford
:///home/grant' 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 http

Re: [PHP] Serve a file using PHP

2003-08-29 Thread Grant Rutherford
John W. Holmes wrote: Can't you just link 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

Re: [PHP] Serve a file using PHP

2003-08-29 Thread Grant Rutherford
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 Winnipeg, MB R3G 2X6 http

[PHP] Redirect to a different frame...

2003-07-03 Thread Grant Rutherford
A, 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 -- Grant

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

2003-07-03 Thread Grant Rutherford
Joseph -- Grant Rutherford Iders Incorporated 600A Clifton Street Winnipeg, MB Canada R3G 2X6 http://www.iders.ca tel: 204-779-5400 ext 36 fax: 204-779-5444 This message is intended solely for the use of the designated recipient(s) and their appointed delegates, and may contain confidential information

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

2003-07-03 Thread Grant Rutherford
- From: Grant Rutherford [mailto:[EMAIL PROTECTED] Sent: Thursday, July 03, 2003 12:03 PM To: Dan Joseph Cc: PHP Mailing List Subject: RE: [PHP] Redirect to a different frame... Hi there, Thanks for your response. I understand that I can specify a target in the form tag

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

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

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

2003-10-03 Thread Grant Rutherford
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 Rutherford Iders

[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

[PHP] Rename the current page

2003-10-17 Thread Grant Rutherford
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 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
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

Re: [PHP] Rename the current page

2003-10-17 Thread Grant Rutherford
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 far. It seems to work okay on Mozilla browsers but not IE. Okay, what have you actually tried

[PHP] File Upload problem

2003-10-20 Thread Grant Rutherford
= 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 Iders Incorporated: Confidential

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 Rutherford

Re: [PHP] File Upload problem

2003-10-20 Thread Grant Rutherford
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 receiving page (testdone

Re: [PHP] File Upload problem

2003-10-20 Thread Grant Rutherford
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://www.iders.ca tel: 204-779-5400

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

[PHP] Quick ereg_replace question

2003-12-02 Thread Grant Rutherford
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 Note