$_SERVER['REMOTE_ADDR'] not works with piping

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
Jenny
Posts: 18
Joined: Thu Mar 26, 2015 7:52 am

$_SERVER['REMOTE_ADDR'] not works with piping

Post by Jenny »

When I make a ticket fom form, I see my IP in ticket list later, but when I make it with pipe, my IP is always not specified.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: $_SERVER['REMOTE_ADDR'] not works with piping

Post by Klemen »

That's normal, because with email piping the customer never visits your server so the $_SERVER['REMOTE_ADDR'] variable is always empty.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Jenny
Posts: 18
Joined: Thu Mar 26, 2015 7:52 am

Re: $_SERVER['REMOTE_ADDR'] not works with piping

Post by Jenny »

Agree. Is there any alternate way to know IP with piping?
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: $_SERVER['REMOTE_ADDR'] not works with piping

Post by Klemen »

Unfortunately not. But I got an idea that will be included in the next update - IP will be set if customer replies over the web form at any time.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Jenny
Posts: 18
Joined: Thu Mar 26, 2015 7:52 am

Re: $_SERVER['REMOTE_ADDR'] not works with piping

Post by Jenny »

Klemen wrote:Unfortunately not. But I got an idea that will be included in the next update - IP will be set if customer replies over the web form at any time.
Yes, parse IP from header could not give normal result. Good idea for next update! It will be nice to add IP not only when customer replies over the form, but also when open ticket link may be
Post Reply