Re: [PHP] date time problem
This should help you out http://stackoverflow.com/questions/365191/how-to-get-time-difference-in-minutes-in-php On Oct 6, 2013 6:07 PM, Farzan Dalaee farzan.dal...@gmail.com wrote: Its so freaky Best Regards Farzan Dalaee On Oct 7, 2013, at 2:29, Jim Giner jim.gi...@albanyhandball.com wrote: On 10/6/2013 6:49 PM, Farzan Dalaee wrote: Try this please gmdate(H:i:s, $diff%86400) Best Regards Farzan Dalaee On Oct 7, 2013, at 2:12, Jim Giner jim.gi...@albanyhandball.com wrote: On 10/6/2013 6:36 PM, Farzan Dalaee wrote: You should use gmdate() if you want to how many hours left to expire $time_left = gmdate(H:i:s,$diff); Best Regards Farzan Dalaee On Oct 7, 2013, at 1:49, Jim Giner jim.gi...@albanyhandball.com wrote: I always hate dealing with date/time stuff in php - never get it even close until an hour or two goes by anyway I have this: // get two timestamp values $exp_time = $_COOKIE[$applid.expire]; $curr_time = time(); // get the difference $diff = $exp_time - $curr_time; // produce a display time of the diff $time_left = date(h:i:s,$diff); Currently the results are: exp_time is 06:55:07 curr_time is 06:12:03 the diff is 2584 All of these are correct. BUT time_left is 07:43:04 when it should be only 00:43:04. So - where is the hour value of '07' coming from?? And how do I get this right? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Thanks for the quick response, but why do I want to show the time in GMT? However, I did try it, changing the 'time_left' calc to use gmdate. Now instead of a 7 for hours I have a 12. exp 07:34:52 curr 06:40:14 diff 3158 left is 12:52:38 The 52:38 is the correct value, but not the 12. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Doesn't work either. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mongo usage
You commented out the setting of yhe addresses variable On Jul 6, 2013 1:42 PM, Tim Dunphy bluethu...@gmail.com wrote: Hey all, I'm trying to pick up some basic use of MongoDB using PHP. I seem to have hit an early obstacle that I'd like your opinion on. I try to pass an array to the mongo insert function, but for some reason the function does not recognize the array I'm passing. Even though I can perform a var_dump() on the array and see the contents. Here's the output I'm seeing (with error): Mongo Test Page array(6) { [first_name]= string(5) Peter [last_name]= string(6) Parker [address]= string(16) 175 Fifth Avenue [city]= string(8) New York [state]= string(2) NY [zip]= string(5) 10010 } *Notice*: Undefined variable: addresses in */var/www/mongomaven/index.php* on line *36* *Fatal error*: Call to a member function insert() on a non-object in * /var/www/mongomaven/index.php* on line *36* * * And here's the code: html head titleMongo Test/title /head body Mongo Test Page ?php $connection = new Mongo(); $db = $connection-jfdb; $collection = $db-addresses; //$adresses = $connection-jfdb-adresses; $address = array( 'first_name' = 'Peter', 'last_name' = 'Parker', 'address' = '175 Fifth Avenue', 'city' = 'New York', 'state' = 'NY', 'zip' = '10010',); var_dump($address); echo 'br /'; $addresses-insert($address); ? /body /html I'd appreciate any advice you might have. Thanks, Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
Re: [PHP] timezone
On Mon, Apr 15, 2013 at 12:14 PM, Larry Martell larry.mart...@gmail.comwrote: I have a client that has an app the runs with PHP 5.1.6. They want to upgrade to 5.3.3. First issue I ran into, they have a line of code that is: $deftz = date(T); I'm getting this for that line: [Mon Apr 15 10:44:16 2013] [error] [client 10.7.14.21] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Denver' for 'MDT/-6.0/DST' instead in /home/www/itrade-dev/defs.inc on line 349 So I changed it to $deftz = date.timezone; and now I get: [Mon Apr 15 10:49:35 2013] [error] [client 10.7.14.21] PHP Notice: Use of undefined constant date - assumed 'date' in /home/www/itrade-dev/defs.inc on line 349 [Mon Apr 15 10:49:35 2013] [error] [client 10.7.14.21] PHP Notice: Use of undefined constant timezone - assumed 'timezone' in /home/www/itrade-dev/defs.inc on line 349 Why is this undefined? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php You need to set the default time zone in this fashion, http://php.net/manual/en/function.date-default-timezone-set.php
Re: [PHP] UNLESS Statement Equivalent
Since you already have the return statement with the if statement the else isn't required. If those three statements are true you would exit the call any ways On Mar 11, 2013 4:33 PM, Angela Barone ang...@italian-getaways.com wrote: I'm looking for an 'unless' statement, but as far as I can tell, PHP doesn't have one. Hopefully someone can help me rewrite my statement. In English, I want to say: always do something UNLESS these 3 conditions are met. The best I've been able to come up with in PHP is this: if ( ($current_page == $saved_page) and ($current_ip == $saved_ip) and ($current_dt ($saved_dt + 3600)) ) { return; } else { $query = UPDATE `table` SET `hits` = '$count', `agent` = '$agent', `ts` = '$date_time' WHERE `page` = '$page'; $result = mysql_query($query) or die ('Error! -- ' . mysql_error()); } However, I've read where this is not really acceptable. Can someone help me eliminate the 'else' portion of this if statement? Thank you, Angela P.S. I realize the above isn't complete code but it should still be clear. If not, let me know. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] UNLESS Statement Equivalent
What you have if ( ($current_page == $saved_page) and ($current_ip == $saved_ip) and ($current_dt ($saved_dt + 3600)) ) { return; } else { $query = UPDATE `table` SET `hits` = '$count', `agent` = '$agent', `ts` = '$date_time' WHERE `page` = '$page'; $result = mysql_query($query) or die ('Error! -- ' . mysql_error()); } is the same as writing it as if ( ($current_page == $saved_page) ($current_ip == $saved_ip) ($current_dt ($saved_dt + 3600)) ) { return; } $query = UPDATE `table` SET `hits` = '$count', `agent` = '$agent', `ts` = '$date_time' WHERE `page` = '$page'; $result = mysql_query($query) or die ('Error! -- ' . mysql_error()); On Mon, Mar 11, 2013 at 5:48 PM, Angela Barone ang...@italian-getaways.comwrote: On Mar 11, 2013, at 2:38 PM, Jonathan Sundquist wrote: Since you already have the return statement with the if statement the else isn't required. If those three statements are true you would exit the call any ways I don't follow. The else contains the meat of the statement. Angela
Re: [PHP] UNLESS Statement Equivalent
Angela, the variable $current_page does not exist. so $curent_page does not equal $saved_page. Also the ! in front of the entire statement means that all of this is false. Since one items is true and not true = false Don't save is echoed out. If you are looking to save the results based on the above sample it would look like if(($page === $saved_page) ($current_ip === $saved_ip) ($current_dt ($saved_dt +3600)) { //save the results } else { //don't save } I would also suggest keeping with your original statement to return early and return often. Its best to exit out of your functions sooner than later. Specially if its a large function. On Mon, Mar 11, 2013 at 6:03 PM, Angela Barone ang...@italian-getaways.comwrote: On Mar 11, 2013, at 3:47 PM, Ashley Sheridan wrote: if ( !( ($current_page == $saved_page) and ($current_ip == $saved_ip) and ($current_dt ($saved_dt + 3600)) ) ) Hello Ash, This makes sense to me, but I can't get it to work, so I'm either not understanding it or I'm asking the wrong question. Here's a complete scriptlet: ?php $saved_page = 'ddd'; $page = 'ddd'; $saved_ip = '1.1.1.1'; $ip = '1.1.1.1'; $saved_dt = '2013-03-11 11:11:11'; $current_dt = '2013-03-11 11:22:11'; if ( !( ($current_page == $saved_page) and ($current_ip == $saved_ip) and ($current_dt ($saved_dt + 3600)) ) ) { echo 'Save results.'; } else { echo Don't save.; } ? Using the supplied data, the result should be Don't save. Can you see what's wrong? Angela -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Web User Management
For Zend Framework 2, take a look at https://github.com/ZF-Commons/ZfcUser On Wed, Jan 30, 2013 at 10:19 AM, Adolfo Olivera olivera.ado...@gmail.comwrote: You can take a look at the classes from the Zend Framework (they can be used stand alone as well) Thanks Marco, which classes specifically are you talking about. Where can I download them from and get documentation on them? I looked into zend's web site and it is a bit overwhelming, so may be you can point me in the right direction. On Wed, Jan 30, 2013 at 11:53 AM, ma...@behnke.biz ma...@behnke.biz wrote: Adolfo Olivera olivera.ado...@gmail.com hat am 30. Januar 2013 um 15:18 geschrieben: My questions are 1 Is there some kind of library, framework I could utilize to save me some work? You can take a look at the classes from the Zend Framework (they can be used stand alone as well) 2 Any thoughts, lessons learned from more senior programmers, I'm fairly new with PHP. Think about security issues like encrypted transfer of passwords, sessions hijacking, sql injection, sessions without cookies and stuff like that. -- Marco Behnke Dipl. Informatiker (FH), SAE Audio Engineer Diploma Zend Certified Engineer PHP 5.3 Tel.: 0174 / 9722336 e-Mail: ma...@behnke.biz Softwaretechnik Behnke Heinrich-Heine-Str. 7D 21218 Seevetal http://www.behnke.biz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Adolfo Olivera 15-3429-9743
Re: [PHP] Strip emails from a document
If you are expecting the email address to always be the same but the first part being different you can create a regular expression to match it that way. Using a regular expression over all is going to be your best bet as shiplu suggested. On Sat, Jan 26, 2013 at 10:54 AM, shiplu shiplu@gmail.com wrote: I think you meant extract emails from document, right? I'd probably find `@` and iterate before and after unless I get posix punct, space, characters. But it'll probably give some false matches. So its really hard to find 100% emails from an arbitrary text. This is because valid email can contain many different type of characters. According to RFC 822 space is a valid character in email. So finding all the valid emails is tough. In a *trivial situation* an email would be separated by space. So find @ first. Then go back and front to find the first space. You'll get most common emails. Something like using this regex pattern [^[:space:]@]+@[^[:space:]]+ would suffice. But keep in mind, it'll work on trivial cases. Not on special cases. Regular expression can not be used on special cases. Here is full RFC-822 compliant email matching regular expression http://ex-parrot.com/~pdw/Mail-RFC822-Address.html More information can be found on http://stackoverflow.com/questions/201323/using-a-regular-expression-to-validate-an-email-address On Sat, Jan 26, 2013 at 10:24 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I thought I had a function to strip emails from a document, but I can't find it. So, before I start writing a common script, do any of you have a simple script to do this? Here's an example of the problem: Before: Will Alex ale...@cit.msu.edu;Moita Zact za...@cit.msu.edu;Bob Arms ar...@cit.msu.edu;Meia Terms term...@cit.msu.edu; After: ale...@cit.msu.edu za...@cit.msu.edu ar...@cit.msu.edu term...@cit.msu.edu Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Shiplu.Mokadd.im ImgSign.com | A dynamic signature machine Innovation distinguishes between follower and leader
Re: [PHP] date problem
1/3/2012 is in fact less then 9/16/2012. On Thu, Jan 3, 2013 at 3:57 PM, Marc Fromm marc.fr...@wwu.edu wrote: I am comparing to dates. define('WSOFFBEGIN','09/16/2012'); $jes = 01/03/2012; if ( date(m/d/Y, strtotime($jes)) date(m/d/Y, strtotime(WSOFFBEGIN)) ) { $error = MUST begin after . WSOFFBEGIN . \n; } I cannot figure out why the $error is being assigned inside the if statement, since the statement should be false. 01/03/2012 is not less than 09/16/2012. Marc
Re: [PHP] date problem
Marc, When you take a date and do a strtotime you are converting it to an int which you can compare to each other much easier. So for your above example you would be best doing. define('WSOFFBEGIN','09/16/2012'); $jes = 01/03/2012; if ( strtotime($jes) strtotime(WSOFFBEGIN) ) { $error = MUST begin after . WSOFFBEGIN . \n; } On Thu, Jan 3, 2013 at 4:12 PM, Marc Fromm marc.fr...@wwu.edu wrote: Thanks for the reply. Every example on comparing dates in PHP that I found uses the strtotime function which I am using. What other type can I use? When is this example below supposed to work? // your first date coming from a mysql database (date fields) $dateA = '2008-03-01 13:34'; // your second date coming from a mysql database (date fields) $dateB = '2007-04-14 15:23'; if(strtotimehttp://www.php.net/strtotime($dateA) strtotime http://www.php.net/strtotime($dateB)){ // bla bla } Thanks From: Serge Fonville [mailto:serge.fonvi...@gmail.com] Sent: Thursday, January 03, 2013 2:05 PM To: Marc Fromm Cc: php-general@lists.php.net Subject: Re: [PHP] date problem Hi. date returns a string You should compare a different type for bigger/smaller than HTH Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server https://connect.microsoft.com/SQLServer/feedback/details/417926/truncate-partition-of-partitioned-table 2013/1/3 Marc Fromm marc.fr...@wwu.edumailto:marc.fr...@wwu.edu I am comparing to dates. define('WSOFFBEGIN','09/16/2012'); $jes = 01/03/2012; if ( date(m/d/Y, strtotime($jes)) date(m/d/Y, strtotime(WSOFFBEGIN)) ) { $error = MUST begin after . WSOFFBEGIN . \n; } I cannot figure out why the $error is being assigned inside the if statement, since the statement should be false. 01/03/2012 is not less than 09/16/2012. Marc
Re: [PHP] Re: form validation
On Thu, Dec 20, 2012 at 9:34 AM, Jim Giner jim.gi...@albanyhandball.comwrote: If you are using mysql for a db, then you should already be using mysql_real_escape_string in place of addslashes. You should not be using mysql_real_escape_string going forward as it will be deprecated in php 5.5.0. http://php.net/manual/en/function.mysql-real-escape-string.php. You should be looking to use either mysqli functions or the PDO class.
Re: [PHP] how to read emails with php
What does it say when you call imap_errors or imap_last_error? On Tue, Dec 4, 2012 at 10:02 AM, Farzan Dalaee farzan.dal...@gmail.comwrote: i dont have access to log files on server On Azar 14, 1391, at 5:51 PM, Daniel Brown wrote: On Tue, Dec 4, 2012 at 8:10 AM, Farzan Dalaee farzan.dal...@gmail.com wrote: hi guys i want to open an email content ( subject ,body , attachment ) with php i use imap_php but its wont connect to host what should i do? thanx Start by finding out why it won't connect. Check the logs on the server if you can, that's always the best place to look first. -- /Daniel P. Brown Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to read emails with php
Try removing the call to the inbox and try getting a list of all the folders using imap_listmailbox($host, *); On Tue, Dec 4, 2012 at 12:24 PM, Farzan Dalaee farzan.dal...@gmail.comwrote: Warning: imap_open() [function.imap-open]: Couldn't open stream mail.mydomain.net:143/pop3INBOX in C:\xampp\htdocs\mail.php on line 6 Warning: imap_check() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\mail.php on line 10 Notice: Unknown: Can't open mailbox mail.mydomain.net:143/pop3INBOX: no such mailbox (errflg=2) in Unknown on line 0 this is my code $host = 'mail.mydomain.net:143/pop3'; $user = 'x...@mydomain.net'; $password = 'myPassword'; $mailbox = {$host}INBOX; $mbx = imap_open($mailbox , $user , $password); $check = imap_check($mbx); On 12/4/12, Jonathan Sundquist jsundqu...@gmail.com wrote: What does it say when you call imap_errors or imap_last_error? On Tue, Dec 4, 2012 at 10:02 AM, Farzan Dalaee farzan.dal...@gmail.comwrote: i dont have access to log files on server On Azar 14, 1391, at 5:51 PM, Daniel Brown wrote: On Tue, Dec 4, 2012 at 8:10 AM, Farzan Dalaee farzan.dal...@gmail.com wrote: hi guys i want to open an email content ( subject ,body , attachment ) with php i use imap_php but its wont connect to host what should i do? thanx Start by finding out why it won't connect. Check the logs on the server if you can, that's always the best place to look first. -- /Daniel P. Brown Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to read emails with php
It is very likely that the host you are using is blocking access to that port. Also depending on the host you are going to you may need to enable imap as well. On Tue, Dec 4, 2012 at 12:44 PM, Farzan Dalaee farzan.dal...@gmail.comwrote: Same error I think its need something else for opening service like ssl setting or somthing like that Or this host im using block imap or pop3 access Best Regard Farzan Dalaee On Dec 4, 2012 10:03 PM, Jonathan Sundquist jsundqu...@gmail.com wrote: Try removing the call to the inbox and try getting a list of all the folders using imap_listmailbox($host, *); On Tue, Dec 4, 2012 at 12:24 PM, Farzan Dalaee farzan.dal...@gmail.comwrote: Warning: imap_open() [function.imap-open]: Couldn't open stream mail.mydomain.net:143/pop3INBOX in C:\xampp\htdocs\mail.php on line 6 Warning: imap_check() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\mail.php on line 10 Notice: Unknown: Can't open mailbox mail.mydomain.net:143/pop3INBOX: no such mailbox (errflg=2) in Unknown on line 0 this is my code $host = 'mail.mydomain.net:143/pop3'; $user = 'x...@mydomain.net'; $password = 'myPassword'; $mailbox = {$host}INBOX; $mbx = imap_open($mailbox , $user , $password); $check = imap_check($mbx); On 12/4/12, Jonathan Sundquist jsundqu...@gmail.com wrote: What does it say when you call imap_errors or imap_last_error? On Tue, Dec 4, 2012 at 10:02 AM, Farzan Dalaee farzan.dal...@gmail.comwrote: i dont have access to log files on server On Azar 14, 1391, at 5:51 PM, Daniel Brown wrote: On Tue, Dec 4, 2012 at 8:10 AM, Farzan Dalaee farzan.dal...@gmail.com wrote: hi guys i want to open an email content ( subject ,body , attachment ) with php i use imap_php but its wont connect to host what should i do? thanx Start by finding out why it won't connect. Check the logs on the server if you can, that's always the best place to look first. -- /Daniel P. Brown Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SNMP via PHP
There appears to be quite a few examples, https://www.google.com/search?q=php+snmp+examplehttps://www.google.com/search?q=php+snmp+exampleaq=0oq=php+snmp+sugexp=chrome,mod=0sourceid=chromeie=UTF-8, and tutorials, https://www.google.com/search?q=php+snmp+examplehttps://www.google.com/search?q=php+snmp+exampleaq=0oq=php+snmp, on google. On Mon, Oct 15, 2012 at 7:25 AM, Lester Caine les...@lsces.co.uk wrote: Bastien wrote: Xenoss is a python solution with tons of monitoring capability. It's well worth a look If I wanted to move to python then I would not be asking here ;) I have enough of python on Hg and what I'm looking for here is PHP code that I can massage to do what I need ... I'm still working my way around this. cacti provides a nice monitoring layer and is PHP, but is not helping to set up SNMP on the client machines, so I'm looking for something that can help edit MIB files and also check the SNMP link to remote machines ... -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=**contacthttp://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.**ukhttp://rainbowdigitalmedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] SNMP via PHP
There appears to be quite a few examples, https://www.google.com/search?q=php+snmp+examplehttps://www.google.com/search?q=php+snmp+exampleaq=0oq=php+snmp+sugexp=chrome,mod=0sourceid=chromeie=UTF-8, and tutorials, https://www.google.com/search?q=php+snmp+examplehttps://www.google.com/search?q=php+snmp+exampleaq=0oq=php+snmp, on google. On Mon, Oct 15, 2012 at 7:25 AM, Lester Caine les...@lsces.co.uk wrote: Bastien wrote: Xenoss is a python solution with tons of monitoring capability. It's well worth a look If I wanted to move to python then I would not be asking here ;) I have enough of python on Hg and what I'm looking for here is PHP code that I can massage to do what I need ... I'm still working my way around this. cacti provides a nice monitoring layer and is PHP, but is not helping to set up SNMP on the client machines, so I'm looking for something that can help edit MIB files and also check the SNMP link to remote machines ... -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=**contacthttp://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.**ukhttp://rainbowdigitalmedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Friday - Return of Brain Teasers
It means we require more cowbell. On Fri, Oct 5, 2012 at 3:34 PM, Steven Staples sstap...@mnsi.net wrote: Subject: [PHP] Friday - Return of Brain Teasers About five-and-a-half years ago, we had a brainteasers thread going on[1]. Last year it was briefly resurrected[2], and both times got some good content and dialogue going. So I'd like to reprise the thread in 2012, as well. Those of you connected to me on Facebook (parasane) or Twitter (@oidk) might already have seen it, but a simple one to get things rolling: ?php require ++$cowbell; ? Is this supposed to execute to anything? I got this: Warning: require(1) [function.require]: failed to open stream: No such file or directory in C:\xampp\htdocs\cowbell.php on line 1 Fatal error: require() [function.require]: Failed opening required '1' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\cowbell.php on line 1 -- I do know what it means, just thought maybe there was something more significant to it than this... Guess what? I got a fever. And the only prescription...is more cow bell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] install PHP 5.4 by RPM
What version of centso are you running? - The cold winds are rising On Sep 24, 2012 10:28 PM, lx lxlenovos...@gmail.com wrote: Hello: I have installed the PHP and Apache by RPM, and the version of rpm packets is: httpd-2.2.3-63.el5.centos.1.x86_64.rpm apr-1.2.7-11.el5_3.1.x86_64.rpm apr-util-1.2.7-11.el5.x86_64.rpm postgresql-libs-8.1.18-2.el5_4.1.x86_64.rpm gmp-4.1.4-10.el5.x86_64.rpm php-common-5.1.6-27.el5.x86_64.rpm php-cli-5.1.6-27.el5.x86_64.rpm php-5.1.6-27.el5.x86_64.rpm As you see, this version of PHP is 5.1.6, so I want to installed PHP 5.4. I want to know the list of PHP 5.4 RPM packets, these can replace the php-common-5.1.6-27.el5.x86_64.rpm, php-cli-5.1.6-27.el5.x86_64.rpm and php-5.1.6-27.el5.x86_64.rpm. Thank you.
Re: [PHP] Cost of redirect and site domain switch? Good Practice / Bad Practice / Terrible Practice
Depending on how long you have why not just do an alias? No redirect required. On Fri, Aug 17, 2012 at 2:35 PM, Tristan sunnrun...@gmail.com wrote: So, I need to change from somedomain.com to somenewdomain.com I was thinking of doing this 1) create an alias to the site somenewdomain.com to point to current server 2) run permanent 301 redirect from somedomain.com to somenewdomain.com I was thinking this was a clean safe way to do it so we dont have to run a global find replace. Concerns might be but, I don't know for sure? 1) SEO 2) processing / time / cost for the 301 redirect on any old somedomain.comrequests What do you guys think? Thanks, T