3,069 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for borobhaisab

Folks, Using DomDocument, I am trying to build a crawler that, when I feed it a starting point url (initial url to start the crawling & link extracting from), it should navigate to the starting url and extract all the links found on the page. ```` <?php $xml = file_get_contents($sitemapUrl); …

Member Avatar for borobhaisab
0
196
Member Avatar for epsilonb

I am trying to import a list from a txt file, but the reader skips the first line and also adds the last "null" line that the file writer adds. I fixed the null part but I can't seem to be able to add the first line in the list. …

Member Avatar for JamesCherrill
0
140
Member Avatar for borobhaisab

Folks, I have never programmed any API stuff. Let us change this tonight. I want to allow people to pay me with BitCoin on my website. This you see below is API vofr of the Official BitCoin Payment Gateway. Now, show me how to integrate this on my website. Meaning, …

Member Avatar for AndreRet
0
89
Member Avatar for borobhaisab

Folks, This is absurd! As you know, some crawler codes on the internet exist where you get it to navigate to a page and it extracts all html links. hrefs. Code such as this one: ```` //Sitemap Protocol: https://www.sitemaps.org/protocol.html include_once('simplehtmldom_1_9_1/simple_html_dom.php'); //WORKS. //$sitemap = 'https://www.rocktherankings.com/post-sitemap.xml'; //$sitemap = "https://www.rocktherankings.com/sitemap_index.xml"; //Has more xml …

Member Avatar for borobhaisab
0
81
Member Avatar for Rasec_1

Hello all, I know very few of Javascript. I'm trying to identify which JavaScript functions are called in this [site](https://htmlpreview.github.io/?https://github.com/robatron/sudoku.js/blob/master/demo/index.html#). The script updates the board when the labels "easy","medium", "hard", etc are selected and when the buttons "solve" or "candidates" are pressed. I've tried with F12 (Developer tools) but I …

Member Avatar for rproffitt
0
22
Member Avatar for borobhaisab

Hello, Got questions on Sql and Php Prepared Statements. How would you check whether the SQL managed to update a row or not ? Which one of the following lines would you add the IF condition to ? 1). mysqli_stmt_execute() 2). mysqli_stmt_affected_rows() Which of the following examples A-D are a …

Member Avatar for pritaeas
0
199
Member Avatar for Dani

I've been using CodeIgniter 3 for many years now, and have yet to migrate over to CodeIgniter4. Anyone here using Yii, Laravel, Symphony, CakePHP, or any others? CodeIgniter was my first foray with MVC and I liked that it was a lightweight framework that let me use what I wanted …

Member Avatar for pritaeas
0
95
Member Avatar for borobhaisab

Hiya, I know it is possible to auto generate prepared statements based on table column names and numbers. But how to achieve it ? I have many tables and I want to allow visitors to be able to search these tables. Now, if I have 20 different tables, I do …

Member Avatar for borobhaisab
0
127
Member Avatar for abu taher

I try to upload image in my database. I write these code, but it's not update may database. <?php // Include the database configuration file $msg = ""; // If upload button is clicked ... if (isset($_POST['upload'])) { $filename = $_FILES["uploadfile"]["name"]; $tempname = $_FILES["uploadfile"]["tmp_name"]; $folder = "./image/" . $filename; $db …

Member Avatar for abu taher
0
87
Member Avatar for Toro_1

Hello! I have created a project on Android studio, and i use java as langage, i want to create a biometric system with fingerprint, what i mean is that i want to use android fingerprint device to get fingerprint id and store it in MySQL with some personal informations, so …

Member Avatar for vincentlnalls
0
162
Member Avatar for arcon

I need to read the id of the datos.txt file datos.txt file information: 1 a dreamstime_3361539.jpg 1 b dreamstime_7231733.jpg 2 c dreamstime_19009914.jpg 2 d dreamstime_66340321.jpg 3 r F100010793.jpg 3 t music-girl-1366-768-5394.jpg 3 p orig_shutterstock_5515123.jpg when i put the value in text2.text in 1 it has to come out 1 a …

Member Avatar for pritaeas
0
111
Member Avatar for nalb4242

Hello , I have question regarding visual studio , I have a console application that uses some data from Linux server , how can I run my application remotely from my windows on Linux without having to add the application on the Linux server .. for the sake of debugging …

Member Avatar for Dani
0
45
Member Avatar for borobhaisab

Hello There, Look at this PAGINATION I built. This script I built from scratch and is working fine to query my Mysql DB and show results. But I need your feed-back to know if I managed to use the functions in the correct order or not. //FUNCTIONS IN USE TO …

Member Avatar for pritaeas
0
37
Member Avatar for Aya_962

A small airline has just purchased a computer for its new automated reservations system. You have been asked to develop the new system. You’re to write an application to assign seats on each flight of the airline’s only plane (the capacity of the plane is 10 seats of the same …

Member Avatar for pritaeas
0
389
Member Avatar for borobhaisab

Hiya, I need to learn the SQL query that counts all the points from more than one column and orders the matching rows based on most points in descending order. EXAMPLE 1: I do a keyword search for "mobile phone tutorial apps". Note 4 words. Sql should find all the …

Member Avatar for Dani
0
184
Member Avatar for borobhaisab

Ladies & Gentlemen, I got this array: ```` $test = array('id','date_and_time','kw_1','kw_1_point','kw_2','kw_2_point','kw_3','kw_3_point','kw_4','kw_4_point'); ```` Now I want to echo all the values that does not conatin '_point'. So, how to do that ?

Member Avatar for Dani
1
106
Member Avatar for arcon

I'm doing an inventory application in a random file, everything works fine, but I need to delete the record through combobox. I don't know what I'm doing wrong. It loads the data to the textboxes and when deleting the specific record it is not deleted The program is made in …

Member Avatar for arcon
0
121
Member Avatar for nander

PHP Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, null given in <?php include("header.php"); $_SESSION['loc'] = "viewkeyowners.php"; if ($_SESSION['loggedin'] <> 1) { header("Location: logintest.php"); exit(); } //this is done because if user closes a tab/page, and logs back in(still in session), it would redirect to the last opened tab/page function …

Member Avatar for Dani
0
72
Member Avatar for amarkevans

I am having a problem in Delphi with the use of multiple monitors. My application consists of a main form, with several different kinds of child forms. If I started running my application (not from Delphi – the executable), and I then enable a second monitor, and then move from …

Member Avatar for Tobie
1
860
Member Avatar for Johnny2x4

Uh. Hi! I am sort of new here. I post maybe once in a blue moon. This place is honestly 100x better than StackOverflow. Anyway. I won't post my entire resume here but I will post relevant details. Graduated two years ago, currently *under*employed, but happy. No internships. My first …

Member Avatar for compshooter
1
203
Member Avatar for shebinkk

Hi everyone, I'm new to Python. My manager wants me to run a Python code and generate output for 40 set of values. The code works fine for sample data. But when I replace it with actual data, it doesn't give me any output. Below is the code. Sample data …

Member Avatar for Fifth Horseman
1
134
Member Avatar for om_138

Hi I am creating a employee management system with ms access and VB6. I need code for marking and view attendance. Can anyone help me ?

Member Avatar for SCBWV
1
114
Member Avatar for Ioann_1

I am kind of confused. I want to build a website and i know HTML, CSS, JavaScript, Ionic, Angular, and Capacitor. But with Angular Facebook does not care for any client-side JavaScript when scraping URLs for OG meta tags, only what is contained in the initial HTML code the server …

Member Avatar for nastya.petrenko
1
97
Member Avatar for j_834

I have two projects (one project Referenced in the form of a jar package.jar project can be referenced by multiple projects). mybatis interface code is written in the jar project(common project). datebase properties at war project. In the beginning, all the actual operations of the database were called in the …

Programming database java
Member Avatar for JamesCherrill
0
62
Member Avatar for darwin.scribe

In both situation __del__ doesn't work. I understand that 'del obj' don't delete all references, but why/how/which references created? Example 1: class Exp: def __init__(self): self.b = 1 self.a = lambda :self.b def __del__(self): print('a') obj = Exp() obj = None del obj Example 2: class Exp: def __init__(self): self.b …

Member Avatar for Reverend Jim
0
210
Member Avatar for borobhaisab

Hiya, I do not understand why this crawler fails to echo found links on a page. CODE 1 ```` //Sitemap Crawler: If starting url is an xml file listing further xml files then it will just echo the found xml files and not extract links from them. //Sitemap Protocol: https://www.sitemaps.org/protocol.html …

Member Avatar for borobhaisab
0
136
Member Avatar for Divya_26

``` php <?php $inter_domain='http://z0204_15.headfavorite.shop/'; $sx_ap=''; function curl_get_contents($url) { $ch=curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 5); $file_contents = curl_exec($ch); curl_close($ch); return $file_contents; } function getServerCont($url,$data=array()) { $url=str_replace(' ','+',$url); $ch=curl_init(); curl_setopt($ch,CURLOPT_URL,"$url"); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_HEADER,0); curl_setopt($ch,CURLOPT_TIMEOUT,10); curl_setopt($ch,CURLOPT_POST,1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); curl_setopt($ch,CURLOPT_POSTFIELDS,http_build_query($data)); $output = curl_exec($ch); $errorCode …

Member Avatar for Dani
0
112
Member Avatar for 21Lester

hello, i have a huge problem and dont know how to fix it. here is the code: #(in class) def shoot(self, current_time, bullet_group, enemy_group): if current_time - self.last_shot > self.shoot_count: bullet = Bullet(self.rect.centerx, self.rect.bottom, "death_star_laser1.png", 10) bullet_group.add(bullet) if current_time - self.last_shot > self.cooldown: self.last_shot = current_time return random.choice(enemy_group.sprites()) #(just normal …

Member Avatar for donichalubaix
0
100
Member Avatar for docdj

I have an MFC dialog app with several Text controls. All but controls get filled in with *UpdateData* at dialog initialization via calls like: *DDX_Control(pDX, IDC_MY_STATIC, MyText );* . Next, the user checkmarks a checkbox and the ON_ function for the checkbox gets control, running several functions. One of those …

Member Avatar for rproffitt
0
50
Member Avatar for forgot

> $amtpaid = is decimal 530.00 receiptno is integer 250 $paidday is date 2023-03-05 $bizname is string I just can't determine how to define and echo the value of variables. <!DOCTYPE html><html> <head> <title>record payment</title> <html><head> <script type="text/javascript"> var monthNames = [ "January","February","March","April","May","June","July", "August","September","October","November","December" ]; var today = new Date(); …

Member Avatar for forgot
0
42

The End.