Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-15-2009, 12:55 AM   #1
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
How to send Hex 0x1A via PHP

I am trying to communicate with a modem connected to my com port via a PHP script. I got everything working except for the last command which is supposed to send 0x1A to the modem. I tried a few variations including:

Code:
ser_write(hexdec("0x1A"));
ser_write("\r\n");
but it just types out 26. It is supposed to represent control-Z and in my terminal program (terminal by Br@y) I trigger it with a macro that says "$1A".

Hope someone can help.
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2009, 03:59 AM   #2
BigBen
Confirmed User
 
Join Date: Nov 2004
Location: scv
Posts: 2,299
Try:

ser_write(chr(26));
BigBen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-15-2009, 12:11 PM   #3
mkx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
Quote:
Originally Posted by BigBen View Post
Try:

ser_write(chr(26));
If I said I loved you with there a 97% possibility of you being a guy, would that make me gay? Thanks so much
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.