php-general Digest 29 Mar 2004 12:07:16 -0000 Issue 2674
Topics (messages 181639 through 181649):
Accessing HTTP Content
181639 by: Quentin Bennett
181648 by: Burhan Khalid
How to send SMS
181640 by: saepudin
181642 by: Jake McHenry
181643 by: Evan Nemerson
preg_match
181641 by: Jason Williard
181644 by: Tim Traver
reg expression for ide-emails
181645 by: Robert Kornfeld
181649 by: John W. Holmes
Re: plz help
181646 by: CurlyBraces Technologies \( Pvt \) Ltd
Re: $$$wanna make real money$$$..you will no longer need student loans
181647 by: Andrew Fenn
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hi,
Is this possible, please?
What I want to do is, using an HTTP class,
$myComms = new Ihttp_base_class(&$httpParams);
$myComms->request = $some_document;
$myComms->requrl = "/mysite/myscript.php";
$myComms->Send();
"myscript.php" runs within the same Apache server, processes some_document, and
returns an HTTP response. PHP is running as an Apache module, not CGI.
Within myscript.php, I can 'getallheaders()' to access the HTTP headers, but I want to
access the contents of $some_document - i.e. the content portion of the HTTP message.
$some_document can't be sent as a GET/POST variable, as it exceeds the limitations on
those.
Any advice would be appreciated.
Quentin Bennett
The information contained in this email is privileged and confidential and
intended for the addressee only. If you are not the intended recipient, you
are asked to respect that confidentiality and not disclose, copy or make use
of its contents. If received in error you are asked to destroy this email
and contact the sender immediately. Your assistance is appreciated.
--- End Message ---
--- Begin Message ---
Quentin Bennett wrote:
Hi,
Is this possible, please?
What I want to do is, using an HTTP class,
$myComms = new Ihttp_base_class(&$httpParams);
$myComms->request = $some_document;
$myComms->requrl = "/mysite/myscript.php";
$myComms->Send();
"myscript.php" runs within the same Apache server, processes some_document, and returns an HTTP response. PHP is running as an Apache module, not CGI.
Within myscript.php, I can 'getallheaders()' to access the HTTP headers, but I want to access the contents of $some_document - i.e. the content portion of the HTTP message.
$some_document can't be sent as a GET/POST variable, as it exceeds the limitations on those.
Have you considered using something like Snoopy?
http://snoopy.sf.net
Could be worth a try.
--- End Message ---
--- Begin Message ---
How to send sms with PHP and Mysql and mobil phone Nokia 5110?
--- End Message ---
--- Begin Message ---
I have one of my scripts set up to just send an email to the sms email
address that ATT provides me. Verizon also does this. Not sure about the
rest. The phone provider then changes from email to whatever the phone
understands
Jake
----- Original Message -----
From: "saepudin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 29, 2004 12:49 PM
Subject: [PHP] How to send SMS
> How to send sms with PHP and Mysql and mobil phone Nokia 5110?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
You can send through OSCAR (AIM/ICQ), too. With a bit of clever hacking, you
could connect GAIM to PHP and live happily ever after.
On Sunday 28 March 2004 08:14 pm, Jake McHenry wrote:
> I have one of my scripts set up to just send an email to the sms email
> address that ATT provides me. Verizon also does this. Not sure about the
> rest. The phone provider then changes from email to whatever the phone
> understands
>
> Jake
>
>
> ----- Original Message -----
> From: "saepudin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, March 29, 2004 12:49 PM
> Subject: [PHP] How to send SMS
>
> > How to send sms with PHP and Mysql and mobil phone Nokia 5110?
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
--
Evan Nemerson
[EMAIL PROTECTED]
http://coeusgroup.com/en
--
"If anyone can show me, and prove to me, that I am wrong in thought or deed, I
will gladly change. I seek the truth, which never yet hurt anybody. It is
only persistence in self-delusion and ignorance which does harm."
-Marcus Aurelius
--- End Message ---
--- Begin Message ---
I am trying to use preg_match to pull a specific piece of a variable.
However, I don't have enough experience with the syntax to be able to figure
this out.
The variable looks like: "John {mailto:[EMAIL PROTECTED])"
All I need is the name, John. The rest can be discarded. How would I pull
that bit out?
Thanks,
Jason
--- End Message ---
--- Begin Message ---
Jason,
well, if the string is exactly how you have it, then something like this
would do :
$var="mailto:[EMAIL PROTECTED])";
if(preg_match("/^(\S+)\s.+/",$var,$match)){
$name=$match[1];
}
Of course, that would exclude those addresses that might have two names,
like "Tim Traver [EMAIL PROTECTED]"
In order to get that one, you might do something like this :
$var="Tim Traver [EMAIL PROTECTED]";
if(preg_match("/^(.+)\s\{.+/",$var,$match)){
$name=$match[1];
}
That would get anything before the bracket, excluding the space...
Hope that helps...
Tim.
At 08:10 PM 3/28/2004, Jason Williard wrote:
I am trying to use preg_match to pull a specific piece of a variable.
However, I don't have enough experience with the syntax to be able to figure
this out.
The variable looks like: "John {mailto:[EMAIL PROTECTED])"
All I need is the name, John. The rest can be discarded. How would I pull
that bit out?
Thanks,
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
SimpleNet's Back !
http://www.simplenet.com
--- End Message ---
--- Begin Message ---
as with april 1, on may use special german and frech characters for urls and
email-names. does anyone know a reg. expression to validate the syntax of a
email-adress?
thanx
--- End Message ---
--- Begin Message ---
Robert Kornfeld wrote:
as with april 1, on may use special german and frech characters for urls and
email-names. does anyone know a reg. expression to validate the syntax of a
email-adress?
if(strpos($email,'@'))
No, seriously.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
--- End Message ---
--- Begin Message ---
----- Original Message -----
Sent: Sunday, March 28, 2004 10:56 AM
Subject: plz help
hi ,
i have an apache web server in linux . Those php
scripts runs in that pc. Mean while another perl scrips runs associate with that
php scripts . altogether they develop a out put and store in the mysql
database.That process perfectly running.There is no any dout.
Once this web server started , no body can access
this machine directly . This machnie is behind the firewall . This machnie
assingned as a web server . That's mean all the ports has been blocked by the
firewall except port 80 ( this web server running under port 80 ). ping also has
been blocked.
That certain url can access from any other out side
pcs.
Some request handling purpose i want to stop that
perl script where it is runing in the web server . But from the web server we do
it ctrl+c perl.pl
I want to do this through the web
browser.
when pressing a stop button , it should effect to
the perl script in the web server and also when pressing start button it should
start again . .............................
i think u all can understand my problem ,
..................plz help ,
can some body help me to coverup the php scripting
part,
thanx in advance
curlys
|
--- End Message ---
--- Begin Message ---
This is a scam. It’s called a pyramid scheme where the money keeps going all the way
up to the guy who started it. Sure that guy might actually be making money (very
unlikely if he’s desperate enough to post on here) but because you’re at the bottom of
the pyramid you get squat. This type of scheme has been going for years. DON’T FOOL
FOR THIS.
Go here to read more: http://www.pyramidschemealert.org
---------------------------------
WIN FREE WORLDWIDE FLIGHTS - nominate a cafe in the Yahoo! Mail Internet Cafe Awards
--- End Message ---