[PHP] rewind 5 lines

2004-05-17 Thread Martin Hjort Eriksen
I have a file where the pointer is set at EOF. Is it possible, in a very easy way, to rewind it 5 lines? Thereby being able to return the last 5 lines of the file with fgets. regards Martin Eriksen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: PEAR::DB is great but is sooooo SLOW !

2004-05-16 Thread Martin Hjort Eriksen
Remember, PEAR::DB also uses the standard functions, so I can't understand, why it should be much slower. Rainer You have to remeber that PEAR::DB is an object oriented abstraction over the standard functions, and within this abstraction, there is also built som error handling funtions, etc.

Re: [PHP] PHP /\ UML

2004-05-13 Thread Martin Hjort Eriksen
Matthias H. Risse wrote: thanks. i just dislike the idea of usingdesktop apps bound to a single gui. why the hell we need this in times of java/awt/swing, .net, xul and other funky technologies? any more ideas? /m A late reply, but I just discovered that Dia also supports PHP, or rather, a

Re: [PHP] PHP /\ UML

2004-05-10 Thread Martin Hjort Eriksen
Try Umbrello http://www.blinkenlights.de/arcade/index.en.html /Martin Eriksen Matthias H. Risse wrote: Hi, I wonder if anyone here is aware of UML Tools for PHP? I know of ArgoUML whichs PHP-codegenerator seems to be very beta. Maybe there are or are planned and well intergrated plugins for

Re: [PHP] PHP /\ UML

2004-05-10 Thread Martin Hjort Eriksen
This time with the correct URL http://uml.sourceforge.net /Martin Eriksen Martin Hjort Eriksen wrote: Try Umbrello http://www.blinkenlights.de/arcade/index.en.html /Martin Eriksen Matthias H. Risse wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] PHP 5 Documentation

2004-05-10 Thread Martin Hjort Eriksen
Fidencio Monroy wrote: Does PHP 5 documentation exist? I have not found it in php.net. can someone send link please? Tnx http://www.zend.com/php5/zend-engine2.php /Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem when compiling php5

2004-04-24 Thread Martin Hjort Eriksen
Hello I am having a major prolem when compiling PHP5the problem is new, and I have never had it before. I have tried compiling on to seperate dists og Linux, Debian testing and Slackware 9.0, but the error persistes. The output I recieve is: /usr/local/include/unix.h:222: error: parse

[PHP] Problems with upload

2004-03-08 Thread Martin Hjort Eriksen
I am running a fullt upgraded Debain testing system, and I have a smaller problem with uploading files. I use my installation to develop PHP applications, and a part of this making file upload scripts. A have a basic form, in which i can upload a file, the header information gets passed fine

Re: [PHP] Problems with upload

2004-03-08 Thread Martin Hjort Eriksen
Jason Wong wrote: On Monday 08 March 2004 23:35, Martin Hjort Eriksen wrote: I am running a fullt upgraded Debain testing system, and I have a smaller problem with uploading files. Does the example in the manual work for you? If it does, what does the php error log say when you run *your

Re: [PHP] Problems with upload

2004-03-08 Thread Martin Hjort Eriksen
The standard settings for upload: ; File Uploads ; ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). upload_tmp_dir = /tmp ; Maximum allowed size for uploaded

[PHP] strpos

2004-01-21 Thread Martin Hjort Eriksen
Hello everybody I am currently working on an rtf to html converter, and for this i need a function that can find a specific control word in the file. Because of the sheer number control words in the rtf standard, I have to be shure that I have the control word, by examining the trailing

Re: [PHP] strpos

2004-01-21 Thread Martin Hjort Eriksen
Thank You very much. and I think I will go to bed now /Martin Mike Migurski wrote: When I use the function bellow, and there is no occournce of the control word, strpos shoul return false, but instead i returns 1, which is not the intention. Does anybody here have an idea about what I

Re: [PHP] Login variable is empty but password is OK. Why? (newbie question)

2004-01-21 Thread Martin Hjort Eriksen
Flavio wrote: My code is simply to login. I have two files: login.html (form) and login.php to validate. I donĀ“t understand why php capture only password )I call it senha) and take a blank username (I call it nome). Any idea? #Code - login.html form method=POST action=login.php ... input

Re: [PHP] Odd Code Error.

2004-01-21 Thread Martin Hjort Eriksen
I agree with Chris... In contrast you can also see a common problem in many of the downloadable scripts from different collections on the net, like hotscripts.com, where the programmers start building control structures whitout having the different variables they use set. For instance

Re: [PHP] Odd Code Error.

2004-01-21 Thread Martin Hjort Eriksen
[EMAIL PROTECTED] wrote: So do you recommend using isset($name) instead of ($name) ? And what are you meaning by setting the var as in var $name ? i usually set them in classes but how about in normal scripts and functions ? Yes, if you want to examine if a variable is set or not, then you

Re: [PHP] Odd Code Error.

2004-01-21 Thread Martin Hjort Eriksen
[EMAIL PROTECTED] wrote: Exactly how a variable should be set, well it could be for instance var $age:int; Where on the php site does it tell you to set it like that ? I've never seent that before ? It is also because you cannot do it... :) It was an idea on how it could be done,

Re: [PHP] Odd Code Error.

2004-01-21 Thread Martin Hjort Eriksen
[EMAIL PROTECTED] wrote: I dont understand, i assume that would check if name was set, i also set functions like function foo($name,$bar = null) { } so therefore bar doesnt need to be inputted, seeing as i set it to null would i check if $bar===true ? or just isset($bar ) ? when you have set