Jump to content


  • Posts

  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

sasori's Achievements

Advanced Member

Advanced Member (4/5)



  1. Hi, I'm about to implement a chat messaging feature which will be used by both web and mobile platform. I only code in PHP....in some messaging clients or just chatbox from websites, you can see the other person status as "is typing..." this indicates that the application can detect whether the other party is actually doing something in the chatbox right? my question now is, is there a way to implement this by just using php?, without using nodejs , websockets or what not.
  2. can someone please help me understand the concept how to implement the "Domand Driven Design" strategy in PHP ? ok let's say for example I have a user and a user got multiple addresses. so the user got e.g class User { public $userId; public $name; public $age; public function setUserId($userId) { $this->userId = $userId; } public function getUserId() { return $this->userId; } public function setName($name) { $this->name = $name; } public function getName() { return $this->name; } public function setAge($age) { $this->age = $age; } public function getAge() { return $this->age; } } Then Address got e.g class Address { public $addressId; public $country; public $city; public $zip; public function setAddressId($addressId) { $this->addressId = $addressId; } public function getAddressId() { return $this->addressId; } public function setCountry($country) { $this->country = $country; } public function getCountry() { return $this->country; } public function setCity($city) { $this->city = $city; } public function getCity() { return $this->city; } public function setZip($zip) { $this->zip = $zip; } public function getZip() { return $this->zip; } } So how to apply the concept of the Domain Driven Design here ?
  3. Hi , Does working with sockets using PHP always require a server?. i mean, the server and client concept when working with sockets...is it mandatory? how about in this situation. I found an emulator online. This emulator is a desktop application made up of java that accepts inputs through a protocol. do i need to create a server or just client for sockets using php is enough to communicate with this emulator?
  4. Because I was thinking of using tensorflow , but it seem slike it's meant for for python and not PHP, at some point, you're right, I don't know yet the core concepts of machine learning Yes, I saw this one before posting this thread, but that library is menat for PHP >= 7.x . Our server is using PHP 5.4 , it looks like I will have to rewrite most of the things there if am gonna rely on it, just to make it compatible with a lower version of php
  5. Hi, from the tile of my thread, yes, may I know if anyone of you happened to implement such thing using PHP ?, I know this machine learning / AI thing is usually done in python or R , correct ? but in the company I am working for is using php all the way. some good tutorials and tips is much appreciated. thanks in advance
  6. which event to use to get the properties,ids,elements of the first tab in ui jquery? so the situation is like this: I pop out a jquery dialog box when I click a row from a grid view in the main page. inside that dialog box, I have a jquery ui tabs. I was able t o get the properties by using the 'activate' event in this jquery ui tab like this $('#tabs').tabs({ activate : function(event,ui){ alert(ui.newPanel.find(".row #button").attr("id"));} }); that snippet works if I click the other tabs. but the problem now is, once the dialog box pops out. I am not able to get the properties inside the first tab which is by default selected in jquery. I am only able to use that snippet to the succeeding tabs , it will only work in the first tab after I click the other tabs. any idea to solve this problem? i'm more of a backend dev...it takes me hours to build an application that has a front-end coding involve
  7. Hi, I'm trying to develop a web app to get the number of facebook likes, and number of facebook comments on a particular facebook page post content by just inputting the facebook page id via url or to whatever input form that i'm gonna create. My question now is, 1) do we always need to have user access token ? or page access token is enough already and we can save it in some php config file? because while I was playing with the graph explorer, and I logged out the fb page from another browser, the graph explorer insisted that I need a user access token, any inputs is much appreciated, as this is my first time to mingle with facebook apis
  8. But it's not actually a bot..the concept of the proposed experiment, was , enable the user to login in within that platform, and choose the shops that he/she like to have his/her ad posted by just filling up a form and one click of a submit button. But still I find it hard. I've already tried cURLing in one of the target sites and since it has no api available I failed already. ))
  9. ok I'll tell the real score why I came up with this question..it's because one of my colleague asked me to experiment and create a platform that can do cross posting to other shopping sites, so that sellers can use it and ease the pain of opening tabs of different sites and posting again and again...
  10. That's the exact thing I want to achieve from my first post, I only used ebay as an example. Because my real target website that is similar to ebay, has no open API end point at all. And yes, the target website has a form, but, one needs to login before being able to post anything, can you give me a sample snippet on how to do it via cURL ?..I know how to use curl, but I just wanna see how others will do it
  11. Hi, Is it possible to cross post some data to a target site even if the target has not open API end point? let's say for example the ebay.com website. They have an API for developers to use and I think it's easy to post some data/ads to their site because of this maybe by just using CURL of php.. but what if my real target website doesn't have open API?, is it possible to do that in PHP?. can someone give me a short snippet how to do that if possible?,
  12. Hi, the scenario was like this, I was looking at an item in e.g groupon website. then I opened a new tab on my browser and logged-in to my facebook account, then I saw the particular item that I viewed from groupon is now being suggested/advertised on the facebook newsfeed, any ideas how this thing works?, I'm sure there's a technical explanation how it works, I just don't have any idea how it works... because I'm thinking of implementing that same feature in the web app that I am working on right now using PHP. so that if anyone viewed an item from my app, they'll see it too on their facebook newsfeeds useful replies are much appreciated. thanks in advance.
  13. the thing that has caused the issue is the white space in the image name...to fix the issue.. the sencha front-end code is now encoding the url being passed to me
  14. it's a jpeg image...how come other jpegs are being read without problems at all? here are the two images, the baby apparel is ok, but the knitted hat is causing that error I mentioned in this thread.. i'm not sure if this forum modified those files that i just attached in this reply
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.