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
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
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
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?
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.
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!
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.
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!
ok, well for page=staff on the end of an file..
The above saved in index.php (if index.php is the directory index) could then be accessedCode:if ( $_GET['page'] == 'staff' ) { CODE HERE IF ITS HTML EITHER USE ECHO, OR DO THE BELLOW ?> HTML HERE <?php }
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.
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
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.