Jump to content

sasori

Members
  • Content count

    330
  • Joined

  • Last visited

Community Reputation

1 Neutral

About sasori

  • Rank
    Advanced Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

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

  1. 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?
  2. I didn't get the "and disappeared" part...
  3. 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
  4. 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
  5. sasori

    jqueri ui tab help

    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
  6. 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
  7. 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. ))
  8. 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...
  9. 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
  10. 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?,
  11. 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.
  12. sasori

    imagecreatefromjpeg() error help

    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
  13. sasori

    imagecreatefromjpeg() error help

    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
  14. sasori

    imagecreatefromjpeg() error help

    it's not a script..i have a alot of random images in my local storage that i usually use for testing ... here's the part of the code $fext = pathinfo($url, PATHINFO_EXTENSION); $tmp_name = date('His') . rand() . "." . $fext; $filename = $path .'/'. $tmp_name; $cont = @file_get_contents($url); $op = @fopen($filename, 'w+'); @fwrite($op, $cont); @fclose($op); chmod($filename, 0777); $orientation = 999; $exif = null; if (strtolower($fext) == 'jpg' || strtolower($fext) == 'jpeg') { try { $exif = @exif_read_data($filename); } catch (Exception $e) { Yii::log($e->getMessage()); }; if (!empty($exif) && !empty($exif['Orientation'])) { $orientation = $exif['Orientation']; } $img = imagecreatefromjpeg($filename);
  15. Hi, before posting this problem, I already tried googling and tried those possible solutions that could help but still failed. I am having a problem with that PHP function imagecreatefromjpeg(): gd-jpeg: JPEG library reports unrecoverable error: based from what i found in google, some say, use ini_set("gd.jpeg_ignore_warning", 1); failed. some say, use init_set("memory_limit", -1) still failed I am sure that I am passing .jpg image, how come i keep on getting that error ? any suggestions of what to do?
×

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.