I have a website with which I want to record the ip’s of those who visit it. Now, I think I have some code that will do the job (I got this from here): What I want this to end up doing is saving the ip address and the date of everyone who visits my website to a log.txt file.
Laravel Paypal Api and Subscription plan integration. Problems of the self-taught beginner
The emotional part. Hello stackoverflow community! Please do not be angry with me for possible stupid questions, the answers to which seem obvious to you. I am learning to program and my only opportunity is to do it myself. I want to understand how I can correctly change my intellection and realize how a real programmer thinks. I will be
Retrieving PayPal email address after payment?
When you are setting up a PayPal Buy Now Button, you can take customers to the URL when they finish checkout. Is there a way to retrieve their PayPal email immediately after PayPal checkout using $_GET? Does PayPal append some kind of ?email=email@address.com at the end of your thankyou page? Or is there any variable I could add at the
How to get user order data by specific month in laravel?
I want to user orders data by specific month in a year. Here is my order Table id | user_id | price | quantity | total Here is my order model Here is my user model In a controller, by doing this I get all user orders Now, How can I get specific month user orders detail? I want to
Laravel :value in another language
Laravel 8 php 7.1 I have a form with some input fields. The form is available in English and German. If you don’t enter something in the German version and want to send it, the following text appears: (In English that means This field is required if the job description is not available. ) How can I replace the job
Custom Sort Order by Ids as array in elastic search
The scenario is like this we send the products id’s in array as [101,102,103,…..so on ] but in response we aren’t getting the results in the same order is there any way to get the records in the …
Parse CSV file into columns using PHP
I’m unsure as to how I would add columns to information I have within my CSV file. The three columns that I would like to have are Mobile Number, Carrier Name and Validity Status. index.php: My information currently displays as shown in the following code: I would like for the information to be columned as shown below (online example I
Can I assign value to target of reference in PHP? (I want to dereference)
I have a nested array, and I have a reference to an element within that array. I would like to be able to assign a value inside that array using my reference, but I can’t see how to do that. The above works fine, but I now want to assign a new value to ‘bar’ using my reference: I tried
Docker Cannot assign requested address
I think I’m pretty close (I hope) to having xdebug running in a docker container, aiming to connect via Visual Studio Code. I think that maybe I’m supposed to add a config to the /etc/hosts file in the container, directing an IP address to the url my files are being served over, but am not sure what that IP address
PHP dynamical value as time() function speed in bigdata
What is the preferred (less memory consuming and fastest) approach to use time() or any similar dynamic value in billion+ iterations? A) B) C) I would personally prefer C) but I don’t know how will PHP use memory, if every iteration is storing time as variable? Is it the same in A) and B)? Answer A is surely the fastest,