+ Reply to Thread
Page 1 of 5 123 ... LastLast
Results 1 to 10 of 46

Thread: PHP Help (I'm Offering!)

  1. #1
    chris218 is offline x10Hosting Member chris218 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    London, UK
    Posts
    65

    PHP Help (I'm Offering!)

    I'm offering PHP help.

    I am pretty "fluent" in php, and have specialised knowledge in certain php software, for instance phpbb.

    If you need a bit of help, PM me, or reply to this topic.

    Thanks

    Chris

  2. #2
    Chris Z's Avatar
    Chris Z is offline x10 Spammer Chris Z is an unknown quantity at this point
    Join Date
    Sep 2005
    Location
    Alabama, USA
    Posts
    2,802

    Re: PHP Help (I'm Offering!)

    ok i was trying to create a speicalized download system that would check my bandwidth before letting the end user download the file and also generate a random code like validation kind of thing, idk if this is too confusing, but like it would send the generated random code to their e-mail
    -Chris Z
    Retired Account Manager


  3. #3
    chris218 is offline x10Hosting Member chris218 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    London, UK
    Posts
    65

    Re: PHP Help (I'm Offering!)

    the random generating code is possible, and is a 5 minute job. As for bandwidth thing... Does your host use cpanel to "moderate" your bandwidth? if not what does it use?

  4. #4
    chris218 is offline x10Hosting Member chris218 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    London, UK
    Posts
    65

    Re: PHP Help (I'm Offering!)

    Sorry, forgot to ask a few questions.

    1. Do you use a database? and what engine is it i.e mysql?
    2. Do you use some kind of connecting class to connect to it? or do you use the standard php functions? if you do use a class, please post it here, so I can customize the exaple aproriatly.
    3. Do you have php mail() avaible on your host?
    4. Do you have an existing download system?

    Thanks

    Chris
    Last edited by chris218; 07-05-2006 at 02:50 PM.

  5. #5
    chris218 is offline x10Hosting Member chris218 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    London, UK
    Posts
    65

    Re: PHP Help (I'm Offering!)

    checked out your site..

    I will take a look at this e107 download system, and try and modify it..

    As for the bandwidth, as seen as it is x10, it must be cpanel, I will try and find a way of pulling the bandwidth, from cpanel, I have never needed to before!

  6. #6
    chris218 is offline x10Hosting Member chris218 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    London, UK
    Posts
    65

    Re: PHP Help (I'm Offering!)

    had a look, but I would need quite a bit of time to examine this e107, and I don't really have the time.

    If You know a bit of php, and you understand the e107 system, you could try (I don't know the e107 system, and i don't have enough time to "learn" it)

    use rand() when the user loads the page, this is the code (out put of rand is a random number)

    stored in database with the requested download's ID, and the user's IP.

    uses mail() to email it.

    Then redirects to an input page, you input the code your emailed. POSTs to a script, SELECTs from the database, the code that the user inputs, checks that this user is indeed from that IP, then use the ID to find the download and download it..

    DELETE the row with that activation code once all done.

    For an example of any of the previous, just ask, I will give you one, but you might need to tweak it for e107.

  7. #7
    randomize's Avatar
    randomize is offline x10 Lieutenant randomize is an unknown quantity at this point
    Join Date
    Mar 2006
    Posts
    337

    Re: PHP Help (I'm Offering!)

    Hey,

    I am a complete n00b at PHP and I know the probably one thing, and that is a PHP include!

    I was wondering, if you could tell me how to do the code for the following thing:

    index?=staff

    or along those lines! I think you understand what I mean!

    Anyway, help would be helpful!

    Oh and is there anyway to pull the latest forum posts from the forums, without using a CMS?? so its just a plain old PHP page, and it just pulls the newest posts?

    Your help is grately appreciated dude!

    Regards,
    Randomize

    P.S If it works, Ill send you some points!


    Click the animation above to go to the site where they are created!

    \ /
    (.) (.)
    /_
    \_____/
    The Evil Guy will take over all Signatures. Please help him to do this by copying and pasting him into your Signature.
    Thank you For Helping Evil!

  8. #8
    chris218 is offline x10Hosting Member chris218 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    London, UK
    Posts
    65

    Re: PHP Help (I'm Offering!)

    ok, well for page=staff on the end of an file..

    Code:
    if ( $_GET['page'] == 'staff' )
    {
    CODE HERE IF ITS HTML EITHER USE ECHO, OR DO THE BELLOW
    ?>
    HTML HERE
    <?php
    }
    The above saved in index.php (if index.php is the directory index) could then be accessed

    yoursite.com/blah/?page=staff

    or yoursite.com/blah/index.php?page=staff
    What forum software do you use?
    Last edited by chris218; 07-05-2006 at 04:17 PM.

  9. #9
    randomize's Avatar
    randomize is offline x10 Lieutenant randomize is an unknown quantity at this point
    Join Date
    Mar 2006
    Posts
    337

    Re: PHP Help (I'm Offering!)

    Code:
     
    
    if ( $_GET['page'] == 'staff' ) { CODE HERE IF ITS HTML EITHER USE ECHO, OR DO THE BELLOW ?> HTML HERE <?php }


    I don't completly understand that bit of code!

    Erm the forum software is phpBB


    Click the animation above to go to the site where they are created!

    \ /
    (.) (.)
    /_
    \_____/
    The Evil Guy will take over all Signatures. Please help him to do this by copying and pasting him into your Signature.
    Thank you For Helping Evil!

  10. #10
    chris218 is offline x10Hosting Member chris218 is an unknown quantity at this point
    Join Date
    Jul 2006
    Location
    London, UK
    Posts
    65

    Re: PHP Help (I'm Offering!)

    well its an if statement.

    between the curly brackets (if your web pages are html i.e you don't code in php) you would put

    ?>
    // your html
    <?php

    obvious it would have to be in a .php file
    what info would you like to be pulled. ie just topic title?
    Last edited by chris218; 07-05-2006 at 04:20 PM.

+ Reply to Thread
Page 1 of 5 123 ... LastLast

Similar Threads

  1. [PHP] MySQL and PHP
    By Bryon in forum Tutorials
    Replies: 43
    Last Post: 03-24-2011, 07:27 AM
  2. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  3. tons of PHP Resources
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 01-16-2009, 10:07 AM
  4. [PHP] PHP For Starters
    By Complex in forum Tutorials
    Replies: 24
    Last Post: 06-14-2008, 11:40 PM
  5. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers