Jul 26, 2008

Kobra's Php Project Official Post

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

free web hosting

Kobra's Php Project Official Post

kobra500
Kobra500's PHP Project


This is the Official Post for My Project to Learn PHP. Below is the list of things I will do... [okay, attempt]

Thanks to KansukeKojima and Jlhaslip
QUOTE
* Redirect a page with php [link]
* Parse a variable.
* Build a random page title chooser....
* Build a template in php and parse it AROUND the content of a page.
* Create a flat file shoutbox.
* Create a shoutbox with a database.
* Read the list of files in a directory
* List the images from that list
* Display those images as thumbnails with links to a full size image
* Read a file of content for a Template system and parse the H2 tags to create the Page title for the page.
* Build a Spam-proof Contact form with a captcha system


if you have any additional things to add to this list just post here anyway wish me luck!!!

I will be posting links and crossing off things, so please feel free to bookmark this post or watch for it in the recent activity area!

edit: you can now view the changes at my blog so this post will no longer be updated.

 

 

 


Reply

BuffaloHELP
Reading directory and listing them:

HTML
$path = "directory/path";
$narray=array();
$dir_handle = @opendir($path) or die("Unable to open $path please notify the administrator. Thank you.");
$i=0;
while($file = readdir($dir_handle))
{
if($file != '.' && $file != '..')
{
$narray[$i]=$file;
$i++;
}
}
//closing the directory
closedir($dir_handle);


I hope this helps...unless you weren't looking for help. Once a directory is read and stored into an array, you can execute various ways to spit back out. You can use PRINT or ECHO command to list files or pictures.

Sorting file names as in order of Weekdays was the most challenging one. Vujsa worked out the best and shortest code to arrange them as in order of weekdays rather than alphabetically. Search the forum wink.gif

 

 

 


Reply

tracdoor
Good luck!

For my first PHP script I made an email form+sender, ever since then all I want to do is PHP!

For my second one, the one I am on at the moment, I am trying to make a member system (allowing the user to register, login, change password & settings etc..) i'm nearly there, just adding some design to it! look if you like: http://sam.exofire.net/register.php.

It's great when you spend ages on sorting out the errors in your script and then it finally works and you can try it out - best part of it by far, its even more of a great feeling when you make the script yourself - not just searching source forge or something smile.gif


Good luck anyway...

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:


Searching Video's for kobras, php, project, official, post
advertisement



Kobra's Php Project Official Post



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE