บทความ

กำลังแสดงโพสต์จาก กันยายน, 2022

การใช้งาน manual collector ssgs project

 .. Project: SSGS Data Collector : Manual Version Step 1. แยกไฟล์ CSV ออกเป็นไฟล์ย่อยๆด้วย php .\ssgsNotifyPageCsvSeparator.php  - นี่จะเข้าไปดูไฟล์  ssgsUserData_2.csv   - แล้วแตกออกมาเป็น csv file ย่อยๆ ไว้ใน csv_tmp_notify Step 2. อ่านค่าจากไฟล์ใน csv_tmp_notify มาสร้างเป็น notify.html ไว้ใน cache_raw_notifyPage php .\ssgsNotifyPageCollectorByCSV_vs_separateFileAutoRemove.php Step 3. สกัดไฟล์ html ให้เป็น json php .\ssgsNotifyPageExtractor.php Step 4. c Step 5. c ชลิตา จูมสีมา : เขียน ..

ZF4 (Laminas) : Setup MongoDb (Part 2 : OEM)

 .. Step 1. สร้างคลาส Model ไว้ใน Application/Model/Mongo/Documents Address.php <?php namespace Application\Model\Mongo\Documents; use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM; /** @ODM\EmbeddedDocument */ class Address { /** @ODM\Field(type="string") */ private $address; /** @ODM\Field(type="string") */ private $city; /** @ODM\Field(type="string") */ private $state; /** @ODM\Field(type="string") */ private $zipcode; public function getAddress(): ?string { return $this->address; } public function setAddress(string $address): void { $this->address = $address; } public function getCity(): ?string { return $this->city; } public function setCity(string $city): void { $this->city = $city; } public function getState(): ?string { return $this->state; } public function setState(string $state): void { ...

PHP : การใช้ CPP

 .. บางทีอาจจำเป็นต้องใช้ความสามารถบางอย่างที่ php ไม่มี อย่างเช่น openCV หรือ การสกัดข้อความจาก page ที่ต้องการความเร็วกว่า php ปกติ โดยทั่วไปจะเขียนในรูปแบบของ extension เพราะ php ก็ถูกพัฒนาขึ้นมาจาก cpp  ตัวอย่างการพัฒนา php extension https://stackoverflow.com/questions/1502244/how-can-i-use-c-code-to-interact-with-php อีกตัวอย่าง (กั๊ก คอมไพลไม่ผ่าน) https://ourcodeworld.com/articles/read/804/how-to-compile-a-php-extension-dll-file-in-windows-with-visual-studio#disqus_thread อีกตัวอย่าง  https://medium.com/@erinus/how-to-build-php-extension-on-windows-d1667290f809 ..