RE: [PHP] Parse error on blank line...
I'm not sure where it is, but I agree that you are missing a curly brace somewhere. Take a break from your code for a bit, come back to it, and start matching braces. I suggest getting a coffee or some tea. johnny p. -Original Message- From: April [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 4:31 PM To: Jackson, Michael; [EMAIL PROTECTED] Subject: Re: [PHP] Parse error on blank line... You missed a } in there. Inside of that else, you have an if, but you never close the else. 190 showmainscreen(); 191} 192 should be 190 showmainscreen(); 191} 192} - Original Message - From: "Jackson, Michael" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 05, 2001 4:23 PM Subject: [PHP] Parse error on blank line... Hello all, I hope this doesn't turn out to be a stupid question, but we will see... I am getting parse errors on blank lines. Not commented, but totally blank. And seemingly no matter how I manipulate the text, it turns out to always be on the same line. I'm using vim with syntax tags to help me check my basic syntax, and everything seems to be closed - I am at a total loss as to what could be wrong! Let me try to clarify: Take the following snippet of code - It errors out on line 193. I have no idea why. I added blank lines to shift the code around - and if I eliminated all of the blank lines, I still error out on 193. 001 ?php . 181 ## 182 # BEGIN CODE # 183 ## 184 185 if ($goodtogo != "yes") { 186sanitize_session(); 187 } 188 else { 189if ($state == "main") { 190 showmainscreen(); 191} 192 193 194 195 196elseif ($state == "add") { 197 adduser($product,$username); 198} 199elseif ($state == "search") { 200 searchuser($username); 201} 202else { 203 doh(); 204} 205 } 206 207 208 # END CODE # 209 210 ? Any help is greatly appreciated! -- 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 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] Chopping up a comand line return.
Well, I could update your perl code a bit, and try to help with your php question at the same time... first of all, i would use he following in perl to avoid the `ls` system call: ** $some_dir = "/your/dir/to/read/from/$author"; opendir(DIR, $some_dir) || die "can't opendir $some_dir: $!"; # sorts last modified time, most recent first, and only returns files in the directory @files = sort {(stat("$some_dir/$a"))[9] (stat("$some_dir/$b"))[9]} grep { -f "$some_dir/$_" } readdir(DIR); closedir(DIR); ** so, given the perl version... here's the php version: ** $some_dir = "/your/dir/to/read/from/" . $author; $DIR = opendir($some_dir) || die "can't opendir $some_dir: $!"; while (false!==($file = readdir($DIR))) { if (filetype($some_dir . "/" . $file) == "file") { $mtime = filemtime ($some_dir . "/" . $file); $files[$some_dir."/".$file] = $mtime; } } closedir($DIR); asort ($files); reset ($files); ** PHP's filemtime is equivalent to perl's (stat(file))[9], which returns the modification time of a file. PHP's filetype($file) is equivalent to the grep check in Perl for file type of file. All the others are identical. enjoy, johnny p. -Original Message- From: stankusn [mailto:[EMAIL PROTECTED]] Sent: Friday, February 02, 2001 9:02 AM To: [EMAIL PROTECTED] Subject: [PHP] Chopping up a comand line return. Here is my problem, I want to read the contents of a dir, on a linux machine, in proper order according to date (ie. from newest to oldest). My problem is I know how to do it in perlbut not in php. I tried what I use is perl and it doesn't work. Here is what I have that does work. $stuff = `ls -C1t /your/dir/to/read/from/$author/`; ---works now I want to parse up $stuff to get the 10 or so files names so I can link to them. I just cannot figure out how to do it in php. This is how I would do it in perl/CGI @stuff = same as above foreach $filename (@stuff){ next if $filename !~ /(inc$/i; print = "a href=\"$author/$filename\"$filename/a"; } I need something pretty much the same in php...I just don't know why it isn't working quite the same.. thanks for your time in advance., nixter --- Nick.Stankus Software Engineer Logicon/Sterling Federal 402-232-7870 --- "There are two things that are infinite; Human stupidity and the universe. And I'm not sure about the universe." - Albert Einstein -- 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]
RE: [PHP] Pricing for PHP programming???
Ok, I just started my own company and finished work for my first client (shameless plug here: http://www.alamosawinecellars.com). The problem I had wasn't in pricing my work by what it's worth and how much time I put in it, but pricing it in a way that would work for my client. I ended up making roughly $10/hr., maybe less, for the effort, but I ended up with an extra $1000 in the bank. If I wanted to charge more, I would have had to take a walk and look for another client. My price wasn't based on an hourly rate, but on the project and my client's company size and ability to come up with enough to cover my time. The part of the project that took all my time is in a backend admin tool that allows the client to update their pages whenever they need. The data is all stored in a mysql db. Anyways, I have noticed that for some clients, like my first, charging too much will lose them. For other clients, like medium sized companies, charging too little will send them hunting for someone else. Very bizarre environment to work in, but my suggestion is to judge your prices based on the client's perspective. Interview the client and try to get an idea of what they're looking for. Look at what the client thinks they're getting. Use anything you can to find out what the client's price range is and then set your prices in the middle. And also, everything can be negotiated. my 2 cents... johnny p. -Original Message- From: Siim Einfeldt aka Itpunk [mailto:[EMAIL PROTECTED]] Sent: Friday, February 02, 2001 10:23 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Pricing for PHP programming??? As a PHP programmer and COO of a development and consulting shop, the emphasis on hourly rate is something that really amazes me. Not all programmers are created equal. A lot of clients don't recognize that. Some mistakenly believe that a $120/hr. programmer is 20% more productive than a $100/hr. programmer. Yet others think that a $200/hr. programmer must be twice as good as a $100/hr. programmer. -- 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] Pricing for PHP programming???
Hah! My wife has a formal education in graphics design. My web sites would look like crap without her extensive layout skills. :) I'm so lucky... johnny p. -Original Message- From: Jerry Lake [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 12:11 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Pricing for PHP programming??? Yep, ain't it grand... I got hired on as a designer and somebody got the bright idea that I must be a programmer as well funny I don't remember that on my resume. Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.com -Original Message- From: Robin Vickery [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 3:43 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Pricing for PHP programming??? "JG" == "Josh G" [EMAIL PROTECTED] writes: I hear you. Another thing that's hard to find, is somebody who is a good programmer, and a good graphic designer. I've never quite understood why employers seem to expect that a php/perl programmer should also be doing graphic design. They're quite unrelated activities using completely different skills. It's not something that's generally expected from other professions (when was the last time you saw an advert for an accountant that required they be proficient with Photoshop?) so why programmers? -robin (who can't draw for toffee) -- Robin Vickery. BlueCarrots, 14th Floor, 20 Eastbourne Terrace, London, W2 6LE -- 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 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 evaluates an expression function?
Well, I think the equivalent PHP function to VB's eval() function is... eval(). go to: http://www.php.net/manual/en/function.eval.php HTH, johnny p. -Original Message- From: ¹æâÇö [mailto:[EMAIL PROTECTED]] Sent: Friday, February 02, 2001 8:11 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP evaluates an expression function? Hi. I working convert from VBSCRIPT source to PHP. I found VBSCRIPT eval() same function in PHP. example. VBSCRIPT running... $a = "1+2+3+4" $b = eval ($a) $b retunr is number 10. What function or same method in PHP. Thank! E-mail: [EMAIL PROTECTED] PHONE: +83-2-3411-4196 FAX: +83-2-3411-4009 M.PHONE; +83-16-380-6107 -- 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] Symbolic link fails when User Authentication comes in
If you miswrite a CGI script and have lots of system calls, someone could send a command to your script that creates a link to, say, your password file, or something else, and then be able to view it through the web. If you have other users on the system the security hole opens wider. There are plenty of other reasons, as well. I would look for security information on various security websites, like insecure.org, securityfocus.com, etc.. Subscribe to some BUGTRAQ security lists. You will be surprised what is and is not a security hole. And, the more "features" you enable on your site, the more security concious you need to become. Your machine is *never* safe and enabling features opens more possibilities for abuse. If you have a linux box, you might want to try locking your system down a bit with portsentry and bastille linux: http://www.psionic.com/abacus/portsentry/ http://www.bastille-linux.org/ Just my humble and paranoid opinion from past experiences. :) johnny p. -Original Message- From: david klein [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 2:04 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Symbolic link fails when User Authentication comes in Johnny, It works, but how could this create a security hole? Could you please expalin a little bit more? Thanks, David From: "johnny p." [EMAIL PROTECTED] To: "david klein" [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [PHP] Symbolic link fails when User Authentication comes in Date: Wed, 31 Jan 2001 13:54:22 -0600 Add the FollowSymLinks to your httpd.conf file for that directory. I don't recommend doing this, tho, since it *is* a security hole. Directory /apps/apache/docs/test1 Options Indexes FollowSymLinks /Directory johnny p. -Original Message- From: david klein [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 1:43 PM To: [EMAIL PROTECTED] Subject: [PHP] Symbolic link fails when User Authentication comes in I am using Apache user authentication, and it works fine. However, if there is a symbolic link inside a securied directory, the symbolic linked file will deny any access. For example, directory "/apps/apache/docs/test1" is a securied directory, and there is a symbolic linked file "file1.txt", after you logged into directory "/apps/apache/docs/test1" and try to access "file1.txt", you will be denied for the access? Does anyone have any idea? Thanks, David _ Get your FREE download of MSN Explorer at http://explorer.msn.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] -- 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] _ Get your FREE download of MSN Explorer at http://explorer.msn.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] -- 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] Is correct ??
Ahh, date math... I spent 2 weeks trying to solve this once. I'm not exactly sure what you are trying to calculate here. If you want the number of days since the year 1601, no problem. I'm not sure where you get your 1461 from, tho... here's an algorthm I did in perl, which is fairly similar: my %day_counts =(1 = 0, 2 = 31, 3 = 59, 4 = 90, 5 = 120, 6 = 151, 7 = 181, 8 = 212, 9 = 243, 10 = 273, 11 = 304, 12 = 334); $day_count = (($year-1601)*365)+(int(($year-1601)/4)); $day_count += $day_counts{$perp_month}; $day_count += $day; # leap year if (int(($year-1600)/4) eq 0) { if ($month 2) { $day_count++; } } # adjust for leap year values that aren't a leap year foreach my $key (1700,1800,1900,2100,2200,2300,2500,2600,2700) { if ((($year == $key) ($month 2)) || ($year $key)) { $day_count--; } } If anyone cares to translate into php, might be nice to have, but doesn't php have a pretty good set of calendaring functions already? haven't used 'em yet, but i looked at 'em a little... johnny p. -Original Message- From: Miguel Loureiro [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 11:36 AM To: php-gen Subject: [PHP] Is correct ?? Hi, Anybody knows if this sourcecode is correct to calculate the numbers of days in certain date ? $m - month; $d - day, $y - year if($m=2){ $y--; $m+=13; } else $m++; $nd = (1461 * $y / 4) + (153*$m/5) + $d; Because I use this code in a function and sometimes it your and others dont Best Regards Miguel Loureiro [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] copy() ??
From the fine manual: A file upload screen can be built by creating a special form which looks something like this: Example 19-1. File Upload Form FORM ENCTYPE="multipart/form-data" ACTION="_URL_" METHOD=POST INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000" Send this file: INPUT NAME="userfile" TYPE="file" INPUT TYPE="submit" VALUE="Send File" /FORM The _URL_ should point to a PHP file. The MAX_FILE_SIZE hidden field must precede the file input field and its value is the maximum filesize accepted. The value is in bytes. johnny p. -Original Message- From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 12:00 PM To: [EMAIL PROTECTED] Subject: [PHP] copy() ?? I'm trying to upload i file through a webpage... -- add.php3 FORM method="post" action="do_add.php3" input type="file" size=40 name="userfile" INPUT type="submit" name="pub" value="Publiser" /form -- do_add.php3 copy($userfile, "/imgs/artikler/test.jpg"); unlink($userfile); -- ERROR msg..: Warning: Unable to create '/imgs/artikler/test.jpg': No such file or directory in c:/programfiler/apache group/apache/htdocs/do_add.php3 on line 22 -- php.ini upload_tmp_dir = c:\programfiler\apache group\apache\htdocs\temp\ Note: I'm currently running the webserver on Win98 (I know, it sucks!) Any tips anyone? - Fredrik A. Takle Bergen, Norway [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] Symbolic link fails when User Authentication comes in
Add the FollowSymLinks to your httpd.conf file for that directory. I don't recommend doing this, tho, since it *is* a security hole. Directory /apps/apache/docs/test1 Options Indexes FollowSymLinks /Directory johnny p. -Original Message- From: david klein [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 31, 2001 1:43 PM To: [EMAIL PROTECTED] Subject: [PHP] Symbolic link fails when User Authentication comes in I am using Apache user authentication, and it works fine. However, if there is a symbolic link inside a securied directory, the symbolic linked file will deny any access. For example, directory "/apps/apache/docs/test1" is a securied directory, and there is a symbolic linked file "file1.txt", after you logged into directory "/apps/apache/docs/test1" and try to access "file1.txt", you will be denied for the access? Does anyone have any idea? Thanks, David _ Get your FREE download of MSN Explorer at http://explorer.msn.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] -- 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] Strange problem
Sounds like there's no swap space left to me... -jp -Original Message- From: Dustin Butler [mailto:[EMAIL PROTECTED]] Sent: Friday, January 26, 2001 11:11 PM To: 'Jeroen Jochems'; php-general (E-mail) Subject: RE: [PHP] Strange problem There are FTP functions if it's an FTP download. You could also use socket functions to create the request if it's HTTP. Check your system for the utility called wget, you could exec() wget to retrieve the file also. Dustin -Original Message- From: Jeroen Jochems [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 25, 2001 7:23 AM To: Hardy Merrill Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Strange problem Or does anyone know a better way to download files? - Original Message - From: Hardy Merrill [EMAIL PROTECTED] To: Jeroen Jochems [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, January 25, 2001 2:50 PM Subject: Re: [PHP] Strange problem The first thing I'd check is the space on the client machine trying to do the download - that machine may be running out of space. I can't remember exactly how the browser handles this, but the client machine may need 2 times the size of the file to be downloaded - it might first create a temporary file, and then when the download is done, copy the temporary file to the real file. HTH. -- Hardy Merrill Mission Critical Linux, Inc. http://www.missioncriticallinux.com Jeroen Jochems [[EMAIL PROTECTED]] wrote: When I try to download a big file (like 5meg) with fopen() I get some strange errors: - not enough space for lowio initialization - not enough space for stdio initialization - pure virtual function call - not enough space for _onexit/atexit table - unable to open console device - unexpected heap error - unexpected multithread lock error - not enough space for thread data abnormal program termination - not enough space for environment - not enough space for arguments I use the following code while (!feof($file)) { $line = fgets($file, 1); fputs($localfile,"$line"); } This always happens when he downloaded 981kb. Anyone know how to solve this? 10xzs - floating point not loaded -- 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]
RE: [PHP] file storage/downloader...
-Original Message- From: Ignacio Vazquez-Abrams [mailto:[EMAIL PROTECTED]] Sent: Monday, January 22, 2001 11:01 AM To: johnny p. Cc: [EMAIL PROTECTED] Subject: Re: [PHP] file storage/downloader... On Sun, 21 Jan 2001, johnny p. wrote: Ok, here's the prolem: I'm trying to create a feature on my site similar to xdrive.com. Basically I want the user to be able to upload a file and have it stored on my server. I also want to have the ability for the user to download the file at a later time. Account authentiaction is handled, no problem, but I have no idea where to put the files. I create a directory, it may be guessed and even the filename might be guessed and any user may be able to download the file, breaking user authentication. If I store the file in a non-apache directory, how does the user download the file? My goal is to have the second scenario work, create a directory for each user for file storage, and somehow get the user to be able to download it after being authenticated. I do not want to use .htaccess files for this, either. I want it to be seemless with the rest of the features of the site. Thanks in advance for any ideas, johnny p. Use a database for this. Store the mimetype of the uploaded file so that it can be dwnloaded properly afterwards. No file/directory permissions problems, unlimited flexibility for authentication... what more could you want? -- Ignacio Vazquez-Abrams [EMAIL PROTECTED] Thanks for responding. I would love to use my database to store the files, but there may be more that 4GB of files, and the documentation says only some OS's support file sizes larger than 4GB. I use RH6.2 and I think this would apply to the ext2 filesys. Perhaps switching to the 2.4 kernel would be a good idea later, and I'll see about changing it then, perhaps. But I like the suggestion about creating a directory for each user and have a script create the links and send the files. thanks again, johnny p. -- 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] login authentication / session handling...
Ok, I'm probably asking something that's been asked rediculous amounts of times before, but I'll go ahead and ask again since I'm finding it difficult to find a common method, or a preferred login and session handling process. So, here goes... I am trying to do what everyone else in the web industry is doing, but I'm a bit new to session handling and login authentication. I have apache + mysql + php4 + ssl on my RH6.2 machine. I have --enable-track-vars on and this is my current setup: 1. login page has username and password text boxes and a link to my https login.php page. 2. after submit, login.php starts a session, opens the database, checks username and password, if valid ?? sets session variable $LOGGED_IN or something like it, sets $USERNAME, and loads the default php page for the user. If not valid, sets a session variable indicating the error, loads the login page again and displays an error message. login page destroys the session. 3. default page loads and check the value of $LOGGED_IN. if 1, then continue loading page for $USERNAME, otherwise loads login page with error. All other pages follow this same procedure. Questions about this: - I also want to have a timeout on the login, user configurable. How would I add this in? Initially a 3 hour timeout would be nice. I'm storing last login and last activity times in the databse as TIMESTAMP values. Should I check this along with $LOGGED_IN before loading the pages? - What is the default timeout on a session? Can I configure that somehow? I can't seem to find a way to make php changes... someone mentioned php.ini somewhere, but I've modified this file with no effect. Even when moved to the configured directory for php.ini (found by doing phpinfo() call). Any assistance, although most likely redundant, would be appreciated. There's so much to sift through and perhaps if someone just points to a good doc on authentication processes, that would help. Thanks for all the help, johnny p. -- 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] Build with Apache on Linux
Try following the instructions on the devshed page: http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/ This is an awesome tutorial to get things up and running for a standard web serveer install with Apache, PHP, MySQL, and SSL, if you need it. johnny p. -Original Message- From: Chris Mulcahy [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 21, 2001 10:07 AM To: [EMAIL PROTECTED] Subject: [PHP] Build with Apache on Linux OK, I've built Apache and PHP on Linux 50 times already. Now it's causing me problems. I've rebuilt my server, I've tried PHP 4.0.3 and PHP 4.0.4. It keeps causing me problems. I could not find libphp4.a and found on the net where someone suggested to rename libmodphp4.a to libphp4.a. During configure, I'm getting an error: /usr/bin/ld: cannot find -lmodphp4 collect2: ld returned 1 exit status It's making me insane. Attached below is a complete transcript (it's small) of the apache configure. PHP configure; make; make install appears to work perfectly, but it's not going so well with Apache. Any suggestions greatly appreciated. Thanks in advance. Chris --- BEGIN Transcript --- [root@gumby apache_1.3.14]# ./configure --activate-module=src/modules/php4/libphp4.a Configuring for Apache, Version 1.3.14 make + using installation path layout: Apache (config.layout) + activated php4 module (modules/php4/libphp4.a) Creating Makefile Creating Configuration.apaci in src cd ..; gcc -DLINUX=2 -I/home/cmulcahy/transfer/php-4.0.3pl1 -I/home/cmulcahy/trans fer/php-4.0.3pl1/main -I/home/cmulcahy/transfer/php-4.0.3pl1/main -I/home/cm ulcahy/transfer/php-4.0.3pl1/Zend -I/home/cmulcahy/transfer/php-4.0.3pl1/Zen d -I/home/cmulcahy/transfer/php-4.0.3pl1/TSRM -I/home/cmulcahy/transfer/php- 4.0.3pl1/TSRM -I/home/cmulcahy/transfer/php-4.0.3pl1 -DUSE_EXPAT -I./lib/exp at-lite -DNO_DL_NEEDED `./apaci` -o helpers/dummy lpers/dummy.c -rdynamic -Lmodules/php4 -L../modules/php4 -L../../modules/p hp4 -lmodphp4 -lpam -ldl -lttf -lgd -lresolv -lm -ldl -lcrypt -lnsl -lres olv -lm -lcrypt /usr/bin/ld: cannot find -lmodphp4 collect2: ld returned 1 exit status make: *** [dummy] Error 1 Creating Makefile in src + configured for Linux platform + setting C compiler to gcc + setting C pre-processor to gcc -E + checking for system header files + adding selected modules o php4_module uses ConfigStart/End + checking sizeof various data types + doing sanity check on compiler and options ** 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. Error Output for sanity check = End of Error Report = Aborting! -- 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] mcal installation
Hi, I am working on a site that requires extensive calendar math on it and read about PHP and using mcal with it. I tried configuring mcal to work with it and was wondering if anyone has had any success getting it to work. I followed all the steps I could find, but I have no idea how to set up individual user directories or even if the thing works. I don't even get any errors or output. I make the mcal function calls and... nothing. If anyone has any experience with getting this installed and configured, I would be much appreciated. thanks, johnny p. --- John Patton, CTO [EMAIL PROTECTED] Gameloop, Inc. http://www.gameloop.com Austin, TX 512-699-5534 -- 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] mcal installation
yes. I installed both the libraries. I followed all the directions on the mcal web site for installing it. johnny p. -Original Message- From: Sam Masiello [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 3:17 PM To: johnny p.; [EMAIL PROTECTED] Subject: RE: [PHP] mcal installation Since you didn't mention it specifically, I thought I should ask: Did you also download the mcal library or did you only include -with-mcal when you compiled PHP? Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: johnny p. [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 3:27 PM To: [EMAIL PROTECTED] Subject: [PHP] mcal installation Hi, I am working on a site that requires extensive calendar math on it and read about PHP and using mcal with it. I tried configuring mcal to work with it and was wondering if anyone has had any success getting it to work. I followed all the steps I could find, but I have no idea how to set up individual user directories or even if the thing works. I don't even get any errors or output. I make the mcal function calls and... nothing. If anyone has any experience with getting this installed and configured, I would be much appreciated. thanks, johnny p. --- John Patton, CTO [EMAIL PROTECTED] Gameloop, Inc. http://www.gameloop.com Austin, TX 512-699-5534 -- 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 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] mcal installation
Ok, I think I might have it installed correctly, but I'm not sure how to use it. Does anyone have an example on how to create a calendar mailbox, create a calendar event in that mailbox, and then list it? I think that might be my problem. I might not be creating the calendar correctly. thanks, johnny p. -Original Message- From: Sam Masiello [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 4:23 PM To: johnny p.; [EMAIL PROTECTED] Subject: RE: [PHP] mcal installation Did you restart your web server after recompiling PHP? Please be more specific on the steps that you did along the way (perhaps do them again and copy and paste your command lines to the screen so we can see exactly what you did). More often than not, people say "I followed all of the steps in the manual", but then learn to find out that they either did something wrong or skipped a step along the way. Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: johnny p. [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 4:18 PM To: Sam Masiello; [EMAIL PROTECTED] Subject: RE: [PHP] mcal installation yes. I installed both the libraries. I followed all the directions on the mcal web site for installing it. johnny p. -Original Message- From: Sam Masiello [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 3:17 PM To: johnny p.; [EMAIL PROTECTED] Subject: RE: [PHP] mcal installation Since you didn't mention it specifically, I thought I should ask: Did you also download the mcal library or did you only include -with-mcal when you compiled PHP? Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] -Original Message- From: johnny p. [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 3:27 PM To: [EMAIL PROTECTED] Subject:[PHP] mcal installation Hi, I am working on a site that requires extensive calendar math on it and read about PHP and using mcal with it. I tried configuring mcal to work with it and was wondering if anyone has had any success getting it to work. I followed all the steps I could find, but I have no idea how to set up individual user directories or even if the thing works. I don't even get any errors or output. I make the mcal function calls and... nothing. If anyone has any experience with getting this installed and configured, I would be much appreciated. thanks, johnny p. --- John Patton, CTO [EMAIL PROTECTED] Gameloop, Inc. http://www.gameloop.com Austin, TX 512-699-5534 -- 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 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]