Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-21-2002, 12:48 PM   #1
pr0
rockin tha trailerpark
 
pr0's Avatar
 
Industry Role:
Join Date: May 2001
Location: ~Coastal~
Posts: 23,088
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
pr0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 12:50 PM   #2
Cogitator
Confirmed User
 
Join Date: Feb 2002
Location: Florida
Posts: 672
Look no further. Go to www.php.net They have tutorials and everything.
__________________
- this space intentionally left blank -
Cogitator is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 12:50 PM   #3
hyper
Confirmed User
 
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
www.zend.com
__________________
hyper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 12:53 PM   #4
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
www.phpbuilder.com good tutorials, friendly community!

DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 12:57 PM   #5
eRock
Confirmed User
 
eRock's Avatar
 
Join Date: Apr 2001
Location: Chi-town
Posts: 3,112
Quote:
Originally posted by pr0
But first i gotta learn how to use php
I'm right there with ya. On my list....
eRock is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 01:05 PM   #6
Sly_RJ
Live Hard - Die Hard
 
Join Date: Feb 2002
Location: Ready to leave...
Posts: 17,042
www.devshed.com
__________________
PHAT SERVERS - Quality dedicated hosting at a quality price!
sly AT phatservers DOT com - 147479144
Sly_RJ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 01:39 PM   #7
mike503
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: oregon.
Posts: 2,243
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)
__________________
php/mysql guru. hosting, coding, all that jazz.
mike503 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 02:04 PM   #8
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
Online resources are fun, but in the end just get a good php book, Its a lot easier to learn the language that way.
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 02:08 PM   #9
mike503
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: oregon.
Posts: 2,243
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.
__________________
php/mysql guru. hosting, coding, all that jazz.
mike503 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 02:28 PM   #10
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
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.
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 02:30 PM   #11
mike503
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: oregon.
Posts: 2,243
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..
__________________
php/mysql guru. hosting, coding, all that jazz.
mike503 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 02:32 PM   #12
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
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
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 03:00 PM   #13
AcidMax
Confirmed User
 
Join Date: May 2002
Location: MI
Posts: 1,827
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
__________________
Latest MMA news. http://www.mmawrapup.com
AcidMax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 03:05 PM   #14
pr0
rockin tha trailerpark
 
pr0's Avatar
 
Industry Role:
Join Date: May 2001
Location: ~Coastal~
Posts: 23,088
wow, abunch of really great information, thanks guys!

you can always count on the programmers for resourcefullness
pr0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 03:13 PM   #15
AcidMax
Confirmed User
 
Join Date: May 2002
Location: MI
Posts: 1,827
pr0 hit me up on ICQ.

-AJ
__________________
Latest MMA news. http://www.mmawrapup.com
AcidMax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 03:14 PM   #16
hyper
Confirmed User
 
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
yeah.. you need books.
__________________
hyper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 03:14 PM   #17
Script Dude
Registered User
 
Join Date: Jun 2002
Location: Michigan
Posts: 86
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.
Script Dude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 03:17 PM   #18
mike503
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: oregon.
Posts: 2,243
that's why people shouldn't use auto submitters, they should use my site. everyone benefits. no one gets annoyed by automatic submission shit
__________________
php/mysql guru. hosting, coding, all that jazz.
mike503 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 03:25 PM   #19
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
But what about reciprocle linking
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 03:50 PM   #20
Matt 26z
So Fucking Banned
 
Industry Role:
Join Date: Apr 2002
Location: ¤ª"˜¨๑۩۞۩๑¨˜"ª¤
Posts: 18,481
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.
Matt 26z is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 04:15 PM   #21
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
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.
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 04:35 PM   #22
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
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
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 04:43 PM   #23
pr0
rockin tha trailerpark
 
pr0's Avatar
 
Industry Role:
Join Date: May 2001
Location: ~Coastal~
Posts: 23,088
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
pr0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 04:50 PM   #24
Martin
"Assassins"
 
Martin's Avatar
 
Industry Role:
Join Date: Dec 2001
Location: At home
Posts: 17,277
I bet you guys don't get laid much.. Facking geeks
Martin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 05:21 PM   #25
pr0
rockin tha trailerpark
 
pr0's Avatar
 
Industry Role:
Join Date: May 2001
Location: ~Coastal~
Posts: 23,088
Quote:
Originally posted by Martin
I bet you guys don't get laid much.. Facking geeks
don't tempt me martin

i fucked every girl in canada already, & i've got the std's to prove it
pr0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 05:57 PM   #26
mike503
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: oregon.
Posts: 2,243
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...)
__________________
php/mysql guru. hosting, coding, all that jazz.
mike503 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 06:03 PM   #27
pr0
rockin tha trailerpark
 
pr0's Avatar
 
Industry Role:
Join Date: May 2001
Location: ~Coastal~
Posts: 23,088
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?
pr0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 06:05 PM   #28
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
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
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 06:10 PM   #29
Martin
"Assassins"
 
Martin's Avatar
 
Industry Role:
Join Date: Dec 2001
Location: At home
Posts: 17,277
Quote:
Originally posted by pr0


don't tempt me martin

i fucked every girl in canada already, & i've got the std's to prove it
Dam you too bro.. Shiiit..
Martin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 06:12 PM   #30
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
btw pro message me if you need help. I have taught several friends php and still give advice to many
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 06:15 PM   #31
pr0
rockin tha trailerpark
 
pr0's Avatar
 
Industry Role:
Join Date: May 2001
Location: ~Coastal~
Posts: 23,088
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
pr0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 06:21 PM   #32
hyper
Confirmed User
 
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
Quote:
Originally posted by DynaSpain
that's what
seperates the boys from the man....

DynaMite
i thought a prybar did
__________________
hyper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 06:22 PM   #33
hyper
Confirmed User
 
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
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?
__________________
hyper is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 06:26 PM   #34
foe
Confirmed User
 
Join Date: May 2002
Location: CT
Posts: 5,246
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 
foe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-21-2002, 08:56 PM   #35
mike503
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: oregon.
Posts: 2,243
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.
__________________
php/mysql guru. hosting, coding, all that jazz.
mike503 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.