[PHP] Update PHP
Hello, I have a dedied server (with linux RedHat 7.2) and PHP 4.1.2. I'd like to update to the version 4.2.1 Is it enought : tar -zxvf phpfile4-2-1.gz It's the first time I install PHP on linux in general I work on Windows. Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Update PHP
CI I have a dedied server (with linux RedHat 7.2) and PHP 4.1.2. CI I'd like to update to the version 4.2.1 Wise. Be sure to read the changelog! CI Is it enought : CI tar -zxvf phpfile4-2-1.gz No. All that does is unpack the distribution. You must now build the PHP module. If you were the person who installed PHP before, then you probably remember the process. It's a configure/make/make install process. You may want to do a phpinfo() on your existing installation, to determine the configuration directives that were used. Likely, you will want to use the same ones (or nearly the same) with this new build. Once the configure is successful, do a make make install. This will place the PHP module in the correct place. You need to then restart Apache. Note that this is a very simple description. The PHP Manual has a wonderful and thorough chapter on installation and configuration. Or, if you need extra hand-holding, I have a hand-holding tutorial called Setup and Install Apache with PHP 4.2.1 as a Dynamic Module at http://www.thickbook.com/extra/php_apachephp4_ix.phtml Although you wouldn't need the Apache part, just the PHP building part. Good luck! - Julie -- Julie Meloni -- [EMAIL PROTECTED] -- www.thickbook.com Find Sams Teach Yourself MySQL in 24 Hours at http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Update PHP
If you were the person who installed PHP before, then you probably remember the process. It's a configure/make/make install process. Sure :) But I rent a dedicated server with all preinstalled, PHP, MySQL ... Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re[2]: [PHP] Update PHP
If you were the person who installed PHP before, then you probably remember the process. It's a configure/make/make install process. CI Sure :) CI But I rent a dedicated server with all preinstalled, PHP, MySQL ... Ok, if you're saying you do not have root access, then you have to have someone with root access do it for you. If you are saying that you didn't do it the first time and you don't know how, then read the instruction manual or tutorial _very_ closely, since it will be your first time. - Julie -- Julie Meloni -- [EMAIL PROTECTED] -- www.thickbook.com Find Sams Teach Yourself MySQL in 24 Hours at http://www.amazon.com/exec/obidos/ASIN/0672323494/thickbookcom-20 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Update PHP
You may want to do a phpinfo() on your existing installation, to determine the configuration directives that were used. Likely, you will want to use the same ones (or nearly the same) with this new build. I have that : System Linux localhost.localdomain 2.4.7-10BOOT #1 Thu Sep 6 16:15:00 EDT 2001 i686 unknown Build Date May 30 2002 Configure Command './configure' '--with-apache=../apache_1.3.24' '--with-dbase' '--with-filepro' '--with-xml' '--enable-ftp' '--with-db' '--enable-bcmath' '--enable-calendar' '--with-jpeg-dir' '--with-png-dir' '--with-gd' '--enable-gd-native-ttf' '--with-freetype-dir' '--with-gettext' '--with-pgsql=/usr' '--with-mysql=/usr' '--with-zlib-dir' '--enable-trans-sid' '--with-imap' '--with-kerberos' '--with-imap-ssl' '--with-openssl' '--enable-sysvsem' '--enable-sysvshm' Server API Apache Virtual Directory Support disabled Configuration File (php.ini) Path /usr/local/lib/php.ini ZEND_DEBUG disabled Thread Safety disabled Could you explain me a little bit more, how to do ? Bye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] No Sense: [PHP] Update: [PHP] Weird?
*shakes head* i know that $date is a string. your script is failing because you are trying to write to directory C:\\ccl_www\\$date, which does not exist. you have to create it before you try and write files into it. jtjohnston wrote: No!? $date is a string?! $date = date (MD); How does that make a difference? $to_path = c:\\ccl_www\\.$date.\\ccl_www\\; You want me to change it to: $to_path = c:\\ccl_www\\$date\\ccl_www\\; Does anyone follow why? Scott Furt wrote: I meant, have you created a physical directory named $date? That's your problem. There's no directory named $date on your computer, and you're trying to write files into a non-existent directory. jtjohnston wrote: I have created date :) $date = date (MD); That's not it. It seems to fail at one level or another, I think, becuase the function calls itself - and probably gets lost somehow. John ... i think you might have to create the $date directory before writing a file to it. writing to /tmp/dir/file.txt will fail if the directory dir doesn't exist. ?php ### $date = date (MD); ### ### Don't forget trailing slash # ### $from_path = c:\\program files\\easyphp\\ccl_www\\; $to_path = c:\\ccl_www\\.$date.ccl_www\\; ### if(!is_dir($from_path)) { echo failed; exit; }else{ rec_copy($from_path, $to_path); echo files copies from $from_path and backed up to $to_path; } # function rec_copy ($from_path, $to_path) { if(!is_dir($to_path)) mkdir($to_path, 0777); $this_path = getcwd(); if (is_dir($from_path)) { chdir($from_path); $handle=opendir('.'); while (($file = readdir($handle))!==false) { if (($file != .) ($file != ..)) { if (is_dir($file)) { rec_copy ($from_path.$file./, $to_path.$file./); chdir($from_path); }else{ # echo error if (is_dir($file))br; } if (is_file($file)) { copy($from_path.$file, $to_path.$file); }else{ # echo error copy($from_path.$file, $to_path.$file)br; } }#end (($file != .) }#end while (($file closedir($handle); }# end if (is_dir else{ # echo if (is_dir($from_path))br; } }# end function ? -- John Taylor-Johnston - ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - Université de Sherbrooke: http://compcanlit.ca/ 819-569-2064 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: No Sense: [PHP] Update: [PHP] Weird?
At 17.03.2002 17:09, you wrote: Hey folks, I read this with half of mind, but as I know, the function date needs something to convert from. $date = date (MD); for my opinion it should be called $date=date(MD,time()); or $date=date(MD,mktime(..)); then everything should work $to_path = c:\\ccl_www\\.$date.\\ccl_www\\; or $to_path = c:\\ccl_www\\$date\\ccl_www\\; HTH Oliver -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Update: [PHP] Weird?
I have created date :) $date = date (MD); That's not it. It seems to fail at one level or another, I think, becuase the function calls itself - and probably gets lost somehow. John ... i think you might have to create the $date directory before writing a file to it. writing to /tmp/dir/file.txt will fail if the directory dir doesn't exist. ?php ### $date = date (MD); ### ### Don't forget trailing slash # ### $from_path = c:\\program files\\easyphp\\ccl_www\\; $to_path = c:\\ccl_www\\.$date.ccl_www\\; ### if(!is_dir($from_path)) { echo failed; exit; }else{ rec_copy($from_path, $to_path); echo files copies from $from_path and backed up to $to_path; } # function rec_copy ($from_path, $to_path) { if(!is_dir($to_path)) mkdir($to_path, 0777); $this_path = getcwd(); if (is_dir($from_path)) { chdir($from_path); $handle=opendir('.'); while (($file = readdir($handle))!==false) { if (($file != .) ($file != ..)) { if (is_dir($file)) { rec_copy ($from_path.$file./, $to_path.$file./); chdir($from_path); }else{ # echo error if (is_dir($file))br; } if (is_file($file)) { copy($from_path.$file, $to_path.$file); }else{ # echo error copy($from_path.$file, $to_path.$file)br; } }#end (($file != .) }#end while (($file closedir($handle); }# end if (is_dir else{ # echo if (is_dir($from_path))br; } }# end function ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Update: [PHP] Weird?
I meant, have you created a physical directory named $date? That's your problem. There's no directory named $date on your computer, and you're trying to write files into a non-existent directory. jtjohnston wrote: I have created date :) $date = date (MD); That's not it. It seems to fail at one level or another, I think, becuase the function calls itself - and probably gets lost somehow. John ... i think you might have to create the $date directory before writing a file to it. writing to /tmp/dir/file.txt will fail if the directory dir doesn't exist. ?php ### $date = date (MD); ### ### Don't forget trailing slash # ### $from_path = c:\\program files\\easyphp\\ccl_www\\; $to_path = c:\\ccl_www\\.$date.ccl_www\\; ### if(!is_dir($from_path)) { echo failed; exit; }else{ rec_copy($from_path, $to_path); echo files copies from $from_path and backed up to $to_path; } # function rec_copy ($from_path, $to_path) { if(!is_dir($to_path)) mkdir($to_path, 0777); $this_path = getcwd(); if (is_dir($from_path)) { chdir($from_path); $handle=opendir('.'); while (($file = readdir($handle))!==false) { if (($file != .) ($file != ..)) { if (is_dir($file)) { rec_copy ($from_path.$file./, $to_path.$file./); chdir($from_path); }else{ # echo error if (is_dir($file))br; } if (is_file($file)) { copy($from_path.$file, $to_path.$file); }else{ # echo error copy($from_path.$file, $to_path.$file)br; } }#end (($file != .) }#end while (($file closedir($handle); }# end if (is_dir else{ # echo if (is_dir($from_path))br; } }# end function ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] No Sense: [PHP] Update: [PHP] Weird?
No!? $date is a string?! $date = date (MD); How does that make a difference? $to_path = c:\\ccl_www\\.$date.\\ccl_www\\; You want me to change it to: $to_path = c:\\ccl_www\\$date\\ccl_www\\; Does anyone follow why? Scott Furt wrote: I meant, have you created a physical directory named $date? That's your problem. There's no directory named $date on your computer, and you're trying to write files into a non-existent directory. jtjohnston wrote: I have created date :) $date = date (MD); That's not it. It seems to fail at one level or another, I think, becuase the function calls itself - and probably gets lost somehow. John ... i think you might have to create the $date directory before writing a file to it. writing to /tmp/dir/file.txt will fail if the directory dir doesn't exist. ?php ### $date = date (MD); ### ### Don't forget trailing slash # ### $from_path = c:\\program files\\easyphp\\ccl_www\\; $to_path = c:\\ccl_www\\.$date.ccl_www\\; ### if(!is_dir($from_path)) { echo failed; exit; }else{ rec_copy($from_path, $to_path); echo files copies from $from_path and backed up to $to_path; } # function rec_copy ($from_path, $to_path) { if(!is_dir($to_path)) mkdir($to_path, 0777); $this_path = getcwd(); if (is_dir($from_path)) { chdir($from_path); $handle=opendir('.'); while (($file = readdir($handle))!==false) { if (($file != .) ($file != ..)) { if (is_dir($file)) { rec_copy ($from_path.$file./, $to_path.$file./); chdir($from_path); }else{ # echo error if (is_dir($file))br; } if (is_file($file)) { copy($from_path.$file, $to_path.$file); }else{ # echo error copy($from_path.$file, $to_path.$file)br; } }#end (($file != .) }#end while (($file closedir($handle); }# end if (is_dir else{ # echo if (is_dir($from_path))br; } }# end function ? -- John Taylor-Johnston - ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - Université de Sherbrooke: http://compcanlit.ca/ 819-569-2064 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: No Sense: [PHP] Update: [PHP] Weird?
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... No!? $date is a string?! $date = date (MD); How does that make a difference? $to_path = c:\\ccl_www\\.$date.\\ccl_www\\; You want me to change it to: $to_path = c:\\ccl_www\\$date\\ccl_www\\; Does anyone follow why? Scott Furt wrote: I meant, have you created a physical directory named $date? That's your problem. There's no directory named $date on your computer, and you're trying to write files into a non-existent directory. jtjohnston wrote: I have created date :) $date = date (MD); That's not it. It seems to fail at one level or another, I think, becuase the function calls itself - and probably gets lost somehow. John ... i think you might have to create the $date directory before writing a file to it. writing to /tmp/dir/file.txt will fail if the directory dir doesn't exist. I think what is being suggested is that you may not have a directory named whatever c:\\ccl_www\\.$date.\\ccl_www\\ expands to; frinstance if $date were 0203 you would need to have an existing directory c:\\ccl_www\\0203\\ccl_www\\ Of course, I could be misunderstanding... -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php