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
Search - "not php"
-
What devrant taught me:
Everyone hates java
Everyone hates php
Everyone hates spaces
Everyone hates tabs
Everyone hates vim
Everyone hates windows
Everyone hates linux
Everyone hates clients
Everyone hates PMs
Everyone hates every language they're not working with
Everyone loves devrant 😊36 -
What devrant taught me:
Everyone hates java
Everyone hates php
Everyone hates spaces
Everyone hates tabs
Everyone hates vim
Everyone hates windows
Everyone hates gnu+linux
Everyone hates clients
Everyone hates PMs
Everyone hates every language they're not working with
Everyone loves devrant 😀😄😙29 -
So I maintain a open source PHP app that wraps youtube-dl, providing an UI for it basically. Some guy on a forum DMd me saying it's not working for him. I asked him what php version he used and if the file permissions are correct (the script makes and switches directories, so the permissions can't be root but need to be www-data).
He answers with PHP 7.2 (the newest that's rare) and says the file permissions are correct.
After 2 weeks the problem still persists and ofc I am doubting my code here. We finally get online together and I can use anydesk to work on his machine.
I discovered 2 things.
1) File permissions were just completely wrong.
2) PHP WASN'T EVEN INSTALLED
So what did I learn?
Never trust the user and I am glad that I work as a dev, not as a tech support.10 -
my_girlfriend: who do you like more in your life?
me: linux
my_girlfriend: What????
me: you asked who i LIKE not Who i LOVE?
my_girlfriend: ok, who do you LOVE?
me: python
i dont know why she left me, i think she was php fan18 -
Client: Glad to have you on the team, you come highly recommended for your experience in Microsoft technology, specifically asp.net
Me: I was contacted for a php, mariadb project
Client: well they're all the same
Me: actually sir no.... No they're not.
Client: then why was I told to contact you
Me: you tell me, your hiring manager contacted me for a php project not asp or. Net
Client: well I guess I know who to blame for your, sorry for taking your time. Can I contact you if we have a project made with that thing you mentioned?
Me: php?, Sure
Client: nice...... Take care
Me: you too
That went better than I expected3 -
Hey, wanna hear a disappointing stack?
- WordPress
- jQuery
- vanilla inline CSS
- shitty random legacy PHP
Disclaimer:
The author is NOT responsible nor liable for any injuries, mental health issues, sanitary problems, asexuality, crippling depression, triggered by this rant nor liable for any damaged walls, hurt animals or deaths.12 -
Clint want custom CMS with php,
*makes custom CMS with php
Client thinks it's not php coz it looks pretty.
*shows php code
client still not convinced it's php8 -
Python -> indentation
HTML -> <!doctype HTML>
C++. -> int main()
PHP. -> <?php ?>
These are the fundamentals for some popular languages. Than there is this;
Lisp. -> ()
Like it doesn't give a fuck.
Not a single one.
I like that.11 -
so,i made a website and uploaded it to my paid hosting...some pages were blank when accessed.did some testing and found out that was a php problem.contacted the support to enable error reporting for testing...he said that it can not be done...and that my code was the problem....spent 3h testing like a blind man...then my mother comes and sais this "maybe it's not compatible"she knows nothing about programming....then it struck me....fucking different php versions...i think i'm retarded sometimes...12
-
Sysadmin TIL:
Hiring PHP developers does not contribute to the quota of employees with disabilities.1 -
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.29 -
Story time!
My exboyfriend used to code in php 5. It’s his favourite programming language, and I hardly teached him how to code in Python.
One day, I said to him: Hey schatz, let’s go to the sex shop ...
He: Oh yeah 😏
Me: ... and buy an elephant thong 😁
He: What?!
Me: Yes, a blue elephant thong for Php
Me laughed
Me: So?
He: No way!
Me: Please!!!!!
He: Ok. I’m working at a cultural events web page. When I got my first client, we’ll go to the sex shop and buy the “php thong”.
Well... I broke up with him before we could go to the sex shop 💔😂😭( for another reasons, not for the php thong, obviously)
Do you have any funny story like this?28 -
What if your programming language would be chosen by The Sorting Hat from Harry Potter?
You would sit like:
*please not php, please not php, please not php*3 -
I just got handed a legacy php web project... Full of vulnerabilities... And it's using only mysql_ functions... Not only it's not OOP, there is not even a single class...
How good it's coded: User profiles are created manually by the frontend dev as htmls, and then the past php dev implemented them as links etc in the current page.
This is how I feel:5 -
The recruiter in call today is a spoilt brat .
I answer him wether am I know PHP. So I show him my code in PHP (oop) I show should him how I build a restful API and connect to MySql etc.
He told me that's not PHP , PHP don't use define and class , and that's not how you connect to MySql (I'm using PDO) he confused that pdo is something from Java. He told my code is not working because it is java syntax (actually not even closed)
Then I asked him then show me the proper way , he showed me his code in PHP which is started by <PHP instead of <?php (this is fucked up)
And I told him that (after looking at his code), he yelled at me that "there's no mistake, do you really understand PHP? " And he ended the meeting
All this happen in a zoom meeting.22 -
I still remember one of my lecturer asking whole class to install Linux because ,she thinks PHP does not work on windows machine 😂😂9
-
So where to start... Let me preface this by saying I am a Software Architect for C# and do 99% dotnet development.
I just received a phone call from our Director of Development asking me to look at adding a feature for SSO with our companies main development project, which is written in PHP. I hope I made the correct changes but since I am not a PHP dev... I am not 100% confident in my code.
Now I am writing this as we are making the deployment Friday, December 29, 2017 at 5:00 pm. I should add that I am going on vacation for the next week.
So let me summarize... I am not a PHP developer, the non-PHP developer is making PHP changes on a Friday Night, and before a long weekend and before going on vacation.
I would like to point out that I said I was not 100% comfortable with this... but well this is what they wanted. I am not even sure what really to say about this though.6 -
We passed a milestone: 250,000 phpunit testcases.
If it weren't for a heavily parallelized build pipeline which splits it out over 20 servers, it would take about 7.5 hours to complete.
Not hating on PHP, and without tests it would truly be hell...
But still, fucking hell, we outgrew PHP.
Not having a solid type system just means you either accept more bugs, or write thousands of unit tests to guard all the foundational cracks in the system.
On the bright side, I get a coffee break after every commit 😄22 -
Hello there, just couple of words about PHP. I've been develop on PHP more than 10 years, I've seen it all 3,4,5,{6},7. Yes PHP was not good in terms of engineering and patterns, but it was simple, it was the most simple language for web to start those days. It was simple as you put code into file, upload it via FTP and it works. No java servlets, no unix consoles, no nothing, just shared hosting account was enough to host site, or even application with database. As database everybody used to have mysql, again because its simple to start and easy to maintain. So PHP+MySQL became industry standard on Web during 00-2012, and continues in some way.
You can write HTML and logic inside single file, within php code, even more single file may content few pages, or even kind of framework. That simplicity and agility sticks everybody who wants to develop sites with PHP.
This is pretty much about why it is so popular.
Each good or wannabe PHP developer in an early days write its own framework or library (like in javascript this days because of nodejs)
Imagine that PHP has hadn't have package manager, developers used to have host packages on their own sites, then various packages catalog sites created, and then finally composer. A gazillions of php code had spread over internet, without any kind of dependency control. To include libraries to your projects you have to just write include, or require. Some developers do it better than others.
So what we have ? A lots of code, no repositories, zip archives with libraries, no dependency control.
Project that uses that kind of code are still alive even today, they are solid hose of cards, and unmaintainable of course.
And main question that I'm trying to answer is Why PHP is not good ?
- First is amount of legacy code which people copy and pasted into their project, spread it even more like a virus.
- Lack of industry standards at the beginning lead to a lots of bad practices among developers. PHP code usually smells.
open source php projects in early days was developed in same conditions so even in phpbb, phpnuke, wordpress, drupal used to have a lot of bad practices in their codebase. So php developers usually not study by another library, instead they write their own frameworks/libraries.
- "It works", - there are no strong business demands, on web development, again because lack of standards, and concerns.
This three things are basically same, they linked to each other and summarize of answer of why PHP have strong smells and everybody yelling against it.
Whats is with PHP nowadays ? Of course PHP today is more influenced by good practice of webdev. Composer, Zend, Laravel, Yii, Symphony and language it self became more adult so to say, but developers...
People who never tried anything except PHP are usually weaker in programming and ecosystem knowledge than people who tried something else, python, perl, ruby, c for instance.
Summary
PHP as any other programming language is a tool. Each tool has its own task. Consider this and your task requirements and PHP can be just good enough solution.
"PHP is shit" - usually you heard that from people who never write strong applications on PHP and haven't used any good tools like Symphony or Laravel.
Cheap developers, - the bigger community, the more chance to hire cheap developers, and more chance to get bad code. That can be applied on any other language.
PHP has professionals developers, usually they have not only php on scope.
That's all folks, this is very brief, I am not covering php usage early days in details, but this is good enough to understand the point.
Enjoy.8 -
Dear recruiters,
if you are looking for
- Java,Python, PHP
- React,Angular
- PostgreSQL, Redis, MongoDB
- AWS, S3, EC2, ECS, EKS
- *nix system administration
- Git and CI with TDD
- Docker, Kubernetes
That's not a Full Stack Developer
That’s an entire IT department
Yours truly #stolen9 -
So my girlfriend decided to surprise me with this cake... I'm happy with it but I feel violated as I'm PHP guy not .NET13
-
How to take being a programmer
"Haha Windows is bad"
"Php more like phpepsi"
"When you were 12 I was coding in basic"
"I'm not like other programmers"
"Stack overflow comes to me for help"
"I don't use an ide because word 2007 has all the functionality I need"6 -
Yep, you need to know c++, php, HTML, CMS, and </> to become an Android developer.
Not java.
That's not important.
I love sponsored content. Always accurate.10 -
Job title :
"PHP and MySQL Programmer"
Job description :
"We are looking for a Flash Developer with a high level of proficiency developing ActionScript solutions.... bla bla Development in a 2D and 3D environment"
doesnt say ANYWHERE what is require to know in php nor mysql
EDIT: actually it does but why would they put php and mysql programmer if thats not the main things they are looking for6 -
Languages I have used this week at work:
PHP, JS, VB6, VB.net, C#.
Im not kidding.
Time to relax with some good ol' beer 🤣8 -
Task:
- Replace a 4 year old PHP API.
Old API:
- PHP script writing PHP scripts to /var/www/ for every endpoint needed
- Answers everthing with 200 (not even 404)
DB:
- MySQL 5.6
- ~ 1000 Tables, NO FUCKING FK's
Documentation:
- "Wasn't worth the effort"
New API:
- Not allowed to behave any different
.
.
.
😭17 -
In web technologies lab.
Friend copied some php code from some website and saved it.
Tries to run it and it just prints whatever he wrote.
After thinking for like half an hour he calls me.
Friend: hey u know php right? Why my code is not running?
I check the code in the editor and everything looks fine except he saved his php code with an extension .txt 😑 😑2 -
instead of ranting why php sucks or your co-worker being an ass in coding, why not have some of this?12
-
I'm doing a migration where I have to move like 200+ old-old websites. Stuff was never touched for ages and we kinda moved it 'into the cloud' now.
So after a few sites I check graylog (where all the logs are stored) and I saw this gem:
stderr: PHP message: PHP Warning: file_get_contents(http://tinyurl.com/api-create.php/... Online Viagra/): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request
And I was like, wtf? Is this site hacked?
Ok the sadness starts now. Behold the following:
function getTinyUrl($url) {
$tinyurl = file_get_contents("http://tinyurl.com/api-create.php/...);
return $tinyurl;
}
This function gets executed for the current link AND every dynamic href on the page.. EVERY pageload.
I was not even mad.2 -
"Hi, our client is looking for a dot net developer, and we think you'll be a good fit."
- you got the wrong person i believe.
"you list laravel & phalcon.. Those are .net?"
I'm not sure what to say here, a recruiter whom doesn't see my employed tag & doesn't know how to Google..
Laravel & phalcon is .net.. Aaallrighty then.6 -
So, apparently when you're POSTing to PHP with Content-Type: application/json the $_POST variable will not get populated because PHP is not ready to support JSON as input. Because 1999.9
-
99% of our server-side code is Python and PHP (legacy applications).
Asked a junior dev to make a small update to a PHP site so we could have it run some cleanup server side. Plenty of existing PHP code to look at and piece something together. Should be 50 lines max.
Did he use the existing PHP code to do this task? Nope. Did he at least use Python? Nope.
Node.js
His response?
"I couldn't figure it out and Node.js seemed to have good support for mongo so I used that instead."
We have 0 lines of server side javascript. Never had node installed. Literally none of the devs use node here. Not only is this completely outside of our tech stack, but he had to take the time to learn Node and JS just because he thought it was easier.
Much would of rather he put in twice as much time to learn the tools of our stack.8 -
On my linkedin profile it is clearly mentioned that I am a Java developer.
Recruiter: Hey, I want to offer you a super cool PHP job position.
Me: But I haven’t mentioned anywhere that I am familiar with PHP.
Recruiter: Yeah, I know, but I thought you may want to switch to PHP for a while.
Me: o_O. Fuck you, miss. I do not switch programming languages like I change my socks. Who the fuck teaches you these approaches?11 -
Omg GuyZ I am looking tp CreAte the NeXt fb!! whAt shOulD I Use? (not php lol fuck php amirite) AnD use machiNe leArninG with nodE tO drive flying cArZ
btw I am from <completely isolated and technology ignored country> but i am l337 af! I don't know about html, css, server administration or even basic sql
WHERE SHOULD I START!!
Signed: account user with -5 points, not that it matters at all.
Y'all wanna know what is more fucking annoying than those morons? you dickwads trying to teach them shit or having arguments with them.17 -
Anyone remember when PHP was a straightforward procedural language and not a pseudo-objective mess?
#saturdaynostalgia9 -
Last year at work we started migrating our backend from PHP on a dedicated server to Node.js on AWS lamda functions
We went from 10 second calls to 70ms calls...
At this point our frontend is not even ready for this kind of speed 😅9 -
Not my own bug, but at our sister company there is a PHP developer who almost gets fired twice a year, once when the clocks go forward and once when they go back again. He can't program dates well, or use stack overflow apparently.3
-
We were in a college group. Five people. Making project in PHP. Some forced us to use cakePHP framework than left. One guy decided to not participate and decited to do it next year. One guy didn't know PHP at all. The two of us have to do all the work for five people.
On the presentation day we have ten minutes to do it. Guy without PHP knowledge forget password for our app, make three wrong guesses and locked us out of our app for five minutes.2 -
Dear sweet merciful Lord, my API is WORKING! OMG! I take back everything bad I said about PHP. Turns out the connection to the database was causing the script not to run. I'll figure out why later but poor sweet PHP, is innocent.4
-
The almost sexual vibe of this recruiters email.
You and I don’t know each other but it looks like you are into PHP and MySQL. I dig guys like you and have a few friends that would to. I have a client that is looking for a PHP Developer in Orlando FL."
If anyone else is looking to hook up with me you should be forewarned, I am not into PHP or MySQL.10 -
Every time some assholes decide to mix part of the business logic inside the presentation layer.
<body>
<?php
// Let's query the db here...
?>
<body>
<%
/* Hey, I'm a JSP! Why not defining some custom logic here, so nobody will able to debug it? */
%>1 -
Yesterday I was told to not mix HTML with PHP.
My reaction:
Why not? And how else should I do?
Don't get a answer to this.10 -
My boss just asked me to participate in a conference call to help an external senior dev implement some stuff/tool into our website.
My boss suspects that he doesn't even know Git...
Let's see how that whole thing will turn out.
My boss told me that he looked at his code and it already looks like an abomination of PHP...
It is enough that my boss usually writes shitty spaghetty code.
I will not sleep well this night.1 -
How the fuck have I not been using GO!
What bullshit wizardry is this!!!
I think I'm in fucking love!!
Sorry php, it's been a long long relationship, but I think I have a crush on this hamster. 🥰17 -
I'm sick and tired of reading jokes about PHP, JavaScript and Java. They reflect the situation from 10 years ago. Modern state of the languages is much nicer, lots of problems have been addressed. People don't realize how irrelevant their jokes really are. If your language of choice is stagnant and has not changed, you should not extrapolate.7
-
Omg so I've been stuck on this function I'm writing that checks if a certain array value is so many characters long and well, it just wasnt returning false when outside the conditions..
I tried taking it step by step, echoing out every line and it all made sense to me and there were no syntax errors.
Time goes by and inside the configuration file I was testing.. I was changing the value of a DIFFERENT array property than what I was using in my condition. They looked really similar.. fml xD2 -
Fuck you haters, I'm not dying of corona so PHP dies with it.
PHP is an amazing language. It has evolved nicely has almost all high performing functionally you need build in. Has a good package manager eco system. It's insanely fast (since 7.0, older versions where just fast with opcache).
Most of the called out inconsistencies are actually because it is consistently following C/POSIX equivalent or people that don't understand dynamic typing (it doesn't mean any shit will stick).
https://awesomeopensource.com/proje...
Fuck off with your JS backend solution because it's faster...
This is a big thanks to all the amazing members of the PHP community that worked hard to make PHP the great language it is today!!!82 -
i understand some developers like to write wrapper functions to handle tedious things, I even understand how to write dynamic SQL queries, but for the love of fucking god and sanity, NEVER FUCKING DO THIS!!!!
Yes its PHP, but its not even bad PHP, its a fucking abomination from hell of PHP.rant mysql legacy code gone wrong bourbon lots of bourbon why the fuck god no php sql injection ftw what in the flying fuck30 -
I like PHP.
It's not as bad as its reputation. Just because it's easy to learn, does not mean it's bad. In fact, with a framework like Laravel or Zend it's not so simple and keeps the whole spaghetti code developers away, which led to the bad reputation.9 -
GitHub
This repo contains the following languages:
- PHP 58%
- HTML 34%
- Javascript 5%
- CSS 2%
- Ruby 0.6%
- Hack 0.3%
- NASL 0.1%
The last 3 are not in this repo.
Don't fear about AI taking our jobs, it still can't identify what languages it's looking at.18 -
ALRIGHT! I'LL GIVE YOU SUPPORT ON MY VACATION TOO, IT'S NOT LIKE I HAVE FRIENDS AND FAMILY, NOPE, ALL I CARE ABOUT IS YOUR UNSTRUCTURED PHP CODE WHICH NEEDS TO BE REFACTORED BECAUSE 2 VISITORS ON YOUR WEBSITE SUGGESTED SO!6
-
Why is there such a big hatred towards PHP ? I have recently started backend dev in Laravel and it seems to be a pretty good framework. Most E-commerce frameworks are based on PHP as well. If PHP is so bad then why is it so widely used ?
I am not trying to defend PHP , but I genuinely want to know what's wrong with it ? I might switch to other backend tech then.12 -
I need bleach...
Lot of bleach.
When you think that not using a JS framework is bad...
Ever saw a Frankenstein of a HTML, PHP and JQuery? Full rewrite of an old project with more than enough time allowed....
Just... That was not awful enough.
*sobs* so the dev added bootstrap onto this pile of garbage... Instead of rewrite....
Think I missed CSS or included it in HTML? Lol. No.
No CSS. Inline. HTML 4 Tags.
?>
<table width=40 class="table table-striped">
<?php
foreach( $table as $row ) {
....
<input onkeyup="..." onkeydown="..." class="form-control"
...
To give you a basic example of how worse it is...
But the best. The lead developer does not understand why I was speechless.
i need more beer. And bleach. Filth and disgust must get out of my system2 -
PHP ist one of the languages I use regularly, but not the main language.
Anyhow, passing an array to a function will create a Copy of the array unless you specifically choose to Pass the reference.
That's seriously fucked up. What other language does that?! Coming from C, Java, Python to PHP I was not prepared to expect shit like that.21 -
Fucking tired of hearing the hatred against php. When I began learning php , i didnt know how unpopular it has became and now i' m in the middle of learning laravel, and i see people saying php is not even worth programming in. 😣25
-
“PHP is evil” is not just a joke.
PHP is usually percieved as a language which is not so consistent and has some opinionated historical aspects but allows rapid development because it’s easy. They say PHP doesn’t focus on that “purist shit” such as concepts and “just gets things done”.
Hovewer, this is not true. PHP lures you in and lies to you promising saving time on development, but everything, and I mean EVERYTHING written in PHP is doomed to turn into a bloody mess sooner or later.
You have to be an AI to manage the growing PHP codebase and add features without breaking anything. With every feature it gets harder and harder. If you’re still a human managing a human team, you have to enforce guidelines. Automatic error preventon measures are made of code themselves so the cost of deploying them ona late stage can be ridiculous. And you never deploy them on early stage because you want to “save time”. Your people have to spend more and more time everyday checking on that guidelines. Your development process only becomes slower and slower. If you try to push things, your project will crumble to dust.
To make PHP at least decent, you have to figure out all this by yourself on an early stage. When you’re done, you spent a lot of time creating the buggy, ad-hoc, unspecified and unsupported alternative of what works out of the box in other languages. And you still code in PHP and still have all its disadvantages in your project’s DNA.
PHP is evil because it promises and never delivers. PHP is evil because it lies to you and it already fucked over so many of us.
If you want to code in PHP, do it under your pillow. Code your own silly projects.
If your project has the word “production” somewhere in its plans, PHP is not the way to go.
Amen.66 -
"Learn PHP! nearly 90% of the web is done in PHP"
That's EXACTLY the reason you DON'T want to work with PHP. Tutorials, SO answers, blogs, every source of info is FULL with bad practices, horrible patters or no patterns, spaghetti code... Most PHP devs are web scripters who have absolutely no background on software engineering whatsoever.
Do yourself a favor, unless you plan to learn Laravel and stick with it, don't, do not, don't'm'st, don't'm'st've go with PHP ... just don't20 -
Why do job descriptions for ONE developer position, list down ALL the known programming languages, all the web technologies and frameworks available? From java kotlin swift php js jquery node to ionic angular laravel python and what not. Wtf? And this is not one, this is about 70 percent of the job descriptions I see these days!!5
-
The sad day has come people... Anyone who knows me; knows that python and PHP are not my favourite of things...
But I've decided to try and work towards getting a Dev position at my current work place... That required PHP and python knowledge
Gonna be honest, better pay but have to use PHP and python or kill myself is a very tough choice...18 -
So this guy is asking for help but his ego is too high. What happened was his code raised a ""Trying to get property 'result' of non-object"" error so I told him that the data type is not declared. He still not get it. Like in personal message he asked me wether I know php because he is the founder of some cloud service in php, and I know all about php.
I was like if you know php so well, why cant you realise that $result is not declared?4 -
Hey... to somebody reading this, most likely.
The problem, is that you put if($var = 'something')
You need ==, not =.
Php doesn't tell you that though. It'll just change the var to 'something'
That's why you're getting that really obscure, doesn't make any sense error.
You're welcome.9 -
Non-technical manager who been managing my team for years: "hey can you take a look at this log?"
*log is all PHP*
Us: "we're iOS devs, none of us know PHP"
Manager: "well why not?"
HOW DO YOU GET PAID MORE THAN US2 -
Today I replaced my php teacher (who was ill) during 3 hours. It's not the first time, I already helped my fellow students for this php class but this time it was different. It's was kind of official since my teacher came in and said "Adrien will give you the lesson today, he knows it by heart".
I have to say that I'm starting to like teaching, the satisfaction that you helped someone getting better at something is just amazing. It was a really good experience !9 -
Writing a super extensive project in php. Twice so far, I have had weird problems of codes not working.
But everytime I copy/paste the SAME code from another file, IT MIRACULOUSLY WORKS!!!!
WHAT THE ACTUAL FUCK!!!12 -
Not about favorite language but about why PHP is not my favorite language.
I recently launched a web shop built on Prestashop. I found that some product pages are so god damn slow, like taking 50 fuckin' seconds to load. So I started investigating and analyzing the problem. Turns out that for some products we have so many different combinations that it results in a cartesian product totalling about 75K of unique combinations.
Prestashop did a real bad job coding the product controller because for every combination they fetch additional data. So that results in 75K queries being executed for just 1 product detail page. Crazy, even more when you know that the query that loads all these combinations, before iterating through them, takes 7 fuckin' seconds to execute on my dev machine which is a very very fast high end machine.
That said I analyzed the query and now I broke the query down into 3 smaller queries that execute in a much faster 400 ms (in total!) fetching the exact same data.
So what does this have to do with PHP? As PHP is also OO why the fuck would you always put stuff in these god damn associative arrays, that in turn contain associative arrays that contain more arrays containing even more arrays of arrays.
Yes I could do the same in C# and other languages as well but I have never ever encountered that in other languages but always seem to find this in PHP. That's why I hate PHP. Not because of the language but all those fucking retarded assholes putting everything in arrays. Nothing OO about that.2 -
At work I use C# / .net but outside work I use PHP / Laravel.
I notice they are very similar.
Also .net used “razor”
Laravel uses “blade” - “razor blade”
Is there some sort of overlap between .net and laravel I’m not aware of?5 -
Well thanks to all the help from you ranters and some of my close friends, I decided to take the Web developer job. I start in two weeks as a Web Developer!
P.S. PHP is not as bad as I thought it would be. It actually allows me to do as much if not more than C# in ASP.NET land.4 -
Found an answer on Quora discouraging to learn Javascript because "it's not as important as php". It was a question about frontend development. Soooo 20002
-
Having a big legacy project written in good ol' vanilla PHP 5.4, running not in a server but in a desktop PC powered by a Celeron CPU.
Turns out that old buddy serves the tools everyone uses to work.4 -
> Found a VBScript to show a messagebox (2008)
> Got challenged to hack an FPS
> Copy-pasted VB6 into VS2008 Express
> Did not understand a single error
> Learned VB.NET
> C#
> Windows died, Linux installed
> Python
> C++
> PHP/HTML/CSS
Now I work with C#, PHP and C++
And I am still not able to properly inject a DLL to hack an FPS (I think)3 -
These script kiddies fuck with my error metrics! I want 0 !
I swear I'll find them! Even enabled IP log for every request contain “.php”.
Needless to say, app is not even in PHP and PHP isn’t even present on server12 -
So this happened today.
Trying hard not to judge :/
Later the person also said and I quote:
"It is a markup language or what? We had PHP for that."9 -
"PHP does not need good practices, because the use of PHP it is already a good practice". This is one of the loading messages in the Slack where I work.
PS: We do not use PHP there.8 -
So a friend of mine is starting to learn PHP and HTML and he tells me:
"I wrote some code in HTML but I can't run it through the browser"
I'm not brave enough to tell him you can't "run" HTML
But later, he told me "so now i'm writing PHP just to understand how it works, but don't want to install the program to run PHP"
How the fuck you gonna learn?
I already know I'm gonna have to build what he wants to do :/ at least a couple thousand euros incoming :D2 -
My boss wants to be asynchronous with php. Then to render the backend async he wants to use beanstalk using python to be scalable.
I said : we can use node.js it's already asynchronous. And we don't care about the langage php python...
Boss : node.js isn't scalable, there is no security it's not good enough, it's not enough safe. I code with php since 15 years and it's better than node. To much problem in the node.js version 0.12.
OK BUT NOW WE HAVE NODEJS VERSION 6 LTS. WAKE UP. OMG I GIVE IT UP LET'S GO.5 -
frameworks are great and all but it gets much harder to google stuff. a lot of people use php, not that many use cake7
-
My rant of the day is not being able to use the latest version of PHP with the latest features because my host only provides 5.6!7
-
PHP is the best framework for VSCode.
Now that I have your attention... Have you written a technical article? I'm thinking of writing something frontend related but not sure what topic to pick.
I'd love to hear about your experience and any tips you may have :D11 -
When you spend so much time using PHP that you start naming variables with $ in other languages without releasing.
bool $haha = true;
if (haha) ...
haha is not defined.3 -
Started learning PHP bcuz @dfox loves it. Why not me?
(instantly)
WHY IS THERE SO MANY -> SIGNS???????
IT DOESN'T LOOK LIKE AN ARROW AT ALL!!!!!!!!
IT SHOULD BE AT LEAST --> TO LOOK BETTER!!!!!
UUUURRRRGGGHHHHHHHHHHHHHHH!!!!!
(stops learning a few hours ago, got a refund)
(curses david)6 -
Tomorrow the last half of my current study in web design starts tomorrow and we are going to start by going through php and asp.net.. spider duck and I are not amused and confused..4
-
Recently was in a recruitment hackathon for leading technology company.
So, to test ppls networking, team building skill they grouped ppl into a team.
I was teamed up with noobs, and had very bad experience.
One guy in the team was arguing to use PHP for developing a web app.
Me : What PHP framework are u good at!?
He: what is framework !?
Me : like laravel etc..
He: no I meant we use plain PHP!
Me (mind voice) : go fuck yourself, I am bailing out , I Do not need the job
Me : It's ohk we only know NodeJs , so, gave a wierd smile
He was still arguing ,but I gave 0 f***
This is considered as a fight!?
Yeah not the worst though
Apparently the recruitment ppl liked him a lot in my team!2 -
I honestly do not understand why people speak so badly about PHP(that's the general vibe I am getting from all these different platforms) or maybe it's because I am still new at it I am yet to find out the reason.27
-
We've got this legacy PHP system that doesn't really run anywhere else than on it's server. It's not configured with git, and there's no pipeline. Just plain old SSH. How would you go about managing it?11
-
rant-ish*
PHP + jQuery + Excel
I am facing the holy trinity or something.
Cool? eh? No no, not as cool as the holy trinit holding excalibur.
One of the info is Gender : Male, Female. And they state that we must export the excel with selected gender by drawing a circle over the choice.
Not Gender : Male
But Gender : (Male) , Female
Consider my bracket as circle.
They are not even in seperate cells. So now I am spending days to draw a fucking circle over a text in excel export using php. Still failing. FML.
* I control myself from asking for coding tips here but I will appreciate anyone who can help me out regarding the issue in this rant.13 -
When I was starting my programing adventures I was intern in a "java position" that sucked so hard that I quited about 2 weeks in....
We would actually not code any single line... It was a fucking bullshit code generator for some shitty thing that I really didn't get and all we did was watch video tutorials about how to use it...
I was going insane...
There was this "senior" php dev at the team that used to brag that php was the most awesome fucking shit in the world and once said something like "I mean... Come on ... You can do anything in php... What can you do in java that you cant in php"
Oh boy... If it was today I would teach him some manners... -
Boss: We don't want to use PHP because it's open source we want to keep all the applications secure and want Microsoft to support us whenever some thing happens to ASP.NET applications.
Me: But we will be using PHP on intranet applications and it won't be for public. ASP.NET is also open source.
Boss: No, we cant take that risk.
I'm not sure whose right over here. PS: All the applications we built are for internal purpose only.14 -
When will the cookies(PHP) expire? Non-programming answer: It depends if you put it in the freezer or not LOL1
-
When you migrate from PHP 5.6 to PHP 7, if you use MongoDB, be careful, the driver is not the same ! So you have to rewrite your implementation !1
-
I don't know what to do with my life anymore, as a self taught web developer, I started like anybody doing HTML, CSS and js, and then I met PHP and WordPress.
why the fuck PHP is ugly ? and why WordPress is uglier ? I tried to learn how to build a simple plugin in WordPress but the hooks system make me want to kill my self, how the fuck PHP powers 80% of the web ? every time I write PHP I wish I was never born, the problem is that I can't change job because I am old and I live in a fucking country who is technologically primitive, they fucking know only PHP and JAVA, no Node, No Ruby, No Python, only fucking PHP.
I learned React, I learned Node but you know what I did this last year ? I raped a themeforest theme for about dozen plus websites, A SINGLE THEME FOR MORE THAN DOZEN CLIENTS, my boss does not care, only me who is not sleeping at night because a tried to customize a Prestashop theme and it gave me cramps in the stomach, I feel depressed and useless, I want to quite my job but I can't, I have mouths to feed, WHY THE FUCK DID I FELL IN LOVE WITH PROGRAMMING, I was happy fixing computers, what can I do if the only project that I have are WordPress and Prestashop?
how did you do to stay sane when working with wordpress and prestashop ? are you not human ?I can't take it anymore.
I need a new road map, fuck it I will focus only on JS and Node and fuck PHP.10 -
Bashing our fellow developers for using <insert tech> is not cool. This especially became overboard with PHP. And yes I've been guilty of this, despite using PHP before for so long as well.
https://justmarkup.com/log/2018/...5 -
Why hello there, your profile mentions you're not looking for an offer and lists PHP as a technology you don't want to work with.
Boi, are you in luck, cause I have that sweet PHP offer for you3 -
I hate PHP but those videos at Laracast are amazing and helped me learn Vue, and basic Webpack with Babel. Thinking about watching their PHP videos, but I'm not a web dev and not planning to, any advise? Though I do write websites for my self only20
-
Manager gave me a PHP task today that I straight up could not figure out and I feel awful and like such a failure from just 1 little issue3
-
$a = 1;
$b = 2;
echo ($a < $b) ? ($a > $b) ? 'This is totally fine' : ($a < $b) ? 'This is not ok!' : 'Perfect' : 'No problem here';
Why do people do this?!
(And I mean nested ternary ifs, not coding in PHP :P)16 -
Workarounds are great. I remember one time, I had a server that let anyone access any file as long as the knew the right path. I wanted to store data in a .txt (it wasnt secure passwords or anything, so calmyourtities), but then had access too it. Now, this server wasn't running anything except PHP, so I created a database.php, and within was just some php tags. I ended up modifying the database.php from other PHP scripts and storing all the data as PHP comment, then parsing thru it as I needed, so loading mydomain.biz/database.php wouldn't show the data. ex of my database.php (to all that might not understand because I'm bad at explaining):
<?php
//USER1:DATA1
//USER2:DATA2
?>2 -
Some things should be prohibited! Such as trying to look smart luring geeks with PHP code. That does not do what you wanted to do in the first place. Idiots!4
-
When I say I will help SET UP a website, that does not mean I will DESIGN your website. There are CMS's/Website creators for that crap. I'm only here to show you how to configure php on Apache, then I'm done.
-
I think the number 1 reason I hate PHP is not because the language itself is really really really bad; but because it's so easy to google "how to php" and get tons of tutorials (full of shit code) that most of the PHP programmers are bad and have no CS studies whatsoever, resulting in unmantainable tight-coupled pieces of [spaghetti] code that won't even encapsulate any business logic.
Anybody else feeling like changing to a different language a similar reason?5 -
I have this web development course(on the university), and we are not allowed to use javascript. Only php, html and css. FML15
-
I really like to use PHP. It's not so interesting language as C# is, but I like it. But every now and them I read someone complaining about PHP.
So let's go: as PHP is not an exactly good language to backend, what would be a good one to use with my personal projects?
Thanks!17 -
AAAAAH why does array_filter in php not readjust indexes after removing elements holy fuck what the fuck is wrong with this language3
-
Yesterday i was in class and a classmate came at me asking for help, w/e.. I'm not listening this teacher.. let's check.
« show me the code »
She shows me, now I'm blind.
Full garbage! Tons of php function in the same file, mixed oop and procedural and.. all the js is printed via those php function, yup, everywhere you can see <?php print 'some shitty js' ?>
Fuuuuuuckkkkkk you. Not gonna touch it, please tell the guy who wrote it to fuck himself with a frozen vomit stick @not my injure. -
Why exacly PHP contains "T_PAAMAYIM_NEKUDOTAYIM".
Yes, I googled what that is, I understand message, yet still it strikes me if PHP creator was high that night and later figured T_THE_DOUBLE_COLON_THING_OF_MAGICK is not what he aims for and out of wtf'ness temporarly forgotten english?
And what is your theory on that8 -
In PHP, constants can only be of simple data types like strings or floats.
You can't make a database connection a constant because it's not a simple data type.
That makes the only way of accessing complex "constants" within functions using the keyword global... which is not encouraged and forces you to make the database connection global (that may not be convenient in some software patterns).
The last option is passing the database connection as a parameter (either to the function or to the constructor of the instance whose methods will use the connection)... which would be good if I didn't want to go full OO. Because it's a pain to do so.
So all in all, constants are not well supported by PHP.
Come on, constants...12 -
I like building large apps in flat php.
I get bullied for not using OOP / Frameworks.
I don't like this.5 -
Another JavaScript joke because, why not?
Still curious though.. Which Frameworks (for JavaScript and PHP) do you guys actually use?11 -
Is there any way to have both blade templates syntax highlighted and not lose the php intellisense in vscode?
Using the laravel-blade plugin does solve the blade highlighting, but removes any php intellisense and none of the intellisense plugins seem to fix that8 -
Me: Hey programming languages, is 0 == [ ] ?
PHP: Nope. It's not.
Python: Nope. Easy.
Java: Heh. No it isn't.
Javascript: Oh, um yeah, hurrr durrr harr harr YES it is.
But screw it, hAvE yOu hEaRd oF nExTjS? wE sUpPoRt sQl qUeRiEs nOw.30 -
PHP Developer, older than me, seeking help on how to run nodejs application - "some_alien_english...some_alien_english...some_alien_english...some_alien_english... ' It working, but its not working ' ...some_alien_english...some_alien_english.........
fast forward to last line - "Its working on terminal but not working on localhost"1 -
!rant
I'm looking for another language to learn, (something different than the language I use at work)
At work we use php with javascript.
Any suggestions? I'm currently looking towards python, but I am not sure yet14 -
The client wants the booking project to be all in JS Framework (not specifying any) and NO PHP since client hates PHP (and I don't know why) from the very beginning when the only dev was my former front-end partner (lead dev).
I was wondering why the client still continued the project, YET the file extensions were still on PHP. I asked the lead dev what happened and answered he didn't know know how to start migrating to JS framework and just started NATIVE PHP.
Still, as being a good dev and a supporter to lead dev, did accept and the project as lead dev's assistant. Fixed bugs, enhancement and responsive (DEMMIT, I FREAKING HATE RESPONSIVE) and later complained why am I doing front-end tasks, when it's not my task, supposedly. I EXPECTED MORE ON BACK-END TASKS!
(HERE'S THE EPIC ADVISE GOES AND CALLED OURSELVES MASTER)
Me: Master, why did you not started the project in JS Framework instead of native php?
Lead Dev : You know what master, this project has been already done if the client allows US to use WordPress for this project will still be migrated to JS. And now, WE are trapped to make every window size be responsive since there are already a standard for each window screen.
Me: (DO NOT INCLUDE ME IN YOUR FUCKING SORCERY! I DON'T KNOW WHAT YOU DID THERE AND WHY D'YOU ACCEPT THIS PROJECT, SLAVE, WHEN YOU ALREADY KNOW YOU DO NOT KNOW HOW TO DO IT, IN THE FIRST PLACE. STOP BEING A DICKHEAD AND DO NOT WASTE CLIENT'S MONEY AND EFFORT FOR YOUR USELESS BUNCH OF SHIT!) Indeed, responsive is a such a pain in the arse.
Lead Dev: Maybe, let's just finish our tasks first and wait the project to be migrated to JS.
P.S. The project manager and client asked me if I do know how to migrate the project from native PHP to JS framework and sabotaged lead dev. OFCOURSE, YES! But, I did not respond that quickly, unless eerm, you know, I earn greater than lead dev. Truth be told and practically speaking, it's really unfair for me if I accept the back-job when the lead dev delivers inaccurate deliverables and earned greater than me. No way, Jose!
Now, I am not working with him because I'm super done with him and later did I know, lead dev is looking for Drupal dev to be working for the booking project. -
Am I the only one not enjoying Firebase realtime/cloud? Supposed to make it easier but eventually more complex than building rest in php/node js......2
-
Playing in hackerrank and they do not have ruby in one of the "30 days of code" challenges.. I had to do it in php .. it took me nearly 40 minutes, fucking PHP I hate it.
-
Fuck PHPMyAdmin.
It's not PHP nor MyAdmin, it's trash. 0 stars. (/s)
But seriously, why is this the de facto database editing software in every PHP hosting I use. I haven't found anything (ANYTHING) Adminer doesn't do, and _better_.18 -
!!rant
Types of elitists in the computer science area I REALLY HATE:
* Linux kernel developers: if they hear anything that's not linux you will be prosecuted
* functional programing developers (haskell, scheme, etc): they will bitch slap you if you even dare to mention php or javascript5 -
Tight deadline, codebase not mine, I wrote an hack that read a dom element in the page in js extract some data, append it to the query string and then refresh the page to get the desired result. All the rest of the logic is in PHP. I still feel guilty.
-
After creating my own PHP MVC framework with Twig as templating engine, everything is now so simple and so fast, I juat cant belive how much I understand now. The development is just so smooth, you know exactly what to do all the time... And for my simple project, it does not even hurt that much to use PHP (and its even strictly typed 7.2, so not that bad). I think that I am in love. ❤6
-
First rant guys!
I'm a .net and PHP developer and love visual studio. I also hate windows 10 and it's stupid surprise reboots. Twice I switched to Linux mint but returned to windows because of the IDE. Been on VS (with PHP tools) for too long and nothing on Linux comes close to VS not to mention the lack of .net 4.6 (no mono) on Linux. M$ make Visual Studio 2015 cross platform!9 -
Worst interview was when I attended interview for the position of PHP and the interviewer started grinding me with C++ questions starting with STLs. Could not answer most of them, interviewer said to get my act together and try again after 3 months. Nope not gonna happen!
-
Daaamn! I needed to process some data simultaneously using PHP, so I thought of using Threads to make things faster, checked out SO and discovered that the available Thread class can only be used in cli environment not on a web server ... FML 😑.
It's like these moments that I remember why I hate PHP, and regret accepting this job.
I miss Java 😣😣6 -
T_PAAMAYIM_NEKUDOTAYIM
This is how PHP refers to :: internally, it's the only fucking token with such a weird name, what is this fucking language?
Who is writing this shit? OOP but it's completely optional? Where is the goddamn sheriff? I'm done, off to Ruby, Python, Go or anything that's not fucking PHP. Sick of this shit. Fuck this language.
How can such a massive language be so poorly designed!?3 -
I learned coding the best way: While getting paid. I was an Excel junkie (still consider myself as one) and a colleague taught me PHP. This gave me the skills to apply for real programming jobs. Eventually I was hired at a company as a PHP developer who would need to be flexible enough to transition into a C# developer within the next 6 months. It wasn't easy, but after about 8 months and a 1-week course later I was programming in C# .NET with grace. Not looking back at PHP now at all. Naturally, today I can apply for a whole bunch of different jobs that I definitely could not three years ago.
I have the dearth of good programmers to thank for this of course and I am grateful every moment when I understand how lucky I've been. -
Hail Adventurer,
By Linus, do not fear what you see
and curse not I, but those before me
hold steady in the storms to come
brace for bugs, wherever from
I pass on to you, the light of PHP
Use it well, to fight against scrutiny
if it works, keep it so, ask not why
my time is over, while yours is nigh1 -
Yet another day at my company, Im rewriting some old code for client (rewriting old, php 4 system for vindications managment) and you know the moment when you are focused and someone comes to you to absolutely ruin your focus. Fine, whatever. Oh, for fuck sake. Again dev is doing as support becouse one moron with second can't login into zimbra admin panel and add fucking mailbox. I show them exacly how they login, remind them they are admins too, slowly show them, so you click "manage" than you click that gear icon and than you click "new", fill in email address and password. As simple as 1-2-3. Okay, fuck it, time to go for a cig. I just finish up few lines and stand, grab my vape and start walking towards door. In door I find my buddy with 2 random people. He told me that they are interns and that I should show them some basics and stuff around that. Oh god, fuck my life. If anything, Im definitely very bad teacher, mainly becouse I often have problems with saying what I mean in the way that somebody actually understans and knows what I am trying to say. Whatever. Fuck it all. I grab two of our old laptops that nobody used in like a year or so, and first thing I quickly figure out, is that one day for some what the fuck reason I dont even dont bothered to remember I installed Arch on both while I dont usually use Arch. I just needed it for some specific reason. Whatever. So I guess I will need to upgrade fucking system. Our network isn't really great so that was like... hour or so. In the meantime I figured what they know about coding in general etc, and holly shit. One of them (there was boy and girl), girl, apparently never ever in her life even touched code. Well... fuck. Why am I wasting my time? Becouse there was some programme or some shit like that... Someone could tell me before so I could mentally prepare.. fuck it. whatever. So while laptops are doing their pacman thing, I sit with them and slowly start to explain based on my machine some really basic concepts. Second guy actually had some expirience, he knew how to make some really really basic logic and stuff, so he had another world of problems, becouse it was PHP and, as we all know, everyone hates PHP, and... yeah.. You can probably imagine his approach. Yes, you get user input in super global array. I really wanted to say "Now shut the fuck up and write that fucking $_POST".
hour or so passed, I was close to giving up to not let my anger rise (im not really good teacher... I mentioned it. I suck at teaching others) but luckly machines upgraded. He wanted to use visual studio code, she didnt care too much, so I installed phpstorm in trial mode. whatever. Since that's linux and they were not comfortable with that, I walked them through installing LAMP stack, and when finally it started to look like LAMP stack, I requested them to google how to install xdebug, becouse xdebug is very usefull and googling skill is your best weapon on that field. I go for cig, come back and what I see boiled me a little bit. The girl was stuck looking at github page randomly looking through xdebug source code and idk... hoping for miracle (she admited she thought there will be instructions somewhere) and the guy was in good place, xdebug has a place to paste your phpinfo() for custom instructions. But it didn't work for him, he claims that wizzard told him it cant help him.. hmm intresting, you are sure you pasted in phpinfo? yes, he is sure. Okay, show me.
Again mindblown how someone can have problems with reading.
so his phpinfo() looked like that:
```<?php
phpinfo();```
I highlighted on the page the words "output of phpinfo". He somehow didn't see it or something. He didnt know, he thought that he needs to put in phpinfo so he did. OMG.
Finally, I figured out I can workaround my intern problem, and I just briefly shown them php.net, how documentation looks, said to allways google in english, if he uses tutorial to read whole fucking thing, not just some parts of it, and left them with simple task, that took them whole day and at which they ultimately failed.
To make 3 buttons labeled "1" "2" "3" and if someone presses one of them, remember in session that they pressed it and disallow pressing other ones.
Never fucking again interns. Especially those who randomly without apparent reason almost literally just spawn in front of you and here, its your fucking problem now.
Fuck it, I have some time to get back to my stuff. Time is running so lets not waste it.
After around 15 minutes my one of my superiors comes in and asks me if I can go on meeting with him and other superior. My buddy goes with us, and next 3 hours I was basically explaining that you cannot do some things (ie. know XYZ happened without any source of information) in code, and I can't listen for callbacks from ABC becouse it wont send anyc cuz in their fucking brilliant idea ABC can't even know that this script would even exist, not to mention it wants callbacks.
Sometimes I hate my job.4 -
Clients wanted a simple backend to be deployed specifically on Apache. Used PHP. Spoke to them and they were fine with PHP .... Until I delivered the application. Told me how bad a developer I am to not use the MEAN stack. Didn't even pay.3
-
I truly hate PHP because I know nothing about it. I thought writing an API would be cool and it was until PHP stopped cooperating. Why won't my API communicate with my app WTF!? It's like it's not even there even though Apache is clearly serving the page.7
-
Learn JavaScript.!!
Everybody talk about functional programming, I was thinking why php json_encode is not working on large array.
Javascript is Awesome.2 -
I've a 2018 (or a 2^11 - 30 as one of my co-worker calls it) wish.
That we all stop hating and ranting to languages and start directing the dark force to people who misuses them.
Because those are the evil, not a bunch of lines, maintained by some poor fellows.
Except PHP.. PHP ducks (typo intended and irony banner up)5 -
Trying to find that one line of php you need to change in a magento project
App/design/frontend/base/default/template/this/is/not/gonna/be/the/template/youre/looking/for/fuckyou.phtml -
Trying to decide whether or not to learn Node.js, I have been using PHP for the past 4 years and I feel that I am not up to date with the changing Web Development Community.17
-
Spent about an hour wondering why my php code was showing in the browser window after submitting a form using Ajax. Found that I had start my php file with just <? And not <?php. Feeling dumb.4
-
I'd probably get laughed at for even mentioning "php"..
But what is the best framwork for getting started with PHP to build some complex site?
I have seen some here talking good about either codeignitor or laravel. Not sure.17 -
So I've noticed there's a lot of php hatred here on devRant xD Does anybody know of any modern php communities or forums to join? I've searched for a few but a lot are outdated.22
-
A prototype being used as production code written in procedural PHP with the code drawn using echo and MySQL (not MySQLi) all mixed together and the configuration with world readable database stored as config.inc.
All backed by a database with no foreign keys or data integrity of any kind. -
So PHP 7.2 according to its creator, is actually faster if you write bad code.
Well im not amused.5 -
so the PHP Standards Recommendations part two (PSR-2) says
"Code MUST use 4 spaces for indenting, not tabs."
and i feel devastated1 -
Because of a ridiculous strict server environment (where even PHP was not allowed) he proposed that I could connect over Skype to do my stuff in typo3, which than could be exported to plain html to run on their server.
SSH or even remote desktop would be to insecure.3 -
My first dev job :
Do a front-end in Joomla!. As an internship. Without being paid.
(In France, if you are here for >2 months, they can pay you, or not.)
At least, now I know why Joomla is a no-no when you want to do custom things. Heard that the team working on back-end had problems of PHP, like the PHP appearing and the one Joomla uses "is not the same" or something like this.
And now you know if you didn't. No problem.4 -
It took my some time to explain my dad, why he should not use Notepad as PHP editor and start use something like Sublime Text 3...
I'm also teaching him PHP and JS.5 -
So I have a job interview on Monday for a marketing firm that works on a LAMP stack. Not a problem, since that's what I learned on and I love linux, but I haven't seriously touched PHP for years. So now I'm going back to do a refresher on OOP PHP and I'm like, "what the hell is a variable variable?"
Wish me luck..4 -
Session Management in HTML/PHP be Like:
JUST PUT THAT FUCKING SESSION ID AS HIDDEN INPUT IN EVERY FUCKING FORM!!!
BECAUSE WHY NOT JUST SPAM IT WHY IS THERE NO GOOD FUCKING WAY TO HIDE A SESSION KEY WITHOUT COOKIES5 -
I am not a php dev and I have nearly 0 knowledge of php. All I know about php is that xampp is your friend and you have to write that $ everywhere. But that one day I had to setup phpLDAPadmin on apache2.
I have nothing against php, but I just don't want to have anything in common, since I'm just perfectly fine with my java.
So I had to make it work. Fought my way through different incompatible versions of php and phpldapadmin only to see "not found" on phpldapadmin.
I thought, like, wtf?? Especially when index.php of apache2 is displaying just fine? I mean, I can "edit" some php code, but configs and php setups are just something like out of my world. Tried setuping it on different vms - same result. I've buried way too many hours into this with no result. Finally I gave up and contacted a friend of mine which is like php god for me. He did same thing as I did in ~ 10 mins, but the result was the same. Tweaked some configs - same. Scratched his head, sat for 5 more minutes, did something and boom - it works!
I've asked him, what is that php magic and the answer killed me:
"Index.html was missing"
At that moment I just wanted to exit through the window. Sadly, there were no way to open it.
Yes, I am this stupid in php. But I still miss all these wasted hours...2 -
Reason to hate my D grade engineering college.
1st lecture of web development.
(Syllabus html,css,PHP)
Expectation : at least teacher will introduce fucking web development technologies.
Reality:
Teacher=> look I don't know anything about PHP so learn from web. I will give you internal marks just submit assignment on time.
😅
Btw it is not story.3 -
Doing a talk on 'Security in PHP' and live demo on web attacks and safeguard tips this Saturday. Any tips fellow Ranters...?13
-
This idiot client wanted me to code within a laravel app. He wanted me to use laravels translation helpers. He also wanted me to put every piece of code into a php file in the public directory and I must not change any of Laravels framework files...
I denied.3 -
Got a bad question here. I've got my homepage (login + some archives with access permission) which I made in HTML + php (yeah I know). But I just hate how php looks. So I'd like to rewrite that whole little bastard now using some other language (not php obviously). What do you recommend? Which Lang's/frameworks are being used. I heard python and java spring were good but I wanted to hear the opinion of some real devs I guess. I'm rather a back end dude (c++) but I think it would be useful to learn some web programming too (not interested in fancy animations and shit, just a good ol' single colored site that displays the content)2
-
¿Why people hate PHP so much? I love it since it was my first web dev lang and I fell in love with it, however, I decided to move to another language since apparently It's going to die, not saying tomorrow but eventually. I'm not sure which language to pick (between Python (django, pyramid), Elixir (Phoenix) or Ruby (RoR). Any suggestions?
Also, what language you use and do you like PHP?4 -
I am not a PHP dev but this back end error message when accessing /notif looks weird.
Is this a security bug?7 -
My first job, I was expecting to be part of Android team but assigned to php team, a little disappointed but I guess as a developer its not something new 😛.
Excited first day first job2 -
When i code in PHP. I forgot to type semicolon.
When i code in Kotlin I forgot that semicolon is not necessary.1 -
Custom php api for huge known national software. No frameworks. Not following mvc structure. No decent documentation. Im the new dev and like how the fuck should i catch up before they think im not productive2
-
God fucking dammit.
I spend the entire day trying to get [this piece of shit] (https://github.com/php-ds/extension) to work and at the end of the day its tests pass, but when I try to instantiate a set, I still get bloody errors.
I mean, am I not punished enough for having no guidance in learning PHP and knowingly having to create an absolute monstrosity just because I don't know how to do it better.
Fuck it, I'm just gonna go cry myself to sleep now and only will start feeling like a failureagain, when I wake up.
sorry for bothering you with my problems.6 -
I'm not at all familiar with PHP and icelandic hosts.
Does anyone have experience with FlokiNet?
FN supports PHP. But do they support codeigniter out of the box?
I'm a complete newb so I don't even know if I'm asking the right questions.
I want to try something different and what I'm building can't be based in the U.S. And theres not a lot of python hosts outside the U.S. that I'm immediately aware of.
And the ones that are all appear to be hosted in AWS, and I refuse to feed the beast.7 -
So here we are again:
Today, what would be the proper definition of a "fullstack developer"? What stack is required? Feels like PHP ain't there not more...12 -
Gosh!! Do not want to look at my shitty face in the mirror when i get to know that there is a DESC syntax in SQL for sorting data automatically even after i manually finished sorting them in Php.. #Fuckmylife #newbie5
-
!rant
I got to work on this project written in PHP that is literally unsalvageable so I will need to redo it from scratch, it's an e-commerce/social network mix that allows you to resell your clothes and I will have to work with PHP-only server-side so I was looking for a JS framework that has all these cool features like Angular but does not require node.js and I stumbled upon React and Vue and I can't decide between them. I was wondering if anyone knows both of these frameworks and could help me decide which one to use. (I have almost no knowledge about these frameworks)
PS: The server-side will be PHP with MySQL because that's the only option that the client's hosting offers.7 -
After two weeks of struggling with Docker, I can confidently say, this is the worst shit I've ever worked with.
$ php bin/console make:migration
ERROR: php_network_getaddresses: getaddrinfo failed: Name or service not known
Well let's try again...
$ php bin/console make:migration
ERROR: Connection refused
Different error messages for the same commands?! FUCK YOU!!!8 -
A full stack php developer, PM me today who looks a lot bigger in age than me.
First of all, it was pain in ass and dick to understand what he was trying to ask for help. If cannot communicate in English, fucking use php ...Err hindi
All he was saying was, it's not working, and then added working. Inside my mind... "Is it even working or not"
At last I got, what he said. His nodejs application was running on terminal but not localhost. */ Facepalm..*/ 🤔🤔🤔Ass plam /* dickpalm1 -
For fuck sake, stop complaining about the number of js libs. There is just as many if not more c/c++/c#/java/python/ruby/php... libs.
Just because they are available on npm or github, it doesn't mean you have to fucking see/read/use it1 -
im not a php fan. like NO.
then i know this very rant runs php somewhere.
having mixed feelings right now 😐6 -
Does somebody know how to send data to the PHP CGI executable directly and how to receive it (stdin/stdout)?
Or point me to a useful resource?
In a side project (just for fun) I try to implement the interface on NodeJS so I could process PHP through ExpressJS (long story).
I've been able to send and receive stuff, but the PHP CGI always tells me that I am "not allowed" to use this interface...
Docs/mailinglists seem reeeally old and don't want to go through the Apache source code 😅
Or does Node not have enough privileges for communicatig with PHP CGI exe?8 -
Oh now that I'm remembering, this is how I learned PHP. It's not my specialty, but I'm writing a small plugin for WordPress.
I was in a dinner with my partner's family. One of their parent's siblings manages the IT in their company, and we had this conversation:
family member: So what language do you know?
Me: A bit of C and C++, and I did a project last year in Java/Kotlin. But my current project uses mostly Python.
Family Member: Oh Python? But Python is a very easy language, even I could learn pretty quickly. That's why we don't use it in my company. We use PHP.
Challenge accepted!
Within a week I was able to learn PHP and some basic templating library, and replicated most their company's website into a new server.5 -
well well well.
i seem to like javascript syntax more than php.
there, i said it.
it´s not a post about php being bad. in fact i did and do nice things with it. but in the last few months i learned a lot about javascript and now the time has come i get a grasp on opinions of php being inconsistent. and a growing feeling of love for objects. maybe i just have not reached the dark pits of strange js-comparisons like similar objects not being equal. but still...
no, php, i will not abandon you. but sometimes we have to talk about our feelings. -
That moment that your teacher says she'll teach you php and in the she says she will not teach you php and your project has to be a website made in WordPress...1
-
Old colleague reached out to me. He needed to reinstall one of my web apps (combination of python, php and Javascript (frontend)).
It was harder to do than expected and the code was not the most clever I ever saw.
Not sure what I was thinking during that time of my life 🤔 -
Fuck me man this is the second time this week! Planning on going fully to Ubuntu mint.... But I'm not sure if that's the best solution for me
Need a good distro for web development
(php, mysql, Javascript) any other recommendations or should I stick to mint?13 -
Okay, so...
We have backend app written in phalcon 3.4.
I got task to prepare new test enviroment, based on ubuntu 20.04, php 7.4 and 'copy-paste' our Phalcon backend there.
Soooo.. That backend was outsourced and I have exacly 0 Phalcon expirience.
Phalcon 3.4 does not support php 7.4
Last 2 days Im tearing my hair out to port it over to Phalcon 4, with honorable mention why the fuck memcache didnt just want to work, and finally its working.
Now Im taking the heat that making new test enviroment takes more than few hours.
Fuck off, let me do this shit, and understand its not just apt-getting dependencies for fuck sakes.2 -
I live in Sweden and want some new dev stickers. Checked redbubble.com but I'm not willing to pay $25 for 12 small stickers. Even with free shipping. Anyone know a cheaper alternative?
I need
-ES6
-JS
-HTML5
-CSS3
-ReactJS
-Angular JS
-git
-PHP
-VSCode
-Photoshop
-Node.js
-npm18 -
Mf php and mf mysql database. Fuck you for being such a cunt.wasted my whole fucking day to configure the shit i didnt even broke. All i wanted from your ass was a storage for users but no you piece of shit. And a fucking special mention for php bcz that shit is a stinky piece of work.
All this aside i need a db which can store some data and is easy to use and not an sql one for my very small cllge project. Anything that i can use from my java app.8 -
PHP is awesome, but it annoys me that there is no typing and that you still can get errors based on types...
Other than that, not being able to catch all errors in one catch and especially not being able to natively catch fatal errors is my biggest problem...
(not natively meaning that you can use hackish solutions but there's no "fatal error" class to use in your try catch, and you're using the register shutdown function not as intended...)8 -
Okay I'm not trying to start a comment war or anything, but Im struggling. I want to learn PHP but im already great with python and can just learn flask.. Is there any advantages to learn both because I probably will do that I just wanted to hear some opinions.7
-
Genuinely asking some rare pokemon php developers that are up to date with the tech (all php devs I know stopped learning when my grandpa was like 5 years old) to show me php code that is not spaghetti bolognese. I am asking this as I am yet to witness such code for the first time in my life (and I am coding since 94')!13
-
Oh joy,
I got the short straw and get the privilege of building our new website.
I really don't know PHP very well, but apparently everyone else says they know it less.
Yea! Holiday weekend. NOT!!!! :(4 -
Finally did it, finally installed Ubuntu on my fucking desktop and the transition is not as bad as I thought. I just have to install my dev environments now. C, PHP, SQL, C# (.NET Core)6
-
Started learning php from youtubeversity.. then started teaching kids php, helps you alot too (to teach)..
Then I started at the University.. eh, its easy mode, when you already learned object oriented programming ..
Youtube, stackoverflow, looking through other people's code, editing it, breaking it, fixing it and various tutorials really helps alot.
Still where I get my information, not the University. But it depends on which type of person you are2 -
How many fucken times should I tell you that ASP.NET is not a fucken programming language and you being a dumb ass always trying to compare ASP.NET with PHP.
The fuck is wrong with you dude?3 -
that moment when a fellow dev asks you a web dev ( PHP ) for help and you see
... -03 -0fast & funroll fruity loops ...
im not surprised that Gentoo box died ... -
why does preg_split work on my local copy but not on production? WHY DOES IT RETURN LITERALLY NOTHING? IS PHP JUST HELL? AAAAAAAAA9
-
I recently browse my mail (yes I still use that) and saw old project that we had at 9th grade in Slovakia. I was upset to see that I said PHP 5.6 is still a thing and PHP 7 is still not used in companies. Well. I am now 18 (14 back then). Working in middle ground Slovakian IT website & stuff work or wtf is that and we still use PHP 5.6... Life is sad. Also we use drupal 7. Let me be...
*swoosh away* unset(&$life); -
fuck php and fuck it's whitespace header not sent bullshit, apparently there a bazillion ways the header function may just refuse to work, all for a function javascript does way better13
-
Actually a WordPress developer does both backend and frontend. They should know JS, PHP, react (for Gutenberg) and still some others think they are not programmers.
Next time someone tries to bully me about being a WordPress developer, I will not be quite. Even my friends.3 -
Devrant, can you recommend me a good IDE for PHP/Javascript/HTML that is not NetBeans? It decided to become unusable overnight and I need a backup IDE so I can keep working.13
-
I made my first closure in PHP, but I'm not happy.
For me Javascript closure are nicer.
What do you think about?8 -
Colleague: "My client says asp.net is more secure and has a better performance compared to php"
Me: "Hmm ok. But it all comes down the implementati..."
Him: "hE waNtS AsP.neT nOt PhP"1 -
Having an argument about "empty" function in php.
someone told me that we shouldn't use this function because this is deprecated and doesn't work on php 5.3.
He has this opinion because once we took a site live and there few conditions broke. And they were like this " if ( empty($this->input->post())"
While I was trying to tell basically it wasn't empty fault I used it wrong, because the docs says nor its deprecated neither it'll break if we just use variables in it and not functions.
Argument ends up in "not getting any reply" :/ -
Visual Studio Code and xdebug: my saviors to finally not have to put up with NuSphere PhpEd constantly shitting itself over memory limit issues in my 3,704 file PHP project.
-
I'm not trying to say that PHP is not consistent, but it's the only language where you can use two styles of typage in a function definition:
function myFunc(ArgType $arg) : ReturnType
{
//...
return new ReturnType($arg);
}
You must decide, PHP... Not use both... -
Books.
Do you guys know a good book for professional PHP 7 programming, especially OOP, concepts, design patterns, abstraction, algorithms, security and data structures?
Please not that beginner stuff, I want to dive deeper into PHP 7 😁
Maybe in German or English 😋3 -
can't take this sh1t anymore, will start updating my CV today.
I have to steer wheels on this shitty php-related task with testing suites with latest guides written in 2014, code base of that suite got a shitton of changes.
When referring to original documentation and example that is not working and gives me loads of errors, community pricks just saying something like: don't use 6 year old tutorials!!! well, that is the latest I could find, so yeah -> basically go fuck yourself situation!
went alive from 1st part as I managed to make some hacky clusterfuck that works. now i had to switch library that has no documentation at all, has shitton of options and lattest update is like from 3 years ago, library that is connected had some breaking changes lately so to no surprise I can't get this shit to work!
Is whole php ecosystem just made of folks who simply doesn't give a fuck and latest knowledge update they had is like 4 years ago?
ofc I am excluding laravel community in this!2 -
VBA, not even the documentation is fine. I still have to use it. PHP just looks an elegant and charismatic language near VBA.
-
PHP features the best of the wicked minds.
In this legacy but still used project just so to save the scourge opening tcp connection (I suppose) some guy wrapped js libs like jQuery, mootools in a script tag.. In individual php files. Then from a main.php include all those libraries. This produces a 2Mb file to send to the client and it's not even compressed. This guy never had any thought about maintenance.
This is one symptom of the problem with PHP that every company developed or have in-house undocumented unmaintained frameworks made by devs without any idea about testing, security and more.
Gosh in a previous work I've seen a PHP cron that used arguments passed to a switch case of 25 cases.
It took 19 years for the language to get a standard, meanwhile leaving the web landscape as a mess of bad coding practices, bad design practices, SQL injections, outdated tutorials and more. PHP is the example that it's not because it's used on almost all the web that it's good, it only means that's it's cheap! Cheap like asking a red neck to build you a car and he tows (deploy) it to your house with his own tow truck he built.
https://blog.codinghorror.com/codin... -
I've been off the PHP game for a good bit now so I'm not sure if this is an established practice.
But why in the flying fuck would someone want to use .htm in place of .php files? Especially when you already use .php on other files on the same codebase?!7 -
Any recommendations for a first timer of functional programming? Not sure what languages are used the most or have the most community support. For whatever it's worth, I've enjoyed working with C# and Golang, and disliked working with JS and PHP.5
-
Trying to figure out what I should learn, I have a little experience with PHP (Though I am not a huge fan of it). I have thought about Node.js and Ruby but I cant decide. Anyone know what I should learn as a backed language?6
-
What are you going to say when you'll know a more than 1yr experienced web developer working in PHP and MySQL does not know about indexing column in MySQL and submitting registration form (includes password) in GET?6
-
I challenge you to start a process from php.
The following criteria must be fulfilled:
- php-fpm
- the process is started on http request by user
- the response does not wait for the process to be finished
- the process must finish, possibly after the response reached the user
- the running process does not block a fpm thread/worker from handling further requests
Simple, right?8 -
Why can no-one, not one single solitary fucker, on StackOverflow get it through their thick skull that when I call PHP's http_response_code() or try to get $_SERVER["REDIRECT_STATUS"], I want the response code from Nginx? No, not Apache. No, I don't want to pass a status code FROM PHP TO NGINX, I want the response code. FROM Nginx. TO PHP.
In what fucking universe does PHP know more about the response code than Nginx? It doesn't. Nginx knows the response code, because that's the fucker that redirected to the error page. I want the error. Passed to the page. From Nginx. To PHP.
NO, http_response_code() DOES NOT MAGICALLY FUCKING WORK, IT RETURNS 200 BY DEFAUL- fuck it.7 -
What absolute fucking imbecile thought an upper limit of 6.0.0 would make sense for max supported PHP version on the entire Magento 1.9.3.X code base. Not to mention the installer is broken on account of them not fucking understanding InnoDB is default engine in MySQL.
Seriously Mage Rage is real.5 -
When a CS student asks me (business IT student) how he can get kubernetes to work in PHP.
(No, I did not swap those two)
*facepalm* -
There is one thing that will haunt me forever.
In my old job I was asked to fix some PHP code written by a guy who recently left the company.
Not only passwords were hardcoded in the code, but also he named all the variables like $a, $b, $c. And I still wonder, how comes he was not fired but left on his own terms?6 -
i've installed lamp and my php -v is 7.1.15. i created a form and when i request to a .php file, it says "php-cgi not found: Please ensure that configured PHP Interpreter built as CGI program (--enable-fastcgi was specified)".
but ive specified the php.ini file from etc/php/7.1/cli.
and in setting/languages & Frameworks/php/cli interpreter it says php version not installed & debuger not installed. SOS3 -
One of not many things I really hate about PHP is when I have to write arrays. They so sugary, it is very shitty experience. I just hope we can get JSON style arrays some day.9
-
Im a php backend dev for over 7 years. (Lately mostly laravel).
Im going to look for a new job and have 2-3 free weeks to try and learn a new language and switch to that in my next job.
Please advise if i should
1. Switch to Python (should be relatively close to php oop) + opens AI jobs opportunity for the future.
2. Switch to NodeJs. (Web/api knowledge similar to php) + will be easier to learn frontend skills later (ie angular/etc)
3. Look for another PHP job. - if 2-3 weeks is not enough time to learn nodejs/python well enough to get an actual job without experience with them.
Really can't decide which path to take, please help10 -
language confusion is a mess. as a python newbie i am very focused on learning for the last two weeks. now i am not even able to declare my php-variables properly and end up getting errors the whole evening.1
-
So i was trying to learn php from a udemy course. The guy there mixes a hell lot of php with html, like all the pages are .php with html content and mini <?php ... ?> Scripts in between everywhere: titles, swl queries running and displaying outputs as html with echo php variables, etc..
Now am not much versed with client server data model, but isn't there supposed to be clear distinction between the server side and the client side? He puts a form there using echo "html string" , rrcieves the form input in the string's action , runs an sql query and generates another set of html strings. All in one file.
Is it how major php websites work? On the other hand My web dev friend om who works a lot with js usually runs 2 seperate aws instances for frontend and backend and makes them communicate via apis9 -
!rant
I saw many devs here complaining about WordPress, which I used to do. But recently WordPress saved me in work.
Client needed a fully functional e-commerce site with some custom logic in 3 days, which is required only for 2days for a contest. So we developed the site in WordPress in 2days, 1day testing and data upload.
So I'm not sure if there is any solution other than WordPress or platform like that to help in these kind of situations.3 -
Why would someone not choose PHP as a backend language, as making dynamic website in PHP is more easy than in other language.5
-
What is the best resource for PHP as a backend, and not a SSR web apps.(no frameworks included just pure php)7
-
PHP is not one of the first six languages I associate with DevOps work.
https://dzone.com/articles/...1 -
Trying to explain to (a more experienced) dev why it's not a god idea to do a exec( php '/var/www/xxx >> /dev/null) and then redirect the visitor.
The script is running a query that take some time and he want's to redirect the visitor and then fetch the result with jquery.
Tried to explain parent and child processes and pointed him in the direction with pipes and bakground process. After some discussion about forking and all the cons with that.
yes its PHP ;)
Gonna be exiting to see his next idea :S -
My beautifull roomie asked me make a simple php page for her company . I did not sleep 3 days. The day it was released on production, it fucking didn't work. The reason: "the production Administrator didn't install the php server. I get no paid, my roomie is kinda mad at me.13
-
It's ok to deal with PHP.
It's (kinda of) ok to make new stuff with It.
Stop pretending that it's not broken.
(I know php8 blah blah, but let's face it, without a good framework it's unmanteinable)
I dunno, i'm just frustrated by the low salary that PHP give to me.17 -
Hey guys, need help from some web devs. I have few stores and I coded a php/html table for reporting purposes. I don't like that table, also its not responsive on mobile phone. Any advice how could I change the layout up?14
-
Not a rant but in need of some help. I'm not a WordPress expert here, more of a .Net kind of guy.
Long story short is anyone willing to help solve a php problem? Deals with form submission and multi images in a form...1 -
Are you tired of hearing about the latest and greatest programming languages that are all the rage? Well, fear not! PHP is here to remind you that sometimes the oldies are still goodies. This trusty, tried-and-true language has been around for over 25 years and shows no signs of slowing down. In this post, we'll explore the enduring popularity of PHP and why it's still a top choice for web development projects in 2021 (and beyond!)
Full Detail : https://programmerscreatelife.com/p...6 -
Oke... I do NOT want to start a war about PHP because i am usually a big fan, but this just blew my mind.
round(null) = 0
HOW DO YOU ROUND NON EXISTENT?1 -
VP: We need to build a new platform for flexibility!
Architect: Let's do micro services!
One year later...
Now we have "micro services" in Elixir, Go, Node.js and PHP.
Not to mention our prehistorical products in Erlang and PHP...1 -
PHP Devs quick question,
I have a project using PleskPHP5 (or that's the processor I found in config)
I'm a bit familiar with Laravel though I'm not sure, are they different? How to migrate to Laravel?
And the project was developed on Windows and I want to use it on Linux do I need to change anything?
I'm a complete noob in php but I want to learn with that project11 -
I have a friend who always talks about coding on his whatsapp status, he even posted a screenshot of a mobile app he allegedly was working on. So, i asked him what language he uses to Develop Mobile apps (not web apps) and he said, html, css and php. I am a beginner in programming, i know java, python, dart and Javascript can be used to develop mobile apps,can we also use html, css and php to develop mobile apps?8
-
8 hours of coding later and Im back where I began, and Im not even a dev, Im a sysadmin with a little PHP background tasked to write a Sku generating bundle for a PIM running on symphony.
<Insert I have no idea what Im doing dog meme here>1 -
Is it worth building a cms from scratch? I know it requires time but thats not a problem for me, well it is but i can handle it.
Or shall i go with some php cms already build or wordpress ?10 -
With people complaining about PHP so much, I really what to know why.
I'm thinking about learning it, I'm always up for a challenge8 -
Google being Google I can't find a bloody answer, how do I decide to what PHP framework to use for a project? It's an ecommerce platform, not much need for scaling, but I can't bloody figure out what framework to use, either way it will mean learning it from scratch4
-
I created a regex which works locally but not on a remote installation with the same php version.
I am confused… very confused17 -
What is the easiest way to convert a PHP/MYSQL app into android app?
My client needs it urgently and I'm not getting paid. So I don't intend to put much effort into it. It's just a gesture of goodwill.12 -
I can't find a complete answer to this question, maybe this community has one:
Does putting an html file, with pure html code (without any php), as .php have any impact (or is processed differently) on the server load compared to simple .html?
Of course, if the content doesn't contain any php code to be processed it doesn't affect the performance, but the simple fact of declaring it as .php cause a different processing root on the server to output the same html result?
I'm aware that if there is any impact, not sure yet, tt's probably negligible, but I'm just curious about the backend root followed.
So, anyone know how exactly these two scenarios are handled (step by step) by the server?
1) Request of pure html as .html.
2) Request of pure html as .php.
My instinct says there must be an additional step in the second scenario to interpret and search for php code to execute.
There is? And does it have any calculatable impact, that multiples for X requests (ignoring caching) and depends of the length of the file?
Thanks5 -
Hey guys, can i learn websocket.io with learning nodejs and expressjs because i see most of people use nodejs in oder to work with websocket.io.and i want to use websocket.io with php not nodejs2
-
PHP should have another error. E_XDEBUG_IS_ACTIVATED. That way I wouldn't have spent weeks trying to figure out why my server was slow as shit.
What a piece of crap debugger. IDE integration is not worth the time overhead. I wish I had known phpdbg was a thing.2 -
I really do not understand why people do not use the defaults, I see a PHP code and I see all the PSR's violated, SOLID violated, and as it is something of years, unfortunately we did not get more rapporteur in a timely manner. I didn't go to college, but I must say, what the hell do you guys do in college?
Then many (the good obviously) programmers do not understand why they take so much the fun of PHP, if they see the codes that I see lately...2 -
For those of you who DO use PHP, regardless of whether you like it or not, have you ever used something like PEAR? And what are your thoughts?
I'm writing a fairly basic internal web app for our PMs and I'm looking for something similar to npm to save me some time/effort. I should also mention that my supervisor insists it be in PHP...6 -
Thank you hosing company, all you had to do was rebuild the crummy php 5.2 cgi with an up to date version of openssl that supports tls 1.2 so the PayPal integrations work for the seven customers who are too fucking tight to pay to have their sites upgraded to something modern...
Not set all 120 sites across five servers to run on php 5.2..
Assholes!2 -
Finding a dev for our dutch team is hard. Our demands are not that big. Can be a junior or senior php guy. Bit of front end required. Any tips? How would you like to be contacted?18
-
guys according to you? are we making development of web hard or easy, being a php dev all i have to is copy and paste the files but with node, all sort of configuration and still i'm not able to see hello world on my website2
-
My dear developers I would really appreciate if you could recommend me technology for diving into web development. I am thinking about django/python or laravel/php but I am not sure.
I know it is opinion based question but I need your help to decide..9 -
I'm planning to make a dashboard web app with data analytics. It'll also include subscription option. So I'm trying to decide which language to use on the back end which I planing to make as RESTful api.
Current options for the backend are python, Ruby and php.
I'm not really sure about python. Ruby seems interesting, but I've read its a bit slow and some of the codes does look like magic. I'm very familiar with php, so I'm very biased toward it right now to use php with Lumen framework.
I'm also hoping to scale up the system in the future.
So, can you guys gimme a little help here in choosing a language and framework.1 -
I have a big web development requirement from client using java. I have suggested them for using Php/mysql but they dont want it. i am not sure which framework to use in java, whether java can be deployed on AWS, whether java would be as fast as php.
Please share your java web development experience and how do i go ahead.8 -
PHP guys: Magento is so rampant nowadays. Are you currently using or studying it? If not, do you plan on studying / using it even if it is not a job requirement? 🤔9
-
The consistency of php standard lib function is astonishing. array_map, array_reduce ...
Why do I have to use php7 😢😢😭😭😭1 -
Having problems with getting user's IP address with PHP.
So basically I made a custom DDoS protection for my linux server.
It works like this: php website gathers visitor IP address when he does a certain action (in this case registers an account). All visitor ips are stored in ips.txt securely on my website ftp.
Then my linux server has iptables rules setup in a way where it blocks all traffic except my website traffic.
On linux server I have a cron job which pulls whitelisted ips every 5 minutes from my php website FTP and then whitelists all IP's in iptables.
That way only visitor IP's (of those who registered account in my website) are being whitelisted in my linux server.
In case of a DDoS attack, all traffic is dropped except for the whitelisted visitor's IP's gathered from website ips.txt
Now I'm having a problem. My PHP script is not accurate. Some visitors in my website are not being whitelisted because they might have a different ipv4 ip address than what is given from php website. So basically I am looking for some php script/library that would gather ALL ipv4 ips from a visitor, then whitelist them.
Also regarding ipv6, my iptables are all default (which means that all ipv6 visitor traffic is allowed) so problem is not with visitors that have ipv6. Problem is with my script not getting ALL ipv4 ip addresses assigned to the user.
Can you recommend me some php library for that? So far I've used https://github.com/marufhasan1/... but apparently it's not accurate enough.16 -
Nextjs 14 just came out and they added a new server actions syntax which is the same bullshit syntax like php where you insert server side code in the middle of html div! And not only is that ridiculous enough but also vulnerable to sql injection 😂😂😂2
-
Looks like it is not possible to compile OCI8 PHP extension for PHP8 yet. Hopefully, they will add support for it very soon, I am very impatient.2
-
Fucking Yeoman, guys.
For a school project I thought I'd try it out to scaffold out my folder structure etc. Ran a php generator (not having commits since 2013) through npm and sipped my coffee while one node deprecation warning after the other filled my terminal.
Now I just feel like I'm sitting with my dick in my hand while staring at what looks like the fucking source code of the Matrix itself.
Does anyone use Yeoman for PHP projects anymore?
Well, at least Grunt works flawlessly 😎 -
Started at the age of 6 by doing simple calculator on zx-spectrum. Tho that's just a joke, not a professional experience. Somewhat serious project was started with PHP, without even knowing the language/theory/databases.... After that years have passed and now I can call myself: professional self-taught programmer.
-
when i say that php sucks i am not attacking you. people do not understand this. i fucking love javascript but i know there are technologically better options for backend, especially for some of the hyperspecific tasks i want to achieve, but i appreciate the familiarity i have with it. so when i tell you that PHP is dreadful i mean the language. you can make cool shit in PHP. i not doubt your ability to PHP and i do not think it makes you a lesser person or that it is not valuable knowledge. i am merely saying, especially when i am replying to you praising PHP, that it is still a language built on piles of junk with spaghetti patchwork of older in built functions and a walking liability if you do not know what you are doing. for a language that pretends to be a high level and easy language PHP is surprisingly fucking complicated and easy to fuck up, even for someone that is decently adapted to programming.2
-
So, yesterday I have been working on a php project (commitent asked for it to be php) and I spent the whole day trying to solve a "driver issue" exception.
I previously worked on various WordPress projects as a freelancer, so I should be fine, right?
I couldn't fix it in the whole day, tried all the solutions on google up to the 5th page, searched around stack overflow etc, and the error message is just "driver not found"... Gee php, thanks for the details! I am sure it will come out it's something small and easy, but I have learned enough about php and I want to stay as far away away from it as possible.8 -
!Rant
So today a friend told me how he create a ML programme in PHP... (I am not hard core PHP guy , btw I am hardcore elixir guy).
So guys it is possible ML for PHP , anyone do it before? (Something like Runic?)2 -
Just a question people. Consider me a noob.
I have worked on php for a project. It's not too advanced or something but I don't get why people hate it so much.
I really need reasons.2 -
HTML entities not handled on a social network site based on php...
that's you can post with a <script> and it will run when published.
Everybody with conn or access to the post will be affected1 -
I received a job posting recently which has php in it, I decided to avoid it for multiple reasons, but it got me thinking: why do companies seriously believe that php is "easy to learn/use/pick up"? It has an horrible syntax, a lot of inconsistencies and lacks functionalities... Is there something I am not seeing?3
-
Node and other apps are so freaking cool but for small businesses it's a pain in the ass and just not worth implementing them over php due to them having to run like an app.
Plus cpanel and similar products integrate like hot garbage with it. -
Can anyone plz help me open my laravel project on my localhost server ubuntu ? ( I have cloned it from my gitlab repo) its not opening on my server.5