Search found 31 matches
- Sat Jul 26, 2003 7:15 pm
- Forum: PHP - Code
- Topic: Page should be stoping input
- Replies: 1
- Views: 307
Page should be stoping input
i have the target to a form (registration form setup like this) <?php //Some standard checks if (strcmp($_POST['password'], $_POST['cpassword']) != 0) header("Location: error.php?errno=4"); if (strlen($_POST['username']) < 3 || strlen($_POST['username']) > 18) header("Location: error....
- Fri Jun 06, 2003 5:39 am
- Forum: PHP - Code
- Topic: who is online
- Replies: 5
- Views: 679
im using this in one of my scripts you will need to adapt it of course but here is how I do it <?php // Stuff For Users Online (its here so users online information is recorded on every page) $timeout = 5*60; //minutes (* 60) until user 'times' out $date = time(); //now $time_minus_timeout = $date -...
- Sun Jun 01, 2003 7:26 pm
- Forum: PHP - Code
- Topic: parse php in template
- Replies: 1
- Views: 403
parse php in template
I have a class that parses template files I have by opening them like <?php implode("", (file($this->template))); ?> doing some of this and that in between and finally echoing out the file if I wanted to have a php statement in that file like <?php include "this.html"; ?> how cou...
- Sat May 24, 2003 9:45 pm
- Forum: PHP - Code
- Topic: problem with a class
- Replies: 4
- Views: 793
- Sat May 24, 2003 9:21 pm
- Forum: PHP - Code
- Topic: problem with a class
- Replies: 4
- Views: 793
problem with a class
i have a class for my html template, in there is a function like this // Other file $online_string = "1,2,3,4,5,6"; etc..... <?php function CreatePage() { if ($GLOBALS[online_string]) { $this->SetParameter("online_string", $online_string); $this->SetParameter("online_list&qu...
- Mon Apr 14, 2003 7:53 pm
- Forum: PHP - Code
- Topic: Help with SQL & PHP
- Replies: 1
- Views: 312
Help with SQL & PHP
hi, for my new script I am going to be using the phptxt database API (if any of you are familar with it)
my question is how could I go about doing something like mysql_num_rows using just a select statement, as there is no support for mysql_num_rows just query execution.
my question is how could I go about doing something like mysql_num_rows using just a select statement, as there is no support for mysql_num_rows just query execution.
- Mon Apr 07, 2003 7:37 pm
- Forum: PHP - Code
- Topic: Personal server that run XML, PHP and mySQL
- Replies: 13
- Views: 1133
- Mon Apr 07, 2003 1:19 pm
- Forum: PHP - Code
- Topic: XML instead of mySQL
- Replies: 2
- Views: 1006
- Sun Apr 06, 2003 10:06 pm
- Forum: PHP - Code
- Topic: XML instead of mySQL
- Replies: 2
- Views: 1006
XML instead of mySQL
I have a script I am creating to manage news. I will be publicly releasing this and I want to give users the ability to choose mysql for datastorage. I have heard about people using XML in the same way as an SQL database for things like validating users' passwords and anything else that would be in ...
- Sat Apr 05, 2003 7:46 pm
- Forum: PHP - Code
- Topic: sessions problem (passing sessionid)
- Replies: 1
- Views: 277
sessions problem (passing sessionid)
I would like session id to be passed to the next page always by the url rather than a cookie. I know that is a feature in the php config to do it automatically. Is their a way to do it automatically even if its not set in the php config? Or a way to turn it on only for my script?
- Sun Mar 30, 2003 4:48 pm
- Forum: PHP - Code
- Topic: Error With File Functions
- Replies: 1
- Views: 549
Error With File Functions
Warning: fopen(db/entries.xml) [function.fopen]: failed to create stream: Permission denied in C:\HTTP_SERVER\HTTPDOCS\agbxml\sign.php on line 76 Warning: fputs(): supplied argument is not a valid stream resource in C:\HTTP_SERVER\HTTPDOCS\agbxml\sign.php on line 77 Warning: fclose(): supplied argu...
- Wed Feb 12, 2003 7:22 pm
- Forum: PHP - Code
- Topic: How some people can actually see the php source of i page!
- Replies: 17
- Views: 2607
- Sun Feb 02, 2003 5:59 pm
- Forum: PHP - Code
- Topic: how to create missing fields message for a form
- Replies: 8
- Views: 1739
- Sun Feb 02, 2003 5:48 pm
- Forum: PHP - Code
- Topic: displaying sorted data
- Replies: 1
- Views: 311
displaying sorted data
Does anyone know of a good method for sorting things by letter. I have a script with many reviews of different shows in it. I would like to be able to sort them a-g, h-j, k-m (you get the picture) i came up with this method $query = reg_query("SELECT * FROM reviews ORDER BY name ASC"); // ...
- Sat Feb 01, 2003 9:40 pm
- Forum: PHP - Code
- Topic: prob with strpos
- Replies: 4
- Views: 986