php-windows Digest 23 Jul 2005 19:35:50 -0000 Issue 2735

Topics (messages 26220 through 26225):

Re: [PHP] new
        26220 by: Ortneil Kutama

winbinder + skype
        26221 by: Francesco Reitano

Re: My variable is not working when I echo it....
        26222 by: David Collard

My Short Variable is not working
        26223 by: Afolabi Richard
        26224 by: disguised.jedi.gmail.com

Please help check out these books.........
        26225 by: Afolabi Richard

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 ---
Test successful! 

 

Regards

 

Ortneil Kutama

Programmer/ Developer

Webdev e-Business Solutions

Physical Address: Cnr 9th St & Josiah Tongogara

Website: http://www.webdev.co.zw <http://www.webdev.co.zw/>  

http://ortneil.webdevzw.com/ortneil.jpg 

Cell: +263 91 944981

 

 

-----Original Message-----
From: Francesco Reitano [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 22, 2005 10:44 AM
To: [email protected]
Subject: [PHP-WIN] [PHP] new

 

Hi guys,

             i'm new in this mailinglist!

This is a test.

 

Ciao

Francesco

 

-- 

PHP Windows Mailing List (http://www.php.net/)

To unsubscribe, visit: http://www.php.net/unsub.php

 

 

 

-- 

No virus found in this incoming message.

Checked by AVG Anti-Virus.

Version: 7.0.323 / Virus Database: 267.9.2/55 - Release Date: 7/21/2005

 


--- End Message ---
--- Begin Message ---
Hi guys,
           i'm making a application with winbinder to test skype-api.
My code is this:
<?
function process_main($window, $id) {
   switch($id) {
*    //this code no have problem i send a chat-message to another user*
       case 101:
$com = new COM("SKYPEAPI.Access") or die("can not create SKYPEAPILib.Access object");
           $com -> Connect();
           $com -> SendMessage("myfriend", "my com example");
           break;

*    //this code is a problem*
       case 102:
$com = new COM("SKYPEAPI.Access") or die("can not create SKYPEAPILib.Access object");
           $com -> Connect();
           $name = "myfriend";
           sleep(3);
           $a = $com -> $name.UserStatus;
           wb_message_box($window, $a);
           break;
*    //end problem-code*

      case IDCLOSE:
           wb_destroy_window($window);
           break;
}
?>

my problem is that i send message without problem, but if i use the
second button and i wont know userstatus, my application give error:
*szAppname php-win.exe szAppVer: 5.0.3.3 szModName: hungapp
szModVer: 0.0.0.0 offset: 0000000**.*

if i change code so for second button:
$com = new COM("SKYPEAPI.Access") or die("can not create SKYPEAPILib.Access object");
$com -> Connect();
$name = "myfriend";
$a = $com -> UserStatus($name);
wb_message_box($window, $a);
break;
Don't give a error but the application close self.
Someone can help me?

--- End Message ---
--- Begin Message ---
Afolabi Richard wrote:

I am a fascinated PHP newbie who need help.

I an using WAMP5 version 1.1 - for Windows Apache MySql and PHP.

I want to use the short variable $variable instead of the $_POST[variable] but the 
$variable is not working when I echo it. I configured "global_register = On" in 
my PHP.ini, still the short $variable is not working when I echo it.

Is there something else I need to do or configure.

Thanks



-----------------------------------------------------------------------------------------------------------
AFOLABI, O. Richard    (0803 284 8974)
Executive Director
InfoTech Corps, Katsina State, Nigeria.

[EMAIL PROTECTED]
http://projects.takingitglobal.org/infoTech











__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
i thinks it should be register_globals = On, but it would be a really bad idea to use it. it;s one of the biggeest security holes possible.
--- End Message ---
--- Begin Message ---
Hi all,
 
I am a PHP newbie using WAMP5 version 1.1
 
I have tried coding PHP and I see it as very interesting and fascinating. 
however, I have a challenge: My short variables e.g "$names", "$email"  are not 
working when I use "echo" command with it, except I use "echo 
$_POST[fieldname]". meanwhile, I set the "global_registers = On" in my php.ini 
file but the story is the same. 
 
Is there something else I have not done, pls help I am getting to LOVE PHP and 
MYSQL.
Thanks.
 
For instance,
 
This small html code "accept_name.html" is suppose to accept fieldnames and 
pass to "process_names.php".

<html><head><title>.::.Testing PHP Script.::.</title>
<body>
<form action="process_names.php" method="post" name="testvar" id="testvar">
  <p align="center"><font color="#000066" size="6" face="Georgia, Times New 
Roman, Times, serif"><strong>We 
    might want to contact you soon....</strong></font></p>
  <table width="52%" border="0" align="center">
    <tr> 
      <td colspan="2"><center>
          <p>&nbsp;</p>
        </center></td>
    </tr>
    <tr> 
      <td width="13%"><font size="2" face="Trebuchet MS">Names:</font></td>
      <td width="87%"><font size="2" face="Trebuchet MS"> 
        <input name="names" type="text" id="names2" size="50">
        </font></td>
    </tr>
    <tr> 
      <td><font size="2" face="Trebuchet MS">E-mail:</font></td>
      <td><font size="2" face="Trebuchet MS"> 
        <input name="email" type="text" id="email2" size="50">
        </font></td>
    </tr>
    <tr> 
      <td><font size="2" face="Trebuchet MS">&nbsp;</font></td>
      <td><font size="2" face="Trebuchet MS">&nbsp;</font></td>
    </tr>
    <tr> 
      <td colspan="2"><center>
          <font size="2" face="Trebuchet MS"> </font> 
        </center></td>
    </tr>
    <tr> 
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr> 
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="2"><center>
          <font size="2" face="Trebuchet MS"> 
          <input type="submit" name="Submit" value="Submit &gt;&gt;">
          <input name="reset" type="reset" id="reset2" value="Reset">
          </font></center></td>
    </tr>
  </table>
  </form>
<p>&nbsp;</p>
</body>
</head>
</html>
 
 
The code below is "process_names.php" which is suppose to echo the $name and 
$email address.
 
 
<html><head><title>.::.Processing your records.::.</title><body>
<form action="" method="post" name="testvar" id="testvar">
  <table width="75%" border="0" align="center">
    <tr> 
      <td colspan="2"><center>
          <h1><font color="#993300" size="4" face="Trebuchet MS"><strong>Thanks 
for checking this 
            site, please come again</strong></font> </h1>
        </center></td>
    </tr>
    <tr> 
      <td width="13%"><strong>Names:</strong></td>
      <td width="87%"><center>
<?php echo $names ?>        </center></td>
    </tr>
    <tr> 
      <td><strong>E-mail:</strong></td>
      <td><center>
<?php echo $email ?>        </center></td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr> 
      <td colspan="2"><center>
          <a href="accept_name.php"><strong>Done</strong></a> 
        </center></td>
    </tr> </table> </form>
</body></head></html>


 
-----------------------------------------------------------------------------------------------------------
AFOLABI, O. Richard    (0803 284 8974)
Executive Director
InfoTech Corps, Katsina State, Nigeria.
 
        [EMAIL PROTECTED] 
 
http://projects.takingitglobal.org/infoTech











                
---------------------------------
 Start your day with Yahoo! - make it your home page 

--- End Message ---
--- Begin Message ---
On 7/22/05, Afolabi Richard <[EMAIL PROTECTED]> wrote:
> Hi all,
> 
> I am a PHP newbie using WAMP5 version 1.1
> 
> I have tried coding PHP and I see it as very interesting and fascinating. 
> however, I have a > challenge: My short variables e.g "$names", "$email"  are 
> not working when I use "echo" > command with it, except I use "echo 
> $_POST[fieldname]". meanwhile, I set the
> "global_registers = On" in my php.ini file but the story is the same.
It's register_globals, and it shouldn't be turned on.  It allows
ANYONE to define ANY VARIABLE in your script.  Not a good idea. 
Search your php.ini file for the phrase "register_globals" and set it
to on, and the sample you attached will work (even though it's
insecure).

Also, you should do $_POST["fieldname"] instead of $_POST[fieldname]. 
They'll both work (I believe) but the first is the correct way to do
it, you are accessing a named key with the name of that string.

> 
> Is there something else I have not done, pls help I am getting to LOVE PHP 
> and MYSQL.

Good, I agree...It can be really fun once you get to know it!


-- 
PHP rocks!
"Knowledge is Power.  Power Corrupts.  Go to school, become evil"

Disclaimer: Any disclaimer attached to this message may be ignored. 
However, I must say that the ENTIRE contents of this message are
subject to other's criticism, corrections, and speculations.

This message is Certified Virus Free

--- End Message ---
--- Begin Message ---
Hi all,
 
would somebody pls give me a short recommendations on these books before I 
purchase them. I don't want to throw away money as I did on some books recently.
 
thanks
 
PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
by Larry Ullman
 
Dreamweaver MX: PHP Web Development
 

Professional PHP4 Multimedia Programming

 

Sams Teach Yourself PHP, MySQL and Apache in 24 Hours
by Julie C. Meloni





 
-----------------------------------------------------------------------------------------------------------
AFOLABI, O. Richard    (0803 284 8974)
Executive Director
InfoTech Corps, Katsina State, Nigeria.
 
        [EMAIL PROTECTED] 
 
http://projects.takingitglobal.org/infoTech











                
---------------------------------
 Start your day with Yahoo! - make it your home page 

--- End Message ---

Reply via email to