Re: [PHP] Strings Question

2001-12-24 Thread Matt McClanahan
On Mon, Dec 24, 2001 at 01:48:38PM -0800, Phillip B. Bruce wrote: > I want to take something like the following: > > $row = 1; > $ column = 1; > > if ( $pages = "r$row$column") > >What I want to see is r1c1 as a string so I'm actually > concatenating the strings togethe

Re: [PHP] PHP as a web browser?

2001-12-17 Thread Matt McClanahan
On Sun, Dec 16, 2001 at 11:48:38PM -0800, David Yee wrote: > Is it possible to have PHP act like a web browser, accept cookies and > post data (for login)? I'm not sure exactly where to start- I know > you can use fopen/file to retrieve url's but I'm not too sure about > the other steps. I woul

Re: [PHP] XHTML compatible error messages

2001-12-05 Thread Matt McClanahan
On Fri, Aug 17, 2001 at 05:40:07PM +0200, Jan wrote: > Hi out there! > > I have got a problem with PHP's standard way of reporting errors. The > in the error messages are making the XML invalid (should be > ). Is there an easy way to do this? This was done in CVS a few months ago. It should b

Re: [PHP] Getting the filesize of an image?

2001-12-01 Thread Matt McClanahan
On Sat, Dec 01, 2001 at 11:05:51PM +0200, faeton wrote: > Hello Matt, > > Of course it does not, but as i've already said file() with strlen() > can be used. :) > > MM> If you want the size of a remote file, you'll have to download it; HTTP > MM> doesn't provide a way to query a remote file's s

Re: [PHP] Getting the filesize of an image?

2001-12-01 Thread Matt McClanahan
On Sat, Dec 01, 2001 at 09:55:47AM +0200, faeton wrote: > Hello Matt, > > filesize() works only on local filesystems. If you want the size of a remote file, you'll have to download it; HTTP doesn't provide a way to query a remote file's size. FTP does, if you have FTP access. Matt -- PHP Ge

Re: [PHP] Getting the filesize of an image?

2001-11-30 Thread Matt McClanahan
On Fri, Nov 30, 2001 at 07:04:08PM -0500, Uchendu Nwachukwu wrote: > Is there any easy way to get the filesize of an image on a remote server? > > Please tell me there is! TIA It scares me that nobody has answered with filesize() yet. Matt -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Don't tell me this isn't possible (object related question)

2001-11-30 Thread Matt McClanahan
On Sat, Dec 01, 2001 at 12:15:37AM +0100, Jeroen Olthof wrote: > let's say I have made some objects > $content = new Content(); > > and in object content a new object is created > $person = new Person("Jeroen"); > > Person holds a var age > > Now I want to do something like this in a normal PH

Re: [PHP] switch() for links like ?id=index problem

2001-11-16 Thread Matt McClanahan
On Fri, Nov 16, 2001 at 06:22:19AM -0600, Ann Jamison wrote: > my code looks something like this: > > switch($id) { > case "home": include("home.php"); > break; > } > so links can be something like www.url.com?id=home > I have also tried to use require instead of include > > When the desitred l

Re: [PHP] url extracting

2001-11-12 Thread Matt McClanahan
On Mon, Nov 12, 2001 at 04:42:08PM -, Caspar Kennerdale wrote: > I am yrying to read free urls from a moreover.com to a director app which > will be a news reader without a browser > > 'm using php top extrat the headlines > > each headline looks similar to this > > ("http://c.moreover.com

Re: [PHP] Save to Desktop

2001-11-12 Thread Matt McClanahan
On Mon, Nov 12, 2001 at 11:14:04AM +0530, Sharat Hegde wrote: > Hello, > > I need to capture the contents of a Form into a text file format and > automatically allow the user to Save the file to his desktop. > > Here is what I am intending to do: > * Capture the form contents and save to a temp

Re: [PHP] PHP Usage Stats

2001-11-09 Thread Matt McClanahan
On Fri, Nov 09, 2001 at 10:11:50AM -0800, Chris wrote: > Are there any refrences that would indicate the percent of sites (PHP > installs) using various versions of PHP (i.e., 60% PHP4, 30% PHP3, > etc.)? See the top of http://php.net which refers to usage stats provided by Netcraft and Security

Re: [PHP] why cant I: array_keys($arr)[0] ?

2001-11-04 Thread Matt McClanahan
On Sun, Nov 04, 2001 at 12:54:54AM -0700, [EMAIL PROTECTED] wrote: > Why does PHP give a parse error if you do: > > echo array_keys($arr)[0]; > > It makes you assign the result of the function to a var first like this: > > $arr = array_keys($arr); > echo $arr[0]; > > I just

Re: [PHP] Displaying images in another page

2001-10-25 Thread Matt McClanahan
On Thu, Oct 25, 2001 at 10:30:24PM +0200, Rudi Ahlers wrote: > I would like to setup a banned ad server, and I will need the images > to be displayed in standard html pages, where the users don't have > php access. Thus, they should be able to call up the image from a > normal html page, ie: src

Re: [PHP] sorting an array of objects

2001-10-24 Thread Matt McClanahan
On Wed, Oct 24, 2001 at 10:43:53AM +0100, L Melville wrote: > Is it possible to sort a class array using array multisort, I have two items > in each class that I wish to sort by, one is a text and the other is the > first item in an array within within each class. i.e.;- > > $class[$index]->text

Re: [PHP] Why I wish PHP had Python's exception handling....

2001-10-21 Thread Matt McClanahan
On Mon, Oct 22, 2001 at 02:57:44PM +1000, Brian White wrote: Preface to these ramblings: Exception handling is planned for the next version of the Zend engine. For details, see http://www.zend.com/zend/future.php > The nasty thing then comes in that if any task fails, I have to stop. So I > cr

Re: [PHP] php / apache

2001-06-30 Thread Matt McClanahan
On Fri, Jun 29, 2001 at 03:54:13PM +, Pétur Björn Thorsteinsson wrote: > can anyone tell me how to configure a php script so that it can only be > accessed by other scripts and not directly by typing its url in the > webrowser? Just move the script outside the web root. Browsers can't direc

Re: [PHP] Output an image stream?

2001-06-23 Thread Matt McClanahan
On Sat, Jun 23, 2001 at 04:50:48PM -0700, Todd Cary wrote: > I have created a barcode as an image stream ($im). Now, I want to > output it in HTML to a particular row and column on a form. Do I have > to save it as a file so that I can use the routine or is > there a way to directly output the

Re: [PHP] OT PHP Manuals

2001-05-22 Thread Matt McClanahan
On Wed, May 23, 2001 at 10:37:06AM +0930, Joseph Blythe wrote: > Hey all, > > Just was wondering if anyone knew what was used to make the php manuals > in the windows help format (.chm), I really like them :-) The manual is availabe in chm in several languages. http://www.php.net/docs.php Ma

Re: [PHP] dynamically naming arrays

2001-05-17 Thread Matt McClanahan
On Thu, May 17, 2001 at 01:27:52PM -0400, Matthew Luchak wrote: > any hints on dynamically naming arrays? > > ie: > > $stuff= explode ("!", $contents); > > //$stuff[3] is "foo" > > $stuff[3]=explode("&",$stuff[4]); ${$stuff[3]} = '...'; http://www.php.net/manual/en/language.variables.variab

Re: [PHP] IMLIB

2001-04-25 Thread Matt McClanahan
On Wed, Apr 25, 2001 at 03:34:18PM -0400, Charles wrote: > Hello, > > Somebody know how to make IMLIB library compile into php ? > i tried --with, --enable, but doesn't work ! Check to see that it actually got added to the source properly with: ./configure --help|grep imlib If it isn't there,

Re: [PHP] Functions.

2001-04-24 Thread Matt McClanahan
On Tue, Apr 24, 2001 at 03:06:40PM +0200, Anders Clerwall wrote: > Hi, > Is there a tutorial of some sort on how I add function sets to PHP4? > I've searched the net for more info about this other than what the PHP4.x > manual says, and I saw some reference to freshmeat, but I couldn't find > tha

Re: [PHP] Graphic process within PHP

2001-04-18 Thread Matt McClanahan
On Wed, Apr 18, 2001 at 02:37:00PM -, SED wrote: > Hi, > > Recently I noticed e-mails on this list about Imlib2 and GD2 extensions > which I was not aware of. So I started to wander if there are more > extensions working with PHP which allows graphic process (the only one I > knew was GD). I

Re: [PHP] Do any of you provide hosting?

2001-04-12 Thread Matt McClanahan
On Thu, Apr 12, 2001 at 10:34:26AM -0400, Chris Anderson wrote: > Someone who can host my domain (I own the domain already) > Can provide MySQL and PHP. Both up-to-date. > Can give around 60 meg of space (ballpark, less should be fine) > Also a way to set up subdomains without needing to go throu

Re: [PHP] Creating Arrays

2001-04-11 Thread Matt McClanahan
On Wed, Apr 11, 2001 at 03:55:38PM -0600, Ashley M. Kirchner wrote: > "Rodney J. Woodruff" wrote: > > > http://www.php.net/manual/en/function.msql-fetch-array.php (snip) > I need that result into the following: > $items = array(0 => "Undefined", 1 => "Work", 2 => "Personal"); Here's a

Re: [PHP] submitting to a remote form

2001-04-07 Thread Matt McClanahan
On Sun, Apr 08, 2001 at 12:31:35AM -0500, Joseph Bannon wrote: > > You can use fopen/fread to open the script remotely. > > > > Just append the query string onto the url something like this: > > > > www.example.com/example.php?var1=var > > > > ...and example.php will have $var1 with the value

Re: [PHP] How can I make this smaller

2001-04-05 Thread Matt McClanahan
On Thu, Apr 05, 2001 at 01:40:54PM -0700, Richard Kurth wrote: > Is there another way to write this I would like to make it smaller > also How would I write it so it is a function and I would be able to use all > the data throughout the whole program every time I try the rest of the > program do

Re: [PHP] phpinfo unneeded

2001-03-30 Thread Matt McClanahan
On Fri, Mar 30, 2001 at 04:32:40PM +0700, juang wrote: > HI all, > how to compile php without function phpinfo enalbe. so if user call > phpinfo() it would be false/error. i would like to build a free web > server with php but i don't like if the user know what are the tools > in my server 'cous

Re: [PHP] FTP without FTP module

2001-03-28 Thread Matt McClanahan
On Wed, Mar 28, 2001 at 12:30:06PM +0200, Mauro Biraghi wrote: > How can I do FTP without FTP module? > Thanks. You can open files over FTP with the fopen wrappers, however this will only work for connecting to FTP servers that support passive mode. http://www.php.net/manual/en/function.fopen.p

Re: [PHP] $myfile[$count]_type?!

2001-03-27 Thread Matt McClanahan
On Tue, Mar 27, 2001 at 09:56:01PM +0200, FredrikAT wrote: > Why can't I do $myfile[$count]_type?! > What schould I do instead? ${$myfile[$count] . '_type'} There are some examples in the user comments in this manual page: http://www.php.net/manual/en/language.variables.variable.php Matt --

Re: [PHP] PAM authentification

2001-03-22 Thread Matt McClanahan
On Thu, Mar 22, 2001 at 10:37:41AM +0100, Daniel Svensson, Coretrek wrote: > Hi there! > > I wonder if there is someone out there who can help me out with some > advices regarding authentification with PAM (Pluggable Authentication > Modules) > using PHP. Try php_pam. http://freshmeat.net/proj

Re: [PHP] OOP question regarding class extension

2001-03-19 Thread Matt McClanahan
On Mon, Mar 19, 2001 at 01:58:39PM -0500, Altunergil, Oktay wrote: > As far as I know a class can extend multiple classes. What you can't do -in > PHP- is two create a class that inherits from multiple parent classes > (multiple inheritence). I believe this is available in C++ and Java and > othe

Re: [PHP] parsing html / xml (more)

2001-03-07 Thread Matt McClanahan
On Wed, Mar 07, 2001 at 10:07:37AM -0700, Nathaniel Hekman wrote: > Here's another case that shows up often in html, but is illegal in xml, that > I would need to parse: meta tags, tags, tags, and other > "singletons". > > > > > > xml_parse would give an error, because t

Re: [PHP] image orientation?

2001-02-22 Thread Matt McClanahan
On Wed, Feb 21, 2001 at 05:48:50PM -0500, Jaxon wrote: > Is there any way to take an image from the filesystem, say a .jpg or .png, > and display it in a different orientation? e.g. 20 degrees to the right? Yes, php_imlib can do image rotations. http://mmcc.cx/php_imlib/ http://mmcc.cx/php_iml

Re: [PHP] I am looking for an image library that can do blurs

2001-02-21 Thread Matt McClanahan
On Tue, Feb 20, 2001 at 04:10:08PM -0800, Brandon Orther wrote: > I am looking for an Image Library that can blur text. Does anyone know of > an image library that can work with php to make blured text? It's not a very versatile (Can't define the extent to which a blur is done), but php_imlib

Re: [PHP] returning multiple variables from a function?

2001-02-12 Thread Matt McClanahan
On Mon, Feb 12, 2001 at 09:13:09PM -, James, Yz wrote: > What if I wanted to "return" more than one variable from the function? And > how would I assign it a name? Like the actual variable, or is that just not > possible? > > I've tried > return $var1,$var2; You're on the right track. re

Re: [PHP] imagecolorallocate / imagesetpixel / palette size?

2001-02-12 Thread Matt McClanahan
On Sun, Feb 11, 2001 at 01:40:11AM -0700, Dan Harrington wrote: (snip) > Its like the "palette" only holds 256 pixels or something, what's > the deal with that? > > Anyone experienced this before? I've looked through the GD library > documentation > at boutell.com, i've looked through php.net,

Re: [PHP] To The Hacker: CodeBoy

2001-02-11 Thread Matt McClanahan
On Sun, Feb 11, 2001 at 03:51:33PM -0800, rswfire wrote: > I am not a hacker. I do not try to hack and > don't know how people go about doing it. I'm a > programmer. To me, those two are very different. > A programmer is constructive. A programmer > likes to take a problem and turn it into a

Re: [PHP] Parsing XML the Sequel :)

2001-02-10 Thread Matt McClanahan
On Sat, Feb 10, 2001 at 07:37:32PM +0100, Steve Haemelinck wrote: > The page I want to parse is: > > http://213.224.136.110:8080/test.xml > > And this is my code: > > > //Define Opening Tags of XML > $open_tags = array( > 'STORY' => '', > 'STOCK_NAME' => '', > 'LAST_SALE' => '', > 'PREVIOUS_

Re: [PHP] A php-xml mailing list?

2001-02-09 Thread Matt McClanahan
On Fri, Feb 09, 2001 at 05:37:04PM -0700, Michael Dearman wrote: > I think it would be helpful. > What do you folks think? You'd think it would be a popular thing, but the one O'Reilly hosts is more or less silent. http://www.oreillynet.com/pub/a/php/php-xml-ml.html Matt -- PHP General Maili

Re: [PHP] shows up in IE but not Netscape

2001-02-09 Thread Matt McClanahan
On Fri, Feb 09, 2001 at 10:09:02AM -0700, Erik Boles wrote: > We are running a webform, that asks for user ID and pass, then passes it on > to a .php3 file that shows them a page to continue (not a security thing, > just a tracking thing). > > This .php3 file, called login.php3 works just fine i

Re: [PHP] To The Hacker: CodeBoy

2001-02-08 Thread Matt McClanahan
On Thu, Feb 08, 2001 at 03:19:52PM -0800, rswfire wrote: > Whatever, James. > > The hackers name is Jonathan Sharp. He is a > regular member of this mailing list. I do > believe that people here would like to know they > have a hacker on their hands, don't you think? http://www.tuxedo.org/~e

Re: [PHP] png files loosing color depth

2001-01-23 Thread Matt McClanahan
On Tue, 23 Jan 2001, Liam Hoekenga wrote: > Hey - > > I'm using PHP 4.0.4pl1 w/ Apache 1.3.14 on Solaris 2.6. > PHP was compiled with GD (1.8.3), jpeg (6b), png (1.0.8), and freetype > (1.3.1) > > I'm trying to overlay text on a existing png graphic, which works, but the > color depth seems to

Re: [PHP] <- functions returning multiple values: ->

2001-01-22 Thread Matt McClanahan
On Mon, 22 Jan 2001, Abe Asghar wrote: > Hey there, > > is there a way that you can get a function to return multiple values. e.g.: > {and also how to access them} > > function VarTest() { > > return $var = 10; > > return $var2 = 20; > } Functions can only return one variable. However, yo

Re: [PHP] Classes question.

2001-01-19 Thread Matt McClanahan
On Fri, 19 Jan 2001, James McLaughlin wrote: > I get an error when doing this > > class Something > { > var $something; > > function Something($this->something) > { > More somethings > } > > } > > The error tells me that I need a ")" in the line the function call i

Re: [PHP] multidemention array question(s)

2001-01-19 Thread Matt McClanahan
On Fri, 19 Jan 2001, Michael Zornek wrote: > ok so i set up a multidimensional array with the following code: > > // departments.inc > // > // This file defines the switches. All the forms, and return displays are > // based on this table (multidimential array). The first index is the > switch

Re: [PHP] Re: XML, what is that supposed to do?

2001-01-16 Thread Matt McClanahan
On Tue, 16 Jan 2001, Alex Black wrote: > for example, a DTD for that bookmark example above is unly useful if a bunch > of people agree on it as a standard, otherwise it doesn't do any real good. And to cite an example for this example, I'll point out XBEL, because as bookmark DTD goes, I think

Re: [PHP] graphic problem...

2001-01-13 Thread Matt McClanahan
Georg, If you're running Apache/Unix, php_imlib would allow you to manipulate png's with more than 256 colors. http://mmcc.cx/php_imlib/ Matt On Sat, 13 Jan 2001, Johan Holst Nielsen wrote: > GD library only support PNG 256 color your PNG have more colors! > > With Best Regards > > Joha

Re: [PHP] Refreshing Window

2001-01-13 Thread Matt McClanahan
On Sat, 13 Jan 2001, Mark Lo wrote: > Hi, > > I would like to know the method to refresh one window when closing > another windows. That'd be a Javascript thing. onClose one window, refresh the other. Matt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

Re: [PHP] Re-engineering print()

2001-01-10 Thread Matt McClanahan
On Wed, 10 Jan 2001, Kristofer Widholm wrote: > Basically, I'm wondering if there is a way to redirect print and echo > output from PHP to a variable instead of directly to a browser or > file stream. What I'm trying to do is create code that can generate > an HTML page to a variable that I ca

[PHP] Announce: php_imlib 0.3: PHP Imlib2 extension

2001-01-10 Thread Matt McClanahan
I'm pleased to announce the third public release of php_imlib, an extension for PHP 4 that makes the Imlib2 image manipulation library available from within PHP scripts. New in this release is support for color ranges (gradients), blurring and sharpening of images, and quality/compression setting