Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: composer settings and phpstorm
Post: RE: composer settings and phpstorm

kenjis Wrote: (09-19-2023, 02:03 PM) -- When I open "vendor/codeigniter4/shield/src/Authentication/Authentication.php" in PhpStorm, I don't see no namespace warning. -- ok, i've obviously got some...
169 Views
2 Replies
09-20-2023, 02:38 AM
badger
    Thread: composer settings and phpstorm
Post: composer settings and phpstorm

Its very minor query and my project works fine but I'd like to sort it out once and for all so as to have everything correct. As an example, the file "siteapps/vendor/codeigniter4/shield/src/Authentic...
169 Views
2 Replies
09-19-2023, 04:48 AM
badger
    Thread: Process After Webhook Response
Post: RE: Process After Webhook Response

what i do in a similar situation is save the data to a pending table and use a cron job to check the table every minute or so
602 Views
3 Replies
07-18-2023, 10:19 AM
badger
    Thread: Support to HTTP/3
Post: RE: Support to HTTP/3

i'm running ci4.3.2 and this same message "...Invalid HTTP Protocol Version. Must be one of: 1.0, 1.1, 2.0, 3.0 in SYSTEMPATH/HTTP/MessageTrait.php on line 232." just appeared in my log. it doesnt say...
2,323 Views
8 Replies
03-22-2023, 09:11 AM
badger
    Thread: getting $host from $_SERVER
Post: RE: getting $host from $_SERVER

kenjis Wrote: (02-26-2023, 07:17 PM) -- Do not use $_SERVER['HTTP_HOST'] or $_SERVER['SERVER_NAME'] without validation. Attackers may set any value to them. -- thanks, I'm slowly learning
517 Views
4 Replies
02-27-2023, 02:14 AM
badger
    Thread: getting $host from $_SERVER
Post: RE: getting $host from $_SERVER

you're right. i just saw the entry in the apache log and thought i should eliminate it. problem solved (or at least gone away) Thanks, Bill
517 Views
4 Replies
02-26-2023, 11:20 AM
badger
    Thread: getting $host from $_SERVER
Post: getting $host from $_SERVER

As part of something else, I have a very small site running on a raspberry pi (apache2.4.38, php8.1.15) and normally it works perfectly but sometimes the log file shows a crash on config/constants. I ...
517 Views
4 Replies
02-26-2023, 08:25 AM
badger
    Thread: possible bug in protectidentifiers v4.3
Post: RE: possible bug in protectidentifiers v4.3

These are field values which I'm extracting as part of a db backup routine so the end result is an insert string "insert into ... values (value1,value2, etc)". I thought I could simply use $values[$i]...
430 Views
2 Replies
01-11-2023, 02:58 AM
badger
    Thread: possible bug in protectidentifiers v4.3
Post: possible bug in protectidentifiers v4.3

I've checked this with BaseConnection 4.30 and v4.2.10 While extracting data from a db using Code: -- $values[$i] = $db->protectIdentifiers($values[$i]); -- all values are correct except fo...
430 Views
2 Replies
01-10-2023, 08:54 AM
badger
    Thread: block hacker
Post: RE: block hacker

Many thanks
1,165 Views
4 Replies
01-10-2023, 02:37 AM
badger
    Thread: block hacker
Post: RE: block hacker

Well I knew it was a bot but I class them all as hacking attempts. Anyway, I've just learned something new from you. So how do i stop the auto bots please? Thanks, Bill
1,165 Views
4 Replies
01-09-2023, 09:19 AM
badger
    Thread: block hacker
Post: block hacker

I'm sure there is a better way to do the following. My aim was to stop a hack attempt at the very start, so in routes, at the very top, I have Code: -- $sUrl = strtolower(uri_string()); if(str_st...
1,165 Views
4 Replies
01-08-2023, 10:42 AM
badger
    Thread: Trying to make recursive function : no data return
Post: RE: Trying to make recursive function : no data re...

Don't know how many records you have in your database but in a similar situation, rather than hitting the db with umpteen queries, i extract all the entries and then do a recursive loop in php Bill
1,639 Views
9 Replies
12-19-2022, 02:06 PM
badger
    Thread: router query
Post: router query

A single redirect is causing two redirects and I can't figure out why. The code is intended to catch any uri containing "logout"  and send it to the auth controller which will do the logout process. ...
281 Views
1 Replies
11-15-2022, 09:02 AM
badger
    Thread: Views not reflecting code, html or css changes
Post: RE: Views not reflecting code, html or css changes

to prevent cache problem, maybe give the css file a different name each time you change it eg mystyle_01.css and increment the _01 accordingly. Then either manually update it in your html view or ru...
1,080 Views
2 Replies
08-17-2022, 06:20 AM
badger
    Thread: How to insert thousands of entrys in MySQL
Post: RE: How to insert thousands of entrys in MySQL

use one insert with multiple groups of values - much much faster than using an insert for each line of values. google for insert multiple rows insert into ... (fieldname, fieldname,...) values (line0...
1,522 Views
3 Replies
05-16-2022, 08:16 AM
badger
    Thread: Return No of rows as Days in between
Post: RE: Return No of rows as Days in between

group by date
1,444 Views
5 Replies
04-13-2022, 02:47 AM
badger
    Thread: How to access images under writable folder
Post: RE: How to access images under writable folder

rather than one folder with gazillions of images (you'll always have way more than you expect) i have an images folder with 20 subfolders into which the images are allocated to maintain an approx even...
27,851 Views
14 Replies
03-30-2022, 02:07 PM
badger
    Thread: bug in System-Debug-Exceptions
Post: RE: bug in System-Debug-Exceptions

InsiteFX Wrote: (09-03-2021, 03:10 AM) -- If it is a true bug report it to the Development Team on GitHub issues. -- ok, done dat
1,078 Views
2 Replies
09-03-2021, 03:27 AM
badger
    Thread: bug in System-Debug-Exceptions
Post: bug in System-Debug-Exceptions

at line 278, if $viewFile has not been set, the debugger will crash with unknown variable $viewFile. so at line 258 i set $viewFile='"" and changed line 278 to if(strlen($viewFile)>0) include $viewFi...
1,078 Views
2 Replies
09-02-2021, 02:21 PM
badger

Theme © iAndrew 2016 - Forum software by © MyBB