[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
WTF is PHP so fucking hard.
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 21
Thread images: 5
File: SO_IM_LOST_SIL_meme_g.jpg (291 KB, 576x576) Image search: [Google]
SO_IM_LOST_SIL_meme_g.jpg
291 KB, 576x576
Help me with some PhP resources /g/

>Thanks
>>
>>54498447
>PhP
>wanting to write PHP

0/10 see me after class
>>
stick to java, rajesh
>>
>>54498474
What do you mean anon?
>>
File: 1450883301802.jpg (139 KB, 1280x720) Image search: [Google]
1450883301802.jpg
139 KB, 1280x720
>>
>>54498447
PHP was written specifically to be simple to use and accessible to idiots. If you can't manage it, then stop trying and get a head start in your future of burger flipping.
>>
>>54498568
Thank you for such great and encouraging words sir anon. Will do.
>>
>>54498447
you can't be serious

80 IQ detected
>>
>>54498693
I actually have a 130 IQ.
I just lack sequential and indirect terse logical syndrome.
>>
PHP is a templating language with an embedded DSL for dynamic content from a database.
>>
>>54498447
I think you have a bright future in retail
>>
>>54498735
Everyone has an IQ of 130 on /g/ anon. You're just a filthy pleb.
>>
>>54498477
There are probably more indians in php than in java.
>>
>>54498447
Pro-tip: Learn it step-by-step. Don't cram.
>>
File: SO_IM_LOST_SIL_meme.png (134 KB, 576x576) Image search: [Google]
SO_IM_LOST_SIL_meme.png
134 KB, 576x576
>>54498804
I give up on humanity.

Are you serious?
>>
>>54498447
php is legit one of the most forgiving languages that exists, right next to javascript..

if you can't figure it out, give up coding
>>
>>54499327
Don't be so harsh
Start off with a real object oriented language. Learn C++ or Java, build a little Gtk application. You'll never have trouble understanding programming paradigms after that journey. Or if you're new to programming all together , stick on the front end for a little while longer. Javascript is a great place to start, and now is a good time. Javascript will be very different in 4 years.
>>
Well I'll agree with most here that you should start with java or something similar for your first OOP Language. PHP in theory is OO but in reality non relational databases deter you from using the OO features that PHP provides. Which means you will pick up a lot of bad habits if you start with PHP first. But PHP is very handy for server sided applications as it's very quick and easy to use but you need complete knowledge of its security deficiencies. 99% of people who use PHP for the first time will have their website torn to shreds when they go live.

If you can manage learning all of it's flaws then it becomes a very fun programming language to use. It's like, recreational programming.
>>
>>54499769
>>
>>54498447
What are you trying to build? Probably can be done in Java/Spring easily. inb4 i'm pajeet (false)
>>
File: SO_IM_LOST_SIL_yall_all.jpg (579 KB, 1008x720) Image search: [Google]
SO_IM_LOST_SIL_yall_all.jpg
579 KB, 1008x720
>>54500782
Im trying to build a musical platform, where new artist can display their new songs and videos.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


<?php
/*!
* HybridAuth
* http://hybridauth.sourceforge.net | http://github.com/hybridauth/hybridauth
* (c) 2009-2012, HybridAuth authors | http://hybridauth.sourceforge.net/licenses.html
*/
/**
* Hybrid_Providers_MySpace provider adapter based on OAuth1 protocol
*
* http://hybridauth.sourceforge.net/userguide/IDProvider_info_MySpace.html
*/
class Hybrid_Providers_MySpace extends Hybrid_Provider_Model_OAuth1
{
/**
* IDp wrappers initializer
*/
function initialize()
{
parent::initialize();
// Provider api end-points
$this->api->api_endpoint_url = "http://api.myspace.com/v1/";
$this->api->authorize_url = "http://api.myspace.com/authorize";
$this->api->request_token_url = "http://api.myspace.com/request_token";
$this->api->access_token_url = "http://api.myspace.com/access_token";
}
/**
* get the connected uid from myspace api
*/
public function getCurrentUserId()
{
$response = $this->api->get( 'http://api.myspace.com/v1/user.json' );
if ( ! isset( $response->userId ) ){
throw new Exception( "User id request failed! {$this->providerId} returned an invalid response." );
}
return $response->userId;
}
/**
* load the user profile from the IDp api client
*/
function getUserProfile()
{
$userId = $this->getCurrentUserId();
$data = $this->api->get( 'http://api.myspace.com/v1/users/' . $userId . '/profile.json' );
if ( ! is_object( $data ) ){
throw new Exception( "User profile request failed! {$this->providerId} returned an invalid response.", 6 );
}
Thread replies: 21
Thread images: 5

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.