[PHP] Re: subtracting dates...
yeah, i was thinking that before i decided to post to the newsgroup. i thought there was some simple way of doing it and id be wasting my time. obviosuly not "Craig Roberts" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Try something along the lines of > > if($current_MM < $MM) { > $age = $calculatedage - 1; > } > > you'll also need to do something like this with the day of the month if the > user's bday is in the current month. > at least... i think that works out :$ > Craig Roberts > > > "John Ryan" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Hi, > > > > In mySQL, I store dates as -MM-DD, a standard DATE type. It stores > users > > date of births. I need to calculate in a PHP script, the users age from > this > > DOB. I get a PHP date in the same format as the mySQL and subtract, which > > returns the year rounded off. ie, it doesnt matter if your birthdays in > june > > of 1983 and the date is januray 2003, your age is still returned as 20, > when > > it should be 19. > > > > Does anyone know how can i get the right age? > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] subtracting dates...
Hi, In mySQL, I store dates as -MM-DD, a standard DATE type. It stores users date of births. I need to calculate in a PHP script, the users age from this DOB. I get a PHP date in the same format as the mySQL and subtract, which returns the year rounded off. ie, it doesnt matter if your birthdays in june of 1983 and the date is januray 2003, your age is still returned as 20, when it should be 19. Does anyone know how can i get the right age? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] subtracting dates...
yeah, thats the code i wrote myself (nearly). it gets the job done. thanks "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote John Ryan ([EMAIL PROTECTED]): > > Hi, > > > hello ryan, > > > In mySQL, I store dates as -MM-DD, a standard DATE type. It stores users > > date of births. I need to calculate in a PHP script, the users age from this > > DOB. I get a PHP date in the same format as the mySQL and subtract, which > > returns the year rounded off. ie, it doesnt matter if your birthdays in june > > of 1983 and the date is januray 2003, your age is still returned as 20, when > > it should be 19. > > > > Does anyone know how can i get the right age? > > To get a real age of someone you would use seconds, but since the actual > count of seconds get messed up on leap years (through the convertion > from seconds to years), I approached it with the method most people > calculate ages. > > Most people first look at the year and find the differnce, then if > the month/day hasn't come around you subtract one; alas the common > calculation for age. > > Here is the code to demonstrate that logic: > > > $dob = split('-', '1980-12-1'); > $now = split('-', date('Y-m-d')); > > // we are either this age or one less > $age = $now[0] - $dob[0]; > > // have we gotten to the month of in dob? > if ($now[1] < $dob[1]) { > >// no, so we are technically a year less. >$age--; > > // If we're in the month, has the day come yet? > } elseif ($now[1] = $dob[1] && $now[2] < $now[3]) { > >// no, still a few more days. >$age--; > } > > // your age is proper, in day to day usage. > > /* > Note: > > instead of the if () elseif() you can use > if (mktime(0,0,0,$now[1],$now[2]) < mktime(0,0,0,$dob[1],$dob[2])) { > $age--; > } > > */ > > > HTH, > > Curt > -- > "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] CURL
theres this site i want to use to execute a command by visting a url. like http://www.site.com/stuff.php?id=1234&message=hello_world when i visit this in the browser when im logged into www.site.com, it works as im logged in with cookies or sessions or whatever. but obviosuly i cant be loged in from a php script, accessing the site using curl. is there anyway i can login, curl take the cookie and then access this url?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: CURL
i was more asking for the actual curl commands to do so, i suppose this wasnt the rite ng to ask, but ive nowhere else! the docs on the curl site are kinda crap "Igor Konforti" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > yeah, there is way to do it! > http://www.php.net/manual/en/function.curl-setopt.php > > > On Tue, 5 Aug 2003 01:04:42 +0100, John Ryan <[EMAIL PROTECTED]> wrote: > > > theres this site i want to use to execute a command by visting a url. > > like > > http://www.site.com/stuff.php?id=1234&message=hello_world > > > > when i visit this in the browser when im logged into www.site.com, it > > works > > as im logged in with cookies or sessions or whatever. but obviosuly i > > cant > > be loged in from a php script, accessing the site using curl. is there > > anyway i can login, curl take the cookie and then access this url?? > > > > > > > > > > -- > Igor Konforti -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HOW DO U SPLIT UP LARGE STRINGS?
I've a string with a huge mySQL query, seperated by a semi-colon and then line-break. You can't run this query staright to mySQL (and i dont want to try), so Im trying to split up the query into, say, 100 mysql commands at a time. Is it possible to split up a string every 100 semi-colons it finds?? I input this string from a text file through fopen while(fgets)? Is it easier to just read 100 lines at a time, run a query, and then read another 100 lines from the text file? TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HOW DO U SPLIT UP LARGE STRINGS?
well, it must be big as it says 'mysql server gone away' i cant open the file from mysql, i need to edit a few things each line. i suppose i could open it, then save it to disk and then run that mysql command "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hello, > you can use the split() method to break this up into pieces. Unless you > are doing a large number of inserts on tables with several keys mysql > will not be troubled too much by the number of queries you run. > > > John Ryan wrote: > > >I've a string with a huge mySQL query, seperated by a semi-colon and then > >line-break. You can't run this query staright to mySQL (and i dont want to > >try), so Im trying to split up the query into, say, 100 mysql commands at a > >time. > > > >Is it possible to split up a string every 100 semi-colons it finds?? > > > >I input this string from a text file through fopen while(fgets)? Is it > >easier to just read 100 lines at a time, run a query, and then read another > >100 lines from the text file? > > > >TIA > > > > > > > > > > > > > -- > > Raditha Dissanayake > - > http://www.radinks.com/sftp/ > Lean and mean Secure FTP applet with Graphical User Inteface. > just 150 Kilo Bytes > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: google style paginating
just split up your total number of results ($num_rows) by the results per page (10, i think) and create a for loop to loop from page1 to pagex, creating a link with offset for each one. simple. "Ted Conn" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi I am new to this newsgroup and I plan on replying to all the posts I can > for now... but Id like to start out by asking a question. I am trying to > paginate my sql results in 10 by 10, which I have been able to do no > problem. but what I want to do is have the pages layed out in google style > with (1)(2)(3)(4) etc etc and each one is clickeable that will take you to > that page. I'll show you the code I am using now for next and back > buttons... > > > > //located at top of page > include("include/conex.php"); > $link=Conectarse(); > ?> > > //start of body, this verifies that so is numeric, divisible by 10, and a > valid number > $q="SELECT id FROM tblNoticias ORDER BY id "; > $result=MYSQL_QUERY("$q",$link); > $num_rows=(MYSQL_NUM_ROWS($result)); > if ( isset($_GET['so']) && is_numeric($_GET['so']) ) > { > if ( ($_GET['so'] > $num_rows) || ($_GET['so'] < 0) ) > $so='0'; > else > { > if ($_GET['so'] % 10) >$so='0'; > else >$so=$_GET['so']; > } > } > else > $so='0'; > ?> > > //return results > > $q="SELECT id,titulo,texto,img1_data FROM tblNoticias ORDER BY id DESC LIMIT > $so,10"; > $result=(MYSQL_QUERY("$q",$link)); > while ($row=(MYSQL_FETCH_ARRAY($result))){ > ?> > > // next and back buttons > > > if ( $so >=10) > { > $sortback= $so-10; > echo "<< > Atras" ; > } > ?> > > $sortforth=$so + 10; > $existencias=MYSQL_QUERY("SELECT id FROM tblNoticias LIMIT > $sortforth,10",$link); > $existencias=MYSQL_NUM_ROWS($existencias); > if ( $existencias > 0 ) > echo " class=\"mainText\"> Siguiente >> "; >?> > > > DID I PUT WAY TO MUCH CODE?? Sorry, and I apreciate your help. > > How can I implement the google style paging into this code? > > Thank you... > > > > > Ted Conn Lider de Proyectos [EMAIL PROTECTED] Scinet México S.A. de C.V. > +52 (222) 294-05-95 al 97 Sin costo: 01-8000-DOTCOM Puebla · DF · Monterrey > www.scinet.com.mx > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] opening remote tar.gz files
is it possible with PHP to download and open a remote tar.gz file?? I read in the manual that it is, but it never seems to work for me. I tried opening the file with fopen fopen("zlib://http://www.site.com/update.tar.gz";, "r"); but it didnt work Then I tried using the zlib functions but they just returned garbage. I think it might have something to do with it not being able to handle ".tar" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] opening remote tar.gz files
it definately always only contains one file "Curt Zirzow" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > * Thus wrote John Ryan ([EMAIL PROTECTED]): > > is it possible with PHP to download and open a remote tar.gz file?? I read > > in the manual that it is, but it never seems to work for me. > > > > I tried opening the file with fopen > > fopen("zlib://http://www.site.com/update.tar.gz";, "r"); > > but it didnt work > > > > Then I tried using the zlib functions but they just returned garbage. I > > think it might have something to do with it not being able to handle ".tar" > > What are you trying to do with the file? A tar file can contain > multiple files and have a directory structure. > > > Curt > -- > "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Opening Zip Files in Linux
This is kinda off topic, well.. depending on the answer. I downloaded a ZIP file to my server, and want to open it. My version of PHP wasnt compiled with the Zip uncompressing functions, otherwise Id do it with php, so I was wondering if there was a linux-x86 binary that just opens zip files! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Opening Zip Files in Linux
ive spent the last 2 hours looking for a solution. i was going to recompile php with zip support for one file. THANK YOU! "John Herren" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > John Ryan wrote: > > This is kinda off topic, well.. depending on the answer. > > > > I downloaded a ZIP file to my server, and want to open it. My version of PHP > > wasnt compiled with the Zip uncompressing functions, otherwise Id do it with > > php, so I was wondering if there was a linux-x86 binary that just opens zip > > files! > > Try unzip :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] curl and sent headers
is there any way of seeing exactly what headers cURL sent in a transfer, with PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: curl and sent headers
i found out myself if anyone wants to know... "John Ryan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > is there any way of seeing exactly what headers cURL sent in a transfer, > with PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: curl and sent headers
yeah, sure. well, for archival purposes, i couldnt do it with PHP. the verbose option didnt work with PHP, CURLOPT_VERBOSE. but it did work on the command line. so i logged in and re-created my curl transfer on the command line with an added -v, for verbose. and it gave me back the headers it sent to the site, i saw my problem straight away, and modified the PHP script. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- John Ryan <[EMAIL PROTECTED]> wrote: > > is there any way of seeing exactly what headers cURL sent in a > > transfer, with PHP? > > --- John Ryan <[EMAIL PROTECTED]> wrote: > > i found out myself if anyone wants to know... > > Yes, please. It is always helpful (and courteous) to mention how you solved > your original problem when interacting with this list. This allows you to > contribute back to the list, and ultimately the PHP community. :-) > > Even if the answer someone else gave is sufficient, it is nice to quote that > answer and give a quick "that worked" for archival purposes. This way when > someone references the archive seeking the answer to the same question, they > can see which answer worked for you (the person they will likely relate to the > most). > > And, though it doesn't apply to you in this case, it is nice to thank the > person who helped you solve a particular problem. The only motivation for > pouring a lot of effort into responding to the questions here is to feel like > you're helping a lot of people. John Holmes comes to mind as a frequent > contributor, as do many others (is there a list?). > > Thanks for your help. > > Chris > > = > Become a better Web developer with the HTTP Developer's Handbook > http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] site with linux binaries??
hi, i wanna upgrade php, but i dont have, and can never have root access on my server, plus no gcc or anything, so is there any site with binaries of php for linux-x86, with pretty much, all extras and modules! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] accept/type
Is it possible with an Apache confiugartion file to redirect users, if their browser sends a certain accept/type header, and somewhere else if not?? I dont want to do it with PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] For Loops and Variables??
When I use for loops, at the start of each iteration, the variables hold the values from the last loop. First, is there an elegant way of clearing variables at the start of each loop rather than using unset???! It just seems wrong. Also, all my problems would be solved if variables in a for loop were kept local, but everything by default is a global. Can I change this in php.ini or something?? TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] apache logs reset at midnight
for some reason, my apache log files reset every night at 12, whihc i dont want. how do i change this in the apache httpd.conf file? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] apache logs reset at midnight
yeah, i found 'logrotate.conf' in the etc/conf/ folder. Thanks, I would never have found it, only messed around with the apache httpd.conf file! Thanks again "Jason Sheets" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If you are running Linux/Unix check /etc/newsyslog.conf as well, this is > a program run from cron that rotates the systems and other daemon log files. > > > > Jon Kriek wrote: > > >Rob is aspsoletly correct; this has to be a rotation called from crontab. > > > > > > > >Jon Kriek > > > >http://phpfreaks.com > > > > > > > >"Robert Cummings" <[EMAIL PROTECTED]> wrote in message > >news:[EMAIL PROTECTED] > > > > > > > >>You sure you don't have a cron that run every night and rotates the log > >>files such that the previous day's is archived? > >> > >>Rob. > >> > >>On Sat, 2003-09-27 at 16:49, John Ryan wrote: > >> > >> > >>>for some reason, my apache log files reset every night at 12, whihc i > >>> > >>> > >dont > > > > > >>>want. how do i change this in the apache httpd.conf file? > >>> > >>>-- > >>>PHP General Mailing List (http://www.php.net/) > >>>To unsubscribe, visit: http://www.php.net/unsub.php > >>> > >>> > >>> > >>> > >>-- > >>.. > >>| InterJinn Application Framework - http://www.interjinn.com | > >>:: > >>| An application and templating framework for PHP. Boasting | > >>| a powerful, scalable system for accessing system services | > >>| such as forms, properties, sessions, and caches. InterJinn | > >>| also provides an extremely flexible architecture for | > >>| creating re-usable components quickly and easily. | > >>`' > >> > >> > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PNG to GIF conversion
How do I do this?? I have the latest version of GD with PNG, but no GIF. But I *have to* be able to convert images to gif. Is there any standalone php script that'll do it, or a cgi??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PNG to GIF conversion
no, i mean a on-the-fly conversion in php. unless its a unix program... is it? "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well there's a stand alone program called ImageMagick > > Michael Still wrote an article on it which may be useful. There should still > be a link for it on the main page @ stillhq.com > > > > On Saturday 11 October 2003 01:50 pm, John Ryan wrote: > > How do I do this?? I have the latest version of GD with PNG, but no GIF. > > But I *have to* be able to convert images to gif. Is there any standalone > > php script that'll do it, or a cgi??? > > -- > Evan Nemerson > [EMAIL PROTECTED] > > -- > "If you would be a real seeker after truth, you must at least once in your > life doubt, as far as possible, all things." > > -Rene Descartes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PNG to GIF conversion
and i cant see the article your talking about on stillgq.com "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well there's a stand alone program called ImageMagick > > Michael Still wrote an article on it which may be useful. There should still > be a link for it on the main page @ stillhq.com > > > > On Saturday 11 October 2003 01:50 pm, John Ryan wrote: > > How do I do this?? I have the latest version of GD with PNG, but no GIF. > > But I *have to* be able to convert images to gif. Is there any standalone > > php script that'll do it, or a cgi??? > > -- > Evan Nemerson > [EMAIL PROTECTED] > > -- > "If you would be a real seeker after truth, you must at least once in your > life doubt, as far as possible, all things." > > -Rene Descartes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PNG to GIF conversion
Loser "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Then try stillhq.com, as stillgq.com won't get you too far. Fourth article > down, "Command line image procesing[sic]...". > > If you would have actually read a bit of the page I sent you to, perhaps you > would have found that out without having to ask. Your last question could have > been answered by a quick trip to Google. Even your original question could > have been answered by Google, or probably even the archives. > > And it's "you're", not "your". "You're" means "you are". "Your" is "The > pronoun of the second person, in the nominative, dative, and objective case, > indicating the person or persons addressed." (Webster's Revised Unabridged > Dictionary 1913). And believe it or not, the shift key is there for a reason. > > Have a nice day. > > > > On Saturday 11 October 2003 02:14 pm, John Ryan wrote: > > and i cant see the article your talking about on stillgq.com > > > > "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > > Well there's a stand alone program called ImageMagick > > > > > > Michael Still wrote an article on it which may be useful. There should > > > > still > > > > > be a link for it on the main page @ stillhq.com > > > > > > On Saturday 11 October 2003 01:50 pm, John Ryan wrote: > > > > How do I do this?? I have the latest version of GD with PNG, but no > > > > GIF. But I *have to* be able to convert images to gif. Is there any > > > > standalone > > > > > > php script that'll do it, or a cgi??? > > > > > > -- > > > Evan Nemerson > > > [EMAIL PROTECTED] > > > > > > -- > > > "If you would be a real seeker after truth, you must at least once in > > > your life doubt, as far as possible, all things." > > > > > > -Rene Descartes > > -- > Evan Nemerson > [EMAIL PROTECTED] > > -- > "A people who mean to be their own governors, must arm themselves with the > power knowledge gives." > > -James Madison -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Generating Numbers from Strings
I've a bit of a problem, I want a random keyword pulled from my database. But I dont want it random all the time. I just want it random to each page. So I have the filename variable of the page. How do I somehow generate a 'constant' random number from this string that is constant to each file??? TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Generating Numbers from Strings
I've done that, but how do I generate a number out of that that's in a certain range? "Thomas Seifert" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 1 Nov 2003 00:37:32 - [EMAIL PROTECTED] (John Ryan) wrote: > > > I've a bit of a problem, I want a random keyword pulled from my database. > > But I dont want it random all the time. I just want it random to each page. > > So I have the filename variable of the page. How do I somehow generate a > > 'constant' random number from this string that is constant to each file??? > > > > TIA > > md5(__FILE__) ? > > > Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Web Applications and C++?
I assume sites like Amazon and Ebay does not use PHP to generate its pages. Does it use CGI and C++?? If so, does that mean a C++ program is run each time I request a page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mulitpart form posts and mysql blobs
How are files encoded when theyre sent in mulitpart forms??? Is it the same as blob fields in mySQL databased when you use the LOAD_FILE() command?? If not, is it easy to convert from one to the other?? At the moment, Im taking the blob from mySQL and writing it to a file and then uploading that file through cURL! Very messy. TIA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [PHP-DB] Re: [PHP] Mulitpart form posts and mysql blobs
Sorry, I should have said. Im trying to send this file to an external multipart form script which converts the file to the desired format. Im using cURL to do this. cURL can send files when given the filename, so I have to write the filename from the database and then give cURL the path. But thats messy I want to be able to get the BINARY data from mySQL and send it via cURL directly. TIA - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "John Ryan" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, November 15, 2003 1:22 AM Subject: [PHP-DB] Re: [PHP] Mulitpart form posts and mysql blobs John Ryan wrote: > How are files encoded when theyre sent in mulitpart forms??? Is it the same > as blob fields in mySQL databased when you use the LOAD_FILE() command?? > > If not, is it easy to convert from one to the other?? At the moment, Im > taking the blob from mySQL and writing it to a file and then uploading that > file through cURL! Very messy. So what are you actually trying to accomplish? Moving a file from one server to another??? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] config failure php4.0.4 + apache 1.3.14
I'm getting the same problem on 2 machines, but I can't figure out what I'm doing wrong. OS is FreeBSD 4.2-STABLE i386 IMAP installed from port is imap-uw-4.5 For php4 (php4.0.4pl1) I'm doing: /configure --with-apache=../apache_1.3.14 --with-mysql \ --with-imap=/usr/local/libexec/imapd --with-ftp --enable-track-vars For Apache I'm doing: /configure --enable-module=all --enable-shared=max \ --add-module=mod_frontpage.c \ --activate-module=src/modules/php4/libphp4.a (without the --activate-module=src/modules/php4/libphp4.a, it compiles okay) I get the following trying to configure Apache: ** A test compilation with your Makefile configuration ** failed. The below error output from the compilation ** test will give you an idea what is failing. Note that ** Apache requires an ANSI C Compiler, such as gcc. cd ..; gcc -funsigned-char -I/usr/local/src/php-4.0.4pl1 - I/usr/local/src/php-4 0.4pl1/main -I/usr/local/src/php-4.0.4pl1/main -I/usr/local/src/php- 4.0.4pl1/Ze nd -I/usr/local/src/php-4.0.4pl1/Zend -I/usr/local/src/php-4.0.4pl1/TSRM - I/usr/ local/src/php-4.0.4pl1/TSRM -I/usr/local/src/php-4.0.4pl1 -DUSE_EXPAT - I./lib/ex pat-lite `./apaci` -o helpers/dummy helpers/dummy.c -R/usr/local/lib - rdy namic -L/usr/local/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4 - lm odphp4 -lpam -lc-client4 -lm -lcrypt-lcrypt /usr/local/lib/libc-client4.so: undefined reference to `mm_expunged' /usr/local/lib/libc-client4.so: undefined reference to `mm_diskerror' /usr/local/lib/libc-client4.so: undefined reference to `mm_lsub' /usr/local/lib/libc-client4.so: undefined reference to `mm_flags' /usr/local/lib/libc-client4.so: undefined reference to `mm_fatal' /usr/local/lib/libc-client4.so: undefined reference to `mm_nocritical' /usr/local/lib/libc-client4.so: undefined reference to `mm_notify' /usr/local/lib/libc-client4.so: undefined reference to `mm_searched' /usr/local/lib/libc-client4.so: undefined reference to `mm_status' /usr/local/lib/libc-client4.so: undefined reference to `mm_login' /usr/local/lib/libc-client4.so: undefined reference to `mm_list' /usr/local/lib/libc-client4.so: undefined reference to `mm_critical' /usr/local/lib/libc-client4.so: undefined reference to `mm_exists' /usr/local/lib/libc-client4.so: undefined reference to `mm_log' /usr/local/lib/libc-client4.so: undefined reference to `mm_dlog' *** Error code 1 Stop in /usr/local/src/apache_1.3.14/src/helpers. Error Output for sanity check = End of Error Report = Your help will be appreciated John Ryan Systems Manager King George V School -- 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]