Re: [PHP] How to "download" a multi-part file at the "server" side?

2013-11-02 Thread Aziz Saleh
On Sat, Nov 2, 2013 at 1:03 PM, Ajay Garg wrote: > Hi all. > > 1. > I could have the proper "$_FILES["userfile"]["name"]" been echoed back, by > replacing >ContentBody cbFile = new > FileBody(file, "image/png"); > > with >

Re: [PHP] How to "download" a multi-part file at the "server" side?

2013-11-02 Thread Ajay Garg
Hi Aziz. Thanks for the reply. Unfortunately, making the change suggested by you does not make any difference :( Sorry, Thanks and Regards On Sat, Nov 2, 2013 at 10:51 PM, Aziz Saleh wrote: > > > > On Sat, Nov 2, 2013 at 1:03 PM, Ajay Garg wrote: > >> Hi all. >> >> 1. >> I could have the pr

Re: [PHP] How to capture uploaded file data

2013-09-28 Thread Bastien
Thanks, Bastien > On Sep 27, 2013, at 12:56 AM, Mariusz Drozdowski wrote: > > Hi all php experts, > > I would like to ask you all a question, I hope this is the right place > to ask it. > > I'm writing a PHP extension now in c/c++. User uploads a file (could be POST > or PUT method, but I c

[PHP] How to capture uploaded file data

2013-09-26 Thread Mariusz Drozdowski
Hi all php experts, I would like to ask you all a question, I hope this is the right place to ask it. I'm writing a PHP extension now in c/c++. User uploads a file (could be POST or PUT method, but I can limit it to POST only). I need to capture the file data while being uploaded, without writing

Re: [PHP] How to send "post"-variables in a "Location" header

2013-08-27 Thread Daniel Brown
On Mon, Aug 26, 2013 at 3:48 PM, Ajay Garg wrote: > Hi all. > > I have a scenario, wherein I need to do something like this :: > > ### > $original_url = "/autologin.php"; > $username = "ajay"; > $password = "garg";

[PHP] How to do PHP build test

2013-08-27 Thread Shahina Rabbani
Hi, Can anybody help me answering my doubt. I wanted to check if there are any errors with the php compilation and build. I have ran "make", "make test". "make test" didnt give any errors to me. Is there any other method or command to run through which we can see if there are any errors in build

Re: [PHP] How to send "post"-variables in a "Location" header

2013-08-26 Thread Tamara Temple
On Aug 26, 2013, at 2:48 PM, Ajay Garg wrote: > Hi all. > > I have a scenario, wherein I need to do something like this :: > > ### >$original_url = "/autologin.php"; >$username = "ajay"; >$password = "garg"; >

Re: [PHP] How to send "post"-variables in a "Location" header

2013-08-26 Thread Matijn Woudt
On Mon, Aug 26, 2013 at 9:48 PM, Ajay Garg wrote: > Hi all. > > I have a scenario, wherein I need to do something like this :: > > ### > $original_url = "/autologin.php"; > $username = "ajay"; > $password = "garg"

Re: [PHP] How to send "post"-variables in a "Location" header

2013-08-26 Thread ma...@behnke.biz
> Ajay Garg hat am 26. August 2013 um 21:48 > geschrieben: > > > Hi all. > > I have a scenario, wherein I need to do something like this :: > > ### >         $original_url = "/autologin.php"; >         $username = "ajay"; >         $pas

[PHP] How to send "post"-variables in a "Location" header

2013-08-26 Thread Ajay Garg
Hi all. I have a scenario, wherein I need to do something like this :: ### $original_url = "/autologin.php"; $username = "ajay"; $password = "garg"; header('Location: ' . $original_url); #

Re: [PHP] How to upstream code changes to php community

2013-08-16 Thread Daniel Brown
On Tue, Aug 13, 2013 at 12:38 AM, Shahina Rabbani wrote: > Hi, > > I have done some modifications to the php source code and i tested it with > php bench and I observed some improvement. > > I wanted to upstream these code changes to PHP community. > I searched the wed but i didnt find proper gui

[PHP] How to upstream code changes to php community

2013-08-12 Thread Shahina Rabbani
Hi, I have done some modifications to the php source code and i tested it with php bench and I observed some improvement. I wanted to upstream these code changes to PHP community. I searched the wed but i didnt find proper guide to upstream the code to php. Please help me by providing the info

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

2013-08-04 Thread Paul M Foster
On Sun, Aug 04, 2013 at 05:58:53PM +0100, Ashley Sheridan wrote: [snip] > > I'm not saying the method is bad, but the way Facebook does it isn't > great, I'm constantly seeing people online who "sign out" when I open > up a message box. Now that might be genuine, but I'm not *that* > unpopular!

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

2013-08-04 Thread Ashley Sheridan
Matijn Woudt wrote: >On Sun, Aug 4, 2013 at 4:00 PM, Ashley Sheridan >wrote: > >> >> >> Farzan Dalaee 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 the row? So

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 > wrote: >> >> >> Farzan Dalaee 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 the row? So if user

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

2013-08-04 Thread Matijn Woudt
On Sun, Aug 4, 2013 at 4:00 PM, Ashley Sheridan wrote: > > > Farzan Dalaee 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 the row? So if user close the browser without

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

2013-08-04 Thread Ashley Sheridan
Farzan Dalaee 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 the row? So if user close the browser without >logout how can i find user is online or not? >>> >>> Sent from my iPho

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

2013-08-04 Thread Stuart Dallas
On 4 Aug 2013, at 14:36, Farzan Dalaee wrote: > I need to inspect each visitor to show how online or who offline for chat > Like facebook chat PHP sessions is a really bad mechanism to use to accomplish this. In the past I've used memcached or redis for presence indicators. Both allow you to se

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,

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

2013-08-04 Thread Ashley Sheridan
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, Mat

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

2013-08-04 Thread Farzan Dalaee
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, Matijn Woudt wrote: > > > > On Sun, Aug 4, 2013 at 11:02 AM, Farzan D

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

2013-08-04 Thread Matijn Woudt
On Sun, Aug 4, 2013 at 11:02 AM, Farzan Dalaee 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($_SESSIO

[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 delete 3 months old records in my database?

2013-08-02 Thread Dušan Novaković
Yeah, just spelling mistake :-) And yes, it should be: $query = "DELETE FROM `__table_name__` WHERE `__date__` <= NOW() - INTERVAL 3 MONTH" Cheers ;-) On Fri, Aug 2, 2013 at 2:35 PM, Simon Schick wrote: > On Fri, Aug 2, 2013 at 2:02 PM, Karl-Arne Gjersøyen > wrote: > > > > 2013/8/2 Dušan No

Re: [PHP] How to delete 3 months old records in my database?

2013-08-02 Thread Simon Schick
On Fri, Aug 2, 2013 at 2:02 PM, Karl-Arne Gjersøyen wrote: > > 2013/8/2 Dušan Novaković > > > $query = "DELECT FROM `__table_name__` WHERE `__date__` BETWEEN NOW() - > > INTERVAL 3 MONTH AND NOW()" > > > > This delete everything from now and 3months backwards. I want to store 3 > months from now

Re: [PHP] How to delete 3 months old records in my database?

2013-08-02 Thread Karl-Arne Gjersøyen
2013/8/2 Dušan Novaković > $query = "DELECT FROM `__table_name__` WHERE `__date__` BETWEEN NOW() - > INTERVAL 3 MONTH AND NOW()" > This delete everything from now and 3months backwards. I want to store 3 months from now and delete OLDER than 3 months old records. Karl

Re: [PHP] How to delete 3 months old records in my database?

2013-08-02 Thread Simon Griffiths
Hello, Try something like: $oldDate = new DateTime(); $oldDate->sub(new DateInterval('P3M')); $old_records_to_delete = $oldDate->format('Y-m-d'); Hope this helps, Si Sent from my iPhone On 2 Aug 2013, at 11:58, Karl-Arne Gjersøyen wrote: > Hello again, folks! > I wish to delete records in

Re: [PHP] How to delete 3 months old records in my database?

2013-08-02 Thread Dušan Novaković
$query = "DELECT FROM `__table_name__` WHERE `__date__` BETWEEN NOW() - INTERVAL 3 MONTH AND NOW()" On Fri, Aug 2, 2013 at 12:58 PM, Karl-Arne Gjersøyen wrote: > Hello again, folks! > I wish to delete records in my database that is older than 3 months. > > $todays_date = date('Y-m-d'); > $old_re

[PHP] How to delete 3 months old records in my database?

2013-08-02 Thread Karl-Arne Gjersøyen
Hello again, folks! I wish to delete records in my database that is older than 3 months. $todays_date = date('Y-m-d'); $old_records_to_delete = ??? if($old_records_to_delete){ include(connect.php); $sql = "DELETE FROM table WHERE date >= '$old_records_to_delete'"; mysql_query($sql, $connect_db)

Re: [PHP] How to extract php source code from joomla

2013-07-23 Thread richard gray
On 23/07/2013 16:54, Yoinier Hernandez Nieves wrote: El 22/07/13 15:49, elk dolk escribió: Thank you for the quick response ! What I am trying to do : I have to complete two university projects for my professor ! project One : Make an online shop and must use the following components in i

Re: [PHP] How to extract php source code from joomla

2013-07-23 Thread Yoinier Hernandez Nieves
El 22/07/13 15:49, elk dolk escribió: Thank you for the quick response ! What I am trying to do : I have to complete two university projects for my professor ! project One : Make an online shop and must use the following components in it Shopping cart, Catalog of products, payment gateway

[PHP] How to extract php source code from joomla

2013-07-22 Thread elk dolk
I study for MSc degree at university.  Are you in an advanced class?

Re: [PHP] How to extract php source code from joomla

2013-07-22 Thread Tedd Sperling
On Jul 22, 2013, at 3:49 PM, elk dolk wrote: > Thank you for the quick response ! What I am trying to do : I have to > complete two university projects for > > my professor ! > > project One : Make an online shop and must use the following components in > it > > > Shopping cart, Catalog o

Re: [PHP] How to extract php source code from joomla

2013-07-22 Thread Ashley Sheridan
On Mon, 2013-07-22 at 13:10 -0700, elk dolk wrote: > I am allowed to use tools or code by hand , it does not matter ,the professor > wants to have the source code. > > > > You say tools, but would he consider a full-blown complex CMS as merely a tool, or not?

[PHP] How to extract php source code from joomla

2013-07-22 Thread elk dolk
I am allowed to use tools or code by hand , it does not matter ,the professor wants to have the source code.

Re: [PHP] How to extract php source code from joomla

2013-07-22 Thread Ashley Sheridan
; those projects ! I thought it's > > better to use Joomla I'll be grateful if you can give me an advice > > > thank you > > > - Forwarded Message - > From: Ashley Sheridan > To: elk dolk > Cc: "php-general@lists.php.net&quo

[PHP] How to extract php source code from joomla

2013-07-22 Thread elk dolk
ed Message - From: Ashley Sheridan To: elk dolk Cc: "php-general@lists.php.net" Sent: Monday, July 22, 2013 11:45 PM Subject: Re: [PHP] How to extract php source code from joomla On Mon, 2013-07-22 at 12:18 -0700, elk dolk wrote: > Hi all, > I want to build a website us

Re: [PHP] How to extract php source code from joomla

2013-07-22 Thread Ashley Sheridan
On Mon, 2013-07-22 at 12:18 -0700, elk dolk wrote: > Hi all, > I want to build a website using Joomla 2.5 . It should have 5 pages: > > index.php > pageOne.php > pageTwo.php > ... > > How can I get the php source code for those pages? > > I installed joomla 2.5 on my windows box and use XAM

[PHP] How to extract php source code from joomla

2013-07-22 Thread elk dolk
Hi all, I want to build a website using Joomla 2.5 . It should have 5 pages: index.php pageOne.php pageTwo.php ... How can I get the php source code for those pages? I installed joomla 2.5 on my windows box and use XAMPP's appache web server  thanks

Re: [PHP] How to read PHP-FPM config values using phpinfo

2013-07-16 Thread Amiya Maji
-05:00) To: Amiya Maji Cc: php-general@lists.php.net Subject: Re: [PHP] How to read PHP-FPM config values using phpinfo Hi there, Just a question, do you have Apache configured to use the PHP-FPM and not the Apache module? That something that people can mess up on. Thanks :) On Wed, Jul 17

Re: [PHP] How to read PHP-FPM config values using phpinfo

2013-07-16 Thread Daniel
Hi there, Just a question, do you have Apache configured to use the PHP-FPM and not the Apache module? That something that people can mess up on. Thanks :) On Wed, Jul 17, 2013 at 9:58 AM, Amiya Maji wrote: > Hi all, > > I am using PHP-FPM with Apache 2.4. I periodically change my php-fpm.con

[PHP] How to read PHP-FPM config values using phpinfo

2013-07-16 Thread Amiya Maji
Hi all, I am using PHP-FPM with Apache 2.4. I periodically change my php-fpm.conf and reload it by sending USR2 signal to the FPM process. Is there a way to print the updated parameters in FPM using phpinfo(). At present I am not seeing any FPM specific parameters in phpinfo. Any suggestion is

Re: [PHP] How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Tamara Temple
Csanyi Pal wrote: > I have installed following packages related to this issue: > curl, libcurl3, libcurl3-gnutls, php5-curl. All good. > I have in > /etc/php5/mods-available/curl.ini > ; configuration for php CURL module > ; priority=20 > extension=curl.so Have you enabled the extension as well

Re: [PHP] How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Adam Szewczyk
On Sat, Jun 01, 2013 at 09:41:33PM +0200, Csanyi Pal wrote: > Hi, > > I just upgraded Squeeze to Wheezy, and have difficulties with cURL PHP > extension: I can't enable it. > > I have installed following packages related to this issue: > curl, libcurl3, libcurl3-gnutls, php5-curl. > > I have in

Re: [PHP] How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Adam Szewczyk
On Sat, Jun 01, 2013 at 09:41:33PM +0200, Csanyi Pal wrote: > Hi, > > I just upgraded Squeeze to Wheezy, and have difficulties with cURL PHP > extension: I can't enable it. > > I have installed following packages related to this issue: > curl, libcurl3, libcurl3-gnutls, php5-curl. > > I have in

[PHP] How to enable cURL php extension on Debian Wheezy?

2013-06-01 Thread Csanyi Pal
Hi, I just upgraded Squeeze to Wheezy, and have difficulties with cURL PHP extension: I can't enable it. I have installed following packages related to this issue: curl, libcurl3, libcurl3-gnutls, php5-curl. I have in /etc/php5/mods-available/curl.ini ; configuration for php CURL module ; priori

Re: [PHP] how to insert html code with PHP

2013-04-11 Thread tamouse mailing lists
On Apr 11, 2013 6:35 AM, "Rafnews" wrote: > > Hi, > > I would like to insert a piece of HTML code inside several pages. > all pages are differently named. > > i need in each page to find a particular tag, let's say ... (so based on its ID and tagname) and inside it to insert my PHP/HTML code. > >

[PHP] how to insert html code with PHP

2013-04-11 Thread Rafnews
Hi, I would like to insert a piece of HTML code inside several pages. all pages are differently named. i need in each page to find a particular tag, let's say id="#submenu">... (so based on its ID and tagname) and inside it to insert my PHP/HTML code. how can i do that ? thx. A. -- PHP Gen

Re: [PHP] how to calculate how much data does each ip address use ?

2013-02-06 Thread Sean Greenslade
On Wed, Feb 6, 2013 at 11:15 AM, Aaron Holmes wrote: > No one has mentioned Cacti yet? It does exactly what Bulent is looking for. > > http://cacti.net/ > > > On 2/5/13 6:46 PM, Sean Greenslade wrote: >> >> On Tue, Feb 5, 2013 at 10:13 AM, Bulent Malik >> wrote: >>> >>> > This task is not re

Re: [PHP] how to calculate how much data does each ip address use ?

2013-02-06 Thread Aaron Holmes
No one has mentioned Cacti yet? It does exactly what Bulent is looking for. http://cacti.net/ On 2/5/13 6:46 PM, Sean Greenslade wrote: On Tue, Feb 5, 2013 at 10:13 AM, Bulent Malik wrote: This task is not really suited for php. I would suggest looking into Ntop. It does exactly what you

Re: [PHP] how to calculate how much data does each ip address use ?

2013-02-05 Thread Sean Greenslade
On Tue, Feb 5, 2013 at 10:13 AM, Bulent Malik wrote: > > >> >This task is not really suited for php. I would suggest looking into > Ntop. >> >It does exactly what you described. >> >> >> Hello >> >> >> >> I have a freebsdbox firewall . also I have some internet customers. >> >> I want to save ho

Re: [PHP] how to calculate how much data does each ip address use ?

2013-02-05 Thread Peet Grobler
On 2013/02/01 4:58 PM, Sean Greenslade wrote: > This task is not really suited for php. I would suggest looking into Ntop. > It does exactly what you described. That's one option. I use a custom system, with perl and bash scripts collecting data and saving to rrd databases. php script displaying

RE: [PHP] how to calculate how much data does each ip address use ?

2013-02-05 Thread Bulent Malik
> >This task is not really suited for php. I would suggest looking into Ntop. > >It does exactly what you described. > > >> Hello > >> > >> I have a freebsdbox firewall . also I have some internet customers. > >> I want to save how much data they used in a table ( such as mysql > >>table ) for

RE: [PHP] how to calculate how much data does each ip address use ?

2013-02-01 Thread Mike Mackintosh
Original message From: Sean Greenslade Date: To: Bulent Malik Cc: php-general@lists.php.net Subject: RE: [PHP] how to calculate how much data does each ip address use ? On Feb 1, 2013 10:25 AM, "Bulent Malik" wrote: > > > > >This task is not

RE: [PHP] how to calculate how much data does each ip address use ?

2013-02-01 Thread Sean Greenslade
On Feb 1, 2013 10:25 AM, "Bulent Malik" wrote: > > > > >This task is not really suited for php. I would suggest looking into Ntop. > >It does exactly what you described. > > >> Hello > >> > >> I have a freebsdbox firewall . also I have some internet customers. > >> I want to save how much data th

RE: [PHP] how to calculate how much data does each ip address use ?

2013-02-01 Thread Bulent Malik
>This task is not really suited for php. I would suggest looking into Ntop. >It does exactly what you described. >> Hello >> >> I have a freebsdbox firewall . also I have some internet customers. >> I want to save how much data they used in a table ( such as mysql >> table ) for each ip addr

Re: [PHP] how to calculate how much data does each ip address use ?

2013-02-01 Thread Sean Greenslade
This task is not really suited for php. I would suggest looking into Ntop. It does exactly what you described. On Feb 1, 2013 9:40 AM, "Bulent Malik" wrote: > Hello > > I have a freebsdbox firewall . also I have some internet customers. I > want > to save how much data they used in a table ( su

[PHP] how to calculate how much data does each ip address use ?

2013-02-01 Thread Bulent Malik
Hello I have a freebsdbox firewall . also I have some internet customers. I want to save how much data they used in a table ( such as mysql table ) for each ip address. Apache2, php5 and mysql5.5 work on the box. How can I do it ? any script or tool. Thanks -- PHP General Mailing List (htt

Re: [PHP] how to build multilingual e-commerce website

2012-12-29 Thread Sachin Raut
Thanks all for your suggestions. I have decided to go through these 2 books & i will also talk to Magento developers. Once again thanks for your input regards Sachin Raut On Sat, Dec 29, 2012 at 9:20 AM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > On Fri, Dec 28, 2012 at 5:19 AM,

Re: [PHP] how to build multilingual e-commerce website

2012-12-28 Thread tamouse mailing lists
On Fri, Dec 28, 2012 at 5:19 AM, Sachin Raut wrote: > Dear Friends, > > I have to develop multilingual e-commerce (clothing) website. Could anyone > who has developed these kind of sites before guide me on how to start the > development or recommend any tutorial / book for developing these kind of

Re: [PHP] how to build multilingual e-commerce website

2012-12-28 Thread Matijn Woudt
Op 28 dec. 2012 12:20 schreef "Sachin Raut" het volgende: > > Dear Friends, > > I have to develop multilingual e-commerce (clothing) website. Could anyone > who has developed these kind of sites before guide me on how to start the > development or recommend any tutorial / book for developing these

Re: [PHP] how to build multilingual e-commerce website

2012-12-28 Thread Bastien
Bastien Koert On 2012-12-28, at 6:19 AM, Sachin Raut wrote: > Dear Friends, > > I have to develop multilingual e-commerce (clothing) website. Could anyone > who has developed these kind of sites before guide me on how to start the > development or recommend any tutorial / book for developing

[PHP] how to build multilingual e-commerce website

2012-12-28 Thread Sachin Raut
Dear Friends, I have to develop multilingual e-commerce (clothing) website. Could anyone who has developed these kind of sites before guide me on how to start the development or recommend any tutorial / book for developing these kind of sites? Would really appreciate any inut regarding this. reg

Re: [PHP] how to read emails with php

2012-12-09 Thread Michael Wallner
On 4 December 2012 19:24, Farzan Dalaee wrote: > Warning: imap_open() [function.imap-open]: Couldn't open stream > mail.mydomain.net:143/pop3INBOX in C:\xampp\htdocs\mail.php on line 6 > > this is my code > > $host = 'mail.mydomain.net:143/pop3'; > $user = 'x...@mydomain.net'; > $password = 'myPas

Re: [PHP] how to read emails with php

2012-12-05 Thread tamouse mailing lists
On Tue, Dec 4, 2012 at 12:24 PM, Farzan Dalaee wrote: > 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

Re: [PHP] how to read emails with php

2012-12-04 Thread Jim Lucas
On 12/04/2012 05:10 AM, Farzan Dalaee 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 As others have suggested, try connecting using telnet from the same server you are running the PHP f

Re: [PHP] how to read emails with php

2012-12-04 Thread farzan.dalaee
I think so, so my code is correct and it should be working,  thanks you all for your time Best Regard Farzan DalaeeJonathan Sundquist wrote: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

Re: [PHP] how to read emails with php

2012-12-04 Thread Daniel Brown
On Tue, Dec 4, 2012 at 1:44 PM, Farzan Dalaee wrote: > 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 Per list rules, please don't top-post. Some things to consider:

Re: [PHP] how to read emails with php

2012-12-04 Thread Jonathan Sundquist
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 wrote: > Same error > I think its need something else for opening service like ssl settin

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" wrote: > Try removing the call to the inbox and try getting a list of

Re: [PHP] how to read emails with php

2012-12-04 Thread Jonathan Sundquist
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 wrote: > Warning: imap_open() [function.imap-open]: Couldn't open stream > mail.mydomain.net:143/pop3INBOX in C:\xampp\htdocs\mail.php o

Re: [PHP] how to read emails with php

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

Re: [PHP] how to read emails with php

2012-12-04 Thread Jonathan Sundquist
What does it say when you call imap_errors or imap_last_error? On Tue, Dec 4, 2012 at 10:02 AM, Farzan Dalaee wrote: > 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 > wrote: > >> hi guys > >> i

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 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

Re: [PHP] how to read emails with php

2012-12-04 Thread Daniel Brown
On Tue, Dec 4, 2012 at 8:10 AM, Farzan Dalaee 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 ca

[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 get a PHP bug fixed?

2012-11-17 Thread Daniel Brown
On Sat, Nov 17, 2012 at 1:51 AM, Enumag wrote: > Hi, there is a bug I'd like to be fixed and even a patch is available. But > there is still no reaction at all after 2 years. What else can I do to get > the bug fixed? > > https://bugs.php.net/bug.php?id=45351 - patch available from 2010-06-13 > ht

Re: [PHP] How to get a PHP bug fixed?

2012-11-17 Thread Iñigo Medina
On Sat, 17 Nov 2012, Enumag wrote: Hi, there is a bug I'd like to be fixed and even a patch is available. But there is still no reaction at all after 2 years. What else can I do to get the bug fixed? https://bugs.php.net/bug.php?id=45351 - patch available from 2010-06-13 https://bugs.php.net/b

[PHP] How to get a PHP bug fixed?

2012-11-16 Thread Enumag
Hi, there is a bug I'd like to be fixed and even a patch is available. But there is still no reaction at all after 2 years. What else can I do to get the bug fixed? https://bugs.php.net/bug.php?id=45351 - patch available from 2010-06-13 https://bugs.php.net/bug.php?id=48724 - patch available from

Re: [PHP] How to limit source IP in PHP

2012-09-14 Thread Stuart Dallas
Sorry for the top post but I don't have my laptop with me and, well frankly I'm too tired to be arsed! I think the confusion is coming from the word bind. I don't think man people at aware of he difference between binding a socket and having it listen on the port to which it's bound. People... wh

Re: [PHP] How to limit source IP in PHP

2012-09-14 Thread Tonix (Antonio Nati)
Il 14/09/2012 21:19, Jim Lucas ha scritto: On 09/13/2012 04:15 PM, Tonix (Antonio Nati) wrote: Jim, sorry but you did not read carefully my posts. Since the fist post, I ALWAYS spoke about connections a PHP script may open autonomously (what you name second connection). I'm never speaking abo

Re: [PHP] How to limit source IP in PHP

2012-09-14 Thread Jim Lucas
On 09/13/2012 04:15 PM, Tonix (Antonio Nati) wrote: Jim, sorry but you did not read carefully my posts. Since the fist post, I ALWAYS spoke about connections a PHP script may open autonomously (what you name second connection). I'm never speaking about listening/intercepting/using the original

Re: [PHP] How to limit source IP in PHP

2012-09-14 Thread Jim Lucas
On 09/12/2012 08:21 AM, Daniel Brown wrote: On Wed, Sep 12, 2012 at 10:18 AM, Tonix (Antonio Nati) wrote: Is PHP able to 'force' binding IP? I hoped there was an external directive I did not see, but probably this is a PHP lack. Not at all. Essentially, PHP is an interface to underlyi

[PHP] How to track for Allowed memory size ?

2012-09-14 Thread Ivan Dimitrov
Hello, is there a way how to track for allowed memory size on ? I receive this error in one class that process sql querys. I want to check somehow when query is processed do php return this error and if this is happened to log sql query in file to can I optimize it latter. I.D. -- PHP Genera

Re: [PHP] How to limit source IP in PHP

2012-09-13 Thread tamouse mailing lists
Are you looking to use sockets? That's the only thing I can think of when you speak of binding to an ip address/port... http://php.net/manual/en/book.sockets.php ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to limit source IP in PHP

2012-09-13 Thread Tonix (Antonio Nati)
Il 14/09/2012 00:09, Jim Lucas ha scritto: On 09/13/2012 12:55 PM, Tonix (Antonio Nati) wrote: Il 13/09/2012 21:41, Jim Lucas ha scritto: On 09/13/2012 12:28 PM, Tonix (Antonio Nati) wrote: You are speaking about incoming connections, I suppose. I'm speaking about connections started from

Re: [PHP] How to limit source IP in PHP

2012-09-13 Thread Jim Lucas
On 09/13/2012 12:55 PM, Tonix (Antonio Nati) wrote: Il 13/09/2012 21:41, Jim Lucas ha scritto: On 09/13/2012 12:28 PM, Tonix (Antonio Nati) wrote: You are speaking about incoming connections, I suppose. I'm speaking about connections started from within PHP. Which is a response to the incom

Re: [PHP] How to limit source IP in PHP

2012-09-13 Thread Tonix (Antonio Nati)
Il 13/09/2012 21:41, Jim Lucas ha scritto: On 09/13/2012 12:28 PM, Tonix (Antonio Nati) wrote: You are speaking about incoming connections, I suppose. I'm speaking about connections started from within PHP. Which is a response to the incoming connection. And so? There is no relation betwe

Re: [PHP] How to limit source IP in PHP

2012-09-13 Thread Jim Lucas
On 09/13/2012 12:28 PM, Tonix (Antonio Nati) wrote: You are speaking about incoming connections, I suppose. I'm speaking about connections started from within PHP. Which is a response to the incoming connection. Unless you are talking about PHP being ran from cron or the CLI. if you are tal

Re: [PHP] How to limit source IP in PHP

2012-09-13 Thread Tonix (Antonio Nati)
Il 13/09/2012 18:19, Mihamina Rakotomandimby ha scritto: On 09/12/2012 04:53 PM, Tonix (Antonio Nati) wrote: PHP script can freely choose which IP to bind. PHP doesnt bind at all. The HTTP server (Apache, Lighthttpd,...) does. PHP is called only when the HTTP server wants (you configure it th

Re: [PHP] How to limit source IP in PHP

2012-09-13 Thread Tonix (Antonio Nati)
Il 13/09/2012 18:16, Mihamina Rakotomandimby ha scritto: On 09/12/2012 07:02 PM, Daniel Brown wrote: So, the answer is no, PHP is not able to do that. There is an (heavy) BASEDIR directive for disk, but nothing equivalent (and simpler) for IP. That's correct. However, that doesn't mean

Re: [PHP] How to limit source IP in PHP

2012-09-13 Thread Mihamina Rakotomandimby
On 09/12/2012 04:53 PM, Tonix (Antonio Nati) wrote: PHP script can freely choose which IP to bind. PHP doesnt bind at all. The HTTP server (Apache, Lighthttpd,...) does. PHP is called only when the HTTP server wants (you configure it that way): make Apache handle PHP on conditionnal REMOTE_HO

Re: [PHP] How to limit source IP in PHP

2012-09-13 Thread Mihamina Rakotomandimby
On 09/12/2012 07:02 PM, Daniel Brown wrote: So, the answer is no, PHP is not able to do that. There is an (heavy) BASEDIR directive for disk, but nothing equivalent (and simpler) for IP. That's correct. However, that doesn't mean you can't put in a feature request at https://bugs.php.net/

Re: [PHP] How to limit source IP in PHP

2012-09-12 Thread Tonix (Antonio Nati)
Il 12/09/2012 17:52, Tommy Pham ha scritto: On Wed, Sep 12, 2012 at 7:18 AM, Tonix (Antonio Nati) wrote: Il 12/09/2012 16:08, Tommy Pham ha scritto: On Wed, Sep 12, 2012 at 6:53 AM, Tonix (Antonio Nati) wrote: Is there a way to force a PHP script to bind to a prefixed IP? Actually, while y

Re: [PHP] How to limit source IP in PHP

2012-09-12 Thread Daniel Brown
On Wed, Sep 12, 2012 at 11:38 AM, Tonix (Antonio Nati) wrote: > > So, the answer is no, PHP is not able to do that. > There is an (heavy) BASEDIR directive for disk, but nothing equivalent (and > simpler) for IP. That's correct. However, that doesn't mean you can't put in a feature request a

Re: [PHP] How to limit source IP in PHP

2012-09-12 Thread Tommy Pham
On Wed, Sep 12, 2012 at 7:18 AM, Tonix (Antonio Nati) wrote: > Il 12/09/2012 16:08, Tommy Pham ha scritto: > >> On Wed, Sep 12, 2012 at 6:53 AM, Tonix (Antonio Nati) >> wrote: >>> >>> Is there a way to force a PHP script to bind to a prefixed IP? >>> >>> Actually, while you can assign more IPs to

Re: [PHP] How to limit source IP in PHP

2012-09-12 Thread Tonix (Antonio Nati)
Il 12/09/2012 17:21, Daniel Brown ha scritto: On Wed, Sep 12, 2012 at 10:18 AM, Tonix (Antonio Nati) wrote: Is PHP able to 'force' binding IP? I hoped there was an external directive I did not see, but probably this is a PHP lack. Not at all. Essentially, PHP is an interface to underlyin

Re: [PHP] How to limit source IP in PHP

2012-09-12 Thread Daniel Brown
On Wed, Sep 12, 2012 at 10:18 AM, Tonix (Antonio Nati) wrote: > > Is PHP able to 'force' binding IP? I hoped there was an external directive I > did not see, but probably this is a PHP lack. Not at all. Essentially, PHP is an interface to underlying software, OS commands, and APIs. You'd ha

Re: [PHP] How to limit source IP in PHP

2012-09-12 Thread Tonix (Antonio Nati)
Il 12/09/2012 16:08, Tommy Pham ha scritto: On Wed, Sep 12, 2012 at 6:53 AM, Tonix (Antonio Nati) wrote: Is there a way to force a PHP script to bind to a prefixed IP? Actually, while you can assign more IPs to Apache for listening, assigning domains to specific IPs, it looks like any PHP scri

Re: [PHP] How to limit source IP in PHP

2012-09-12 Thread Tommy Pham
On Wed, Sep 12, 2012 at 6:53 AM, Tonix (Antonio Nati) wrote: > > Is there a way to force a PHP script to bind to a prefixed IP? > > Actually, while you can assign more IPs to Apache for listening, assigning > domains to specific IPs, it looks like any PHP script can freely choose > which IP to bin

  1   2   3   4   5   6   7   8   9   10   >