Skip to content

Add a call to PHP in a jQuery button with Ajax

I tried to modify the behaviour of the Save button in my DokuWiki (see my post on their forum without answer yet). I want to call a specific file.php when the user hits the Save Button, i.e. every time there is an edit in the wiki. The PHP file recalculates all the connections in the Wiki and creates a new

Sending file to WebDav server using PHP curl

I am trying to send file to the webDav server using curl. My code is working fine but the problem i am facing is curl -T is deleting all the existing file in network. Is there any other flag which can only send one file and donot touch other files in a network. exec(‘curl -T “‘ . $src . $fil…

sprintf (PHP) return unwanted character (×) [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed las…

Laravel DB Query WHERE date greater than not working with JOIN

Background I have written a SQL query that works perfectly for my needs, and I am trying to add it to a queued job in Laravel. Instead of using Eloquent models I wanted to go with DB Query to ensure better performance as there will ultimately be many joins and conditions. I am having a problem with the where …

PHP processing with multiple function to return expected result

in this code which is that a simple code to work with passing multiple function we should expected to return 5 in result, this below method should accept a one variable number of functions, and that should return a new function that accepts one parameter which that $arg named the returned function should call…

How to use external function in php route

I am building simple php route But I I have the following, which is working My challange is that… I want to be able to load the function directly from a controller which I am calling the login() is a function i created inside LoginController class I get this error My Route.php Is there anyway i can make…