Jump to content
Science Forums

moon

Members
  • Posts

    6
  • Joined

  • Last visited

About moon

  • Birthday January 16

moon's Achievements

Newbie

Newbie (1/14)

10

Reputation

  1. when we install php, there is a folder named pear. What is the folder about? When it will be used?
  2. hi alexander, it's ok for me to see the code myself.... :) thanks for your offer...... anyway, i have some questions......in php, the symbol @ represents of what? for example: if ($db_link) @mysql_select_db(DB_DATABASE); why use the '@'? thanks
  3. thank you for all your infomations....... it helps a lot......
  4. thank you, alexander........... as i know, php is quite similar to java......... i know java much more than php, and i also refer to java when code the php. for me, there are quite big difference between php4 and php5 for the OO part..... can you show me how to code the java in php way? here is the java file : ---------------------------------------------------------------------------------- public class Item { private String item; public Item(String item){ this.item = item; } public Item(Item item){ this.item = item.item; } public String getItem() { return item; } public void setItem(String item) { this.item = item; } public boolean equals(Object o) { return item.equals(((Item)o).item); //casting } public int compareTo(Object o) { return item.compareTo(((Item)o).item); } public String toString() { return item; } public static void main(String args[]){ Item i1 = new Item("1"); Item i2 = new Item("1"); Item i3 = new Item("2"); System.out.println(i1); System.out.println(i1.equals(i2)); System.out.println(i1.equals(i3)); } } -------------------------------------------------------------------------------------- if it is not convenient, it's ok...... thanks anyway............. :)
  5. hi Tormod, thanks for your reply.......... Are you familiar with php programming? Now i'm doing a data mining project using php code. I use the OOP concept in php4. However, OOP in php5 seem more powerful. Before this, i code program with php4 but seem like have some problems when i need to apply the OOP in it. I'm not so familiar with php actually...... i'm learning and do the program at the same time.... The problem that i face such as returning an object in a function.it seem like cant work in php4. do u have any idea about it? or may be i'm wrong.......... thanks...
  6. hi, do PHP5 support PHP4? can i run the code which is written using php4 in the php5 environment?
×
×
  • Create New...