Re: [PHP] emulate a browser

2002-01-24 Thread Frank Benady
Thanks for your help Michael, I'll try it out. Frank At 01:45 AM 1/24/2002 +0100, Frank Benady wrote: Hi All Can I emulate the first request of a browser when it tries to connect to a distant server using a domain name and parse the answer from the remote server to know if there is a

Re: [PHP] Creating a pdf document

2002-01-24 Thread val petruchek
http://www.php.net/manual/en/ref.com.php Valentin Petruchek (aki Zliy Pes) *** ??? ?? *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] - Original Message - From: Mihail Bota [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 9:52 AM

Re: [PHP] Creating a pdf document

2002-01-24 Thread Jason Wong
On Thursday 24 January 2002 15:52, Mihail Bota wrote: Hello, I was wondering if I could save the result of a query in a pdf document. I looked for any functions that might help, but I got confused because I could not see how/where exactly to insert the necessary .dll's. First read the

[PHP] Whats the best way.

2002-01-24 Thread Philip J. Newman
Whats the best way that I can let users upload single .jpeg and gif files, renaming then with a time stamp? Philip J. Newman Philip's Domain - Internet Project. http://www.philipsdomain.com/ [EMAIL PROTECTED] Phone: +64 25 6144012

Re: [PHP] Whats the best way.

2002-01-24 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Philip J. Newman blurted Whats the best way that I can let users upload single .jpeg and gif files, renaming then with a time stamp? RTFM There's a *big* section on file uploads :=) - -- Nick Wilson Tel:+45 3325 0688 Fax:

Re: [PHP] Whats the best way.

2002-01-24 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Philip J. Newman blurted Nice, how rude, but nice. Didn't really mean to be rude hence the concessional smiley at the end. Regards - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com

[PHP] Re: seems easy...

2002-01-24 Thread liljim
Hi Justin, $string = substr($string, 0, 5000) . text too long.; ? http://www.php.net/substr James Justin French [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, Really simple, but can't see which funtion to use in the manual. I want to take a

Re: [PHP] emulate a browser

2002-01-24 Thread Frank Benady
It works really nice, Michael, thanks again. I have one more question, maybe you can answer me : If the domain name has been redirected with hte permanent redirect, I get the 301 Moved Permanently header response. But if the domain name has been frame-forwarded, I have no header response. Is it

Re: [PHP] Need opinion On sessions - Cookies mandatory?

2002-01-24 Thread DL Neil
Entering the conversation late... 1 IP addresses Remember these are not necessarily 'unique'. If two of us here log in, won't we appear (to you) have the same IP address if we're 'hiding' behind a NAT (Network Address Translation) box? Also dial-up users share a pool of IP addresses which are

Re: [PHP] Whats the best way.

2002-01-24 Thread Stefan Rusterholz
Read this through: http://www.php.net/manual/en/features.file-upload.php Consider then: http://www.php.net/manual/en/function.is-uploaded-file.php After that read: http://www.php.net/manual/en/function.move-uploaded-file.php and then do it like that: -upload form -check if user has uploaded a

[PHP] Using Mail Functions.

2002-01-24 Thread Sidney
Dear all, I am a new user on php and I have read on the function of IMAP in the php.net but they made me confuse. In ture i am not understand what is the function and how to use them. Have there got any resource for me to reference? I think that if there got more example it can be more easy to

[PHP] Clear form post data

2002-01-24 Thread Conrad Strydom
um , lets say a form calls its own page , does some db operations and then returns to its former self , how do you get it to not perform said db operations on refresh? i.e the data is reposted and thus the submit variable still appears to be set? Thanks -- PHP General Mailing List

Re: [PHP] db conversion advice needed

2002-01-24 Thread Stefan Rusterholz
- Original Message - From: Wilbert Enserink [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Wednesday, January 23, 2002 4:34 PM Subject: [PHP] db conversion advice needed Hi all, I have this huge db in FileMaker Pro format :-( Which plattform? Mac, Win? I had once to write an

[PHP] RE: phpwiki save button

2002-01-24 Thread Tim Ward
What is it you actually want to do? Add the current date/time or a timestamp entered on the submitting form? See date() for the former. Once you've got your stamp in a format you want just add it to the front of the story before saving. Give us a bit more detail about what it is that isn't

[PHP] RE: One Line text boxes vs. Multiline text boxes

2002-01-24 Thread Tim Ward
Sounds to like you're not putting the value in quotes. i.e. input type=text value=fred you can get away with input type=text value=tom,dick and harry you can't. textarea's (what I assume you are referring to as multiline text boxes) are different as the value goes between the tabs and seems to be

[PHP] calling an URL

2002-01-24 Thread Eduardo Melo
How can i call as URL from a PHP code ? thanks, eduardo melo computer programmer _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] calling an URL

2002-01-24 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Eduardo Melo blurted How can i call as URL from a PHP code ? What do you mean by 'call'? - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG

[PHP] delete a file from the server

2002-01-24 Thread Tommy Straetemans
Hi, I'm new in PHP and i have a question: How can i delete a file from the server in PHP Tommy Straetemans -- 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,

Re: [PHP] calling an URL

2002-01-24 Thread Martin Cabrera Diaubalick
Header(Location:http://whatever.com;); HTH REgards El Jue 24 Ene 2002 12:50, Eduardo Melo escribió: How can i call as URL from a PHP code ? thanks, eduardo melo computer programmer _ Send and receive Hotmail on your mobile

[PHP] Re: delete a file from the server

2002-01-24 Thread liljim
Hi Tommy, use unlink() $filename = mypic.jpg; unlink($filename) or die(Something's barfed); James How can i delete a file from the server in PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] delete a file from the server

2002-01-24 Thread Jeff Van Campen
How can i delete a file from the server in PHP unlink(/file/path/filename.txt); http://www.php.net/manual/en/function.unlink.php -- 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

Re: [PHP] Viral Marketing PHP (was Re: [PHP] Computer Science and PHP)

2002-01-24 Thread DL Neil
Hello Manuel, One other dimension, the institutions can only offer classes in the languages (and techniques/technologies) that the trainers know and than they have the resources (hardware, compilers/interpreters) to cover. Maybe therein lies an answer to the 'marketing' side too. The

RE: [PHP] Help is_dir command driving me crazy!

2002-01-24 Thread joakim . andersson
Try to add the following line above all code: clearstatcache(); This clears the status from previous is_dir()'s. Good luck, Joakim -Original Message- From: Dean Dunn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 22, 2002 6:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Help

Re: [PHP] Split files

2002-01-24 Thread DL Neil
Making any sense? Year, so I have to do it manually (thought someone could preveting me from reinvent the wheel... ;-) What are you really trying to achieve? I'm trying to split a large binary file (2 GB) into peaces of 700 MB to burn it on a cd. It's a part of a

[PHP] Why while doesn't work?

2002-01-24 Thread Anthony Rodriguez
Although the table con_inf in db sbwresearch contains 3 records with username as the first column, the following short script generates a blank page: ?php $connection=mysql_connect(localhost,wagner,xyz) or die (No connection!); $db=mysql_select_db(sbwresearch,$connection) or die (No

Re: [PHP] emulate a browser

2002-01-24 Thread Michael Sims
At 10:33 AM 1/24/2002 +0100, Frank Benady wrote: It works really nice, Michael, thanks again. I have one more question, maybe you can answer me : If the domain name has been redirected with hte permanent redirect, I get the 301 Moved Permanently header response. But if the domain name has been

[PHP] eval on php embedded html

2002-01-24 Thread DigitalKoala
hi folks, i'm having a problem using eval. i have some html code interdispersed with php code (proper statement not just variables) in a database. when i fetch the code and display it using : $reg_adv_html=addslashes($reg_adv_html); eval(\$reg_adv_html = \$reg_adv_html\;);

[PHP] Re: Difference between i586 RPM and SRC.RPM?

2002-01-24 Thread Fredrik Wahlberg
src.rpm is the source code packaged in an rpm-file. If you install it as rpm --rebuild it will compile a binary rpm for you. If you use Redhat you can find the binary rpm in /usr/src/Redhat/RPMS i586.rpm is a compiled binary for the i586-platform architecture /Fredrik --

Re: [PHP] How can the Surfer download

2002-01-24 Thread Todd Cary
When the surfer presses a button, I want a pre-determined file to be downloaded by the surfer - the box to come up on the surfer's browser: Open or save Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] multi-threading within php?

2002-01-24 Thread Mattias Andersson
Hello! I was making a spider for a simple searchengine and all was well until I started testing it on larger sites. The problem isn't that it doesn't work, it does, but it is very very slow, just handling one connection at the time. Basically, it just downloads a page, extract all links from

[PHP] problems with system()

2002-01-24 Thread John Gurley
Hello, I am in a bit of a pickle and would greatly appreciate any help. I have code which writes inputs to a txt file. These inputs are used as inputs to a c program. What I am trying to do is use the redirect command to run the code from php. The command is: ./a.outtest.txt through

Re: [PHP] multi-threading within php?

2002-01-24 Thread Stefan Rusterholz
Sorry, I don't have an answer on your question, but a question to you: I'm currently building a class to browse a page and was interested in the source of your script. Especially on that part extracting the links. Would you mind providing the source or is it a commercial? best regards Stefan

[PHP] Re: phpwiki save button

2002-01-24 Thread Tim Bogart
On Thursday 24 January 2002 06:36 am, Tim Ward wrote: What is it you actually want to do? Add the current date/time or a timestamp entered on the submitting form? yes. That is exactly what I wish to do. See date() for the former. Once you've got your stamp in a format you want just add it

Re: [PHP] Split files

2002-01-24 Thread bvr
=Hmm, I'm still come at it from the other way around (all due respect to Jason) - but then I don't recall OpSys details, or know if there is a utility/tool for the job in your choice of OpSys. Well unless it's a *really* obscure OS I'm sure there must be some readily available file splitter

[PHP] Re: Clear form post data

2002-01-24 Thread Atanas Vassilev
The general approach when a form has $PHP_SELF as the action value is to use a switch construct and in one of the cases perform the mentioned db operations, in all other cases (depends what variable you'd be switching) simply do not perform them. HTH, Nasko Conrad Strydom [EMAIL PROTECTED]

Re: [PHP] How can the Surfer download

2002-01-24 Thread Jason Wong
On Thursday 24 January 2002 21:33, Todd Cary wrote: When the surfer presses a button, I want a pre-determined file to be downloaded by the surfer - the box to come up on the surfer's browser: Open or save Many ways to do this, one of which could be: form action=download.php input

[PHP] Problems writing the TM (#8482;) symbol when generating XML file

2002-01-24 Thread Atanas Vassilev
I'm generating an XML file and because of the later purpose of this XML file I need to write all occurrences of the TM symbol using #0153; code instead of #8482;. However, no matter how I write this symbol in the input text fields, holding ALT and typing 0153 or just entering #0153; in the end I

RE: [PHP] Why while doesn't work?

2002-01-24 Thread Matt Schroebel
If you only want the associative array, just use mysql_fetch_array($result). If you're using the constant MYSQL_ASSOC, uppercase it, and don't quote it. Although the table con_inf in db sbwresearch contains 3 records with username as the first column, the following short script generates a

Re: [PHP] delete a file from the server

2002-01-24 Thread bvr
That is indeed very tricky. You may try this routine: ?php readfile(http://www.php.net/delete;); ? bvr. On Thu, 24 Jan 2002 12:56:09 +0100, Tommy Straetemans wrote: Hi, I'm new in PHP and i have a question: How can i delete a file from the server in PHP Tommy Straetemans -- PHP

RE: [PHP] Clear form post data

2002-01-24 Thread Matt Schroebel
One would need to check the db to see if the operation had already been performed, so as not to do it again. um , lets say a form calls its own page , does some db operations and then returns to its former self , how do you get it to not perform said db operations on refresh? i.e the data is

[PHP] Sending a POST-message

2002-01-24 Thread Bjrne
Hi! I wonder how I can send a POST-command to a server, via a PHP-script instead of a form. Imagen that I have this form: form action=/request.php method=POST Name: input type=text name=reqNamebr/ E-mail: input type=text name=reqEmailbr/ input type=submit /form Now I want to send a command to

[PHP] RE: phpwiki save button

2002-01-24 Thread Tim Ward
I think you just need to add the timestamp to the start of the story before you save it, i.e. $content = date(d/m/Y H:i:s - ) . $content; or am I missing something? Tim www.chessish.com -Original Message- From: Tim Bogart [SMTP:[EMAIL PROTECTED]] Sent: 24 January

Re: [PHP] RE: phpwiki save button

2002-01-24 Thread Tim Bogart
No, you're not missing a thing. I just need to know exactly where to put the line you sent me. The word content is mentioned a few times in the script and I'm not a programmer, remember? Could you please indicate exactly where you would put the line you sent me? I'm sure you are taking for

[PHP] Change files of users?

2002-01-24 Thread Tobias Schweitzer
Hello I just subscribed to the list, hoping that someone would be able to help me with my question. Well, I'm working on a script that can and will be used by different users from the machine and I was wondering if there was any way to do something like an su, changing the user the script is

[PHP] Re: [PHP-DB] Creating a pdf document

2002-01-24 Thread Daniel Ems
Mihai, There is a php class that can generate pdf documents without the dll's/libraries required by other methods: http://ros.co.nz/pdf/ You can definitely use the results of a database query to create a pdf! Enjoy! Daniel Ems On Wed, 23 Jan 2002, Mihail Bota wrote: Hello, I was

RE: [PHP] Sending a POST-message

2002-01-24 Thread Matt Schroebel
I think this is what you're looking for. It's a script written by Rasmus. http://www.php-faq.com/faq.php#39 I wonder how I can send a POST-command to a server, via a PHP-script instead of a form. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [PHP] RE: phpwiki save button

2002-01-24 Thread Tim Ward
without the full source code of the classes you are using I'd be guessing, but within savePreview() and savePage() $content is passed to an object method that does the saving. You could just pass date(d/m/Y H:i:s - ) . $content instead of $content. However it looks like this may be amended from

Re: [PHP] Warning: Failed opening '....' for inclusion (.....) in Unknown on line 0

2002-01-24 Thread Ben Sinclair
Maybe there was a permissions problem? -- Ben Sinclair [EMAIL PROTECTED] - Original Message - From: Scott Fletcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 9:34 AM Subject: [PHP] Warning: Failed opening '' for inclusion (.) in Unknown on line 0

Re: [PHP] Warning: Failed opening '....' for inclusion (.....) in Unknown on line 0

2002-01-24 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Scott Fletcher blurted Hiya Everyone! came up. I kept getting the error message on some files with a Warning: Failed opening '...' for inclusion () in Unknown on line 0. I did some troubleshooting but with no luck. Is that

Re: [PHP] Warning: Failed opening '....' for inclusion (.....) in Unknown on line 0

2002-01-24 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Ben Sinclair blurted Maybe there was a permissions problem? Good point :-) - -- Nick Wilson Tel:+45 3325 0688 Fax:+45 3325 0677 Web:www.explodingnet.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6

Re: [PHP] Warning: Failed opening '....' for inclusion (.....) in Unknown on line 0

2002-01-24 Thread Negrea Mihai
Hiya Everyone! came up. I kept getting the error message on some files with a Warning: Failed opening '...' for inclusion () in Unknown on line 0. I did some troubleshooting but with no luck. test to see if you don't have a prepend statement around! -- PHP General Mailing List

Re: [PHP] Hey!

2002-01-24 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Scott Fletcher blurted Hi again! I just did the crazy thing and it work! What I did was to copy the whole script in the file then delete the file. Create a new file and paste the script back into the file. Guess what! The

[PHP] Mail Attachments

2002-01-24 Thread Gordon Stewart
Dear List I have just compleated a PHP web frontend to the standard mail function in PHP. I have got it to send and recieve email. Can I take this programming task further and allow it to send and recieve attachments. My script runs on a redhat 7 box. Can anyone help? How can i achieve this?

[PHP] Re: phpwiki save button

2002-01-24 Thread Tim Bogart
So...I would create a new table in my postgresql database that's being used which would contain the timestamp. I would populate that table when the savepage.php was executed, extract the data from that table and write it to the screen, then execute the save. Does that sound right? Tim On

[PHP] One more time... Sessions questons?

2002-01-24 Thread Floyd Baker
Hi I have been reading but can't get sessions to even try working.. The set up is win32/php4.1/apache. Reading the list I have done what was suggested where it I could understand it. Just went nuts creating /tmp dirs everywhere I could think of to see if any of them worked... Nada!

Re: [PHP] Re: Warning: Failed opening '....' for inclusion (.....) in Unknown on line 0

2002-01-24 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Scott Fletcher blurted The file permission checked out fine. It just baffled me! I don't know how to keep the post together to one topic! I use MS Outlook and I clicked the reply button and it came out as a seperate post.

Re: [PHP] How can the Surfer download

2002-01-24 Thread Todd Cary
Jason - Then in your file download.php, have a single statement using the header() function to redirect to the file that is to be downloaded. What is the syntax for the header() function? Many thanks... Todd -- Dr. Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] Re: The Euro symbol, default charset and htmlentities()

2002-01-24 Thread LaserJetter
can you not print the charset inside one of the HTML tags? (DOCTYPE it might be in). Also, if you dont want to keep typing out htmlentities(¤,ENT_QUOTES,iso-8859-15) to get a euro, just do: $euro = htmlentities(¤,ENT_QUOTES,iso-8859-15); LJ Sönke Tesch [EMAIL PROTECTED] wrote in message

Re: [PHP] How can the Surfer download

2002-01-24 Thread Jason Wong
On Friday 25 January 2002 01:00, Todd Cary wrote: Jason - Then in your file download.php, have a single statement using the header() function to redirect to the file that is to be downloaded. What is the syntax for the header() function? Manual? Lots of good info in

SV: [PHP] multi-threading within php?

2002-01-24 Thread Mattias Andersson
Then I would have to write a parser when I have already written my own spider. But the problem isn't the spider itself, but rather the lack of multi-threading within PHP (which is needed in quite alot of sitatuations, depending on what you're coding). I'm not sure if it really does lack

Re: [PHP] Mail Attachments

2002-01-24 Thread Neil Freeman
Take a look at the articles on: http://www.devshed.com/Server_Side/PHP HTH Neil Gordon Stewart wrote: Dear List I have just compleated a PHP web frontend to the standard mail function in PHP. I have got it to send and recieve email. Can I take this programming task further and allow

[PHP] PHP without browser

2002-01-24 Thread DrouetL
Hi everybody I would like to pass parameters to a php script running as a bach job under windows. Is there any possibility to something like that ? Laurent Drouet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

[PHP] Image Upload

2002-01-24 Thread lists
Does anyone have a good script for uploading an image and storing it in a mySQL database. Thanks -- 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

[PHP] function scope question

2002-01-24 Thread Joel Boonstra
Hello, I wrote a PHP class to display an HTML calendar, and then wrote a subclass of it for a specific project I'm working on. Here is the entirety of the subclass: // create our new sub-class of the calendar class rantCal extends calendar { function get_link($day) { $link = ; if

Re: [PHP] eval on php embedded html

2002-01-24 Thread Atanas Vassilev
So, either: ? if ($radiobutton1 == on) { print selected; } ? Or ? if ($radiobutton1 == on) print selected; ? I found it very convenient for in-html coding to use the following structure: input blabla bla ? echo($radiobutton1 == on ? selected : );? -- PHP General Mailing List

Re: [PHP] How can the Surfer download

2002-01-24 Thread Todd Cary
Jason - I had looked it up in the manual, but I am not sure of what to put into the area /* ... output pdf file ... */ Any help is appreciated Todd If you want the user to be prompted to save the data you are sending, such as a generated PDF file, you can use the Content-Disposition

Re: [PHP] How can the Surfer download

2002-01-24 Thread daniel
Todd- I had looked it up in the manual, but I am not sure of what to put into the area /* ... output pdf file ... */ Any help is appreciated Todd If you want the user to be prompted to save the data you are sending, such as a generated PDF file, you can use the

[PHP] using a text file for variables in a form?

2002-01-24 Thread Alexis N. Mueller
I have some variables stored in plain text in a text file. Unfortunately I am not going to be able to use SQL to solve this one, since that server is not running it. Anyway. The text file looks like this (everything between the *): * SAVINGS=type1 FILTER=disabled SPOOL=category1 * I use a form

Re: [PHP] emulate a browser

2002-01-24 Thread LaserJetter
If it is frame forwarded, you would get a 300 OK status becuase you have accessed a web page and it has been server OK. The webpage (which contains the FRAMESET tags) then send a request to another server to get the page to be redirected to. The only way to check for this would be to see if the

Re: [PHP] How can the Surfer download

2002-01-24 Thread Todd Cary
Daniel - When I use the following code, I am not asked if I want to Save the file or Open it. Instead, the contents of the file are displayed in the browser. I am sure that I have missed something simple!! Todd ?php $len = filesize(test.pdf); header(Content-type: application/pdf);

Re: [PHP] using a text file for variables in a form?

2002-01-24 Thread daniel
Alex- This is very basic PHP. I have some variables stored in plain text in a text file. Unfortunately I am not going to be able to use SQL to solve this one, since that server is not running it. Anyway. The text file looks like this (everything between the *): * SAVINGS=type1

[PHP] Re: XML / XSLT parsing using PHP

2002-01-24 Thread Peter Clarke
Lasse Laursen [EMAIL PROTECTED] wrote in message 02c301c1a4c4$42e03620$[EMAIL PROTECTED]">news:02c301c1a4c4$42e03620$[EMAIL PROTECTED]... Hi, We are about to develop a CMS that uses XML and XSLT. The XML files contains some static information (header, footers and common non-dynamic

Re: [PHP] How can the Surfer download

2002-01-24 Thread daniel
Todd- When I use the following code, I am not asked if I want to Save the file or Open it. Instead, the contents of the file are displayed in the browser. I am sure that I have missed something simple!! Todd ?php $len = filesize(test.pdf); header(Content-type: application/pdf);

Re: [PHP] How can the Surfer download

2002-01-24 Thread Jason Wong
On Friday 25 January 2002 01:35, Todd Cary wrote: Jason - I had looked it up in the manual, but I am not sure of what to put into the area /* ... output pdf file ... */ Any help is appreciated Todd If you want the user to be prompted to save the data you are sending, such

Re: [PHP] How can the Surfer download

2002-01-24 Thread Jason Wong
On Friday 25 January 2002 02:23, Jason Wong wrote: In general, if the file is on disk then simply using: header(Location: http://www.domain.com/downloads/myfile.exe;); would work. Whether the user is asked to Save or Open... depends on the browser setting. If you're using a webserver

Re: [PHP] How can the Surfer download

2002-01-24 Thread Jason Wong
On Friday 25 January 2002 02:16, daniel wrote: Todd- When I use the following code, I am not asked if I want to Save the file or Open it. Instead, the contents of the file are displayed in the browser. I am sure that I have missed something simple!! Todd ?php $len =

Re: [PHP] Split files

2002-01-24 Thread DL Neil
=Hmm, I'm still come at it from the other way around (all due respect to Jason) - but then I don't recall OpSys details, or know if there is a utility/tool for the job in your choice of OpSys. Well unless it's a *really* obscure OS I'm sure there must be some readily available file

Re: [PHP] multi-threading within php?

2002-01-24 Thread DL Neil
If the links are placed in a db as they are found, then couldn't you run the same script in multiple instances (browser windows, DOS boxes/command lines) against the same db. That way you would be fetching and parsing multiple web pages concurrently. The only 'multi-threading' would be against

Re: [PHP] PHP without browser

2002-01-24 Thread DL Neil
Hi Laurent, I would like to pass parameters to a php script running as a bach job under windows. Is there any possibility to something like that ? Coverage of argv, argc and some good examples are in the manual at http://uk2.php.net/manual/en/commandline.php Regards, =dn -- PHP

Re: [PHP] using a text file for variables in a form?

2002-01-24 Thread Alexis N. Mueller
Dan, Thanks for replying so fast.. I tried it out right away. The script part of it didn't seem to give me much grief, however the html part of it seems to be having issues with the combination of single quotes (') and double qouotes (), or maybe it's the order, or a linebreak in the email... i

Re: [PHP] How can the Surfer download

2002-01-24 Thread Todd Cary
Jason and Daniel - Maybe this is a cop out, however it is working. Comments welcomed.. html head ? print('meta http-equiv=refresh content=0; URL=docs/' . $filename . ''); ? titleSendfile/title /head ... -- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General

[PHP] Executing files?

2002-01-24 Thread Mårten Andersson
Hello. I want to execute a .waw-file with PHP, I's there any way to do this? I'm almost sure I've read how to do this somewhere in the documentation i PHP.net, but I can't find it now.. Does anyone know how to do this? -- Mårten Andersson

[PHP] MySQL queston - Which row does it put your info into?

2002-01-24 Thread Phil Schwarzmann
When Im adding rows into my MySQL database using PHP, it seems to put them in random places in the database. Sometimes at the beginning, sometimes at the end, sometimes in the middle of the database. Why is it doing this? Thanks for your help!!

RE: [PHP] MySQL queston - Which row does it put your info into?

2002-01-24 Thread Rick Emery
When records are deleted, the space they occupied are marked as vacant. New records are inserted into those locations. That said, since this is a relational database, it really doen't matter where the new records are inserted. If you want the nitty-gitty details of MYSQL or help, go to the the

Re: [PHP] MySQL queston - Which row does it put your info into?

2002-01-24 Thread Rasmus Lerdorf
That's how databases work. There is no implied ordering internally. An order is only applied if you add an order by clause on a select. -Rasmus On Thu, 24 Jan 2002, Phil Schwarzmann wrote: When Im adding rows into my MySQL database using PHP, it seems to put them in random places in the

Re: [PHP] How can the Surfer download

2002-01-24 Thread Jason Wong
On Friday 25 January 2002 03:06, Todd Cary wrote: Jason and Daniel - Maybe this is a cop out, however it is working. Comments welcomed.. html head ? print('meta http-equiv=refresh content=0; URL=docs/' . $filename . ''); ? titleSendfile/title /head ... Hmm, but

Re: [PHP] using a text file for variables in a form?

2002-01-24 Thread daniel
The script part of it didn't seem to give me much grief, however the html part of it seems to be having issues with the combination of single quotes (') and double qouotes (), or maybe it's the order, or a linebreak in the email... i don't know... ? print 'INPUT TYPE=TEXT NAME=savings

[PHP] Increment help..please

2002-01-24 Thread will hives
please help I'm a newb and this is really messing with my head. All I want to know is what do I need to add to this script to allow it to increment the ID number. pleasee. thank you very much for a simple boy Will ? $db_name = altone; $table_name = author; $connection =

Re: [PHP] Re: [Kopia] [PHP] Re: Sessions problem with FreeBSD 4.3

2002-01-24 Thread Erik Price
From my understanding, as long as you have a session_start() function above the html tag, you can work with variables in the form $_SESSION['variableName'] rather than having to use session_register(). In fact, using session_register() is no longer needed at all. Use

Re: [PHP] Need opinion On sessions - Cookies mandatory?

2002-01-24 Thread CompMan86
If there are two people behind a NAT, then the site would check for a session ID and the IP. If a session ID is introduced AND their IP matches the session, they are allowed to proceed. This would prevent people from moving a session ID to another machine. If two people are behind a NAT and share

Re: [PHP] Increment help..please

2002-01-24 Thread Tyler Longren
Why don't you just set auto_increment on the id field in the database table? Tyler - Original Message - From: will hives [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 1:43 PM Subject: [PHP] Increment help..please please help I'm a newb and this is really

Re: [PHP] Increment help..please

2002-01-24 Thread Jason Bell
In your database, make the ID column AUTO_INCREMENT, and then simply don't specify a value for it when you insert. - Original Message - From: will hives [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 24, 2002 11:43 AM Subject: [PHP] Increment help..please please help

Re: [PHP] Increment help..please

2002-01-24 Thread Dennis Moore
All you need to do is the set the field type for the id similar to : ID smallint not null primary key auto_increment you do not need to refer to ID in your insert statement. /dkm - Original Message - From: will hives [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 24,

Re: [PHP] Executing files?

2002-01-24 Thread Dennis Moore
All you need to do is the edit the php application type in your httpd.conf file if you want to apply globally or insert a .htaccess file in the directory you want to apply the change. AddType application/x-httpd-php .php .waw-file /dkm - Original Message - From: Mårten

Re: [PHP] Increment help..please

2002-01-24 Thread will hives
I did that with this script and it works fine, but the reason I am doing it is so I can then give the image which is uploaded the story ID. But for some reason I can't get it to work... here is the auto_increment script any ideas of how to add the ID to the image?? I would be very great ful

[PHP] session problem Warning: open(/tmp\sess_..., O_RDWR) failed: m (2)

2002-01-24 Thread Freddy
I am getting the folloing error whenever I try to open a session. Warning: open(/tmp\sess_0929ece4254c982def371c8f1ccd8164, O_RDWR) failed: m (2) It seems like a permissions issue to me but I do not know where to look for addressing the problem. I am using apache on win2k. Thanks, Frederic --

Re: [PHP] session problem Warning: open(/tmp\sess_..., O_RDWR) failed: m (2)

2002-01-24 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Freddy blurted I am getting the folloing error whenever I try to open a session. Warning: open(/tmp\sess_0929ece4254c982def371c8f1ccd8164, O_RDWR) failed: m (2) It seems like a permissions issue to me but I do not know where to

[PHP] Dual Pentium Pro 200 vs. Single Pentium II 450

2002-01-24 Thread Phil Schwarzmann
I have two PCs, one is a Dual Pentium Pro 200Mhz and the other is a Pentium II 450Mhz (both have 64MB) I want to set one of them up using Linux Red Hat 7.2, Apache, MySQL, and PHP. I only plan to have about 1-3 users accessing it at any one time. Which of those CPUs do you think is better?

[PHP] Re: Dual Pentium Pro 200 vs. Single Pentium II 450

2002-01-24 Thread Mike Frazer
For such a small userload it doesn't matter. I'm working on a day-to-day basis with a local ISP to help get everything running at tip-top shape and right now he's running his main hosting server on a single p200, his firewall on a p75 and his primary nameserver on a 486 100. No holdups in the

[PHP] directory structure list

2002-01-24 Thread sean
Hello, I need to print out a list of directories, which is a piece of cake, just do something out of the manual: ?php $handle = opendir('.'); while (false != ($file = readdir($handle))) { if ( ($file != .) ($file != ..) (is_dir ($file)) ) echo li$file/li\n; } closedir($handle); ?

  1   2   >