Skip to content

Tag: php

Files in directory not in order

I use this code to list all files in directory: But, the result is not in the numerical order. How can I fix it? Answer Get a list of all the filenames, then you can use a sorting function.

php pdo json encode array print

When I pull data from the hello database, it just writes the first line, not the other lines, what could be the reason? I did not know much about php json but did not get any results. İD 88 NOT FOUND **database print ** database data database function socialmedia foreach Answer You’re only returning the…

How send Id to my view in redictionRoute Symfony

(Sorry for my english) I’m making a subscribe system (the flush is ok in database) than: My Route of redirection needs an Id How can I send this id to the redirection ? I tried to play with the user object but no success Answer Try this Or (PHP < 5.4) Symfony should then load the User with that ID

Weird file in php (xampp)

I could not find anything anywhere on the internet explaining what you can see in the screenshot. This is in my xampp folder (as you can see at the top of the screenshot), there is a file why.tmp which was apparently created in 2013. I got this PC in 2017 and now it’s 2020. You can also see the content