Re: [PHP] Timestamps operations
Erm.. date1 - date2 = seconds (date1 - date2)/60 = mins (((date1 -date2)/60)/60)/24 = days Nick. On Fri, 24 Aug 2001, Alberto wrote: I have 2 timestamps like mktime(0,0,0,10,10,2001) and mktime(0,0,0,9,9,2001), I want to know how many days are from timestamp1 to timestamp2 or how many hours, or how many seconds, thnx -- 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]
Re: [PHP] redirect
Guys this stuff is all in the manual. :) header (Location: url); On Fri, 24 Aug 2001, Wilbert Enserink wrote: Hi all, I have the simplest question maybe, but I can't seem to find the answer. It's friday. Anybody knows how I can redirect to another url? greetings Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl [EMAIL PROTECTED] - -- 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]
Re: [PHP] \n
In html? If it is then you should be using BR. An \n will just put a newline in your source code. Nick. On Fri, 24 Aug 2001, Jeremy Morano wrote: Sorry to bother you with what probably seems like a useless question but why is this not skipping a line? echo $team \n ; Its in a while loop and the output is: Bears Giants Jets etc -- 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]
Re: [PHP] Fwd: functions returning arrays
On Fri, 24 Aug 2001, Frank Loewenthal wrote: Hi Perhaps I am confused, but is it not possible to return arrays in PHP? Example: function getArray() { $ret = array('hallo','you'); return $ret; } $r = getArray(); for( $i=0;$i count($r); $i++) echo $r[i]; Do we assume echo $r[$i]?? Or is that your mistake ;) Does not work! The array shows 2 Elements, but they are emty Hm... Where is do mistake? Regards Frank -- SFI Technology Services AG Dr. F. Loewenthal Stettbachstrasse 10 CH-8600 Dübendorf Switzerland [EMAIL PROTECTED] www.sfi.ch +41/1-824 49 00 --- -- 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]
Re: [PHP] Shell version of php
Just compile it without the apache stuff on configure. Then you should have a working php executable in /usr/bin/. All you need to do then is php script.php or put the #!/usr/bin/php at the head of your scripts. (/usr/bin/php -q removes the http headers) Nick. On Thu, 23 Aug 2001, Tom Carter wrote: Hi guys, This arose trying to install php-egg, altho thats not what this msg is really about. For it to run I need to have a shell version running... what exactly is this and how do I go about installing it? I have php installed (I think) as a module.. and by my understanding this is necessary for certain functions to run can I have both co-existing? I guess what I want is a copy of php running completely separate to apache, ie as a standalone app. any help much appreciated!!! Tom Carter -- 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]
Re: [PHP] RE: Multi-dimensional array issue
-- From: Ken Hopkins [SMTP:[EMAIL PROTECTED]] Sent: 20 August 2001 21:02 To: [EMAIL PROTECTED] Subject: Multi-dimensional array issue Hi from a recent PHP convert, Having a heck of a time declaring and accessing 2 dimensional info in an array. any input on where to start looking for the answer would be greatly appreciated. I want to have a base array of 5 elements. The first 4 elements are variables, and the fifth is an array of 2 elements. seemed harmless enough at the time;) Coding conventions suggest access to the first level of elements is: $basearray[base_numerical_offset][$basearray_variable] and this works great for accessing the first 4 elements of the base array. The first level of element will be $basearray[$key] = $value $basearray[$key2] = $value $basearray[$key3] = $value $basearray[$key4] = $value the extra array $basearray[$key5][$extraarraykey1] = $value $basearray[$key5][$extraarraykey2] = $value Accessing the fifth elements' variables in the next dimension is where it fails for me: $basearray[base_numerical_offset][$subarray][sub_numerical_offset][$subarray _variable] The documentation/snippets/samples, etc. have been to no avail; still can't get to elements in the second dimension properly. Attempts to populate the second level array trahses the entire structure. I have the following declaration: $out = array($name, $srch, $sel, $case, $qvalues = array($vals, $valtypes); $out is the name of the base array $qvalues is the name of the sub-array under the base array $out I need for each $out array to consist of a name, srch, sel, case and then a variable number of qvalues array elements that each have single vals and valtypes elements. Use the following snippet to see what happens; it's not what I had hoped to see. I hope I'm just doing something wrong.. Thanks, Ken. mailto:[EMAIL PROTECTED] ? $out = array($name, $srch, $sel, $case, $qvalues = array($vals, $valtypes)); echo pre; $out[0][$name] = free; $out[1][$name] = next; for ($i=0; $i2; $i++) { echo br OutIndex: , $i, Name: , $out[$i][$name]; } $out[0][$srch] = outfreesrch; $out[0][$sel] = outfreesel; $out[0][$case] = outfreecase; $out[0][$qvalues][0][$vals] = outfreeqval0; $out[0][$qvalues][0][$valtypes] = outfreeqtype0; $out[0][$qvalues][1][$vals] = outfreeqval1; $out[0][$qvalues][1][$valtypes] = outfreeqtype1; echo brBasearray index : , 0, \n; echo br name : , $out[0][$name], \n; echo br srch : , $out[0][$srch], \n; echo br sel : , $out[0][$sel], \n; echo br case : , $out[0][$case], \n; echo br Subarray index : 0 \n; echo br vals : , $out[0][$qvalues][0][$vals], \n; echo br valtypes : , $out[0][$qvalues][0][$valtypes], \n; echo br Subarray index : 1 \n; echo br vals : , $out[0][$qvalues][1][$vals], \n; echo br valtypes : , $out[0][$qvalues][2][$valtypes], \n; echobrbr; $out[1][$srch] = outnextsrch; $out[1][$sel] = outnextsel; $out[1][$case] = outnextcase; $out[1][$qvalues][0][$vals] = outnextqval0; $out[1][$qvalues][0][$valtypes] = outnextqtype0; $out[1][$qvalues][1][$vals] = outnextqval1; $out[1][$qvalues][1][$valtypes] = outnextqtype1; echo brBasearray index : , 1, \n; echo br name : , $out[1][$name], \n; echo br srch : , $out[1][$srch], \n; echo br sel : , $out[1][$sel], \n; echo br case : , $out[1][$case], \n; echo br Subarray index : 0 \n; echo br vals : , $out[1][$qvalues][0][$vals], \n; echo br valtypes : , $out[1][$qvalues][0][$valtypes], \n; echo br Subarray index : 1 \n; echo br vals : , $out[1][$qvalues][1][$vals], \n; echo br valtypes : , $out[1][$qvalues][1][$valtypes], \n; echo /pre; ? -- 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]
Re: [PHP] Linux
./file.bin :) On Tue, 21 Aug 2001, Roman wrote: Off topic question: How I create install file in red hat linux from bin file. example: in /home/name i have file file.bin and I want create install from this file roman -- 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]
[PHP] php executable
Is it possible to surpress the X-Powered-By: PHP/4.0.6 Content-type: text/html text when running php from the commandline? Thanks. Nick. -- 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]
Re: [PHP] new IDE for PHP
Is there a alpha/beta of this available now :) On Fri, 17 Aug 2001, Sandy Meier wrote: Hi! At the moment I am writing the PHP support for KDevelop3.0 (http://www.kdevelop.org). The IDE ist modular and it is very easy to write plugins, so it is possible to implement support for all languages, make tools, GUI builders and so on. Actually there are plugins for C/C++, Java, Python, Perl and PHP. The complete program ist opensource and was developed by some people in their sparetime. At the moment there are following features in the PHP mode. -modern editor with syntaxhighlighting (other editors are partly supported, for instance Nedit) -class and function parser including different views (treeview, graphical view) -intelligent Code Completion and argument help -executing php scripts with shell or webserver (no finished yet) -debugingtool for POSIX regular expressions -project generation (application wizard) and projectmanagment -documentation browser for the php documentation -nice grep frontend -classtools (generate new class..) and so on. Please look at a current screenshot to get a preview: ftp://fara.cs.uni-potsdam.de/stud/smeier/shot1.png Following features are planed -debugger and profiler support (http:((dd.cron.ru/dbg) -support for PHPDOC and similar tools -support for phpgtk (generation of framework...) -better support for HTML (table generation, tags ...) -code assistent (generate small codeparts from template) and so on. OK, now to the intentation of my email :-) At the moment I'm the only one who implement the PHP support, so maybe someone want to help? It is more fun and we will get faster a first release.:-) The IDE is written in C++, but the plugins can written in Java too, if someone want to do this. If you have some ideas or want to help please contact me. Thanks! Ciao! Sandy -- ICQ: 27681958 for sending encryted emails please use: ftp://fara.cs.uni-potsdam.de/stud/smeier/public_key -- 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]
Re: [PHP] $HTTP_REFERER
like if ($HTTP_REFERER == certain host) { do finalise code } On Fri, 17 Aug 2001, Erich Zigler wrote: I am working on the last half of an Online Signup page for an ISP. There is a local .php page on the webserver that actually finalizes the addition of the user, but ONLY if $HTTP_REFERER is from a certain host. I was wondering what you guys think of doing it this way? Any advice would be appreciated. Thank you. -- 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]
Re: [PHP] $HTTP_REFERER
Sorry missed a bit you'll just need to ereg out the hostname from HTTP_REFERER - take everything after http:// and before /... Nick. On Fri, 17 Aug 2001, Erich Zigler wrote: I am working on the last half of an Online Signup page for an ISP. There is a local .php page on the webserver that actually finalizes the addition of the user, but ONLY if $HTTP_REFERER is from a certain host. I was wondering what you guys think of doing it this way? Any advice would be appreciated. Thank you. -- 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]
Re: [PHP] $HTTP_REFERER
Probably best to read stuff first ;) try preg_match preg_match(/^(http:\/\/)?([\/]+)/i, $HTTP_REFERER, $hostname); the hostname will be in $hostname[2] Hope it helps. On Fri, 17 Aug 2001, Nick Davies wrote: Sorry missed a bit you'll just need to ereg out the hostname from HTTP_REFERER - take everything after http:// and before /... Nick. On Fri, 17 Aug 2001, Erich Zigler wrote: I am working on the last half of an Online Signup page for an ISP. There is a local .php page on the webserver that actually finalizes the addition of the user, but ONLY if $HTTP_REFERER is from a certain host. I was wondering what you guys think of doing it this way? Any advice would be appreciated. Thank you. -- 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]
[PHP] weird array behaviour
I have a function which returns a mulit-dimensional array, but the array which is returned doesn't work for some reason :/ If i print the array within the function using while (list($key) = each($myArray)) { while (list($key2, $value2) = each($myArray[$key])) { print $key . : . $key . : . $value; } } it works fine but doing the same thing after the array has been returned jus yields -- Warning: Variable passed to each() is not an array or object in ... refering to $myArray[$key]; even though if i print $myArray[$key] it tells me that it's an Array :/ Thanks. Nick. -- 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]
[PHP] Copy Array.
Anyone know how to copy an array to another name? I'm assumming that $array1 = $array2; doesn't work (at least it doesn't seem too :( ). Thanks. Nick. -- 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]
Re: [PHP] get a screen resolution
I think you have to do it with javascript (being client side). But thats all i know. ;) On Fri, 6 Jul 2001, Marc van Duivenvoorde wrote: I'm trying to make a small browser and screen resolution script for my site, the browser part isn't a problem, but I can't find a function for screen resolutions, does anyone know whether such a function exists. Thanks, Marc van Duivenvoorde -- 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]
RE: [PHP] optimal code
surely the include function only pastes the contents of the included file into the point where the include statement occours. Php still has to parse it all. On Thu, 5 Jul 2001, Richard Heyes wrote: If you are talking about speed, opening a file is expensive because it is a kernel call, a directory search and all that. Your some big code in-line will beat it every time... Not in my experience. I have a file which defines ~40 functions, with the bodies included when the function is called. Eg: function blah(){ return include('includes/func.blah.inc'); } Having all the function bodies in the same file would cause php to have to parse all of that code, probably about 3-4000 lines causing awful slowdowns. And the reason to define all of the functions in one file, is so that we can include that file, and all the functions are then available. -- 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]
Re: [PHP] PHP Books
On Thu, 5 Jul 2001, Roger Ramirez wrote: On Thu, 5 Jul 2001, Bernie Kruger wrote: Hi, I know this may be a previously discussed topic, but I want to be sure I get the right books. I need a good book on intermediate PHP programming. I am looking to buy PHP 4 Bible, but is that the best I can get? I looked through the list on the PHP website, but it does not rate the books so I don't know which is best to start off with. Untill now I have used the manual, but I need more everyday examples. I like Professional PHP Programming from WROX press. I've never read through the PHP4 Bible but I usually hear good things about the bible series books. I have both of these i have to say that the php bible tends to explain things a bit better and in more detail (mostly) than pro php but pro php has more examples/full applications and stuff. -- 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]
[PHP] Pushing to Multidimensional Arrays.
How do i do this? I have tried using the array_push function without sucess and when i try this : $stack[]['id'] = $menuArray[$rowID]['id']; $stack[]['parentId'] = $menuArray[$rowID]['parentId']; $stack[]['name'] = $menuArray[$rowID]['name'];A obviously the array's internal pointer will increment and it will write to the next element. I suppose i could use prev() (could I?) but surely there has to be a better way ;) Thanks. Nick. -- 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]
[PHP] Split Weirdness.
Why does this work : $categorySplit = split(,, $row['category']); while (list($key, $value) = each ( $categorySplit )) { $categoryArray[$value] = 1; } But this not : while (list($key, $value) = each ( split(,, $row['category']) )) { $categoryArray[$value] = 1; } I keep getting Maximum execution time of 30 seconds exceeded errors. Thanks in advance. Nick. -- 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]
Re: [PHP] php site down?
There seems to be some routing problem at ALTER.NET (from the uk anyway). Nick. On Tue, 10 Apr 2001, Michael Hall wrote: I've been trying to get to the annotated manual all afternoon but can't get through to www.php.net. Anyone else have the same problem? Mick -- 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]
Re: [PHP] RE: [PHP-DB] Best way to check if a query succeeded
Doesn't the command return 1 or 0 in success or failure? You may not have a result Probably wrong but something like if (mysql_query($query)) { } else { } or you could die out mysql_query($query) or die On Thu, 29 Mar 2001, Boget, Chris wrote: i was just wondering what you guys do to check if a wquery suceeded or not? I know about mysql_num_rows() and mysql_affected_rows(), just wondered what you guys do? I do this: $result = mysql( $dbname, $query ); if(( $result ) ( mysql_errno() == 0 )) { // query was successful if( mysql_num_rows( $result ) 0 ) { // do your stuff here... } else { echo "Successful query returned no rows"; } } else { echo "Query failed: " . mysql_error() . "br\n"; } There is a difference between a "successful query" and a query that returns 0 rows and should be handled differently, typically. Depending on what you are doing, you might not care -- 0 rows = unsuccessful query. However, in my case, I want to know if a query was malformed, contained erroneous data that's throwing mySQL off or whatever. These types of errors will return 0 rows as well. Chris -- 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]
[PHP] POST Method.
How do i forward POST data from a php script. Obviously GET is simple (just script.php?$QUERY_STRING) but how does it work with post? Thanks. Nick. -- 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]
Re: [PHP] POST Method.
I'm going to use the curl libs. But FYI i was wanting to forward the data again using post. On Thu, 15 Mar 2001, Keith Vance wrote: You could can "forward" posted data the same way if you wanted to. I don't know what you mean by forwarding. But if you had one script that was a form and the action was set to a script called action.php and then you wanted to pass that data to yet another script, you could pass the values in the url or a session variable or hidden fields in another form. Keith On Thu, 15 Mar 2001, Nick Davies wrote: How do i forward POST data from a php script. Obviously GET is simple (just script.php?$QUERY_STRING) but how does it work with post? Thanks. Nick. -- 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] -- 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]
[PHP] POST conversion.
Hi (again). Is there a simple was to take post data from a form and create a query string out of it? Thanks. Nick. -- 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]
Re: [PHP] Good Free PHP Editor?
How about linux ones? I just tend to use vim or emacs but i'm sure there are some out there. On Sun, 11 Mar 2001, Aviv Revach wrote: Hey! PHPEd is free: * Runs under Windows. * Has syntax highlighting. Supports: Html, Perl, Php, SQL, and regular text files. * Can edit multiple files * I'm quite sure it reports line numbers. * It has a very good search replace functionality. This is obviously what you need!! You can get it from: http://soysal.com/PHPEd/ Best Regards - Aviv Revach BRILLIANeT Website - http://www.brillianet.com/ -- 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]
Re: [PHP] Mailing List
On Mon, 12 Mar 2001, Harshdeep S Jawanda wrote: Hi, Harshdeep S Jawanda wrote: I suppose you must already have tried sending mail to [EMAIL PROTECTED] by now. I tried this address and it worked for me. Obviously ;) -- Regards, Harshdeep Singh Jawanda. -- 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]
Re: [PHP] content-type problem with file uploads
Content-type = not Content-Type = ... On Mon, 12 Mar 2001, James Tremain wrote: I've been successfully uploading graphic files to a directory on my php server for more than a year. Suddenly, it no longer works, and after a lot of probing, I'm at a loss to determine why. I run PHP4.0.4pl1-3 as an Apache module on RedHat7. Files upload as expected, but PHP no longer provides the content-type as it should following the upload, in the variable: $HTTP_POST_FILES['file']['type']. Furthermore, the uploaded file no longer matches the original file: it has the content type prepended at the start of the uploaded file. For example, a file that starts out like this before the upload: GIF89aB h ¢ ooorod?.}zqSL7/' ZO{}!ù , B h ÿhj²þ0J ¨ Zdizhª®lë¾pÌn#64979; B®ï|Îè¿Hc¨hHZÈäCÃÔÐhò snip --- looks like this after being uploaded: Content-Type: image/gif GIF89aB h ¢ ooorod?.}zqSL7/' ZO{}!ù , B h ÿhj²þ0J ¨ Zdizhª®lë¾pÌn#64979; B®ï|Îè¿Hc¨hHZÈäCÃÔÐhò snip --- Clearly, these problems are related -- it seems the content-type header is being sent, but gets interpreted as part of the file instead of a header about the file. I just can't figure out why, especially since this worked as expected on the same hardware/software setup only days ago. Thank you in advance for any thoughts or recommendations! -- 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]
Re: [PHP] Qmail problem
Technically you shouldn't need to change anything if the sendmail symlink is in the same place as the original sendmail. It looks like you have a problem with your qmail configuration. Can you telnet to port 25 of your box and get the qmail blurf? Nick. On Thu, 8 Mar 2001, pete collins wrote: I keep getting: qmail-inject: fatal: read error I've tried everything. Sendmail is symlinked to /var/qmail/bin/sendmail wrapper $ ls -l /usr/lib/sendmail lrwxrwxrwx 1 root root 28 Aug 25 2000 /usr/lib/sendmail - ../../var/qmail/bin/sendmail $ ls -l /usr/sbin/sendmail lrwxrwxrwx 1 root root 28 Aug 25 2000 /usr/sbin/sendmail - ../../var/qmail/bin/sendmail I have tried every permutation for my sendmail_path in php.ini I tested the php code i'm using from my FreeBSD box which uses sendmail and it all works fine. I can use qmail fine from perl. Does anyone have any ideas? This is down right silly. ;-) Thanks --pete -- 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]
Re: [PHP] displaying information
On Fri, 9 Mar 2001, Jason Stechschulte wrote: On Thu, Mar 08, 2001 at 09:32:25PM -, george wrote: I am building a site which pulls FAQ's out of the database onto a page,but having just finished reading the FAQ's I realise that they will have to be spread over a few pages, how to I get the new page to take over where the old page finished. I would try programming, that usually works for me. You will have to let the program know where you left off, you could pass it in the url, set a cookie, or put it to the session. Either way, just do a little programming and voila. Or you could just pass the offset in the url and use SQL to limit the search. I can't remeber the exact stuff but all you need to do is write the select with an offset (where to start the select) and a limit (10 results perhaps). You will then only get that data set. Just add limit to the offset and pass that onto the next instance of the page to use as the next offset. -- 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]
Re: [PHP] Functional Programming Style?
Argh Haskell - All the bad memories come flooding back. On Fri, 9 Mar 2001, Ted Goranson wrote: Hello-- Is PHP suitable for programming in a Haskell-like fashion? Is there existing information on how to do this? Best, Ted _ Ted Goranson Fusecap and Sirius-Beta, Virginia Beach USA 757/426-6704 [EMAIL PROTECTED] Symmetry Conference: http://www.isis-s.unsw.edu.au -- 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]
Re: [PHP] time and date function
Just convert the time to unixtime and - 5*60 (5 mins). On Tue, 6 Mar 2001, Augusto Cesar Castoldi wrote: Can I do any "subtraction" with times and/or dates on php or mysql? I have two times (HH:MM:SS). And I want to know if there is a diference of 5 min between the times. Is there any function that do this? Or I have to program this? regards, Augusto Cesar Castoldi -- 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]