How are we doing? Please help us improve Stack Overflow. Take our short survey

Questions tagged [php]

Lô đề online PHP is a widely used, high-level, dynamic, object-oriented, and interpreted scripting language primarily designed for server-side web development. Used for questions about the PHP language.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Inject different Ad code based on UTM parameters

I have a website that needs to serve Ad units from a specific Ad program when there are specific UTM parameters in the URL, and the user needs to see these Ad units as long as they stay on the website....
0
votes
0answers
14 views

Return an array with a function with parameter

I use WordPress and I'm trying to get an array with a function that contains a parameter but I only got the first element [0] What is wrong with my code please? $posts_list = array( 'post_type' =&...
0
votes
0answers
6 views

Sitemap Function error with specific Wordpress template

I am testing sitemap function to create sitemap, without any external plugins. The sitemap works and fully updates on new post. I want to include the page hierarchy in sitemap.xml file based on ...
0
votes
0answers
8 views

How do I know which file does href directs to?

I'm working on a project right now, and it's confusing reading somebody else's code, especially there are lots. So in a template file, code like: <li><a href="<?php echo BASE_URL; ?&...
0
votes
1answer
12 views

Grab litecoin received amount from sochain

I am currently developing a website and I have run into a stump. So basically what I need to do is query http://sochain.com/api/v2/address/LTC/39GQ6G6JUcPTVWfxDiMEtiEPvz25XcnXNm and get the "...
0
votes
0answers
10 views

Convert string to php array keys dynamically [duplicate]

So, if I have this string taxonomy.universal_descriptive_taxonomy and I need to append taxonomy and universal_descriptive_taxonomy as keys to an existing array like this: $data['taxonomy']['...
0
votes
0answers
6 views

How to append to darray with pipe in Hacklang

I am trying to add an item into a darray |> darray(JSON::decodeMap($$)) I want to append one more item discover_arg => xxxxx in to this darray, how could I achieve so?
0
votes
0answers
14 views

can i store a date and timein mysql using varchar?

I'm doing a booking system using PHP and MySQL. my question is Can I store time without showing the seconds? for ex: 19:10, and store a date in the form of (Fri Nov 20th, 2020) using varchar. are ...
0
votes
0answers
12 views

How can I inject code into PHP via vulnerable endpoint?

I am trying myself on an 'easy' pentest box of HackTheBox. During my investigation I found an endpoint with a vulnerable variable example.php?file= that gets not sanitised. Through path traversal I ...
0
votes
0answers
4 views

how to create woocommerce masonary layout well?

I want to make changes to the pagination of my WooCommerce store, which has a maneuverable pagination mode. I did it with CSS Great but I did not succeed. Can anyone help me?
0
votes
0answers
9 views

Why PHP-FPM socket stops allowing connections from Docker after restart?

PHP-FPM is running locally on my Ubuntu 20.04 installation, configured to listen on a socket: /etc/php/7.4/fpm/pool.d/www.conf: [www] user = www-data group = www-data listen = /run/php/php7.4-fpm.sock ...
-1
votes
0answers
7 views

Can't connect to mysql DB by doctrine on docker

Basicly I have a problem with doctrine. It is my first time that I set up a project on docker containers using doctrine and mysql. So I have docker-compose.yml version: '3' services: api: ...
-1
votes
0answers
7 views

How i can submit html form without change url or still on current page? (using jquary and php ) [closed]

I want submit html form and still on current page and i want receive response and show it I try use $.post('http://example.com', $('#form').serialize()); but it post requst not submit it &...
0
votes
0answers
10 views

Options to load DLL in PHP (7.0) at run time?

I'm building small application to collect data. For data collection PHP is used, for data storage PostgreSQL is used. PostgreSQL is included so I have full control over it. The PHP for collection is ...
-2
votes
1answer
21 views

How to get 5 random number from 0 to 10 that all are different? php [duplicate]

suppose i have an array $array = [2,55,66,446,98,353,5435,36,335,35,33,33,33,33,33,333,333]; I will need 5 random indexes $random1 = rand(0, $array.length() -1); $random2 = rand(0, $array.length() -1)...

15 30 50 per page
1
2 3 4 5
91820