GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Fucking around with PHP (https://gfy.com/showthread.php?t=65186)

pr0 06-21-2002 12:48 PM

Fucking around with PHP
 
Looking for a site that has some good resources on learning to program with php. Like socket programming etc.

Thinking about making a custom search engine submission program to run off my server.

But first i gotta learn how to use php :1orglaugh

Cogitator 06-21-2002 12:50 PM

Look no further. Go to www.php.net They have tutorials and everything.

hyper 06-21-2002 12:50 PM

www.zend.com

ServerGenius 06-21-2002 12:53 PM

www.phpbuilder.com good tutorials, friendly community!

DynaMite

eRock 06-21-2002 12:57 PM

Quote:

Originally posted by pr0
But first i gotta learn how to use php :1orglaugh
I'm right there with ya. On my list....

Sly_RJ 06-21-2002 01:05 PM

www.devshed.com

mike503 06-21-2002 01:39 PM

you might not need to use socket programming. php has nice built in support for simple http requests.

you can also look at cURL (php.net/curl) - very very good stuff there. don't have to program your own socket connection stuff either (which isn't hard itself in PHP also.. heh)

foe 06-21-2002 02:04 PM

Online resources are fun, but in the end just get a good php book, Its a lot easier to learn the language that way.

mike503 06-21-2002 02:08 PM

Quote:

Originally posted by foe
Online resources are fun, but in the end just get a good php book, Its a lot easier to learn the language that way.
i'd say it's the opposite. online resources means you can cut and paste the code.. and is updated in real-time.. new functions are being explored all the time.. books are static, once they're published, they do not change.. and time from writing to market is a while, by that time a whole new version of PHP could be out.

it just depends how you learn. if you learn by sitting in a corner and reading about it, then maybe books do help you. however, if you learn by doing it (like me), online resources are faster and more accessable, not to mention free.

foe 06-21-2002 02:28 PM

Quote:

Originally posted by mike503


i'd say it's the opposite. online resources means you can cut and paste the code.. and is updated in real-time.. new functions are being explored all the time.. books are static, once they're published, they do not change.. and time from writing to market is a while, by that time a whole new version of PHP could be out.

it just depends how you learn. if you learn by sitting in a corner and reading about it, then maybe books do help you. however, if you learn by doing it (like me), online resources are faster and more accessable, not to mention free.

Yes but if you get a book you will not skip important parts like arrays classes etc, you get a good overview of the language and when you need specific info then you shoudl turn to online scripts.

mike503 06-21-2002 02:30 PM

Quote:

Originally posted by foe


Yes but if you get a book you will not skip important parts like arrays classes etc, you get a good overview of the language and when you need specific info then you shoudl turn to online scripts.

php.net has overviews of all of that also.. so do all the other sites listed. anything that's in a PHP book is on a website. not everything on websites are in PHP books. websites also have updated information about bugs in functions which books do not.

i've looked at books before which even show code samples, when i try them, they fail miserably. especially in regards to some of the recent PHP function additions which are changing names often..

foe 06-21-2002 02:32 PM

Quote:

Originally posted by mike503


php.net has overviews of all of that also.. so do all the other sites listed. anything that's in a PHP book is on a website. not everything on websites are in PHP books. websites also have updated information about bugs in functions which books do not.

i've looked at books before which even show code samples, when i try them, they fail miserably. especially in regards to some of the recent PHP function additions which are changing names often..

I found that php.net is great to learn some advanced functions ... especially recent ones, but if someone is starting out I think a book will be easier

AcidMax 06-21-2002 03:00 PM

PHP Builder (http://www.phpbuilder.com)
WebMonkey (http://hotwired.lycos.com/webmonkey/programming/php/)

and of course PHP.net

I am always up for helping people out so if you have some questions feel free to contact me on ICQ: 70930467

I would say the most important things in PHP are classes, db abstraction and regular expressions. With these 3 things you can accomplish pretty much anything.


Almost forgot check out (http://www.e-gineer.com/) thats a pretty good site too.

-AJ

pr0 06-21-2002 03:05 PM

wow, abunch of really great information, thanks guys!

you can always count on the programmers for resourcefullness :thumbsup

AcidMax 06-21-2002 03:13 PM

pr0 hit me up on ICQ.

-AJ

hyper 06-21-2002 03:14 PM

yeah.. you need books.

Script Dude 06-21-2002 03:14 PM

I've been working on a server side "promotion assistant," but I decided that I would stop short of auto submitting for a variety of reasons.

One being that I've been hired to write scripts that block auto submissions, and I think I would feel a bit hypocritical writing an auto submitter.

(Is that the ethical equivalent to selling arms to both sides in a war?)

Anyway, i think you will find something like this useful...

Http Navigator

Good luck.

mike503 06-21-2002 03:17 PM

that's why people shouldn't use auto submitters, they should use my site. everyone benefits. no one gets annoyed by automatic submission shit :)

foe 06-21-2002 03:25 PM

But what about reciprocle linking

Matt 26z 06-21-2002 03:50 PM

In my opinion, anyone wanting to learn PHP needs only the following 4 things...

1. The book PHP fast & easy web development. By Julie C. Meloni out of Prima Publishing. This book will start you from the beginning, and they make it VERY easy to understand.

2. After you know all the basics from the above book then dig into the book Professional PHP Programming from Wronx Press. Lot's of stuff here, so you may want to teach yourself only what you need to know for whatever it is you are doing. Go with the smaller book I mentioned above first though. That is for extreme PHP newbies, and this one I don't think is.

3. Visit PHPBuilder.com's boards with any questions you have.

4. The program PHP Triad (it's free). It'll do a full install of Apache and MySQL in Windows. Support for PHP of course, and CGI.

foe 06-21-2002 04:15 PM

Quote:

Originally posted by Matt 26z
In my opinion, anyone wanting to learn PHP needs only the following 4 things...

1. The book PHP fast & easy web development. By Julie C. Meloni out of Prima Publishing. This book will start you from the beginning, and they make it VERY easy to understand.

2. After you know all the basics from the above book then dig into the book Professional PHP Programming from Wronx Press. Lot's of stuff here, so you may want to teach yourself only what you need to know for whatever it is you are doing. Go with the smaller book I mentioned above first though. That is for extreme PHP newbies, and this one I don't think is.

3. Visit PHPBuilder.com's boards with any questions you have.

4. The program PHP Triad (it's free). It'll do a full install of Apache and MySQL in Windows. Support for PHP of course, and CGI.

Just a small warning use PHP triad only to develop at home, dont host commercially from it, it has lots of security problems.

ServerGenius 06-21-2002 04:35 PM

Ok if you want to learn it really fast...read the functions chapter 3 times.....and read chapter 7 of Mysql 3 times...that's basically all
you need to get started...then just start experimenting...

get some simple scripts and start modifying...trust me it ain't
rocket science......before you know you get the hang of it..

offcourse it will take some time getting good at it.....the hardest
part is to make a good plan....a design for the stuff you build.

one can build 1 script in 100 different ways....in order to keep it
simple, efficient and fast...it needs a good blueprint...that's what
seperates the boys from the man....

DynaMite :2 cents:

pr0 06-21-2002 04:43 PM

Well i made my first script.

www.candidlinks.com/pro.php

it just gives you your ip & browser type

And its just based on simple shit i found at the php homepage...but oh well its a start :)

Martin 06-21-2002 04:50 PM

I bet you guys don't get laid much.. Facking geeks :1orglaugh

pr0 06-21-2002 05:21 PM

Quote:

Originally posted by Martin
I bet you guys don't get laid much.. Facking geeks :1orglaugh
don't tempt me martin :1orglaugh

i fucked every girl in canada already, & i've got the std's to prove it

mike503 06-21-2002 05:57 PM

pro be sure to use the $_POST $_GET $_COOKIE $_SERVER $_FILES $GLOBALS (yes, no _) global arrays. it's a good coding syntax to get in the habit of using, + it's more secure to use. also, newer distros of PHP have register_globals off by default, so this will effectively work on all 4.1.x+ systems without any issues (did i mention it was the better way to code and more secure? yeah...)

pr0 06-21-2002 06:03 PM

Quote:

Originally posted by mike503
pro be sure to use the $_POST $_GET $_COOKIE $_SERVER $_FILES $GLOBALS (yes, no _) global arrays. it's a good coding syntax to get in the habit of using, + it's more secure to use. also, newer distros of PHP have register_globals off by default, so this will effectively work on all 4.1.x+ systems without any issues (did i mention it was the better way to code and more secure? yeah...)
dude im totally lost, did i do something insecure with the script i just put up?

foe 06-21-2002 06:05 PM

Quote:

Originally posted by pr0


dude im totally lost, did i do something insecure with the script i just put up?

nope, but post the code if you want some pointers :)

Martin 06-21-2002 06:10 PM

Quote:

Originally posted by pr0


don't tempt me martin :1orglaugh

i fucked every girl in canada already, & i've got the std's to prove it

Dam you too bro.. Shiiit..

foe 06-21-2002 06:12 PM

btw pro message me if you need help. I have taught several friends php and still give advice to many :)

pr0 06-21-2002 06:15 PM

Quote:

Originally posted by foe
btw pro message me if you need help. I have taught several friends php and still give advice to many :)
See now this is what i like about the people at this board, & programmers in general. Always so helpfull & willing to give you a hand.

Awsome :thumbsup

hyper 06-21-2002 06:21 PM

Quote:

Originally posted by DynaSpain
that's what
seperates the boys from the man....

DynaMite :2 cents:

i thought a prybar did :1orglaugh

hyper 06-21-2002 06:22 PM

Quote:

Originally posted by foe
btw pro message me if you need help. I have taught several friends php and still give advice to many :)
how do i call the last 5 entries from a database based on field?

foe 06-21-2002 06:26 PM

Quote:

Originally posted by hyper


how do i call the last 5 entries from a database based on field?

do your records have an id or a datestamp if they do

that should be basically it.
PHP Code:

select requiredfields from tablename order by idfield desc limit 5 


mike503 06-21-2002 08:56 PM

Quote:

Originally posted by pr0


dude im totally lost, did i do something insecure with the script i just put up?

no, but when you get into forms with user interaction and other things, someone could put a variable in the query string (i.e. using the "GET" method) when you are expecting a POST variable. POST is usually viewed as more secure since people can't see the data being sent to the server.

people could easily override a POST var with GET, or could override a session variable with a GET request. depending on your variables_order they could mess with your shit :)

if you have any other q's, hit me up on icq. just another resource for you chat with.


All times are GMT -7. The time now is 08:42 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123