[PHP] function to add %20 in place of blank spaces

2001-04-16 Thread Nando2

I'm trying to remember what is the function to replace blank spaces with %20.

Can anyone remind me of that?

Thanks, 

C.F.



[PHP] dynamic checkboxes

2001-04-10 Thread Nando2

Hello All,

I'm trying to build a way to transfer my orders to a HTML page instead of using GUI 
that I've designed.

In order to do that I need to display all the orders of the day and have checkboxes on 
each so that the user can select only the orders that we will process. 

The number of checkboxes on this form will depend on the number of orders of that day. 
So the form and the number of its variables will be dynamic as well.

Each checkbox has to have the name property that can be matched to the 
customercode+ordernumber. After the form is submited I need to scan all the variables 
that were checked so that it can be included on the next query.

Has anyone tried that or did that before? Is there any URL or PHP code that can be 
used to learn that?

Thank you very much,

Carlos Fernando.



[PHP] Saving a page/text file from a query

2001-04-10 Thread Nando2

Hello all,

I need to display a page on text format that will be the result of a query. This page 
will not be saved on my server harddrive but it has to allow the user to save it to 
their HD.

The problem is that the page has to be saved on the customer HD automaticaly (He/She 
should not click on the browser's save option) and it also has to be saved on a fixed 
file name like  text.txt or schedule.csv.

Does anyone know how to implement that?

Thank you very much,

Carlos Fernando Scheidecker Antunes.



[PHP] Forcing a dynamic created text file to be saved

2001-04-10 Thread Nando2

Hello all!

I have a PHP4 script that produces a text file and I would like that when the user 
access this script the text content of it was forced to be saved meaning that when the 
user selects it he/she will have the save dialog form to save the text file with the 
filename specified in the header function. So far I have managed to create the text 
file dynamicaly but still I have to click the browser's save button to save the file 
with the determined filename. I wanted it to be forced.

Does anyone know how to do it ?

Here's the code :

?php

// Carlos Fernando Scheidecker Antunes : Test saving text files with PHP
// this sets the content type as being plain text

header("Content-Type : text/plain; charset=\"iso-8859-1\"");

// this sets the file name

header("Content-Disposition: filename=\"test.txt\"");

// creates the dynamic content of the text file here

print("TextFile test\r\n\");
for ($i=1; $i  100; $i++) {
print("This is line number ".$i."\r\n");
}

?

Thanks,

Carlos Fernando Scheidecker Antunes



[PHP] is PHP sftp ready?

2001-03-20 Thread Nando2

Hello everybody,

I already am familiar with PHP's ftp capabilities. My question though is if
anyone has ever used or know wether PHP is compatible or not with sftp
(OpenSSH secure FTP). If so, can I use the same libraries or is there any
PHP extention that I must download in order to enable it.

Thank you,

Carlos Fernando Scheidecker Antunes.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]