[PHP] Opening and Editing Quark Binaries

2002-07-14 Thread Simon Troup
I've been trying to open and end some of the ascii portions of Quark Express binary files, (I'm using PHP4 on MacOSX, the quark files are OS9 files). Even if I make the simplest eregi_replace () having done ... $fd = fopen ($file, rb+); $contents = fread ($fd, filesize ($file)); fclose ($fd);

[PHP] help with session_decode in PHP 4.20 (fairly urgent)

2002-07-05 Thread Simon Troup
My web host has just upgraded to PHP 4.20. My MySQL database is full of session_encoded fields, but since the upgrade I can no longer session_decode them. After doing phpinfo I find the following settings ... register_argc_argvon on register_globals on on I've been

[PHP] .htpasswd

2002-07-02 Thread Simon Troup
Does anyone know what encryption is used on passwords in a .htpasswd file? Zim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP 4.2

2002-06-23 Thread Simon Troup
I've written a small freeware script that gets installed on a variety of different platforms running various PHP versions. I've read through the manual about the super global arrays and how post and get vars are no longer registered by default, but am confused about when it would be a good idea

Re: [PHP] 'Pure' php vs 'mixed' (html + php)

2002-06-02 Thread Simon Troup
I would ask the question How much HTML before you break out of PHP and into HTML. My answer is any. Surely you're making the engine work just to echo stuff out? But are you asking for more by making it jump in and out between all those tags?! Short tags ... td bgcolor=?=$td_col?

[PHP] Form content type missing, how to fetch variables?

2002-05-31 Thread Simon Troup
How do you fetch posted form variables from a request that does not have content type in the headers? I mean, instead of having Content-Type: x-www-form-urlencoded or something similar, there is nothing - just the raw data. How can I parse that? Regards SImon -- PHP General Mailing List

Re: [PHP] Form content type missing, how to fetch variables?

2002-05-31 Thread Simon Troup
Thanks Dan, but I don't think I'm explaining well. Submitting that form will produce, from most browsers, a request that has in one of it's headers: content-type: x-www-form-urlencoded ... the variable $Foo will automatically be available within PHP for use in any script that form is directed

Re: [PHP] Form content type missing, how to fetch variables?

2002-05-31 Thread Simon Troup
... -Original Message- From: Simon Troup [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 8:23 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Form content type missing, how to fetch variables? Thanks Dan, but I don't think I'm explaining well. Submitting that form will produce, from most

[PHP] How info is passed to $vars

2002-05-29 Thread Simon Troup
I know that if you call a page like this ... http://www.domain.com/index.php?thisvar=1thatvar=2 ... that you get $thisvar and $thatvar to use in your script, but exactly what conditions are necessary for a POST and GET to be passed as variables into the PHP engine. I presume that there is a