Be a Supporter!

Php: Main

  • 85,966 Views
  • 591 Replies
New Topic Respond to this Topic
DFox
DFox
  • Member since: Aug. 9, 2003
  • Offline.
Forum Stats
Member
Level 30
Blank Slate
Response to Php: Main Feb. 14th, 2006 @ 11:40 PM Reply

Although it's not only used for PHP, I'd love to see a tutorial on regular expressions used with a replace function.

I can get around with regular expressions, but I'm not as good as I'd like to be with them.


BBS Signature
Greeley
Greeley
  • Member since: Aug. 30, 2005
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to Php: Main Feb. 15th, 2006 @ 12:10 AM Reply

At 2/14/06 03:00 PM, -fuzz- wrote: could some one please do a tutorial on making a voting system, similar to the page hit thing but it works out what number has been clicked and then works out an average.

is this possable please?

This is very easily possible. In fact I'm going to write it up right now. It's pretty simple for the most part really easy!

Greeley
Greeley
  • Member since: Aug. 30, 2005
  • Offline.
Forum Stats
Member
Level 13
Blank Slate
Response to Php: Main Feb. 15th, 2006 @ 01:00 AM Reply

Php: Voting System (from 1 To 5)

fuzz
fuzz
  • Member since: Jun. 2, 2004
  • Offline.
Forum Stats
Member
Level 21
Blank Slate
Response to Php: Main Feb. 15th, 2006 @ 03:53 PM Reply

At 2/15/06 12:10 AM, Greeley wrote:

Thank you again!

Rammer
Rammer
  • Member since: Jun. 8, 2003
  • Offline.
Forum Stats
Member
Level 33
Programmer
Response to Php: Main Feb. 22nd, 2006 @ 06:48 PM Reply

im new to coding PHP...and im having a bit of trouble with this piece of code.

$_POST["user"] = fopen("usernames.txt", "a")

im sure im doing this wrong. its not for any crazy username database, just a small test to see what PHP can do. its just not "appending" the posted variable to this text file.

the usernames.txt file is on the same level as the php file on a sub-domain of my site. im not sure if i need to give any more information.


snyggys

Rammer
Rammer
  • Member since: Jun. 8, 2003
  • Offline.
Forum Stats
Member
Level 33
Programmer
Response to Php: Main Feb. 22nd, 2006 @ 07:22 PM Reply

oops, i made a mistake. my code still doesnt work, though.

<?php
$stringtowrite = $_POST["user"];
$fp = fopen("usernames.txt", "a");
fwrite($fp, $stringtowrite . "\n");
fclose($fp);
?>

it isnt appending $stringtowrite to my text file, "usernames.txt".


snyggys

Afro-Ninja
Afro-Ninja
  • Member since: Mar. 2, 2002
  • Offline.
Forum Stats
Moderator
Level 44
Game Developer
Response to Php: Main Feb. 22nd, 2006 @ 08:45 PM Reply

At 2/22/06 07:22 PM, 2k_rammerizkool wrote: oops, i made a mistake. my code still doesnt work, though.

<?php
$stringtowrite = $_POST["user"];
$fp = fopen("usernames.txt", "a");
fwrite($fp, $stringtowrite . "\n");
fclose($fp);
?>

it isnt appending $stringtowrite to my text file, "usernames.txt".

could you post this in a new thread? we try not to clutter this one with specific problems


BBS Signature
Pilot-Doofy
Pilot-Doofy
  • Member since: Sep. 13, 2003
  • Offline.
Forum Stats
Member
Level 37
Musician
Response to Php: Main Feb. 27th, 2006 @ 05:07 PM Reply

I got a new tutorial up: http://www.newground../topic.php?id=441194

NinoGrounds
NinoGrounds
  • Member since: Nov. 28, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to Php: Main Mar. 2nd, 2006 @ 11:35 AM Reply

At 2/27/06 05:07 PM, Pilot-Doofy wrote: I got a new tutorial up: http://www.newground../topic.php?id=441194

quite advanced

WoogieNoogie
WoogieNoogie
  • Member since: Jun. 26, 2005
  • Offline.
Forum Stats
Supporter
Level 15
Programmer
Response to Php: Main Mar. 4th, 2006 @ 06:34 PM Reply

A new thread has opened up to request tutorials here.

NinoGrounds
NinoGrounds
  • Member since: Nov. 28, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to Php: Main Mar. 6th, 2006 @ 09:19 AM Reply

Due to PHP's Requesting Topic we can expect alot more Tutorials now when we know what we need to write about.

NinoGrounds
NinoGrounds
  • Member since: Nov. 28, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to Php: Main Mar. 6th, 2006 @ 10:06 AM Reply

PHP: Main
As a starter of PHP Requesting topic, I'll update the list this time:
-------
Your resource for great PHP tutorials!!!
PHP: GENERAL CODE:

BEGINNER (4)
Begginer Tutorial by GamesCool
PHP: Setting And Returning Cookies by Jams44
Storing Cookies Info by Jams44
Website Progress/Percentage by Greeley

INTERMEDIATE (5)
File Uploads by Pilot the mighty Doofy
Good Habits And Security Concerns by
Sir-Davey
Image Resizing by Pilot - Doofy
Securing File Uploads by Pilot Doofy
Using Implode And Explode Functions by GamesCool
replace_tags by Pilot Doofy it has some wicked values, otherwise quite easy

PHP: SPECIFIC PROJECTS:
Count Line Breaks by Zendra, the Teacher
Creating A Random Ad Script by Jams44
Creating A Random Quotes Script by GamesCool
Date Displayer by Jams44

Link Checking (checking for broken links) by Jams44
Shoutbox (MySQL) by WoogieNoogie
Simple Hit Counter by SpamBurger

INTERMEDIATE (6)
Creating A Blog by WoogieNoogie
Flat Files (Create a Shoutbox) by IWantSomefreekingCookies
Random Quote Image by GamesCool
RSS Tutorial by elbekko
Search Engine by Zendra
User Authentication (First Part) by Greeley [In fact just checking if submited data correct. No mysql and sessions yet]
Voting System [From 1 To 5] by Greeley

PHP: USEFUL RESOURCES:

BEGINNER (1)

Rapid Website Development

^^^^^^Total number of tutorials: 26^^^^^^

THAT'S IT!

I've checken it with Dreamweaver and it displayed nice. However, if you find ANY errors, post 'em here!

-----See The Other Version Of This Here
http://www.clan-csc.com/PHP_Tutorials.php
ENJOY! ------

>>>Request PHP Tutorials Here<<<

~{N}~

NinoGrounds
NinoGrounds
  • Member since: Nov. 28, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to Php: Main Mar. 6th, 2006 @ 10:12 AM Reply

IP Ban Tutorial

The user who created it haven't written that here so I haven't seen it.
It is gonna be in the second updating.

Afro-Ninja
Afro-Ninja
  • Member since: Mar. 2, 2002
  • Offline.
Forum Stats
Moderator
Level 44
Game Developer
Response to Php: Main Mar. 7th, 2006 @ 01:33 PM Reply

Sorry nino but GamesCool is the one who started this list and he's the one who updates it at the top of every page. If we updated the list after every tutorial half the topic would just be filled with updates

And actually, this topic should be the one used to request the php tutorials : /


BBS Signature
Zendra
Zendra
  • Member since: Sep. 7, 2003
  • Offline.
Forum Stats
Moderator
Level 51
Blank Slate
Response to Php: Main Mar. 7th, 2006 @ 02:32 PM Reply

At 3/7/06 01:33 PM, Afro_Ninja wrote: Sorry nino but GamesCool is the one who started this list and he's the one who updates it at the top of every page. If we updated the list after every tutorial half the topic would just be filled with updates

Then why you don't delete the post, to prevent confussion?

And actually, this topic should be the one used to request the php tutorials : /

And the idea behind it is good, because you have a topic who where it's central about the subject.

NinoGrounds
NinoGrounds
  • Member since: Nov. 28, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to Php: Main Mar. 10th, 2006 @ 09:20 AM Reply

At 3/7/06 01:33 PM, Afro_Ninja wrote: Sorry nino but GamesCool is the one who started this list and he's the one who updates it at the top of every page. If we updated the list after every tutorial half the topic would just be filled with updates

And actually, this topic should be the one used to request the php tutorials : /

I'm sorry then, I just wanted to contribute because I currently don't have a time to write any good Tutorial..

For the second thing, I must not agreed, it is nice to have two spilt topics about that, then we do some kind of connection which is cool :)

juraj
juraj
  • Member since: May. 15, 2004
  • Offline.
Forum Stats
Member
Level 29
Blank Slate
Response to Php: Main Mar. 13th, 2006 @ 11:17 AM Reply

Beginner <> intermediate
Capitalize Every Word's First Letter
http://www.newground../topic.php?id=449156

Rustygames
Rustygames
  • Member since: May. 7, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to Php: Main Mar. 13th, 2006 @ 03:02 PM Reply

I have a request:
PHP sockets


- Matt, Rustyarcade.com

DannyIsOnFire
DannyIsOnFire
  • Member since: Apr. 14, 2005
  • Offline.
Forum Stats
Member
Level 21
Movie Buff
Response to Php: Main Mar. 13th, 2006 @ 03:16 PM Reply

At 3/13/06 03:02 PM, Ninja-chicken wrote: I have a request:
PHP sockets

Wrong Thread


|| Portfolio || Facebook || Twitter ||

BBS Signature
Rustygames
Rustygames
  • Member since: May. 7, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to Php: Main Mar. 13th, 2006 @ 04:03 PM Reply

At 3/13/06 03:16 PM, DannyIsOnFire wrote:
At 3/13/06 03:02 PM, Ninja-chicken wrote: I have a request:
PHP sockets
Wrong Thread

no. The Main Topics have always been used to request tutorials and it's not stopping now. GamesCool made this thread and I notice that thread was made by some random guy so I think I'll stick with requesting here thanks :D


- Matt, Rustyarcade.com

Zendra
Zendra
  • Member since: Sep. 7, 2003
  • Offline.
Forum Stats
Moderator
Level 51
Blank Slate
Response to Php: Main Mar. 14th, 2006 @ 02:57 AM Reply

At 3/13/06 04:03 PM, Ninja-chicken wrote: no. The Main Topics have always been used to request tutorials and it's not stopping now. GamesCool made this thread and I notice that thread was made by some random guy so I think I'll stick with requesting here thanks :D

It doesn't really matter. There's not 'official' request topic. Although Afro_Ninja thinks it should be posted in here, I haven't heard anyone else complain about it.

WoogieNoogie
WoogieNoogie
  • Member since: Jun. 26, 2005
  • Offline.
Forum Stats
Supporter
Level 15
Programmer
Response to Php: Main Mar. 14th, 2006 @ 08:00 PM Reply

The more I think about it...I think Afro is right. This is PHP: Main, not PHP: List links to tutorials...

Rustygames
Rustygames
  • Member since: May. 7, 2005
  • Offline.
Forum Stats
Member
Level 19
Programmer
Response to Php: Main Mar. 15th, 2006 @ 12:13 PM Reply

Well in AS:Main we request from here. And it just takes common sense to see that would be a good function for this thread


- Matt, Rustyarcade.com

DFox
DFox
  • Member since: Aug. 9, 2003
  • Offline.
Forum Stats
Member
Level 30
Blank Slate
Response to Php: Main Mar. 15th, 2006 @ 01:03 PM Reply

Well Afro-Ninja says we should post here, and he is authority, so I think we should post requests in this thread.


BBS Signature
DFox
DFox
  • Member since: Aug. 9, 2003
  • Offline.
Forum Stats
Member
Level 30
Blank Slate
Response to Php: Main Mar. 15th, 2006 @ 01:04 PM Reply

PHP: Main
--------------
Your resource for great PHP tutorials!!!

PHP: GENERAL CODE:

BEGINNER (4)
PHP: Beginners tutorial by GamesCool
PHP: Setting and Returning Cookies by Jams44
PHP: Storing Cookie Info by Jams44
PHP: Website Progress/Percentages by Greeley

INTERMEDIATE (7)
PHP: Capitalize Every Word (arrays) by juraj * NEW *
PHP: File uploads by Pilot-Doofy
PHP: Good habits/Security concerns by Sir-Davey
PHP: Image Resizing by Pilot-Doofy
PHP: replace_tags() by Pilot-Doofy * NEW *
PHP: securing file uploads by Pilot-Doofy
PHP: Using explode and implode functions by GamesCool

ADVANCED (1)
PHP: CLI (Command Line Interface) Basics by Dezmerkt

PHP: SPECIFIC PROJECTS:

BEGINNER (8)
PHP: Count Line Breaks by Zendra
PHP: Creating A Random Ad Script by Jams44
PHP: Create a random quotes script by GamesCool
PHP: Date Displayer by Jams44
PHP: Link Checking by Jams44
PHP: Shoutbox (MySQL) by WoogieNoogie
PHP: Simple Hit Counter by SpamBurger
PHP: Voting System (From 1 to 5) by Greeley * NEW *

INTERMEDIATE (6)
PHP: PHP: Creating a Blog by WoogieNoogie
PHP: Flat-files (Create a shoutbox) by IWantSomeCookies
PHP: Random quote image by GamesCool
PHP: RSS tutorial by elbekko
PHP: Search Engine by Zendra
PHP: User Authentication (Part 1) by Greeley

PHP: USEFUL RESOURCES:

BEGINNER (1)
PHP: Rapid Website Development by Sir-Davey

Total number of tutorials: 27

As always, if I made any mistakes please let me know.


BBS Signature
WoogieNoogie
WoogieNoogie
  • Member since: Jun. 26, 2005
  • Offline.
Forum Stats
Supporter
Level 15
Programmer
Response to Php: Main Mar. 15th, 2006 @ 09:09 PM Reply

Best update ever :)

This is coming along really nice!

WoogieNoogie
WoogieNoogie
  • Member since: Jun. 26, 2005
  • Offline.
Forum Stats
Supporter
Level 15
Programmer
Response to Php: Main Mar. 15th, 2006 @ 09:42 PM Reply

At 3/15/06 01:04 PM, GamesCool wrote: PHP: PHP: Creating a Blog by WoogieNoogie

I found a mistake...

DFox
DFox
  • Member since: Aug. 9, 2003
  • Offline.
Forum Stats
Member
Level 30
Blank Slate
Response to Php: Main Mar. 15th, 2006 @ 10:01 PM Reply

At 3/15/06 09:42 PM, WoogieNoogie wrote:
At 3/15/06 01:04 PM, GamesCool wrote: PHP: PHP: Creating a Blog by WoogieNoogie
I found a mistake...

dang that was on the last update also. I'll have it corrected for next.


BBS Signature
Zendra
Zendra
  • Member since: Sep. 7, 2003
  • Offline.
Forum Stats
Moderator
Level 51
Blank Slate
Response to Php: Main Mar. 16th, 2006 @ 06:29 AM Reply

Nice update.
It's good to see this list getting more tutorials.

MihaS
MihaS
  • Member since: Jun. 4, 2005
  • Offline.
Forum Stats
Member
Level 05
Blank Slate
Response to Php: Main Mar. 16th, 2006 @ 02:18 PM Reply

Begginer Tutorial:

Email Form / Contact