Search Results
|
|
|
Thread: Why?
Post: RE: Why?
superior Wrote: (12-15-2022, 08:54 AM)
--
Why would you put that kind of debug information in the public root, you shouldn't need in a production environment?
--
There's also the error_404.php and t... |
|
504 Views
7 Replies
|
12-15-2022, 09:12 AM donpwinston |
|
|
|
Thread: Why?
Post: RE: Why?
kenjis Wrote: (12-15-2022, 04:00 AM)
--
donpwinston Wrote: (12-14-2022, 07:07 PM)
--
Why is this code reading a javascript file(error_exception.php)?
PHP Code:
--
--
Why not use:
PHP Code:
--
... |
|
504 Views
7 Replies
|
12-15-2022, 06:00 AM donpwinston |
|
|
|
Thread: Cannot Create Session
Post: RE: Cannot Create Session
InsiteFX Wrote: (12-14-2022, 11:54 PM)
--
Somewhere in your code is outputing to the view before you create the session.
Check your code for output to the screen ( view ).
It means that the hea... |
|
328 Views
2 Replies
|
12-15-2022, 03:15 AM donpwinston |
|
|
|
Thread: Remove Inline Styles From error_404.php, error_exception.php, and production.php
Post: Remove Inline Styles From error_404.php, error_exc...
Inline styles are not allowed when Content-Security-Policy is enabled. Please remove them from error_404.php, error_exception.php, and production.php. They also cause the debug bar to malfunction if i... |
|
349 Views
1 Replies
|
12-15-2022, 02:17 AM donpwinston |
|
|
|
Thread: Why?
Post: RE: Why?
InsiteFX Wrote: (12-14-2022, 11:49 PM)
--
For one you no longer need to include the ( type="text/javascript" ) also the ending tag shold be just > not />
stackoverflow - What's so bad about in-li... |
|
504 Views
7 Replies
|
12-15-2022, 01:57 AM donpwinston |
|
|
|
Thread: Why?
Post: Why?
Why is this code reading a javascript file(error_exception.php)?
PHP Code:
--
--
Why not use:
PHP Code:
--
--
I wouldn't have to put the nonce attribute in the tag when I turn CSP on which is ... |
|
504 Views
7 Replies
|
12-14-2022, 07:07 PM donpwinston |
|
|
|
Thread: Cannot Create Session
Post: Cannot Create Session
I've a situation where I cannot create a session. The exact same code works fine on another server. I don't know why this one doesn't work.
Code:
--
CRITICAL - 2022-12-14 19:54:46 --> ini_set(): Ses... |
|
328 Views
2 Replies
|
12-14-2022, 07:01 PM donpwinston |
|
|
|
Thread: url encode
Post: RE: url encode
/ chars in $path will screw it up. They need to be url encoded. But this apparently causes a bad url request. Need to use ?path=xxxxxx. |
|
1,533 Views
12 Replies
|
10-19-2022, 12:45 PM donpwinston |
|
|
|
Thread: url encode
Post: RE: url encode
heriniaina Wrote: (10-02-2022, 11:18 AM)
--
Just try
PHP Code:
--
redirect()->to("/operations/path-item/' . $path);
--
--
[hr]
$path needs to be url encoded or it won't work. But now I think us... |
|
1,533 Views
12 Replies
|
10-14-2022, 10:47 AM donpwinston |
|
|
|
Thread: url encode
Post: RE: url encode
kenjis Wrote: (09-30-2022, 02:08 PM)
--
donpwinston Wrote: (09-30-2022, 09:24 AM)
--
No.
:any allows an arbitrary number of segments. That's not what I want. I need '/data/report/some_file.txt' to... |
|
1,533 Views
12 Replies
|
10-01-2022, 08:58 AM donpwinston |
|
|
|
Thread: url encode
Post: RE: url encode
kenjis Wrote: (09-29-2022, 11:32 PM)
--
%2F equals /
/operations/path-item//data/reports/some_file.txt and /operations/path-item/%2Fdata%2Freports%2Fsome_file.txt
are the same.
If you want to c... |
|
1,533 Views
12 Replies
|
09-30-2022, 09:24 AM donpwinston |
|
|
|
Thread: url encode
Post: RE: url encode
kenjis Wrote: (09-29-2022, 06:54 PM)
--
Sorry, I don't get what you say.
In my opinion, the code should be:
Code:
--
base_url("/operations/path-item/$path")
--
--
The $path var = '/data/reports/so... |
|
1,533 Views
12 Replies
|
09-29-2022, 10:56 PM donpwinston |
|
|
|
Thread: url encode
Post: RE: url encode
kenjis Wrote: (09-28-2022, 08:39 PM)
--
Why do you use urlencode() for $path?
--
Because path will equal something like '/data/reports/some_file.txt'
so |
|
1,533 Views
12 Replies
|
09-29-2022, 05:15 PM donpwinston |
|
|
|
Thread: url encode
Post: url encode
I've a controller below. When I redirect the parameter is getting decoded and CodeIgniter can't match the URL and I get a 404. What's going on here?
My route is:
PHP Code:
--
$routes->get('/operati... |
|
1,533 Views
12 Replies
|
09-28-2022, 02:08 AM donpwinston |
|
|
|
Thread: Validation Rules
Post: Validation Rules
When I majored in math 0 was not considered a natural number. Natural numbers are 1,2,3, ... I don't believe this has changed since I was in college. CodeIgniter's built in rules have
is_natural and ... |
|
235 Views
2 Replies
|
09-27-2022, 12:50 AM donpwinston |
|
|
|
Thread: Puzzling Error
Post: RE: Puzzling Error
iRedds Wrote: (08-02-2022, 03:31 PM)
--
$routes->get('/notice/download/{:segment)/(:segment)', 'Notice::download/$1/$2'); //?
--
Duh. Thanks. |
|
495 Views
2 Replies
|
08-02-2022, 05:55 PM donpwinston |
|
|
|
Thread: Puzzling Error
Post: Puzzling Error
I've upgraded CodeIgniter from 3.9 to 4.2.1. I'm getting the following exception for all my routes except two. I don't understand why. I don't know what is different about the two that work. Invalid r... |
|
495 Views
2 Replies
|
08-02-2022, 08:46 AM donpwinston |
|
|
|
Thread: CodeIgniter 4 Has Been Awesome
Post: CodeIgniter 4 Has Been Awesome
Just thought I'd post this. I work as a web developer for a private company contracted by the US Federal Court System. I'm a former Java programmer but nowadays primarily a Drupal/PHP developer for v... |
|
1,655 Views
4 Replies
|
03-18-2022, 06:22 AM donpwinston |
|
|
|
Thread: Strange Behavior
Post: Strange Behavior
I have a ..../public/test.php file:
and I have a CI app where in a before() function of a custom filter I have:
log_message('debug', print_r(getallheaders(), true));
I'm getting different re... |
|
676 Views
1 Replies
|
02-23-2022, 07:24 AM donpwinston |
|
|
|
Thread: CSRF Protection Problem
Post: RE: CSRF Protection Problem
I did upgrade to 4.1.7. Everything appears to work now. It worked occasionally with 4.1.4 which drove me nuts. I have another app that is still 4.1.4 and that uses csrf too. I haven't experienced this... |
|
1,622 Views
7 Replies
|
01-18-2022, 07:25 PM donpwinston |
|