Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have a page that doesn't end to load. PHP max_execution_time is set to 30 but the icon in the Chrome tab doesn't end to turn. What tool I can use to find where the script is?
PHP log are clean, and this is a simple login page made using laravel.
I discover that problm are caused by cookie, in fact if I load page using Chrome hidden mode I have not the problem.
PHP max execution time is for PHP. There are several other things that have to process as well, like MySQL. The time it takes SQL to do stuff is not included in the PHP max execuion time. Beyond that, you'd have to show some code to figure out why.
To anwser your question, the browser is a pretty good tool for that. Or if a rewrite is hiding the filename you could grep for a unige string from the source, assuming you know which parts are PHP generated.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
A client of mine has the error that sometimes When he tries to upload a Picture inside a text & media element via "Add media file" the fileadmin section is not loaded. I was not able to reproduce and my google search did not help me. I would like to give my client an explanation why this could happen. Does anyone have an idea? He uses PHP 7.4.3 and TYPO3 10.4.6, thats all information I got..
The fault is most likely a network problem.
If something like this happens the browser-console can be opened to get a confirmation about the loading-problem of files and data.
"Debugging" network-errors is certainly not solving the resulting faults on client-side.
Verifying hardware and perhaps limited capacity on the client-side could bring up some options like increasing memory, repairing cable-connections, etc.. If on that side no faults can be found then the network itself might be unstable or overloaded.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to make sure visitors to my site can't see the PHP code that's generating the page. Here is a reference: http://may.edu.np/tmp/
Can anyone explain to me how server-side scripts are interpreted and how the result is delivered to the end user?
If I understand your question correctly, no one should be able to access your source code so long as they don't have access to the server. When a browser makes a request for a .php file to the server, the server knows that it must first interpret the script and then send the output from your echo statements and/or inline HTML. As far as I know, there's no way for the user to "trick" the server into sending it as plain text, so I wouldn't worry about that. Also, as long as you disable error reporting, no one should even know you're running php, as there's no ".php" in the URL. Hope this helps :)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Someone asked me to cache the XML call im pulling in to prevent server trouble. But now my question is, what exactly is caching, and how do i do it?
Hope to find some answers here.
Is it a way to save the XML output to a file, and then use that file? But how do i check if there are any updates than, or when somebody closes the browser? Or do i store the XML in a SESSION or COOKIE?
Caching is the action to remember your calls during a limited time in order to prevent unnecessary calls.
For exemple, it can be like this :
You check if there is something already cached.
There is nothing, so you make your call.
You save the answer of your call for a limited time.
Next time you will check the cache, you won't call, but just user the saved answer.
You can be inspired by this script : http://www.finalwebsites.com/snippets.php?id=49
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I know how to read and parse XML with PHP, but is there a way to make it auto advance through pages of XML data automatically? I work for a TV station that is featuring open houses via a real estate xml feed and need to show one or two houses at a time for a half hour without requiring someone to sit there and advance the pages themselves. Any thoughts would be appreciated!
You could have PHP output the necessary JavaScript to redirect to the next page.
Here's how to redirect to a new page: How can I make a redirect page in jQuery/JavaScript? combine that with setTimeout() to add a delay.
I'm not sure whether I would rely on this for a live TV feed, though - I'd be too scared of the embarrassment of the browser crashing, or an error popping up....
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
How does it possible to get variable modificated values, after script ended? im going to make a small and very simple caching system, for start to cache just needs to put "cache" commented where need to start cache and same when ends, only problem is to emulate all script and, as i said, get each changed instance of var.
Usually there is more simpler, just integrate the caching in your script, the process would be
verify there is some cache and it's not expired
if there is some not expired cache use it, end
render the page and capture it using ob_* functions
build the cache
This way you don't have to emulate anything, just to wait that some people visit the page, plus you don't built cache for page that are never visited.