Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681457y@sharktits if it was python you'd need to import some library to handle url fetching.
but this is not python.. -
C0D4681457y@irene to make it share worthy π
I don’t need comments on a small piece of code that will never see the another computer -
fonfi8237y@sharktits why feel sorry for someone for being good at something? π³ I tend to admire people that try to master any subject.
-
Teknas27517yPretty sure a guy out there can do this in 5 lines of python.
A js guy would do it in 3. -
PHP is like a rusty pickup truck:
Messy, limited, ugly to look at and you always wish you'd never use it.
But daaamn it gets the job done! -
ymas4717y@vlatkozelka why is it impossible to write a large scale modular application with PHP? What difficulties have you faced?
-
fonfi8237y@vlatkozelka go tell that to Mark Zuckerberg and Slack creators :) And yes it works more than fine with our modular, highly scallable, country wide used software π
-
C0D4681457y@ArchLinux
I’ll clean it up a bit and make it work with cli arguments for the page URL and file location to save to first, so it’s easier to work with.
This was my test page to get it working.
https://github.com/EbookFoundation/... -
C0D4681457ywow, my first open source script....
For anyone interested
https://c0d4-101.github.io/pdfDownl...
@ArchLinux
@frickerg -
C0D4681457y@irene
Windows and php is straight forward you don’t need the bandwagon.
This isn’t native to either win or Linux as i hate rewriting things to migrate between OS.
The local directory for this will accept full path or local to current folder. -
C0D4681457y@irene just grab the PHP binaries and copy the php folder to somewhere easy to remember and add the directory to windows PATH so you can use it in CMD globally.
usually C:/php
https://windows.php.net/download/...
if you want to spin it up as a web server backend then you'll need apache (the bandwagon) -
ymas4717y@vlatkozelka I agree that the OP's post doesn't prove anything, however, OP wasn't trying to prove anything though. OP expressed concern about indiscriminate PHP bashing and made the point that while others are arguing over languages, he's getting work done in PHP. I might be missing something but you have not listed any intrinsic problems with PHP. Your reasons for disparaging PHP are quite generic and can easily be applied to any aspect of life - if you don't know what you're doing, chances are you're going to make a mess of anything. Does the framework interoperability group not publish enough guidelines to assist with structuring code? Are there any problems with any PSRs you read?
-
C0D4681457y@ymas <- this guy gets it.π
This was intended as a PHP bashing, bash post but I swapped it into a “look what I did”.
Related Rants
PHP sucks balls,
It takes forever to do anything, it is so messy it feels like walking through a massive pile of shit!
Ok good I have your attention and that ++ π
But no this is not that kind of rant, quite the opposite.
In 70 lines of php shit as some people would call it, I am currently scrapping GitHub pages with ebook collections and with some minor regex pulling PDFs out and saving them to file.
rant
much wow
php
such shit