Re: [PHP] date time problem

2013-10-06 Thread Farzan Dalaee
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

Re: [PHP] date time problem

2013-10-06 Thread Farzan Dalaee
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

Re: [PHP] date time problem

2013-10-06 Thread Farzan Dalaee
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

[PHP] how to see all sessions sets in server

2013-08-04 Thread Farzan Dalaee
hi i want to write online user module for my site and i want to check $_SESSION['userID'] to find all users id who loged in but when i echo this code its return only current user detail how i can see all sessions? foreach($_SESSION as $k = $v) { echo $k.--.$v; } or how i handle online

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Farzan Dalaee
:02 AM, Farzan Dalaee farzan.dal...@gmail.com wrote: hi i want to write online user module for my site and i want to check $_SESSION['userID'] to find all users id who loged in but when i echo this code its return only current user detail how i can see all sessions? foreach($_SESSION as $k

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Farzan Dalaee
On Sun, 2013-08-04 at 14:56 +0430, Farzan Dalaee wrote: You mean when user logged in i add new record to table and when logged out i delete the row? So if user close the browser without logout how can i find user is online or not? Sent from my iPhone On Aug 4, 2013, at 14:44

Re: [PHP] how to see all sessions sets in server

2013-08-04 Thread Farzan Dalaee
On Sun, Aug 4, 2013 at 4:00 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: Farzan Dalaee farzan.dal...@gmail.com wrote: On Sun, 2013-08-04 at 14:56 +0430, Farzan Dalaee wrote: You mean when user logged in i add new record to table and when logged out i delete

[PHP] php links doest work when im using mod rewrite

2013-06-01 Thread Farzan Dalaee
i starting to use mod rewrite but all my images or js links doest work my current query string is: index.php?r=blogpage=2 i want to change it with this: /blog/2 this is my .htaccess file RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /framework/?r=$1page=$2 [L] but none of my js or css cant find

Re: [PHP] php links doest work when im using mod rewrite

2013-06-01 Thread Farzan Dalaee
} !-f RewriteCond %{REQUEST_FILENAME} !-d that should exclude existing files and directories from rewriting... Am 01.06.2013, 22:39 Uhr, schrieb Farzan Dalaee farzan.dal...@gmail.com: i starting to use mod rewrite but all my images or js links doest work my current query string is: index.php?r

Re: [PHP] totally a newbie in sending phone number to a webserver

2013-05-21 Thread Farzan Dalaee
require_once('nusoap/nusoap.php'); $client = new nusoap_client('http://smsprovider.com/post/send.asmx?wsdl' ); $err = $client-getError(); if ($err) { echo 'Constructor error' . $err; } $parameters['username'] = ; $parameters['password'] = ; $parameters['to'] =

[PHP] how to read emails with php

2012-12-04 Thread Farzan Dalaee
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 -- 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

2012-12-04 Thread Farzan Dalaee
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

Re: [PHP] how to read emails with php

2012-12-04 Thread Farzan Dalaee
, 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

Re: [PHP] how to read emails with php

2012-12-04 Thread Farzan Dalaee
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

[PHP] reload page without use header

2012-06-17 Thread Farzan Dalaee
hi guys is there any way to reload page without using header('location :index.php'); and javascript? Best Regards -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Which workstation????

2012-06-05 Thread Farzan Dalaee
hi guys i really confuse by choosing the best work station for php ( cakephp , smarty , net bean , ... ) , please give me some advisdes. and please tell why which one is better, tnx best regards farzan